@font-face { font-family: "Matter"; src: url("/static/assets/3121Tsk68mHZwJJf1twQpB418.woff2") format("woff2"); font-weight: 430; font-display: swap; }
@font-face { font-family: "Matter"; src: url("/static/assets/ODEa6AVNH3HOjTVde2fZEWKVVao.woff2") format("woff2"); font-weight: 670; font-display: swap; }
@font-face { font-family: "Jokker"; src: url("/static/assets/MIJfOnqlX0RU6hcUu7Aq1Lh6rI.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jokker"; src: url("/static/assets/titenLuGocWoKtfsJtx6dXLuioM.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --canvas: #000814;
  --surface: #010d1e;
  --raised: #001533;
  --cobalt: #00215e;
  --line: #11263b;
  --line-soft: rgba(17, 38, 59, 0.6);
  --text: #ffffff;
  --fog: #ccced0;
  --mist: #8d9198;
  --blue: #1c6cff;
  --long: #ff5c4d;
  --short: #22c55e;
  --amber: #ffb020;
  --inset: rgba(255, 255, 255, 0.06) 1px 1px 0 0 inset, rgba(255, 255, 255, 0.04) 4px 4px 16px -4px inset;
  --side: 232px;
  --r: 16px;
  font-family: "Matter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 430;
  color: var(--text);
  background: var(--canvas);
  font-feature-settings: "cv11";
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.mono, .num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; letter-spacing: -0.01em; }

/* shell */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--canvas); padding: 20px 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-family: "Jokker"; font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--fog); transition: background .15s, color .15s; }
.nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.on { background: var(--raised); color: var(--text); box-shadow: var(--inset); }
.nav a.on svg { stroke: var(--blue); }
.side-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.net { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mist); flex: none; }
.dot.live { background: var(--short); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
.dot.stale { background: var(--amber); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.block { color: var(--mist); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: rgba(0, 8, 20, .86); backdrop-filter: blur(10px); }
.crumbs { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.crumbs h1 { margin: 0; font-family: "Jokker"; font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.sub { color: var(--mist); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.view { padding: 24px 28px 64px; display: grid; gap: 20px; max-width: 1480px; width: 100%; }

/* controls */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 12px; border: 1px solid transparent; background: var(--blue); color: #fff; cursor: pointer; font-size: 13.5px; white-space: nowrap; transition: filter .15s, background .15s; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--fog); }
.btn.ghost:hover { background: var(--surface); color: var(--text); }
.btn.wide { width: 100%; justify-content: center; height: 42px; }
select, input { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; height: 36px; padding: 0 12px; outline: none; }
select:focus, input:focus { border-color: var(--blue); }
input.big { height: 46px; font-size: 18px; width: 100%; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.seg button { border: 0; background: none; height: 28px; padding: 0 12px; border-radius: 9px; color: var(--mist); cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--raised); color: var(--text); box-shadow: var(--inset); }

/* cards */
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.two { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--inset); min-width: 0; }
.card.pad { padding: 18px 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.card-h h2 { margin: 0; font-size: 14px; font-weight: 670; letter-spacing: 0; }
.card-h .hint { color: var(--mist); font-size: 12.5px; }
.card-b { padding: 14px 20px 18px; }
.kpi .label { color: var(--mist); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-family: "Jokker"; font-weight: 500; font-size: 26px; letter-spacing: -0.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .foot { color: var(--mist); font-size: 12px; margin-top: 4px; }
.up { color: var(--short); } .down { color: var(--long); } .muted { color: var(--mist); } .fog { color: var(--fog); }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 430; color: var(--mist); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--surface); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table td.r, .table th.r { text-align: right; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover td { background: rgba(28, 108, 255, .05); }
.scroll { overflow: auto; max-height: 520px; }
.sym { display: flex; align-items: center; gap: 10px; }
.sym b { font-weight: 670; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; background: var(--raised); color: var(--fog); }
.tag.long { background: rgba(255, 92, 77, .12); color: #ff8a7f; }
.tag.short { background: rgba(34, 197, 94, .12); color: #5fdc8c; }
.tag.blue { background: rgba(28, 108, 255, .14); color: #7fa9ff; }
.tag.amber { background: rgba(255, 176, 32, .12); color: #ffc65c; }
.coin { width: 24px; height: 24px; border-radius: 8px; background: var(--raised); display: grid; place-items: center; font-size: 10.5px; font-weight: 670; color: var(--fog); flex: none; }

/* chart */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .axis text { fill: var(--mist); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--mist); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); min-width: 190px; }
.tip .row { display: flex; justify-content: space-between; gap: 18px; }
.tip .t { font-weight: 670; margin-bottom: 6px; }

/* bars */
.meter { height: 6px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 6px; background: var(--blue); }
.stack { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--raised); }
.stack > i { display: block; height: 100%; }

/* clusters */
.cluster { padding: 16px 18px; border-radius: 14px; background: var(--raised); box-shadow: var(--inset); display: grid; gap: 10px; }
.cluster .head { display: flex; justify-content: space-between; align-items: center; }
.cluster .price { font-family: "Jokker"; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--mist); } .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* states */
.empty { padding: 28px 20px; color: var(--mist); text-align: center; font-size: 13px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--canvas); color: var(--fog); font-size: 13px; }
.notice b { color: var(--text); font-weight: 670; }
.skel { background: linear-gradient(90deg, var(--surface), var(--raised), var(--surface)); background-size: 200% 100%; animation: sk 1.4s infinite linear; border-radius: 10px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fade { animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.rules { display: grid; gap: 10px; counter-reset: r; margin: 0; padding: 0; list-style: none; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 13px; color: var(--fog); }
.rules li::before { content: counter(r); width: 22px; height: 22px; border-radius: 7px; background: var(--raised); color: var(--text); display: grid; place-items: center; font-size: 11.5px; font-weight: 670; }
.addr { color: var(--fog); }
.addr:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .two { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand { padding: 0 8px 0 0; } .brand span { display: none; }
  .nav { flex-direction: row; } .nav a { padding: 8px; font-size: 0; gap: 0; } .side-foot { display: none; }
  .kpis, .halves { grid-template-columns: 1fr 1fr; } .view { padding: 16px; } .top { padding: 12px 16px; }
}
