/* Zairly styles. S5′ (B8): the "calm editorial" tokens (hi-fi §4, D-050 A) and the fonts of D-050 D:
   Frank Ruhl Libre 700 for screen titles and the one big figure; IBM Plex Sans Hebrew 400/500/600/700 for
   everything else. Both self-hosted from the Fontsource 5.3.0 packages, files unmodified (spec v3 §10).
   Logical properties only, so RTL and LTR share one sheet. Dark mode follows the device (D-041 #10). */
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-hebrew-400-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-hebrew-500-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-hebrew-700-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-hebrew-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 700; font-display: swap; src: url("/fonts/frank-ruhl-libre-hebrew-700-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 700; font-display: swap; src: url("/fonts/frank-ruhl-libre-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Tokens (hi-fi §4). Each colour means one thing. The old names stay as aliases, so the NI guide's
   S1-S3 rules keep working: --text = ink, --link = mint-ink, --paused-* = warning. */
:root {
  color-scheme: light dark;
  --ink: #0B2A3A; --ink-2: #4A5D6A;
  --bg: #F4F5F1; --surface: #FFFFFF; --sunken: #ECEFEA;
  --line: #DCE1DD; --control: #6B7C87;
  --mint: #00C896; --on-mint: #0B2A3A; --mint-ink: #007A5C;
  --warn-text: #8A4B00; --warn-bg: #FFF1DE; --warn-line: #B45309;
  --err-text: #A61B1B; --err-bg: #FCEAEA;
  --info-text: #1D5A85; --info-bg: #E8F0F7;
  --quiet-text: #4A5D6A; --quiet-line: #6B7C87;
  --hero-bg: #0B2A3A; --hero-text: #FFFFFF; --hero-2: #B9CCD6;
  --shadow: 0 1px 3px rgba(11, 42, 58, .10);
  --serif: "Frank Ruhl Libre", "IBM Plex Sans Hebrew", serif;
  --sans: "IBM Plex Sans Hebrew", system-ui, sans-serif;
  /* aliases (S1-S3) */
  --text: var(--ink); --text-muted: var(--ink-2); --link: var(--mint-ink); --accent: var(--mint);
  --border-control: var(--control); --border-decor: var(--line); --bg-subtle: var(--sunken); --bg-brand: #E3F5EE;
  --paused-bg: var(--warn-bg); --paused-text: var(--warn-text); --paused-border: var(--warn-line);
  --focus: var(--ink);
  --tabbar-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E9EFF2; --ink-2: #A9BAC4;
    --bg: #08161E; --surface: #0F2530; --sunken: #0B1D26;
    --line: #22404E; --control: #7F95A3;
    --mint-ink: #5EE0B8;
    --warn-text: #FFD08A; --warn-bg: #3A2A10; --warn-line: #E0A040;
    --err-text: #FFA3A3; --err-bg: #3A1616;
    --info-text: #9CCBF0; --info-bg: #102B40;
    --quiet-text: #A9BAC4; --quiet-line: #7F95A3;
    --hero-bg: #123344; --hero-text: #E9EFF2; --hero-2: #A9BAC4;
    --shadow: none;
    --bg-brand: #0F3445; --focus: #5EE0B8;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* The guard, the app script and the build toggle states with the `hidden` attribute; no display rule may override it. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 26px;
  overflow-wrap: anywhere;
}
main, .top, .foot, .banner { padding-inline: 16px; max-inline-size: 1040px; margin-inline: auto; }
main { padding-block: 16px 32px; }
main > * { max-inline-size: 720px; }
h1 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 38px; margin-block: 16px; }
h2 { font-size: 18px; line-height: 26px; font-weight: 600; margin-block: 32px 8px; }
h3 { font-size: 16px; line-height: 26px; font-weight: 600; }
.small, .route-info { font-size: 14px; line-height: 22px; color: var(--ink-2); }
a { color: var(--mint-ink); text-decoration: underline; }
a:focus-visible, button:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
code { font-size: 14px; }
bdi { unicode-bidi: isolate; }
[data-ph] { background: var(--sunken); outline: 1px dashed var(--control); outline-offset: 1px; }

.skip { position: absolute; inset-inline-start: 8px; inset-block-start: -100px; background: var(--bg); padding: 8px; z-index: 10; }
.skip:focus { inset-block-start: 8px; }
.banner { background: var(--ink); color: var(--bg); font-size: 14px; line-height: 22px; padding-block: 8px; max-inline-size: none; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-block-size: 56px; }
.top a { display: inline-flex; align-items: center; min-block-size: 44px; min-inline-size: 44px; }
.wordmark { font-weight: 700; color: var(--ink); text-decoration: none; }

.door1 { display: flex; align-items: center; min-block-size: 72px; padding: 12px 16px; border-radius: 12px;
  background: var(--hero-bg); color: var(--hero-text); font-weight: 700; font-size: 18px; text-decoration: none; }
.door1 [data-ph] { background: transparent; }
.options, .cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.options a, .cards a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-block-size: 56px; padding: 8px 16px;
  border: 1px solid var(--control); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; }
.options a[aria-current="true"] { border-width: 3px; }
.options a[aria-current="true"]::after { content: "✓"; margin-inline-start: auto; }
.answer-box { padding: 16px; border-radius: 8px; background: var(--bg-brand); font-size: 20px; line-height: 30px; font-weight: 700; }
.box { margin-block: 32px; padding: 16px; border-radius: 8px; background: var(--sunken); }
.box h2 { margin-block-start: 0; }
.pair { display: flex; gap: 8px; }
.pair a { flex: 1; display: flex; justify-content: center; align-items: center; min-block-size: 44px;
  border: 1px solid var(--control); border-radius: 12px; background: var(--surface); }
.thanks { font-weight: 700; }

/* S2: rules rows, chips, paused / lag states, tester gap markers. Icon + word + colour, never colour alone (1.4.1). */
.rules { display: grid; gap: 12px; margin-block: 24px; }
.rule p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.chip { display: inline-block; margin-block-start: 4px; font-size: 14px; line-height: 22px; font-weight: 500; color: var(--ink-2); }
.chip summary { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 12px; border: 1px solid var(--control);
  border-radius: 999px; background: var(--sunken); cursor: pointer; }
.chip summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.paused-line { margin: 0; padding: 8px 12px; border-inline-start: 4px solid var(--paused-border); background: var(--paused-bg); color: var(--paused-text); }
.paused-line a { color: inherit; }
.state { margin-block: 16px; padding: 16px; border-radius: 8px; }
.state.paused { background: var(--paused-bg); color: var(--paused-text); border-inline-start: 4px solid var(--paused-border); }
.state.paused a { color: inherit; }
.state.lag { background: var(--bg-brand); }
.state h2 { margin-block-start: 0; }
.card.paused { padding: 8px 16px; border-inline-start: 4px solid var(--paused-border); background: var(--paused-bg); color: var(--paused-text); border-radius: 12px; }
.card.paused a { color: inherit; min-block-size: 44px; border: 0; padding: 0; background: transparent; }
.card p { margin: 4px 0 0; }
.gap { margin: 0; padding: 4px 8px; outline: 2px dashed var(--paused-border); color: var(--paused-text); background: var(--paused-bg); }
.warning-line { font-size: 20px; line-height: 30px; font-weight: 700; padding: 12px; border: 2px solid var(--paused-border); border-radius: 8px; }
.e045 { padding: 12px 16px; border-inline-start: 4px solid var(--ink); background: var(--sunken); }
table { border-collapse: collapse; inline-size: 100%; font-size: 14px; line-height: 22px; }
th, td { text-align: start; padding: 8px; border-block-end: 1px solid var(--control); vertical-align: top; }

/* S3: next-date highlight (C5) and the archive. The badge and border carry the meaning, not colour alone. */
.next-summary { font-weight: 500; }
.card.highlight > a { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.badge { display: inline-block; margin: 4px 0 0; padding: 2px 10px; border-radius: 999px; background: var(--mint); color: var(--on-mint); font-size: 14px; line-height: 22px; font-weight: 500; }
.check-date { margin: 4px 0 0; }
.state.archive { background: var(--sunken); }

.foot { margin-block-start: 48px; padding-block: 24px; background: var(--sunken); max-inline-size: none; font-size: 14px; line-height: 22px; }
.foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot li a { display: inline-flex; align-items: center; min-block-size: 44px; }

/* ---------- S5′: the app shell (spec v3 §7.5; hi-fi §4-§6) ---------- */
/* One column, 375 px first (max 480). The tab bar is fixed, so focus and anchors scroll clear of it (2.4.11). */
html.app { scroll-padding-block-end: calc(var(--tabbar-h) + 16px); }
.app body { padding-block-end: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
.app main, .app .apphead, .app .banner { max-inline-size: 480px; }
.app main > * { max-inline-size: none; }
.apphead { display: flex; align-items: center; gap: 4px; min-block-size: 56px; padding-inline: 12px; margin-inline: auto; }
.apphead .brand { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; margin-inline-end: auto;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.apphead .brand img { inline-size: 32px; block-size: 32px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 44px; min-block-size: 44px;
  border-radius: 12px; color: var(--ink); text-decoration: none; }
.iconbtn svg { inline-size: 24px; block-size: 24px; }
.iconbtn[aria-current="page"] { background: var(--sunken); }
.apphead .switch { font-size: 14px; padding-inline: 8px; }
.vh { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.tabbar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 5; background: var(--surface); border-block-start: 1px solid var(--line);
  padding-block-end: env(safe-area-inset-bottom, 0px); }
.tabbar ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); max-inline-size: 480px; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-block-size: var(--tabbar-h);
  color: var(--ink-2); text-decoration: none; font-size: 13px; line-height: 20px; font-weight: 600; border-block-start: 3px solid transparent; }
.tabbar a svg { inline-size: 24px; block-size: 24px; }
.tabbar a[aria-current="page"] { color: var(--ink); border-block-start-color: var(--mint); }
.tabbar a:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

.screen-lead { color: var(--ink-2); margin-block: 0 16px; }
.quiet { padding: 12px 16px; border: 1.5px dashed var(--quiet-line); border-radius: 12px; color: var(--quiet-text); }
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.rows li + li { border-block-start: 1px solid var(--line); }
.rows a { display: flex; align-items: center; min-block-size: 52px; padding-inline: 16px; color: var(--ink); text-decoration: none; font-weight: 500; }
.rows a::after { content: "›"; margin-inline-start: auto; color: var(--ink-2); }
[dir="rtl"] .rows a::after { content: "‹"; }
.notice { margin-block: 12px; padding: 12px 16px; border-radius: 12px; }
.notice.info { background: var(--info-bg); color: var(--info-text); }
.notice.warn { background: var(--warn-bg); color: var(--warn-text); border-inline-start: 4px solid var(--warn-line); }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-block-end: 0; }
.card-app { margin-block: 16px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.card-app h2 { margin-block-start: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; padding-inline: 16px; border-radius: 12px;
  border: 1px solid var(--control); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.go { min-block-size: 50px; border-color: transparent; background: var(--mint); color: var(--on-mint); }
.notice .btn { background: transparent; color: inherit; border-color: currentColor; }
.figure { font-variant-numeric: tabular-nums; font-weight: 600; }
.hero { padding: 20px; border-radius: 24px; background: var(--hero-bg); color: var(--hero-text); }
.hero h2 { margin-block-start: 0; font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 32px; }
.hero p { color: var(--hero-2); margin: 0; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
dl.facts dt { color: var(--ink-2); }
dl.facts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* S7′: the ledger. No inline styles (CSP style-src 'self'): the meter's fill is set through the CSSOM. */
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 16px; }
.seg-btn { min-block-size: 44px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--control); background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.seg-btn:focus-visible, .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field { margin-block: 0 16px; }
.field label { display: block; font-weight: 600; margin-block-end: 4px; }
.field input { box-sizing: border-box; inline-size: 100%; max-inline-size: 22rem; min-block-size: 48px; padding-inline: 12px; border: 1px solid var(--control); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
.field input[aria-invalid="true"] { border: 2px solid var(--err-text); }
.field p { margin-block: 4px 0; }
.field-err { color: var(--err-text); background: var(--err-bg); padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.toast { position: sticky; inset-block-end: calc(var(--tabbar-h) + 8px); margin-block: 16px; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow); }
.toast p { margin: 0 0 8px; }
.toast p:last-child { margin: 0; }
.toast .btn { background: transparent; color: inherit; border-color: currentColor; }
.toast [data-ph] { background: transparent; outline-color: currentColor; }
.btn.danger { border-color: var(--err-text); color: var(--err-text); }
.yoursum { font-size: 18px; }
.meter { position: relative; block-size: 14px; border-radius: 7px; background: var(--sunken); border: 1px solid var(--control); overflow: visible; margin-block: 12px 8px; }
.meter b { display: block; block-size: 100%; inline-size: 0; border-radius: 7px; background: var(--ink); }
.meter .tick { position: absolute; inset-block: -4px; inline-size: 2px; background: var(--ink-2); }
.meter .t80 { inset-inline-start: 80%; }
.meter .t95 { inset-inline-start: 95%; }
.meter-block p { margin-block: 4px; }
.flag { padding: 6px 10px; border-inline-start: 4px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-text); }
details.month { border-block-start: 1px solid var(--line); padding-block: 8px; }
details.month summary { min-block-size: 44px; display: flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 500; }
ul.entries { list-style: none; margin: 0; padding: 0; }
ul.entries li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 6px; }
.export-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
dialog { max-inline-size: min(36rem, 100vw - 32px); border: none; border-radius: 20px; padding: 16px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(11, 42, 58, .5); }
/* S8′: Documents, the file pickers, the backup card. */
.label { font-weight: 600; margin-block: 0 4px; }
.file-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.file-pick input[type="file"] { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; overflow: hidden; }
.file-pick input[type="file"]:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.file-pick label.btn { cursor: pointer; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 12px; }
.chip-btn { min-block-size: 44px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--control); background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* S9′b: onboarding answers, My answers, Home's year switch. */
ul.answers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.answers .btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.yearswitch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 12px; }
ul.doc-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
ul.doc-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; }
ul.doc-list li + li { border-block-start: 1px solid var(--line); }
.doc-name { font-weight: 600; overflow-wrap: anywhere; }
.chip-cat, .chip-doc { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); font-size: 14px; font-weight: 500; }
#doc-view img { display: block; max-inline-size: 100%; max-block-size: 70vh; margin-block: 8px; border-radius: 8px; }
#doc-view h2 { overflow-wrap: anywhere; }
/* S9′ part a: the Tasks tab and the task stepper. */
ul.task-list { list-style: none; margin: 0; padding: 0; }
ul.task-list li { padding-block: 10px; }
ul.task-list li + li { border-block-start: 1px solid var(--line); }
ul.task-list a { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 600; color: var(--ink); }
.task-name { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 600; }
ul.task-list .status { margin: 0; }
.tag-next { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--mint); color: var(--on-mint); font-size: 13px; }
.hero .btn.go { margin-block-start: 8px; }
ol.steps { margin: 16px 0; padding-inline-start: 1.5em; }
ol.steps > li { margin-block-end: 20px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
ol.steps > li::marker { font-weight: 700; }
ol.steps h2 { margin-block-start: 0; font-size: 20px; line-height: 28px; }
.estimate { text-decoration: underline dashed; text-underline-offset: 4px; }
.gap-box { padding: 8px 12px; border-inline-start: 4px solid var(--paused-border); background: var(--paused-bg); }
.gap-box p { margin: 0 0 4px; }
.keep { box-shadow: none; border: 1px solid var(--line); }
#task .status { font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .08s ease; }
  .btn:active { transform: scale(.98); }
}

@media (min-width: 768px) {
  main, .top { padding-inline: 24px; }
  h1 { font-size: 30px; line-height: 38px; }
}
