:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --fg: #0f172a;
  --fg-soft: #334155;
  --mute: #64748b;
  --accent: #d99a00;
  --accent-bg: #fef7e0;
  --up: #0b9f6e;
  --down: #dc2626;
  --upbg: #e3f6ee;
  --downbg: #fee2e2;
  --watch: #6355d8;
  --watchbg: #ede9fe;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  --radius: 10px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e14; --panel: #131822; --panel-alt: #181f2c; --line: #232c3d; --line-strong: #323e54;
    --fg: #e8ecf4; --fg-soft: #cbd5e1; --mute: #8996ab; --accent: #f0b90b; --accent-bg: rgba(240, 185, 11, 0.14);
    --up: #2ebd85; --down: #f6465d; --upbg: rgba(46, 189, 133, 0.14); --downbg: rgba(246, 70, 93, 0.15);
    --watch: #9d8cff; --watchbg: rgba(157, 140, 255, 0.15);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.22); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0e14; --panel: #131822; --panel-alt: #181f2c; --line: #232c3d; --line-strong: #323e54;
  --fg: #e8ecf4; --fg-soft: #cbd5e1; --mute: #8996ab; --accent: #f0b90b; --accent-bg: rgba(240, 185, 11, 0.14);
  --up: #2ebd85; --down: #f6465d; --upbg: rgba(46, 189, 133, 0.14); --downbg: rgba(246, 70, 93, 0.15);
  --watch: #9d8cff; --watchbg: rgba(157, 140, 255, 0.15);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.22); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .mute { color: var(--mute); } .err { color: var(--down); }
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1320px; margin: 0 auto; padding: 9px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-dot { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), #f59e0b); display: grid; place-items: center; color: #111; font-weight: 800; font-size: 13px; flex: none; }
.brand h1 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: 0.01em; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand h1 b { color: var(--accent); }
.ver-badge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); font-family: var(--mono); }
.nav-pills { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-pills::-webkit-scrollbar { display: none; }
.nav-pills a { text-decoration: none; color: var(--mute); font-size: 12.5px; font-weight: 500; padding: 4px 8px; border-radius: 6px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.nav-pills a:hover { background: var(--panel-alt); color: var(--fg); }
.ctrl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ctrl-group { display: inline-flex; align-items: center; gap: 5px; background: var(--panel-alt); border: 1px solid var(--line); border-radius: 7px; padding: 3px 7px; font-size: 12.5px; }
.ctrl-group label { color: var(--mute); white-space: nowrap; }
.ctrl-group input { font: inherit; font-family: var(--mono); width: 48px; border: 0; background: transparent; color: var(--fg); font-weight: 600; outline: none; }
.search-box { font: inherit; font-size: 12.5px; width: 142px; border: 1px solid var(--line); background: var(--panel-alt); color: var(--fg); border-radius: 7px; padding: 4px 8px; }
.search-box:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 7px; padding: 5px 12px; cursor: pointer; transition: border-color 0.15s, background 0.15s, opacity 0.15s; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: 0.55; cursor: default; }
button.primary { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }
button.primary:hover:not(:disabled) { opacity: 0.9; }
button.icon-btn { padding: 5px 8px; line-height: 1.2; }
button:focus-visible, tr:focus-visible, .card:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-block: 18px 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 20px; }
.wrap > * { min-width: 0; }
.hero-strip { display: flex; flex-direction: column; gap: 10px; }
.lead { color: var(--mute); font-size: 12.5px; line-height: 1.6; }
.status-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--mute); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; box-shadow: var(--shadow); min-width: 0; }
.kpi .k { font-size: 11.5px; color: var(--mute); letter-spacing: 0.03em; }
.kpi .v { font-size: 20px; font-weight: 700; margin-top: 2px; }
.kpi .s { font-size: 11.5px; color: var(--mute); margin-top: 2px; }
h2 { margin: 4px 0 0; font-size: 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
h2 small { color: var(--mute); font-weight: 400; font-size: 12px; }
h2.grp { font-size: 19px; margin-top: 12px; padding-top: 16px; border-top: 2px solid var(--line); scroll-margin-top: 72px; }
h2.grp:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.blk { display: grid; gap: 10px; min-width: 0; scroll-margin-top: 72px; }
.groups { display: grid; gap: 20px; min-width: 0; }
.loading { opacity: 0.6; transition: opacity 0.2s; }
.dirbar { display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; box-shadow: var(--shadow); }
.dirbar-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 7px; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.12s, border-color 0.15s; }
.card:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.card.long { border-left: 4px solid var(--up); } .card.short { border-left: 4px solid var(--down); }
.card.weak { opacity: 0.56; } .card.tc { border-style: dashed; }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card .sym { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.card .ln { font-size: 13px; overflow-wrap: anywhere; } .card .ln b { font-weight: 600; }
.card .lv-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 2px 0; }
.card .lv-box { background: var(--panel-alt); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; min-width: 0; }
.card .lv-box span { display: block; font-size: 11px; color: var(--mute); }
.card .lv-box b { font-size: 13px; display: block; margin-top: 1px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pill.big { font-size: 14px; padding: 3px 12px; }
.p-long { background: var(--upbg); color: var(--up); } .p-short { background: var(--downbg); color: var(--down); }
.p-watch { background: var(--watchbg); color: var(--watch); } .p-none { background: var(--panel-alt); color: var(--mute); border: 1px solid var(--line); }
.p-hot { background: var(--accent); color: #111; } .p-tf { background: var(--watchbg); color: var(--watch); font-weight: 500; }
.p-ok { background: var(--accent-bg); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.p-x { background: var(--watchbg); color: var(--watch); }
.p-wl { background: var(--panel); border: 1px solid var(--line); color: var(--fg); display: inline-flex; align-items: center; gap: 2px; }
.p-wl .x { border: 0; background: none; padding: 0 2px 0 4px; color: var(--mute); line-height: 1; }
.p-wl .x:hover { color: var(--down); }
.tag-hawk { background: var(--downbg); color: var(--down); } .tag-dove { background: var(--upbg); color: var(--up); }
.empty { background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 20px; color: var(--mute); text-align: center; }
.tbl { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13px; }
th, td { padding: 8px 9px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; color: var(--mute); font-weight: 500; position: sticky; top: 0; background: var(--panel-alt); }
th:nth-child(2), td:nth-child(2) { text-align: left; } td.l, th.l { text-align: left; }
tbody tr.row { cursor: pointer; transition: background 0.1s; }
tbody tr.row:hover, tbody tr.row.open { background: var(--panel-alt); }
tbody tr:last-child td { border-bottom: 0; }
.pos { display: inline-block; width: 84px; height: 8px; border-radius: 4px; position: relative; vertical-align: middle; background: linear-gradient(90deg, var(--upbg) 0 15%, var(--line) 15% 75%, var(--downbg) 75% 100%); }
.pos i { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: var(--fg); }
tr.detail td { padding: 0 12px 16px; text-align: left; background: var(--panel); white-space: normal; }
.dwrap { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 14px; padding-top: 12px; position: sticky; left: 12px; width: min(1216px, calc(100vw - 64px)); }
@media (max-width: 860px) { .dwrap { grid-template-columns: 1fr; } }
.chartbox { height: 350px; min-width: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--mute); margin-bottom: 8px; }
.legend b { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.why { font-size: 12.5px; display: grid; gap: 5px; align-content: start; background: var(--panel-alt); border: 1px solid var(--line); border-radius: 8px; padding: 11px; min-width: 0; overflow-wrap: anywhere; }
.why > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.why > div > div { min-width: 0; text-align: right; overflow-wrap: anywhere; word-break: break-word; }
.why > div:last-child { border-bottom: 0; } .why > div > span { color: var(--mute); flex: none; }
.why .ok { color: var(--up); } .why .no { color: var(--mute); }
.wl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.wl form { display: flex; gap: 6px; margin-right: 6px; }
.wl input { font: inherit; width: 155px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 6px; padding: 5px 10px; }
.star { border: 0; background: none; padding: 0 6px 0 0; color: var(--mute); font-size: 15px; line-height: 1; }
.star.on { color: var(--accent); }
.mac { display: grid; gap: 12px; min-width: 0; } .mac > *, .mtop > *, .mcard > * { min-width: 0; }
.mtop { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 900px) { .mtop { grid-template-columns: 1fr; } }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; display: grid; gap: 9px; min-width: 0; align-content: start; box-shadow: var(--shadow); }
.mcard h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.why2 { display: grid; gap: 5px; font-size: 13px; }
.why2 div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; align-items: baseline; }
.why2 b { font-family: var(--mono); text-align: right; }
.gate { background: var(--watchbg); color: var(--watch); border-radius: 7px; padding: 9px 11px; font-size: 13px; }
.ctx { font-size: 12px; color: var(--mute); line-height: 1.6; }
.mchart { height: 330px; min-width: 0; }
table.mt { min-width: 580px; } .mcard table.mt { min-width: 0; } .mcard table.mt td, .mcard table.mt th { white-space: normal; } .mcard table.mt td.num { white-space: nowrap; }
.tbl.ev table { min-width: 760px; } .tbl.ev td { white-space: normal; vertical-align: top; } .tbl.ev td.num { white-space: nowrap; }
.star-i { color: var(--accent); font-size: 11px; letter-spacing: -1px; }
details.more > summary { cursor: pointer; color: var(--mute); font-size: 13px; padding: 4px 0; }
details.sub2 { font-size: 13px; } details.sub2 > summary { cursor: pointer; color: var(--mute); font-size: 12.5px; padding: 2px 0; } details.sub2[open] > summary { margin-bottom: 6px; }
.dlist { display: grid; gap: 6px; font-size: 13px; } .dlist > div { padding-left: 14px; position: relative; } .dlist > div:before { content: '·'; position: absolute; left: 3px; color: var(--mute); }
.pf { display: grid; gap: 5px; font-size: 13px; } .pf div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; align-items: baseline; } .pf b { font-family: var(--mono); text-align: right; }
.ppx { font-size: 14px; font-weight: 600; } .msub { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rh { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); } .rh:first-of-type { border-top: 0; padding-top: 0; } .rh-h { font-size: 14px; }
.plans { display: grid; font-size: 13px; } .plan { display: grid; gap: 3px; padding: 7px 0; border-top: 1px dashed var(--line); } .plan:first-child { border-top: 0; } .plan .mute { font-size: 12px; }
.bt-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 14px; box-shadow: var(--shadow); scroll-margin-top: 72px; }
.bt-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13px; }
.bt-controls label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bt-controls select { font: inherit; border: 1px solid var(--line); background: var(--panel-alt); color: var(--fg); border-radius: 6px; padding: 4px 8px; }
.bt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; }
.bt-stat { background: var(--panel-alt); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.bt-stat .k { font-size: 11.5px; color: var(--mute); } .bt-stat .v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.bt-curve { width: 100%; height: 180px; background: var(--panel-alt); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rules { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 13px; color: var(--mute); box-shadow: var(--shadow); scroll-margin-top: 72px; }
.rules p, .rules li { max-width: 86ch; line-height: 1.7; } .rules b { color: var(--fg); }
.rules table { min-width: 640px; font-size: 12.5px; } .rules td, .rules th { white-space: normal; }
@media (max-width: 640px) { .brand h1 { font-size: 16px; } .lead { display: none; } .search-box { width: 110px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.why div > div { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }

.cmodal-mask{position:fixed;inset:0;z-index:100;background:rgba(11,14,20,0.62);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:grid;place-items:center;padding:18px}
.cmodal{width:min(1160px,100%);max-height:90vh;overflow-y:auto;background:var(--panel);border:1px solid var(--line-strong);border-radius:14px;box-shadow:0 24px 64px rgba(0,0,0,0.35);padding:16px 18px 18px;display:grid;gap:12px}
.cmodal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid var(--line)}
.cmodal-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:17px;font-weight:700}
.cmodal-actions{display:flex;align-items:center;gap:8px}
.cmodal-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;min-width:0}
@media (max-width:860px){.cmodal-body{grid-template-columns:1fr}}
.cmodal-chart{height:420px;min-width:0}
