:root {
  --bg: #05060a;
  --line: rgba(94, 214, 255, .32);
  --line-dim: rgba(94, 214, 255, .14);
  --text: #e7f6ff;
  --muted: #8ea0b5;
  --cyan: #3ee0ff;
  --mag: #ff4ad8;
  --amber: #ffb020;
  --coral: #ff6b4a;
  --pink: #ff4ad8;
  --orange: #ff9f1a;
  --purple: #c084fc;
  --yellow: #ffe14a;
  --blue: #5b8cff;
  --green: #3dff9a;
  --teal: #2ee6c7;
  --ok: #3dff9a;
  --bad: #ff4d57;
  --up: #ff4d57;
  --down: #1ed760;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--text); background: var(--bg); font-family: "Noto Sans TC", "Noto Sans CJK TC", sans-serif; }
body {
  background-image:
    linear-gradient(var(--line-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dim) 1px, transparent 1px);
  background-size: 56px 56px;
}
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
.mono, .stat b, .clock, .tape, table, .stamp, .chip b, .pnl { font-family: ui-monospace, "Noto Sans Mono", monospace; }
.app { width: min(1440px, 100%); margin: 0 auto; padding: 12px 12px 28px; }
.topbar, .panel, .stat, .mod, .core { border: 1px solid var(--line); background: rgba(6, 10, 16, .9); box-shadow: 0 0 16px rgba(62, 224, 255, .08), inset 0 0 20px rgba(0, 0, 0, .35); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 10px; }
.brand { min-width: 148px; }
.brand b { display: block; letter-spacing: .08em; font-size: 14px; }
.brand span, .help, .kicker { color: var(--muted); font-size: 12px; line-height: 1.45; }
.lock { border: 1px solid var(--amber); color: var(--amber); padding: 4px 8px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.tape { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tape-track { display: inline-flex; gap: 22px; white-space: nowrap; animation: tape 28s linear infinite; }
.clock { color: var(--cyan); font-size: 13px; white-space: nowrap; }
.desk-nav { display: flex; gap: 8px; }
.desk-nav a { text-decoration: none; color: var(--muted); font-size: 13px; padding: 4px 6px; }
.desk-nav a.on { color: var(--cyan); }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.stat { padding: 8px 10px 6px; min-height: 84px; }
.stat .kicker { margin: 0; }
.stat b { display: block; font-size: 28px; line-height: 1.1; margin-top: 2px; }
.spark { width: 100%; height: 26px; display: block; }
.stage { display: grid; grid-template-columns: 220px minmax(280px, 1fr) 220px; gap: 10px; align-items: center; margin-bottom: 10px; }
.mods { display: grid; gap: 10px; }
.mod { padding: 10px 12px; min-height: 86px; position: relative; }
.mod::before { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 18px rgba(62, 224, 255, .12); }
.mod.mag { border-color: rgba(255, 74, 216, .55); }
.mod.amber { border-color: rgba(255, 176, 32, .55); }
.mod.ok { border-color: rgba(61, 255, 154, .5); }
.mod h3 { margin: 0 0 4px; font-size: 14px; }
.mod .status { color: var(--cyan); font-size: 13px; }
.ring-wrap { position: relative; min-height: 420px; display: grid; place-items: center; }
.ring { width: min(460px, 100%); height: auto; }
.core { position: absolute; width: min(230px, 58%); padding: 14px 12px; text-align: center; }
.stamp { display: inline-block; transform: rotate(-14deg); border: 3px solid var(--ok); color: var(--ok); font-size: 28px; font-weight: 800; letter-spacing: .14em; padding: 2px 8px; text-shadow: 0 0 10px var(--ok); animation: glow 2.8s ease-in-out infinite; }
.stamp.no { border-color: var(--bad); color: var(--bad); text-shadow: 0 0 10px var(--bad); }
.stamp.wait { border-color: #7f93a8; color: #9aafc3; text-shadow: none; animation: none; }
.stamp.watch { border-color: #ffb020; color: #ffb020; text-shadow: 0 0 10px #ffb020; }
button.core { font: inherit; color: inherit; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 8px; }
.chip { border: 1px solid var(--line-dim); padding: 2px 6px; font-size: 11px; color: var(--muted); }
.chip b { color: var(--text); }
.bottom { display: grid; grid-template-columns: 1.2fr 1fr .8fr .95fr; gap: 8px; }
.panel { padding: 8px; min-width: 0; }
.panel h2 { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; color: var(--cyan); font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { border-bottom: 1px solid rgba(94, 214, 255, .12); padding: 4px 3px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.up { color: var(--up); }
.down { color: var(--down); }
.pnl { font-size: 34px; margin: 4px 0; }
.switch, .danger { display: flex; gap: 6px; margin-top: 8px; }
.switch button, .danger { min-height: 40px; border: 1px solid var(--line); background: transparent; color: var(--text); }
.switch button.on { background: var(--cyan); color: #041016; }
.danger { width: 100%; color: var(--bad); border-color: var(--bad); }
.term { display: grid; grid-template-columns: 1.4fr .7fr .8fr; gap: 8px; }
.chart, .feed { min-height: 220px; }
.footer-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.tabs { display: none; }
.back { color: var(--cyan); text-decoration: none; font-size: 13px; }
.empty { color: var(--muted); padding: 8px 2px; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 0 6px; }
.row-head h2, .home-news-wrap > h2 { margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--cyan); }
.home-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.news-list { display: grid; gap: 8px; }
.split { display: grid; grid-template-columns: 1.35fr .8fr; gap: 8px; margin-bottom: 10px; align-items: start; }
.news-card { border: 1px solid var(--line); background: rgba(6, 10, 16, .9); box-shadow: 0 0 16px rgba(62, 224, 255, .08); padding: 10px; }
.news-card h3 { margin: 0; font-size: 15px; line-height: 1.45; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.tag { border: 1px solid var(--cyan); color: var(--cyan); padding: 0 6px; font-size: 11px; }
.tag.high { border-color: var(--amber); color: var(--amber); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.filters button, .filters select { min-height: 40px; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 0 10px; }
.filters button.on { background: var(--cyan); color: #041016; }
.social { display: flex; flex-wrap: wrap; gap: 6px; }
.social a { border: 1px solid var(--line-dim); padding: 6px 8px; text-decoration: none; font-size: 12px; min-height: 36px; display: inline-flex; align-items: center; }
.tab-short { display: none; }
.stat, .mod, .panel, .news-card, .core { --accent: var(--cyan); }
.stat, .mod, .panel, .news-card {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 32%, transparent), inset 0 0 20px rgba(0, 0, 0, .35);
}
.topbar {
  border-color: transparent;
  background:
    linear-gradient(rgba(6, 10, 16, .94), rgba(6, 10, 16, .94)) padding-box,
    linear-gradient(90deg, var(--coral), var(--pink), var(--orange), var(--yellow), var(--teal), var(--blue), var(--purple)) border-box;
}
.stats .stat:nth-child(1) { --accent: var(--coral); }
.stats .stat:nth-child(2) { --accent: var(--pink); }
.stats .stat:nth-child(3) { --accent: var(--teal); }
.stats .stat:nth-child(4) { --accent: var(--orange); }
.stats .stat:nth-child(5) { --accent: var(--blue); }
.footer-metrics .stat:nth-child(1) { --accent: var(--yellow); }
.footer-metrics .stat:nth-child(2) { --accent: var(--pink); }
.footer-metrics .stat:nth-child(3) { --accent: var(--teal); }
.footer-metrics .stat:nth-child(4) { --accent: var(--purple); }
.stat .kicker { color: color-mix(in srgb, var(--accent) 55%, white); }
.stat b { color: var(--accent); text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent); }
.mod.coral, .hue-coral { --accent: var(--coral); }
.mod.pink, .hue-pink { --accent: var(--pink); }
.mod.orange, .hue-orange { --accent: var(--orange); }
.mod.purple, .hue-purple { --accent: var(--purple); }
.mod.yellow, .hue-yellow { --accent: var(--yellow); }
.mod.blue, .hue-blue { --accent: var(--blue); }
.mod.green, .hue-green { --accent: var(--green); }
.mod.amber, .hue-amber, .meter .sq.amber { --accent: #ffb020; }
.mod.steel, .meter .sq.steel { --accent: #7ec8ff; }
.src-pill.coral { color: #ff6b6b; border-color: #6a3030; }
.src-pill.purple { color: #c084fc; border-color: #4a2870; }
.src-pill.green { color: #3dff9a; border-color: #14663c; }
.src-pill.teal { color: #2ee6c7; border-color: #14584e; }
body.fit-home .mod.bot-card { width: clamp(108px, 11vw, 168px); transform: translate(-50%, -50%); z-index: 2; }
body.fit-home .mod.bot-card:hover, body.fit-home .mod.bot-card.open, body.fit-home .mod.bot-card:focus-within { transform: translate(-50%, -50%); }
.mod h3::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  vertical-align: 1px;
}
.mod h3, .panel > h2:first-of-type, .row-head h2 {
  color: #fff;
  text-shadow: 0 1px 2px #000;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 48%, #12040c), color-mix(in srgb, var(--accent) 12%, transparent) 86%);
}
.panel h2 { color: var(--accent); }
.mod h3 { margin: -10px -12px 8px; padding: 7px 12px; }
.panel > h2:first-of-type { margin: -8px -8px 8px; padding: 6px 10px; }
.mod .status { color: #f7fbff; }
.bottom .panel:nth-child(1), .home-news-wrap { --accent: var(--yellow); }
.bottom .panel:nth-child(2) { --accent: var(--pink); }
.bottom .panel:nth-child(3) { --accent: var(--purple); }
.bottom .panel:nth-child(4) { --accent: var(--teal); }
.term .panel:nth-child(1) { --accent: var(--coral); }
.term .panel:nth-child(2) { --accent: var(--blue); }
.term .panel:nth-child(3) { --accent: var(--purple); }
.chip.hue-orange { --accent: var(--orange); }
.chip.hue-teal { --accent: var(--teal); }
.chip.hue-pink { --accent: var(--pink); }
.chip.hue-blue { --accent: var(--blue); }
.chip.hue-yellow { --accent: var(--yellow); }
.chip[class*="hue-"] { border-color: var(--accent); color: var(--accent); }
.cat { --accent: var(--cyan); border: 1px solid var(--accent); color: #140814; background: var(--accent); padding: 0 6px; font-size: 11px; font-weight: 700; }
.cat-macro, .news-card.cat-macro { --accent: var(--purple); }
.cat-tw, .news-card.cat-tw { --accent: var(--coral); }
.cat-us, .news-card.cat-us { --accent: var(--blue); }
.cat-crypto, .news-card.cat-crypto { --accent: var(--yellow); }
.cat-social, .news-card.cat-social { --accent: var(--pink); }
.filters button.cat-macro { --accent: var(--purple); }
.filters button.cat-tw { --accent: var(--coral); }
.filters button.cat-us { --accent: var(--blue); }
.filters button.cat-crypto { --accent: var(--yellow); }
.filters button.cat-social { --accent: var(--pink); }
.filters button[class*="cat-"] { border-color: var(--accent); color: var(--accent); }
.filters button[class*="cat-"].on, .filters button.on { background: var(--accent); color: #140814; }
.social a.soc-x { --accent: var(--blue); }
.social a.soc-ptt { --accent: var(--coral); }
.social a.soc-dcard { --accent: var(--orange); }
.social a.soc-reddit { --accent: var(--purple); }
.social a.soc-yt { --accent: var(--pink); }
.social a[class*="soc-"] { border-color: var(--accent); color: var(--accent); }
.desk-nav a:nth-child(1) { color: var(--coral); }
.desk-nav a:nth-child(2) { color: var(--pink); }
.desk-nav a:nth-child(3) { color: var(--orange); }
.desk-nav a:nth-child(4) { color: var(--yellow); }
.desk-nav a:nth-child(5) { color: var(--teal); }
.desk-nav a:nth-child(6) { color: var(--amber); }
.desk-nav a:nth-child(7) { color: var(--cyan); }
.desk-nav a:nth-child(8) { color: var(--blue); }
.desk-nav a:nth-child(9) { color: #7ec8ff; }
.desk-nav a.on { text-shadow: 0 0 8px currentColor; }
.pnl.up { color: var(--up); }
.pnl.down { color: var(--down); }
.stage { position: relative; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mods, .ring-wrap { position: relative; z-index: 1; }
.core { z-index: 1; }
.ring.spin { transform-origin: center; animation: spin 28s linear infinite; }
.ring-wrap::after { content: ""; position: absolute; left: 14%; top: 14%; width: 72%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; box-shadow: 0 0 28px rgba(62, 224, 255, .45), inset 0 0 18px rgba(255, 74, 216, .25); animation: pulse 2.6s ease-in-out infinite; }
.links line { stroke: rgba(142, 160, 181, .45); stroke-width: 1.5; }
.links line.flow { stroke: #3ee0ff; stroke-dasharray: 7 9; animation: dash 1s linear infinite; }
.mod { cursor: pointer; transition: transform .2s ease; }
.mod:hover, .mod.open, .mod:focus-visible { transform: translateY(-3px); }
.mod h3 { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5c6b7a; display: inline-block; flex: none; }
.mod.live .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 1.3s ease-in-out infinite; }
.mod .more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s ease, opacity .25s ease; }
.mod:hover .more, .mod.open .more, .mod:focus-within .more { max-height: 180px; opacity: 1; }
.stamp.fly { animation: flyin .55s ease-out, glow 2.8s ease-in-out .55s infinite; }
.spark.grow polyline { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s ease forwards; }
.stat .spark { color: var(--accent); }
tr.hit { cursor: pointer; }
tr.newrow { animation: slidein .4s ease, flash 1.1s ease; }
.switch-ui { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 8px; border: 1px solid var(--line); background: #070b12; color: var(--text); padding: 4px 10px 4px 6px; }
.switch-ui .knob { width: 22px; height: 22px; border-radius: 50%; background: #8ea0b5; display: block; transition: transform .2s ease, background .2s ease; }
.switch-ui.on { border-color: var(--green); color: var(--green); }
.switch-ui.on .knob { background: var(--green); transform: translateX(6px); box-shadow: 0 0 10px var(--green); }
.switch-ui:disabled { opacity: .45; }
.bar { height: 8px; border: 1px solid var(--line); margin-top: 6px; background: rgba(0, 0, 0, .35); }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--yellow)); }
.shade { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 41; overflow: auto; padding: 16px 14px; }
.modal { position: fixed; z-index: 42; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(680px, calc(100% - 20px)); max-height: calc(100% - 24px); overflow: auto; padding: 12px; }
.float-toast { position: fixed; right: 16px; z-index: 50; padding: 8px 12px; border: 1px solid var(--teal); background: rgba(6, 10, 16, .94); animation: floatup 2.4s ease forwards; pointer-events: none; }
.float-toast.up { color: var(--up); border-color: var(--up); }
.float-toast.down { color: var(--down); border-color: var(--down); }
#pnl-tip, #mini-tip { position: absolute; top: 8px; z-index: 2; background: #070b12; border: 1px solid var(--yellow); padding: 4px 6px; font-size: 12px; pointer-events: none; white-space: nowrap; }
.pnl-box, .mini-box { position: relative; touch-action: none; }
.mini-tools { display: flex; gap: 6px; margin: 6px 0; }
.mini-tools button, .sort, .star, .filters input, .drawer button, .modal button { min-height: 40px; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 0 8px; }
.sort.on, .star.on { color: var(--yellow); border-color: var(--yellow); }
.filters input { min-width: 120px; }
.sig-list { list-style: none; padding: 0; margin: 8px 0; }
.sig-list li { padding: 6px 0; border-bottom: 1px solid rgba(94, 214, 255, .12); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes glow { 50% { filter: drop-shadow(0 0 8px currentColor); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .4; transform: scale(1.05); } }
@keyframes dash { to { stroke-dashoffset: -32; } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes flyin { from { transform: translateY(-36px) rotate(-32deg) scale(1.4); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: 1; } }
@keyframes slidein { from { transform: translateY(-8px); opacity: 0; } }
@keyframes flash { from { background: rgba(255, 225, 74, .4); } to { background: transparent; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes floatup { from { transform: translateY(10px); opacity: 0; } 18% { opacity: 1; } to { transform: translateY(-28px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tape-track, .stamp, .stamp.fly, .ring.spin, .ring-wrap::after, .mod.live .dot, .links line.flow, tr.newrow, .switch-ui .knob, .float-toast, .spark.grow polyline { animation: none; }
  .spark.grow polyline { stroke-dashoffset: 0; }
  .mod, .switch-ui .knob, .mod .more { transition: none; }
}
@media (max-width: 1100px) {
  .links { display: none; }
  .stage { grid-template-columns: 1fr; }
  .bottom, .term, .footer-metrics, .split { grid-template-columns: 1fr; }
  .desk-nav { display: none; }
}
@media (max-width: 800px) {
  .app { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .topbar { flex-wrap: wrap; }
  .tape { order: 5; flex-basis: 100%; }
  .stats { display: flex; overflow-x: auto; }
  .stat { min-width: 128px; }
  .bottom, .term, .footer-metrics, .mods, .home-news { grid-template-columns: 1fr; }
  .ring-wrap { min-height: 320px; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(5, 6, 10, .94); border-top: 1px solid var(--line); z-index: 20; }
  .tabs a { text-decoration: none; color: var(--muted); text-align: center; font-size: 9px; min-height: 46px; display: grid; place-items: center; }
  .tabs svg { width: 16px; height: 16px; }
  .tabs a:nth-child(1) { --accent: var(--coral); }
  .tabs a:nth-child(2) { --accent: var(--pink); }
  .tabs a:nth-child(3) { --accent: var(--orange); }
  .tabs a:nth-child(4) { --accent: var(--yellow); }
  .tabs a:nth-child(5) { --accent: var(--teal); }
  .tabs a:nth-child(6) { --accent: var(--amber); }
  .tabs a:nth-child(7) { --accent: var(--cyan); }
  .tabs a:nth-child(8) { --accent: var(--blue); }
  .tabs a:nth-child(9) { --accent: #7ec8ff; }
  .tabs a { color: var(--accent); }
  .tabs a.on { color: #140814; background: var(--accent); }
}

body.fit-home { overflow: hidden; height: 100dvh; }
body.fit-home .app { width: 100%; max-width: none; height: 100dvh; margin: 0; padding: 8px 12px; overflow: hidden; }
.home-screen { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; }
.home-top { display: grid; grid-template-columns: minmax(240px, 1.1fr) minmax(160px, 1fr) auto; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; padding: 4px 2px 0; }
.home-top .brand { display: flex; gap: 8px; align-items: center; min-width: 0; }
.logo-mark { width: 28px; height: 28px; flex: none; border-radius: 7px; background: linear-gradient(135deg, var(--coral), #ff2d55); box-shadow: 0 0 12px rgba(255, 77, 87, .55); }
.home-top .brand b { font-size: 15px; letter-spacing: .04em; }
.flow { margin: 2px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
.home-top .desk-nav { grid-column: 2; grid-row: 1; justify-content: flex-end; }
.home-top .tape { grid-column: 2; grid-row: 2; min-width: 0; }
.home-side { grid-column: 3; grid-row: 1 / span 2; text-align: right; }
.lockline { margin: 0 0 2px; color: var(--amber); font-size: 11px; letter-spacing: .04em; }
.home-stats { display: flex; gap: 14px; justify-content: flex-end; }
.home-stats .stat { min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.home-stats .stat b { font-size: clamp(26px, 3.4vh, 40px); text-shadow: none; }
.home-stats .req b, .home-stats .done b { color: #f4f7fb; }
.home-stats .yes b, .home-stats .yes { color: var(--ok); --accent: var(--ok); }
.home-stats .no b, .home-stats .no { color: var(--bad); --accent: var(--bad); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-top: 2px; }
.bars i { display: block; width: 3px; background: currentColor; opacity: .85; }
body.fit-home .stage { position: relative; min-height: 0; height: 100%; display: block; }
body.fit-home .ring-wrap { position: absolute; left: 50%; top: 50%; width: min(34vw, 46vh); aspect-ratio: 1; transform: translate(-50%, -50%); min-height: 0; container-type: size; }
body.fit-home .ring { width: 100%; height: 100%; }
body.fit-home .core.plate { width: 46%; height: 42%; display: grid; place-items: center; align-content: center; padding: 8px 6px 6px; background: transparent; border: 0; box-shadow: none; }
.omni { font-size: clamp(28px, 4.6vh, 64px); font-weight: 800; letter-spacing: .12em; line-height: .9; }
.omni.chief-name { font-size: clamp(18px, 2.4vh, 32px); letter-spacing: .04em; line-height: 1.1; white-space: nowrap; }
.plate-line { margin: 4px 0 0; max-width: 100%; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.fit-home .core .stamp { position: absolute; top: 10%; right: 8%; font-size: clamp(16px, 2.2vh, 26px); }
.checks { position: absolute; inset: 0; pointer-events: none; }
.check { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: 0; border-radius: 50%; border: 1px solid rgba(142, 160, 181, .45); color: #8ea0b5; background: rgba(6, 10, 16, .88); display: grid; place-items: center; font-size: 10px; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-34cqi) rotate(calc(var(--a) * -1)); }
.check:nth-child(1) { --a: -90deg; }
.check:nth-child(2) { --a: -30deg; }
.check:nth-child(3) { --a: 30deg; }
.check:nth-child(4) { --a: 90deg; }
.check:nth-child(5) { --a: 150deg; }
.check:nth-child(6) { --a: 210deg; }
.check.on { color: #06210f; background: var(--ok); border-color: var(--ok); box-shadow: 0 0 10px var(--ok); }
.check:nth-child(1).on { background: var(--yellow); border-color: var(--yellow); color: #1a1404; box-shadow: 0 0 10px var(--yellow); }
.check:nth-child(2).on { background: var(--teal); border-color: var(--teal); color: #04221c; box-shadow: 0 0 10px var(--teal); }
.check:nth-child(3).on { background: var(--orange); border-color: var(--orange); color: #2a1400; box-shadow: 0 0 10px var(--orange); }
.check:nth-child(4).on { background: var(--pink); border-color: var(--pink); color: #2a0418; box-shadow: 0 0 10px var(--pink); }
.check:nth-child(5).on { background: var(--blue); border-color: var(--blue); color: #06101c; box-shadow: 0 0 10px var(--blue); }
.check:nth-child(6).on { background: var(--purple); border-color: var(--purple); color: #160824; box-shadow: 0 0 10px var(--purple); }
body.fit-home .mod { position: absolute; width: clamp(132px, 13vw, 196px); min-height: 58px; padding: 8px 10px; background: rgba(8, 14, 22, .72); backdrop-filter: blur(8px); }
body.fit-home .mod h3 { margin: 0; padding: 0; background: none; display: block; font-size: 13px; }
body.fit-home .mod h3::before { display: none; }
body.fit-home .mod .status { font-size: 12px; color: var(--accent); }
body.fit-home .mod .more { max-height: 0; }
body.fit-home .mod:hover, body.fit-home .mod.open, body.fit-home .mod:focus-within { filter: brightness(1.12); }
body.fit-home .mod.p0 { top: 0; left: 50%; transform: translateX(-50%); }
body.fit-home .mod.p1 { top: 14%; left: 14%; }
body.fit-home .mod.p2 { top: 14%; right: 14%; }
body.fit-home .mod.p3 { top: 42%; left: 4%; }
body.fit-home .mod.p4 { top: 42%; right: 4%; }
body.fit-home .mod.p5 { bottom: 10%; left: 14%; }
body.fit-home .mod.p6 { bottom: 10%; right: 14%; }
body.fit-home .mod.p7 { bottom: 0; left: 50%; transform: translateX(-50%); }
body.fit-home .mod.p0:hover, body.fit-home .mod.p0.open, body.fit-home .mod.p7:hover, body.fit-home .mod.p7.open { transform: translateX(-50%); }
.mod-row { display: flex; gap: 8px; align-items: center; }
.bot { width: 28px; height: 28px; flex: none; color: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
body.fit-home .switch-ui { margin-top: 4px; min-height: 28px; padding: 2px 8px 2px 4px; font-size: 12px; }
body.fit-home .bottom { height: clamp(128px, 18vh, 196px); grid-template-columns: 1.15fr 1.15fr .9fr 1fr; margin: 0; }
body.fit-home .bottom .panel { overflow: auto; padding: 6px; }
body.fit-home .bottom h2 { margin: 0 0 4px; }
body.fit-home .pnl { font-size: clamp(22px, 3vh, 34px); margin: 0; }
.meters { display: grid; gap: 3px; }
.meter { display: grid; grid-template-columns: 8px auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; }
.meter .sq { width: 8px; height: 8px; grid-row: 1 / span 2; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.meter .sq.coral { --accent: var(--coral); }
.meter .sq.pink { --accent: var(--pink); }
.meter .sq.orange { --accent: var(--orange); }
.meter .sq.purple { --accent: var(--purple); }
.meter .sq.yellow { --accent: var(--yellow); }
.meter .sq.blue { --accent: var(--blue); }
.meter .sq.green { --accent: var(--green); }
.meter .sq.teal { --accent: var(--teal); }
.meter span { font-size: 11px; }
.meter em { grid-column: 2 / span 2; font-style: normal; color: var(--muted); font-size: 10px; }
.meter .bar { grid-column: 2 / span 2; height: 4px; margin: 0; }
.float-toast { border-radius: 999px; font-weight: 700; }
@media (max-width: 1100px) {
  body.fit-home .bottom { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.fit-home .stage { display: block; }
}
@media (max-height: 820px) {
  body.fit-home .home-stats .stat b { font-size: 26px; }
  body.fit-home .bottom { height: 136px; }
  .flow { font-size: 10px; }
}
@media (max-width: 800px) {
  body.fit-home { overflow: auto; height: auto; }
  body.fit-home .app { height: auto; overflow: visible; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .home-screen { height: auto; display: block; }
  .home-top { display: flex; flex-wrap: wrap; }
  .home-side { width: 100%; text-align: left; }
  .home-stats { justify-content: flex-start; overflow-x: auto; }
  body.fit-home .stage { height: auto; display: flex; flex-direction: column; }
  body.fit-home .ring-wrap { position: relative; left: auto; top: auto; transform: none; width: min(92vw, 420px); margin: 8px auto; }
  body.fit-home .mod { position: static; width: auto; transform: none; margin: 0 0 8px; }
  body.fit-home .mod.p0, body.fit-home .mod.p7, body.fit-home .mod.p0:hover, body.fit-home .mod.p7:hover, body.fit-home .mod.bot-card, body.fit-home .mod.bot-card:hover, body.fit-home .mod.bot-card.open { position: static; width: auto; transform: none; }
  body.fit-home .links { display: none; }
  body.fit-home .bottom { height: auto; grid-template-columns: 1fr; }
  .check { width: 28px; height: 28px; font-size: 9px; }
}

body.term-mode { background: #050814; background-image: none; }
body.term-mode .term-home {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, .92fr) minmax(0, 1.2fr) minmax(0, .78fr) auto auto;
  gap: 4px;
  overflow: hidden;
  color: #d5e6f2;
  font-family: ui-monospace, "Noto Sans TC", monospace;
  font-size: 11px;
}
body.term-mode .term-home > * { min-height: 0; }
body.term-mode .term-panel {
  border: 1px solid #1c3148;
  background: rgba(7, 12, 22, .94);
  box-shadow: none;
  padding: 4px 6px;
  overflow: auto;
  min-height: 0;
}
body.term-mode .term-panel h2,
body.term-mode .sig-col h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 3px;
  padding: 0;
  background: none;
  color: #9fb4c8;
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 600;
}
body.term-mode .term-panel h2::before,
body.term-mode .sig-col h2::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--sq, #3ee0ff);
  box-shadow: 0 0 6px var(--sq, #3ee0ff);
}
body.term-mode h2.sq-green { --sq: #3dff9a; }
body.term-mode h2.sq-cyan { --sq: #3ee0ff; }
body.term-mode h2.sq-amber { --sq: #ffb020; }
body.term-mode h2.sq-yellow { --sq: #ffe14a; }
body.term-mode .term-panel h2 button,
body.term-mode .term-panel h2 a,
body.term-mode .sig-col h2 a {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  letter-spacing: .16em;
  text-decoration: none;
}
.term-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.term-head .desk-nav { flex: none; }
.term-head .desk-nav a { font-size: 12px; padding: 2px 4px; white-space: nowrap; }
.term-head .brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.term-head .brand b { font-size: 13px; letter-spacing: .08em; white-space: nowrap; }
.idx-row { display: flex; gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
.idx { flex: 0 0 auto; padding: 0 8px; border-left: 1px solid #1c3148; }
.idx p, .term-foot p, .term-clock span { margin: 0; color: #6e879c; font-size: 9px; letter-spacing: .08em; }
.idx b, .idx em { display: block; font-style: normal; font-size: 13px; line-height: 1.15; white-space: nowrap; }
.view-toggle { border: 1px solid #6a4a12; background: #120d04; color: #ffb020; letter-spacing: .14em; font-size: 11px; padding: 4px 8px; white-space: nowrap; }
.term-clock { margin-left: auto; text-align: right; }
.term-clock b { display: block; color: #3ee0ff; font-size: clamp(20px, 3.1vh, 34px); line-height: 1; letter-spacing: .04em; text-shadow: 0 0 12px rgba(62, 224, 255, .45); }
.term-banner { display: flex; align-items: center; gap: 8px; background: #c1121f; color: #fff; min-height: 22px; padding: 0 8px; overflow: hidden; }
.term-banner b { letter-spacing: .14em; font-size: 11px; white-space: nowrap; }
.term-banner .tape { flex: 1; }
.poly-strip { display: flex; gap: 6px; align-items: center; overflow: auto; min-height: 18px; color: #ffcc66; font-size: 10px; }
.poly-strip a { color: #ffcc66; text-decoration: none; border: 1px solid #6a4a12; background: #120d04; padding: 1px 6px; white-space: nowrap; }
.predict-panel { border: 1px solid #1c3148; background: rgba(7, 12, 22, .94); box-shadow: none; }
.predict-panel h2 { display: flex; align-items: center; gap: 6px; color: #9fb4c8; font-size: 12px; letter-spacing: .12em; }
.predict-panel h2::before { content: ""; width: 7px; height: 7px; background: var(--sq, #ffb020); box-shadow: 0 0 6px var(--sq, #ffb020); }
.predict-panel h2.sq-amber { --sq: #ffb020; }
.predict-panel h2.sq-cyan { --sq: #3ee0ff; }
.predict-panel h2.sq-green { --sq: #3dff9a; }
.tape-track a { color: inherit; text-decoration: none; }
.predict-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 8px; }
.tv-screen { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 8px; min-height: calc(100dvh - 120px); }
.tv-main, .tv-side { min-height: 0; }
.tv-detail { min-height: 420px; margin-bottom: 8px; }
.tv-slot, #tv-slot, .tv-mount, .tv-frame { width: 100%; min-height: 420px; height: 64vh; border: 0; background: #050814; }
.tv-mount { position: relative; }
.tv-side { overflow: auto; max-height: calc(100dvh - 120px); }
.ua-drop { display: grid; gap: 4px; margin: 8px 0; padding: 12px; border: 1px dashed #3ee0ff; color: #d5e6f2; cursor: pointer; }
.ua-drop input { margin-top: 6px; }
.ua-chart { width: 100%; height: 72px; display: block; }
@media (max-width: 800px) {
  .tv-screen { grid-template-columns: 1fr; }
  .tv-slot, #tv-slot, .tv-mount, .tv-frame { height: 70vw; min-height: 280px; }
  .tv-side { max-height: none; }
}
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.book-grid h3 { margin: 0 0 4px; font-size: 11px; color: #8ea0b5; letter-spacing: .08em; }
@media (max-width: 800px) {
  .predict-grid, .book-grid { grid-template-columns: 1fr; }
}
.term-top { display: grid; grid-template-columns: 1.05fr 1.25fr 1fr 1fr; gap: 4px; }
.acct-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.acct-pnl { margin: 0; font-size: clamp(26px, 4vh, 48px); line-height: .95; font-weight: 700; }
.live-badge { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #3dff9a; color: #3dff9a; padding: 1px 6px; letter-spacing: .16em; font-size: 10px; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; animation: blink 1.4s steps(2) infinite; }
.live-badge.lock { border-color: #ff4d57; color: #ff4d57; }
.live-badge.pause { border-color: #ffb020; color: #ffb020; }
.gauge { height: 6px; margin: 4px 0; background: #102033; border: 1px solid #1c3148; }
.gauge > span { display: block; height: 100%; background: linear-gradient(90deg, #3dff9a, #ffe14a 55%, #ff4d57); }
.callout { margin: 4px 0 0; padding: 3px 6px; border-left: 2px solid #ffb020; color: #ffd27a; font-size: 10px; }
.step { width: 100%; height: 42px; display: block; }
.syslog { list-style: none; margin: 0; padding: 0; font-size: 10px; line-height: 1.35; }
.syslog li { color: #d7e4ee; }
.syslog li.ok { color: #3dff9a; }
.syslog li.bad { color: #ff4d57; }
.syslog span { color: #6e879c; margin-right: 4px; }
.term-hero { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) 196px; gap: 6px; }
.src-col, .sig-col { position: relative; z-index: 2; min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.sig-col { overflow: auto; }
.src-pill, .sig-card { font: inherit; cursor: pointer; }
.src-pill { border: 1px solid #1c3148; background: #071018; color: #9fb4c8; padding: 4px 6px; letter-spacing: .12em; font-size: 11px; }
.src-pill.cyan { color: #3ee0ff; border-color: #14586e; }
.src-pill.pink { color: #ff4ad8; border-color: #6a2458; }
.src-pill.yellow { color: #ffe14a; border-color: #6a5a12; }
.src-pill.blue { color: #5b8cff; border-color: #243e78; }
.src-pill.orange { color: #ff9f1a; border-color: #6a4510; }
.src-pill.amber { color: #ffb020; border-color: #6a4a12; }
.src-pill.steel { color: #7ec8ff; border-color: #24506a; }
.term-bots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.term-bot { --accent: #9fb4c8; min-width: 0; text-align: left; font: inherit; cursor: pointer; border: 1px solid color-mix(in srgb, var(--accent) 70%, #1c3148); background: #071018; color: var(--accent); padding: 3px 5px; }
.term-bot.coral { --accent: var(--coral); }
.term-bot.orange { --accent: var(--orange); }
.term-bot.purple { --accent: var(--purple); }
.term-bot.yellow { --accent: var(--yellow); }
.term-bot.pink { --accent: var(--pink); }
.term-bot.blue { --accent: var(--blue); }
.term-bot.teal { --accent: var(--teal); }
.term-bot.green { --accent: var(--green); }
.term-bot.amber { --accent: #ffb020; }
.term-bot.steel { --accent: #7ec8ff; }
.term-bot b, .term-bot span, .term-bot small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-bot b { font-size: 12px; }
.term-bot span, .term-bot small { font-size: 10px; color: #9fb4c8; }
.src-pill.live { box-shadow: inset 0 0 8px currentColor; }
.torus-box { position: relative; z-index: 1; min-height: 0; height: 100%; background: radial-gradient(circle at 50% 50%, #10243a 0%, #050814 68%); border: 1px solid #1c3148; }
.torus-box canvas { width: 100%; height: 100%; display: block; }
.chief-hero { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: min(220px, 46%); background: rgba(5, 8, 16, .82); border: 1px solid #7ec8ff; text-align: center; padding: 8px; color: inherit; font: inherit; cursor: pointer; }
.chief-hero b { display: block; font-size: 16px; letter-spacing: .04em; }
.chief-hero small { display: block; color: #9aafc3; font-size: 11px; line-height: 1.35; max-height: 2.7em; overflow: hidden; }
.chief-hero .stamp { position: static; display: inline-block; margin-bottom: 4px; font-size: 18px; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.flow-lines path { stroke: #1c4e66; stroke-width: 1.1; fill: none; }
.flow-lines path.flow { stroke: #3ee0ff; stroke-dasharray: 6 7; animation: dash 1.1s linear infinite; filter: drop-shadow(0 0 3px #3ee0ff); }
.flow-lines path.amber { stroke: #ffb020; stroke-dasharray: 4 7; animation: dash 1.5s linear infinite; filter: drop-shadow(0 0 3px #ffb020); }
.sig-card { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; text-align: left; border: 1px solid #6a4a12; background: rgba(28, 18, 4, .8); color: #ffcc66; padding: 3px 6px; font-size: 10px; }
.sig-card b { color: #ffe14a; font-size: 12px; }
.sig-card.on { border-color: #ffb020; box-shadow: 0 0 8px rgba(255, 176, 32, .4); }
.conf { grid-column: 1 / -1; display: block; height: 4px; margin-top: 2px; background: #2a220f; }
.conf i { display: block; height: 100%; width: 0; background: #ffb020; }
.term-low { display: grid; grid-template-columns: 1.35fr .8fr .9fr; gap: 4px; }
.term-chart { width: 100%; height: auto; display: block; }
.cone { width: 100%; height: 92px; display: block; }
.news-line { margin: 0 0 4px; font-size: 10px; line-height: 1.35; }
.news-line a { color: #e7f6ff; text-decoration: none; }
.news-line span { display: block; color: #6e879c; }
.term-foot { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.term-foot article { border: 1px solid #1c3148; background: #070c16; padding: 3px 6px; min-width: 0; }
.term-foot b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-tape { border-top: 1px solid #1c3148; min-height: 16px; overflow: hidden; color: #9fb4c8; font-size: 10px; }
table.dense { font-size: 10px; }
table.dense th, table.dense td { padding: 2px 3px; }
.subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.subs span { border: 1px solid #1c3148; padding: 2px 6px; color: #d5e4f2; }
.scroll { overflow-x: auto; }
@media (max-height: 820px) {
  body.term-mode .acct-pnl { font-size: 26px; }
  body.term-mode .term-clock b { font-size: 20px; }
  body.term-mode .cone { height: 72px; }
  body.term-mode .term-foot b { font-size: 11px; }
}
@media (max-width: 1100px) {
  body.term-mode .term-top { grid-template-columns: 1fr 1fr; }
  body.term-mode .term-low { grid-template-columns: 1fr 1fr; }
  body.term-mode .term-low .term-panel:last-child { grid-column: 1 / -1; }
  body.term-mode .term-foot { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.term-mode .term-hero { grid-template-columns: 72px minmax(0, 1fr) 150px; }
}
@media (max-width: 800px) {
  body.term-mode.fit-home { overflow: auto; height: auto; }
  body.term-mode.fit-home .app { height: auto; overflow: visible; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.term-mode .term-home { display: block; height: auto; overflow: visible; }
  body.term-mode .term-top,
  body.term-mode .term-low,
  body.term-mode .term-foot { display: grid; grid-template-columns: 1fr; }
  body.term-mode .term-low .term-panel:last-child { grid-column: auto; }
  body.term-mode .term-hero { display: flex; flex-direction: column; min-height: 0; }
  body.term-mode .term-bots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.term-mode .torus-box { height: 240px; }
  body.term-mode .flow-lines { display: none; }
  body.term-mode .term-head { flex-wrap: wrap; }
  body.term-mode .idx-row { flex-basis: 100%; overflow-x: auto; }
  body.term-mode .term-panel { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  body.term-mode .live-badge i,
  body.term-mode .flow-lines path,
  body.term-mode .tape-track { animation: none; }
}

.home-switch { display: flex; gap: 4px; flex: none; }
.view-toggle.on { color: #140814; background: #ffb020; border-color: #ffb020; }
.home-top .brand { flex-wrap: wrap; }

body.focus-mode { background: #050814; background-image: none; }
body.focus-mode .focus-home {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(128px, 26vh) auto auto auto auto;
  align-content: start;
  gap: 16px;
  overflow: hidden;
  color: #e7f6ff;
}
.focus-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.focus-head .brand { display: flex; align-items: center; gap: 8px; }
.focus-head .brand b { font-size: 15px; letter-spacing: .12em; white-space: nowrap; }
.focus-head .desk-nav { flex: 1; min-width: 0; overflow: auto; }
.focus-head .desk-nav a { white-space: nowrap; font-size: 12px; padding: 2px 4px; }
.focus-head .lockline { margin: 0; white-space: nowrap; }
.focus-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "kicker kicker" "word meta" "reason reason";
  column-gap: 28px;
  row-gap: 2px;
  align-items: end;
  text-decoration: none;
  color: inherit;
  padding: 2px 4px 0;
  min-width: 0;
}
.focus-kicker { grid-area: kicker; margin: 0; color: #8ea0b5; letter-spacing: .18em; font-size: 12px; }
.focus-hero { align-self: center; }
.focus-word { grid-area: word; margin: 0; font-size: clamp(64px, 10vh, 108px); font-weight: 800; letter-spacing: .16em; line-height: .9; }
.focus-hero.long .focus-word { color: var(--green); text-shadow: 0 0 22px rgba(61, 255, 154, .35); }
.focus-hero.short .focus-word { color: var(--bad); text-shadow: 0 0 22px rgba(255, 77, 87, .35); }
.focus-hero.watch .focus-word { color: var(--amber); text-shadow: 0 0 18px rgba(255, 176, 32, .28); }
.focus-hero.wait .focus-word { color: #9aafc3; }
.focus-meta { grid-area: meta; display: flex; gap: 28px; align-items: flex-end; padding-bottom: 8px; }
.focus-meta small { display: block; color: #8ea0b5; letter-spacing: .14em; font-size: 12px; }
.focus-meta b { display: block; font-size: clamp(28px, 4vh, 42px); line-height: 1; font-variant-numeric: tabular-nums; }
.focus-reason {
  grid-area: reason;
  margin: 4px 0 0;
  max-width: 68ch;
  color: #d5e6f2;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.focus-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 0; align-items: stretch; }
.focus-list { min-height: 0; max-height: 46vh; overflow: auto; border: 1px solid #1c3148; background: rgba(7, 12, 22, .72); padding: 12px 16px 8px; }
.focus-list h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 13px; letter-spacing: .16em; color: #d5e6f2; }
.focus-list h2::before { content: ""; width: 8px; height: 8px; background: var(--sq, #3dff9a); box-shadow: 0 0 8px var(--sq, #3dff9a); }
.focus-list h2.sq-green { --sq: #3dff9a; }
.focus-list h2.sq-amber { --sq: #ffb020; }
.focus-empty { margin: 18px 0; color: #8ea0b5; font-size: 18px; letter-spacing: .12em; }
.focus-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "name score grade" "exec exec exec" "trigger trigger trigger";
  gap: 1px 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(94, 214, 255, .12);
  text-decoration: none;
  color: inherit;
}
.focus-row b { grid-area: name; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-score { grid-area: score; font-size: 18px; font-variant-numeric: tabular-nums; }
.focus-grade { grid-area: grade; color: var(--cyan); font-weight: 700; }
.focus-exec, .focus-trigger { font-size: 12px; line-height: 1.35; }
.focus-exec { grid-area: exec; color: #8ea0b5; }
.focus-trigger { grid-area: trigger; color: #d5e6f2; }
.focus-risk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.focus-risk article { border: 1px solid #1c3148; background: rgba(7, 12, 22, .72); padding: 8px 12px; min-width: 0; }
.focus-risk h2 { margin: 0 0 4px; font-size: 11px; letter-spacing: .14em; color: #9fb4c8; }
.focus-risk p { margin: 0; font-size: 14px; line-height: 1.4; max-height: 2.8em; overflow: auto; }
.focus-risk .quiet { color: #8ea0b5; letter-spacing: .12em; }
.focus-risk .hot { color: #ffb020; }
.focus-lights { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.focus-light { --accent: #9fb4c8; min-width: 0; display: grid; justify-items: center; gap: 3px; text-decoration: none; color: var(--accent); }
.focus-light i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.focus-light:not(.live) i { opacity: .38; box-shadow: none; }
.focus-light b, .focus-light span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-light b { font-size: 12px; font-weight: 600; }
.focus-light span { font-size: 11px; color: #9fb4c8; }
.focus-light.coral { --accent: var(--coral); }
.focus-light.orange { --accent: var(--orange); }
.focus-light.purple { --accent: var(--purple); }
.focus-light.yellow { --accent: var(--yellow); }
.focus-light.pink { --accent: var(--pink); }
.focus-light.blue { --accent: var(--blue); }
.focus-light.teal { --accent: var(--teal); }
.focus-light.green { --accent: var(--green); }
.focus-light.amber { --accent: #ffb020; }
.focus-light.steel { --accent: #7ec8ff; }
.focus-drawers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: start; }
.focus-drawer { border: 1px solid #1c3148; background: rgba(7, 12, 22, .86); padding: 6px 10px; min-width: 0; }
.focus-drawer summary { cursor: pointer; color: #9fb4c8; letter-spacing: .12em; font-size: 12px; }
.focus-drawer .drawer-body { max-height: 22vh; overflow: auto; margin-top: 6px; }
.focus-drawer a { color: var(--cyan); }
@media (max-height: 760px) {
  body.focus-mode .focus-home { gap: 8px; }
  body.focus-mode .focus-word { font-size: 56px; }
  body.focus-mode .focus-meta b { font-size: 26px; }
  body.focus-mode .focus-row { padding: 4px 0; }
  body.focus-mode .focus-reason { font-size: 14px; }
}
@media (max-width: 800px) {
  body.focus-mode.fit-home { overflow: auto; height: auto; }
  body.focus-mode.fit-home .app { height: auto; overflow: visible; }
  body.focus-mode .focus-home { display: flex; flex-direction: column; height: auto; overflow: visible; gap: 16px; }
  .focus-head { flex-wrap: wrap; }
  .focus-head .desk-nav { flex-basis: 100%; }
  .focus-hero { grid-template-columns: 1fr; grid-template-areas: "kicker" "word" "meta" "reason"; align-items: start; }
  .focus-meta { padding-bottom: 0; }
  .focus-word { font-size: 64px; }
  .focus-lists, .focus-risk, .focus-drawers { display: grid; grid-template-columns: 1fr; }
  .focus-list { overflow: visible; }
  .focus-lights { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 12px; }
  .focus-drawer .drawer-body { max-height: none; }
  .focus-risk p { max-height: none; }
}

body.alpha-mode { background: #07101d; background-image: none; color: #e7f2ff; }
body.alpha-mode.fit-home { overflow: auto; height: auto; }
body.alpha-mode.fit-home .app { height: auto; overflow: visible; max-width: none; }
.alpha-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100dvh; }
.alpha-side { position: sticky; top: 0; height: 100dvh; overflow: auto; padding: 16px 12px 24px; background: linear-gradient(180deg, #0b1730 0%, #08101f 100%); border-right: 1px solid rgba(90, 170, 255, .28); }
.alpha-brand { display: block; text-decoration: none; margin-bottom: 14px; }
.alpha-brand b { display: block; color: #7ec8ff; letter-spacing: .12em; font-size: 18px; text-shadow: 0 0 12px rgba(62, 198, 255, .65); }
.alpha-brand span, .alpha-side-label, .a-src, .a-note, .a-page-head p { color: #8ea4c0; font-size: 12px; line-height: 1.45; }
.alpha-nav { display: grid; gap: 2px; }
.alpha-nav a, body.alpha-mode .tabs a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #c5d7ea; font-size: 13px; padding: 7px 8px; border-radius: 8px; }
.alpha-nav a i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #07101d; background: #7ec8ff; box-shadow: 0 0 8px rgba(126, 200, 255, .8); }
.alpha-nav a.on, body.alpha-mode .tabs a.on { background: rgba(62, 160, 255, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(126, 200, 255, .45); }
.alpha-side-label { margin: 16px 8px 4px; letter-spacing: .14em; }
body.alpha-mode .tabs { display: grid; position: static; grid-template-columns: 1fr; gap: 2px; padding: 0; background: transparent; border: 0; }
body.alpha-mode .tabs svg { width: 14px; height: 14px; }
body.alpha-mode .tab-short { display: none; }
.alpha-main { min-width: 0; overflow-x: hidden; }
.a-screen, .a-screen-main, .a-screen-side, .a-split, .a-card, .a-page { min-width: 0; }
.a-scroll { overflow: auto; max-width: 100%; }
.alpha-ticker { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 8px 16px; background: rgba(7, 16, 32, .92); border-bottom: 1px solid rgba(90, 170, 255, .28); backdrop-filter: blur(8px); }
.a-ticks { display: flex; flex-wrap: wrap; gap: 14px; }
.a-tick { display: inline-flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; }
.a-tick em { color: #8ea4c0; font-style: normal; font-size: 12px; }
.a-tick b { font-size: 14px; }
.a-tick i { font-style: normal; font-size: 12px; }
.a-tick-meta { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 12px; color: #8ea4c0; }
.a-lock, .a-lockline { color: #ffb020; border: 1px solid rgba(255, 176, 32, .7); padding: 2px 8px; border-radius: 999px; }
body.alpha-mode .app { width: 100%; max-width: none; margin: 0; padding: 16px 16px 48px; }
.a-page-head { margin-bottom: 12px; }
.a-page-head h1, .a-card h2, .a-card h3 { margin: 0; }
.a-page-head h1 { font-size: 26px; letter-spacing: .04em; }
.a-card { position: relative; margin-bottom: 12px; padding: 14px; border: 1px solid rgba(90, 170, 255, .32); border-radius: 14px; background: radial-gradient(1200px 180px at 10% 0%, rgba(62, 140, 255, .16), transparent 40%), rgba(10, 20, 40, .88); box-shadow: 0 0 24px rgba(40, 120, 255, .08), inset 0 0 30px rgba(0, 0, 0, .25); }
.a-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.a-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #12325f; color: #7ec8ff; font-size: 12px; box-shadow: 0 0 10px rgba(126, 200, 255, .7); }
.a-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; align-items: start; }
.a-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.a-kpi { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(90, 170, 255, .28); background: rgba(8, 18, 36, .8); }
.a-kpi p, .a-kpi small { margin: 0; color: #8ea4c0; font-size: 12px; }
.a-kpi b { display: block; margin: 4px 0; font-size: 22px; font-variant-numeric: tabular-nums; }
.a-hero { display: grid; grid-template-columns: 1.4fr auto; gap: 12px; text-decoration: none; color: inherit; padding: 8px; border-radius: 12px; }
.a-hero strong { display: block; font-size: 64px; line-height: 1; letter-spacing: .08em; }
.a-hero.long strong, .a-wheel-core strong.long { color: #ff4d57; text-shadow: 0 0 18px rgba(255, 77, 87, .45); }
.a-hero.short strong, .a-wheel-core strong.short { color: #1ed760; text-shadow: 0 0 18px rgba(30, 215, 96, .4); }
.a-hero.watch strong, .a-wheel-core strong.watch { color: #ffb020; }
.a-hero em, .a-stance { color: #d5e6f2; font-style: normal; }
.a-hero-meta { display: flex; gap: 16px; align-items: center; }
.a-hero-meta span { display: grid; }
.a-hero-meta small { color: #8ea4c0; }
.a-hero-meta b { font-size: 28px; }
.a-gauge { position: relative; width: 112px; height: 112px; }
.a-gauge svg { width: 100%; height: 100%; }
.a-gauge .track { fill: none; stroke: rgba(126, 200, 255, .18); stroke-width: 8; }
.a-gauge .arc { fill: none; stroke: #3ec6ff; stroke-width: 8; stroke-linecap: round; filter: drop-shadow(0 0 6px #3ec6ff); }
.a-gauge-label { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.a-gauge-label b { font-size: 22px; }
.a-gauge-label small { color: #8ea4c0; }
.a-ops, .a-votes, .a-list, .a-bars { list-style: none; margin: 0; padding: 0; }
.a-op { border-bottom: 1px solid rgba(90, 170, 255, .12); }
.a-op a, .a-op-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; width: 100%; text-decoration: none; color: inherit; padding: 6px 0; }
.a-op p, .a-votes p, .a-list p { margin: 2px 0 0; color: #8ea4c0; font-size: 12px; }
.a-op p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.orb { width: 32px; height: 32px; border-radius: 50%; display: block; box-shadow: 0 0 12px currentColor; background: radial-gradient(circle at 35% 35%, #fff, currentColor 42%, #06101c 74%); }
.orb.coral { color: var(--coral); }
.orb.orange { color: var(--orange); }
.orb.purple { color: var(--purple); }
.orb.yellow { color: var(--yellow); }
.orb.pink { color: var(--pink); }
.orb.blue { color: var(--blue); }
.orb.teal { color: var(--teal); }
.orb.green { color: var(--green); }
.orb.amber { color: #ffb020; }
.orb.steel { color: #7ec8ff; }
.a-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a-risk-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.a-map { position: relative; height: 180px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(62, 160, 255, .18), transparent 60%), #071427; }
.a-map .blob { position: absolute; border-radius: 40% 60% 50% 50%; background: rgba(80, 160, 255, .28); box-shadow: 0 0 18px rgba(80, 160, 255, .35); }
.a-map .b1 { width: 34%; height: 46%; left: 18%; top: 28%; }
.a-map .b2 { width: 22%; height: 38%; left: 48%; top: 22%; }
.a-map .b3 { width: 16%; height: 28%; right: 14%; top: 30%; }
.a-map .b4 { width: 12%; height: 18%; left: 30%; bottom: 12%; }
.a-indices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a-indices article { padding: 8px; border: 1px solid rgba(90, 170, 255, .2); border-radius: 10px; }
.a-indices p, .a-indices small { margin: 0; color: #8ea4c0; font-size: 12px; }
.a-indices b { display: block; font-size: 20px; }
.a-screen { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; align-items: start; }
.a-screen > .a-card:first-child { grid-column: 1 / -1; }
.a-screen > .a-card:first-child .a-body { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.a-fit { table-layout: fixed; width: 100%; }
.a-fit th, .a-fit td { overflow: hidden; text-overflow: ellipsis; }
.a-links { white-space: normal; font-size: 12px; }
.a-links a { margin-right: 6px; }
.a-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.a-pills button, .a-form button, .a-body button { border: 1px solid rgba(126, 200, 255, .4); background: #0d2244; color: #e7f2ff; border-radius: 999px; padding: 4px 10px; }
.a-pills button.on { background: #1a5ea8; box-shadow: 0 0 10px rgba(62, 198, 255, .45); }
.a-pills.dead button, .a-body button:disabled { opacity: .45; cursor: not-allowed; }
.a-search, .a-form label { display: grid; gap: 4px; color: #8ea4c0; font-size: 12px; }
.a-search input, .a-form input, .a-form select, body.alpha-mode input, body.alpha-mode select { background: #071427; color: #e7f2ff; border: 1px solid rgba(126, 200, 255, .35); border-radius: 8px; padding: 6px 8px; }
.a-scroll { overflow: auto; }
.a-empty { color: #8ea4c0; }
.a-bars li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 36px; gap: 6px; align-items: center; margin: 4px 0; font-size: 12px; }
.a-bars i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #1a5ea8, #7ec8ff); box-shadow: 0 0 8px rgba(126, 200, 255, .6); }
.a-top { margin: 0; padding-left: 18px; }
.a-wheel { position: relative; min-height: 460px; }
.a-seat { position: absolute; width: 76px; transform: translate(-50%, -50%); text-align: center; text-decoration: none; color: inherit; }
.a-seat b, .a-seat span { display: block; font-size: 12px; }
.a-wheel-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.a-wheel-core strong { display: block; font-size: 28px; }
.a-donut { width: 180px; height: 180px; border-radius: 50%; margin: 8px auto; box-shadow: 0 0 18px rgba(62, 198, 255, .25); }
.a-back { margin: 0 0 8px; }
.a-page .topbar, .a-page .home-top, .a-page .focus-head { display: none; }
.a-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 8px; }
.a-focus h3.sq-green { color: #7ec8ff; }
.a-focus h3.sq-amber { color: #ffb020; }
@media (max-width: 1100px) {
  .a-split, .a-screen, .a-kpis, .a-focus, .a-risk-row, .a-indices { grid-template-columns: 1fr; }
  .alpha-shell { grid-template-columns: 1fr; }
  .alpha-side { position: static; height: auto; }
  .alpha-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-hero { grid-template-columns: 1fr; }
  .a-hero strong { font-size: 48px; }
}
