:root {
  --bg: #10161b;
  --panel: #172027;
  --panel-2: #1c272e;
  --ink: #eef2eb;
  --muted: #8f9ca0;
  --line: rgba(234, 242, 233, 0.12);
  --lime: #cbf36b;
  --cyan: #76d7cd;
  --up: #92e6a7;
  --down: #ff8f80;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Manrope, system-ui, sans-serif; }
button, a { font: inherit; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); z-index: 10; }
.shell { max-width: 1440px; margin: 0 auto; padding: 28px 44px 30px; position: relative; }
.topbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--lime); color: var(--lime); font: 500 18px var(--mono); transform: rotate(-9deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 12px; letter-spacing: .17em; }
.brand small { margin-top: 3px; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; }
.topbar-actions { display: flex; align-items: center; gap: 18px; color: var(--muted); font: 11px var(--mono); }
.source-pill { color: var(--cyan); border: 1px solid rgba(118,215,205,.25); padding: 7px 10px; border-radius: 999px; }
.live-dot, .footer-signal { display: inline-block; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 4px rgba(118,215,205,.1); }
.updated-at { min-width: 126px; text-align: right; }
.refresh-btn { cursor: pointer; color: var(--bg); background: var(--lime); border: 0; border-radius: 4px; padding: 8px 12px; font-size: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.refresh-btn:hover { transform: translateY(-1px); background: #e0ff8d; }
.refresh-btn:disabled { opacity: .6; cursor: wait; }
.refresh-btn span { font-size: 16px; vertical-align: -1px; }
.dashboard-row { display: flex; justify-content: space-between; align-items: end; padding: 34px 0 28px; }
.dashboard-row h1 { margin: 0; font-size: 34px; line-height: 1; letter-spacing: -.06em; }
.dashboard-stats { display: flex; gap: 18px; color: var(--muted); font: 10px var(--mono); letter-spacing: .1em; }
.dashboard-stats b { color: var(--ink); font-weight: 500; margin-left: 4px; }
.eyebrow { color: var(--lime); font: 11px var(--mono); letter-spacing: .18em; margin: 0 0 17px; }
.eyebrow span { color: var(--muted); margin-left: 8px; }
h1 { margin: 0; font-size: clamp(44px, 6vw, 82px); line-height: .97; letter-spacing: -.065em; font-weight: 700; }
h1 em { color: var(--lime); font-style: normal; }
.hero-note { max-width: 540px; color: var(--muted); font-size: 14px; line-height: 1.8; margin: 26px 0 0; }
.hero-summary { background: var(--panel); border: 1px solid var(--line); padding: 25px 25px 22px; min-height: 165px; }
.summary-heading, .summary-foot { display: flex; justify-content: space-between; align-items: center; font: 11px var(--mono); color: var(--muted); letter-spacing: .08em; }
.summary-heading span:last-child { color: var(--ink); }
.bias-meter { height: 12px; background: #242f34; margin: 28px 0 20px; position: relative; overflow: hidden; }
.bias-fill { height: 100%; width: 50%; background: var(--up); transition: width .5s ease, background .5s ease; }
.bias-zero { position: absolute; left: 50%; top: -4px; height: 20px; border-left: 1px dashed rgba(255,255,255,.5); }
.summary-foot b { color: var(--ink); font-weight: 500; }
.market-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 48px; }
.strip-card { background: var(--panel); border: 1px solid var(--line); padding: 17px 18px 16px; min-height: 117px; position: relative; overflow: hidden; }
.strip-card::after { content: ""; position: absolute; right: -20px; bottom: -35px; width: 110px; height: 80px; border-radius: 50%; background: var(--accent); opacity: .08; filter: blur(14px); }
.strip-top { display: flex; justify-content: space-between; color: var(--muted); font: 11px var(--mono); }
.strip-name { color: var(--ink); font: 600 13px Manrope; }
.strip-value { margin-top: 17px; font: 500 23px var(--mono); letter-spacing: -.04em; }
.strip-change { margin-top: 4px; font: 12px var(--mono); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; padding-top: 34px; }
h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.section-hint { color: var(--muted); font-size: 12px; margin: 0 0 3px; }
.market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.market-card { background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.market-card.crypto { border-color: rgba(203,243,107,.27); }
.market-card-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 23px 18px; border-bottom: 1px solid var(--line); }
.kline-wrap { padding: 0; }
.kline-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font: 10px var(--mono); letter-spacing: .06em; }
.kline-label span:first-child { color: var(--lime); }
.kline-chart { display: block; width: 100%; height: 188px; overflow: visible; }
.kline-gridline { stroke: rgba(234,242,233,.09); stroke-width: 1; shape-rendering: crispEdges; }
.kline-axis-text, .kline-date-text { fill: var(--muted); font: 10px var(--mono); }
.kline-last-line { stroke: var(--lime); stroke-width: 1; stroke-dasharray: 3 3; opacity: .8; }
.kline-last-label { fill: var(--lime); font: 10px var(--mono); }
.candle { opacity: .92; }
.kline-empty { height: 67px; display: grid; place-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }
.market-title { display: flex; gap: 12px; align-items: center; }
.flag { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; font-size: 16px; background: var(--panel-2); }
.market-title h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.market-title p { margin: 3px 0 0; color: var(--muted); font: 10px var(--mono); letter-spacing: .06em; }
.session { text-align: right; color: var(--muted); font: 10px var(--mono); line-height: 1.6; }
.session-status { color: var(--lime); }
.session-status.closed { color: var(--muted); }
.index-list { padding: 0 23px; }
.index-panel { padding: 16px 0 20px; border-bottom: 1px solid rgba(234,242,233,.09); }
.index-panel:last-child { border-bottom: 0; }
.index-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.index-meta strong, .index-meta small { display: block; }
.index-meta strong { font-size: 13px; font-weight: 600; }
.index-meta small { margin-top: 3px; color: var(--muted); font: 10px var(--mono); }
.index-quote { display: flex; align-items: baseline; gap: 12px; }
.index-price { font: 500 17px var(--mono); text-align: right; }
.index-change { font: 12px var(--mono); text-align: right; }
.skeleton { animation: pulse 1.2s infinite alternate; background: #202b31; color: transparent !important; border-radius: 2px; }
@keyframes pulse { to { opacity: .45; } }
.error-card { grid-column: 1 / -1; padding: 28px; background: var(--panel); border: 1px solid rgba(255,143,128,.35); color: var(--down); }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }
.footer p { margin: 0; }
@media (max-width: 980px) { .shell { padding: 22px 24px 28px; } .market-strip { grid-template-columns: repeat(3, 1fr); margin-bottom: 42px; } .market-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .shell { padding: 16px 15px 22px; } .topbar { align-items: flex-start; } .topbar-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 190px; } .source-pill { display: none; } .updated-at { min-width: 0; } .dashboard-row { padding: 28px 0 22px; align-items: end; } .dashboard-row h1 { font-size: 29px; } .dashboard-stats { gap: 9px; font-size: 9px; } .market-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 36px; } .strip-card { min-height: 105px; padding: 14px; } .strip-value { font-size: 19px; } .section-head { display: block; } .section-hint { margin-top: 10px; } .market-card-head { padding: 18px 16px 15px; } .index-list { padding-left: 16px; padding-right: 16px; } .index-panel { padding: 15px 0 17px; } .index-panel-head { align-items: end; } .index-quote { gap: 8px; } .kline-chart { height: 166px; } .footer { flex-direction: column; gap: 8px; margin-top: 43px; } }
