/* The house app. "Modern deco": a clean modern base with chapel arches, gold sunbursts and tall
   1930s numerals. Built from the approved mockups (Design canvas "House App Mockups").
   Fonts are served by the app itself so it still looks right with no signal. */

@font-face { font-family: 'Outfit'; src: url('/assets/fonts/outfit.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Big Shoulders Display'; src: url('/assets/fonts/big-shoulders-display.woff2') format('woff2'); font-weight: 700 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F5F1EA;        --card: #FFFFFF;     --line: #E6DFD3;     --line-soft: #EFE9DF;  --line-strong: #D8D0C2;
  --ink: #15191B;       --muted: #5B5F5E;    --faint: #8C8F8D;
  --green: #163C36;     --green-deep: #102F2A; --green-tint: #EAF0EC; --green-line: #C9D8D1; --mint: #DCE8E3;
  --gold: #C8A256;      --gold-light: #E2C383; --gold-ink: #7D5E22; --gold-tint: #F1E6CC; --gold-line: #DCC79A;
  --coral-ink: #8E3326; --coral: #A8403F;    --coral-tint: #F6E1DC; --coral-line: #E3B5AB; --badge: #C8553F;
  --on-green: #F5F1EA;  --on-green-muted: #B9CBC5;
  --display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 12px 30px -12px rgba(10, 30, 27, 0.55);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3, p { margin: 0; }

#app { max-width: 560px; margin: 0 auto; }

/* ---- page frame ---------------------------------------------------------------------------- */

.screen { display: flex; flex-direction: column; gap: 16px; padding: calc(var(--safe-top) + 28px) 20px calc(var(--safe-bottom) + 112px); }
.screen.dark { background: var(--green-deep); color: var(--on-green); min-height: 100vh; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font: 800 21px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.eyebrow { font: 600 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.dark .eyebrow { color: var(--gold-light); }
.title { font: 800 40px/0.95 var(--display); letter-spacing: 0.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.greeting { font: 600 28px/1.15 var(--sans); letter-spacing: -0.01em; }
.lede { color: var(--muted); font-size: 14px; }
.dark .lede { color: var(--on-green-muted); }
.heading { display: flex; flex-direction: column; gap: 4px; }
.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

.section { display: flex; flex-direction: column; gap: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.section-title { display: flex; align-items: center; gap: 8px; font: 800 17px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.steps { display: inline-flex; flex-direction: column; gap: 2px; }
.steps i { display: block; height: 2px; background: var(--gold); }
.steps i:nth-child(1) { width: 14px; } .steps i:nth-child(2) { width: 10px; } .steps i:nth-child(3) { width: 6px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; color: var(--green); text-decoration: none; background: none; border: 0; padding: 0; }

/* ---- cards and rows -------------------------------------------------------------------------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.list { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; min-height: 64px; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; background: none; width: 100%; text-align: left; border-left: 0; border-right: 0; border-bottom: 0; }
.row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 500; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.row-sub { font-size: 13px; color: var(--muted); }
.row-meta { font-size: 12px; font-weight: 500; color: var(--gold-ink); }
.due { flex: none; font-weight: 600; font-size: 14px; color: var(--green); }
.late-pill { flex: none; padding: 4px 10px; border-radius: 12px; background: var(--coral-tint); color: var(--coral-ink); font-weight: 600; font-size: 12px; }
.quiet-pill { flex: none; padding: 4px 10px; border-radius: 12px; background: var(--line-soft); color: var(--muted); font-weight: 600; font-size: 12px; }

/* The round-headed chapel window as a date. */
.lancet { flex: none; width: 44px; height: 54px; border-radius: 22px 22px 8px 8px; background: var(--green-tint); border: 1px solid var(--green-line); color: var(--green); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 7px; line-height: 1; }
.lancet .n { font: 800 21px/1 var(--display); }
.lancet .m { font: 600 9px/1 var(--sans); letter-spacing: 0.12em; margin-top: 2px; text-transform: uppercase; }
.lancet.late { background: var(--coral-tint); border-color: var(--coral-line); color: var(--coral-ink); }
.lancet.soon { background: var(--gold-tint); border-color: var(--gold-line); color: #5E4618; }
.lancet.icon { justify-content: center; padding: 0; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.tile .n { font: 800 32px/1 var(--display); }
.tile .n.late { color: var(--coral); } .tile .n.green { color: var(--green); }
.tile .l { font-size: 13px; line-height: 1.2; color: var(--muted); }

.tip { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--green); color: var(--on-green); border-radius: 20px; font-size: 14px; }
.tip strong { color: var(--gold-light); font-weight: 600; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--gold-tint); border-radius: 20px; color: #3B3320; }
.dashed { padding: 12px 16px; border: 1.5px dashed var(--gold); border-radius: 20px; font-size: 14px; color: #3B3320; }
.note > svg, .tip > svg, .event > svg, .doc > svg { flex: none; }
.list > article { border-top: 1px solid var(--line-soft); }
.list > article:first-child { border-top: 0; }
.list > article > .row { border-top: 0; }
.empty { padding: 22px 18px; text-align: center; color: var(--muted); font-size: 15px; }
.error-box { padding: 14px 16px; border-radius: 16px; background: var(--coral-tint); color: var(--coral-ink); font-weight: 500; }

/* ---- the arch: hero cards ---------------------------------------------------------------- */

.arch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 20px 18px; border-radius: 50% 50% 24px 24px / 110px 110px 24px 24px; background: var(--green); color: var(--on-green); text-decoration: none; overflow: hidden; isolation: isolate; }
.arch::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(200, 162, 86, 0.55); border-radius: 50% 50% 18px 18px / 104px 104px 18px 18px; pointer-events: none; }
.arch.short { border-radius: 50% 50% 24px 24px / 70px 70px 24px 24px; padding-top: 28px; }
.arch.short::after { border-radius: 50% 50% 18px 18px / 64px 64px 18px 18px; }
.arch > * { position: relative; z-index: 1; }
.arch .sunburst { position: absolute; top: 4px; left: 50%; width: min(320px, 92%); transform: translateX(-50%); z-index: 0; color: var(--gold); opacity: 0.55; }
.arch-label { font-weight: 600; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); text-align: center; }
.arch-date { display: flex; align-items: baseline; gap: 10px; line-height: 1; }
.arch-date .dow, .arch-date .mon { font: 800 22px var(--display); letter-spacing: 0.08em; color: var(--gold-light); text-transform: uppercase; }
.arch-date .num { font: 800 76px/0.85 var(--display); }
.arch-foot { align-self: stretch; display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px 0; font-size: 13px; color: var(--on-green-muted); }
.arch-foot .go { font-weight: 600; color: var(--gold-light); }
.arch h1 { font: 800 40px/0.95 var(--display); letter-spacing: 0.03em; text-transform: uppercase; text-align: center; }

.bin-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bin-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 16px; background: rgba(245, 241, 234, 0.1); border: 1px solid rgba(245, 241, 234, 0.22); font-weight: 500; font-size: 14px; }
.bin-pill::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #9AA0A6); }
.bin-pill.light { height: 28px; padding: 0 10px; border-radius: 14px; background: var(--bg); border-color: var(--line); font-size: 13px; gap: 6px; }
.bin-pill.light::before { width: 9px; height: 9px; }
.bin-pill .src { font-size: 11px; color: var(--faint); }

/* ---- controls ---------------------------------------------------------------------------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 26px; border: 0; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--green); color: var(--on-green); }
.btn.gold { background: var(--gold); color: var(--green-deep); font-weight: 700; }
.btn.ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn.danger { background: transparent; color: var(--coral-ink); border: 1px solid var(--coral-line); }
.btn.small { height: 40px; padding: 0 16px; border-radius: 20px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }
.btn-row > .btn.fit { flex: none; }
.icon-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--green); display: grid; place-items: center; text-decoration: none; padding: 0; }
.icon-btn.solid { background: var(--green); color: var(--gold-light); border: 0; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--green); color: var(--gold-light); font: 700 18px var(--sans); display: grid; place-items: center; text-decoration: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--card); color: var(--green); font-weight: 600; font-size: 13px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }

.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 23px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; color: var(--ink); outline-offset: 4px; }

.seg { display: flex; padding: 4px; background: #E9E2D5; border-radius: 24px; }
.seg a { flex: 1; display: grid; place-items: center; height: 40px; border-radius: 20px; color: #3E4442; font-weight: 500; font-size: 14px; text-decoration: none; }
.seg a[aria-current="page"] { background: var(--green); color: var(--on-green); font-weight: 600; }

.switch { flex: none; width: 52px; height: 32px; padding: 3px; border: 0; border-radius: 16px; background: #C9C2B6; display: flex; }
.switch::after { content: ''; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: margin 0.15s; }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"]::after { margin-left: 20px; }

.capture { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 6px 0 18px; background: var(--card); border: 1px solid var(--line); border-radius: 27px; }
.capture input[type="text"] { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; outline-offset: 4px; }
.capture .round { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg); color: var(--green); display: grid; place-items: center; }
.capture .arch-btn { flex: none; width: 42px; height: 42px; border: 0; border-radius: 21px 21px 10px 10px; background: var(--green); color: var(--gold-light); display: grid; place-items: center; }

/* ---- forms ------------------------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--card); font-size: 16px; color: var(--ink);
}
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.45; }
.field .hint { font-size: 13px; color: var(--muted); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }

/* ---- detail page ------------------------------------------------------------------------- */

.ring-wrap { display: flex; align-items: center; gap: 18px; align-self: stretch; }
.ring { position: relative; flex: none; width: 140px; height: 140px; }
.ring svg { display: block; }
.ring .centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring .big { font: 800 46px/0.9 var(--display); }
.ring .small { font-weight: 600; font-size: 10px; letter-spacing: 0.18em; color: var(--gold-light); margin-top: 4px; text-transform: uppercase; }
.facts { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.facts dt { font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; }
.facts dd.soft { font-weight: 400; font-size: 14px; color: #CFDCD7; }
.cat-pill { padding: 4px 12px; border: 1px solid var(--gold); border-radius: 12px; font-weight: 600; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.kv { padding: 4px 16px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.kv > div:first-child { border-top: 0; }
.kv .k { color: var(--muted); flex: none; }
.kv .v { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { display: flex; gap: 14px; }
.timeline .dot { flex: none; display: flex; flex-direction: column; align-items: center; }
.timeline .dot::before { content: ''; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--gold); }
.timeline .dot::after { content: ''; flex: 1; width: 2px; background: var(--line); }
.timeline li:last-child .dot::after { background: transparent; }
.timeline .what { flex: 1; display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; font-size: 15px; }
.timeline .what span:last-child { color: var(--muted); }
.doc { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line-soft); }
.doc:first-child { border-top: 0; }

/* ---- bins, inbox, kitchen --------------------------------------------------------------------- */

.bin-row { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line-soft); }
.bin-row:first-child { border-top: 0; }
.bin-row .pills { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.thumb { flex: none; width: 44px; height: 52px; border-radius: 22px 22px 8px 8px; object-fit: cover; background: var(--line-soft); border: 1px solid var(--line-strong); }
.item-actions { display: flex; gap: 8px; padding: 0 14px 12px 72px; flex-wrap: wrap; }

.week-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.week-strip::-webkit-scrollbar { display: none; }
.week-card { position: relative; flex: none; width: 112px; height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 10px 12px; background: var(--green); color: var(--on-green); border-radius: 56px 56px 14px 14px; text-decoration: none; overflow: hidden; }
.week-card::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(200, 162, 86, 0.5); border-radius: 50px 50px 10px 10px; pointer-events: none; }
.week-card .ini { font: 800 40px/1 var(--display); color: var(--gold-light); }
.week-card .t { font-weight: 500; font-size: 12px; line-height: 1.25; text-align: center; }
.week-card .s { font-size: 11px; color: var(--on-green-muted); }
.recipe-row { display: flex; align-items: center; gap: 8px; padding-right: 12px; border-top: 1px solid var(--line-soft); }
.recipe-row:first-child { border-top: 0; }
.recipe-row > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px 0 10px 14px; color: inherit; text-decoration: none; }
.pick { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--green); background: var(--card); color: var(--green); display: grid; place-items: center; }
.pick[aria-pressed="true"] { background: var(--green); color: var(--gold-light); }
.float-cta { position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 96px); transform: translateX(-50%); z-index: 15; box-shadow: var(--shadow); }

.progress { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--green); color: var(--on-green); border-radius: 20px; }
.progress .count { display: flex; align-items: baseline; gap: 6px; }
.progress .count b { font: 800 30px/1 var(--display); color: var(--gold-light); }
.progress .bar { display: flex; gap: 3px; }
.progress .bar i { flex: 1; height: 8px; border-radius: 4px 4px 1px 1px; background: rgba(245, 241, 234, 0.18); }
.progress .bar i.on { background: var(--gold); }
.shop-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-top: 1px solid var(--line-soft); }
.shop-row:first-child { border-top: 0; }
.shop-row input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.shop-row label { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; cursor: pointer; }
.shop-row .name { font-weight: 500; font-size: 16px; }
.shop-row .from { font-size: 12px; font-weight: 500; color: var(--gold-ink); }
.shop-row .qty { flex: none; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.shop-row.done .name, .shop-row.done .qty { color: var(--faint); text-decoration: line-through; }
.ingredients { list-style: none; margin: 0; padding: 4px 16px; }
.ingredients li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.ingredients li:first-child { border-top: 0; }
.method { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.method li { counter-increment: step; display: flex; gap: 12px; }
.method li::before { content: counter(step); flex: none; width: 28px; height: 34px; border-radius: 14px 14px 6px 6px; background: var(--green); color: var(--gold-light); font: 800 16px/34px var(--display); text-align: center; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 12px; background: var(--green-tint); color: var(--green); font-size: 12px; font-weight: 600; }

/* ---- house ---------------------------------------------------------------------------------- */

.gauge { display: flex; justify-content: center; }
.event { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(245, 241, 234, 0.05); border: 1px solid rgba(200, 162, 86, 0.3); font-size: 14px; }
.event.alert { background: rgba(200, 85, 63, 0.14); border-color: rgba(200, 85, 63, 0.55); }
.event b { color: var(--gold-light); font-weight: 600; }
.event.alert b { color: #F0A493; }

/* ---- tab bar, floating button, toast --------------------------------------------------------- */

.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 14px); z-index: 20; max-width: 536px; margin: 0 auto; height: 66px; display: flex; align-items: center; padding: 0 5px; background: var(--green); border-radius: 33px; box-shadow: var(--shadow); }
.tab { position: relative; flex: 1; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 28px 28px 14px 14px; color: var(--on-green-muted); font-weight: 500; font-size: 11px; letter-spacing: 0.04em; text-decoration: none; }
.tab[aria-current="page"] { background: rgba(200, 162, 86, 0.18); color: var(--gold-light); font-weight: 600; }
.tab .badge { position: absolute; top: 4px; left: 50%; margin-left: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--badge); color: #fff; font: 600 11px/18px var(--sans); text-align: center; }
.fab { position: fixed; right: max(20px, calc(50% - 260px)); bottom: calc(var(--safe-bottom) + 98px); z-index: 15; width: 56px; height: 56px; border: 0; border-radius: 28px 28px 14px 14px; background: var(--gold); color: var(--green-deep); display: grid; place-items: center; box-shadow: var(--shadow); text-decoration: none; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 92px); z-index: 30; max-width: 528px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 8px 8px 18px; border-radius: 26px; background: var(--green-deep); color: var(--on-green); box-shadow: var(--shadow); font-size: 14px; }
.toast span { flex: 1; }
.toast button { height: 38px; padding: 0 16px; border: 0; border-radius: 19px; background: var(--gold); color: var(--green-deep); font-weight: 700; }
.toast.error { background: var(--coral-ink); }

.skeleton { height: 120px; border-radius: 20px; background: linear-gradient(90deg, var(--line-soft), #f9f6f0, var(--line-soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .switch::after { transition: none; } }

/* ---- login ---------------------------------------------------------------------------------- */

.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: calc(var(--safe-top) + 52px) 28px calc(var(--safe-bottom) + 28px); background: var(--green-deep); color: var(--on-green); }
.login-window { position: relative; width: 264px; height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 20px 28px; border: 1.5px solid var(--gold); border-radius: 132px 132px 6px 6px; background: var(--green); overflow: hidden; isolation: isolate; }
.login-window::after { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(200, 162, 86, 0.45); border-radius: 124px 124px 2px 2px; pointer-events: none; }
.login-window .sunburst { position: absolute; top: 20px; left: 12px; width: 240px; color: var(--gold); opacity: 0.6; z-index: 0; }
.login-window > :not(.sunburst) { position: relative; z-index: 1; }
.login-name { font: 800 46px/0.95 var(--display); letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
.diamond-rule { display: flex; align-items: center; gap: 6px; }
.diamond-rule i { width: 28px; height: 1px; background: var(--gold); }
.diamond-rule b { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.login-tag { font-size: 15px; line-height: 1.4; text-align: center; color: #CFDCD7; }
.login form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.login label { font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.login input { height: 54px; padding: 0 22px; border: 0; border-radius: 27px; background: var(--bg); font-size: 17px; color: var(--ink); }
.login .msg { min-height: 21px; font-size: 14px; text-align: center; color: var(--on-green-muted); }
.login .msg.err { color: #F0A493; }
.login .text-link { align-self: center; color: var(--on-green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.login .foot { margin-top: auto; font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #8FA8A0; }

/* The connector approval page, served by the server outside the app. */
body.approve { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; background: var(--green-deep); }
.approve-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; background: var(--card); border-radius: 24px; border-top: 4px solid var(--gold); }
.approve-card .wordmark { font: 800 22px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.approve-card h1 { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.approve-card p { color: var(--ink); }
.approve-card .quiet { color: var(--muted); font-size: 14px; }
.approve-card form { display: flex; flex-direction: column; gap: 10px; }
.approve-card label { font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.approve-card input { height: 50px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 14px; font-size: 16px; }
.approve-card .msg { min-height: 20px; font-size: 14px; color: var(--muted); }
.approve-card .msg.err { color: var(--coral-ink); }

@media (min-width: 600px) {
  .screen { padding-top: calc(var(--safe-top) + 40px); }
}

/* ---- life admin quick add ---------------------------------------------------------------- */

.capture-form { gap: 12px; }
.capture-note {
  width: 100%; min-height: 160px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 18px;
  background: var(--card); font-size: 16px; line-height: 1.5; color: var(--ink); resize: vertical;
}
.capture-note:disabled { color: var(--muted); }
.attach-drop {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px;
  border: 1.5px dashed var(--gold-line); border-radius: 18px; background: var(--gold-tint); color: var(--gold-ink); cursor: pointer;
}
.attach-drop > svg { grid-row: span 2; }
.attach-drop.over { border-color: var(--gold); background: #EBDCB8; }
.attach-label { font-weight: 600; color: var(--ink); }
.attach-hint { font-size: 13px; color: var(--gold-ink); }
.attach-list { display: flex; flex-direction: column; gap: 6px; }
.attach-list:empty { display: none; }
.attach-chip {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--card); color: var(--green); font-size: 14px;
}
.attach-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.attach-size { color: var(--muted); font-size: 13px; }
.attach-chip > svg:last-child { margin-right: 10px; }
.attach-remove { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; }
.attach-remove:hover { background: var(--bg); color: var(--coral-ink); }
.drop-only { display: none; }
@media (hover: hover) and (pointer: fine) { .drop-only { display: inline; } }
.capture-aside { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.waiting .list { border-color: var(--gold-line); }
.waiting-hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.waiting-hint strong { color: var(--ink); font-weight: 600; }

/* ==== Mouse and keyboard ======================================================================
   Hover only where there is a real pointer, so a tapped row on a phone doesn't stay lit. */

@media (hover: hover) and (pointer: fine) {
  a.row, button.row, .doc, .recipe-row, .shop-row, .tile, .chip, .btn, .icon-btn, .avatar, .pick, .seg a, .tab, .week-card, .toast button {
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  }
  a.row:hover, button.row:hover, .doc:hover, .recipe-row:hover, .shop-row:hover { background: #FBF8F2; }
  .tile:hover { border-color: var(--gold-line); box-shadow: 0 8px 20px -14px rgba(10, 30, 27, 0.5); }
  .chip:hover:not([aria-pressed="true"]) { background: var(--green-tint); border-color: var(--green-line); }
  .btn.primary:hover:not(:disabled) { background: var(--green-deep); }
  .btn.gold:hover:not(:disabled), .toast button:hover { background: var(--gold-light); }
  .btn.ghost:hover:not(:disabled) { background: var(--green-tint); }
  .btn.danger:hover:not(:disabled) { background: var(--coral-tint); }
  .icon-btn:hover { background: var(--green-tint); border-color: var(--green-line); }
  .avatar:hover { background: var(--green-deep); }
  .pick:hover:not([aria-pressed="true"]) { background: var(--green-tint); }
  .seg a:hover:not([aria-current="page"]) { background: rgba(22, 60, 54, 0.07); }
  .text-link:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
  a.arch:hover::after, .week-card:hover::after { border-color: var(--gold); }
  .tab:hover:not([aria-current="page"]) { color: var(--on-green); background: rgba(245, 241, 234, 0.07); }
}

/* Rows sit inside rounded lists that clip, so draw their focus ring inside the edge. */
.list :is(a.row, button.row, .doc):focus-visible, .recipe-row > a:focus-visible { outline-offset: -3px; border-radius: 14px; }
.list a.row[aria-current="page"] { background: var(--green-tint); box-shadow: inset 4px 0 0 var(--gold); }

/* ==== Wider screens ===========================================================================
   Phones keep everything above as it is. From tablet width the tab bar becomes a side rail and
   pages get room; from 1100px the rail gains labels and pages go to two or more columns.
   app.js holds the same two media queries (RAIL and WIDE). */

/* Only the rail layout shows these; the wrappers only group things for the wider grids. */
#app .rail-only { display: none; }
.today-main, .recipe-aside, .recipe-main, .shop-top, .shop-sections, .inbox-main, .inbox-side, .kitchen-head { display: contents; }

@media (min-width: 768px) and (min-height: 520px), (min-width: 1100px) {
  :root { --rail-w: 92px; --content-w: 600px; --gutter: 32px; }
  #app { max-width: none; }
  #app:has(> .tabbar) { padding-left: var(--rail-w); }
  .screen { width: 100%; max-width: calc(var(--content-w) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 64px; }
  .screen.kitchen { padding-bottom: 120px; }
  .lede, .note p, .tip p { max-width: 68ch; }

  /* The rail: the phone's tab bar stood on end, with the arch mark on top and Settings at the foot. */
  .tabbar {
    top: 0; bottom: 0; left: 0; right: auto; width: var(--rail-w); height: auto; max-width: none; margin: 0;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 20px 10px 16px;
    border-radius: 0; box-shadow: inset -1px 0 0 rgba(200, 162, 86, 0.35); overflow-y: auto; scrollbar-width: none;
  }
  .tab { flex: none; height: 62px; }
  #app .tab.rail-only { display: flex; }
  #app .rail-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 18px; margin-bottom: 8px; border-bottom: 1px solid rgba(200, 162, 86, 0.3); color: var(--on-green); text-decoration: none; }
  .rail-brand svg { width: 28px; height: 33px; }
  .rail-name, .rail-place { display: none; }
  .rail-settings { margin-top: auto; }
  .rail-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--green-deep); font: 700 13px/26px var(--sans); text-align: center; }
  .rail-settings[aria-current="page"] .rail-avatar { box-shadow: 0 0 0 2px var(--green), 0 0 0 3.5px var(--gold-light); }
  #app .btn.rail-only { display: inline-flex; }
  .fab { display: none; }
  .float-cta { left: calc(50% + var(--rail-w) / 2); bottom: 28px; }
  .toast { left: calc(var(--rail-w) + 24px); right: 24px; bottom: 24px; }

  /* Arches keep their phone proportions instead of flattening across the page. */
  .arch { width: 100%; max-width: 600px; margin-inline: auto; border-radius: 50% 50% 24px 24px / 140px 140px 24px 24px; }
  .arch::after { border-radius: 50% 50% 18px 18px / 134px 134px 18px 18px; }
  .arch.short { border-radius: 50% 50% 24px 24px / 92px 92px 24px 24px; }
  .arch.short::after { border-radius: 50% 50% 18px 18px / 86px 86px 18px 18px; }

  .chips, .week-strip { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .heading-row { align-items: flex-start; }
  .heading-row > .btn { margin-top: 18px; }

  /* Buttons size to their words; only the main action in a row still stretches. */
  .btn-row > .btn:not(.primary, .small, .fit) { flex: 0 1 auto; min-width: 180px; }
  .screen > .btn, .recipe-main > .btn { align-self: flex-start; min-width: 200px; }
  .settings .btn-row > .btn { flex: 0 1 auto; min-width: 200px; }
  .settings > .top { display: none; }

  .kitchen-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
  .kitchen-head .seg { flex: 1 1 240px; max-width: 340px; }
  .kitchen-head .btn { margin-left: auto; }
  .recipe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .recipe-list > .recipe-row { min-height: 84px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; }
  .shop-sections { display: block; columns: 270px 3; column-gap: 20px; }
  .shop-sections > .section { break-inside: avoid; margin-bottom: 18px; }

  .screen.dark { max-width: none; margin: 0; padding-inline: max(var(--gutter), calc((100% - var(--content-w)) / 2)); }

  .login { justify-content: center; }
}

@media (min-width: 1100px) {
  :root { --rail-w: 236px; --content-w: 1120px; --gutter: 48px; }
  .screen { padding-top: 44px; padding-bottom: 72px; }
  .screen.narrow { max-width: calc(760px + 2 * var(--gutter)); }

  /* Full rail: name and labels beside their icons. */
  .tabbar { gap: 4px; padding: 30px 16px 20px; }
  #app .rail-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 3px; padding: 0 8px 22px; margin-bottom: 14px; }
  .rail-brand svg { grid-row: span 2; }
  .rail-name, .rail-place { display: block; }
  .rail-name { font: 800 22px/1 var(--display); letter-spacing: 0.09em; text-transform: uppercase; }
  .rail-place { font: 600 10px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
  .tab { flex-direction: row; justify-content: flex-start; gap: 14px; height: 48px; padding: 0 16px; border-radius: 24px; font-size: 15px; letter-spacing: 0.01em; }
  .tab[aria-current="page"]::after { content: ''; flex: none; width: 6px; height: 6px; margin-left: auto; transform: rotate(45deg); background: var(--gold); }
  .tab .badge { position: static; margin-left: auto; }
  .tab[aria-current="page"]:has(.badge)::after { margin-left: 8px; }
  .rail-avatar { width: 28px; height: 28px; margin: 0 -3px; font-size: 14px; line-height: 28px; }
  .rail-settings { margin-top: auto; height: 56px; }

  /* Today: the bins arch and counts on the left, what's coming up on the right. */
  .screen.today { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px 44px; align-items: start; }
  .screen.today > .today-top { display: none; }
  .screen.today > .heading { grid-column: 1 / -1; }
  .today-main { display: flex; flex-direction: column; gap: 16px; }

  /* Life admin: the list beside the open item. */
  .split { display: grid; grid-template-columns: minmax(400px, 460px) minmax(0, 1fr); width: 100%; max-width: calc(var(--content-w) + 2 * var(--gutter)); margin: 0 auto; }
  .split > .screen { max-width: none; margin: 0; padding-right: 20px; }
  .split-pane { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; scrollbar-width: thin; }
  .split-pane > .screen { max-width: calc(560px + 24px + var(--gutter)); margin: 0; padding-left: 24px; }
  .split-pane .detail-top > .icon-btn { visibility: hidden; }
  .split-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 520px; margin: 0 auto; padding: 72px 32px 48px; border: 1.5px dashed var(--gold-line); border-radius: 260px 260px 24px 24px; text-align: center; }
  .split-empty .sunburst { width: 200px; color: var(--gold); opacity: 0.7; }

  /* Kitchen. */
  .recipe-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .screen.recipe { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 48px; align-items: start; }
  .screen.recipe > .top { grid-column: 1 / -1; }
  .recipe-aside, .recipe-main { display: flex; flex-direction: column; gap: 16px; }
  .shop-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
  .shop-sections { columns: 300px 3; column-gap: 22px; }

  /* Inbox: what's waiting on the left, the tip and what's filed on the right. */
  .screen.inbox { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px 44px; align-items: start; }
  .inbox-main, .inbox-side { display: flex; flex-direction: column; gap: 16px; }

  /* House: the gauge beside its events. */
  .screen.house { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 56px; align-items: center; align-content: start; }
  .screen.house > .heading { grid-column: 1 / -1; }
  .house .gauge svg { width: 280px; height: 280px; }
  .house .event { max-width: 640px; }

  /* Login: the window beside the form. */
  .login { display: grid; grid-template-columns: auto minmax(0, 400px); grid-template-areas: "win form" "foot foot"; align-content: center; align-items: center; justify-content: center; gap: 48px 88px; }
  .login-window { grid-area: win; }
  .login form { grid-area: form; }
  .login .foot { grid-area: foot; margin-top: 0; text-align: center; }
}
/* ---- bins: the hero's pills and the year calendar ------------------------------------------- */

/* The sunburst's rays meet just where the bin pills sit. Fade the rays out before they meet, and
   make the pills solid so nothing shows through them. */
.arch .sunburst {
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 80%);
}
.arch .bin-pill { background: var(--green-deep); border-color: rgba(226, 195, 131, 0.4); }
.arch .bin-pill::before { box-shadow: 0 0 0 1.5px rgba(245, 241, 234, 0.45); }

.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
.cal-key { display: inline-flex; align-items: center; gap: 7px; }
.cal-key .dot, .cal-dots .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }
.cal-key .dot.expected, .cal-dots .dot.expected { background: transparent; box-shadow: inset 0 0 0 1.75px var(--c, var(--muted)); }
.cal-picked { min-height: 20px; font-size: 14px; font-weight: 500; color: var(--green); }

/* One month per row on a phone; as many as fit when the page is wider. */
.cal-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cal-month { padding: 14px 10px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.cal-title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 6px 10px; font: 800 17px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.cal-title span { font-size: 14px; color: var(--gold-ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { padding-bottom: 4px; text-align: center; font: 600 10px/1 var(--sans); letter-spacing: 0.12em; color: var(--faint); }
.cal-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-width: 0; min-height: 42px; padding: 6px 0 4px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 500 13px/1 var(--sans); }
.cal-day.past { color: var(--faint); }
.cal-day.has { background: var(--bg); }
.cal-day.has:hover { background: var(--line-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--green); font-weight: 700; }
.cal-day.next { background: var(--gold-tint); box-shadow: inset 0 0 0 1.5px var(--gold); font-weight: 700; color: #3B3320; }
.cal-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; padding: 0 2px; }
.cal-dots .dot { width: 6px; height: 6px; }
/* Moved off the usual day by the council (bank holidays), or by hand. */
.cal-day.shifted { outline: 1.5px dashed var(--gold-ink); outline-offset: -2px; }
.cal-key .box { flex: none; width: 13px; height: 13px; border-radius: 4px; background: var(--bg); outline: 1.5px dashed var(--gold-ink); outline-offset: -1.5px; }
.arch-note { font-size: 13px; font-weight: 600; color: var(--gold-light); text-align: center; }

.cal-months:not(.all) > .cal-month:nth-child(n+4) { display: none; }
@media (min-width: 900px) {
  .cal-months:not(.all) > .cal-month:nth-child(n+4) { display: block; }
  .cal-more { display: none; }
}

/* ---- things: cars, the house, the boiler -------------------------------------------------- */

.search-row { display: flex; gap: 10px; align-items: center; }
.search-row .search { flex: 1; min-width: 0; }
.view-switch { flex: none; display: flex; padding: 3px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-strong); }
.view-switch button { height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: transparent; color: var(--green); font-weight: 600; font-size: 13px; white-space: nowrap; }
.view-switch button[aria-pressed="true"] { background: var(--green); color: var(--on-green); }
.thing-group { gap: 6px; }
.thing-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 2px; color: var(--ink); text-decoration: none; }
.thing-head > svg { color: var(--gold-ink); }
.thing-badge { flex: none; width: 40px; height: 40px; border-radius: 20px 20px 8px 8px; display: grid; place-items: center; background: var(--green); color: var(--gold-light); }
.thing-name { font: 800 20px/1.1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.thing-empty { padding: 4px 4px 6px 56px; font-size: 14px; color: var(--muted); }
.add-thing { align-self: flex-start; gap: 6px; }
.thing-hero { gap: 8px; }
.thing-photo { width: 168px; height: 124px; object-fit: cover; border-radius: 84px 84px 12px 12px; border: 2px solid var(--gold); }
.thing-glyph { width: 76px; height: 76px; border-radius: 38px 38px 12px 12px; display: grid; place-items: center; border: 1px solid rgba(200, 162, 86, 0.6); color: var(--gold-light); }
.thing-line { font-weight: 600; letter-spacing: 0.08em; color: var(--gold-light); }
.thing-photo-link { font-size: 13px; font-weight: 600; color: var(--on-green-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.readings { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.reading-now { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.reading-now .big { font: 800 40px/1 var(--display); color: var(--green); }
.reading-now .unit { font-weight: 600; color: var(--green); }
.reading-now .when { font-size: 14px; color: var(--muted); }
.reading-rate { font-size: 14px; color: var(--gold-ink); font-weight: 500; }
.reading-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
.reading-form input { min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); font-size: 16px; }
.reading-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.reading-list li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.reading-list li:last-child { border-bottom: 0; }
.reading-list .d { color: var(--muted); white-space: nowrap; }
.reading-list .v { font-weight: 600; }
.reading-list .n { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen > input[type="number"] { min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); font-size: 16px; }
.doc .row-main { gap: 0; }
