:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface-1: #fcfcfb;
  --surface-2: #f0efec;
  --border: #e2e1dc;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #7c7b76;
  --grid: #e7e6e1;
  --pos: #0a7d33;
  --neg: #c62828;
  --accent: #2a78d6;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #4a3aa7; --series-8: #e34948;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
  --radius: 12px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #111110; --surface-1: #1a1a19; --surface-2: #232321; --border: #2e2e2b;
    --text-primary: #ffffff; --text-secondary: #c3c2b7; --text-muted: #8d8c84; --grid: #2c2c29;
    --pos: #3ecf72; --neg: #ff6b6b; --accent: #3987e5;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface-1: #1a1a19; --surface-2: #232321; --border: #2e2e2b;
  --text-primary: #ffffff; --text-secondary: #c3c2b7; --text-muted: #8d8c84; --grid: #2c2c29;
  --pos: #3ecf72; --neg: #ff6b6b; --accent: #3987e5;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767;
  --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text-primary); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; background: var(--surface-1); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pill { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Layout */
.layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 53px); }
.sidebar { padding: 16px 12px; border-right: 1px solid var(--border); background: var(--surface-1); display: flex; flex-direction: column; gap: 2px; }
.sidebar .sec { margin: 14px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; }
.sidebar a:hover { background: var(--surface-2); color: var(--text-primary); }
.sidebar a.active { background: var(--surface-2); color: var(--text-primary); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.view { padding: 24px; max-width: 1280px; width: 100%; min-width: 0; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 12px; }
  .sidebar .sec { display: none; }
  .sidebar a { white-space: nowrap; }
  .view { padding: 16px; }
  .topbar { padding: 10px 16px; }
  #last-update { display: none; }
}

/* Headings */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.page-head .sub { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
h2 { font-size: 15px; margin: 0 0 12px; }

/* Buttons */
.btn { border: 1px solid var(--border); background: var(--surface-1); padding: 7px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--neg); }
.btn.icon { padding: 7px 10px; }
.btn.sm { padding: 3px 8px; font-size: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 12px; }

/* Cards & KPIs */
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi .label { font-size: 12px; color: var(--text-muted); }
.kpi .value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; letter-spacing: -.01em; }
.kpi .delta { font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }

.pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pcard { cursor: pointer; text-decoration: none; color: inherit; display: block; }
.pcard:hover { border-color: var(--text-muted); }
.pcard .top { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pcard .type { margin-left: auto; font-size: 11px; color: var(--text-muted); font-weight: 400; }
.pcard .big { font-size: 20px; font-weight: 700; margin-top: 10px; font-variant-numeric: tabular-nums; }
.pcard .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; cursor: default; user-select: none; }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text-primary); }
th.num { text-align: right; }
td { padding: 9px 10px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
tbody tr:hover td { background: var(--surface-2); }
tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--border); }
.ticker { font-weight: 700; letter-spacing: .01em; }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border); }
.tag.buy { color: var(--pos); }
.tag.sell { color: var(--neg); }
.empty { padding: 28px; text-align: center; color: var(--text-muted); }
.weightbar { position: relative; height: 6px; width: 64px; background: var(--surface-2); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 6px; }
.weightbar > span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--series-1); border-radius: 0 3px 3px 0; }

/* Charts */
:root { --series-other: #8f8e87; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --series-other: #76756e; } }
:root[data-theme="dark"] { --series-other: #76756e; }
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut-wrap svg { flex: none; overflow: visible; }
.donut-wrap .slice { transition: opacity .15s, stroke-width .15s; }
.donut-wrap.hovering .slice:not(.hl), .donut-wrap.hovering .legend .item:not(.hl) { opacity: .3; }
.donut-wrap .slice.hl { stroke-width: 40px; }
.donut-wrap.big { gap: 32px; }
.donut-wrap.big .legend { min-width: 260px; }
.legend { display: flex; flex-direction: column; gap: 8px; min-width: 160px; flex: 1; }
.legend .item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 4px 6px; border-radius: 6px; transition: opacity .15s, background .15s; cursor: default; }
.legend .item.hl { background: var(--surface-2); }
.legend .item .dot { width: 12px; height: 12px; }
.legend .item .lbl { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend .item .lbl .muted { font-weight: 400; }
.legend .item .v { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-secondary); display: flex; gap: 12px; align-items: baseline; white-space: nowrap; }
.legend .item .v b { color: var(--text-primary); min-width: 52px; text-align: right; }
.legend .item .usd { font-size: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.seg.sm { width: auto; }
.seg.sm button { padding: 5px 12px; font-size: 12px; background: var(--surface-1); }
.seg.sm button.on { background: var(--accent); color: #fff; }
@media (max-width: 520px) { .donut-wrap { justify-content: center; } .donut-wrap.big .legend { min-width: 0; width: 100%; } }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bars .b { display: grid; grid-template-columns: 64px 1fr 110px; align-items: center; gap: 10px; font-size: 12px; }
.bars .track { height: 14px; position: relative; }
.bars .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--series-1); min-width: 2px; }
.bars .fill.neg { background: var(--series-8); right: auto; }
.bars .v { text-align: right; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.hit { cursor: default; }
.tooltip { position: fixed; z-index: 100; pointer-events: none; background: var(--surface-1); color: var(--text-primary); border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; max-width: 260px; }
.tooltip b { font-variant-numeric: tabular-nums; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { padding: 6px 10px; border: 1px solid var(--border); background: var(--surface-1); border-radius: 8px; }

/* Modal / forms */
dialog { border: 1px solid var(--border); border-radius: 14px; padding: 0; background: var(--surface-1); color: var(--text-primary); width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(0,0,0,.45); }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 16px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--text-secondary); }
.field input, .field select, .field textarea { padding: 8px 10px; border: 1px solid var(--border); background: var(--bg); border-radius: 8px; width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field .hint { font-size: 11px; color: var(--text-muted); }
.seg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: var(--bg); padding: 8px; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.preview { grid-column: 1 / -1; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.preview b { font-variant-numeric: tabular-nums; }
.warn { grid-column: 1 / -1; color: var(--neg); font-size: 12px; }
@media (max-width: 520px) { .modal-body { grid-template-columns: 1fr; } }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text-primary); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 200; }
.section { margin-bottom: 16px; }
.settings-row { display: grid; grid-template-columns: 1fr 140px 140px auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--grid); }
.settings-row input, .settings-row select { padding: 6px 8px; border: 1px solid var(--border); background: var(--bg); border-radius: 6px; width: 100%; }
@media (max-width: 640px) { .settings-row { grid-template-columns: 1fr 1fr; } }

/* ===== Login y configuración ===== */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: min(400px, 100%); padding: 28px; }
.auth-card.wide { width: min(480px, 100%); }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.auth-brand h1 { margin: 0; font-size: 20px; }
.auth-card .warn:empty { display: none; }
.auth-foot { margin: 18px 0 0; }
.btn.big { padding: 11px 14px; font-size: 15px; font-weight: 600; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.check input { margin-top: 2px; }
.steps { margin: 0; padding-left: 18px; line-height: 1.7; }
.qr { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 10px; width: fit-content; margin: 0 auto; }
.secret { font-size: 14px; letter-spacing: .05em; word-break: break-all; user-select: all; }

/* ===== Barra superior ===== */
.user-pill { background: var(--surface-2); }
#btn-refresh.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand img { display: block; }

/* ===== Invitado: solo lectura ===== */
.guest [data-action]:not([data-action="alloc-mode"]), .guest .owner-only, .guest .page-head .actions { display: none !important; }

/* ===== Ajustes ===== */
.settings-list { display: flex; flex-direction: column; }
.settings-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--grid); flex-wrap: wrap; }
.settings-item:last-child { border-bottom: 0; }
.modal-body p.full, .modal-body .full { grid-column: 1 / -1; }

/* ===== Celular ===== */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar { padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); gap: 8px; }
  .brand span, .lbl-desk, #ccl-pill { display: none; }
  .topbar-right { gap: 4px; flex-wrap: nowrap; }
  .topbar .btn { padding: 8px 10px; min-height: 40px; }
  .user-pill { font-size: 11px; padding: 3px 8px; }
  .view { padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); }
  .page-head h1 { font-size: 20px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; min-height: 42px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 12px; }
  .kpi .value { font-size: 18px; }
  .card { padding: 14px; }
  .sidebar { position: sticky; top: 57px; z-index: 5; }
  .sidebar a { padding: 8px 12px; }

  /* Tablas -> tarjetas: cada fila es una tarjeta y cada celda muestra el nombre de su columna */
  .table-wrap { margin: 0; padding: 0; overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tfoot, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tbody tr, .table-wrap tfoot tr { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; background: var(--surface-1); }
  .table-wrap tfoot tr { background: var(--surface-2); }
  .table-wrap td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; white-space: normal; }
  .table-wrap td::before { content: attr(data-label); color: var(--text-muted); font-size: 12px; font-weight: 500; text-align: left; flex: none; }
  .table-wrap td:not([data-label])::before, .table-wrap td[data-label=""]::before { content: none; }
  .table-wrap td.ticker { font-size: 16px; border-bottom: 1px solid var(--grid); padding-bottom: 8px; margin-bottom: 4px; }
  .table-wrap td:empty { display: none; }
  .table-wrap td.empty { display: block; text-align: center; }
  .table-wrap td.empty::before { content: none; }
  .table-wrap td .btn.sm { padding: 8px 12px; font-size: 13px; }
  tbody tr:hover td { background: transparent; }

  .donut-wrap.big svg { width: 220px; height: 220px; }
  .legend .item .usd { display: none; }
  .settings-row { grid-template-columns: 1fr; }
  dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .modal-body { max-height: calc(100dvh - 160px); }
  .field input, .field select { min-height: 44px; font-size: 16px; } /* 16px evita el zoom automático en iPhone */
}

/* ===== Reglas (imágenes) ===== */
.reglas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.regla { margin: 0; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.regla-img { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.regla-img img { display: block; width: 100%; height: auto; transition: transform .2s; }
.regla-img:hover img { transform: scale(1.02); }
.regla figcaption { padding: 10px 14px; font-weight: 600; font-size: 13px; }
.reglas-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.regla.small { flex: 0 0 150px; box-shadow: none; }
.regla.small .regla-img img { height: 190px; object-fit: cover; object-position: top; }
.regla.small figcaption { padding: 6px 10px; font-size: 12px; font-weight: 500; }
dialog.wide { width: min(900px, calc(100vw - 16px)); }
.lightbox-body { padding: 12px; max-height: calc(100dvh - 90px); overflow: auto; background: #000; display: flex; justify-content: center; }
.lightbox-body img { max-width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .reglas-grid { grid-template-columns: 1fr; } }

/* ===== Calculadora de balas ===== */
.strat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 14px; }
.strat { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.strat-top { display: flex; flex-direction: column; gap: 2px; }
.strat-top b { font-size: 15px; }
.strat-cap { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.strat-cap input { padding: 6px 10px; border: 1px solid var(--border); background: var(--surface-1); border-radius: 8px; width: 100%; min-width: 0; }
.strat-cap .hint { grid-column: 1 / -1; font-size: 11px; color: var(--text-muted); }
.strat-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.strat-nums > div { display: flex; flex-direction: column; gap: 2px; }
.strat-nums b { font-variant-numeric: tabular-nums; font-size: 14px; }
.balas select { padding: 4px 8px; border: 1px solid var(--border); background: var(--surface-1); border-radius: 6px; }
.row-alert td { background: color-mix(in srgb, var(--neg) 8%, transparent); }
@media (max-width: 640px) { .strat-nums { grid-template-columns: 1fr 1fr; } }

/* Posiciones abiertas de futuros: tarjetas con el ROE en grande */
.pos-title { margin-bottom: 10px; }
.postiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.postile { display: flex; flex-direction: column; gap: 12px; }
.postile-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.postile-head .ticker { font-size: 16px; }
.postile-days { margin-left: auto; }
.postile .label { font-size: 12px; color: var(--text-muted); }
.postile-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.postile .roe { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.postile-money { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.postile-money > div { display: flex; flex-direction: column; }
.postile-money b { font-size: 17px; font-variant-numeric: tabular-nums; }
.postile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; padding-top: 10px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.postile-grid > div { display: flex; flex-direction: column; gap: 1px; }
@media (max-width: 640px) { .postiles { grid-template-columns: 1fr; } .postile-grid { grid-template-columns: 1fr 1fr; } }

/* Aviso de datos viejos de un exchange */
.stale { border-color: color-mix(in srgb, var(--neg) 45%, var(--border)); background: color-mix(in srgb, var(--neg) 7%, var(--surface-1)); }

/* Resultado ganando / perdiendo: etiqueta de % y recuadro grande */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums;
  background: var(--surface-2); color: var(--text-secondary); }
.badge.pos { background: color-mix(in srgb, var(--pos) 14%, transparent); color: var(--pos); }
.badge.neg { background: color-mix(in srgb, var(--neg) 14%, transparent); color: var(--neg); }
.result-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-left-width: 6px; }
.result-banner.pos { border-left-color: var(--pos); background: color-mix(in srgb, var(--pos) 7%, var(--surface-1)); }
.result-banner.neg { border-left-color: var(--neg); background: color-mix(in srgb, var(--neg) 7%, var(--surface-1)); }
.result-banner .label { font-size: 13px; font-weight: 600; }
.result-banner.pos .label { color: var(--pos); }
.result-banner.neg .label { color: var(--neg); }
.result-big { font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.result-banner.pos .result-big { color: var(--pos); }
.result-banner.neg .result-big { color: var(--neg); }
.result-pct { font-size: 20px; font-weight: 600; }
.result-side { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.result-side > div { display: flex; justify-content: space-between; gap: 16px; }
.result-side b { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .result-big { font-size: 26px; } .result-side { min-width: 0; width: 100%; } }
