/* Leon's management app — direction B "דיו ונייר" (paper, ink, one vermilion signal, sharp corners) with direction C density
   (tight rows, tabular numbers, 25-block meter). No shadows, no floating cards: everything sits on the paper, separated by rules.
   A 6px ink rule opens a section, 1px ink closes a table, hairlines between rows. Targets >= 44px. Heebo + Assistant only. */
:root {
  --paper: #F4F1EA; --surface: #FBF9F4; --ink: #0B0B0A; --ink-2: #383733; --muted: #6F6C64; --rule: #0B0B0A; --hair: #D6D1C4;
  --signal: #D33A1C; --on-ink: #F4F1EA; --ph: #FFF0B8; --ph-ink: #594600;
  --f-d: "Heebo", system-ui, sans-serif; --f-b: "Assistant", system-ui, sans-serif;
  --nav-h: 62px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0F0E0C; --surface: #171613; --ink: #F2EEE5; --ink-2: #CBC6BA; --muted: #948F84; --rule: #F2EEE5; --hair: #2E2C27; --signal: #FF6B48; --on-ink: #0F0E0C; --ph: #3A3210; --ph-ink: #F2E3A0; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0F0E0C; --surface: #171613; --ink: #F2EEE5; --ink-2: #CBC6BA; --muted: #948F84; --rule: #F2EEE5; --hair: #2E2C27; --signal: #FF6B48; --on-ink: #0F0E0C; --ph: #3A3210; --ph-ink: #F2E3A0; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.55 var(--f-b); overflow-x: clip; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font: 900 44px/.88 var(--f-d); letter-spacing: -.04em; }
h2 { font: 800 22px/1.1 var(--f-d); letter-spacing: -.02em; }
h3 { font: 700 18px/1.25 var(--f-d); }
h4 { font: 700 16px/1.3 var(--f-d); }
p + p { margin-top: .6em; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--muted); } .small { font-size: 14.5px; } .tiny { font-size: 13px; }
.eyebrow { font: 700 13px/1.2 var(--f-d); letter-spacing: .04em; color: var(--muted); }
.ph { background: var(--ph); color: var(--ph-ink); font-weight: 600; padding: 0 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- frame ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1040px; margin: 0 auto; height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 8px; font: 800 17px var(--f-d); letter-spacing: -.01em; text-decoration: none; margin-inline-end: auto; }
.brand small { font: 600 12px var(--f-b); color: var(--muted); letter-spacing: 0; }
.view { max-width: 1040px; margin: 0 auto; padding: 16px 20px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); min-height: 70vh; }
.nav { position: fixed; z-index: 40; inset-inline: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.nav a { height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--muted); font: 700 11.5px var(--f-b); position: relative; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; width: 18px; height: 3px; background: var(--signal); position: absolute; bottom: 6px; }
.nav .dot { position: absolute; top: 7px; inset-inline-start: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; background: var(--signal); color: #fff; font: 800 11px/17px var(--f-d); text-align: center; }
@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  .nav { position: static; display: flex; border: 0; background: none; padding: 0; }
  .nav a { height: 48px; flex-direction: row; padding: 0 12px; font-size: 15px; gap: 7px; }
  .nav svg { width: 17px; height: 17px; }
  .nav a[aria-current="page"]::after { bottom: 0; inset-inline: 12px; width: auto; }
  .nav .dot { position: static; }
}

/* masthead: big word + date, closed by a 6px rule */
.mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 6px solid var(--rule); padding: 6px 0 12px; margin-bottom: 16px; }
.mast .d { text-align: left; font: 600 13px/1.35 var(--f-b); color: var(--muted); white-space: nowrap; }
.mast .d b { display: block; font: 900 28px/1 var(--f-d); color: var(--ink); font-variant-numeric: tabular-nums; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
/* section heads */
.sh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 6px solid var(--rule); padding: 12px 0 8px; margin-top: 28px; }
.sh:first-child { margin-top: 0; }
.sh small { font: 700 13px var(--f-d); color: var(--muted); white-space: nowrap; }
.sh .big { font: 900 22px var(--f-d); color: var(--signal); }
.box { background: var(--surface); border: 1px solid var(--hair); padding: 14px 16px; }
.empty { padding: 22px 0; color: var(--muted); border-top: 1px solid var(--hair); }
.empty b { display: block; color: var(--ink); font: 800 18px/1.3 var(--f-d); margin-bottom: 2px; }
.loading { padding: 40px 0; color: var(--muted); }
.skel { height: 96px; background: linear-gradient(90deg, var(--surface) 30%, var(--hair) 50%, var(--surface) 70%); background-size: 300% 100%; animation: sk 1.2s linear infinite; margin-bottom: 10px; }
@keyframes sk { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; border: 1px solid var(--rule); background: var(--ink); color: var(--on-ink); font: 800 16px var(--f-d); text-decoration: none; cursor: pointer; white-space: nowrap; border-radius: 0; }
.btn .ar { color: var(--signal); font-size: 20px; line-height: 1; }
.btn.line { background: transparent; color: var(--ink); }
.btn.block { width: 100%; }
.btn.sm { min-height: 44px; font-size: 15px; padding: 0 14px; justify-content: center; }
.btn:disabled { opacity: .45; cursor: default; }
.linkbtn { background: none; border: 0; padding: 10px 2px; min-height: 44px; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* the 3-cell action strip from the mockup: copy | open WhatsApp | sent */
.acts { display: grid; grid-template-columns: 1fr 1.6fr 1fr; border: 1px solid var(--rule); margin-top: 10px; }
.acts > * { min-height: 46px; display: flex; align-items: center; justify-content: center; font: 700 14.5px var(--f-b); background: transparent; border: 0; color: var(--ink); text-decoration: none; cursor: pointer; padding: 0 4px; white-space: nowrap; }
.acts > * + * { border-inline-start: 1px solid var(--rule); }
.acts .p { background: var(--ink); color: var(--on-ink); }
.acts.four { grid-template-columns: 1fr 1.6fr 1fr 1fr; }
.acts button:disabled { color: var(--muted); cursor: default; }
.under { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.input { width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-bottom: 2px solid var(--rule); background: var(--surface); font-size: 16px; border-radius: 0; }
textarea.input { min-height: 84px; resize: vertical; line-height: 1.45; }
select.input { appearance: none; padding-inline-end: 32px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: left 16px center, left 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus { outline: none; border-bottom-color: var(--signal); }
.field { margin-top: 12px; }
.lbl { display: block; font: 700 14px var(--f-d); margin-bottom: 4px; }
.grid2 { display: grid; gap: 10px; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.form-err { color: var(--signal); font-weight: 700; margin: 8px 0 0; } .form-err:empty { display: none; }
.ok-msg { border-inline-start: 3px solid var(--ink); padding: 6px 10px; font-weight: 700; margin-top: 8px; overflow-wrap: anywhere; } .ok-msg:empty { display: none; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; cursor: pointer; font-weight: 700; }
.switch input { appearance: none; width: 50px; height: 28px; background: var(--hair); position: relative; flex: none; cursor: pointer; margin: 0; border: 1px solid var(--rule); }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; background: var(--ink); transition: right .15s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { right: 25px; background: var(--signal); }

/* ---------- today: the community post ---------- */
.post { border-top: 6px solid var(--rule); padding-top: 12px; }
.post-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.post-h h2 { font-size: 21px; }
.post-h .when { font: 900 22px/1 var(--f-d); color: var(--signal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.post .lab { font: 600 13.5px/1.4 var(--f-b); color: var(--muted); margin-top: 4px; }
.post-t { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--hair); border-inline-start: 2px solid var(--signal); padding: 12px 14px; margin-top: 10px; font: 400 16px/1.55 var(--f-b); max-height: 15em; overflow: hidden; position: relative; }
.post-t.open { max-height: none; }
.post-t:not(.open)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, var(--surface)); }
.more { display: block; width: 100%; min-height: 40px; background: none; border: 0; border-bottom: 1px solid var(--hair); font: 700 14px var(--f-b); color: var(--ink-2); cursor: pointer; }
.gapwarn { margin-top: 8px; font: 600 14px/1.4 var(--f-b); color: var(--ph-ink); background: var(--ph); padding: 6px 10px; }
.sentline { margin-top: 10px; font: 700 15px var(--f-d); display: flex; align-items: center; gap: 8px; }
.sentline::before { content: ""; width: 10px; height: 10px; background: var(--signal); }
.streak { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border-bottom: 1px solid var(--hair); padding: 12px 0; }
.streak .big { font: 900 44px/.85 var(--f-d); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.days10 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; direction: ltr; }
.days10 i { height: 22px; background: var(--hair); display: block; }
.days10 i.on { background: var(--ink); }
.days10 i.today { outline: 2px solid var(--signal); outline-offset: -2px; }
.next { border-bottom: 1px solid var(--hair); }
.next summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next summary::-webkit-details-marker { display: none; }
.next summary b { font: 700 16px var(--f-d); }
.next summary::after { content: "+"; font: 400 24px/1 var(--f-d); color: var(--muted); }
.next[open] summary::after { content: "−"; }
.next .post-t { max-height: none; margin: 0 0 12px; }
.next .post-t::after { display: none; }

/* ---------- people (density of C, look of B) ---------- */
.q { padding: 12px 0 14px; border-top: 1px solid var(--hair); }
.q:first-of-type { border-top: 0; }
.q.late { box-shadow: inset -3px 0 0 var(--signal); padding-inline-start: 10px; }
[dir="rtl"] .q.late { box-shadow: inset -3px 0 0 var(--signal); }
.q .h { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; }
.q .nm { font: 800 19px/1.2 var(--f-d); letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.q .day { font: 900 15px var(--f-d); color: var(--signal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q .st { grid-column: 1 / -1; font: 400 14.5px/1.4 var(--f-b); color: var(--muted); }
.q .st b { color: var(--ink-2); font-weight: 700; }
.q .late-t { color: var(--signal); font-weight: 700; }
.msg { margin: 10px 0 0; font: 400 16px/1.5 var(--f-b); padding-inline-start: 14px; position: relative; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg::before { content: "״"; position: absolute; inset-inline-start: -4px; top: -10px; font: 900 32px var(--f-d); color: var(--signal); }
.msg-t { font: 700 13px var(--f-d); color: var(--muted); margin-top: 10px; }
.hint { font-size: 14px; color: var(--ink-2); border-inline-start: 2px solid var(--hair); padding: 2px 10px; margin-top: 8px; }
details.note summary { list-style: none; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; font: 700 14px var(--f-b); color: var(--muted); }
details.note summary::-webkit-details-marker { display: none; }
details.note summary::before { content: "+"; margin-inline-end: 6px; font-weight: 800; }
details.note[open] summary::before { content: "−"; }
.q.done { opacity: .4; }
.calls { border-bottom: 1px solid var(--rule); }
.call { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hair); text-decoration: none; }
.call time { font: 900 22px/1 var(--f-d); font-variant-numeric: tabular-nums; }
.call b { display: block; font: 700 16px var(--f-d); }
.call small { color: var(--muted); }
.banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--rule); padding: 8px 8px 8px 0; padding-inline-start: 12px; margin-bottom: 16px; }
.banner p { margin: 0; font-weight: 600; font-size: 15px; }
.banner .x { min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }

/* 25-block meter (C) */
.meter-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; border-bottom: 1px solid var(--rule); padding: 4px 0 12px; text-decoration: none; }
.meter-row .big { font: 900 44px/.85 var(--f-d); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.meter-row .big small { font: 700 20px var(--f-d); color: var(--muted); letter-spacing: 0; }
.meter-row b { font: 700 16px var(--f-d); display: block; }
.meter-row p { font: 13.5px/1.35 var(--f-b); color: var(--muted); margin-top: 6px; }
.meter { display: grid; grid-template-columns: repeat(25, 1fr); gap: 2px; margin-top: 7px; }
.meter i { height: 8px; background: var(--hair); display: block; }
.meter i.on { background: var(--signal); }

/* ---------- lists ---------- */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 8px; }
.filters .wide { grid-column: 1 / -1; }
@media (min-width: 700px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr; } .filters .wide { grid-column: auto; } }
.list { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.list > a, .list > div { display: block; padding: 10px 0; text-decoration: none; min-height: 52px; }
.list > * + * { border-top: 1px solid var(--hair); }
.list .l1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.list .l1 b { font: 700 16.5px var(--f-d); overflow-wrap: anywhere; }
.list .l1 .day { font: 900 14px var(--f-d); color: var(--signal); white-space: nowrap; }
.list .l2 { color: var(--muted); font-size: 14px; }
.count { color: var(--muted); font: 700 13px var(--f-d); margin: 4px 0 6px; }
.tag { display: inline-block; font: 700 12px/1 var(--f-b); padding: 3px 5px; border: 1px solid var(--rule); vertical-align: 2px; white-space: nowrap; }
.tag.s { background: var(--signal); border-color: var(--signal); color: #fff; }
.tag.ph { border-color: transparent; }

/* ---------- person ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; margin: 0; font-size: 15px; border-top: 1px solid var(--rule); }
.kv dt, .kv dd { padding: 7px 0; border-bottom: 1px solid var(--hair); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair); }
.tl time { font: 700 13px/1.3 var(--f-d); color: var(--muted); font-variant-numeric: tabular-nums; }
.tl p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl li.touch p::before, .tl li.stage p::before, .tl li.call p::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--ink); margin-inline-end: 7px; vertical-align: 2px; }
.tl li.touch p::before { background: var(--signal); }

/* ---------- plan ---------- */
.two { display: grid; gap: 0 28px; }
@media (min-width: 900px) { .two { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.flow { list-style: none; margin: 0; padding: 0; }
.fz { font: 700 12.5px/1 var(--f-d); letter-spacing: .04em; color: var(--muted); padding: 14px 0 6px; }
.fn { display: grid; grid-template-columns: 26px 1fr auto; gap: 0 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--hair); }
.fn .i { font: 900 15px var(--f-d); color: var(--muted); font-variant-numeric: tabular-nums; }
.fn b { font: 700 16px var(--f-d); }
.fn small { grid-column: 2; color: var(--muted); font-size: 13.5px; }
.fn .v { grid-row: 1 / span 2; grid-column: 3; font: 900 26px/1 var(--f-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: end; align-self: center; }
.fn .v.na { color: var(--hair); }
.fn .v.sig { color: var(--signal); }
.fc { padding: 0 0 4px 0; padding-inline-start: 36px; font: 700 12.5px var(--f-d); color: var(--muted); position: relative; }
.fc::before { content: "↓"; position: absolute; inset-inline-start: 6px; color: var(--ink); }
.tline { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tline > div { padding: 8px 10px 10px; min-width: 0; }
.tline > div:nth-child(even) { border-inline-start: 1px solid var(--hair); }
.tline > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
@media (min-width: 700px) {
  .tline { grid-template-columns: 2fr 4fr 1.4fr 2.4fr; }
  .tline > div + div { border-inline-start: 1px solid var(--hair); }
  .tline > div:nth-child(n+3) { border-top: 0; }
}
.tline b { display: block; font: 700 14.5px var(--f-d); }
.tline small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tline .launch { background: var(--ink); color: var(--on-ink); }
.tline .launch small { color: var(--on-ink); opacity: .7; }
.cycle { margin: 10px 0 0; padding-inline-start: 18px; font-size: 15px; }
.ladder { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.ladder li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0; border-top: 1px solid var(--hair); }
.ladder .bar { grid-column: 1 / -1; height: 4px; background: var(--hair); margin-top: 4px; }
.ladder .bar i { display: block; height: 100%; background: var(--ink); }
.ladder li.core .bar i { background: var(--signal); }
.ladder b { font: 700 16px var(--f-d); }
.ladder .price { font: 900 18px/1.2 var(--f-d); font-variant-numeric: tabular-nums; text-align: end; }
.ladder li.core .price { color: var(--signal); }
.ladder small { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
.blockers { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.blockers li { counter-increment: b; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--hair); align-items: baseline; }
.blockers li::before { content: counter(b); font: 900 22px/1 var(--f-d); }
.blockers a { font: 700 16px var(--f-d); }

/* ---------- workspace ---------- */
.days { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .days { grid-template-columns: repeat(4, 1fr); } }
.days a { display: block; text-decoration: none; padding: 10px 10px 10px 0; }
.days a:nth-child(even) { padding-inline-start: 10px; border-inline-start: 1px solid var(--hair); }
.days a:nth-child(n+3) { border-top: 1px solid var(--hair); }
@media (min-width: 700px) { .days a { padding-inline-start: 10px; } .days a + a { border-inline-start: 1px solid var(--hair); } .days a:nth-child(n+3) { border-top: 0; } .days a:first-child { padding-inline-start: 0; } }
.days b { display: block; font: 700 14.5px var(--f-d); }
.days span { font: 900 24px/1.1 var(--f-d); font-variant-numeric: tabular-nums; }
.days span small { font: 700 14px var(--f-d); color: var(--muted); }
.days a.all span { color: var(--signal); }
.subnav { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; margin: 14px -20px 0; padding: 0 20px; border-bottom: 1px solid var(--rule); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; text-decoration: none; font: 700 14.5px var(--f-b); color: var(--muted); position: relative; }
.subnav a[aria-current="page"] { color: var(--ink); }
.subnav a[aria-current="page"]::after { content: ""; position: absolute; bottom: -1px; inset-inline: 12px; height: 3px; background: var(--signal); }
.task { border-top: 1px solid var(--hair); padding: 12px 0 14px; }
.task.is-done .item-h b { color: var(--muted); }
.item-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item-h b { font: 800 17px/1.3 var(--f-d); overflow-wrap: anywhere; }
.st-l { flex: none; font: 700 12.5px var(--f-d); color: var(--muted); white-space: nowrap; }
.st-l.doing { color: var(--ink); }
.st-l.done { color: var(--signal); }
details.sec { border-top: 1px solid var(--hair); margin-top: 10px; }
details.sec > summary { list-style: none; cursor: pointer; min-height: 46px; display: flex; align-items: center; justify-content: space-between; font: 700 15.5px var(--f-d); }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after { content: "+"; font: 400 24px/1 var(--f-d); color: var(--muted); }
details.sec[open] > summary::after { content: "−"; }
details.sec.guide > summary { color: var(--signal); }
.guide-b { font-size: 15px; padding-bottom: 6px; }
.guide-b .fmt { font: 700 15px var(--f-d); margin: 0 0 6px; }
.guide-b h5 { font: 700 13px/1.3 var(--f-d); letter-spacing: .04em; color: var(--muted); margin: 12px 0 2px; }
.guide-b ul { margin: 0; padding-inline-start: 18px; }
.guide-b li { margin: 3px 0; }
.guide-b ul.avoid li::marker { content: "✕  "; color: var(--signal); }
.guide-b .dw { margin-top: 12px; border-inline-start: 2px solid var(--signal); padding: 2px 10px; }
.md table, .tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 12px; border-bottom: 1px solid var(--rule); }
.md th, .md td, .tbl th, .tbl td { border-top: 1px solid var(--hair); padding: 7px 6px; text-align: start; vertical-align: top; }
.md th, .tbl th { font: 700 13px var(--f-d); color: var(--muted); border-top: 1px solid var(--rule); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.md h4 { margin: 20px 0 6px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 17px; }
.md ul, .md ol { padding-inline-start: 20px; margin: 6px 0 12px; }
.md p { margin: 0 0 .6em; }
.md blockquote { margin: 6px 0 12px; padding: 8px 12px; background: var(--surface); border-inline-start: 2px solid var(--signal); }
.md blockquote p { margin: 0; }
.copy { margin-top: 6px; min-height: 36px; font: 700 13px var(--f-b); background: transparent; border: 1px solid var(--rule); color: var(--ink); padding: 0 10px; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 8px 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 8px 0; } .stat + .stat { border-inline-start: 1px solid var(--hair); padding-inline-start: 10px; }
.stat small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat b { font: 900 22px/1.2 var(--f-d); font-variant-numeric: tabular-nums; }
.pos { color: var(--ink); } .neg { color: var(--signal); }
.chart { width: 100%; height: auto; display: block; margin: 6px 0; }
.chart text { font: 600 12px var(--f-b); fill: var(--muted); }
.prog { height: 4px; background: var(--hair); margin: 8px 0 4px; }
.prog > i { display: block; height: 100%; background: var(--signal); }
.prog-label { display: flex; justify-content: space-between; font: 700 14px var(--f-d); color: var(--ink-2); }
.note-item { border-inline-start: 2px solid var(--ink); padding: 2px 12px; margin: 10px 0; white-space: pre-wrap; }
.note-item small { display: block; color: var(--muted); font-weight: 700; }
.menu { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.menu a, .menu button { display: flex; align-items: center; width: 100%; min-height: 54px; padding: 0; text-decoration: none; font: 700 17px var(--f-d); background: none; border: 0; text-align: start; cursor: pointer; }
.menu > * + * { border-top: 1px solid var(--hair); }
.menu small { color: var(--muted); font: 600 14px var(--f-b); margin-inline-start: auto; margin-inline-end: 10px; }
.menu a::after { content: "←"; color: var(--signal); margin-inline-start: auto; }
.menu a small + ::after { margin: 0; }
.toast { position: fixed; z-index: 60; inset-inline: 20px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); max-width: 420px; margin: 0 auto; background: var(--ink); color: var(--on-ink); padding: 12px 14px; font-weight: 700; text-align: center; }
.toast[hidden] { display: none; }

/* login */
.login { max-width: 420px; margin: 0 auto; padding: 8vh 20px 40px; }
.login .mast { margin-bottom: 18px; }
