/* Mirra — tableau de bord de copie
   Space Grotesk (titres, chiffres), Inter (texte), JetBrains Mono (adresses, codes).
   Thème sombre, accent corail — le même que la page d'accueil. */

@font-face { font-family: "Space Grotesk"; src: url("/static/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800; font-display: swap; }

:root {
  --paper: #0b0b0d;
  --surface: #121216;
  --sunk: #0e0e11;
  --ink: #ededef;
  --muted: #a0a0aa;
  --line: #2e2e36;
  --line-soft: #202026;
  --focus: #ff8a63;
  --accent: #ff6a3d;
  --accent-ink: #0b0b0d;

  --active: #5ee6a8;
  --active-soft: #123a2a;
  --paused: #ffc24b;
  --paused-soft: #3a2e12;
  --danger: #ff8a70;
  --danger-soft: #3a1a14;
  --sim: #a7b1ff;
  --sim-soft: #1e2240;
  --stopped: #7d7d88;

  --gauge-ok: #6fd3f2;

  --radius-s: 6px;
  --radius-m: 14px;
  --shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 10px 26px -14px rgba(0, 0, 0, .7);
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.55 var(--f-text);
}

h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }

.num {
  font-variant-numeric: tabular-nums;
  font-weight: 560;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ── boutons et champs ─────────────────────────────────────── */
button, .btn {
  font: inherit;
  font-weight: 560;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 7px 13px;
  cursor: pointer;
  line-height: 1.3;
  white-space: nowrap;
}
button:hover { border-color: var(--muted); }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.primary:hover { opacity: .9; }
button.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
button.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
button.link {
  border: 0; background: none; padding: 0; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; font-weight: 450;
}
button.link:hover { color: var(--ink); }

label { display: block; font-weight: 560; font-size: 13px; margin-bottom: 4px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

input[type=text], input[type=email], input[type=password], input[type=number], select {
  font: inherit;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
}
input:focus-visible, select:focus-visible { outline-offset: 0; }
input.mono, .mono { font-family: var(--f-mono); font-size: 13.5px; }

.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 450; font-size: 14px; }
.check input { margin-top: 3px; }

.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.error-msg {
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: var(--radius-s);
  padding: 8px 10px;
  font-size: 14px;
  margin-bottom: 12px;
}

/* ── écran de connexion ────────────────────────────────────── */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px;
}
.wordmark {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(56px, 10vw, 112px);
  line-height: .9;
}
.wake {
  display: block;
  margin: 18px 0 26px;
  height: 18px;
  width: min(420px, 100%);
  color: var(--gauge-ok);
}
.auth-pitch { font-size: 18px; max-width: 30em; }
.auth-pitch + .auth-pitch { margin-top: 10px; color: var(--muted); font-size: 15px; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 26px;
  box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.tabs button {
  border: 0; background: none; padding: 0 0 9px; border-radius: 0;
  color: var(--muted); font-size: 16px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent); }

.disclaimer { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* ── en-tête ───────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 18px 24px 8px;
}
.top .brand { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.top .who { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); }

main { max-width: 1120px; margin: 0 auto; padding: 8px 24px 64px; }

.banner {
  border-radius: var(--radius-m);
  padding: 10px 14px;
  margin: 10px 0 0;
  font-size: 14px;
  background: var(--sim-soft);
  color: var(--ink);
  border-left: 4px solid var(--sim);
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 30px 0 12px;
}
.section-head h2 { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

/* ── une copie ─────────────────────────────────────────────── */
.copy {
  --state: var(--stopped);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 5px solid var(--state);
  border-radius: var(--radius-m);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.copy[data-status=active] { --state: var(--active); }
.copy[data-status=paused] { --state: var(--paused); }
.copy[data-status=stopping] { --state: var(--paused); }
.copy[data-status=error] { --state: var(--danger); }
.copy[data-status=stopped] { box-shadow: none; background: var(--sunk); }

.copy-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.4fr) 170px;
  gap: 18px 28px;
  padding: 16px 18px;
  align-items: start;
}

.who-copies h3 {
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.who-copies .to { margin-top: 2px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.pills { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pill {
  font-size: 12.5px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
  background: var(--sunk); color: var(--muted);
}
.pill.s-active { background: var(--active-soft); color: var(--active); }
.pill.s-paused, .pill.s-stopping { background: var(--paused-soft); color: var(--paused); }
.pill.s-error { background: var(--danger-soft); color: var(--danger); }
.pill.m-sim { background: var(--sim-soft); color: var(--sim); }
.pill.m-live { background: var(--accent); color: var(--accent-ink); }
.pill.g-soft { background: var(--paused-soft); color: var(--paused); }
.pill.g-hard { background: var(--danger-soft); color: var(--danger); }

.facts { display: flex; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.fact .v { font-size: 18px; display: block; line-height: 1.2; }
.fact .k { font-size: 12.5px; color: var(--muted); }

/* la jauge de distance à la breach */
.gauges { display: grid; gap: 14px; }
.equity { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.equity .v { font-size: 30px; line-height: 1; font-weight: 600; }
.equity .k { font-size: 13px; color: var(--muted); }

.gauge-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.gauge-head .k { font-weight: 600; }
.gauge-head .v { color: var(--muted); }
.track {
  position: relative;
  height: 10px;
  border-radius: 2px;
  background: var(--sunk);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  overflow: visible;
}
.fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  border-radius: 2px;
  background: var(--gauge-ok);
  transition: width .5s ease, background-color .3s;
}
.track[data-level=soft] .fill { background: var(--paused); }
.track[data-level=hard] .fill { background: var(--danger); }
.tick {
  position: absolute; top: -4px; bottom: -4px; width: 2px;
  background: var(--ink); opacity: .55; border-radius: 1px;
}
.tick.hard { background: var(--danger); opacity: .9; }
.gauge-foot { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.gauge-off { font-size: 14px; color: var(--muted); }

.copy-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.nobr { white-space: nowrap; }

.copy-alert {
  margin: 0 18px 14px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  font-size: 14px;
  background: var(--danger-soft);
  color: var(--danger);
}
.copy-alert.warn { background: var(--paused-soft); color: var(--paused); }

.copy-tabs {
  display: flex; gap: 4px;
  border-top: 1px solid var(--line-soft);
  padding: 0 12px;
}
.copy-tabs button {
  border: 0; border-radius: 0; background: none;
  padding: 10px 8px; color: var(--muted); font-weight: 560;
  border-bottom: 2px solid transparent;
}
.copy-tabs button[aria-expanded=true] { color: var(--ink); border-bottom-color: var(--state); }
.copy-panel { padding: 4px 18px 18px; border-top: 1px solid var(--line-soft); }

/* positions */
table.pos { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
table.pos th {
  text-align: right; font-weight: 560; color: var(--muted); font-size: 12.5px;
  padding: 6px 8px; border-bottom: 1px solid var(--line-soft);
}
table.pos th:first-child, table.pos td:first-child { text-align: left; }
table.pos td {
  text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
table.pos td.coin { font-weight: 600; }
.long { color: var(--active); }
.short { color: var(--danger); }
.gap-flag { color: var(--paused); font-weight: 600; }
tr.pos-row { cursor: pointer; }
tr.pos-row:hover td, tr.pos-row:focus-visible td { background: rgba(255,255,255,.03); }
tr.pos-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.caret { display: inline-block; width: 1em; color: var(--muted); }
tr.pos-more > td { background: rgba(255,255,255,.02); padding: 12px 14px 16px; text-align: left !important; }
dl.pos-detail { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 20px; margin: 0; }
dl.pos-detail dt { color: var(--muted); font-size: 12px; }
dl.pos-detail dd { margin: 2px 0 0; }
table.pos.sub { margin-top: 14px; font-size: 13px; }
table.pos tfoot td { font-weight: 600; border-top: 1px solid var(--line); padding-top: 8px; }
.badge-sim { font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 999px; background: var(--sim-soft); color: var(--sim); }
.hist-sum { margin-top: 12px; }
td.mono { font-family: var(--f-mono); }
table.pos td.coin, table.pos th.coin { text-align: left; }

/* journal */
.events { list-style: none; margin: 10px 0 0; padding: 0; max-height: 340px; overflow: auto; font-size: 13.5px; }
.events li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.events time { color: var(--muted); font-family: var(--f-mono); font-size: 12px; }
.events li.error span { color: var(--danger); }
.events li.warn span { color: var(--paused); }

/* réglages */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 28px; margin-top: 12px; }
.settings h4 { margin: 8px 0 10px; font-size: 14px; font-weight: 700; grid-column: 1 / -1; }
.settings .save { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }

/* clés */
.keys { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-m); }
.key-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
}
.key-row:last-of-type { border-bottom: 0; }
.key-row .hint-v { font-variant-numeric: tabular-nums; color: var(--muted); }
.key-form { padding: 16px; border-top: 1px solid var(--line-soft); background: var(--sunk); border-radius: 0 0 var(--radius-m) var(--radius-m); }
.key-form .grid { display: grid; grid-template-columns: 200px 1fr auto; gap: 10px; align-items: end; }

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  text-align: left;
}
.empty p + p { margin-top: 6px; }
.empty .row { margin-top: 14px; }

/* ── assistant nouvelle copie ──────────────────────────────── */
.wizard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.wizard-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.wizard-head h3 { font-size: 17px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  border: 1.5px solid var(--line); color: var(--muted);
}
.step.done::before { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); content: "✓"; }
.step.current::before { border-color: var(--accent); color: var(--accent); }
.step.locked { opacity: .45; }
.step.locked .step-body { pointer-events: none; }
.step h4 { font-size: 15px; margin: 2px 0 8px; }

.choices { display: grid; gap: 8px; }
.choice {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; cursor: pointer;
  font-weight: 450; font-size: 14px; margin: 0;
}
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice .t { font-weight: 600; }
.choice .s { color: var(--muted); font-size: 13px; }

.preview { margin-top: 12px; border: 1px solid var(--line-soft); border-radius: var(--radius-s); padding: 12px; background: var(--sunk); }
.preview .facts { margin-top: 0; }

.ratio-row { display: flex; gap: 14px; align-items: center; }
.ratio-row input[type=range] { flex: 1; accent-color: var(--accent); }
.ratio-row input[type=number] { width: 96px; }

/* ── fenêtres ──────────────────────────────────────────────── */
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink);
  padding: 22px;
  width: min(480px, calc(100vw - 32px));
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .45);
}
dialog::backdrop { background: rgba(16, 22, 30, .45); }
dialog h3 { font-size: 18px; margin-bottom: 10px; }
dialog p { margin-bottom: 10px; }
dialog .row { justify-content: flex-end; margin-top: 16px; }
.option-stack { display: grid; gap: 10px; margin-top: 14px; }
.option-stack button { text-align: left; white-space: normal; padding: 11px 14px; }
.option-stack button small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.option-stack button.danger small { color: inherit; opacity: .85; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: var(--radius-s);
  font-size: 14px; max-width: calc(100vw - 32px); z-index: 10;
}
#toast.bad { background: var(--danger); color: #fff; }

/* ── petits écrans ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .copy-main { grid-template-columns: 1fr 1fr; }
  .copy-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .auth { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .copy-main { grid-template-columns: 1fr; }
  .key-form .grid, .grid-2 { grid-template-columns: 1fr; }
  .top, main { padding-left: 16px; padding-right: 16px; }
  table.pos .opt { display: none; }
  .top .who span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── offre affiliation, accès, traders, paiement ─────────────── */
.offer { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin: 8px 0 4px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius-m);
  background: var(--surface); font-size: 14.5px; }
.offer > div { max-width: 46em; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
a.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.pill.a-ok { background: var(--active-soft); color: var(--active); }
.pill.a-no { background: var(--sunk); color: var(--muted); }
.key-row .pill { margin-left: 8px; vertical-align: 1px; }
button.small { padding: 4px 10px; font-size: 13px; min-height: 0; }
table.traders input { width: 96px; padding: 6px 8px; }
table.traders td { vertical-align: middle; }
.add-trader { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.add-trader h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.grid-add { display: grid; grid-template-columns: 1fr 110px 110px auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.unlock { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.unlock section { border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 14px; }
.unlock h4 { margin: 0 0 8px; font-size: 15px; }
.unlock p + p { margin-top: 8px; }
.pay-amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pay-amount .k, .pay-addr .k { font-size: 12.5px; color: var(--muted); display: block; width: 100%; }
.pay-amount .v { font-size: 26px; font-weight: 700; }
.pay-addr { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-addr code { font-size: 13px; overflow-wrap: anywhere; background: var(--sunk); padding: 4px 6px; border-radius: 6px; }
.pay-wait { margin-top: 10px; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pay-wait .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paused); animation: pulse 1.4s ease-in-out infinite; }
.pay-ok { color: var(--active); }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pay-wait .dot { animation: none; } }
#dialog.wide { width: min(860px, calc(100vw - 32px)); max-width: none; }
.unlock .row { justify-content: flex-start; margin-top: 10px; }
#dialog.wide { max-height: calc(100vh - 32px); overflow: auto; }
@media (max-width: 760px) {
  .unlock { grid-template-columns: 1fr; }
  .grid-add { grid-template-columns: 1fr 1fr; }
  .grid-add > div:first-child { grid-column: 1 / -1; }
}

/* ── Mirra : typographie et détails ─────────────────────────── */
h1, h2, h3, h4, .wordmark, .num, .equity .v, .fact .v, .pay-amount .v { font-family: var(--f-display); }
.wordmark { letter-spacing: -.04em; }
.who-copies h3, table.pos td.coin, .key-row .hint-v, .events time, .pay-addr code { font-family: var(--f-mono); }
.who-copies h3 { font-size: 16px; }
.copy { border-radius: var(--radius-m); }
.copy[data-status=active] { --state: var(--accent); }
.logo-mark { width: 26px; height: 26px; flex: none; }
.top { border-bottom: 1px solid var(--line-soft); margin-bottom: 18px; }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.top nav a[aria-current=page] { color: var(--ink); background: var(--surface); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; border-radius: 0; padding: 4px 10px; min-height: 0; font-size: 12.5px; background: transparent; color: var(--muted); }
.lang button[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.auth .lang { position: absolute; top: 18px; right: 18px; }
.auth { position: relative; }
.wake { color: var(--accent); }

/* classement */
.lb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.lb-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-sort button[aria-pressed=true] { border-color: var(--accent); color: var(--ink); }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.lb-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 18px;
  display: flex; flex-direction: column; gap: 12px; }
.lb-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lb-name { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.lb-addr { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.fit { font-family: var(--f-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.fit.g-Aplus, .fit.g-A { background: var(--active-soft); color: var(--active); }
.fit.g-B { background: var(--paused-soft); color: var(--paused); }
.fit.g-C { background: var(--danger-soft); color: var(--danger); }
.fit.g-q { background: var(--sunk); color: var(--muted); }
.lb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lb-stats .k { font-size: 11.5px; color: var(--muted); display: block; }
.lb-stats .v { font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.lb-spark { width: 100%; height: 48px; }
.lb-assets { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-assets span { font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--muted); }
.lb-note { font-size: 13px; color: var(--muted); background: var(--sunk); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 11px; }
.lb-actions { display: flex; gap: 8px; margin-top: auto; }
.lb-actions button { flex: 1; }
.up { color: var(--active); } .down { color: var(--danger); }
@media (max-width: 560px) { .lb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
