:root {
  color-scheme: dark;
  --ink: #090b0d;
  --board: #101417;
  --board-raised: #171c20;
  --paper: #efe9dc;
  --paper-ink: #15181a;
  --cyan: #66e0e5;
  --cyan-muted: #95c9cb;
  --cyan-ink: #23666a;
  --white: #f4f2ea;
  --muted: #99a2a5;
  --line: #30383c;
  --danger: #ff625e;
  --danger-copy: #ffaaa7;
  --green: #75e6ad;
  --gold: #e8c66a;
  --acid: #c8ff32;
  --amber: #f1b745;
  --signal: #75e6ad;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --paper-muted: #515859;
  --paper-line: #979384;
  --paper-field: #f8f3e8;
  --paper-danger: #a52f2c;
  --shadow: 0 18px 48px rgba(0, 0, 0, .34);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", system-ui, sans-serif;
  background: var(--ink);
  color: var(--white);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scrollbar-color: var(--cyan) var(--ink); }
body { margin: 0; min-width: 0; min-height: 100vh; overflow-x: hidden; background: var(--ink); }
::selection { color: var(--ink); background: var(--cyan); }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.masthead {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 2200px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.wordmark { display: inline-flex; width: max-content; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-size: 10px; font-weight: 750; letter-spacing: .11em; }
.mark { width: 26px; height: 18px; display: grid; grid-template-columns: repeat(3, 6px); grid-template-rows: repeat(2, 6px); gap: 3px; }
.mark i { display: block; background: var(--white); }
.mark i:nth-child(4) { grid-column: 2; }
.mark i:nth-child(5) { grid-column: 3; }
.route { color: var(--muted); font: 600 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.route span { padding: 0 8px; color: var(--cyan); }
.mast-actions { justify-self: end; display: flex; gap: 8px; }
.refresh { min-height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--white); background: transparent; font: 700 14px/1 inherit; cursor: pointer; transition: color 180ms ease-out, border-color 180ms ease-out, background 180ms ease-out; }
.refresh:hover { color: var(--ink); border-color: var(--cyan); background: var(--cyan); }
.refresh:disabled { color: var(--muted); border-color: var(--line); cursor: wait; background: transparent; }
.logout { color: var(--muted); }
.trade-link { display: inline-flex; align-items: center; text-decoration: none; }

main { width: min(2200px, calc(100% - 64px)); margin: 32px auto 60px; }
.manifest { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) .7fr .8fr 76px; min-height: 174px; overflow: hidden; color: var(--paper-ink); background: var(--paper); box-shadow: var(--shadow); }
.manifest::before, .manifest::after { content: ""; position: absolute; z-index: 2; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.manifest::before { left: -8px; }
.manifest::after { right: -8px; }
.manifest > * { padding: 26px 28px; }
.manifest-main { display: flex; flex-direction: column; justify-content: center; }
.environment { margin: 0 0 10px; color: var(--cyan-ink); font: 800 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 4.4vw, 66px); line-height: .96; letter-spacing: -.035em; }
.assurance { max-width: 65ch; margin: 16px 0 0; color: var(--paper-muted); font-size: 14px; line-height: 1.65; }
.manifest-segment { margin: 0; border-left: 1px dashed var(--paper-line); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.manifest-segment div { min-width: 0; }
.manifest dt { margin-bottom: 7px; color: var(--paper-muted); font: 700 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }
.manifest dd { margin: 0; overflow: hidden; color: #181b1c; font: 700 14px/1.25 ui-monospace, "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.barcode { padding: 0; border-left: 1px dashed var(--paper-line); background: repeating-linear-gradient(90deg, transparent 0 4px, var(--paper-ink) 4px 6px, transparent 6px 9px, var(--paper-ink) 9px 12px); opacity: .74; transform: rotate(90deg) scale(.72); }

.notice { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 4px; color: var(--cyan-muted); font-size: 14px; }
.notice-light { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 2px 12px rgba(102, 224, 229, .5); }
.notice.error { color: var(--danger-copy); }
.notice.error .notice-light { background: var(--danger); box-shadow: 0 2px 12px rgba(255, 98, 94, .5); }

.swap-command { position: relative; margin: 16px 0; overflow: hidden; border: 1px solid #4b585d; background: #080b0d; box-shadow: var(--shadow); }
.swap-command::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(200, 255, 50, .045), transparent 35%, rgba(102, 224, 229, .04)); }
.swap-command-head { position: relative; min-height: 132px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.swap-command-head small { color: var(--acid); font: 800 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .11em; }
.swap-command-head h2 { margin: 10px 0 0; font-size: clamp(28px, 3vw, 48px); line-height: .95; letter-spacing: -.035em; }
.swap-command-head p { max-width: 68ch; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.swap-live-state { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 10px 13px; border: 1px solid var(--line); color: var(--muted); font: 750 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-live-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.swap-live-state[data-state="live"] { color: var(--acid); border-color: color-mix(in srgb, var(--acid) 38%, var(--line)); }
.swap-live-state[data-state="live"] i { background: var(--acid); box-shadow: 0 2px 12px rgba(200, 255, 50, .46); }
.swap-live-state[data-state="paused"], .swap-live-state[data-state="error"] { color: var(--danger-copy); }
.swap-live-state[data-state="paused"] i, .swap-live-state[data-state="error"] i { background: var(--danger); }
.swap-mission-strip { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.swap-mission-strip > div { min-height: 108px; padding: 18px 22px; border-right: 1px solid var(--line); }
.swap-mission-strip > div:last-child { border-right: 0; }
.swap-mission-strip small, .swap-mission-strip span { display: block; color: var(--muted); font-size: 9px; }
.swap-mission-strip strong { display: block; margin: 9px 0 8px; color: var(--white); font: 850 clamp(24px, 2.6vw, 38px)/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-mission-strip > div:nth-child(3) strong { color: var(--acid); }
.swap-mission-strip strong.positive { color: var(--green); }
.swap-mission-strip strong.negative { color: var(--danger); }
.swap-forward-deck { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(102,224,229,.055), rgba(197,255,44,.025)); }
.swap-forward-deck > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.swap-forward-deck > header div { display: grid; gap: 5px; }
.swap-forward-deck > header small { color: var(--cyan); font: 800 8px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; }
.swap-forward-deck > header strong { color: var(--white); font-size: 13px; }
.swap-forward-deck > header span { color: var(--muted); font: 700 9px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-forward-deck dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.swap-forward-deck dl div { min-width: 0; padding: 13px 18px; border-right: 1px solid var(--line); }
.swap-forward-deck dl div:last-child { border-right: 0; }
.swap-forward-deck dt { color: var(--muted); font-size: 9px; }
.swap-forward-deck dd { margin: 8px 0 0; color: var(--white); font: 800 11px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.swap-forward-deck dd.positive { color: var(--profit); }
.swap-forward-deck dd.negative { color: var(--danger-copy); }
.swap-forward-deck > p { margin: 0; padding: 10px 18px; border-top: 1px solid rgba(58,70,75,.55); color: #76878b; font-size: 9px; }
.execution-forward-deck { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(102,224,229,.04), rgba(232,198,106,.035)); }
.swap-family-screen { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 18px; border-top: 1px solid var(--line); background: rgba(255,98,94,.035); }
.swap-family-screen > strong { color: var(--white); font-size: 10px; }
.swap-family-screen > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.swap-family-screen span { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font: 750 9px/1.3 var(--mono); }
.swap-family-screen span[data-state="rejected"] { color: var(--danger-copy); border-color: rgba(255,98,94,.35); }
.swap-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .55fr); min-height: 510px; border-bottom: 1px solid var(--line); }
.swap-chart-deck { min-width: 0; border-right: 1px solid var(--line); }
.swap-chart-toolbar, .swap-position-deck > header, .swap-map-wrap > header, .swap-rank-wrap > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.swap-chart-toolbar > div:first-child { display: grid; flex: 0 0 auto; gap: 5px; }
.swap-chart-toolbar strong, .swap-position-deck header strong, .swap-map-wrap header strong, .swap-rank-wrap header strong { color: var(--white); font-size: 13px; }
.swap-chart-toolbar span, .swap-position-deck header span, .swap-map-wrap header span, .swap-rank-wrap header span { color: var(--muted); font-size: 9px; }
.swap-chart-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.swap-timeframes, .swap-indicators, .swap-ranges { display: flex; gap: 2px; }
.swap-timeframes button, .swap-indicators button, .swap-ranges button { min-height: 32px; padding: 0 11px; border: 1px solid var(--line); color: var(--muted); background: transparent; font: 750 10px/1 inherit; cursor: pointer; }
.swap-timeframes button:hover, .swap-indicators button:hover, .swap-ranges button:hover { color: var(--white); border-color: #59676b; }
.swap-timeframes button[aria-pressed="true"] { color: #101407; border-color: var(--acid); background: var(--acid); }
.swap-indicators button[aria-pressed="true"], .swap-ranges button[aria-pressed="true"] { color: var(--white); border-color: var(--cyan); background: rgba(102,224,229,.12); }
.swap-tv-shell { position: relative; overflow: hidden; background: #080b0d; }
.swap-tv-chart { width: 100%; height: 400px; }
.swap-chart-loading { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--cyan-muted); background: #080b0d; font: 750 12px/1.6 "Noto Sans SC", "Microsoft YaHei UI", system-ui, sans-serif; text-align: center; }
.swap-chart-loading[hidden] { display: none; }
.swap-chart-loading[data-state="error"] { color: var(--danger-copy); }
.swap-crosshair-readout { position: absolute; z-index: 2; top: 10px; left: 12px; display: flex; flex-wrap: wrap; gap: 7px 14px; max-width: calc(100% - 90px); padding: 8px 10px; border: 1px solid rgba(88,103,108,.45); background: rgba(8,11,13,.84); color: var(--muted); font: 700 10px/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace; pointer-events: none; backdrop-filter: blur(5px); }
.swap-crosshair-readout time { color: var(--white); }
.swap-crosshair-readout b { color: #dce7e9; font-weight: 850; }
.swap-crosshair-readout .up b { color: var(--profit); }
.swap-crosshair-readout .down b { color: var(--danger-copy); }
.swap-chart-legend { min-height: 46px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 0 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.swap-chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.swap-chart-legend span::before { content: ""; width: 16px; height: 2px; background: currentColor; }
.swap-chart-legend .entry { color: #e8c66a; }
.swap-chart-legend .mark { color: var(--cyan); }
.swap-chart-legend .stop, .swap-chart-legend .liquidation { color: var(--danger-copy); }
.swap-chart-legend .liquidation::before { height: 1px; border-top: 1px dashed currentColor; background: transparent; }
.swap-chart-legend small { margin-left: auto; color: #69787c; font-size: 9px; }
.swap-position-deck { min-width: 0; background: #0d1114; }
.swap-positions { display: grid; }
.swap-empty-orbit { min-height: 446px; display: grid; align-content: center; justify-items: center; gap: 9px; color: var(--muted); text-align: center; }
.swap-empty-orbit i { width: 118px; height: 118px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 50%; box-shadow: inset 24px 8px 40px rgba(102, 224, 229, .05), 18px 14px 42px rgba(0, 0, 0, .3); }
.swap-empty-orbit i::after { content: ""; display: block; width: 8px; height: 8px; margin: 16px 0 0 84px; border-radius: 50%; background: var(--acid); box-shadow: 0 2px 12px rgba(200, 255, 50, .46); }
.swap-empty-orbit strong { color: var(--white); font-size: 14px; }
.swap-empty-orbit span { font-size: 10px; }
.swap-position { padding: 18px; border-bottom: 1px solid var(--line); }
.swap-position > header { display: flex; justify-content: space-between; gap: 12px; }
.swap-position > header strong { font: 800 13px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-position > header span { color: var(--acid); font: 800 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-position dl { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0 0; border: 1px solid var(--line); }
.swap-position dl div { padding: 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.swap-position dl div:nth-child(even) { border-right: 0; }
.swap-position dl div:nth-last-child(-n+2) { border-bottom: 0; }
.swap-position dt { color: var(--muted); font-size: 8px; }
.swap-position dd { margin: 6px 0 0; color: var(--white); font: 750 10px/1.25 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-position dd.positive { color: var(--green); }
.swap-position dd.negative, .swap-position dd.liquidation { color: var(--danger-copy); }
.liquidation-distance { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 9px; }
.liquidation-distance strong { color: var(--danger-copy); font: 800 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-intelligence { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, .6fr); min-height: 300px; }
.swap-map-wrap { min-width: 0; border-right: 1px solid var(--line); }
.swap-map-wrap svg { display: block; width: 100%; height: 240px; background: linear-gradient(180deg, rgba(200, 255, 50, .018), transparent); }
.swap-map-wrap svg line { stroke: var(--line); stroke-width: 1; }
.swap-map-plane { fill: url(#swap-grid-fade); stroke: var(--line); }
.swap-map-wrap svg > text { fill: var(--muted); font: 9px ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-map-node { cursor: pointer; }
.swap-map-node circle { fill: color-mix(in srgb, var(--cyan) 30%, transparent); stroke: var(--cyan); stroke-width: 1; transition: fill 180ms ease-out, stroke-width 180ms ease-out; }
.swap-map-node text { fill: var(--muted); font: 8px ui-monospace, "SFMono-Regular", Consolas, monospace; pointer-events: none; }
.swap-map-node:hover circle, .swap-map-node.active circle { fill: color-mix(in srgb, var(--acid) 46%, transparent); stroke: var(--acid); stroke-width: 2; }
.swap-map-node.active text { fill: var(--acid); font-weight: 800; }
.swap-rank-list { max-height: 240px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: auto; }
.swap-rank-list button { min-width: 0; min-height: 60px; display: grid; grid-template-columns: 22px 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 5px 8px; padding: 10px 12px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--white); background: transparent; text-align: left; cursor: pointer; }
.swap-rank-list button:hover, .swap-rank-list button[aria-pressed="true"] { background: var(--board-raised); }
.swap-rank-list button[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--acid); }
.swap-rank-list small { grid-row: 1 / 3; color: var(--muted); font: 700 8px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-rank-list strong { overflow: hidden; font: 800 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; }
.swap-rank-list span { font: 800 9px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-rank-list span.positive { color: var(--green); }
.swap-rank-list span.negative { color: var(--danger-copy); }
.swap-rank-list em { grid-column: 2 / 4; color: var(--muted); font: 700 8px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.swap-trade-ledger { position: relative; border-top: 1px solid var(--line); background: linear-gradient(90deg, rgba(102,224,229,.035), transparent 42%); }
.swap-trade-ledger > header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.swap-trade-ledger > header div { display: grid; gap: 5px; }
.swap-trade-ledger > header small { color: var(--cyan); font: 800 8px/1 var(--mono); letter-spacing: .13em; }
.swap-trade-ledger > header strong { color: var(--white); font-size: 14px; }
.swap-trade-ledger > header span { color: var(--muted); font: 700 9px/1.4 var(--mono); text-align: right; }
.swap-ledger-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.swap-ledger-kpis div { min-width: 0; padding: 14px 18px; border-right: 1px solid var(--line); }
.swap-ledger-kpis div:last-child { border-right: 0; }
.swap-ledger-kpis dt { color: var(--muted); font-size: 9px; }
.swap-ledger-kpis dd { margin: 7px 0 0; color: var(--white); font: 850 15px/1.25 var(--mono); }
.swap-ledger-kpis dd.positive { color: var(--profit); }
.swap-ledger-kpis dd.negative { color: var(--danger-copy); }
.swap-ledger-table-wrap { overflow-x: auto; }
.swap-ledger-table { min-width: 1240px; font-size: 11px; }
.swap-ledger-table th { color: #829196; font-size: 8px; letter-spacing: .08em; }
.swap-ledger-table td { vertical-align: middle; font-family: var(--mono); }
.swap-ledger-table td > strong, .swap-ledger-table td > small, .swap-ledger-table td > button { display: block; }
.swap-ledger-table td > small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.swap-ledger-table td > button { padding: 0; border: 0; color: var(--cyan); background: transparent; font: 850 11px/1 var(--mono); cursor: pointer; }
.swap-ledger-table td > button:hover { color: var(--acid); text-decoration: underline; }
.swap-ledger-table td.fee { color: #e8c66a; }
.swap-exit-challenger { margin: 18px; border: 1px solid var(--line); background: #070b0d; }
.swap-exit-challenger > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.swap-exit-challenger > header small { display: block; color: var(--acid); font: 800 8px/1 var(--mono); letter-spacing: .12em; }
.swap-exit-challenger > header strong { display: block; margin-top: 7px; color: var(--white); font-size: 16px; }
.swap-exit-challenger > header span { color: var(--cyan); font: 800 9px/1 var(--mono); }
.swap-exit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.swap-exit-summary div { min-width: 0; padding: 12px 16px; border-right: 1px solid var(--line); }
.swap-exit-summary div:last-child { border-right: 0; }
.swap-exit-summary dt, .swap-exit-cards dt { color: var(--muted); font-size: 8px; }
.swap-exit-summary dd { margin: 6px 0 0; color: var(--white); font: 800 10px/1.3 var(--mono); }
.swap-exit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swap-exit-cards > article { padding: 15px 16px; border-right: 1px solid var(--line); }
.swap-exit-cards > article:last-child { border-right: 0; }
.swap-exit-cards > article > small { color: var(--cyan-muted); font: 800 8px/1 var(--mono); }
.swap-exit-cards > article > strong { display: block; margin-top: 7px; color: var(--white); font-size: 12px; }
.swap-exit-cards dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 0; }
.swap-exit-cards dd { margin: 5px 0 0; color: var(--white); font: 800 10px/1 var(--mono); }
.swap-exit-cards dd.positive { color: var(--profit); }
.swap-exit-cards dd.negative { color: var(--danger-copy); }
.swap-exit-challenger > p { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.55; }
.swap-entry-challenger { border-color: rgba(176,255,36,.25); }
.swap-entry-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.swap-path-meter { width: 150px; display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; gap: 0; }
.swap-path-meter b { width: 1px; height: 18px; background: var(--white); }
.swap-path-meter i { display: block; height: 7px; max-width: 100%; }
.swap-path-meter .adverse { justify-self: end; background: var(--danger); }
.swap-path-meter .favorable { justify-self: start; background: var(--profit); }
.swap-path-meter + small { width: 150px; display: flex !important; justify-content: space-between; gap: 8px; }
.swap-path-meter + small .positive { color: var(--profit); }
.swap-path-meter + small .negative { color: var(--danger-copy); }
.swap-path-missing { color: var(--muted); font: 700 9px/1.3 var(--mono); }
.swap-trade-ledger > p { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); color: #758489; font-size: 9px; line-height: 1.55; }
.strategy-match-board { margin: 16px 0; border: 1px solid #526066; background: #090d0f; box-shadow: var(--shadow); }
.strategy-match-board > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding: 23px 26px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, rgba(200,255,50,.05), transparent 38%, rgba(102,224,229,.045)); }
.strategy-match-board > header small { color: var(--acid); font: 850 9px/1 var(--mono); letter-spacing: .13em; }
.strategy-match-board > header h2 { margin: 8px 0 0; font-size: 24px; }
.strategy-match-board > header p { max-width: 78ch; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.strategy-match-board > header > span { color: var(--cyan-muted); font: 750 9px/1.4 var(--mono); white-space: nowrap; }
.strategy-match-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.strategy-match-summary > div { padding: 14px 20px; border-right: 1px solid var(--line); }
.strategy-match-summary > div:last-child { border-right: 0; }
.strategy-match-summary dt { color: var(--muted); font-size: 9px; }
.strategy-match-summary dd { margin: 7px 0 0; color: var(--white); font: 850 18px/1 var(--mono); }
.strategy-match-summary dd.positive { color: var(--profit); }
.strategy-match-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strategy-match-cards > p { grid-column: 1 / -1; padding: 24px; color: var(--muted); }
.strategy-match-card { min-width: 0; border-right: 1px solid var(--line); }
.strategy-match-card:last-child { border-right: 0; }
.strategy-match-card > header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.strategy-match-card > header small { color: var(--cyan-muted); font: 800 8px/1 var(--mono); }
.strategy-match-card > header h3 { margin: 7px 0 0; color: var(--white); font-size: 15px; }
.strategy-match-card > header > span { padding: 6px 8px; border: 1px solid var(--line); color: var(--muted); font: 750 9px/1 var(--mono); }
.strategy-match-card[data-state="executable"] > header > span { color: #101407; border-color: var(--acid); background: var(--acid); }
.strategy-match-card[data-state="matching"] > header > span { color: var(--profit); border-color: color-mix(in srgb, var(--profit) 55%, var(--line)); }
.strategy-match-card[data-state="waiting"] > header > span { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 55%, var(--line)); }
.strategy-match-card[data-state="suspended"] > header > span { color: var(--danger-copy); border-color: color-mix(in srgb, var(--danger) 65%, var(--line)); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.strategy-match-score { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.strategy-match-score > div strong { display: block; color: var(--white); font: 900 30px/1 var(--mono); }
.strategy-match-score > div span { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; }
.strategy-match-score > i { position: relative; display: block; height: 12px; border: 1px solid var(--line); background: #050708; }
.strategy-match-score > i b { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--acid)); }
.strategy-match-score > i em { position: absolute; top: -5px; bottom: -5px; width: 1px; background: var(--white); }
.strategy-match-gates { min-height: 78px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 6px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.strategy-match-gates span { padding: 5px 7px; border: 1px solid var(--line); color: var(--muted); font: 720 8px/1 var(--mono); }
.strategy-match-gates span[data-state="passed"] { color: var(--profit); border-color: rgba(97,242,157,.3); background: rgba(97,242,157,.04); }
.strategy-match-card ol { max-height: 212px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.strategy-match-card li { border-bottom: 1px solid var(--line); }
.strategy-match-card li button { width: 100%; min-height: 42px; display: grid; grid-template-columns: 104px minmax(80px, 1fr) 54px; align-items: center; gap: 12px; padding: 8px 18px; border: 0; color: var(--white); background: transparent; text-align: left; cursor: pointer; }
.strategy-match-card li button:hover { background: var(--board-raised); }
.strategy-match-card li strong, .strategy-match-card li em { font: 800 9px/1 var(--mono); }
.strategy-match-card li em { color: var(--muted); text-align: right; }
.strategy-match-card li i { display: block; height: 5px; background: #050708; }
.strategy-match-card li i b { display: block; height: 100%; background: var(--cyan); }
.strategy-match-card > footer { padding: 14px 18px; }
.strategy-match-card > footer p { min-height: 34px; margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.strategy-match-card > footer dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); }
.strategy-match-card > footer dl div { padding: 9px; border-right: 1px solid var(--line); }
.strategy-match-card > footer dl div:last-child { border-right: 0; }
.strategy-match-card > footer dt { color: var(--muted); font-size: 8px; }
.strategy-match-card > footer dd { margin: 5px 0 0; color: var(--white); font: 800 9px/1 var(--mono); }
.strategy-match-card > footer dd.positive { color: var(--profit); }
.strategy-match-card > footer dd.negative { color: var(--danger-copy); }

.release-panel { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.22fr); margin-bottom: 16px; border: 1px solid var(--line); background: var(--board); box-shadow: var(--shadow); }
.release-verdict { padding: 24px 26px; border-right: 1px solid var(--line); }
.release-verdict small { color: var(--muted); font: 700 10px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.release-verdict strong { display: block; margin-top: 10px; color: var(--danger); font-size: clamp(24px, 3.4vw, 38px); line-height: 1.08; }
.release-verdict[data-state="released"] strong { color: var(--green); }
.release-verdict[data-state="limited"] strong { color: var(--gold); }
.release-verdict p { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.release-progress { padding: 22px 24px; }
.release-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.release-progress-head h2 { margin: 0; font-size: 18px; }
.release-progress-head span { color: var(--muted); font: 700 11px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.release-meter { height: 10px; margin: 16px 0 18px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); }
.release-meter i { display: block; width: 100%; height: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left center; transition: transform 240ms ease-out; }
.release-gates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.release-gate { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.release-gate i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.release-gate.passed { color: var(--green); }
.release-gate.passed i { background: var(--green); }
.release-frequency { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 0; border: 1px solid var(--line); }
.release-frequency div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); }
.release-frequency div:last-child { border-right: 0; }
.release-frequency dt { color: var(--muted); font-size: 9px; }
.release-frequency dd { margin: 6px 0 0; color: var(--white); font: 700 11px/1.45 ui-monospace, "SFMono-Regular", Consolas, monospace; }

.board { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid var(--line); background: var(--board); box-shadow: var(--shadow); }
.subaccount-board { margin-top: 18px; }
.subaccount-identity { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.subaccount-identity div { min-width: 0; padding: 15px 20px; border-right: 1px solid var(--line); }
.subaccount-identity div:last-child { border-right: 0; }
.subaccount-identity small { display: block; color: var(--muted); font-size: 10px; }
.subaccount-identity strong { display: block; margin-top: 6px; overflow-wrap: anywhere; color: var(--white); font: 700 12px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.bot-equity-primary { background: #91efc5; }
.board-header { min-height: 56px; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.board-header h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.board-header span { color: var(--muted); font: 600 11px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.section-head { margin-top: 12px; border-top: 1px solid var(--line); }
.equity-strip { display: grid; grid-template-columns: minmax(250px, .85fr) 1.65fr; min-height: 138px; }
.equity-strip[data-stale="true"] { opacity: .58; filter: saturate(.2); }
.equity-primary { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; gap: 9px 16px; padding: 26px 32px; border-right: 1px solid var(--line); background: var(--cyan); color: var(--ink); }
.equity-primary span { grid-column: 1 / -1; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.equity-primary strong { font: 700 clamp(30px, 4vw, 52px)/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: -.04em; }
.equity-primary small { align-self: end; padding-bottom: 4px; font-weight: 800; }
.equity-strip > dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.equity-strip dl div { display: flex; flex-direction: column; justify-content: center; padding: 22px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.equity-strip dl div:nth-child(even) { border-right: 0; }
.equity-strip dl div:nth-last-child(-n+2) { border-bottom: 0; }
.equity-strip dt { color: var(--muted); font-size: 10px; }
.equity-strip dd { margin: 8px 0 0; color: var(--white); font: 700 20px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }

.table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-color: var(--cyan) var(--board); }
table { width: 100%; min-width: 820px; border-collapse: collapse; font: 600 14px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; }
th, td { padding: 15px 22px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
tbody tr { transition: background 180ms ease-out; }
tbody tr:hover { background: var(--board-raised); }
tbody tr.changed { animation: gate-change 1.25s ease-out; }
td.positive { color: var(--cyan); }
td.negative { color: var(--danger); }
tr.empty td { height: 78px; color: var(--muted); text-align: center; font-family: inherit; }
@keyframes gate-change { 0%, 32% { background: rgba(102, 224, 229, .22); } 100% { background: transparent; } }

footer { display: flex; justify-content: space-between; gap: 32px; margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
footer p:first-child { max-width: 70ch; }
footer p:last-child { text-align: right; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

.trade-main { max-width: 2200px; }
.trade-manifest { grid-template-columns: minmax(0, 1.35fr) .7fr .7fr 64px; }
.console-index { position: sticky; z-index: 18; top: 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 14px 0 16px; border: 1px solid var(--line); background: rgba(13, 17, 20, .96); box-shadow: 0 12px 34px rgba(0, 0, 0, .28); backdrop-filter: blur(12px); }
.console-index a { min-width: 0; display: grid; gap: 5px; padding: 12px 15px; border-right: 1px solid var(--line); color: var(--white); text-decoration: none; }
.console-index a:last-child { border-right: 0; }
.console-index a:hover { background: var(--board-raised); }
.console-index span { color: var(--cyan); font: 800 9px/1 var(--mono); letter-spacing: .08em; }
.console-index strong { overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.strategy-library { margin-bottom: 16px; border: 1px solid var(--line); background: #090d0f; box-shadow: var(--shadow); }
.strategy-library-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.strategy-library-head h2 { margin: 0; font-size: clamp(24px, 2.1vw, 38px); letter-spacing: -.025em; }
.strategy-library-head p { max-width: 72ch; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.strategy-library-head > span { flex: 0 0 auto; padding-top: 7px; color: var(--cyan-muted); font: 750 10px/1 var(--mono); letter-spacing: .04em; }
.strategy-library-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.strategy-library-summary > div { min-width: 0; display: flex; align-items: baseline; gap: 10px; padding: 15px 20px; border-right: 1px solid var(--line); }
.strategy-library-summary > div:last-child { border-right: 0; }
.strategy-library-summary strong { color: var(--white); font: 850 22px/1 var(--mono); }
.strategy-library-summary span { color: var(--muted); font-size: 10px; }
.strategy-library-summary > div:nth-child(2) strong { color: var(--profit); }
.strategy-library-summary > div:nth-child(5) strong { color: var(--danger-copy); }
.strategy-library-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--board); }
.strategy-library-tools label { min-width: min(360px, 100%); display: grid; gap: 7px; }
.strategy-library-tools label span { color: var(--muted); font-size: 9px; }
.strategy-library-tools input { width: 100%; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--white); background: #080b0d; font: 650 12px/1 inherit; caret-color: var(--cyan); }
.strategy-library-tools input::placeholder { color: #819196; }
.strategy-library-tools input:focus { border-color: var(--cyan); box-shadow: 0 8px 24px rgba(0, 0, 0, .24); }
.strategy-library-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.strategy-library-filters button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); color: var(--muted); background: transparent; font: 750 10px/1 inherit; cursor: pointer; }
.strategy-library-filters button + button { border-left: 0; }
.strategy-library-filters button:hover { color: var(--white); background: var(--board-raised); }
.strategy-library-filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--cyan); background: var(--cyan); }
.strategy-library-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.strategy-card { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0c1012; }
.strategy-card:nth-child(3n) { border-right: 0; }
.strategy-card[data-status="live"] { grid-column: span 2; background: linear-gradient(120deg, rgba(97, 242, 157, .07), #0c1012 45%); }
.strategy-card[data-status="exploration"] { grid-column: span 2; background: linear-gradient(120deg, rgba(197, 255, 63, .075), #0c1012 45%); }
.strategy-card[data-status="rejected"] { background: rgba(255, 98, 94, .025); }
.strategy-card > header { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid rgba(58, 70, 75, .66); }
.strategy-card > header span { color: var(--muted); font: 750 9px/1 var(--mono); }
.strategy-card > header strong { color: var(--cyan-muted); font-size: 10px; }
.strategy-card[data-status="live"] > header strong { color: var(--profit); }
.strategy-card[data-status="exploration"] > header strong { color: var(--acid); }
.strategy-card[data-status="forward"] > header strong { color: var(--acid); }
.strategy-card[data-status="rejected"] > header strong { color: var(--danger-copy); }
.strategy-card-title { min-height: 126px; padding: 18px; }
.strategy-card-title h3 { margin: 0; color: var(--white); font-size: 18px; letter-spacing: -.015em; }
.strategy-card-title p { max-width: 68ch; margin: 10px 0 0; color: #a8b5b8; font-size: 11px; line-height: 1.65; }
.strategy-card-tags { min-height: 47px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 5px; padding: 0 18px 14px; }
.strategy-card-tags span { padding: 5px 7px; border: 1px solid #344045; color: #9fb0b4; font: 700 9px/1 var(--mono); }
.strategy-card-trigger { min-height: 86px; display: grid; align-content: start; gap: 8px; padding: 14px 18px; border-top: 1px solid rgba(58, 70, 75, .66); background: rgba(0, 0, 0, .12); }
.strategy-card-trigger span { color: var(--cyan); font: 800 9px/1 var(--mono); }
.strategy-card-trigger strong { color: #d8e1e3; font-size: 10px; line-height: 1.55; }
.strategy-card details { border-top: 1px solid var(--line); }
.strategy-card summary { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; color: var(--muted); font-size: 10px; cursor: pointer; list-style: none; }
.strategy-card summary::-webkit-details-marker { display: none; }
.strategy-card summary:hover { color: var(--white); background: var(--board-raised); }
.strategy-card summary i { width: 9px; height: 9px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 180ms ease-out; }
.strategy-card details[open] summary i { transform: rotate(225deg) translate(-2px, -2px); }
.strategy-card-detail { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.strategy-card-detail section { min-width: 0; padding: 15px 18px; border-right: 1px solid rgba(58, 70, 75, .66); border-bottom: 1px solid rgba(58, 70, 75, .66); }
.strategy-card-detail section:nth-child(even) { border-right: 0; }
.strategy-card-detail section:nth-last-child(-n+2) { border-bottom: 0; }
.strategy-card-detail h4 { margin: 0 0 9px; color: var(--white); font-size: 10px; }
.strategy-card-detail ul { display: grid; gap: 6px; margin: 0; padding-left: 15px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.strategy-card-detail p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.strategy-card-detail a { display: inline-block; margin-top: 10px; color: var(--cyan); font-size: 9px; text-underline-offset: 3px; }
.trade-strategy-lane { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 7px; border: 1px solid rgba(109, 226, 232, .28); background: rgba(109, 226, 232, .07); color: var(--cyan); font: 800 9px/1.25 var(--mono); letter-spacing: .03em; }
.strategy-library-note, .strategy-library-empty { margin: 0; padding: 13px 20px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.strategy-library-empty { grid-column: 1 / -1; min-height: 110px; display: grid; place-items: center; }
.danger-label { color: var(--paper-danger); }
.strategy-panel, .performance-panel, .desk-panel { margin-bottom: 16px; border: 1px solid var(--line); background: var(--board); box-shadow: var(--shadow); }
.performance-strip dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.performance-strip div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.performance-strip div:nth-child(3n) { border-right: 0; }
.performance-strip dt { color: var(--muted); font-size: 10px; }
.performance-strip dd { margin: 7px 0 0; color: var(--white); font: 700 15px/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.performance-strip dd.positive { color: var(--green); }
.performance-strip dd.negative { color: var(--danger); }
.meme-radar-summary dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.meme-radar-summary div:nth-child(3n) { border-right: 1px solid var(--line); }
.meme-radar-summary div:nth-child(4n) { border-right: 0; }
.meme-forward-summary { border-top: 1px solid rgba(58,70,75,.55); background: rgba(102,224,229,.025); }
.meme-forward-summary dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.meme-forward-summary div:nth-child(4n) { border-right: 0; }
.meme-portfolio-panel { border-bottom: 1px solid var(--line); background: #090c0e; }
.meme-portfolio-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.meme-portfolio-heading > div:first-child { display: grid; gap: 5px; }
.meme-portfolio-heading small { color: var(--cyan-muted); font: 800 9px/1 var(--mono); letter-spacing: .09em; }
.meme-portfolio-heading strong { color: var(--white); font-size: 16px; }
.meme-portfolio-heading span { color: var(--muted); font-size: 10px; }
.meme-portfolio-heading #meme-portfolio-state[data-state="ready"] { color: var(--green); }
.meme-portfolio-heading #meme-portfolio-state[data-state="invalid"] { color: var(--danger-copy); }
.meme-portfolio-controls { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.meme-portfolio-controls > div { display: flex; }
.meme-portfolio-controls button { min-width: 38px; min-height: 32px; padding: 0 9px; border: 1px solid var(--line); color: var(--muted); background: transparent; font: 800 10px/1 var(--mono); cursor: pointer; }
.meme-portfolio-controls button + button { border-left: 0; }
.meme-portfolio-controls button:hover { color: var(--white); border-color: var(--cyan); }
.meme-portfolio-controls button[aria-pressed="true"] { color: var(--ink); border-color: var(--cyan); background: var(--cyan); }
.meme-portfolio-kpis dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.meme-portfolio-kpis div { min-width: 0; padding: 16px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meme-portfolio-kpis div:last-child { border-right: 0; }
.meme-portfolio-kpis dt { color: var(--muted); font-size: 9px; }
.meme-portfolio-kpis dd { margin: 8px 0 0; overflow: hidden; color: var(--white); font: 800 18px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.meme-portfolio-kpis dd.positive { color: var(--green); }
.meme-portfolio-kpis dd.negative { color: var(--danger-copy); }
.meme-portfolio-chart-wrap { padding: 16px 20px 18px; border-bottom: 1px solid var(--line); }
.meme-portfolio-chart-wrap > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.meme-portfolio-chart-wrap strong { color: var(--white); font-size: 12px; }
.meme-portfolio-chart-wrap span { color: var(--muted); font-size: 10px; }
#meme-portfolio-chart { min-height: 138px; }
#meme-portfolio-chart svg { display: block; width: 100%; height: 138px; border: 1px solid var(--line); background: var(--board); }
#meme-portfolio-chart .portfolio-zero { stroke: var(--line); stroke-width: 1; stroke-dasharray: 5 5; }
#meme-portfolio-chart .portfolio-curve { fill: none; stroke: var(--cyan); stroke-width: 3; vector-effect: non-scaling-stroke; }
#meme-portfolio-chart .portfolio-area { fill: rgba(102,224,229,.07); stroke: none; }
#meme-portfolio-chart .portfolio-marker { fill: var(--cyan); }
#meme-portfolio-chart text { fill: var(--muted); font: 10px var(--mono); }
.meme-portfolio-ledger table { min-width: 760px; font-size: 11px; }
.meme-portfolio-ledger th, .meme-portfolio-ledger td { padding: 10px 20px; }
.meme-portfolio-note { margin: 0; padding: 12px 20px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.meme-veto-cell { min-width: 280px; max-width: 520px; text-align: left; white-space: normal; }
.meme-veto-cell small { display: block; margin-top: 5px; color: var(--muted); font: 550 10px/1.45 "Noto Sans SC", "Microsoft YaHei UI", system-ui, sans-serif; }
.trade-ledger-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 16px 22px 12px; border-bottom: 1px solid var(--line); }
.trade-ledger-heading > div { display: grid; gap: 4px; }
.trade-ledger-heading strong { color: var(--white); font-size: 14px; }
.trade-ledger-heading span { color: var(--muted); font-size: 10px; }
.trade-ledger-heading > b { color: var(--white); font: 800 10px/1.4 var(--mono); text-align: right; }
.trade-ledger-heading > b.positive { color: var(--green); }
.trade-ledger-heading > b.negative { color: var(--danger-copy); }
.order-attempts { border-bottom: 1px solid var(--line); }
.order-attempts summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px; color: var(--muted); cursor: pointer; font-size: 10px; list-style-position: inside; }
.order-attempts summary:hover { color: var(--white); background: var(--board-raised); }
.order-attempts summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.order-attempts summary strong { color: var(--white); font: 800 10px/1.4 var(--mono); }
.order-attempts > p { margin: 0; padding: 0 22px 14px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.trade-time-pair { display: grid; gap: 3px; }
.trade-time-pair i { color: var(--muted); font-style: normal; }
.trade-time-pair small { color: var(--cyan); font-size: 0.72rem; }
.trade-filters { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)) auto; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: #0b0f11; }
.trade-filters label { display: grid; gap: 7px; color: var(--muted); font-size: 14px; }
.trade-filters select, .trade-filters button { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; color: var(--white); background: var(--board); font: 700 14px/1.2 inherit; }
.trade-filters select { cursor: pointer; }
.trade-filters button { align-self: end; color: var(--cyan); cursor: pointer; }
.trade-filters select:hover, .trade-filters button:hover { border-color: var(--cyan); }
.trade-filters select:focus-visible, .trade-filters button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.data-provenance-strip {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 700 10px/1.4 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.data-provenance-strip > * { min-width: 0; padding: 10px 20px; border-right: 1px solid var(--line); }
.data-provenance-strip > :last-child { border-right: 0; }
.data-provenance-strip strong { color: var(--signal); }
.data-provenance-strip strong[data-state="mismatch"] { color: var(--danger); }
.data-provenance-strip strong[data-state="unavailable"] { color: var(--muted); }
.owner-history-summary dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.owner-history-summary div { min-width: 0; padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.owner-history-summary div:nth-child(4n) { border-right: 0; }
.owner-history-summary dt { color: var(--muted); font-size: 14px; }
.owner-history-summary dd { margin: 9px 0 0; overflow: hidden; color: var(--white); font: 850 clamp(19px, 1.6vw, 28px)/1.1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.owner-history-summary dd.positive { color: var(--green); }
.owner-history-summary dd.negative { color: var(--danger-copy); }
.owner-history-story { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.owner-history-story article { min-height: 126px; padding: 22px; border-right: 1px solid var(--line); background: linear-gradient(120deg, rgba(117, 230, 173, .08), transparent 52%); }
.owner-history-story article:last-child { border-right: 0; }
.owner-history-story article[data-risk="true"] { background: linear-gradient(120deg, rgba(255, 98, 94, .09), transparent 52%); }
.owner-history-story strong { color: var(--green); font-size: 16px; }
.owner-history-story article[data-risk="true"] strong { color: var(--danger-copy); }
.owner-history-story p { max-width: 74ch; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.owner-history-explorer { padding: 20px 22px 22px; border-bottom: 1px solid var(--line); background: #090c0e; }
.owner-history-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.owner-history-tabs button { min-height: 40px; padding: 0 18px; border: 1px solid var(--line); color: var(--muted); background: transparent; font: 750 14px/1 inherit; cursor: pointer; }
.owner-history-tabs button:hover { color: var(--white); border-color: var(--cyan); }
.owner-history-tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--cyan); background: var(--cyan); }
.owner-history-bars { display: grid; gap: 5px; }
.owner-history-bars > p { margin: 18px 0; color: var(--muted); font-size: 14px; text-align: center; }
.owner-bar-row { width: 100%; min-height: 42px; display: grid; grid-template-columns: minmax(92px, .35fr) minmax(150px, 1fr) minmax(110px, auto) 68px; align-items: center; gap: 14px; padding: 5px 10px; border: 1px solid transparent; color: var(--white); background: transparent; font: 700 14px/1.2 var(--mono); text-align: left; cursor: pointer; }
.owner-bar-row:hover, .owner-bar-row[aria-current="true"] { border-color: var(--line); background: var(--board-raised); }
.owner-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-bar-row > i { height: 12px; position: relative; overflow: hidden; background: #171d20; }
.owner-bar-row > i b { display: block; width: var(--bar-width); height: 100%; background: var(--muted); }
.owner-bar-row[data-state="positive"] > i b { background: var(--green); }
.owner-bar-row[data-state="negative"] > i b { background: var(--danger); }
.owner-bar-row[data-state="positive"] > strong { color: var(--green); }
.owner-bar-row[data-state="negative"] > strong { color: var(--danger-copy); }
.owner-bar-row > strong { justify-self: end; }
.owner-bar-row > small { justify-self: end; color: var(--muted); font-size: 14px; }
.owner-history-detail { min-height: 22px; margin: 16px 10px 0; color: var(--cyan-muted); font-size: 14px; line-height: 1.6; }
.live-pnl-chart { padding: 16px 22px 18px; border-bottom: 1px solid var(--line); }
.live-pnl-chart > .chart-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.chart-heading > div:first-child { display: grid; gap: 5px; }
.live-pnl-chart strong { color: var(--white); font-size: 13px; }
.live-pnl-chart span { color: var(--muted); font-size: 10px; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chart-legend b { color: var(--white); font: 800 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.chart-legend i { width: 18px; height: 2px; display: inline-block; background: var(--cyan); }
.chart-legend .realized-swatch { background: var(--green); }
#live-pnl-chart { display: block; width: 100%; height: 190px; background: #090c0e; border: 1px solid var(--line); }
#live-pnl-chart line { stroke: var(--line); stroke-width: 1; }
#live-pnl-chart polyline { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
#live-pnl-chart .equity-curve { stroke: var(--cyan); }
#live-pnl-chart .realized-curve { stroke: var(--green); stroke-width: 2; stroke-dasharray: 7 5; }
#live-pnl-chart .equity-marker { fill: var(--cyan); }
#live-pnl-chart .realized-marker { fill: var(--green); }
#live-pnl-chart text { fill: var(--muted); font: 12px "Noto Sans SC", "Microsoft YaHei UI", system-ui, sans-serif; }
.validation-chart-wrap { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.scanner-summary { margin: 18px 22px 0; border: 1px solid var(--line); border-left: 4px solid var(--amber); background: linear-gradient(90deg, rgba(241, 183, 69, .08), transparent 55%), var(--ink); }
.scanner-summary[data-state="passed"] { border-left-color: var(--green); }
.scanner-summary[data-state="failed"] { border-left-color: var(--danger); }
.scanner-summary > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.scanner-summary small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.scanner-summary strong { display: block; margin-top: 6px; color: var(--white); font-size: 18px; }
.scanner-summary header > span { color: var(--amber); font: 800 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.scanner-summary dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.scanner-summary dl div { min-width: 0; padding: 14px 18px; border-right: 1px solid var(--line); }
.scanner-summary dl div:last-child { border-right: 0; }
.scanner-summary dt { color: var(--muted); font-size: 9px; }
.scanner-summary dd { margin: 7px 0 0; overflow: hidden; color: var(--white); font: 800 18px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; }
.scanner-summary dd.positive { color: var(--green); }
.scanner-summary dd.negative { color: var(--danger-copy); }
.scanner-summary > p { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.evolution-summary { margin-top: 10px; }
.timeframe-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.timeframe-compare article { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); background: var(--ink); }
.timeframe-compare article[data-state="failed"] { border-top-color: var(--danger); }
.timeframe-compare article[data-state="passed"] { border-top-color: var(--green); }
.timeframe-compare small, .timeframe-compare span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.timeframe-compare strong { display: block; margin: 8px 0; color: var(--white); font: 800 20px/1.1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.timeframe-compare strong.positive { color: var(--green); }
.timeframe-compare strong.negative { color: var(--danger); }
.timeframe-compare p { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.timeframe-compare .timeframe-reason { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--paper); font-size: 11px; line-height: 1.55; }
.validation-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; margin-bottom: 18px; }
.validation-compare > span { align-self: center; color: var(--muted); font: 800 18px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.validation-compare article { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); background: var(--ink); }
.validation-compare small { color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.validation-compare strong { display: block; margin-top: 8px; color: var(--white); font: 800 24px/1.1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.validation-compare strong.positive { color: var(--green); }
.validation-compare strong.negative { color: var(--danger); }
.validation-compare p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.validation-gates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
#validation-chart { display: block; width: 100%; height: 220px; background: #090c0e; border: 1px solid var(--line); }
#validation-chart line { stroke: var(--line); stroke-width: 1; }
#validation-chart polyline { fill: none; stroke: var(--cyan); stroke-width: 3; vector-effect: non-scaling-stroke; }
.microstructure-grid { display: grid; gap: 12px; padding: 18px 22px; }
.live-ticker-tape { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.live-ticker-tape > article { min-width: 0; padding: 14px 18px; border-right: 1px solid var(--line); }
.live-ticker-tape > article:last-child { border-right: 0; }
.live-ticker-tape header, .live-ticker-tape > article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.live-ticker-tape header strong { color: var(--white); font: 800 12px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.live-ticker-tape header span, .live-ticker-tape p { color: var(--muted); font-size: 9px; }
.live-ticker-tape b { margin-top: 10px; overflow: hidden; color: var(--white); font: 850 22px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; }
.live-ticker-tape > article[data-direction="up"] b { color: var(--green); }
.live-ticker-tape > article[data-direction="down"] b { color: var(--danger-copy); }
.live-ticker-tape > article > div span { font: 750 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.live-ticker-tape p { margin: 9px 0 0; }
.micro-instrument { border: 1px solid var(--line); background: var(--ink); }
.micro-instrument > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.micro-instrument > header strong { color: var(--white); font: 800 15px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.micro-instrument > header span { color: var(--muted); font-size: 10px; }
.micro-cost-check { padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--danger-copy); background: color-mix(in srgb, var(--danger) 7%, transparent); font-size: 10px; line-height: 1.45; }
.micro-cost-check[data-state="research"] { color: #e8c66a; background: color-mix(in srgb, #e8c66a 7%, transparent); }
.micro-cost-check[data-state="covered"] { color: var(--green); background: color-mix(in srgb, var(--green) 7%, transparent); }
.micro-tracks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.micro-track { min-width: 0; padding: 12px; border-right: 1px solid var(--line); }
.micro-track:last-child { border-right: 0; }
.micro-track[data-bar="15m"] { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--cyan) 5%, var(--ink)); }
.micro-track[data-bar="15m"] svg { height: 174px; }
.micro-track > div { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px; }
.micro-track small { color: var(--cyan); font: 800 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.micro-track strong { overflow: hidden; color: var(--white); font: 750 13px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; }
.micro-track span { font: 750 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.micro-track svg { display: block; width: 100%; height: 66px; margin: 9px 0 7px; background: #090c0e; }
.micro-track svg line { stroke: var(--line); stroke-width: 1; }
.micro-track svg polyline { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; }
.micro-track .candlestick-chart line { stroke: var(--line); stroke-width: 1; }
.micro-track .candlestick-chart .candle line { stroke-width: 1.25; }
.micro-track .candlestick-chart .candle rect { stroke-width: 1; }
.micro-track .candlestick-chart .candle.up line, .micro-track .candlestick-chart .candle.up rect { stroke: var(--green); fill: color-mix(in srgb, var(--green) 36%, transparent); }
.micro-track .candlestick-chart .candle.down line, .micro-track .candlestick-chart .candle.down rect { stroke: var(--danger); fill: color-mix(in srgb, var(--danger) 36%, transparent); }
.micro-track .candlestick-chart .candle .volume { stroke: none; opacity: .38; }
.micro-track .candlestick-chart .position-line { stroke-width: 1.5; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.micro-track .candlestick-chart .position-line.entry { stroke: #e8c66a; }
.micro-track .candlestick-chart .position-line.mark { stroke: var(--cyan); stroke-width: 2; }
.micro-track .candlestick-chart .position-line.stop { stroke: var(--danger); }
.micro-track .candlestick-chart text { fill: var(--muted); font: 10px ui-monospace, "SFMono-Regular", Consolas, monospace; }
.micro-track p, .micro-empty { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.micro-track > .position-overlay { display: flex; grid-template-columns: none; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 15px; min-height: 30px; margin-top: 9px; padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); background: var(--board); font: 700 9px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.position-overlay span, .position-overlay strong, .position-overlay em { display: inline-flex; align-items: center; gap: 5px; overflow: visible; font: inherit; font-style: normal; white-space: nowrap; }
.position-overlay b { color: var(--white); font-weight: 800; }
.position-overlay i { width: 11px; height: 2px; flex: 0 0 auto; background: currentColor; }
.position-overlay .entry { color: #e8c66a; }
.position-overlay .mark { color: var(--cyan); }
.position-overlay .stop, .position-overlay .protection-missing { color: var(--danger-copy); }
.position-overlay strong.positive { color: var(--green); }
.position-overlay strong.negative { color: var(--danger-copy); }
.board-header span.negative { color: var(--danger); }
.board-header span.positive { color: var(--green); }
.strategy-summary { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.35fr); }
.strategy-verdict { padding: 22px; border-right: 1px solid var(--line); }
.strategy-verdict small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.strategy-verdict strong { display: block; margin-top: 8px; color: var(--danger); font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }
.strategy-verdict strong[data-state="eligible"] { color: var(--green); }
.strategy-verdict p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.strategy-metrics { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.strategy-metrics div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strategy-metrics div:nth-child(even) { border-right: 0; }
.strategy-metrics .strategy-next { grid-column: 1 / -1; border-right: 0; }
.strategy-metrics dt { color: var(--muted); font-size: 10px; }
.strategy-metrics dd { margin: 7px 0 0; color: var(--white); font: 700 14px/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.strategy-plan { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(320px, 1.45fr); gap: 20px; align-items: start; padding: 18px 22px; border-top: 1px solid var(--line); }
.strategy-plan h3 { margin: 0 0 7px; font-size: 11px; color: var(--muted); }
.strategy-plan strong { color: var(--white); font: 700 16px/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.strategy-plan p { margin: 0; color: var(--white); }
.strategy-plan ol { grid-column: 2; margin: 0; padding-left: 20px; color: var(--muted); }
.strategy-plan li + li { margin-top: 6px; }
.strategy-plan[data-state^="ready"] strong { color: var(--cyan); }
.strategy-plan[data-state="blocked"] strong { color: var(--danger-copy); }
.intraday-research-summary { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(420px, 1.2fr); }
.switching-forward-summary { display: grid; grid-template-columns: minmax(210px, .62fr) minmax(420px, 1.38fr); }
.switching-forward-lead { min-width: 0; padding: 22px; border-right: 1px solid var(--line); }
.switching-forward-lead small { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.switching-forward-lead strong { display: block; margin-top: 8px; color: var(--cyan); font: 800 clamp(30px, 3vw, 44px)/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.switching-forward-lead p { max-width: 48ch; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.switching-forward-summary dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.switching-forward-summary dl div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.switching-forward-summary dl div:nth-child(even) { border-right: 0; }
.switching-forward-summary dt { color: var(--muted); font-size: 10px; }
.switching-forward-summary dd { margin: 7px 0 0; color: var(--white); font: 800 15px/1.25 ui-monospace, "SFMono-Regular", Consolas, monospace; font-variant-numeric: tabular-nums; }
.switching-forward-summary dd.positive { color: var(--green); }
.switching-forward-summary dd.negative { color: var(--danger-copy); }
.switching-forward-latest { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; min-height: 54px; padding: 16px 22px; border-top: 1px solid var(--line); }
.switching-forward-latest strong { color: var(--white); font-size: 13px; }
.switching-forward-latest span { color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }
.switching-forward-panel { display: flex; flex-direction: column; }
.switching-forward-panel .strategy-footnote { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.intraday-research-summary > div { padding: 22px; border-right: 1px solid var(--line); }
.intraday-research-summary small { color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.intraday-research-summary strong { display: block; margin-top: 8px; color: var(--cyan); font-size: clamp(24px, 3vw, 36px); }
.intraday-research-summary p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.intraday-research-summary dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.intraday-research-summary dl div { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intraday-research-summary dl div:nth-child(even) { border-right: 0; }
.intraday-research-summary dt { color: var(--muted); font-size: 10px; }
.intraday-research-summary dd { margin: 7px 0 0; color: var(--white); font: 700 14px/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.intraday-research-chart { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(360px, 1.35fr); gap: 10px 24px; padding: 18px 22px; border-top: 1px solid var(--line); }
.intraday-research-chart > div:first-child { display: grid; align-content: start; gap: 6px; }
.intraday-research-chart strong { color: var(--white); font-size: 13px; }
.intraday-research-chart span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.intraday-research-chart-values { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; }
.intraday-research-chart-values span { white-space: nowrap; }
.intraday-research-chart-values b { margin-left: 5px; color: var(--white); font: 800 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.intraday-research-chart-values b.positive { color: var(--green); }
.intraday-research-chart-values b.negative { color: var(--danger); }
#intraday-research-chart { grid-column: 1 / -1; display: block; width: 100%; height: 150px; border: 1px solid var(--line); background: #090c0e; }
#intraday-research-chart line { stroke: var(--line); stroke-width: 1; }
#intraday-research-chart polyline { fill: none; stroke: var(--cyan); stroke-width: 3; vector-effect: non-scaling-stroke; }
#intraday-research-chart circle { fill: var(--cyan); }
#intraday-research-chart text { fill: var(--muted); font: 11px "Noto Sans SC", "Microsoft YaHei UI", system-ui, sans-serif; }
.signal-history-chart { padding: 16px 22px 18px; border-bottom: 1px solid var(--line); }
.signal-history-chart .chart-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 12px; }
.signal-history-chart .chart-heading > div:first-child { display: grid; gap: 5px; }
.signal-history-chart strong { font-size: 13px; }
.signal-history-chart span { color: var(--muted); font-size: 10px; }
.signal-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.signal-legend span { padding-left: 13px; position: relative; }
.signal-legend span::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 2px; background: currentColor; }
.signal-legend .signal-sol { color: var(--cyan); }
.signal-legend .signal-btc { color: #e8c66a; }
.signal-legend .signal-eth { color: var(--green); }
.signal-legend b { margin-left: 4px; font: 800 11px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
#signal-history-chart { display: block; width: 100%; height: 170px; border: 1px solid var(--line); background: #090c0e; }
#signal-history-chart line { stroke: var(--line); stroke-width: 1; }
#signal-history-chart polyline { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
#signal-history-chart polyline.signal-sol { stroke: var(--cyan); }
#signal-history-chart polyline.signal-btc { stroke: #e8c66a; }
#signal-history-chart polyline.signal-eth { stroke: var(--green); }
#signal-history-chart text { fill: var(--muted); font: 11px "Noto Sans SC", "Microsoft YaHei UI", system-ui, sans-serif; }
.strategy-gates { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--line); }
.strategy-instruments { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.strategy-instruments article { padding: 16px 18px; border-right: 1px solid var(--line); }
.strategy-instruments article:last-child { border-right: 0; }
.strategy-instruments small { color: var(--muted); font: 600 10px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.strategy-instruments strong { display: block; margin-top: 8px; font-size: 18px; }
.strategy-instruments strong.passed { color: var(--green); }
.strategy-instruments strong.failed { color: var(--danger); }
.strategy-instruments p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.strategy-gate { padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font: 600 10px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.strategy-gate.passed { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); color: var(--green); }
.strategy-gate.failed { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); color: var(--danger); }
.strategy-footnote { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.kill-panel { border: 1px solid var(--line); background: var(--board); box-shadow: var(--shadow); }
.pause-action { min-height: 48px; border: 0; font: 800 14px/1 inherit; cursor: pointer; }
.pause-action { min-width: 160px; color: white; border: 1px solid var(--danger); background: transparent; }
.pause-action:disabled { color: var(--muted); border-color: var(--line); background: var(--line); cursor: not-allowed; }
.kill-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 22px 24px; }
.kill-panel strong { color: var(--danger-copy); }
.kill-panel p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.authorization-strip dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.authorization-strip div { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.authorization-strip div:nth-child(3n) { border-right: 0; }
.authorization-strip dt { color: var(--muted); font-size: 10px; }
.authorization-strip dd { margin: 7px 0 0; overflow-wrap: anywhere; color: var(--white); font: 700 14px/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.authorization-strip dd.positive { color: var(--green); }
.authorization-strip dd.negative { color: var(--danger); }
.authorization-strip dd.limited { color: var(--gold); }
.integration-panel { margin-bottom: 16px; border: 1px solid var(--line); background: var(--board); box-shadow: var(--shadow); }
.integration-panel summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 22px; color: var(--white); cursor: pointer; }
.integration-panel summary::marker { color: var(--cyan); }
.integration-panel summary strong { color: var(--muted); font: 600 11px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.integration-list { border-top: 1px solid var(--line); }
.integration-list > div { display: grid; grid-template-columns: 92px minmax(180px, .55fr) 1fr; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.integration-list > div:last-child { border-bottom: 0; }
.integration-list strong { color: var(--white); }
.integration-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.integration-state { color: var(--muted); font: 700 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.integration-state[data-state="ACTIVE"], .integration-state[data-state="CONFIGURED"] { color: var(--green); }
.integration-state[data-state="SETUP_REQUIRED"], .integration-state[data-state="EXCLUDED"] { color: var(--danger); }
.desk-flow { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.desk-flow > div { min-width: 0; padding: 18px 14px; text-align: center; }
.desk-flow > div:not(:last-child) { border-right: 1px solid var(--line); }
.desk-flow small, .desk-flow span { display: block; color: var(--muted); font: 700 9px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; }
.desk-flow strong { display: block; margin: 8px 0 6px; color: var(--cyan); font: 800 27px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.desk-blockers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.desk-blockers strong { color: var(--white); }
.desk-blockers span { padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line)); color: var(--danger-copy); }
.desk-units { display: grid; grid-template-columns: repeat(3, 1fr); }
.desk-units > div { min-width: 0; padding: 15px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.desk-units > div:nth-child(3n) { border-right: 0; }
.desk-units small { color: var(--muted); font: 700 9px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.desk-units strong { display: block; margin-top: 7px; color: var(--danger); font-size: 14px; }
.desk-units strong.positive { color: var(--green); }
.desk-units p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (max-width: 820px) {
  .scanner-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scanner-summary dl div:nth-child(even) { border-right: 0; }
  .data-provenance-strip { grid-template-columns: 1fr; }
  .data-provenance-strip > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .data-provenance-strip > :last-child { border-bottom: 0; }
  .masthead { width: 100vw; display: flex; justify-content: space-between; padding: 0 18px; overflow: hidden; }
  .route { display: none; }
  main { width: calc(100vw - 24px); max-width: 680px; margin: 18px auto 60px; }
  .manifest { grid-template-columns: 1fr 1fr; }
  .manifest-main { grid-column: 1 / -1; min-height: 190px; }
  .manifest-segment { min-height: 116px; border-top: 1px dashed var(--paper-line); }
  .manifest-segment:nth-of-type(2) { border-left: 0; }
  .barcode { display: none; }
  .equity-strip { grid-template-columns: 1fr; }
  .equity-primary { min-height: 128px; border-right: 0; border-bottom: 1px solid var(--line); }
  .equity-strip > dl { min-height: 176px; }
  footer { flex-direction: column; gap: 4px; }
  footer p:last-child { text-align: left; }
  .trade-manifest { grid-template-columns: 1fr 1fr; }
  .subaccount-identity { grid-template-columns: repeat(2, 1fr); }
  .strategy-summary { grid-template-columns: 1fr; }
  .intraday-research-summary { grid-template-columns: 1fr; }
  .switching-forward-summary { grid-template-columns: 1fr; }
  .switching-forward-lead { border-right: 0; border-bottom: 1px solid var(--line); }
  .switching-forward-latest { align-items: flex-start; flex-direction: column; gap: 6px; }
  .switching-forward-latest span { text-align: left; }
  .intraday-research-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .intraday-research-chart { grid-template-columns: 1fr; }
  .intraday-research-chart-values { justify-content: flex-start; }
  .strategy-plan { grid-template-columns: 1fr; }
  .strategy-plan ol { grid-column: 1; }
  .release-panel { grid-template-columns: 1fr; }
  .release-verdict { border-right: 0; border-bottom: 1px solid var(--line); }
  .release-frequency { grid-template-columns: 1fr; }
  .release-frequency div { border-right: 0; border-bottom: 1px solid var(--line); }
  .release-frequency div:last-child { border-bottom: 0; }
  .strategy-verdict { border-right: 0; border-bottom: 1px solid var(--line); }
  .strategy-instruments { grid-template-columns: 1fr; }
  .strategy-instruments article { border-right: 0; border-bottom: 1px solid var(--line); }
  .performance-strip dl { grid-template-columns: repeat(2, 1fr); }
  .performance-strip div:nth-child(3n) { border-right: 1px solid var(--line); }
  .performance-strip div:nth-child(even) { border-right: 0; }
  .meme-radar-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meme-radar-summary div:nth-child(3n) { border-right: 1px solid var(--line); }
  .meme-radar-summary div:nth-child(even) { border-right: 0; }
  .meme-forward-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meme-forward-summary div:nth-child(even) { border-right: 0; }
  .meme-portfolio-heading { align-items: flex-start; flex-direction: column; }
  .meme-portfolio-controls { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .meme-portfolio-kpis dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meme-portfolio-kpis div:nth-child(3n) { border-right: 0; }
  .trade-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-history-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-history-summary div:nth-child(4n) { border-right: 1px solid var(--line); }
  .owner-history-summary div:nth-child(even) { border-right: 0; }
  .owner-history-story { grid-template-columns: 1fr; }
  .owner-history-story article { border-right: 0; border-bottom: 1px solid var(--line); }
  .owner-history-story article:last-child { border-bottom: 0; }
  .authorization-strip dl { grid-template-columns: repeat(2, 1fr); }
  .authorization-strip div:nth-child(3n) { border-right: 1px solid var(--line); }
  .authorization-strip div:nth-child(even) { border-right: 0; }
  .integration-list > div { grid-template-columns: 82px 1fr; }
  .integration-list p { grid-column: 2; }
  .desk-flow { grid-template-columns: repeat(7, minmax(110px, 1fr)); overflow-x: auto; }
  .desk-units { grid-template-columns: repeat(2, 1fr); }
  .desk-units > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .desk-units > div:nth-child(even) { border-right: 0; }
  .swap-command-head { flex-direction: column; }
  .swap-mission-strip { grid-template-columns: repeat(2, 1fr); }
  .swap-mission-strip > div:nth-child(even) { border-right: 0; }
  .swap-mission-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .swap-grid, .swap-intelligence { grid-template-columns: 1fr; }
  .strategy-match-cards { grid-template-columns: 1fr; }
  .strategy-match-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .swap-ledger-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swap-exit-summary, .swap-exit-cards { grid-template-columns: 1fr; }
  .swap-exit-summary div, .swap-exit-cards > article { border-right: 0; border-bottom: 1px solid var(--line); }
  .swap-ledger-kpis div:nth-child(2) { border-right: 0; }
  .swap-ledger-kpis div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .swap-chart-deck, .swap-map-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  .swap-position-deck { min-height: 220px; }
  .swap-empty-orbit { min-height: 220px; }
}

@media (max-width: 500px) {
  .swap-family-screen { align-items: flex-start; flex-direction: column; }
  .swap-family-screen > div { justify-content: flex-start; }
  .scanner-summary { margin-inline: 12px; }
  .scanner-summary > header { align-items: flex-start; flex-direction: column; }
  .scanner-summary dl { grid-template-columns: 1fr; }
  .scanner-summary dl div { border-right: 0; border-bottom: 1px solid var(--line); }
  .masthead { min-height: 58px; }
  .wordmark > span:last-child { display: none; }
  .refresh { min-height: 34px; padding: 0 14px; }
  .logout { padding-inline: 12px; }
  .manifest { grid-template-columns: 1fr; }
  .manifest-main { min-height: 205px; padding: 28px 22px; }
  .assurance { overflow-wrap: anywhere; }
  .manifest-segment { min-height: 96px; padding: 18px 22px; border-top: 1px dashed var(--paper-line); border-left: 0; flex-direction: row; justify-content: flex-start; gap: 44px; }
  .manifest-segment div { flex: 1; }
  .manifest-segment dd { white-space: normal; }
  .notice { min-height: 58px; }
  .board-header { padding-inline: 16px; }
  .board-header span { max-width: 54%; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
  .equity-primary { padding: 24px 20px; }
  .equity-primary strong { font-size: 34px; }
  .equity-strip dl div { padding: 18px 16px; }
  .equity-strip dd { font-size: 20px; }
  th, td { padding-inline: 16px; }
  .table-wrap { overflow: visible; }
  .meme-radar-summary dl { grid-template-columns: 1fr; }
  .meme-radar-summary div, .meme-radar-summary div:nth-child(3n), .meme-radar-summary div:nth-child(even) { border-right: 0; }
  .meme-forward-summary dl { grid-template-columns: 1fr; }
  .meme-forward-summary div { border-right: 0; }
  .meme-portfolio-controls { display: grid; grid-template-columns: auto 1fr; }
  .meme-portfolio-controls > div { min-width: 0; }
  .meme-portfolio-controls button { flex: 1; }
  .meme-portfolio-kpis dl { grid-template-columns: 1fr; }
  .meme-portfolio-kpis div, .meme-portfolio-kpis div:nth-child(3n) { border-right: 0; }
  .meme-portfolio-chart-wrap > div:first-child { align-items: flex-start; flex-direction: column; gap: 5px; }
  table { min-width: 0; }
  thead { display: none; }
  tbody, tbody tr:not(.empty), tbody td { display: block; width: 100%; }
  tbody tr:not(.empty) { padding: 10px 16px; border-bottom: 1px solid var(--line); }
  tbody tr:not(.empty) td { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border: 0; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  tbody tr:not(.empty) td::before { content: attr(data-label); flex: 0 0 38%; color: var(--muted); font: 700 10px/1.5 "Noto Sans SC", "Microsoft YaHei UI", system-ui, sans-serif; letter-spacing: .06em; text-align: left; }
  .trade-manifest { grid-template-columns: 1fr; }
  .trade-filters { grid-template-columns: 1fr; padding-inline: 16px; }
  .owner-history-tabs { display: grid; grid-template-columns: 1fr; }
  .owner-bar-row { grid-template-columns: minmax(78px, .35fr) minmax(90px, 1fr) minmax(92px, auto); gap: 8px; padding-inline: 4px; }
  .owner-bar-row > small { display: none; }
  .kill-panel { align-items: stretch; flex-direction: column; }
  .release-gates { grid-template-columns: 1fr; }
  .validation-compare { grid-template-columns: 1fr; }
  .timeframe-compare { grid-template-columns: 1fr; }
  .live-ticker-tape { grid-template-columns: 1fr; }
  .live-ticker-tape > article { border-right: 0; border-bottom: 1px solid var(--line); }
  .live-ticker-tape > article:last-child { border-bottom: 0; }
  .micro-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .micro-track[data-bar="15m"] { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .micro-track[data-bar="15m"] svg { height: 146px; }
  .micro-track:nth-child(3), .micro-track:nth-child(5) { border-right: 0; }
  .micro-track:nth-child(2), .micro-track:nth-child(3) { border-bottom: 1px solid var(--line); }
  .validation-compare > span { justify-self: center; transform: rotate(90deg); }
  .pause-action { width: 100%; }
  .authorization-strip dl { grid-template-columns: 1fr; }
  .authorization-strip div, .authorization-strip div:nth-child(3n), .authorization-strip div:nth-child(even) { border-right: 0; }
  .integration-list > div { grid-template-columns: 1fr; gap: 8px; }
  .integration-list p { grid-column: 1; }
  .desk-flow { grid-template-columns: repeat(7, minmax(88px, 1fr)); overflow-x: auto; }
  .desk-flow > div { padding: 15px 8px; }
  .desk-flow strong { font-size: 22px; }
  .desk-flow span { font-size: 8px; }
  .desk-units { grid-template-columns: 1fr; }
  .desk-units > div, .desk-units > div:nth-child(3n), .desk-units > div:nth-child(even) { border-right: 0; }
  .swap-command-head { min-height: 0; padding: 22px 18px; }
  .swap-live-state { width: 100%; justify-content: center; }
  .swap-mission-strip { grid-template-columns: 1fr 1fr; }
  .swap-mission-strip > div { min-height: 94px; padding: 15px; }
  .swap-mission-strip strong { font-size: 25px; }
  .swap-chart-toolbar { align-items: flex-start; flex-direction: column; }
  .swap-forward-deck > header { align-items: flex-start; flex-direction: column; }
  .swap-forward-deck dl { grid-template-columns: 1fr 1fr; }
  .swap-forward-deck dl div { border-bottom: 1px solid var(--line); }
  .swap-forward-deck dl div:nth-child(even) { border-right: 0; }
  .swap-chart-controls { width: 100%; justify-content: flex-start; }
  .swap-timeframes, .swap-indicators, .swap-ranges { flex: 1 1 auto; }
  .swap-timeframes button, .swap-indicators button, .swap-ranges button { flex: 1; }
  .swap-tv-chart { height: 330px; }
  .swap-crosshair-readout { right: 8px; max-width: none; }
  .swap-chart-legend small { width: 100%; margin: 0 0 10px; }
  .swap-map-wrap > header, .swap-rank-wrap > header { align-items: flex-start; flex-direction: column; }
  .swap-map-wrap svg { height: 220px; }
  .swap-rank-list { grid-template-columns: 1fr; max-height: 320px; }
  .swap-trade-ledger > header { align-items: flex-start; flex-direction: column; }
  .strategy-match-board > header { flex-direction: column; }
  .strategy-match-board > header > span { white-space: normal; }
  .strategy-match-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-match-summary > div:nth-child(2) { border-right: 0; }
  .strategy-match-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .swap-trade-ledger > header span { text-align: left; }
}

@media (min-width: 1500px) {
  .trade-main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
  .trade-main > * { grid-column: 1 / -1; margin: 0; }
  .trade-main > .release-panel { grid-column: span 5; }
  .trade-main > .desk-panel { grid-column: span 7; }
  .trade-main > .swap-command { grid-column: 1 / -1; }
  .trade-main > .strategy-panel, .trade-main > .performance-panel[aria-labelledby="opportunity-title"] { grid-column: span 6; }
  .trade-main > .performance-panel[aria-labelledby="performance-title"] { grid-column: 1 / -1; }
  .trade-main > .performance-panel[aria-labelledby="activity-title"] { grid-column: span 6; }
  .manifest { min-height: 190px; }
  .trade-manifest { min-height: 178px; }
  .performance-strip dl { grid-template-columns: repeat(4, 1fr); }
  .performance-strip div, .performance-strip div:nth-child(3n) { border-right: 1px solid var(--line); }
  .performance-strip div:nth-child(4n) { border-right: 0; }
  .owner-history-summary dl { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .owner-history-summary div, .owner-history-summary div:nth-child(4n) { border-right: 1px solid var(--line); }
  .owner-history-summary div:nth-child(8n) { border-right: 0; }
  .microstructure-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .micro-instrument > header { min-height: 52px; }
  .timeframe-compare { grid-template-columns: repeat(6, minmax(150px, 1fr)); }
  table { font-size: 15px; }
  .swap-grid { grid-template-columns: minmax(0, 2.15fr) minmax(360px, .55fr); }
  .swap-tv-chart { height: 500px; }
  .swap-rank-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swap-map-wrap svg, .swap-rank-list { height: 300px; max-height: 300px; }
  .swap-ledger-table { min-width: 1460px; }
  .authorization-strip dl { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .authorization-strip div, .authorization-strip div:nth-child(3n) { border-right: 1px solid var(--line); }
  .authorization-strip div:nth-child(5n) { border-right: 0; }
}

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

@media (min-width: 2200px) {
  .trade-main { width: min(2800px, calc(100% - 80px)); max-width: 2800px; }
  .strategy-library-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strategy-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .strategy-card:nth-child(4n) { border-right: 0; }
  .strategy-card[data-status="live"], .strategy-card[data-status="exploration"] { grid-column: span 2; }
  .strategy-match-card > header h3 { font-size: 19px; }
  .strategy-match-score > div strong { font-size: 38px; }
  .swap-ledger-kpis dd { font-size: 19px; }
}

@media (max-width: 1100px) {
  .console-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .console-index a:nth-child(3) { border-right: 0; }
  .console-index a:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .strategy-library-tools { align-items: stretch; flex-direction: column; }
  .strategy-library-tools label { width: 100%; }
  .strategy-library-filters { justify-content: flex-start; }
  .strategy-library-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .strategy-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 650px) {
  .console-index { top: 6px; display: flex; overflow-x: auto; scrollbar-width: thin; }
  .console-index a { min-width: 158px; min-height: 54px; border-right: 1px solid var(--line); border-bottom: 0 !important; }
  .strategy-library-head { align-items: flex-start; flex-direction: column; gap: 8px; padding: 20px 16px 16px; }
  .strategy-library-head > span { padding-top: 0; }
  .strategy-library-summary { grid-template-columns: 1fr 1fr; }
  .strategy-library-summary > div { border-bottom: 1px solid var(--line); }
  .strategy-library-summary > div:nth-child(even) { border-right: 0; }
  .strategy-library-summary > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .strategy-library-tools { padding: 14px 16px; }
  .strategy-library-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .strategy-library-filters button { min-height: 44px; }
  .strategy-library-filters button + button { border-left: 1px solid var(--line); }
  .strategy-library-list { grid-template-columns: 1fr; }
  .strategy-card, .strategy-card:nth-child(2n), .strategy-card:nth-child(3n), .strategy-card[data-status="live"], .strategy-card[data-status="exploration"] { grid-column: auto; border-right: 0; }
  .strategy-card-title { min-height: 0; }
  .strategy-card-detail { grid-template-columns: 1fr; }
  .strategy-card-detail section, .strategy-card-detail section:nth-child(even) { border-right: 0; border-bottom: 1px solid var(--line); }
  .strategy-card-detail section:last-child { border-bottom: 0; }
}

.auth-page { display: grid; min-height: 100vh; place-items: center; background: var(--ink); }
.auth-shell { width: min(940px, calc(100vw - 32px)); margin: 32px auto; }
.auth-manifest { position: relative; overflow: hidden; color: var(--paper-ink); background: var(--paper); box-shadow: var(--shadow); }
.auth-manifest::before, .auth-manifest::after { content: ""; position: absolute; top: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.auth-manifest::before { left: -9px; }
.auth-manifest::after { right: -9px; }
.auth-route { min-height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 0 34px; color: var(--cyan-ink); border-bottom: 1px dashed var(--paper-line); font: 800 10px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; }
.auth-copy { padding: 44px 44px 30px; }
.auth-mark { margin-bottom: 28px; }
.auth-mark i { background: var(--paper-ink); }
.auth-copy h1 { max-width: 680px; font-size: clamp(34px, 4.4vw, 66px); }
.auth-copy p { max-width: 65ch; margin: 18px 0 0; color: var(--paper-muted); line-height: 1.7; }
.auth-form { display: grid; grid-template-columns: minmax(130px, .35fr) minmax(0, 1fr); gap: 12px 24px; padding: 30px 44px 38px; border-top: 1px dashed var(--paper-line); }
.auth-form label { align-self: center; color: var(--paper-muted); font: 750 10px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; }
.auth-form input { min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--paper-line); border-radius: 0; outline: none; color: var(--paper-ink); background: var(--paper-field); font: 650 16px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.auth-form input:focus { border-color: var(--cyan-ink); outline: 2px solid var(--cyan-ink); outline-offset: 2px; }
.auth-form button { grid-column: 2; min-height: 48px; margin-top: 8px; border: 0; border-radius: 999px; color: var(--ink); background: var(--cyan); font: 800 14px/1 inherit; cursor: pointer; transition: background 180ms ease-out, box-shadow 180ms ease-out; }
.auth-form button:hover { background: var(--cyan-muted); }
.auth-form button:disabled { color: var(--paper-muted); background: var(--paper-line); box-shadow: none; cursor: wait; }
.form-error, .password-hint { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.55; }
.form-error { min-height: 20px; color: var(--paper-danger); font-weight: 700; }
.form-error:empty { visibility: hidden; }
.password-hint { color: var(--paper-muted); }
.auth-footnote { margin: 0; padding: 20px 44px; color: var(--paper-muted); border-top: 1px solid var(--paper-line); font-size: 14px; line-height: 1.6; }

@media (max-width: 620px) {
  .auth-shell { width: calc(100vw - 24px); margin: 12px auto; }
  .auth-copy { padding: 34px 22px 26px; }
  .auth-route { padding-inline: 22px; }
  .auth-form { grid-template-columns: 1fr; padding: 24px 22px 30px; gap: 8px; }
  .auth-form label { margin-top: 8px; }
  .auth-form button, .form-error, .password-hint { grid-column: 1; }
  .auth-form button { margin-top: 14px; }
  .auth-footnote { padding-inline: 22px; }
}
