/* N ka Jago — colonne d'app de 560px, en-tête collant, barre d'onglets en bas */
:root {
  --bg: #F1F4F2;
  --surface: #FFFFFF;
  --surface-2: #F7F9F8;
  --ink: #13201A;
  --muted: #5A6A62;
  --line: #DAE2DE;
  --accent: #0B6E4F;
  --accent-ink: #FFFFFF;
  --accent-soft: #DDEFE7;
  --ochre: #B5741A;
  --ochre-soft: #F9EDD8;
  --bad: #B42318;
  --bad-soft: #FBE7E4;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1311; --surface: #151D1A; --surface-2: #1A2420; --ink: #E5EDE9; --muted: #93A39B; --line: #26322D;
    --accent: #3CBC8A; --accent-ink: #052419; --accent-soft: #15322A;
    --ochre: #E2A447; --ochre-soft: #33260F; --bad: #F07A6E; --bad-soft: #3A1B18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1311; --surface: #151D1A; --surface-2: #1A2420; --ink: #E5EDE9; --muted: #93A39B; --line: #26322D;
  --accent: #3CBC8A; --accent-ink: #052419; --accent-soft: #15322A;
  --ochre: #E2A447; --ochre-soft: #33260F; --bad: #F07A6E; --bad-soft: #3A1B18;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 560px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap.wide { max-width: 760px; }
.pad { padding-block: 32px 40px; }

/* Typo */
.brand-lg { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em; margin: 0; }
.h1 { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; margin: 0 0 8px; text-wrap: balance; letter-spacing: -0.01em; }
.h2 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; margin: 0; }
.h3 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }
.num, .t-value, .hc-value, .amt, .sum-line, .bar-val { font-variant-numeric: tabular-nums; }

/* Écrans */
.screen { min-height: 100vh; min-height: 100dvh; }
.center { display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding-inline: var(--gutter-l) var(--gutter-r); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo-banner { background: var(--ochre-soft); color: var(--ink); font-size: 0.82rem; text-align: center; padding: 8px var(--gutter-r) 8px var(--gutter-l); border-bottom: 1px solid var(--line); }
.demo-banner b { color: var(--ochre); }

/* Connexion */
.login { display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; padding: 48px var(--gutter-r) 32px var(--gutter-l); gap: 28px; }
.logo-mark { width: 64px; height: 64px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin-bottom: 20px; }
.tagline { font-size: 1.15rem; color: var(--muted); margin: 10px 0 0; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feature-list strong { font-weight: 600; }
.feature-list span { color: var(--muted); }
@media (max-width: 380px) { .feature-list li { grid-template-columns: 1fr; gap: 0; } }
.fine { font-size: 0.85rem; color: var(--muted); text-align: center; margin: -12px 0 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none; width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:active { filter: brightness(0.94); }
.btn-google { font-size: 1rem; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-danger { color: var(--bad); background: transparent; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-btn { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 6px 0; }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.btn-sm.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-sm.del { color: var(--bad); border-color: transparent; background: transparent; }
.btn-sm.armed { background: var(--bad); color: #fff; border-color: var(--bad); }

/* Formulaires */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.9rem; }
.field small { color: var(--muted); font-size: 0.8rem; }
input, select {
  width: 100%; min-height: 48px; padding: 0 14px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2);
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly] { color: var(--muted); }
.prefix { display: flex; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); overflow: hidden; }
.prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prefix span { display: grid; place-items: center; padding: 0 12px; color: var(--muted); border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.prefix input { border: 0; border-radius: 0; box-shadow: none !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { margin: 0; color: var(--bad); background: var(--bad-soft); padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 0.9rem; background: var(--surface-2); }
.seg input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.total-line strong { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }

/* App */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
body.in-app::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.tb-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.logo-sm { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 0.9rem; flex: none; }
.tb-shop { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-sub { font-size: 0.78rem; color: var(--muted); }
.net { font-size: 0.75rem; font-weight: 700; color: var(--ochre); background: var(--ochre-soft); padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; flex: none; }
.avatar-btn[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }

.main { padding-block: 20px calc(96px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; }
.pane { display: grid; gap: 16px; min-width: 0; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; }
.card-head .h3 { margin: 0; }

.hero-card { background: var(--accent); color: var(--accent-ink); border-radius: var(--r); padding: 20px; display: grid; gap: 4px; }
.hc-label { font-size: 0.85rem; font-weight: 600; opacity: 0.85; }
.hc-value { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.hc-value.neg { color: inherit; }
.hc-formula { font-size: 0.82rem; opacity: 0.85; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 2px; min-width: 0; }
.t-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.t-value { font-family: var(--display); font-weight: 700; font-size: 1.3rem; overflow-wrap: anywhere; }
.t-sub { font-size: 0.78rem; color: var(--muted); }

.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 150px; }
.bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 4px; text-align: center; min-width: 0; }
.bar-val { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.bar-track { display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.bar-fill { width: 100%; background: var(--accent-soft); border-radius: 6px 6px 0 0; min-height: 0; }
.bar.today .bar-fill { background: var(--accent); }
.bar.today .bar-val { color: var(--ink); font-weight: 700; }
.bar-day { font-size: 0.72rem; color: var(--muted); text-transform: capitalize; }

.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 6px 0; }
.hbar-track { grid-column: 1 / -1; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.list { display: grid; gap: 8px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.sum-line { color: var(--muted); font-size: 0.88rem; }
.sum-line strong { color: var(--ink); }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: start; min-width: 0; }
.item-main { min-width: 0; }
.item-title { font-weight: 600; overflow-wrap: anywhere; }
.item-sub { font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.item-right { text-align: right; display: grid; gap: 4px; justify-items: end; }
.item-right strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.item-actions .spacer { flex: 1; }
.item.flat { border: 0; padding: 10px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
.item.flat:last-child { border-bottom: 0; }

.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: var(--ochre-soft); color: var(--ochre); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

.progress { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); }
.pay-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto; gap: 6px; }
.pay-row input { min-height: 40px; }

details.add-box { padding: 0; }
details.add-box > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 8px; }
details.add-box > summary::-webkit-details-marker { display: none; }
details.add-box > summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); font-size: 1.1rem; line-height: 1; }
details.add-box[open] > summary::before { content: "−"; }
details.add-box > .form { padding: 0 16px 16px; }

.search { min-height: 44px; }
.empty { color: var(--muted); text-align: center; padding: 20px 12px; margin: 0; font-size: 0.92rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 0.88rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; text-align: right; }
code.uid { display: block; font-size: 0.8rem; overflow-wrap: anywhere; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; margin: 8px 0; }
.stack { display: grid; gap: 10px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line); padding: 6px var(--gutter-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.tabbar-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.tabbar button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 0.7rem; font-weight: 600; cursor: pointer; border-radius: 10px; }
.tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[aria-current="page"] { color: var(--accent); }
.tabbar button[aria-current="page"] svg { stroke-width: 2.2; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 20; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 0.9rem; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.toast.err { background: var(--bad); color: #fff; }

/* Admin */
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.tiles-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 620px) { .tiles-4 { grid-template-columns: 1fr 1fr; } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }
.contact { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.85rem; margin: 4px 0; }
.contact a { color: var(--accent); font-weight: 600; text-decoration: none; }
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

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

/* ---------- Factures ---------- */
.item-btn { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.item-btn:active { background: var(--surface-2); }
.fc-line { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.fc-line select, .fc-line input { background: var(--surface); }
.fc-nums { display: grid; grid-template-columns: 4.5rem auto minmax(0, 1fr); align-items: center; gap: 8px; }
.fc-nums input { min-height: 44px; }
.fc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; }

/* La facture garde un aspect papier blanc dans les deux thèmes */
.inv { position: relative; background: #FFFFFF; color: #13201A; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 20px 20px; display: grid; gap: 18px; overflow: hidden; font-variant-numeric: tabular-nums; }
.inv::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: #0B6E4F; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inv-shop { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; overflow-wrap: anywhere; }
.inv-meta { font-size: 0.8rem; color: #5A6A62; line-height: 1.5; }
.inv-title { text-align: right; margin-left: auto; }
.inv-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; color: #0B6E4F; }
.inv-num { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.inv-client { display: grid; gap: 2px; padding: 12px 14px; background: #F1F4F2; border-radius: 10px; }
.inv-k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5A6A62; }
.inv-scroll { overflow-x: auto; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.inv-table th { text-align: left; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #5A6A62; font-weight: 700; padding: 8px 6px; border-bottom: 2px solid #13201A; }
.inv-table td { padding: 10px 6px; border-bottom: 1px solid #DAE2DE; vertical-align: top; }
.inv-table .r { text-align: right; white-space: nowrap; }
.inv-totals { display: grid; gap: 6px; justify-self: end; width: min(100%, 280px); }
.inv-totals div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.88rem; }
.inv-totals .grand { font-weight: 800; border-top: 2px solid #13201A; padding-top: 8px; align-items: baseline; }
.inv-totals .grand strong { color: #0B6E4F; font-family: var(--display); font-size: 1.35rem; }
.inv-totals .due { color: #B42318; font-weight: 700; }
.inv-words { margin: 0; font-size: 0.84rem; font-style: italic; }
.inv-note { margin: 0; color: #5A6A62; font-size: 0.86rem; }
.inv-foot { border-top: 1px dashed #DAE2DE; padding-top: 12px; font-size: 0.75rem; color: #5A6A62; text-align: center; }
.inv-stamp { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%) rotate(-16deg); border: 4px solid #B42318; color: #B42318; font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: 0.06em; padding: 2px 18px; border-radius: 8px; opacity: 0.85; pointer-events: none; }

@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; }
  body * { visibility: hidden; }
  #invoice, #invoice * { visibility: visible; }
  #invoice { position: absolute; left: 0; top: 0; width: 100%; }
  .inv { border: 0; padding: 0; }
  .topbar, .tabbar, .demo-banner, .toast, .no-print { display: none !important; }
}

/* ---------- Rappels ---------- */
.push-card { display: grid; gap: 10px; border-color: var(--accent); }
.push-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.nudge { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--ochre-soft); border: 1px solid var(--line); }
.nudge p { margin: 0; font-size: 0.92rem; }
.nudge .link-btn { justify-self: start; padding: 2px 0; }
.nudge.tip { background: var(--accent-soft); }
.nudge.alert { background: var(--bad-soft); }
.nudge-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* maj-9 : catégories et modification de produit */
.item-cat { display: inline-block; margin: 2px 0 3px; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 0.74rem; font-weight: 700; }
.cat-chips { flex-wrap: nowrap; overflow-x: auto; margin: 10px 0 2px; padding-bottom: 4px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips button { flex: 0 0 auto; }
.opt { font-weight: 500; color: var(--muted); }

/* maj-10 : premiers pas, fenêtre des rappels */
.start-card { display: grid; gap: 8px; border-color: var(--accent); }
.start-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.start-lead { margin: 0; color: var(--muted); font-size: 0.9rem; }
.start-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.start-list li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.start-list li.next { border-color: var(--accent); background: var(--accent-soft); }
.start-list li.done { opacity: 0.6; }
.start-list li.done b { text-decoration: line-through; }
.start-dot { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.start-list li.next .start-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.start-list li.done .start-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.start-txt { flex: 1; min-width: 0; display: grid; }
.start-txt small { color: var(--muted); font-size: 0.8rem; }
.start-hide { justify-self: end; font-size: 0.82rem; }
.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.sheet-back[hidden] { display: none; }
.sheet { width: 100%; max-width: 440px; display: grid; gap: 10px; text-align: center; padding: 22px 18px 16px; border-radius: 20px; animation: sheet-up 0.25s ease-out; }
.sheet p { margin: 0; color: var(--muted); }
.sheet-ico { font-size: 2.2rem; }
@keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-title { font-size: 1.25rem; font-weight: 800; }
