:root {
  color-scheme: dark;
  /* A: 這套原本就是基準色，改成引用 tq-theme.css，值不變。 */
  --ink: var(--tq-ink);
  --ink-2: var(--tq-ink-2);
  --panel: var(--tq-panel);
  --panel-soft: var(--tq-panel-soft);
  --gold: var(--tq-gold);
  --gold-2: var(--tq-gold-2);
  --line: var(--tq-line);
  --text: var(--tq-text);
  --muted: var(--tq-muted);
  --good: var(--tq-good);
  --bad: var(--tq-bad);
  --accent: var(--tq-accent);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #03090e; color: var(--text); }
body { font-family: "Noto Serif TC", "Microsoft JhengHei", serif; overflow-x: hidden; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.volume-app {
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #18313d 0, #07131b 46%, #03080c 100%);
}

.top-hud {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  min-height: calc(68px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) clamp(12px, 3vw, 28px) 10px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(3, 10, 15, .98), rgba(5, 17, 24, .88));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.round-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 17, 24, .88);
  color: var(--gold-2);
  font-size: var(--tq-fs-display, 30px);
  cursor: pointer;
}
.round-button:active { transform: scale(.94); }
.round-button:focus-visible, .volume-nav button:focus-visible, .world-object:focus-visible, .detail-actions > *:focus-visible {
  outline: 3px solid rgba(139, 217, 233, .82);
  outline-offset: 3px;
}

.title-stack { min-width: 0; }
.title-stack small { display: block; color: var(--gold); font-size: var(--tq-fs-note, 13px); letter-spacing: .2em; }
.title-stack strong { display: block; margin-top: 2px; font-size: clamp(19px, 4.6vw, 27px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.freshness { max-width: 155px; color: var(--muted); font: 12px/1.25 "Microsoft JhengHei", sans-serif; text-align: right; }

.volume-nav {
  position: fixed;
  z-index: 32;
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  bottom: calc(8px + var(--safe-bottom));
  min-height: 66px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  background: rgba(4, 14, 20, .94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 50px #000b;
  backdrop-filter: blur(16px);
}
.volume-nav button {
  min-width: 0;
  min-height: 54px;
  padding: 4px 2px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.volume-nav i {
  width: 30px;
  height: 30px;
  margin: 0 auto 1px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 180, 96, .3);
  border-radius: 50%;
  color: var(--gold);
  font-style: normal;
  font-size: var(--tq-fs-value, 17px);
}
.volume-nav span { display: block; font-size: var(--tq-fs-note, 13px); white-space: nowrap; }
.volume-nav button[aria-selected="true"] { color: var(--gold-2); background: linear-gradient(180deg, rgba(211, 171, 75, .2), rgba(211, 171, 75, .04)); }
.volume-nav button[aria-selected="true"] i { border-color: var(--gold); box-shadow: 0 0 16px #dcb85b88, inset 0 0 12px #dcb85b33; }

.scene {
  --scene-image: none;
  position: relative;
  width: min(1180px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(92px + var(--safe-top)) clamp(14px, 3vw, 36px) calc(116px + var(--safe-bottom));
  overflow: hidden;
  isolation: isolate;
  background-image: var(--scene-image);
  background-size: cover;
  background-position: center;
}
.scene::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--scene-image) center / cover no-repeat;
  transform: scale(1.03);
  animation: sceneBreath 14s ease-in-out infinite alternate;
}
.scene-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 9, 14, .26), rgba(2, 9, 14, .06) 34%, rgba(2, 9, 14, .42) 72%, rgba(2, 9, 14, .94));
}

.scene-heading {
  width: min(560px, 92%);
  padding: 16px 18px;
  background: linear-gradient(100deg, rgba(5, 17, 24, .9), rgba(5, 17, 24, .35));
  border-left: 3px solid var(--gold);
  border-radius: 0 22px 22px 0;
  text-shadow: 0 2px 12px #000;
}
.scene-heading small { color: var(--gold); font-size: var(--tq-fs-body, 15px); letter-spacing: .22em; }
.scene-heading h1 { margin: 4px 0; color: var(--gold-2); font-size: clamp(32px, 8vw, 58px); letter-spacing: .08em; }
.scene-heading p { margin: 0; color: #e2ded1; font: 14px/1.65 "Microsoft JhengHei", sans-serif; }

.world-layer { position: relative; min-height: clamp(380px, 60dvh, 640px); margin-top: 6px; }
.world-layer.is-wheel { min-height: 650px; }
.sector-wheel-shell { width: min(720px, 100%); margin: 8px auto 0; }
.wheel-horizon-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }
.wheel-horizon-nav button { min-width: 70px; min-height: 44px; border: 1px solid rgba(214,180,96,.35); border-radius: 13px; background: rgba(5,18,24,.9); color: #dcd2b7; cursor: pointer; }
.wheel-horizon-nav button[aria-pressed="true"] { border-color: var(--gold-2); color: var(--gold-2); background: linear-gradient(180deg,rgba(89,73,34,.8),rgba(8,24,29,.95)); box-shadow: inset 0 0 18px rgba(229,189,84,.15); }
.sector-wheel-stage { position: relative; width: min(510px, 96vw); aspect-ratio: 1 / .78; margin: auto; }
.sector-wheel-orbit { position: absolute; inset: 10% 17% 4%; border: 1px solid rgba(224,184,86,.45); border-radius: 50%; box-shadow: inset 0 0 42px rgba(215,173,69,.08), 0 0 36px rgba(55,181,180,.08); animation: wheelTurn 22s linear infinite; }
.sector-wheel-orbit::before, .sector-wheel-orbit::after { content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(239,211,123,.22); border-radius: 50%; }
.sector-wheel-orbit::after { inset: 31%; border-style: solid; box-shadow: 0 0 24px rgba(239,211,123,.12); }
.wheel-slot { position: absolute; z-index: 2; width: 118px; min-height: 78px; padding: 9px; border: 1px solid rgba(220,178,74,.62); border-radius: 50% 50% 44% 44%; background: radial-gradient(circle at 50% 25%, rgba(84,75,46,.78), rgba(7,20,25,.94) 65%); color: #eaddb9; box-shadow: 0 8px 24px #0009, inset 0 0 20px rgba(227,190,93,.1); cursor: pointer; transform: translate(-50%,-50%); }
.wheel-slot small, .wheel-slot strong, .wheel-slot span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wheel-slot small { color: var(--gold); font: 700 10px/1 ui-monospace,monospace; }
.wheel-slot strong { margin-top: 5px; color: #fff0bd; font-size: var(--tq-fs-body, 15px); }
.wheel-slot span { margin-top: 4px; color: var(--muted); font: 10px/1.2 "Microsoft JhengHei",sans-serif; }
.wheel-slot:active { scale: .97; filter: brightness(1.24); }
.wheel-slot:disabled { cursor: default; }
.wheel-slot.state-missing { border-style: dashed; filter: saturate(.35); opacity: .64; }
.wheel-slot.state-forecast { background: radial-gradient(circle at 48% 28%, rgba(81,131,145,.58), rgba(7,20,28,.92) 68%); animation: futureDust 1.2s ease-out 1; }
.wheel-slot.state-current { width: 136px; min-height: 90px; border-color: #f1d77e; box-shadow: 0 0 0 5px rgba(226,185,80,.09), 0 0 32px rgba(226,185,80,.26), inset 0 0 23px rgba(226,185,80,.14); }
.wheel-slot.slot-0 { left: 18%; top: 72%; }
.wheel-slot.slot-1 { left: 25%; top: 25%; }
.wheel-slot.slot-2 { left: 50%; top: 13%; }
.wheel-slot.slot-3 { left: 75%; top: 25%; }
.wheel-slot.slot-4 { left: 82%; top: 72%; }
.wheel-core { position: absolute; z-index: 3; left: 50%; top: 55%; width: 146px; min-height: 116px; display: grid; place-items: center; align-content: center; gap: 5px; translate: -50% -50%; border: 2px solid #e6c46f; border-radius: 50%; background: radial-gradient(circle at 45% 28%, #31505a, #071219 70%); color: inherit; box-shadow: 0 0 0 8px rgba(226,185,80,.08), 0 0 35px rgba(226,185,80,.26); cursor: pointer; }
.wheel-core b { color: #68ddc4; font: 800 13px ui-monospace,monospace; letter-spacing: .12em; }
.wheel-core strong { max-width: 118px; overflow: hidden; color: var(--gold-2); font-size: var(--tq-fs-value, 17px); text-overflow: ellipsis; white-space: nowrap; }
.wheel-core small { color: #d7c999; font: 10px "Microsoft JhengHei",sans-serif; }
.wheel-stats { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid rgba(214,180,96,.28); border-radius: 16px; background: rgba(3,14,20,.84); }
.wheel-stats > div { min-width: 0; padding: 10px; text-align: center; border-right: 1px solid rgba(214,180,96,.18); }
.wheel-stats > div:last-child { border: 0; }
.wheel-stats small, .wheel-stats strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wheel-stats small { color: var(--muted); font-size: var(--tq-fs-note, 13px); }
.wheel-stats strong { margin-top: 4px; color: var(--gold-2); font: 700 14px ui-monospace,monospace; }
.wheel-calibration { margin: 7px 2px 10px; color: #d7cba8; font: 10px/1.5 "Microsoft JhengHei",sans-serif; text-align: center; }
.wheel-ranking { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.wheel-ranking button { min-height: 52px; display: grid; grid-template-columns: 28px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 7px 10px; border: 1px solid rgba(214,180,96,.22); border-radius: 13px; background: rgba(5,18,24,.88); text-align: left; cursor: pointer; }
.wheel-ranking i { grid-row: 1/3; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-2); font-style: normal; }
.wheel-ranking strong { overflow: hidden; color: #eedca9; font-size: var(--tq-fs-note, 13px); text-overflow: ellipsis; white-space: nowrap; }
.wheel-ranking span { color: var(--muted); font: 9px ui-monospace,monospace; }
.sector-wheel-shell.status-stale .sector-wheel-orbit, .sector-wheel-shell.status-error .sector-wheel-orbit { animation-play-state: paused; filter: saturate(.3); }
.world-object {
  --object-accent: var(--accent);
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: clamp(72px, 17vw, 106px);
  min-height: 80px;
  padding: 9px 6px 7px;
  border: 1px solid color-mix(in srgb, var(--object-accent) 70%, var(--gold));
  border-radius: 46% 54% 52% 48%;
  background: radial-gradient(circle at 42% 35%, rgba(244, 238, 194, .22), rgba(7, 24, 32, .91) 58%);
  box-shadow: 0 0 0 5px rgba(4, 18, 26, .35), 0 10px 30px #0009, inset 0 0 18px color-mix(in srgb, var(--object-accent) 22%, transparent);
  color: var(--object-accent);
  cursor: pointer;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.world-object::before, .world-object::after { content: ""; position: absolute; pointer-events: none; }
.world-object::before { inset: -8px; border: 1px solid color-mix(in srgb, var(--object-accent) 45%, transparent); border-radius: 50%; }
.world-object::after { width: 7px; height: 7px; border-radius: 50%; background: var(--object-accent); box-shadow: 0 0 10px var(--object-accent); }
.world-object:active { filter: brightness(1.3); }
.world-object svg { width: 38px; height: 38px; display: block; margin: auto; overflow: visible; }
.world-object strong { display: block; max-width: 100%; margin-top: 3px; color: #fff3c8; font-size: var(--tq-fs-note, 13px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world-object small { display: block; color: #d4d8d4; font: 10px/1.2 "Microsoft JhengHei", sans-serif; }

.motion-orbit { animation: orbitSmall 7.2s linear infinite; }
.motion-orbit::before { border-style: dashed; animation: ringTurn 5.8s linear infinite; }
.motion-bob { animation: bobTwist 4.7s ease-in-out infinite; }
.motion-glide { animation: featherGlide 6.8s ease-in-out infinite; }
.motion-surge { animation: surgeOut 3.8s cubic-bezier(.37,0,.24,1) infinite; }
.motion-scan { animation: scanHover 5.2s ease-in-out infinite; }
.motion-scan::before { border-style: dotted; animation: ringTurn 4.2s linear infinite reverse; }
.motion-pivot { animation: pivotCross 6.1s ease-in-out infinite; }
.motion-drain { animation: drainSink 5.4s ease-in-out infinite; }
.motion-drain::after { background: var(--bad); }
.motion-cruise { animation: shipCruise 8s ease-in-out infinite; }
.motion-headwind { animation: shipHeadwind 5.8s ease-in-out infinite; }
.motion-dock { animation: shipDock 6.4s ease-in-out infinite; }
.motion-awake { animation: gateAwake 5.6s ease-in-out infinite; }
.motion-dormant { animation: gateDormant 7s ease-in-out infinite; filter: saturate(.62); }
.motion-beacon { animation: gateBeacon 4.9s ease-in-out infinite; }
.motion-shimmer { animation: metalShimmer 4.8s ease-in-out infinite; }
.motion-flicker { animation: fireFlicker 2.9s ease-in-out infinite; }
.motion-ripple { animation: waterRipple 5.9s ease-in-out infinite; }

.scene-verdict {
  position: absolute;
  left: clamp(14px, 3vw, 36px);
  right: clamp(14px, 3vw, 36px);
  bottom: calc(100px + var(--safe-bottom));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px #0008;
}
.scene-verdict small { display: block; color: var(--muted); font-size: var(--tq-fs-note, 13px); }
.scene-verdict strong { color: var(--gold-2); font-size: var(--tq-fs-strong, 20px); }
.scene-verdict p { margin: 0; color: #ddd9cc; font: 12px/1.45 "Microsoft JhengHei", sans-serif; }

.state-panel {
  position: absolute;
  z-index: 12;
  inset: 50% auto auto 50%;
  width: min(330px, calc(100% - 36px));
  padding: 24px;
  text-align: center;
  transform: translate(-50%, -50%);
  background: rgba(4, 16, 23, .94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px #000c;
}
.state-panel[hidden], .state-panel.is-hidden { display: none; }
.state-emblem { width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); animation: ringTurn 6s linear infinite; }
.state-panel strong { display: block; font-size: var(--tq-fs-title, 26px); }
.state-panel p { color: var(--muted); font: 13px/1.6 "Microsoft JhengHei", sans-serif; }
.state-panel button { min-height: 44px; padding: 0 20px; border: 1px solid var(--gold); border-radius: 14px; background: #152a33; color: var(--gold-2); }

.source-strip { display: none; }

.drawer[hidden] { display: none; }
.drawer { position: fixed; z-index: 50; inset: 0; }
.drawer-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0, 4, 8, .65); backdrop-filter: blur(5px); }
.detail-sheet {
  position: absolute;
  inset: auto 0 0;
  max-height: min(78dvh, 720px);
  padding: 8px clamp(18px, 5vw, 34px) calc(22px + var(--safe-bottom));
  overflow: auto;
  background: linear-gradient(180deg, #102630, #061118 48%);
  border: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -24px 70px #000b;
  animation: sheetIn .24s ease-out both;
}
.grabber { width: 46px; height: 4px; margin: 2px auto 12px; border-radius: 4px; background: #d9c88f99; }
.detail-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-sheet small { color: var(--gold); }
.detail-sheet h2 { margin: 3px 0 0; color: var(--gold-2); font-size: clamp(25px, 7vw, 38px); }
.detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 17px; }
.detail-metrics div { min-width: 0; padding: 10px; background: rgba(2, 12, 18, .75); border: 1px solid rgba(214, 180, 96, .26); border-radius: 13px; }
.detail-metrics small, .detail-metrics b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-metrics b { margin-top: 5px; font: 700 15px/1.2 ui-monospace, Consolas, monospace; }
.positive { color: var(--good) !important; }
.negative { color: var(--bad) !important; }
.detail-introduction, .detail-news { margin-top: 16px; }
.detail-introduction h3, .detail-news h3 { margin: 0 0 8px; color: var(--gold-2); font: 700 14px/1.3 "Microsoft JhengHei", sans-serif; letter-spacing: .08em; }
.detail-summary { margin: 0; color: #e1ddd1; font: 14px/1.7 "Microsoft JhengHei", sans-serif; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-tags span { padding: 5px 9px; border: 1px solid rgba(214, 180, 96, .28); border-radius: 999px; color: #d9d0b6; font: 11px "Microsoft JhengHei", sans-serif; }
.detail-news > div { display: grid; gap: 7px; }
.news-item { min-height: 48px; display: grid; align-content: center; gap: 4px; padding: 9px 12px; border: 1px solid rgba(214, 180, 96, .22); border-radius: 12px; background: rgba(2, 12, 18, .68); color: #ece2c8; text-decoration: none; }
.news-item:hover { border-color: rgba(239, 211, 123, .62); background: rgba(15, 34, 42, .88); }
.news-item:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.news-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px/1.35 "Microsoft JhengHei", sans-serif; }
.news-item small, .news-empty { margin: 0; color: var(--muted); font: 11px/1.45 "Microsoft JhengHei", sans-serif; }
.detail-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 18px; }
.detail-actions > * { min-height: 48px; display: grid; place-items: center; border-radius: 15px; cursor: pointer; }
.detail-actions .secondary { border: 1px solid var(--line); background: #0d2029; color: var(--gold-2); }
.detail-actions .primary { border: 1px solid #efd37b; background: linear-gradient(135deg, #d7aa49, #f0d27b); color: #10202a; font-weight: 800; }
.detail-actions .primary[aria-disabled="true"] { pointer-events: none; filter: grayscale(.8); opacity: .54; }
.action-note { margin: 8px 2px 0; color: var(--muted); font: 11px/1.5 "Microsoft JhengHei", sans-serif; }

.codex-view[hidden] { display: none; }
.detail-sheet.is-codex {
  inset: max(8px, var(--safe-top)) 6px max(8px, var(--safe-bottom));
  max-height: none;
  padding: 8px clamp(14px, 4vw, 34px) calc(18px + var(--safe-bottom));
  background:
    linear-gradient(180deg, rgba(4, 15, 21, .76), rgba(3, 11, 16, .96) 34%, #061118 78%),
    var(--codex-image) center / cover fixed;
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(235, 202, 117, .12), 0 28px 90px #000d;
}
.detail-sheet.is-codex > header { position: sticky; z-index: 5; top: -8px; margin: 0 -6px; padding: 10px 6px 12px; background: linear-gradient(180deg, rgba(5, 17, 23, .98), rgba(5, 17, 23, .88) 78%, transparent); backdrop-filter: blur(12px); }
.detail-sheet.is-codex .grabber { position: sticky; z-index: 6; top: 0; }
.codex-hero { position: relative; min-height: 190px; display: grid; align-content: end; gap: 7px; margin: 4px 0 14px; padding: 26px clamp(18px, 5vw, 44px); overflow: hidden; border: 1px solid rgba(223, 188, 99, .38); border-radius: 22px; background: linear-gradient(125deg, rgba(5, 19, 27, .95), rgba(8, 31, 39, .64) 58%, rgba(194, 148, 61, .14)); }
.codex-hero::before { content: "卷"; position: absolute; right: 5%; top: 50%; translate: 0 -50%; color: rgba(239, 211, 123, .09); font: 800 clamp(100px, 26vw, 220px)/1 serif; }
.codex-hero h3 { position: relative; margin: 0; color: var(--gold-2); font-size: clamp(25px, 6vw, 48px); }
.codex-hero p { position: relative; max-width: 760px; margin: 0; color: #e4dfd0; font: 14px/1.7 "Microsoft JhengHei", sans-serif; }
.codex-tabs { position: sticky; z-index: 4; top: 62px; display: flex; gap: 7px; margin: 0 0 12px; padding: 8px; overflow-x: auto; scrollbar-width: none; border: 1px solid rgba(214, 180, 96, .26); border-radius: 16px; background: rgba(3, 14, 20, .92); backdrop-filter: blur(14px); }
.codex-tabs::-webkit-scrollbar { display: none; }
.codex-tabs button { flex: 0 0 auto; min-width: 70px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(214, 180, 96, .27); border-radius: 13px; background: linear-gradient(180deg, rgba(31, 49, 54, .84), rgba(7, 22, 28, .92)); color: #eadcb8; cursor: pointer; }
.codex-tabs button:active { transform: translateY(1px) scale(.98); filter: brightness(1.22); }
.codex-tabs button:focus-visible, .codex-actions > *:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.codex-sections { display: grid; gap: 14px; }
.codex-section { scroll-margin-top: 124px; padding: clamp(15px, 3vw, 25px); border: 1px solid rgba(214, 180, 96, .25); border-radius: 20px; background: linear-gradient(130deg, rgba(3, 14, 20, .9), rgba(8, 28, 34, .78)); box-shadow: inset 3px 0 0 rgba(220, 178, 74, .45); }
.codex-section > header { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px; align-items: center; margin-bottom: 14px; }
.codex-section > header i { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-2); font-style: normal; box-shadow: 0 0 18px rgba(220, 178, 74, .18); }
.codex-section h4 { margin: 0; color: var(--gold-2); font-size: var(--tq-fs-strong, 20px); letter-spacing: .08em; }
.codex-section header p { margin: 3px 0 0; color: var(--muted); font: 11px/1.5 "Microsoft JhengHei", sans-serif; }
.codex-value-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid rgba(214, 180, 96, .18); }
.codex-value-grid > div { min-width: 0; padding: 13px 10px; border-bottom: 1px solid rgba(214, 180, 96, .12); }
.codex-value-grid small, .codex-value-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.codex-value-grid small { color: #b9af96; font-size: var(--tq-fs-note, 13px); }
.codex-value-grid strong { margin-top: 4px; color: #f0ead8; font: 700 16px/1.25 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.codex-list { display: grid; margin-top: 12px; }
.codex-list > div { min-height: 46px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px dashed rgba(214, 180, 96, .2); }
.codex-list strong { overflow: hidden; color: #e9d5a1; font: 700 12px/1.35 "Microsoft JhengHei", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.codex-list span { color: #d8d4c9; font: 11px/1.4 ui-monospace, Consolas, monospace; text-align: right; }
.codex-runes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.codex-runes span { padding: 6px 10px; border: 1px solid rgba(214, 180, 96, .28); border-radius: 999px; color: #e6d6aa; font-size: var(--tq-fs-body, 15px); }
.codex-prose, .codex-empty { margin: 0; color: #e3ddd0; font: 14px/1.75 "Microsoft JhengHei", sans-serif; }
.codex-empty { color: var(--muted); }
.profile-chronicle { position: relative; display: grid; gap: 0; }
.profile-chronicle::before { content: ""; position: absolute; left: 20px; top: 25px; bottom: 25px; width: 1px; background: linear-gradient(transparent, rgba(239,211,123,.72) 12%, rgba(85,199,190,.46) 72%, transparent); box-shadow: 0 0 12px rgba(239,211,123,.18); }
.profile-chapter { position: relative; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 10px 0; animation: chapterWake .42s calc(var(--chapter-index) * 70ms) both; }
.profile-chapter i { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(239,211,123,.72); border-radius: 50%; background: radial-gradient(circle at 36% 30%, #304851, #071820 66%); color: var(--gold-2); font: 700 15px/1 serif; box-shadow: 0 0 0 4px rgba(4,16,23,.88), 0 0 20px rgba(220,178,74,.14); }
.profile-chapter div { min-width: 0; padding: 9px 13px 11px; border: 1px solid rgba(214,180,96,.16); border-radius: 4px 16px 16px 16px; background: linear-gradient(110deg, rgba(24,39,41,.82), rgba(4,17,23,.46)); }
.profile-chapter h5 { margin: 0 0 5px; color: #efd995; font: 700 12px/1.3 "Microsoft JhengHei", sans-serif; letter-spacing: .12em; }
.profile-chapter p { margin: 0; color: #e1ddd1; font: 13px/1.72 "Microsoft JhengHei", sans-serif; text-wrap: pretty; }
.profile-source { margin: 11px 2px 0; color: var(--muted); font: 10px/1.5 ui-monospace, Consolas, monospace; }
.stock-chart-wrap { display: grid; gap: 10px; }
.market-range-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.market-range-bar > button, .market-custom-range button, .chart-zoom-controls button { min-width: 52px; min-height: 44px; border: 1px solid rgba(214,180,96,.32); border-radius: 11px; background: rgba(4,17,23,.9); color: #ded6c1; cursor: pointer; }
.market-range-bar > button[aria-pressed="true"] { border-color: var(--gold-2); color: var(--gold-2); box-shadow: inset 0 0 16px rgba(225,182,72,.12); }
.market-custom-range { flex: 1 1 310px; display: grid; grid-template-columns: minmax(112px,1fr) minmax(112px,1fr) auto; gap: 6px; }
.market-custom-range input { min-width: 0; min-height: 44px; padding: 0 8px; border: 1px solid rgba(214,180,96,.26); border-radius: 11px; background: #06141b; color: #e8dfc8; color-scheme: dark; }
.stock-layer-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.stock-layer-controls button { min-height: 46px; padding: 5px; border: 1px solid rgba(214,180,96,.3); border-radius: 12px; background: rgba(4,17,23,.88); color: #d8d1bd; font-size: var(--tq-fs-body, 15px); cursor: pointer; }
.stock-layer-controls button[aria-pressed="true"] { border-color: #efd37b; color: var(--gold-2); box-shadow: inset 0 0 18px rgba(225,182,72,.1); }
.stock-layer-controls button:disabled { cursor: default; filter: grayscale(1); opacity: .42; }
.chart-zoom-controls { grid-column: 1/-1; display: flex; justify-content: flex-end; gap: 6px; }
.chart-zoom-controls button { min-width: 44px; }
.vwap-mode-controls { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 6px; border: 1px solid rgba(214,180,96,.2); border-radius: 14px; background: rgba(1,10,15,.55); }
.vwap-mode-controls button { min-width: 0; min-height: 42px; }
.chart-viewport { max-width: 100%; overflow: auto hidden; border: 1px solid rgba(139,217,233,.16); border-radius: 15px; background: linear-gradient(180deg,rgba(3,14,20,.82),rgba(4,19,25,.55)); overscroll-behavior-inline: contain; }
.stock-integrated-chart { width: 100%; min-width: 100%; min-height: 260px; display: block; transition: width .2s ease; touch-action: pan-x pan-y pinch-zoom; }
.stock-chart-wrap.is-expanded { position: fixed; z-index: 1200; inset: max(6px,var(--safe-top)) 6px max(6px,var(--safe-bottom)); padding: 12px; overflow: auto; border: 1px solid var(--gold); border-radius: 18px; background: #061219; box-shadow: 0 24px 90px #000; }
.stock-chart-host { min-height: 320px; }
.stock-chart-host.is-loading { display: grid; place-items: center; }
.chart-grid { stroke: rgba(190,205,198,.12); stroke-width: 1; }
.chart-axis, .chart-label { fill: #aeb7b0; font: 10px ui-monospace,monospace; }
.chart-time-axis { fill: #c8c3b3; font: 10px ui-monospace,monospace; }
.chart-market-path { fill: none; stroke: #73d6d0; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(80,205,201,.35)); }
.chart-structure { fill: #07141b; stroke: #f0cd72; stroke-width: 2; }
.chart-structure-label { fill: #f0cd72; font: 700 10px ui-monospace,monospace; }
.chart-level { stroke-width: 2; stroke-dasharray: 7 5; }
.chart-level.price { stroke: #fff0b3; stroke-width: 3; stroke-dasharray: none; }
.chart-level.session { stroke: #e6c46f; } .chart-level.rolling { stroke: #63d0cb; } .chart-level.anchored { stroke: #bc91ef; }
.chart-level.fib { stroke: #bf9a53; stroke-width: 1; opacity: .7; }
.chart-label.price { fill: #fff0b3; } .chart-label.session { fill: #e6c46f; } .chart-label.rolling { fill: #63d0cb; } .chart-label.anchored { fill: #bc91ef; } .chart-label.fib { fill: #cdb77e; }
.chart-liq { fill: #ef7369; opacity: .48; }
.stock-integrated-chart .is-hidden { display: none; }
.stock-chart-note { margin: 0; color: var(--muted); font: 10px/1.55 "Microsoft JhengHei",sans-serif; }
.structure-rail { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 5px; scroll-snap-type: x proximity; }
.structure-event { flex: 0 0 auto; min-width: 132px; display: grid; gap: 3px; padding: 9px 10px; border: 1px solid rgba(214,180,96,.23); border-radius: 11px; background: rgba(2,12,18,.75); scroll-snap-align: start; }
.structure-event b { color: #efd995; font-size: var(--tq-fs-body, 15px); }
.structure-event small { color: var(--muted); font: 9px/1.3 ui-monospace,monospace; }
.structure-HH, .structure-HL { border-left: 3px solid #62d5b5; }
.structure-LH, .structure-LL { border-left: 3px solid #ef7c74; }
.codex-news-cards { display: grid; gap: 9px; }
.codex-news-card { display: grid; gap: 6px; min-height: 96px; padding: 12px 14px; border: 1px solid rgba(214,180,96,.23); border-radius: 14px; background: rgba(2,12,18,.72); color: inherit; text-decoration: none; }
.codex-news-card:hover { border-color: rgba(239,211,123,.62); }
.codex-news-card small { color: #c7b887; font: 10px/1.4 ui-monospace,monospace; }
.codex-news-card strong { color: #f0dca4; font-size: var(--tq-fs-value, 17px); }
.codex-news-card p { margin: 0; color: #ddd9ce; font: 12px/1.65 "Microsoft JhengHei",sans-serif; }
.codex-news-card em { justify-self: end; color: #efd37b; font: normal 10px/1.4 "Microsoft JhengHei",sans-serif; }
.liquidation-heatmap { display: grid; gap: 7px; }
.liquidation-timeframes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.liquidation-timeframes button { min-height: 44px; border: 1px solid rgba(214,180,96,.28); border-radius: 12px; background: rgba(1,10,15,.72); color: #cfc4a6; font: 700 12px/1 ui-monospace,monospace; cursor: pointer; transition: border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease,transform .1s ease; }
.liquidation-timeframes button:hover, .liquidation-timeframes button:focus-visible { border-color: rgba(239,211,123,.72); color: #fff0b3; outline: none; }
.liquidation-timeframes button:active { transform: translateY(1px) scale(.99); }
.liquidation-timeframes button.is-active { border-color: #e6c761; background: linear-gradient(180deg,rgba(104,78,25,.9),rgba(45,32,10,.92)); color: #fff1ba; box-shadow: inset 0 0 0 1px rgba(255,238,172,.18),0 0 16px rgba(230,199,97,.16); }
.liquidation-timeframes button:disabled { cursor: not-allowed; filter: saturate(.2); opacity: .45; }
.liquidation-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 9px 11px; border: 1px solid rgba(214,180,96,.2); border-radius: 12px; background: rgba(1,10,15,.55); font-size: var(--tq-fs-note, 13px); }
.liquidation-legend .long { color: #5ee3bf; }
.liquidation-legend .short { color: #f27b72; }
.liquidation-row { display: grid; grid-template-columns: minmax(68px,auto) minmax(0,1fr) minmax(60px,auto); align-items: center; gap: 9px; min-height: 30px; }
.liquidation-row strong, .liquidation-row em { color: #e5dcc4; font: 700 10px/1.2 ui-monospace,monospace; }
.liquidation-row em { text-align: right; font-weight: 500; }
.liquidation-track { height: 13px; overflow: hidden; border-radius: 4px; background: rgba(1,7,11,.9); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
.liquidation-track i { height: 100%; display: block; border-radius: inherit; animation: heatBarIn .48s cubic-bezier(.2,.8,.2,1) both; }
.liquidation-row.long .liquidation-track i { background: linear-gradient(90deg,#176c59,#54d8b3); box-shadow: 0 0 13px rgba(84,216,179,.25); }
.liquidation-row.short .liquidation-track i { background: linear-gradient(90deg,#742e31,#df5d59); box-shadow: 0 0 13px rgba(223,93,89,.22); }
.liquidation-levels { display: grid; gap: 7px; }
.liquidation-spot-marker { position: relative; min-height: 34px; display: grid; place-items: center; isolation: isolate; }
.liquidation-spot-marker::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 2px solid #f3d46f; filter: drop-shadow(0 0 5px rgba(243,212,111,.7)); z-index: -1; }
.liquidation-spot-marker::after { content: "◆"; position: absolute; left: 0; top: 50%; translate: 0 -50%; color: #f3d46f; font-size: var(--tq-fs-note, 13px); text-shadow: 0 0 7px rgba(243,212,111,.85); }
.liquidation-spot-marker strong { padding: 6px 12px; border: 1px solid rgba(243,212,111,.8); border-radius: 999px; background: #071219; color: #fff0b3; box-shadow: 0 0 14px rgba(243,212,111,.2); font: 800 11px/1 ui-monospace,monospace; }
.liquidation-current { margin: 5px 0 0; padding-top: 9px; border-top: 1px solid rgba(214,180,96,.18); color: #c9b984; font: 10px/1.5 ui-monospace,monospace; text-align: right; }
@keyframes heatBarIn { from { scale: 0 1; transform-origin: left; opacity: .3; } }
.holdings-timeline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.holdings-timeline article { min-width: 0; padding: 11px; border: 1px solid rgba(214,180,96,.2); border-radius: 14px; background: rgba(4,16,22,.7); }
.holdings-timeline h5 { margin: 0 0 8px; color: var(--gold-2); font-size: var(--tq-fs-value, 17px); }
.holdings-timeline article > div { display: grid; gap: 3px; padding: 8px 0; border-top: 1px dashed rgba(214,180,96,.18); }
.holdings-timeline strong { overflow: hidden; color: #e6d6aa; font-size: var(--tq-fs-note, 13px); text-overflow: ellipsis; white-space: nowrap; }
.holdings-timeline span { color: #d7d4c9; font: 9px/1.45 ui-monospace,monospace; }
.holdings-timeline small, .holdings-timeline p { margin: 0; color: var(--muted); font: 9px/1.45 "Microsoft JhengHei",sans-serif; }
.sector-member-host { display: grid; gap: 10px; }
.sector-member-host.is-loading { min-height: 180px; place-items: center; border: 1px dashed rgba(214,180,96,.22); border-radius: 16px; background: rgba(4,16,22,.48); }
.sector-member-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.sector-member-card { min-width: 0; padding: 12px; overflow: hidden; border: 1px solid rgba(214,180,96,.24); border-radius: 16px; background: linear-gradient(145deg,rgba(8,25,32,.94),rgba(4,14,20,.86)); }
.sector-member-card.status-missing { filter: saturate(.62); opacity: .72; }
.sector-member-card header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-bottom: 10px; }
.sector-member-card header i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-2); font: 9px ui-monospace,monospace; }
.sector-member-card header strong { color: #f3dfa2; font-size: var(--tq-fs-strong, 20px); letter-spacing: .05em; }
.sector-member-card header small { color: var(--muted); font-size: var(--tq-fs-note, 13px); }
.sector-member-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sector-member-primary span, .sector-member-frames span { min-width: 0; display: grid; gap: 4px; padding: 8px; border-radius: 10px; background: rgba(1,10,15,.62); }
.sector-member-primary em, .sector-member-frames em { color: var(--muted); font: normal 9px/1.2 "Microsoft JhengHei",sans-serif; }
.sector-member-primary b { overflow: hidden; color: #f2e6c4; font: 700 12px/1.25 ui-monospace,monospace; text-overflow: ellipsis; }
.sector-member-frames { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin-top: 8px; }
.sector-member-frames span { text-align: center; }
.sector-member-frames b { color: #d7d4c9; font: 700 10px/1.2 ui-monospace,monospace; }
.sector-member-frames .positive b { color: #65d9b5; }
.sector-member-frames .negative b { color: #ef7c74; }
.sector-member-status { margin: 0; color: var(--muted); font: 10px/1.6 "Microsoft JhengHei",sans-serif; }
.sector-member-status.is-error { color: #ef9b92; }
.sector-member-card > p { margin: 8px 0 0; color: #d4a49f; font-size: var(--tq-fs-note, 13px); }
.codex-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 16px; }
.codex-actions > * { min-height: 48px; display: grid; place-items: center; border-radius: 15px; text-decoration: none; cursor: pointer; }
.codex-actions .secondary { border: 1px solid var(--line); background: #0d2029; color: var(--gold-2); }
.codex-actions .primary { border: 1px solid #efd37b; background: linear-gradient(135deg, #d7aa49, #f0d27b); color: #10202a; font-weight: 800; }
.codex-actions .primary[aria-disabled="true"] { pointer-events: none; filter: grayscale(.8); opacity: .54; }

@keyframes sceneBreath { to { transform: scale(1.07) translate3d(-.5%, -.4%, 0); filter: saturate(1.05) brightness(1.04); } }
@keyframes sheetIn { from { transform: translateY(18%); opacity: .4; } }
@keyframes ringTurn { to { transform: rotate(360deg); } }
@keyframes orbitSmall { 0%,100% { transform: translate(-50%,-50%) rotate(-2deg); } 50% { transform: translate(calc(-50% + 8px),calc(-50% - 7px)) rotate(3deg); } }
@keyframes bobTwist { 0%,100% { transform: translate(-50%,-50%) rotate(-1deg); } 50% { transform: translate(calc(-50% - 5px),calc(-50% - 10px)) rotate(4deg); } }
@keyframes featherGlide { 0%,100% { transform: translate(-50%,-50%) rotate(-4deg); } 50% { transform: translate(calc(-50% + 11px),calc(-50% - 5px)) rotate(5deg); } }
@keyframes surgeOut { 0%,100% { transform: translate(-50%,-50%) scale(.97); } 45% { transform: translate(-50%,-50%) scale(1.06); } }
@keyframes scanHover { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(calc(-50% + 3px),calc(-50% - 8px)); filter: brightness(1.2); } }
@keyframes pivotCross { 0%,100% { transform: translate(-50%,-50%) rotate(-3deg); } 50% { transform: translate(calc(-50% + 6px),calc(-50% + 4px)) rotate(4deg); } }
@keyframes drainSink { 0%,100% { transform: translate(-50%,-50%) scale(1); } 60% { transform: translate(-50%,calc(-50% + 8px)) scale(.92); } }
@keyframes shipCruise { 0%,100% { transform: translate(calc(-50% - 9px),-50%); } 50% { transform: translate(calc(-50% + 10px),calc(-50% - 5px)); } }
@keyframes shipHeadwind { 0%,100% { transform: translate(-50%,-50%) skewX(0); } 50% { transform: translate(calc(-50% - 8px),calc(-50% + 3px)) skewX(-3deg); } }
@keyframes shipDock { 0%,100% { transform: translate(-50%,-50%) scale(.98); } 50% { transform: translate(-50%,calc(-50% - 6px)) scale(1.03); } }
@keyframes gateAwake { 0%,100% { transform: translate(-50%,-50%); filter: brightness(1); } 50% { transform: translate(-50%,calc(-50% - 7px)); filter: brightness(1.35); } }
@keyframes gateDormant { 0%,100% { transform: translate(-50%,-50%) scale(.98); opacity: .84; } 50% { transform: translate(-50%,calc(-50% - 4px)) scale(1.01); opacity: 1; } }
@keyframes gateBeacon { 0%,100% { transform: translate(-50%,-50%); box-shadow: 0 0 0 5px #04121a55, 0 8px 26px #0009; } 50% { transform: translate(-50%,calc(-50% - 8px)); box-shadow: 0 0 0 11px #efd37b22, 0 10px 34px #efd37b55; } }
@keyframes metalShimmer { 0%,100% { transform: translate(-50%,-50%) rotate(-2deg); } 50% { transform: translate(calc(-50% + 5px),calc(-50% - 7px)) rotate(3deg); filter: brightness(1.35); } }
@keyframes fireFlicker { 0%,100% { transform: translate(-50%,-50%) scale(.98) rotate(-2deg); } 35% { transform: translate(calc(-50% + 2px),calc(-50% - 9px)) scale(1.05) rotate(3deg); } }
@keyframes waterRipple { 0%,100% { transform: translate(-50%,-50%) scale(.98); } 50% { transform: translate(-50%,calc(-50% - 5px)) scale(1.04); border-radius: 54% 46% 58% 42%; } }
@keyframes chapterWake { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes wheelTurn { to { transform: rotate(360deg); } }
@keyframes futureDust { 0%,100% { transform: translate(-50%,-50%); box-shadow: 0 8px 24px #0009; } 50% { transform: translate(-50%,calc(-50% - 5px)); box-shadow: 0 8px 30px rgba(80,196,207,.22); } }

@media (min-width: 900px) {
  .top-hud { width: min(1180px, calc(100% - 32px)); left: 50%; right: auto; transform: translateX(-50%); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 20px 20px; }
  .volume-nav { top: calc(92px + var(--safe-top)); bottom: auto; left: 50%; right: auto; width: min(720px, calc(100% - 40px)); transform: translateX(-50%); }
  .scene { padding-top: calc(184px + var(--safe-top)); padding-bottom: 120px; }
  .scene-verdict { bottom: 28px; }
  .source-strip { width: min(1180px, 100%); margin: 0 auto; padding: 12px 28px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); background: #061017; border-top: 1px solid var(--line); font: 11px "Microsoft JhengHei", sans-serif; }
  .detail-sheet { left: auto; right: 22px; bottom: 22px; width: min(520px, calc(100% - 44px)); border-radius: 26px; }
  .detail-sheet.is-codex { left: max(22px, calc((100% - 1040px) / 2)); right: max(22px, calc((100% - 1040px) / 2)); top: 22px; bottom: 22px; width: auto; }
  .codex-value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .freshness { max-width: 92px; font-size: var(--tq-fs-note, 13px); }
  .scene-heading { width: 96%; }
  .world-object { width: 72px; min-height: 74px; }
  .world-object svg { width: 31px; height: 31px; }
  .detail-metrics { grid-template-columns: repeat(2, 1fr); }
  .codex-hero { min-height: 164px; }
  .codex-list > div { grid-template-columns: 1fr; gap: 3px; }
  .codex-list span { text-align: left; }
  .profile-chapter { grid-template-columns: 38px minmax(0,1fr); gap: 9px; }
  .profile-chronicle::before { left: 18px; }
  .profile-chapter i { width: 38px; height: 38px; }
  .profile-chapter div { padding: 8px 10px 10px; }
  .profile-chapter p { font-size: var(--tq-fs-body, 15px); line-height: 1.68; }
  .world-layer.is-wheel { min-height: 670px; }
  .sector-wheel-stage { width: 100%; aspect-ratio: 1 / .94; }
  .wheel-slot { width: 96px; min-height: 70px; }
  .wheel-slot.state-current { width: 112px; min-height: 82px; }
  .wheel-slot.slot-0 { left: 18%; top: 66%; }
  .wheel-slot.slot-4 { left: 82%; top: 66%; }
  .wheel-ranking { grid-template-columns: 1fr; }
  .stock-layer-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .market-custom-range { flex-basis: 100%; grid-template-columns: 1fr 1fr; }
  .market-custom-range button { grid-column: 1/-1; }
  .stock-integrated-chart { min-height: 230px; }
  .holdings-timeline { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .holdings-timeline article { flex: 0 0 88%; scroll-snap-align: start; }
  .sector-member-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* [2026-09-24] 沒有永續合約的成員改顯示市值口徑:兩欄而不是四欄,
   名稱可能很長(The Innovation Game)要截斷,不要把卡片撐破。 */
.sector-member-card.is-meta .sector-member-frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sector-member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

/* [2026-09-30] 輪盤下方誠實警語:命中率沒過驗收時要講清楚這不是預測 */
.wheel-note{margin:8px 0 0;font-size:12px;line-height:1.5;opacity:.72;text-align:center}

/* [2026-09-30] 判定後追蹤盤 —— 接在輪盤之後,底色沿用 .wheel-stats 的深色半透明,
   讓它在場景背景圖上讀得清楚,跟上方的命中率條是同一個家族 */
.sector-track-board { width: min(1040px, 100%); margin: 22px auto 0; padding: 16px;
  border: 1px solid rgba(214,180,96,.28); border-radius: 16px; background: rgba(3,14,20,.88); }
.track-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.track-head h3 { margin: 0; color: var(--gold-2); font-size: 17px; letter-spacing: .06em; }
.track-badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid; }
.track-badge.is-is { color: #e8c877; border-color: rgba(232,200,119,.45); background: rgba(232,200,119,.08); }
.track-badge.is-oos { color: #65d9b5; border-color: rgba(101,217,181,.45); background: rgba(101,217,181,.08); }
.track-meta { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.track-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; margin-bottom: 14px;
  border: 1px solid rgba(214,180,96,.18); border-radius: 12px; overflow: hidden; }
.track-summary > div { min-width: 0; padding: 10px; text-align: center; border-right: 1px solid rgba(214,180,96,.14); }
.track-summary > div:last-child { border: 0; }
.track-summary small { display: block; color: var(--muted); font-size: 12px; }
.track-summary strong { display: block; margin-top: 3px; color: var(--gold-2); font: 700 16px ui-monospace,monospace; }
.track-summary em { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-style: normal; }
.track-sector { margin-top: 14px; }
.track-sector-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid rgba(214,180,96,.16); }
.track-sector-head strong { color: var(--gold-2); font-size: 15px; margin-right: 4px; }
.track-sector-head strong i { font-style: normal; font: 700 11px ui-monospace,monospace; color: #03090e;
  background: var(--gold); border-radius: 4px; padding: 1px 6px; margin-right: 4px; }
.track-excess, .track-avg { font: 700 13px ui-monospace,monospace; }
.track-sector-head small { color: var(--muted); font-size: 11px; margin-right: 8px; }
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.track-cell { min-width: 0; padding: 8px 9px; border: 1px solid rgba(214,180,96,.14); border-radius: 10px; background: rgba(0,0,0,.22); }
.track-cell.is-empty { opacity: .5; }
.track-cell-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.track-cell-top b { font: 700 13px ui-monospace,monospace; color: var(--text); }
.track-chg { font: 700 12.5px ui-monospace,monospace; color: var(--muted); }
.track-cell > small { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-spark { display: block; width: 100%; height: 40px; margin-top: 4px; }
.track-spark .track-before { fill: none; stroke: #8f7c4e; stroke-width: 1.4; }
.track-spark .track-up { fill: none; stroke: #65d9b5; stroke-width: 1.8; }
.track-spark .track-down { fill: none; stroke: #ef7c74; stroke-width: 1.8; }
.track-spark .track-cut { stroke: #d6b460; stroke-width: 1; stroke-dasharray: 2 2; opacity: .6; }
.track-spark .track-dot-up { fill: #65d9b5; } .track-spark .track-dot-down { fill: #ef7c74; }
.track-blank { height: 40px; margin-top: 4px; border-bottom: 1px dashed rgba(214,180,96,.18); }
.track-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.track-legend { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 520px) {
  .track-summary { grid-template-columns: 1fr; }
  .track-summary > div { border-right: 0; border-bottom: 1px solid rgba(214,180,96,.14); }
  .track-summary > div:last-child { border-bottom: 0; }
  .track-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* [2026-09-30] wheel-slot-name-2line:板塊名如「DePIN 實體基建」在 118px 圓圈裡會被截成「DePIN 實體…」。
   只放寬名稱這一行成最多兩行(line-clamp),日期/狀態那行維持單行 —— 不動圓圈尺寸 */
.sector-wheel-shell .wheel-slot strong { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.15; word-break: keep-all; overflow-wrap: anywhere; }

/* wheel-core-name-2line:中心 NOW 用的是 .wheel-core(118px 內),同樣允許名稱兩行 */
.sector-wheel-shell .wheel-core strong { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.15; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }

/* ═══ [2026-09-30] 板塊輪動卷改版 · 廣度四象限 ═══
   底色沿用 .wheel-stats / 追蹤盤的深色半透明,讓它在場景背景圖上讀得清楚。
   三種東西三種顏色(師兄指定分開):列入預測 = 金、過去軌跡 = 淺灰藍實線、未來軌跡 = 青色虛線 */
.sector-rrg-shell, .sector-rrg-tail { width: min(1080px, 100%); margin: 8px auto 0; display: grid; gap: 14px; }
.sector-rrg-tail { margin-top: 18px; }
.sector-rrg-shell .wheel-horizon-nav { justify-self: center; }
.rrg-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 880px) { .rrg-hero { grid-template-columns: 1fr; } }
.rrg-card { min-width: 0; padding: 14px; border: 1px solid rgba(214,180,96,.28); border-radius: 16px; background: rgba(3,14,20,.9); }
.rrg-card h3 { margin: 0 0 8px; color: var(--gold-2); font-size: 17px; letter-spacing: .04em; }
.rrg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.rrg-head h3 { margin: 0; }
.rrg-badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(232,200,119,.45); color: #e8c877; background: rgba(232,200,119,.08); }
.rrg-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 8px; font-size: 12px; color: var(--text); }
.rrg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rrg-legend i { display: inline-block; flex: none; }
.lg-pick { width: 11px; height: 11px; border-radius: 50%; background: #f1d77e; box-shadow: 0 0 0 2px #03090e, 0 0 0 3.5px #f1d77e; }
.lg-past { width: 20px; border-top: 2.2px solid #c8d6df; }
.lg-future { width: 20px; border-top: 2.2px dashed #5fd8ff; }
.lg-other { width: 20px; border-top: 1.2px solid #c8d6df; opacity: .4; }
.lg-t1, .lg-t2 { width: 8px; height: 8px; border-radius: 50%; border: 1.6px solid #5fd8ff; margin-left: 2px; }
.lg-t1 { background: #03090e; } .lg-t2 { background: #5fd8ff; }

.rrg-tools { display: grid; gap: 6px; margin-bottom: 8px; }
.rrg-quick { display: flex; gap: 6px; }
.rrg-quick button { font-size: 12px; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(214,180,96,.35);
  background: rgba(214,180,96,.08); color: var(--gold-2); cursor: pointer; }
.rrg-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.rrg-chip { font-size: 12px; min-height: 32px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(214,180,96,.2);
  background: rgba(0,0,0,.25); color: var(--text); cursor: pointer; }
.rrg-chip.is-pick { border-color: #d6b460; color: #f1d77e; }
.rrg-chip.is-off { opacity: .38; text-decoration: line-through; }
.rrg-chip:focus-visible, .rrg-quick button:focus-visible, .rrg-pick:focus-visible { outline: 2px solid #5fd8ff; outline-offset: 2px; }

.rrg-svg-wrap { width: 100%; }
.rrg-svg { display: block; width: 100%; height: auto; }
.rrg-svg text { font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
.rrg-svg .rq-ru { fill: rgba(86,214,168,.10); } .rrg-svg .rq-rd { fill: rgba(214,180,96,.10); }
.rrg-svg .rq-ld { fill: rgba(239,124,116,.10); } .rrg-svg .rq-lu { fill: rgba(127,182,230,.09); }
.rrg-svg .rrg-qname { font-size: 12.5px; font-weight: 700; fill: #f1d77e; }
.rrg-svg .rrg-qstat { font-size: 10.5px; fill: #9fb0b8; }
.rrg-svg .rrg-axis { stroke: #d6b460; stroke-opacity: .45; }
.rrg-svg .rrg-axlabel { font-size: 11px; fill: #c8d6df; }
.rrg-svg .rrg-past { fill: none; stroke: #c8d6df; stroke-width: 1.1; stroke-opacity: .3; stroke-linejoin: round; stroke-linecap: round; }
.rrg-svg .rrg-past.is-pick { stroke-width: 2.2; stroke-opacity: .95; }
.rrg-svg .rrg-future { fill: none; stroke: #5fd8ff; stroke-width: 1.1; stroke-opacity: .34; stroke-dasharray: 3 3; stroke-linejoin: round; }
.rrg-svg .rrg-future.is-pick { stroke-width: 2.2; stroke-opacity: .95; stroke-dasharray: 6 4; }
.rrg-svg .rrg-farrow { fill: none; stroke: #5fd8ff; stroke-width: 1.1; stroke-opacity: .34; stroke-linecap: round; }
.rrg-svg .rrg-farrow.is-pick { stroke-width: 2.2; stroke-opacity: .95; }
.rrg-svg .rrg-t1 { fill: #03090e; stroke: #5fd8ff; stroke-width: 1.6; }
.rrg-svg .rrg-t2 { fill: #5fd8ff; stroke: #5fd8ff; stroke-width: 1.6; }
.rrg-svg .rrg-ring { fill: none; stroke: #f1d77e; stroke-width: 1.8; }
.rrg-svg .rrg-dot { fill: #9fb0b8; } .rrg-svg .rrg-dot.is-pick { fill: #f1d77e; }
.rrg-svg .rrg-label { font-size: 10.5px; fill: #e7ece8; fill-opacity: .82; }
.rrg-svg .rrg-label.is-pick { font-size: 12px; font-weight: 700; fill: #f1d77e; fill-opacity: 1; }
.rrg-axisnote { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

.rrg-answer p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.7; color: var(--text); }
.rrg-answer b { color: var(--gold-2); }
.rrg-picks { display: grid; gap: 6px; margin-top: 4px; }
.rrg-pick { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 10px; border-radius: 10px; text-align: left;
  border: 1px solid rgba(214,180,96,.22); background: rgba(0,0,0,.25); color: var(--text); cursor: pointer; }
.rrg-pick i { font-style: normal; font: 700 11px ui-monospace,monospace; color: #03090e; background: var(--gold); border-radius: 4px; padding: 1px 6px; }
.rrg-pick b { color: var(--gold-2); font-size: 14px; }
.rrg-pick span { margin-left: auto; font-size: 11.5px; color: var(--muted); }

.rrg-quads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 620px) { .rrg-quads { grid-template-columns: 1fr; } }
.rrg-q { min-width: 0; padding: 12px; border-radius: 14px; border: 1px solid rgba(214,180,96,.2); }
.rrg-q.ru { background: rgba(86,214,168,.09); } .rrg-q.rd { background: rgba(214,180,96,.09); }
.rrg-q.ld { background: rgba(239,124,116,.09); } .rrg-q.lu { background: rgba(127,182,230,.08); }
.rrg-q-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.rrg-q-head h4 { margin: 0; color: var(--gold-2); font-size: 16px; }
.rrg-q-head span { font-size: 11px; color: var(--muted); }
.rrg-q-verdict { margin: 6px 0 2px; font-weight: 700; font-size: 14px; }
.rrg-q-verdict.up { color: #65d9b5; } .rrg-q-verdict.dn { color: #ef7c74; } .rrg-q-verdict.watch { color: #7fb6e6; }
.rrg-q-stat { margin: 0; font-size: 12px; color: var(--muted); }
.rrg-q-desc { margin: 6px 0; font-size: 12.5px; color: var(--text); }
.rrg-q-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.rrg-q-chips span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px solid rgba(214,180,96,.18); }
.rrg-q-chips span.is-pick { border-color: #d6b460; color: #f1d77e; }
.rrg-q-chips em { font-style: normal; color: #5fd8ff; margin-left: 4px; font-size: 11px; }
.rrg-q-chips small { color: var(--muted); }
.rrg-honest { margin: 0; padding-left: 10px; border-left: 2px solid var(--gold); font-size: 12.5px; line-height: 1.65; color: #e6d7ae; }

.rrg-batons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
@media (max-width: 620px) { .rrg-batons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rrg-baton { min-width: 0; padding: 9px; border-radius: 12px; border: 1px solid rgba(214,180,96,.2); background: rgba(0,0,0,.22); }
.rrg-baton small { display: block; font: 700 11px ui-monospace,monospace; color: var(--gold); }
.rrg-baton b { display: block; margin: 3px 0 2px; color: var(--text); font-size: 14px; }
.rrg-baton span { font-size: 11.5px; color: var(--muted); }
.rrg-baton.now { border-color: var(--gold); background: rgba(214,180,96,.08); }
.rrg-baton.fut { border-style: dashed; }
.rrg-case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
@media (max-width: 620px) { .rrg-case { grid-template-columns: 1fr; } }
.rrg-case > div { min-width: 0; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.22); }
.rrg-case h4 { margin: 0 0 4px; color: var(--gold-2); font-size: 14px; }
.rrg-case p { margin: 0; font-size: 12.5px; color: var(--text); line-height: 1.6; }
.rrg-kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(214,180,96,.18); font-size: 13px; }
.rrg-kv span:last-child { font: 600 12.5px ui-monospace,monospace; text-align: right; }
.rrg-trust .rrg-honest { margin-top: 10px; }

/* ═══ [2026-10-01] 本期做空 · 永續統一做法 · 本期追蹤 ═══
   做多 = 金、做空 = 紅,圖、籤、卡、追蹤盤同一套顏色 */
.lg-short { width: 11px; height: 11px; border-radius: 50%; background: #ef7c74; box-shadow: 0 0 0 2px #03090e, 0 0 0 3.5px #ef7c74; }
.rrg-chip.is-short { border-color: #ef7c74; color: #ffb3ad; }
.rrg-svg .rrg-ring.is-short { stroke: #ef7c74; }
.rrg-svg .rrg-dot.is-short { fill: #ef7c74; }
.rrg-svg .rrg-label.is-short { font-size: 12px; font-weight: 700; fill: #ffb3ad; fill-opacity: 1; }
.rrg-picks-h { margin: 10px 0 4px; font-size: 12px; color: var(--muted); }
.rrg-pick.is-short i { background: #ef7c74; }
.rrg-pick.is-short b { color: #ffb3ad; }
.rrg-q-perp { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; }
.rrg-q-perp.long { color: #65d9b5; } .rrg-q-perp.short { color: #ef7c74; }
.rrg-q-chips span.is-short { border-color: #ef7c74; color: #ffb3ad; }
.track-progress { display: flex; gap: 4px; margin: -4px 0 12px; }
.track-progress i { flex: 1; height: 5px; border-radius: 3px; background: rgba(214,180,96,.16); }
.track-progress i.on { background: var(--gold); }
.track-spark .track-end { stroke: #d6b460; stroke-width: 1; stroke-dasharray: 1 3; opacity: .5; }
.track-side { margin: 16px 0 0; font-size: 14px; }
.track-side.long { color: #65d9b5; }
.track-shorts { margin-top: 16px; }
.track-shorts > summary { cursor: pointer; color: #ffb3ad; font-weight: 700; font-size: 14px; min-height: 32px; }
.track-sector.is-short .track-sector-head strong i { background: #ef7c74; }
.track-okx { font-style: normal; font: 600 9.5px/1 "Microsoft JhengHei", sans-serif; color: #65d9b5;
  border: 1px solid rgba(101,217,181,.5); border-radius: 4px; padding: 1px 3px; margin-left: 4px; vertical-align: 1px; }

/* ═══ [2026-10-01] 主圖 + 精簡說明雙欄 · 點象限跳出說明框 · 追蹤盤三個價 ═══ */
.rrg-hero.is-single { grid-template-columns: 1fr; }
.rrg-body { display: grid; grid-template-columns: minmax(0, 640px) minmax(220px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 880px) { .rrg-body { grid-template-columns: 1fr; } }
.rrg-explain h4 { margin: 2px 0 6px; color: var(--gold-2); font-size: 14px; }
.rrg-explain ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; line-height: 1.6; color: var(--text); }
.rrg-explain li b { color: var(--gold-2); }
.rrg-explain .lg-pick, .rrg-explain .lg-short { display: inline-block; vertical-align: -1px; margin-right: 7px; }
.rrg-explain-tip { margin: 4px 0 6px; font-size: 12.5px; color: #5fd8ff; }
.rrg-explain-note { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.rrg-svg-wrap { position: relative; }
.rrg-svg rect[data-q] { cursor: pointer; }
.rrg-svg rect[data-q]:hover, .rrg-svg rect[data-q]:focus-visible { stroke: #f1d77e; stroke-opacity: .55; stroke-width: 1.5; outline: none; }
.rrg-svg .rrg-qname, .rrg-svg .rrg-qstat, .rrg-svg .rrg-axis, .rrg-svg .rrg-axlabel, .rrg-svg .rrg-past, .rrg-svg .rrg-future,
.rrg-svg .rrg-farrow, .rrg-svg .rrg-t1, .rrg-svg .rrg-t2, .rrg-svg .rrg-ring, .rrg-svg .rrg-dot, .rrg-svg .rrg-label { pointer-events: none; }
.rrg-pop { position: absolute; z-index: 5; width: min(270px, calc(100% - 8px)); box-sizing: border-box; padding: 10px 12px;
  border-radius: 12px; border: 1px solid rgba(214,180,96,.5); background: rgba(3,14,20,.97); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.rrg-pop-head { display: flex; align-items: center; gap: 8px; }
.rrg-pop-head b { color: var(--gold-2); font-size: 15px; }
.rrg-pop-head span { font-size: 11.5px; color: var(--muted); }
.rrg-pop-x { margin-left: auto; min-width: 32px; min-height: 32px; border: 0; border-radius: 8px; background: rgba(214,180,96,.1);
  color: var(--gold-2); font-size: 18px; line-height: 1; cursor: pointer; }
.rrg-pop-x:focus-visible { outline: 2px solid #5fd8ff; outline-offset: 2px; }
.rrg-pop p { margin: 4px 0; font-size: 12.5px; line-height: 1.55; color: var(--text); }
.rrg-pop-v { font-weight: 700; } .rrg-pop-v.up { color: #65d9b5; } .rrg-pop-v.dn { color: #ef7c74; } .rrg-pop-v.watch { color: #7fb6e6; }
.rrg-pop-perp { font-weight: 700; } .rrg-pop-perp.long { color: #65d9b5; } .rrg-pop-perp.short { color: #ef7c74; }
.rrg-pop-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rrg-pop-chips span { font-size: 11.5px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid rgba(214,180,96,.18); }
.rrg-pop-chips span.is-pick { border-color: #d6b460; color: #f1d77e; } .rrg-pop-chips span.is-short { border-color: #ef7c74; color: #ffb3ad; }
.rrg-pop-chips em { font-style: normal; color: #5fd8ff; margin-left: 3px; font-size: 10.5px; }
.rrg-pop-chips small { color: var(--muted); }
.track-px { display: grid; gap: 1px; margin-top: 4px; font: 11px/1.4 ui-monospace, monospace; color: var(--text); }
.track-px span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; }
.track-px b { margin-left: auto; font-weight: 400; white-space: nowrap; }
.track-px i { font-style: normal; font: 10.5px/1.4 "Microsoft JhengHei", "Noto Sans TC", sans-serif; color: var(--muted); }
.track-px .is-band { color: #5fd8ff; }
.track-spark .track-band { stroke: #5fd8ff; stroke-width: 1.6; stroke-linecap: round; }
.track-spark .track-band-mid { stroke: #5fd8ff; stroke-width: 1; opacity: .6; }
/* [2026-10-01] CoinGecko 補的成員(沒有永續):灰藍小標,跟「永續」的綠色分開 */
.track-cg { font-style: normal; font: 600 9.5px/1 ui-monospace, monospace; color: #9fb7c9;
  border: 1px solid rgba(159,183,201,.5); border-radius: 4px; padding: 1px 3px; margin-left: 4px; vertical-align: 1px; }
/* [2026-10-05] 四象限軌跡改逐日原始點:每天一個小點(列入多空的實心、其他淡色) */
.lg-day { width: 7px; height: 7px; border-radius: 50%; background: #c8d6df; }
.rrg-svg .rrg-day { fill: #c8d6df; fill-opacity: .3; pointer-events: none; }
.rrg-svg .rrg-day.is-pick { fill-opacity: .95; }
/* [2026-10-06 師兄] 追蹤盤:摘要只留歷史成績、其他板塊可點開看成員(沒有區間) */
.track-summary.is-single { grid-template-columns: 1fr; }
.track-side.other { color: var(--gold-2); }
.track-other { margin-top: 8px; padding: 0 12px; border: 1px solid rgba(214,180,96,.18); border-radius: 12px; background: rgba(0,0,0,.16); }
.track-other > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 46px; cursor: pointer; color: var(--gold-2); font-size: 15px; }
.track-other > summary::-webkit-details-marker { display: none; }
.track-other > summary::after { content: "展開 ▾"; margin-left: auto; color: var(--muted); font-size: 12.5px; }
.track-other[open] > summary::after { content: "收起 ▴"; }
.track-other[open] { padding-bottom: 12px; }
.track-other > summary:focus-visible { outline: 3px solid rgba(139, 217, 233, .82); outline-offset: 2px; border-radius: 8px; }
.track-other .track-sector { margin-top: 2px; }
/* [2026-10-06 師兄] 手機 / PWA 捲動時底部導覽列會跟著跑:捲到頂、底時整頁回彈會把固定元素一起拉動 → 關掉回彈;
   導覽列自己一層(GPU 合成),捲動中不會跟著重畫抖動 */
html, body { overscroll-behavior-y: none; }
@media (max-width: 899px) {
  .volume-nav { transform: translateZ(0); will-change: transform; -webkit-backdrop-filter: blur(16px); }
  .top-hud { -webkit-backdrop-filter: blur(14px); }
}
/* [2026-10-06 師兄] 做多改綠色(漲)、做空維持紅色(跌):原本做多用金黃色。綠 = 頁面上本來代表上漲的 #65d9b5,
   字用淺一階的綠才讀得清楚;做空各處都有更具體的紅色規則,不受影響 */
.lg-pick { background: #65d9b5; box-shadow: 0 0 0 2px #03090e, 0 0 0 3.5px #65d9b5; }
.rrg-chip.is-pick { border-color: #65d9b5; color: #9ff0d3; }
.rrg-svg .rrg-ring { stroke: #65d9b5; }
.rrg-svg .rrg-dot.is-pick { fill: #65d9b5; }
.rrg-svg .rrg-label.is-pick { fill: #9ff0d3; }
.rrg-pick i { background: #65d9b5; }
.rrg-pick b { color: #9ff0d3; }
.rrg-q-chips span.is-pick, .rrg-pop-chips span.is-pick { border-color: #65d9b5; color: #9ff0d3; }
.track-sector-head strong i { background: #65d9b5; }
/* [2026-10-06 師兄] 追蹤盤說明移到標題下:簡單一行 + 點開才有的詳細說明 */
.track-guide { margin: 4px 0 10px; }
.track-guide-simple { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.track-guide-more { margin-top: 2px; }
.track-guide-more > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; color: #8bd9e9; font-size: 13px; }
.track-guide-more > summary:focus-visible { outline: 3px solid rgba(139, 217, 233, .82); outline-offset: 2px; border-radius: 6px; }
.track-guide-more ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.track-guide-more b { color: var(--text); font-weight: 600; }
.track-px .is-win b { color: var(--text); }
/* [2026-10-07 師兄] 四象限:未來軌跡虛線的一句說明 */
.rrg-legend .rrg-legend-note { color: var(--muted); }
/* [2026-10-09 師兄] 天機殿四卷 + 板塊輪動獨立頁 */
.volume-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.volume-nav i.is-star svg { width: 17px; height: 17px; display: block; fill: currentColor; }
/* 獨立頁:沒有分頁列,底部改由共用 dock(66px + safe-area,dock.js 自己會墊 body);右上角留給「⋯ 更多」 */
.volume-app.is-standalone .top-hud { padding-right: 58px; }
.volume-app.is-standalone .scene { padding-bottom: 28px; }
.volume-app.is-standalone .scene-verdict { bottom: 24px; }
.volume-app.is-standalone .drawer { z-index: 70; }
@media (min-width: 900px) {
  .volume-app.is-standalone .scene { padding-top: calc(104px + var(--safe-top)); padding-bottom: 40px; }
}
