@import url('./tokens.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
button, a { touch-action: manipulation; }
button { color: var(--text); }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; z-index: 20; top: -60px; left: 20px; background: var(--yellow); color: #101418; padding: 10px; }
.skip:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 208px; z-index: 10; background: #09121b; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: block; padding: 27px 19px 22px; border-bottom: 1px solid var(--line); }
.logo-window { display: block; width: 171px; height: 44px; overflow: hidden; }
.logo-window img { display: block; width: 210px; max-width: none; height: auto; transform: translate(-20px, -38px); }
.brand-caption { display: block; color: #8d9dad; letter-spacing: .19em; font-size: 10px; margin: 7px 0 0 9px; }
nav { padding: 24px 12px; display: flex; flex-direction: column; gap: 6px; }
.nav-link { padding: 12px 14px; border-radius: 6px; color: var(--muted); display: flex; align-items: center; gap: 13px; border: 1px solid transparent; min-height: 46px; }
.nav-link:hover { background: #111e2a; color: var(--text); }
.nav-link.active { background: linear-gradient(100deg, #252719, #18201d); color: var(--yellow); border-color: #393a21; }
.nav-link span { font-size: 13px; }
.nav-rule { height: 1px; background: var(--line); margin: 17px 14px; }
.sidebar-bottom { margin-top: auto; padding: 20px 22px; color: var(--muted); }
.sidebar-bottom p { font-size: 11px; margin: 10px 0 0; color: var(--faint); }
.small-label, .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--muted); }
.sidebar-status { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.dot { display: inline-block; width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.shell { margin-left: 208px; min-width: 0; }
.topbar { height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 16px; background: #0a141e; }
.market-id, .top-actions, .inline { display: flex; align-items: center; gap: 12px; }
.coin { height: 35px; width: 35px; border-radius: 50%; background: #362c17; color: #fbbd43; display: grid; place-items: center; font-size: 24px; font-weight: 500; }
.pair-title { font-size: 15px; font-weight: 600; letter-spacing: .015em; }
.pair-note { font-size: 10px; color: var(--faint); }
.header-price { padding-left: 20px; margin-left: 10px; border-left: 1px solid var(--line); font-family: var(--mono); font-size: 18px; letter-spacing: -.04em; }
.header-price small { font-family: var(--font); display: block; font-size: 10px; letter-spacing: 0; color: var(--faint); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; font-size: 10px; letter-spacing: .055em; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); white-space: nowrap; }
.badge.blue { color: var(--blue); border-color: #214457; background: #102532; }
.clock { color: var(--faint); font: 10px var(--mono); }
.avatar { width: 32px; height: 32px; border: 1px solid #39444f; border-radius: 50%; background: #1b2732; display: grid; place-items: center; font-size: 11px; color: #b6c3cc; }
main { padding: 25px 28px 26px; max-width: 1920px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h1 { font-size: 22px; letter-spacing: -.045em; font-weight: 550; margin: 0 0 3px; }
.subtitle { margin: 0; color: var(--faint); font-size: 12px; }
.ghost-button { background: #111e2a; border: 1px solid #2b3b49; border-radius: 5px; padding: 8px 12px; min-height: 36px; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; }
.ghost-button:hover { border-color: #597082; background: #192a37; }
.ghost-button svg { width: 14px; height: 14px; }
.notice { display: flex; align-items: center; gap: 10px; border: 1px solid #294352; background: #10212d; color: #a0bbc9; padding: 10px 13px; border-radius: 5px; font-size: 11px; margin-bottom: 18px; }
.notice svg { width: 15px; height: 15px; color: var(--blue); }
.notice a { margin-left: auto; color: var(--blue); white-space: nowrap; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 16px; }
.primary { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.top-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(135deg, #0e1b26, #0c1721); overflow: hidden; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.panel-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 12px; font-weight: 500; }
.panel-title svg { width: 17px; height: 17px; color: #9aafbd; }
.panel-body { padding: 18px; }
.decision-panel { display: flex; flex-direction: column; }
.decision-core { padding: 23px 18px 19px; text-align: center; }
.decision-value { font-size: 44px; line-height: 1.2; letter-spacing: -.04em; color: var(--yellow); font-weight: 500; overflow-wrap: anywhere; }
.decision-value.waiting { font-size: 28px; margin: 10px 0; color: var(--muted); }
.decision-sub { color: var(--faint); font-size: 10px; margin-top: 7px; }
.confidence { padding-top: 17px; }
.confidence-value { font: 24px var(--mono); display: block; margin: 6px 0 10px; }
.meter { height: 3px; background: #22303b; border-radius: 3px; overflow: hidden; }
.meter-fill { width: 0; height: 100%; background: var(--yellow); }
.decision-reasons { margin-top: auto; border-top: 1px solid var(--line); padding: 16px; min-height: 105px; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.reason { font-size: 9px; text-transform: uppercase; color: #d5b85b; background: #24291e; border: 1px solid #414128; padding: 4px 7px; border-radius: 3px; overflow-wrap: anywhere; max-width: 100%; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.positive { color: var(--green); }
.negative { color: var(--red); }
.warning { color: var(--yellow); }
.small { font-size: 11px; }
.chart-panel { min-height: 372px; position: relative; }
.chart-panel .panel-head { padding: 12px 15px; }
.segmented { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; }
.segmented button { border: none; border-radius: 3px; background: none; color: var(--muted); padding: 4px 11px; font-size: 10px; min-height: 27px; }
.segmented button[aria-pressed=true] { background: #283326; color: var(--yellow); }
.chart-area { position: relative; height: 288px; }
#chart { width: 100%; height: 100%; display: block; }
.chart-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; pointer-events: none; gap: 8px; }
.chart-empty svg { height: 36px; width: 36px; color: #405361; }
.chart-empty span { color: var(--faint); font-size: 11px; max-width: 255px; }
.chart-footer { padding: 9px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px solid var(--line); color: var(--faint); font-size: 9px; min-height: 34px; }
.chart-footer a { color: var(--blue); margin-left: auto; }
.chart-tooltip { position: absolute; top: 8px; left: 12px; padding: 5px 8px; background: #0b1824ee; border: 1px solid var(--line); font: 9px var(--mono); pointer-events: none; }
#market-widget { width: 100%; height: 100%; border: 0; display: block; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 20px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat-label { color: var(--muted); display: flex; gap: 7px; align-items: center; font-size: 10px; }
.stat-label svg { width: 15px; height: 15px; }
.stat-value { font: 24px var(--mono); letter-spacing: -.06em; margin: 9px 0 5px; overflow-wrap: anywhere; }
.stat-note { font-size: 10px; color: var(--faint); }
.lower-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.definition { margin: 0; }
.definition > div { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.definition > div:last-child { border: 0; }
dt { color: var(--muted); font-size: 10px; }
dd { margin: 0; font: 11px var(--mono); text-align: right; }
.empty-state { min-height: 173px; display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; gap: 8px; padding: 22px; }
.empty-state svg { height: 28px; width: 28px; color: #466072; }
.empty-state strong { font-size: 12px; font-weight: 500; }
.empty-state p { margin: 0; max-width: 260px; font-size: 11px; color: var(--faint); }
.position { padding: 0 17px 12px; }
.position + .position { border-top: 1px solid var(--line); }
.position-title { display: flex; justify-content: space-between; margin: 14px 0 3px; font-size: 12px; }
.gate-note { margin: 13px 0 0; font-size: 10px; color: var(--faint); }
.status-value { font-family: var(--font); font-size: 10px; color: var(--muted); letter-spacing: .03em; }
.rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.risk-body { padding: 19px 18px 8px; }
.risk-state { font-size: 20px; color: var(--muted); margin: 8px 0 5px; font-weight: 500; letter-spacing: -.025em; }
.risk-description { font-size: 10px; color: var(--faint); margin: 0 0 20px; }
.risk-row { border-top: 1px solid var(--line); padding: 17px 0; }
.risk-row .inline { justify-content: space-between; margin: 8px 0 10px; }
.risk-row .meter { margin-top: 13px; }
.risk-row span.muted { font: 16px var(--mono); }
.risk-foot { padding: 12px 18px; background: #14212b; color: var(--faint); font-size: 10px; }
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.health-item { border: 1px solid var(--line); border-radius: 4px; padding: 12px 10px; background: #0b1721; }
.health-item .inline { justify-content: space-between; gap: 8px; font-size: 11px; }
.health-item .health-state { font: 9px var(--mono); color: var(--muted); margin: 10px 0 2px; }
.health-item .health-detail { color: var(--faint); font-size: 9px; }
.kill-panel { margin-top: auto; border-color: #593235; background: linear-gradient(135deg, #251b22, #131b25); }
.kill-panel .panel-body { display: flex; gap: 12px; }
.kill-panel svg { width: 29px; height: 29px; color: var(--red); margin-top: 3px; }
.kill-title { margin: 0 0 5px; font-size: 14px; font-weight: 500; }
.kill-copy { font-size: 10px; color: #a6969e; margin: 0; }
.kill-state { font-size: 10px; margin-top: 12px; color: var(--muted); }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.footer .dot { color: var(--blue); }
dialog { background: #0e1b26; color: var(--text); border: 1px solid #3b5263; border-radius: 10px; width: min(520px, calc(100% - 30px)); padding: 0; }
dialog::backdrop { background: #020810c9; backdrop-filter: blur(4px); }
dialog .panel-body { padding: 24px; }
dialog h2 { margin: 0; font-size: 17px; }
dialog p { color: var(--muted); font-size: 12px; }
dialog .definition { margin: 16px 0; }
dialog dd { font-family: var(--font); overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
@media (min-width: 1750px) { .chart-area { height: 350px; } .top-grid { grid-template-columns: 260px minmax(0, 1fr); } .workspace { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 1350px) { .sidebar { width: 176px; } .brand { padding-left: 8px; } .logo-window { width: 158px; } .shell { margin-left: 176px; } main { padding: 20px; } .topbar { padding: 0 20px; } .workspace { grid-template-columns: minmax(0, 1fr) 250px; } .top-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 12px; } .clock { display: none; } .stat { padding: 16px 12px; } .stat-value { font-size: 21px; } }
@media (max-width: 1100px) { .sidebar { width: 74px; } .brand { height: 100px; padding: 29px 9px; } .logo-window { width: 47px; } .brand-caption, .nav-link span, .sidebar-bottom, .nav-rule { display: none; } nav { padding: 22px 10px; } .nav-link { padding: 13px 15px; } .shell { margin-left: 74px; } .workspace { grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; } .top-grid { grid-template-columns: 170px minmax(0, 1fr); } .decision-value { font-size: 34px; } .decision-value.waiting { font-size: 24px; } .panel-head { padding: 14px 12px; } .panel-title { font-size: 11px; } }
@media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } .rail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; } .kill-panel { margin-top: 0; } .risk-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; } .risk-overview { grid-column: 1 / -1; } .risk-description { margin-bottom: 12px; } .risk-foot { font-size: 9px; } .top-grid { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 600px) { html { scroll-padding-top: 30px; } .sidebar { width: 100%; height: 59px; bottom: auto; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); position: relative; } .brand { padding: 8px 13px; width: 158px; height: 58px; border: 0; } .logo-window { width: 145px; height: 38px; } .logo-window img { width: 182px; transform: translate(-18px, -33px); } nav { margin-left: auto; padding: 7px 8px; flex-direction: row; gap: 2px; } .nav-link { padding: 10px; min-height: 42px; } .nav-link:not(:first-child):not(:last-child) { display: none; } .shell { margin-left: 0; } .topbar { padding: 12px 15px; height: 72px; } .market-id { gap: 9px; } .header-price, .avatar, #system-badge { display: none; } .pair-title { font-size: 14px; } .top-actions { gap: 5px; } main { padding: 18px 13px 26px; } h1 { font-size: 21px; } .subtitle { font-size: 10px; } .page-heading { gap: 10px; } .ghost-button { padding: 8px 10px; } .notice { font-size: 10px; align-items: flex-start; } .notice a { display: none; } .top-grid { display: flex; flex-direction: column; gap: 13px; } .chart-panel { order: -1; min-height: 345px; } .chart-area { height: 260px; } .decision-panel { display: grid; grid-template-columns: 1fr 1fr; } .decision-panel .panel-head { grid-column: 1 / -1; } .decision-core { padding: 18px 13px; } .decision-value { font-size: 36px; } .confidence { padding-top: 11px; } .confidence-value { font-size: 20px; } .decision-reasons { border-top: 0; border-left: 1px solid var(--line); margin: 0; padding: 20px 13px; } .stats { grid-template-columns: 1fr 1fr; } .stat { padding: 17px 16px; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .lower-grid { grid-template-columns: 1fr; gap: 13px; } .health-grid { grid-template-columns: 1fr 1fr; } .health-item { padding: 13px; } .rail { grid-template-columns: 1fr; gap: 13px; } .footer { font-size: 9px; } .primary { gap: 13px; } .workspace { gap: 13px; } .panel-title { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
