/* Kas Tambang — design tokens. Light by default; dark from the OS or the toggle (data-theme on <html>). */
:root {
  --bg: #eef1f4;
  --bg-2: #e6eaee;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --line: #dfe5ea;
  --line-strong: #c9d2d9;
  --text: #121a20;
  --text-2: #3c4a54;
  --muted: #687782;
  --accent: #c5612c;          /* copper */
  --accent-soft: #f6e3d8;
  --accent-text: #ffffff;
  --pos: #11845b;
  --pos-soft: #dcf3e9;
  --neg: #c8372d;
  --neg-soft: #fbe3e0;
  --warn: #b7791f;
  --warn-soft: #fbefd6;
  --info: #2f6fb3;
  --info-soft: #dfeaf7;
  --qbt: #4a6ee0;
  --elcash: #0f9e93;
  --bvault: #c99418;
  --htr: #9156d6;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 4px 16px rgba(16, 24, 32, .05);
  --radius: 14px;
  --radius-s: 9px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --chart-grid: rgba(16, 26, 32, .07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1317;
    --bg-2: #111a1f;
    --surface: #151e24;
    --surface-2: #1a252c;
    --line: #233139;
    --line-strong: #2e3f49;
    --text: #e7edf0;
    --text-2: #b9c6cd;
    --muted: #84949e;
    --accent: #ec8a55;
    --accent-soft: #3a2519;
    --accent-text: #1b0f08;
    --pos: #3fd29a;
    --pos-soft: #12332a;
    --neg: #ff7a6e;
    --neg-soft: #3b1c1a;
    --warn: #f3bd4f;
    --warn-soft: #382c14;
    --info: #6fb0f2;
    --info-soft: #172b40;
    --qbt: #7d9bff;
    --elcash: #36cfc2;
    --bvault: #f1c24d;
    --htr: #c08cff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --chart-grid: rgba(220, 235, 245, .07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1317;
  --bg-2: #111a1f;
  --surface: #151e24;
  --surface-2: #1a252c;
  --line: #233139;
  --line-strong: #2e3f49;
  --text: #e7edf0;
  --text-2: #b9c6cd;
  --muted: #84949e;
  --accent: #ec8a55;
  --accent-soft: #3a2519;
  --accent-text: #1b0f08;
  --pos: #3fd29a;
  --pos-soft: #12332a;
  --neg: #ff7a6e;
  --neg-soft: #3b1c1a;
  --warn: #f3bd4f;
  --warn-soft: #382c14;
  --info: #6fb0f2;
  --info-soft: #172b40;
  --qbt: #7d9bff;
  --elcash: #36cfc2;
  --bvault: #f1c24d;
  --htr: #c08cff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --chart-grid: rgba(220, 235, 245, .07);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sprite { display: none; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.s { width: 16px; height: 16px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- boot / login ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1100px 500px at 15% -10%, var(--accent-soft), transparent 60%), var(--bg);
}
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: var(--accent-text); }
.brand-mark .ico { width: 18px; height: 18px; stroke-width: 2.2; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 4px; }
.side .brand { padding: 4px 10px 18px; }
.nav-a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; position: relative; }
.nav-a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav-a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.nav-a.on .ico { color: var(--accent); }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn); color: #1b1305; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: grid; gap: 6px; padding: 8px; font-size: 12.5px; color: var(--muted); }
.main { min-width: 0; padding: 0 28px 48px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 14px 0; margin-bottom: 4px; background: var(--bg); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 22px; font-weight: 750; letter-spacing: -.01em; margin-right: auto; }
.top-sub { color: var(--muted); font-size: 13px; font-weight: 500; }
.tabbar { display: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.pri:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 38px; padding: 0; }
.btn.danger { color: var(--neg); }
.btn[disabled] { opacity: .5; cursor: default; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.field small { color: var(--muted); font-size: 12px; }
input, select, textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); }
textarea { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.err { color: var(--neg); font-size: 13.5px; }
.hint { color: var(--muted); font-size: 13px; }

/* ---------- layout blocks ---------- */
.page { display: grid; gap: 18px; }
.cols { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h h2 { font-size: 15px; font-weight: 700; }
.card-h .sub { color: var(--muted); font-size: 12.5px; }
.card-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* hero: the one number that matters */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 18px; }
.hero-main { padding: 22px; border-radius: 18px; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-main::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; }
.hero-num { font-family: var(--mono); font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 4px; }
.hero-num.neg { color: var(--neg); }
.hero-sub { color: var(--text-2); font-size: 14px; }
.hero-eq { margin-top: 14px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.hero-eq .num { color: var(--text-2); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 2px; align-content: start; min-width: 0; }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.kpi .v { font-family: var(--mono); font-size: 21px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi .s { font-size: 12.5px; color: var(--muted); }
.kpi.lock .v { color: var(--warn); }
.kpi.debt .v { color: var(--neg); }

/* pills / badges */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { background: var(--pos-soft); color: var(--pos); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--neg-soft); color: var(--neg); border-color: transparent; }
.pill.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 0 var(--pos); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 210, 154, .5); } 70% { box-shadow: 0 0 0 8px rgba(63, 210, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 210, 154, 0); } }
.c-QBT { color: var(--qbt); } .c-ELCASH { color: var(--elcash); } .c-BVAULT { color: var(--bvault); } .c-HTR { color: var(--htr); } .c-BTC { color: var(--accent); }
.bg-QBT { background: var(--qbt); } .bg-ELCASH { background: var(--elcash); } .bg-BVAULT { background: var(--bvault); } .bg-HTR { background: var(--htr); }
.pos { color: var(--pos); } .neg { color: var(--neg); } .muted { color: var(--muted); } .warn { color: var(--warn); }

/* coin cards */
.coins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.coin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 10px; position: relative; overflow: hidden; min-width: 0; }
.coin::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cc, var(--muted)); }
.cc-BTC { --cc: var(--accent); } .cc-QBT { --cc: var(--qbt); } .cc-ELCASH { --cc: var(--elcash); } .cc-BVAULT { --cc: var(--bvault); } .cc-HTR { --cc: var(--htr); }
.coin-name { display: inline-flex; align-items: center; gap: 7px; }
.coin-name .dot { background: var(--cc); }
.coin-h { display: flex; align-items: baseline; gap: 8px; }
.coin-h b { font-size: 15px; color: var(--text); }
.coin-h .price { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.coin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.coin-stats .num { color: var(--text); font-size: 13.5px; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; display: flex; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; }
.bar .b-ok { background: var(--pos); } .bar .b-wait { background: var(--warn); } .bar .b-acc { background: var(--accent); } .bar .b-info { background: var(--info); }

/* contract */
.contract { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.ring { width: 112px; height: 112px; }
.ring circle { fill: none; stroke-width: 10; }
.ring .r-bg { stroke: var(--surface-2); }
.ring .r-fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s; }
.ring text { fill: var(--text); font: 700 18px var(--mono); }
.ring text.t2 { fill: var(--muted); font: 600 10px var(--font); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 16px; }
.kv > div { display: grid; gap: 1px; min-width: 0; }
.kv .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.kv .v { font-family: var(--mono); font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td.num { font-family: var(--mono); }
tbody tr:hover td { background: var(--surface-2); }
tr.rev td { opacity: .5; text-decoration: line-through; }
.t-main { font-weight: 600; }
.t-sub { color: var(--muted); font-size: 12.5px; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }

/* lists */
.list { display: grid; }
.li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .ttl { font-weight: 650; }
.li .body { color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }
.li .meta { color: var(--muted); font-size: 12px; }
.sev { width: 4px; align-self: stretch; border-radius: 2px; background: var(--info); flex: none; }
.sev.warn { background: var(--warn); } .sev.crit { background: var(--neg); }

/* banners */
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; font-size: 14px; }
.banner.warn { background: var(--warn-soft); color: var(--text); border-color: var(--warn); }
.banner.info { background: var(--info-soft); }
.banner .grow { flex: 1; }

/* charts */
.chart { position: relative; height: 240px; }
.chart.tall { height: 300px; }
.chart.small { height: 120px; }
.chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; box-shadow: var(--shadow); white-space: nowrap; z-index: 2; display: none; }
.chart-tip .t { color: var(--muted); margin-bottom: 4px; }
.chart-tip .s { display: flex; align-items: center; gap: 6px; font-family: var(--mono); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }

/* flow diagram */
.flow svg { width: 100%; height: auto; display: block; }
.flow text { font: 600 12px var(--font); fill: var(--text-2); }
.flow text.v { font: 600 11.5px var(--mono); fill: var(--muted); }

/* dialog */
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(8, 12, 16, .55); backdrop-filter: blur(2px); }
.dlg-h { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); gap: 10px; }
.dlg-h h3 { font-size: 16px; font-weight: 700; margin-right: auto; }
.dlg-b { padding: 18px; display: grid; gap: 14px; max-height: min(70vh, 640px); overflow-y: auto; }
.dlg-f { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* toast */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--pos); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); max-width: 360px; font-size: 14px; animation: tin .2s ease-out; }
.toast.err { border-left-color: var(--neg); }
.toast.warn { border-left-color: var(--warn); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* skeleton */
.sk { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 8px; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* status sources */
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.src { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; background: var(--surface-2); }
.src .n { font-weight: 650; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.src .e { font-size: 12.5px; color: var(--neg); overflow-wrap: anywhere; }
.src .m { font-size: 12px; color: var(--muted); }

.qr { width: 200px; height: 200px; image-rendering: pixelated; border-radius: 10px; background: #fff; padding: 8px; }
.split { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.split:last-child { border-bottom: 0; }
.split.total { font-weight: 700; border-top: 1px solid var(--line-strong); border-bottom: 0; padding-top: 10px; margin-top: 4px; }
.split .num { white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .coins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
  .span-3 { grid-column: span 6; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 0 16px 92px; }
  .top h1 { font-size: 19px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; position: relative; }
  .tabbar a.on { color: var(--accent); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .nav-badge { position: absolute; top: 0; right: 18%; margin: 0; height: 16px; min-width: 16px; font-size: 10px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .contract { grid-template-columns: 1fr; justify-items: start; }
  .card { padding: 14px; }
  .tbl-wrap { margin: 0 -14px; padding: 0 14px; }
  .span-3 { grid-column: span 12; }
  .toasts { left: 16px; right: 16px; bottom: 84px; }
}
@media (max-width: 460px) {
  .coins { grid-template-columns: 1fr; }
  .kpi .v { font-size: 18px; }
}
.grow { flex: 1; min-width: 0; }
.li[href] { color: inherit; }
.li[href]:hover { text-decoration: none; background: var(--surface-2); }
tfoot td { border-top: 1px solid var(--line-strong); border-bottom: 0; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; padding: 0; flex: none; accent-color: var(--accent); }
label.row { cursor: pointer; font-size: 14px; }
.renewal { display: grid; gap: 4px; margin-bottom: 12px; }
.renewal .hero-num { font-size: clamp(24px, 3.2vw, 34px); }
.hero-num.pos { color: var(--pos); } .hero-num.warn { color: var(--warn); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 10px 0 2px; width: 100%; }
/* ---------- plain-language overview ---------- */
.kpis.pos5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.renew-card .hero-num { font-size: clamp(22px, 3vw, 32px); margin: 10px 0 2px; }
.eq { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.eq b { color: var(--text-2); font-weight: 650; }
.order { display: grid; gap: 2px; margin-top: 6px; }
.order-row { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.order-row:last-of-type { border-bottom: 0; }
.order-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 12px; font-weight: 700; flex: none; }
.sev.ok { background: var(--pos); }
.acc-note { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.danger-zone { border-color: var(--neg); }
@media (max-width: 1180px) { .kpis.pos5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .kpis.pos5 { grid-template-columns: 1fr 1fr; } }
/* ---------- mined coins / targets (facts only) ---------- */
.bg-ok { background: var(--pos); } .bg-muted { background: var(--muted); } .bg-neg { background: var(--neg); } .bg-warn { background: var(--warn); }
.dot.ok { background: var(--pos); } .dot.wait { background: var(--warn); } .dot.cash { background: var(--muted); }
.mined-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.donut { width: 132px; height: 132px; }
.donut circle { fill: none; stroke-width: 16; }
.donut .d-bg { stroke: var(--surface-2); }
.donut .d-seg.ok { stroke: var(--pos); } .donut .d-seg.wait { stroke: var(--warn); }
.donut .d-v { fill: var(--text); font: 700 15px var(--mono); }
.donut .d-s { fill: var(--muted); font: 600 10px var(--font); }
.mined-legend { display: grid; gap: 6px; font-size: 13.5px; }
.mined-legend > div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.mined-legend .tot { grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line-strong); padding-top: 6px; font-weight: 700; }
.mined-coins { display: grid; gap: 10px; margin-top: 14px; }
.mc { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 3px; }
.mc-h { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.mc-r { display: grid; grid-template-columns: minmax(0, 1fr) auto 90px; gap: 10px; font-size: 13.5px; align-items: baseline; }
.mc-r b { text-align: right; }
.tgs { display: grid; gap: 16px; }
.tg { display: grid; gap: 6px; }
.tg-h { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.tg-bar { height: 14px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: flex; }
.tg-bar > i { display: block; height: 100%; }
.tg-bar .b-ok { background: var(--pos); } .tg-bar .b-wait { background: var(--warn); opacity: .75; }
.tg-s { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.pl-bars { display: grid; gap: 6px; margin-bottom: 8px; }
.pl-bars > div { display: grid; grid-template-columns: 48px minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); }
.pl-bars b { text-align: right; color: var(--text); }
.pl-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.pl-bar > i { display: block; height: 100%; }
.pl-bar .b-ok { background: var(--pos); } .pl-bar .b-bad { background: var(--neg); }
.stack { display: grid; gap: 18px; align-content: start; }
@media (max-width: 460px) { .mined-top { grid-template-columns: 1fr; justify-items: center; } .mc-r { grid-template-columns: minmax(0, 1fr) auto 76px; } }
