/* Layout: one calm column, like a recipe card on the counter. Search sits on top and stays put; a recipe opens full-width. */
:root {
  --bg: #F3F6F1; --surface: #FFFFFF; --ink: #1C2620; --muted: #5B685F; --line: #D9E1D6;
  --accent: #2C6A4C; --accent-ink: #FFFFFF; --accent-soft: #E1EEE6; --chip: #E7ECE4;
  --tip-bg: #FFF3D3; --tip-ink: #5F4300; --tip-line: #E2AE34; --danger: #A63A2B;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
  --love-bg: #FFE4EA; --love-ink: #8A1538; --love-card: #FFFFFF;
  --c1: #2C6A4C; --c2: #C2410C; --c3: #6D28D9; --c4: #0E7490;
  --c5: #B91C1C; --c6: #A16207; --c7: #BE185D; --c8: #1D4ED8;
  --t1: #D97706; --t2: #2563EB; --t3: #DB2777; --t4: #059669; --t5: #7C3AED; --t6: #0891B2; --alarm: #DC2626; --on-timer: #FFFFFF;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111714; --surface: #19211D; --ink: #E7EEE9; --muted: #9AA9A0; --line: #2B3731;
  --accent: #7FC7A1; --accent-ink: #0D1A13; --accent-soft: #1E3128; --chip: #222C27;
  --tip-bg: #2D250F; --tip-ink: #F1D488; --tip-line: #B8891E; --danger: #F08A78;
  --love-bg: #3A1420; --love-ink: #FFC2D1; --love-card: #4A1A29;
  --c1: #7FC7A1; --c2: #FB923C; --c3: #C4B5FD; --c4: #67E8F9;
  --c5: #FCA5A5; --c6: #FDE047; --c7: #F9A8D4; --c8: #93C5FD;
  --t1: #F59E0B; --t2: #60A5FA; --t3: #F472B6; --t4: #34D399; --t5: #A78BFA; --t6: #22D3EE; --alarm: #F87171; --on-timer: #0D1A13; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #111714; --surface: #19211D; --ink: #E7EEE9; --muted: #9AA9A0; --line: #2B3731;
  --accent: #7FC7A1; --accent-ink: #0D1A13; --accent-soft: #1E3128; --chip: #222C27;
  --tip-bg: #2D250F; --tip-ink: #F1D488; --tip-line: #B8891E; --danger: #F08A78;
  --love-bg: #3A1420; --love-ink: #FFC2D1; --love-card: #4A1A29;
  --c1: #7FC7A1; --c2: #FB923C; --c3: #C4B5FD; --c4: #67E8F9;
  --c5: #FCA5A5; --c6: #FDE047; --c7: #F9A8D4; --c8: #93C5FD;
  --t1: #F59E0B; --t2: #60A5FA; --t3: #F472B6; --t4: #34D399; --t5: #A78BFA; --t6: #22D3EE; --alarm: #F87171; --on-timer: #0D1A13; color-scheme: dark }

html, body { background: var(--bg); color: var(--ink); }
body { margin: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body { font-family: var(--body); font-size: 17px; line-height: 1.5; }
.wrap { max-width: 720px; margin: 0 auto; padding-inline: 16px; padding-block: 0 48px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
a { color: var(--accent); }

/* ---------- top bar ---------- */
.top { position: sticky; top: var(--tray-h, 0px); z-index: 5; background: var(--bg);
  padding-block: 14px 10px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.brand h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.brand .count { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.search { position: relative; }
.search input { width: 100%; box-sizing: border-box; padding: 13px 44px 13px 44px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 1.05rem; }
.search input:focus { border-color: var(--accent); outline: none; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--chip);
  width: 30px; height: 30px; border-radius: 50%; font-size: 1.1rem; line-height: 1; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid transparent; background: var(--chip); border-radius: 999px; padding: 6px 13px; font-size: 0.92rem; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.chip.time { border-color: var(--line); background: transparent; }
.chip.time[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }

/* ---------- add box ---------- */
.add { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.add-row { display: flex; gap: 8px; }
.add-row textarea { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); resize: none; font: inherit; line-height: 1.35; min-height: 4.1em; }
.add-row textarea:focus { border-color: var(--accent); outline: none; }
.add-row { align-items: flex-start; }
.btn { border: 0; border-radius: 10px; padding: 11px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); font-weight: 400; }
.btn.danger { background: var(--danger); color: var(--surface); }
.add label { font-weight: 700; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
.queue { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.queue li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; background: var(--tip-bg); color: var(--tip-ink); border-radius: 8px; padding: 6px 6px 6px 10px; }
.queue li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue li.failed { background: var(--chip); color: var(--ink); }
.queue button { border: 0; background: transparent; color: inherit; font-size: 1.1rem; padding: 2px 8px; }

/* ---------- list ---------- */
.list { display: grid; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.card { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.card:hover { border-color: var(--accent); }
.thumb { flex: none; width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--chip); }
.thumb.none { display: grid; place-items: center; color: var(--muted); font-family: var(--display); font-size: 1.6rem; }
.card-body { min-width: 0; display: grid; gap: 2px; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; }
.card-type { color: var(--muted); font-size: 0.92rem; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-meta .why { color: var(--accent); }
mark { background: var(--tip-bg); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { margin-top: 28px; text-align: center; color: var(--muted); display: grid; gap: 6px; justify-items: center; }
.empty h2 { color: var(--ink); font-size: 1.25rem; }
.notice { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--chip); }

/* ---------- recipe ---------- */
.recipe { padding-block: 14px 0; display: grid; gap: 22px; }
.back { justify-self: start; border: 0; background: var(--chip); border-radius: 999px; padding: 8px 14px; }
.hero { width: 100%; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); background: var(--chip); }
.title-row { display: flex; gap: 10px; align-items: flex-start; }
.title-row h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); font-weight: 800; letter-spacing: -0.015em; flex: 1; min-width: 0; }
.icon-btn { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 11px; font-size: 0.9rem; color: var(--muted); }
.title-edit { display: grid; gap: 8px; }
.title-edit input { font-family: var(--display); font-size: 1.5rem; font-weight: 600; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--surface); width: 100%; box-sizing: border-box; }
.title-edit .row { display: flex; gap: 8px; flex-wrap: wrap; }
.orig { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.kind { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kind span { background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 0.95rem; }
.kind span.course { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.summary { margin: 10px 0 0; color: var(--muted); }

.times { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.times div { padding: 12px 8px; text-align: center; display: grid; gap: 2px; }
.times div + div { border-left: 1px solid var(--line); }
.times .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.times .val { font-family: var(--display); font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.times .total .val { color: var(--accent); }
.serves { color: var(--muted); font-size: 0.95rem; margin-top: -12px; }

section h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.ready { background: var(--tip-bg); color: var(--tip-ink); border-radius: var(--r); padding: 14px 16px; }
.ready h3 { color: var(--tip-ink); font-size: 1.1rem; margin-bottom: 6px; }
.ready ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

.ings { list-style: none; margin: 0; padding: 0; display: grid; }
.ing-group { font-weight: 700; margin: 12px 0 4px; color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ing { display: grid; grid-template-columns: 28px 6.5em 1fr; gap: 6px 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.ing input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; align-self: center; }
.ing .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.ing .note { color: var(--muted); font-size: 0.92rem; }
.ing.done .amt, .ing.done .what { text-decoration: line-through; color: var(--muted); }
@media (max-width: 420px) { .ing { grid-template-columns: 28px 5.2em 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.phase { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--accent); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.step-head { display: flex; gap: 12px; align-items: flex-start; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; border: 0; }
.step.done { opacity: 0.55; }
.step.done .num { background: var(--chip); color: var(--muted); }
.step p { margin: 0; font-size: 1.08rem; min-width: 0; }
.pic { margin: 0; display: grid; gap: 6px; }
.pic img { width: 100%; max-width: 100%; border-radius: 10px; display: block; }
.pic figcaption { color: var(--muted); font-size: 0.92rem; }
section > .pic { margin-bottom: 14px; }
.tip { display: flex; gap: 10px; background: var(--tip-bg); color: var(--tip-ink); border-left: 4px solid var(--tip-line); border-radius: 8px; padding: 10px 12px; font-size: 0.98rem; }
.tip b { flex: none; }
.step-hint { color: var(--muted); font-size: 0.85rem; margin: -8px 0 0; }

.foot { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.foot .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.source { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; }
.source .lbl { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.source > a { overflow-wrap: anywhere; font-size: 0.95rem; }
a.btn { text-decoration: none; display: inline-block; }
.confirm { background: var(--chip); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 0.95rem; z-index: 10; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) { .card, .chip, .step { transition: border-color .15s, background-color .15s, opacity .2s; } }

/* ---------- sign-in ---------- */
.login { max-width: 360px; padding-block: 12vh 40px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.login img { border-radius: 18px; }
.login h1 { font-size: 2rem; font-weight: 800; }
.login form { display: grid; gap: 12px; width: 100%; text-align: left; }
.login label { font-weight: 700; }
.login input[type=password] { padding: 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-size: 1.1rem; }
.login .trust { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.login .trust input { width: 20px; height: 20px; accent-color: var(--accent); }
.login .error { color: var(--danger); margin: 0; }

/* ---------- Janis's greeting ---------- */
.love { position: fixed; inset: 0; z-index: 20; background: var(--love-bg); display: grid; place-items: center; padding: 24px; overflow: hidden; cursor: pointer; animation: love-in .5s ease-out; }
.love.leaving { animation: love-out .6s ease-in forwards; }
.love-card { position: relative; z-index: 1; background: var(--love-card); color: var(--love-ink); border-radius: 28px; padding: 32px 28px; max-width: 420px; text-align: center; box-shadow: 0 18px 50px rgba(138, 21, 56, .22); animation: love-pop .8s cubic-bezier(.2, 1.4, .4, 1) both .15s; }
.love-big { font-size: 4.5rem; line-height: 1; animation: love-beat 1.1s ease-in-out infinite .9s; }
.love-msg { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.15; margin: 14px 0 10px; text-wrap: balance; }
.love-tap { margin: 0; font-size: .95rem; opacity: .75; }
.love-hearts span { position: absolute; bottom: -3rem; animation-name: love-float; animation-timing-function: ease-in; animation-iteration-count: infinite; opacity: 0; }
@keyframes love-in { from { opacity: 0 } }
@keyframes love-out { to { opacity: 0 } }
@keyframes love-pop { from { transform: scale(.4); opacity: 0 } }
@keyframes love-beat { 0%, 100% { transform: scale(1) } 15% { transform: scale(1.22) } 30% { transform: scale(1) } 45% { transform: scale(1.14) } }
@keyframes love-float { 0% { transform: translateY(0) rotate(-10deg); opacity: 0 } 10% { opacity: .95 } 50% { transform: translateY(-55vh) rotate(12deg) } 100% { transform: translateY(-110vh) rotate(-8deg); opacity: 0 } }
@media (prefers-reduced-motion: reduce) {
  .love, .love-card, .love-big, .love.leaving { animation: none; }
  .love-hearts { display: none; }
}

/* ---------- Recipes Together Timetable ---------- */
.brand { flex-wrap: wrap; }
.brand .count { margin-left: auto; }
.together-btn { border: 1.5px solid var(--accent); background: transparent; color: var(--accent); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.92rem; }
.together-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.card { position: relative; }
.card.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.pick { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--accent-ink); }
.pick.on { background: var(--accent); border-color: var(--accent); }
.pick-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pick-text { display: grid; gap: 2px; min-width: 0; }
.pick-text span { color: var(--muted); font-size: 0.9rem; }
.pick-actions { display: flex; gap: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
body:has(.pick-bar:not([hidden])) .wrap { padding-bottom: 120px; }

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; flex: none; vertical-align: -1px; }
.dot.c1 { background: var(--c1); } .dot.c2 { background: var(--c2); } .dot.c3 { background: var(--c3); } .dot.c4 { background: var(--c4); }
.dot.c5 { background: var(--c5); } .dot.c6 { background: var(--c6); } .dot.c7 { background: var(--c7); } .dot.c8 { background: var(--c8); }
.pick-chips { flex-basis: 100%; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; order: 2; }
.pick-chips::-webkit-scrollbar { display: none; }
.pick-chip { flex: none; display: flex; align-items: center; gap: 2px; max-width: 75vw; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 5px 10px; font-size: .9rem; }
.pick-chip .pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 6px; }
.pick-actions { order: 3; }
.together .eyebrow { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--accent); font-weight: 700; }
.together h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 800; }
.tt-legend { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.tt-legend a { color: var(--ink); }
.tt-when { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tt-when label { font-weight: 700; }
.tt-when input { font-size: 1.05rem; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); }
.tt-pre { list-style: none; padding-left: 0 !important; }
.tt { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tt-row { display: grid; grid-template-columns: 4.6em 1fr 36px; gap: 10px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.tt-row.busy { border-left: 5px solid var(--accent); }
.tt-row.free { border-left: 5px dashed var(--line); background: var(--bg); }
.tt-row.end { grid-template-columns: 4.6em 1fr; border-left: 5px solid var(--tip-line); }
.tt-time { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.02rem; padding-top: 2px; }
.tt-body { min-width: 0; display: grid; gap: 6px; }
.tt-who { font-size: .85rem; color: var(--muted); display: flex; align-items: center; }
.tt-body p { margin: 0; font-size: 1.04rem; }
.tt-meta { font-size: .85rem; color: var(--muted); }
.tt-row.busy .tt-meta { color: var(--accent); font-weight: 700; }
.tt-tick { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-weight: 800; color: var(--accent-ink); }
.tt-row.done { opacity: .55; }
.tt-row.done .tt-tick { background: var(--accent); border-color: var(--accent); }
@media (max-width: 420px) { .tt-row { grid-template-columns: 4.2em 1fr 32px; gap: 8px; padding: 10px; } }

/* ---------- waiting list with live status ---------- */
.queue li { align-items: flex-start; padding: 10px 6px 10px 12px; }
.q-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.q-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-clock, .spin { flex: none !important; }
.q-head b { flex: none; }
.q-clock { font-variant-numeric: tabular-nums; font-weight: 700; background: var(--surface); color: var(--ink); border-radius: 6px; padding: 0 6px; }
.q-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.q-note { font-size: .88rem; }
.queue li.q-working { background: var(--accent-soft); color: var(--ink); }
.queue li.q-failed { background: var(--chip); color: var(--ink); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--accent); border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }

/* ---------- cooking timers ---------- */
body { padding-top: calc(env(safe-area-inset-top, 0px) + var(--tray-h, 0px)); }
.timer-tray { position: fixed; top: 0; left: 0; right: 0; z-index: 9; background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,.10); padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 6px; display: grid; gap: 6px; max-height: 45vh; overflow-y: auto; }
.timer { --tc: var(--t1); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "what time" "what btns"; gap: 2px 10px; align-items: center;
  border-left: 8px solid var(--tc); background: var(--bg); border-radius: 10px; padding: 6px 8px 6px 10px; }
.timer.t1 { --tc: var(--t1); } .timer.t2 { --tc: var(--t2); } .timer.t3 { --tc: var(--t3); } .timer.t4 { --tc: var(--t4); } .timer.t5 { --tc: var(--t5); } .timer.t6 { --tc: var(--t6); }
.timer-what { grid-area: what; min-width: 0; display: grid; color: var(--ink); text-decoration: none; }
.timer-step { font-size: .78rem; font-weight: 700; color: var(--tc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer-label { font-size: .92rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.timer-time { grid-area: time; justify-self: end; font-family: var(--display); font-weight: 800; font-size: 1.45rem; font-variant-numeric: tabular-nums; color: var(--tc); }
.timer-btns { grid-area: btns; display: flex; gap: 4px; justify-self: end; }
.timer-btns button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 3px 9px; font-size: .85rem; }
.timer.paused .timer-time { opacity: .55; }
.timer.done { border-left-color: var(--alarm); background: var(--alarm); color: #fff; animation: alarm 1s steps(2) infinite; }
.timer.done .timer-step, .timer.done .timer-time, .timer.done .timer-label { color: #fff; }
.timer.done .timer-btns button { background: #fff; color: var(--alarm); border-color: #fff; }
.timer.done .timer-stop { font-weight: 800; }
.timer-note { margin: 0; font-size: .75rem; color: var(--muted); text-align: center; }
@keyframes alarm { 50% { filter: brightness(1.25); } }

.step-timer { justify-self: start; border: 2px solid var(--accent); background: transparent; color: var(--accent); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.step-timer.running { color: var(--on-timer); border-color: transparent; }
.step-timer.done { color: #fff; }
.step-timer.t1 { background: var(--t1); } .step-timer.t2 { background: var(--t2); } .step-timer.t3 { background: var(--t3); }
.step-timer.t4 { background: var(--t4); } .step-timer.t5 { background: var(--t5); } .step-timer.t6 { background: var(--t6); }
.step-timer.done { background: var(--alarm); animation: alarm 1s steps(2) infinite; }
.tt-body .step-timer { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .timer.done, .step-timer.done { animation: none; } }

/* timer names: "Sauce Timer" is the biggest thing on each timer */
.timer-name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.15; color: var(--tc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer .timer-step { color: var(--muted); font-weight: 400; }
.timer.done .timer-name { color: #fff; }

/* messages about adding a recipe stay until OK is tapped */
.add-msg { display: grid; gap: 10px; background: var(--tip-bg); color: var(--tip-ink); border-left: 5px solid var(--tip-line); border-radius: 10px; padding: 12px 14px; }
.add-msg p { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.add-msg .btn { justify-self: start; padding: 8px 22px; }
.toast { cursor: pointer; text-align: center; line-height: 1.4; }
.toast { border-radius: 14px; }

/* screenshots for Facebook recipes */
.shots-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.shots-btn { cursor: pointer; display: inline-block; }
.shots-row .hint { flex: 1; min-width: 12em; }
.shots { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.shot { position: relative; width: 74px; }
.shot img { width: 74px; height: 120px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); display: block; }
.shot button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font-size: 1rem; line-height: 1; }
.shots .hint { flex-basis: 100%; }
