@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --paper: #faf6f0; --surface: #fffdf9; --sunk: #f2ebe1;
  --ink: #2b2420; --ink-2: #6f6359; --ink-3: #9a8d80;
  --rule: #e7ded2; --accent: #a34e2e; --accent-ink: #fffaf4; --accent-soft: #f4e2d6;
  --ok: #5c7046; --danger: #a33a2e; --star: #c0782f;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --tab-h: 58px;
  --tint-1: #efe1cf; --tint-2: #e6e3cf; --tint-3: #f1dcd2; --tint-4: #e3dccf;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #1b1815; --surface: #24201c; --sunk: #2c2722;
  --ink: #efe7dd; --ink-2: #b0a396; --ink-3: #85786c;
  --rule: #3a332c; --accent: #e08a63; --accent-ink: #1b1815; --accent-soft: #3a2a22;
  --ok: #9db37f; --danger: #e07a6a; --star: #e2a35b;
  --tint-1: #3a3027; --tint-2: #33322a; --tint-3: #3b2c27; --tint-4: #322d27;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1815; --surface: #24201c; --sunk: #2c2722;
    --ink: #efe7dd; --ink-2: #b0a396; --ink-3: #85786c;
    --rule: #3a332c; --accent: #e08a63; --accent-ink: #1b1815; --accent-soft: #3a2a22;
    --ok: #9db37f; --danger: #e07a6a; --star: #e2a35b;
    --tint-1: #3a3027; --tint-2: #33322a; --tint-3: #3b2c27; --tint-4: #322d27;
    color-scheme: dark;
  }
}
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
html[data-size="1"] { font-size: 19px; }
html[data-size="2"] { font-size: 21px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); min-height: 100vh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--accent); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.hidden { display: none !important; }

#app { max-width: 760px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 8px) 18px calc(var(--tab-h) + env(safe-area-inset-bottom) + 40px); }
.no-tabs #app { padding-bottom: calc(env(safe-area-inset-bottom) + 40px); }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-bottom: 6px; }
.top .grow { flex: 1; min-width: 0; }
.top h1 { font-size: 1.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--ink); flex: none; }
.icon-btn:active { background: var(--sunk); }
.icon-btn svg { width: 22px; height: 22px; }
.back { margin-left: -8px; }

.wordmark { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.9rem; line-height: 1.05; letter-spacing: -0.015em; }
.greeting { color: var(--ink-2); font-size: .88rem; margin-top: 2px; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
.tabbar nav { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tab-h); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); text-decoration: none; font-size: .68rem; font-weight: 500; position: relative; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--accent); }
.tabbar .badge { position: absolute; top: 6px; left: 54%; min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: .62rem; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

/* ---------- inputs ---------- */
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; letter-spacing: .02em; }
.input, textarea.input, select.input { width: 100%; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 11px 12px; outline: none; font-size: 1rem; }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.hint { color: var(--ink-3); font-size: .8rem; margin: 4px 0 0; }

.searchbar { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 0 12px; height: 46px; color: var(--ink-3); text-decoration: none; margin: 6px 0 22px; }
.searchbar svg { width: 19px; height: 19px; flex: none; }
.searchbar input { border: none; background: none; outline: none; flex: 1; height: 100%; font-size: 1rem; min-width: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.btn:active { filter: brightness(.94); }
.btn.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); }
.btn.quiet { background: none; color: var(--accent); padding: 0 6px; }
.btn.danger { background: none; color: var(--danger); border: 1px solid var(--rule); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 19px; height: 19px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.link { color: var(--accent); font-weight: 600; font-size: .92rem; text-decoration: none; }

/* ---------- sections + cards ---------- */
.sec { margin: 26px 0 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec h2 { font-size: 1.3rem; }
.sec .count { color: var(--ink-3); font-size: .85rem; font-family: var(--sans); font-weight: 400; margin-left: 6px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { text-decoration: none; color: var(--ink); display: block; min-width: 0; }
.card .ph { aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; background: var(--sunk); position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 1.02rem; line-height: 1.25; margin-top: 8px; font-weight: 600; }
.card .sub { color: var(--ink-3); font-size: .8rem; margin-top: 2px; }
.card .fav { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.tile { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; }
.tile .t { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.15; color: var(--ink); }
.tile .r { width: 28px; height: 2px; background: var(--accent); margin-bottom: 10px; opacity: .7; }
.tint-1 { background: var(--tint-1); } .tint-2 { background: var(--tint-2); } .tint-3 { background: var(--tint-3); } .tint-4 { background: var(--tint-4); }

.scroller { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller .card { flex: 0 0 42%; scroll-snap-align: start; }
@media (min-width: 620px) { .scroller .card { flex-basis: 28%; } }

.rows { border-top: 1px solid var(--rule); }
.rowi { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); min-height: 56px; }
.rowi .th { width: 52px; height: 52px; border-radius: 5px; overflow: hidden; flex: none; background: var(--sunk); }
.rowi .th img { width: 100%; height: 100%; object-fit: cover; }
.rowi .th .tile { padding: 6px; } .rowi .th .tile .t { font-size: .7rem; } .rowi .th .tile .r { display: none; }
.rowi .tx { flex: 1; min-width: 0; }
.rowi .tx b { display: block; font-weight: 600; font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; }
.rowi .tx small { display: block; color: var(--ink-3); font-size: .8rem; margin-top: 1px; }
.rowi .end { color: var(--ink-3); flex: none; display: flex; align-items: center; gap: 4px; }
.rowi .end svg { width: 18px; height: 18px; }

.list { border-top: 1px solid var(--rule); margin: 6px 0 22px; }
.list > * { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; width: 100%; text-align: left; }
.list > * > .grow { flex: 1; min-width: 0; }
.list svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.list .chev { color: var(--ink-3); width: 16px; height: 16px; }
.list .check { color: var(--accent); }
.group-label { font-size: .74rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .09em; margin: 26px 0 4px; }

.empty { text-align: center; color: var(--ink-2); padding: 50px 20px; }
.empty img { width: 84px; margin: 0 auto 18px; border-radius: 18px; }
.empty h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 6px; }

/* ---------- segmented (underline style) ---------- */
.seg { display: flex; gap: 20px; border-bottom: 1px solid var(--rule); margin: 4px 0 16px; overflow-x: auto; }
.seg button { padding: 10px 0; color: var(--ink-3); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.seg button.on { color: var(--ink); border-color: var(--accent); }
.opts { display: flex; gap: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.opts button { flex: 1; padding: 9px 8px; font-size: .88rem; font-weight: 500; color: var(--ink-2); border-right: 1px solid var(--rule); background: var(--surface); }
.opts button:last-child { border-right: none; }
.opts button.on { background: var(--ink); color: var(--paper); }

/* ---------- recipe ---------- */
.hero { margin: 0 -18px 18px; position: relative; }
.hero img { width: 100%; max-height: 62vh; object-fit: cover; }
@media (min-width: 760px) { .hero { margin: 0 0 18px; } .hero img { border-radius: 8px; } }
.r-title { font-size: 2rem; line-height: 1.1; margin: 4px 0 8px; }
.r-meta { color: var(--ink-2); font-size: .92rem; }
.r-meta .dot { margin: 0 6px; color: var(--ink-3); }
.r-summary { font-family: var(--serif); font-size: 1.12rem; color: var(--ink-2); margin: 10px 0 0; font-style: italic; }
.actions { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 18px 0; }
.actions button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 0 9px; font-size: .7rem; font-weight: 500; color: var(--ink-2); }
.actions button svg { width: 23px; height: 23px; color: var(--ink); }
.actions button.on svg { color: var(--accent); }
.stars { display: flex; gap: 2px; align-items: center; }
.stars button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--rule); }
.stars button.on { color: var(--star); }
.stars svg { width: 24px; height: 24px; }
.r-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.r-sec h2 { font-size: 1.4rem; }
.scaler { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: .9rem; }
.scaler button { width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 6px; display: grid; place-items: center; background: var(--surface); }
.scaler button svg { width: 16px; height: 16px; }
.scaler span { min-width: 92px; text-align: center; }
.units { display: flex; gap: 14px; font-size: .82rem; margin: -2px 0 10px; }
.units button { color: var(--ink-3); font-weight: 600; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.units button.on { color: var(--ink); border-color: var(--accent); }
.ing-group { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); margin: 18px 0 4px; }
.ings { list-style: none; padding: 0; margin: 0; }
.ings li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--rule); align-items: baseline; cursor: pointer; }
.ings li .q { flex: none; min-width: 74px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ings li .q:empty { min-width: 0; }
.ings li.done { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.ings li.scaled .q { color: var(--accent); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 12px 0; line-height: 1.6; }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--accent); font-weight: 500; }
.timer-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .84rem; font-weight: 600; color: var(--accent); border-bottom: 1px solid currentColor; }
.timer-link svg { width: 15px; height: 15px; }
.notes-box { background: var(--accent-soft); border-radius: 8px; padding: 4px; }
.notes-box textarea { background: transparent; border: none; min-height: 70px; }
.notes-box textarea:focus { box-shadow: none; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .92rem; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.tags { color: var(--ink-2); font-size: .88rem; }
.tags span + span::before { content: " · "; color: var(--ink-3); }

/* ---------- cook mode ---------- */
.cook { position: fixed; inset: 0; z-index: 50; background: var(--paper); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 6px) 20px calc(env(safe-area-inset-bottom) + 14px); }
.cook .bar { display: flex; align-items: center; gap: 8px; }
.cook .bar .grow { flex: 1; text-align: center; color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.cook .progress { height: 3px; background: var(--rule); border-radius: 2px; margin: 8px 0 0; overflow: hidden; }
.cook .progress i { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.cook .stage { flex: 1; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; padding: 20px 4px; }
.cook .num { font-family: var(--serif); color: var(--accent); font-size: 1.1rem; font-style: italic; margin-bottom: 10px; }
.cook .text { font-family: var(--serif); font-size: 1.75rem; line-height: 1.38; }
.cook .nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.cook .nav .btn { height: 58px; font-size: 1.05rem; }
.cook .ingpanel { position: absolute; inset: auto 0 0 0; max-height: 70vh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--rule); border-radius: 14px 14px 0 0; padding: 18px 20px calc(env(safe-area-inset-bottom) + 20px); box-shadow: 0 -10px 30px rgba(0,0,0,.12); }
.wake-note { text-align: center; color: var(--ink-3); font-size: .75rem; margin-top: 8px; }

.timers { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); z-index: 60; display: flex; flex-direction: column; gap: 6px; width: min(92vw, 420px); }
.cooking .timers { bottom: calc(env(safe-area-inset-bottom) + 112px); }
.timer { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 9px 10px 9px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.timer .lbl { flex: 1; font-size: .82rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer .tm { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; }
.timer button { color: var(--paper); width: 32px; height: 32px; display: grid; place-items: center; opacity: .85; }
.timer button svg { width: 18px; height: 18px; }
.timer.ring { background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.02); } }

/* ---------- sheets / toast ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(20,14,10,.38); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--paper); width: 100%; max-width: 760px; max-height: 88vh; overflow-y: auto; border-radius: 14px 14px 0 0; padding: 8px 20px calc(env(safe-area-inset-bottom) + 22px); animation: up .2s ease-out; }
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--rule); margin: 4px auto 12px; }
.sheet h2 { font-size: 1.35rem; margin-bottom: 12px; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 12px); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-size: .9rem; z-index: 100; box-shadow: 0 6px 20px rgba(0,0,0,.18); max-width: 90vw; animation: fade .15s; }
.offline { background: var(--sunk); color: var(--ink-2); font-size: .8rem; text-align: center; padding: 6px; border-radius: 6px; margin-bottom: 8px; }
.banner { border-left: 3px solid var(--star); background: var(--accent-soft); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 0 0 18px; font-size: .9rem; }
.banner ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- queue ---------- */
.q-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.q-item .th { width: 54px; height: 54px; border-radius: 5px; overflow: hidden; background: var(--sunk); flex: none; }
.q-item .th img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.q-item .tx { flex: 1; min-width: 0; }
.q-item .tx b { display: block; font-family: var(--serif); font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-item .tx small { color: var(--ink-3); font-size: .8rem; }
.st-ready { color: var(--ok) !important; font-weight: 600; }
.st-failed { color: var(--danger) !important; font-weight: 600; }
.spin { width: 16px; height: 16px; border: 2px solid var(--rule); border-top-color: var(--accent); border-radius: 50%; display: inline-block; animation: rot .8s linear infinite; vertical-align: -3px; margin-right: 4px; }
@keyframes rot { to { transform: rotate(360deg); } }

.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.thumbs .t { width: 78px; height: 78px; border-radius: 6px; overflow: hidden; position: relative; background: var(--sunk); }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumbs .t .x { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 12px; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.thumbs .t .x svg { width: 14px; height: 14px; }
.thumbs .t.cover { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.thumbs .t .cv { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: .62rem; text-align: center; padding: 2px; }
.thumbs .add { width: 78px; height: 78px; border-radius: 6px; border: 1.5px dashed var(--rule); display: grid; place-items: center; color: var(--ink-3); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.checks label { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: .95rem; }
.checks input { width: 19px; height: 19px; accent-color: var(--accent); flex: none; }

.viewer { position: fixed; inset: 0; background: #000; z-index: 90; overflow-y: auto; padding: calc(env(safe-area-inset-top) + 50px) 0 40px; }
.viewer img { width: 100%; margin-bottom: 8px; }
.viewer .close { position: fixed; top: calc(env(safe-area-inset-top) + 8px); right: 10px; color: #fff; }

/* plan */
.day { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.day h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 4px; }
.day.today h3 { color: var(--accent); }
.slot { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.slot .k { width: 76px; color: var(--ink-3); font-size: .84rem; flex: none; }
.slot .v { flex: 1; min-width: 0; }
.slot .v a { color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.02rem; }
.slot .v .add { color: var(--ink-3); font-size: .88rem; }
.weeknav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 6px; }
.weeknav b { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.shop li { list-style: none; display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.shop ul { padding: 0; margin: 0; }
.shop input[type=checkbox] { width: 21px; height: 21px; accent-color: var(--accent); flex: none; }
.shop .grow { flex: 1; min-width: 0; }
.shop li.done .grow { color: var(--ink-3); text-decoration: line-through; }
.shop small { color: var(--ink-3); display: block; font-size: .76rem; }

/* login */
.login { max-width: 380px; margin: 0 auto; padding-top: 10vh; text-align: center; }
.login .logo { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 22px; box-shadow: 0 8px 28px rgba(120,60,30,.22); }
.login .wordmark { font-size: 2.4rem; }
.login p.sub { color: var(--ink-2); margin: 8px 0 30px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.login form { text-align: left; }
.login .err { color: var(--danger); font-size: .9rem; min-height: 1.4em; margin: 4px 0 8px; }
.signoff { margin-top: 44px; color: var(--ink-3); font-family: var(--serif); font-style: italic; font-size: .95rem; }

.about { text-align: center; padding: 30px 0 10px; color: var(--ink-3); }
.about img { width: 56px; border-radius: 13px; margin: 0 auto 10px; }
.about .wordmark { font-size: 1.3rem; color: var(--ink-2); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; white-space: pre-wrap; word-break: break-word; background: var(--sunk); padding: 12px; border-radius: 8px; max-height: 200px; overflow-y: auto; }
.code-big { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; letter-spacing: .12em; text-align: center; padding: 14px; background: var(--sunk); border-radius: 8px; margin: 10px 0; }

/* ---------- print ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; color: #000; font-size: 11.5pt; }
  #app { max-width: none; padding: 0; }
  .tabbar, .top, .actions, .no-print, .timers, .units, .scaler button, .toast, .offline, .timer-link { display: none !important; }
  .hero { margin: 0 0 12pt; } .hero img { max-height: 70mm; border-radius: 4px; }
  body.print-nophoto .hero { display: none; }
  .r-title { font-size: 22pt; }
  .ings { columns: 2; column-gap: 18pt; } .ings li { break-inside: avoid; border: none; padding: 3pt 0; }
  .steps li { break-inside: avoid; padding: 5pt 0; }
  .notes-box { background: none; border: 1px solid #ccc; } .notes-box textarea { display: none; } .notes-box .print-notes { display: block !important; padding: 8pt; }
  a { color: #000; text-decoration: none; }
}
.print-notes { display: none; white-space: pre-wrap; }
