/* Poker Live — feuille de style unique. Tout passe par les jetons de couleur ci-dessous. */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --page: #e6e4ef; --bg: #f4f3f9; --surface: #ffffff; --surface-2: #edecf5; --ink: #1c1a2e; --muted: #6b6880; --line: #e3e1ec;
  --accent: #5b45d6; --accent-ink: #ffffff; --accent-soft: #ebe8fb;
  --good: #148a5c; --bad: #cf3f34; --warn: #a86a12; --good-soft: #e2f4ea; --bad-soft: #fbe6e3; --warn-soft: #fbf0dc;
  --shadow: 0 1px 2px rgba(28, 26, 46, .06); --shadow-up: 0 -10px 40px rgba(28, 26, 46, .18);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;
  --r: 18px;
  --head: #5b45d6; --head-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #08070d; --bg: #0f0e17; --surface: #1b1927; --surface-2: #252336; --ink: #ecebf5; --muted: #9c99b0; --line: #2f2c42;
    --accent: #8577ea; --accent-ink: #0f0e17; --accent-soft: #2a2650;
    --good: #2fb277; --bad: #ef6358; --warn: #e3a64c; --good-soft: #16302a; --bad-soft: #3a211e; --warn-soft: #3a2e1a;
    --shadow: none; --shadow-up: 0 -10px 40px rgba(0, 0, 0, .5);
    --head: #2f2670; --head-ink: #ecebf5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #08070d; --bg: #0f0e17; --surface: #1b1927; --surface-2: #252336; --ink: #ecebf5; --muted: #9c99b0; --line: #2f2c42;
  --accent: #8577ea; --accent-ink: #0f0e17; --accent-soft: #2a2650;
  --good: #2fb277; --bad: #ef6358; --warn: #e3a64c; --good-soft: #16302a; --bad-soft: #3a211e; --warn-soft: #3a2e1a;
  --shadow: none; --shadow-up: 0 -10px 40px rgba(0, 0, 0, .5);
  --head: #2f2670; --head-ink: #ecebf5;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.35; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--good); } .neg { color: var(--bad); } .muted { color: var(--muted); }
small { font-size: .78em; font-weight: 600; }
.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.grow { flex: 1; min-width: 0; }
.boot { display: grid; place-items: center; height: 100dvh; color: var(--muted); font-weight: 600; }

/* ---------- ossature ---------- */
#app { height: 100%; }
.app { position: relative; display: flex; flex-direction: column; height: 100dvh; max-width: 560px; margin: 0 auto; background: var(--bg); overflow: hidden; padding-top: env(safe-area-inset-top); }
.views { position: relative; flex: 1; min-height: 0; }
.view { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 96px; background: var(--bg); }
.view.hidden { visibility: hidden; pointer-events: none; }
.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); background: var(--surface); padding: 6px 4px max(8px, env(safe-area-inset-bottom)); flex: none; }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 5px 0; border-radius: 12px; }
.tabbar button .ico { width: 24px; height: 24px; }
.tabbar button.on { color: var(--accent); }
.fab { position: absolute; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(91, 69, 214, .35); z-index: 3; }
.fab .ico { width: 26px; height: 26px; }
.banner { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--ink); padding: 9px 14px; font-size: 13px; font-weight: 600; flex: none; }
.banner button { margin-left: auto; font-weight: 800; color: var(--accent); }

/* ---------- en-têtes ---------- */
.hdr { padding: 18px 18px 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hdr .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hdr h1 { font-size: 26px; font-weight: 800; margin: 2px 0 0; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.nav h1 { font-size: 18px; font-weight: 800; margin: 0; flex: 1; text-align: center; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav h1 small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.nav .back { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 30px; font-weight: 500; line-height: 1; padding-bottom: 4px; }
.nav .back:active { background: var(--surface-2); }
.nav .spacer { width: 40px; flex: none; }
.nav.accent { background: var(--accent); color: var(--accent-ink); }
.nav.accent .back:active { background: rgba(255, 255, 255, .15); }
.sec { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; gap: 10px; }
.sec h2 { font-size: 15px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.link { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border-radius: var(--r); padding: 14px 16px; margin: 0 14px 12px; box-shadow: var(--shadow); }
.card h3 { font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--muted); }
.card.tap { cursor: pointer; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lbl { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hide-money .money { filter: blur(10px); }
.item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); min-height: 48px; }
.item:first-child { border-top: 0; }
.card > h3 + .item { border-top: 0; }
.item .t1 { font-weight: 700; font-size: 14px; }
.item .t1.danger { color: var(--bad); }
.item .t2 { font-size: 13px; color: var(--muted); margin-top: 2px; }
.item .val { font-weight: 800; font-size: 15px; white-space: nowrap; }
.item.tap { cursor: pointer; }
.item.tap:active { background: var(--surface-2); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.row-ico { color: var(--muted); }
.chev { color: var(--muted); width: 18px; height: 18px; }
.empty { text-align: center; padding: 14px 8px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ico { opacity: .6; }
.chart-empty { color: var(--muted); font-size: 13px; padding: 16px 0; text-align: center; }
.pill { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); letter-spacing: .03em; white-space: nowrap; }
.pill.live, .pill.settled { background: var(--good-soft); color: var(--good); }
.pill.pause, .pill.due { background: var(--warn-soft); color: var(--warn); }
.pill.open { background: var(--accent-soft); color: var(--accent); }
.tag { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 13px 14px; font-weight: 700; font-size: 15px; background: var(--surface-2); color: var(--ink); transition: transform .08s; min-height: 48px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn .ico { width: 19px; height: 19px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.small { padding: 8px 10px; font-size: 13px; min-height: 40px; border-radius: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.small .ico { width: 16px; height: 16px; }
.btn.wide { display: flex; width: 100%; }
.pad { padding: 0 14px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.icon:active { background: var(--surface-2); }
.icon.on { color: var(--accent); }
.icon .ico { width: 22px; height: 22px; }

/* ---------- sélecteurs ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: 14px; padding: 4px; margin: 0 14px 12px; }
.card .seg, .sheet .seg { margin: 0 0 12px; }
.seg button { border-radius: 11px; padding: 9px 6px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(28, 26, 46, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 14px; font-weight: 600; background: var(--surface); color: var(--ink); min-height: 38px; }
.chips button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll button { flex: none; }
.chips.mini { gap: 6px; }
.chips.mini button { padding: 5px 11px; font-size: 13px; border-color: transparent; background: var(--surface-2); min-height: 32px; }
.chips.mini button.on { background: var(--ink); color: var(--bg); }
.filterbar { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.filterbar::-webkit-scrollbar { display: none; }
.filterbar button { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; background: var(--surface); min-height: 36px; }
.filterbar button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------- formulaires ---------- */
.form .field, .field { display: block; padding: 11px 0; border-top: 1px solid var(--line); }
.form .field:first-child { border-top: 0; padding-top: 2px; }
.field .lbl { display: block; margin-bottom: 8px; }
.fhint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
input[type=number], input[type=text], input[type=date], input[type=time], input[type=datetime-local], input[type=search], textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--bg); font-size: 16px; font-weight: 600; min-height: 46px;
}
textarea { font-weight: 500; min-height: 76px; resize: vertical; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--muted); font-weight: 500; opacity: .8; }
.amt { position: relative; }
.amt input { padding-right: 56px; font-family: var(--mono); font-weight: 600; }
.amt span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--muted); pointer-events: none; }
.inline2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); }
.form .inline2:first-child, .sheet-body .inline2 { border-top: 0; }
.inline2 > .field, .form .inline2 > .field { border-top: 0; padding-top: 11px; }
.switch { position: relative; display: inline-block; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- accueil ---------- */
.bankroll .big { margin: 6px 0 2px; }
.bankroll .split { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.bankroll .split b { font-weight: 800; }
.livecard { border: 2px solid var(--accent-soft); cursor: pointer; }
.livecard .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.livecard .top b { font-size: 17px; }
.livecard .mid { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 4px; }
.livecard .eng { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.livecard .eng small { color: var(--muted); margin-left: 6px; letter-spacing: 0; font-size: 13px; }
.livecard .chrono { font-size: 18px; font-weight: 600; }
.livecard .three { margin-top: 12px; }
.livecard .three .btn { padding: 10px 4px; font-size: 14px; }
.presets { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.preset { flex: none; text-align: left; background: var(--surface); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.preset b { display: block; font-size: 14px; }
.preset span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- session live ---------- */
.lhead { background: var(--head); color: var(--head-ink); padding: 0 12px 48px; border-radius: 0 0 26px 26px; }
.lhead .nav { background: transparent; position: static; padding: 8px 0 2px; }
.lhead .pill { background: rgba(255, 255, 255, .18); color: var(--head-ink); }
.lhead .ltitle { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; text-align: center; }
.lhead .ltitle .ico { width: 18px; height: 18px; opacity: .85; }
.lhead .lsub { text-align: center; opacity: .85; font-size: 14px; margin-top: 2px; }
.hero { margin-top: -38px; text-align: center; padding: 14px 16px; }
.hero .big { font-size: 38px; margin: 2px 0; }
.hero .chrono { font-size: 21px; font-weight: 600; }
.hero .prov { font-size: 14px; margin-top: 6px; color: var(--muted); }
.hero .prov b { font-size: 16px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px 14px 12px; }
.actions .btn { padding: 15px 8px; }
.subtabs { display: flex; gap: 4px; padding: 4px; margin: 0 14px 12px; background: var(--surface-2); border-radius: 14px; }
.subtabs button { flex: 1; padding: 9px 2px; border-radius: 11px; font-weight: 700; font-size: 13px; color: var(--muted); }
.subtabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(28, 26, 46, .12); }
.timeline .item { padding: 9px 0; min-height: 44px; }
.timeline .when { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 44px; flex: none; }
.timeline .what { flex: 1; font-weight: 600; font-size: 14px; min-width: 0; }
.timeline .what small { display: block; color: var(--muted); font-weight: 500; }
.note { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; white-space: pre-wrap; }
.note:first-child { border-top: 0; }
.note .when { font-size: 12px; color: var(--muted); margin-bottom: 2px; font-weight: 600; }

/* ---------- détail ---------- */
.result { text-align: center; padding: 18px 16px; }
.result .big { font-size: 40px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; margin-top: 12px; }
.kpis div { background: var(--surface); padding: 10px 8px; text-align: center; }
.kpis b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 11px; color: var(--muted); font-weight: 700; }

/* ---------- stats ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 12px; }
.tile { background: var(--surface); border-radius: var(--r); padding: 13px 15px; box-shadow: var(--shadow); min-width: 0; }
.tile .lbl { display: block; margin-bottom: 6px; }
.tile .v { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.tile .v small { color: var(--muted); letter-spacing: 0; }
.tile.hero-tile { grid-column: 1 / -1; }
.tile.hero-tile .v { font-size: 34px; }
.tile.tap { cursor: pointer; }
.hbars .hb { padding: 9px 0; border-top: 1px solid var(--line); }
.hbars .hb:first-child { border-top: 0; }
.hbars .hb.tap { cursor: pointer; }
.hb .row { margin-bottom: 2px; align-items: baseline; }
.hb .k { font-weight: 700; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb .n { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.hb .bar { height: 8px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.hb .bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.hb .bar i.pos { background: var(--good); } .hb .bar i.neg { background: var(--bad); } .hb .bar i.zero { background: var(--muted); }
.chartwrap { position: relative; }
.chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.chart .tick { fill: var(--muted); font-size: 10px; font-family: var(--font); font-weight: 600; }
.chart .tick.end { text-anchor: end; } .chart .tick.mid { text-anchor: middle; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--accent); opacity: .12; }
.chart .dot, .chart .hov { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.chart rect.pos { fill: var(--good); } .chart rect.neg { fill: var(--bad); }
.chart rect.hit { fill: transparent; }
.chart .vl { font-size: 9.5px; font-weight: 700; fill: var(--ink); text-anchor: middle; font-family: var(--font); }
.tip { position: absolute; top: 2px; left: 4px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; transform: translateX(-10%); }

/* ---------- calendrier ---------- */
.monthnav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.monthnav b { font-size: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding-bottom: 4px; }
.cal .d { aspect-ratio: 1 / 1; border-radius: 9px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; line-height: 1.1; min-width: 0; }
.cal .d small { font-size: 9.5px; font-weight: 800; }
.cal .d.pos { background: var(--good-soft); color: var(--good); }
.cal .d.neg { background: var(--bad-soft); color: var(--bad); }
.cal .d.blank { background: transparent; }
.cal .d.sel { outline: 2px solid var(--accent); }
.cal .d.today { box-shadow: inset 0 0 0 1px var(--muted); }
.monthhead { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px 6px; gap: 8px; }
.monthhead b { font-size: 15px; }
.monthhead span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- feuille du bas, toast ---------- */
.scrim { position: absolute; inset: 0; background: rgba(15, 14, 23, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 12px 18px max(22px, env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .24s ease-out; z-index: 11; box-shadow: var(--shadow-up); }
.sheet.on { transform: none; }
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.sheet-body h2 { font-size: 19px; font-weight: 800; margin: 0 0 3px; letter-spacing: -.01em; }
.sheet-body .hint { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.sheet-body .amt input { font-size: 26px; padding: 13px 60px 13px 14px; min-height: 60px; }
.sheet-body .chips { margin: 12px 0; }
.sheet-body > .btn.wide { margin-top: 10px; }
.sheet-body .prev { font-size: 14px; margin: 6px 0 2px; text-align: center; min-height: 20px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 4px; }
.opt { background: var(--surface-2); border-radius: 16px; padding: 18px 10px; text-align: center; font-weight: 700; font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.opt .ico { width: 30px; height: 30px; color: var(--accent); }
.opt small { font-weight: 500; color: var(--muted); font-size: 12px; }
.pick .item { cursor: pointer; }
.toast { position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; transition: .25s; z-index: 12; pointer-events: none; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 28px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: var(--accent-soft); font-weight: 800; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .sheet, .scrim, .toast, .btn, .switch span, .switch span::after { transition: none; } }
@media (min-width: 561px) { .app { box-shadow: 0 0 0 1px var(--line); } }
.flip .ico { transform: rotate(180deg); }
label.btn { cursor: pointer; }
.ltitle { color: inherit; }
