:root {
  --bg: #071012;
  --bg-deep: #04090a;
  --panel: #0c1719;
  --panel-2: #101e20;
  --line: #1e3435;
  --line-bright: #2b4a49;
  --text: #e8f2ed;
  --muted: #8ea49d;
  --faint: #58706a;
  --orange: #ff7448;
  --orange-soft: rgba(255, 116, 72, .13);
  --teal: #57d3b3;
  --teal-soft: rgba(87, 211, 179, .12);
  --yellow: #efc46d;
  --red: #ee746d;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { background: var(--bg-deep); }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 78% -10%, rgba(255,116,72,.09), transparent 28rem), var(--bg); font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 24px; }
.lock-screen { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(4, 9, 10, .97); }
.lock-card { width: min(100%, 390px); padding: 28px; border: 1px solid var(--line-bright); border-radius: 14px; text-align: center; background: linear-gradient(145deg, #112022, #091416); box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.lock-mark { margin: 0 auto 20px; }
.lock-card h2 { margin-top: 7px; font-size: 23px; }
.lock-card p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.lock-card form { display: flex; gap: 8px; margin-top: 20px; }
.lock-card input { flex: 1; min-width: 0; border: 1px solid var(--line-bright); border-radius: 8px; padding: 10px 11px; color: var(--text); background: #071012; outline: none; }
.lock-card input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.unlock-btn { border: 1px solid var(--orange); border-radius: 8px; padding: 0 13px; color: #1a0d08; background: var(--orange); font-weight: 750; }
.unlock-error { min-height: 20px; margin-top: 9px; color: var(--red); font-size: 13px; }
.lock-warning { margin-top: 12px; color: var(--faint); font-size: 11px; line-height: 1.5; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--orange); border-radius: 12px; color: var(--orange); font-weight: 800; font-size: 19px; letter-spacing: -2px; background: var(--orange-soft); box-shadow: 0 0 32px rgba(255,116,72,.10); }
.eyebrow, .section-kicker { color: var(--orange); font-size: 12px; font-weight: 750; letter-spacing: .13em; }
h1, h2, p { margin: 0; }
h1 { margin-top: 2px; font-size: 22px; line-height: 1; letter-spacing: .08em; }
h2 { font-size: 19px; letter-spacing: -.02em; }
.live-dot, .status-dot { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); vertical-align: middle; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.refresh-state, .muted-label { color: var(--muted); font-size: 13px; }
.refresh-state .status-dot { margin: 0 6px 1px 0; }
.refresh-btn { border: 1px solid var(--line-bright); border-radius: 8px; padding: 8px 12px; color: var(--text); background: var(--panel-2); transition: border-color .2s, background .2s; }
.refresh-btn:hover { border-color: var(--orange); background: var(--orange-soft); }
.refresh-btn span { color: var(--orange); font-size: 20px; line-height: 12px; margin-left: 5px; }
.notice-bar { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border: 1px solid rgba(239,196,109,.34); border-radius: 10px; color: #d9c994; background: rgba(239,196,109,.07); }
.notice-icon { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; margin-top: 2px; border: 1px solid var(--yellow); border-radius: 50%; color: var(--yellow); font-weight: 800; font-size: 12px; }
.notice-bar strong { color: var(--yellow); margin-right: 9px; }
.notice-bar > div { flex: 1; font-size: 14px; }
.countdown { color: var(--yellow); font: 700 13px ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; margin-top: 2px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16,30,32,.98), rgba(8,18,20,.98)); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.kpi-card { min-height: 132px; padding: 18px 19px; }
.kpi-card.accent-orange { border-color: rgba(255,116,72,.55); background: linear-gradient(145deg, rgba(52,28,23,.75), rgba(12,23,25,.98)); }
.kpi-label { color: var(--muted); font-size: 13px; }
.kpi-value { margin-top: 10px; color: var(--text); font-size: clamp(26px, 2.6vw, 35px); font-weight: 730; letter-spacing: -.045em; line-height: 1; }
.kpi-value.mono { font-size: clamp(23px, 2.2vw, 31px); }
.kpi-note { margin-top: 11px; color: var(--faint); font-size: 12px; }
.content-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 12px; margin-bottom: 12px; }
.panel { padding: 19px; }
.panel-heading, .mini-heading, .market-heading, .coverage-meta, .footer, .stat-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-heading { margin-bottom: 16px; }
.section-kicker { margin-bottom: 4px; font-size: 11px; color: var(--faint); }
.panel-heading .section-kicker { color: var(--orange); }
.badge, .live-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-bright); color: var(--muted); font-size: 12px; white-space: nowrap; }
.badge-ok { border-color: rgba(87,211,179,.35); color: var(--teal); background: var(--teal-soft); }
.badge-warn { border-color: rgba(239,196,109,.35); color: var(--yellow); background: rgba(239,196,109,.08); }
.badge-error { border-color: rgba(238,116,109,.38); color: var(--red); background: rgba(238,116,109,.08); }
.live-chip { border-color: rgba(87,211,179,.3); color: var(--teal); }
.live-chip .status-dot { margin: 0; width: 6px; height: 6px; }
.coverage-track { height: 7px; overflow: hidden; border-radius: 99px; background: #172728; }
.coverage-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .4s ease; }
.coverage-meta { margin: 8px 0 14px; color: var(--muted); font-size: 12px; }
.coverage-meta span:last-child { color: var(--faint); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th { padding: 0 10px 9px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: left; white-space: nowrap; }
td { padding: 11px 10px; border-top: 1px solid rgba(43,74,73,.55); color: #cfddd7; font-size: 13px; white-space: nowrap; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
.platform-name { color: var(--text); font-weight: 650; }
.platform-kind { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.tvl-cell { color: var(--teal); font: 700 14px ui-monospace, SFMono-Regular, Consolas, monospace; }
.na { color: var(--faint); }
.aux { color: var(--muted); }
.panel-footnote, .source-note { margin-top: 14px; color: var(--faint); font-size: 12px; }
.source-list { display: grid; gap: 8px; }
.source-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(43,74,73,.55); }
.source-item:first-child { border-top: 0; }
.source-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.source-dot.ok { background: var(--teal); box-shadow: 0 0 8px rgba(87,211,179,.7); }
.source-dot.warn { background: var(--yellow); }
.source-dot.error { background: var(--red); }
.source-title { font-size: 14px; }
.source-detail { color: var(--faint); font-size: 11px; margin-top: 2px; }
.source-status { color: var(--muted); font-size: 12px; }
.market-panel { margin-bottom: 12px; }
.market-heading { margin-bottom: 15px; }
.market-controls { display: flex; align-items: center; gap: 12px; }
.select-wrap select { appearance: none; border: 1px solid var(--line-bright); border-radius: 7px; padding: 8px 30px 8px 10px; color: var(--text); background: var(--panel-2); font-size: 13px; cursor: pointer; }
.market-table { min-width: 850px; }
.market-table td { padding-top: 12px; padding-bottom: 12px; }
.rank { color: var(--faint); width: 25px; }
.token-cell { display: flex; align-items: center; gap: 9px; }
.token-avatar { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 8px; color: var(--orange); background: var(--orange-soft); font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.token-symbol { color: var(--text); font-weight: 700; }
.contract { display: block; margin-top: 2px; color: var(--faint); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; cursor: pointer; }
.contract:hover { color: var(--teal); }
.num { font: 650 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.positive { color: var(--teal); }
.negative { color: var(--red); }
.neutral { color: var(--muted); }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; }
.mini-panel { min-height: 228px; }
.mini-heading { margin: 3px 0 16px; }
.mini-heading h2 { font-size: 17px; }
.stat-row { padding: 9px 0; border-top: 1px solid rgba(43,74,73,.55); color: var(--muted); font-size: 13px; }
.stat-row strong { color: var(--text); font: 650 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.methodology-panel p { margin-top: 15px; color: #a8b9b2; font-size: 14px; line-height: 1.75; }
.method-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.method-tags span { padding: 5px 8px; border: 1px solid var(--line-bright); border-radius: 6px; color: var(--teal); background: var(--teal-soft); font-size: 12px; }
.footer { margin-top: 18px; color: var(--faint); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 9px 13px; border: 1px solid var(--line-bright); border-radius: 8px; opacity: 0; color: var(--text); background: #132325; transition: opacity .2s, transform .2s; pointer-events: none; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) { .content-grid, .bottom-grid { grid-template-columns: 1fr; } .source-panel { min-height: auto; } }
@media (max-width: 720px) { .shell { width: min(100% - 28px, 1500px); padding-top: 18px; } .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 18px; } .top-actions { width: 100%; justify-content: space-between; } .notice-bar { align-items: flex-start; } .notice-bar > div { display: flex; flex-direction: column; gap: 3px; } .notice-bar strong { margin-right: 0; } .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .kpi-card { min-height: 119px; padding: 14px; } .kpi-value { font-size: 26px; } .panel { padding: 15px; } .footer { align-items: flex-start; flex-direction: column; gap: 4px; } .lock-card form { flex-direction: column; } .unlock-btn { min-height: 42px; } }
@media (max-width: 420px) { .kpi-grid { grid-template-columns: 1fr; } .market-controls { align-items: flex-end; flex-direction: column; gap: 6px; } }
