/* Survive Christmas Chaos, in Energising Choices' brand: Instrument Serif for headlines and italic emphasis, Poppins for text,
   Mynerve for the handwritten notes. Her five colours only: sage, deep green, dusty pink, cream white and maroon.
   food+ METHOD balance: both greens lead, cream white throughout, small touches of dusty pink. */

@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Mynerve"; src: url("../assets/fonts/Mynerve-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  /* her five colours */
  --lime: #BED079;      /* sage (light green) */
  --green: #344C19;     /* deep green */
  --pink: #DAA69C;      /* dusty pink */
  --cream: #FAF8F0;     /* her white: every background and card. Never pure white. */
  --maroon: #6E1916;
  /* soft tints, mixed only from the five above */
  --sage: color-mix(in srgb, #BED079 34%, #FAF8F0);
  --blush: color-mix(in srgb, #DAA69C 30%, #FAF8F0);
  --line: color-mix(in srgb, #BED079 50%, #FAF8F0);
  --panel: color-mix(in srgb, #FAF8F0 9%, #344C19);
  --muted: color-mix(in srgb, #344C19 84%, #FAF8F0);
  --r: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--green);
  font: 400 16px/1.55 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

#app { max-width: 640px; margin: 0 auto; padding-bottom: calc(120px + var(--safe-b)); }
.tool, .foot { margin-left: 18px; margin-right: 18px; }

/* ---------- hero ---------- */
.hero {
  background: var(--green); color: var(--cream);
  padding: calc(22px + env(safe-area-inset-top, 0px)) 20px 26px;
  border-radius: 0 0 30px 30px;
}
.hero-logo { height: 58px; width: auto; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--maroon); margin-bottom: 2px; }
.kicker.light { color: var(--pink); margin-top: 18px; }
.hero h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 3.4rem; line-height: 1; margin: 2px 0 10px; color: var(--cream); }
.hero h1 em { font-style: italic; color: var(--lime); }
.hero-lead { font-size: 1.02rem; max-width: 38ch; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 0; }
.photos li { aspect-ratio: 1; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photos img { width: 86%; height: 86%; object-fit: contain; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.stats li { background: var(--panel); border-radius: 14px; padding: 12px 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stats b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.95rem; line-height: 1; color: var(--lime); }
.stats span { font-size: .74rem; line-height: 1.3; }
.staples { margin-top: 16px; background: var(--lime); color: var(--green); border-radius: 14px; padding: 12px 14px 14px; }
.staples-h { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--maroon); margin-bottom: 2px; }
.staples p:not(.staples-h) { font-size: .92rem; font-weight: 600; line-height: 1.4; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: var(--cream); font-weight: 600; font-size: .98rem; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: .88rem; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--maroon); text-decoration: underline; font-weight: 600; font-size: .88rem; min-height: 44px; }

/* ---------- the tool ---------- */
.tool { margin-top: 30px; }
.tool-h { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 2.2rem; line-height: 1.1; }
.tool-h em { font-style: italic; }
.how { font-size: .92rem; margin: 4px 0 16px; color: var(--muted); }

.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 4px; border: 2px solid var(--green); border-radius: 999px; }
.mode { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 46px; padding: 6px 3px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: .78rem; line-height: 1.15; color: var(--green); }
.mode .step { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .66rem; font-weight: 700; }
.mode[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.mode[aria-pressed="true"] .step { background: var(--lime); border-color: var(--lime); color: var(--green); }

.hint { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.28rem; line-height: 1.3; margin: 14px 2px 2px; }
.hint-sub { font-size: .8rem; color: var(--muted); margin: 0 2px 16px; }

.panel { display: none; }
body[data-tab="stock"] .panel[data-panel="stock"],
body[data-tab="week"] .panel[data-panel="week"],
body[data-tab="party"] .panel[data-panel="party"],
body[data-tab="hands"] .panel[data-panel="hands"] { display: block; }

/* ---------- summary ---------- */
.summary { border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--cream); margin-bottom: 18px; }
.sum-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.big { font-family: "Instrument Serif", Georgia, serif; font-size: 3.4rem; line-height: 1; color: var(--green); }
.big small { font-size: 1.5rem; color: var(--muted); }
.lab { font-size: .82rem; font-weight: 600; }
.sum-sub { font-size: .82rem; color: var(--muted); max-width: 24ch; }
.sum-note { font-size: .86rem; font-weight: 600; margin-top: 12px; line-height: 1.45; }
.sum-prog { height: 8px; border-radius: 999px; background: var(--sage); margin-top: 14px; overflow: hidden; }
.sum-prog i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .2s; }

/* ---------- sections (accordions) ---------- */
.sec { margin-bottom: 14px; }
.sec > h2 { font-size: 1rem; font-weight: 400; }
.sec-head { display: grid; grid-template-columns: 1fr 20px; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 14px; border: 0; border-radius: 14px; background: var(--lime); color: var(--green); text-align: left; }
.sec-head .t { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.sec-head .m { display: block; font-weight: 400; font-size: .76rem; }
.sec-head svg { width: 18px; height: 18px; transition: transform .15s; }
.sec-head[aria-expanded="false"] svg { transform: rotate(-90deg); }
.sec-head.soft { background: var(--sage); }
.sec-body { padding: 2px 2px 0; }
.sec-intro { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.12rem; line-height: 1.3; margin: 10px 2px 4px; }

.rows > li { border-bottom: 1.5px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px; }
.row.solo { grid-template-columns: 1fr; }
.check { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 4px 6px 2px; border: 0; background: none; text-align: left; width: 100%; }
.check .name { flex: 1; font-size: .96rem; line-height: 1.35; }
.tick { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--green); display: inline-flex; align-items: center; justify-content: center; background: transparent; }
.tick svg { width: 16px; height: 16px; opacity: 0; }
.check[aria-pressed="true"] .tick { background: var(--green); }
.check[aria-pressed="true"] .tick svg { opacity: 1; }
.row[data-state="done"] .name-t { color: var(--muted); }
.item-note { display: block; font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.05rem; line-height: 1.25; color: var(--muted); }
.item-note:empty { display: none; }

.side { display: flex; align-items: center; }
.pencil { display: inline-flex; align-items: center; justify-content: center; width: 48px; min-height: 48px; border: 0; background: none; color: var(--muted); }
.pencil svg { width: 17px; height: 17px; }
.go { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; min-height: 40px; margin-right: 6px; border-radius: 999px; border: 1.5px solid var(--green); background: transparent; font-weight: 600; font-size: .82rem; color: var(--green); }

.edit { background: var(--blush); border-radius: 14px; padding: 14px; margin: 0 0 10px; display: grid; gap: 12px; }
.edit label, .add label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; }
.edit input[type="text"], .add input[type="text"], .ev-in input[type="text"] { width: 100%; min-height: 44px; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 8px 12px; font-size: 16px; outline: none; }
.edit input[type="text"]:focus, .add input[type="text"]:focus, .ev-in input[type="text"]:focus { border-color: var(--green); }
.edit-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }

.add-open { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--maroon); font-weight: 600; font-size: .9rem; }
.add-open svg { width: 15px; height: 15px; }
.add { background: var(--blush); border-radius: 14px; padding: 14px; margin: 8px 0 4px; display: grid; gap: 12px; }
.add select { width: 100%; min-height: 44px; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 8px 12px; font-size: 16px; color: var(--green); }
.add select:focus { border-color: var(--green); outline: none; }
.add-err { font-size: .84rem; color: var(--maroon); font-weight: 600; }
.add-err:empty { display: none; }
.add-top-row { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: -4px 0 16px; }
.add-top-hint { font-size: .78rem; color: var(--muted); flex: 1 1 180px; line-height: 1.35; }

.gone { margin-top: 22px; }
.gone h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.gone li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1.5px solid var(--line); padding: 2px 2px; }
.gone .name { font-size: .92rem; color: var(--muted); }

.notes { margin-top: 26px; }
.notes h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.notes .hint-sub { margin: 2px 0 10px; }
.notes textarea { width: 100%; border: 2px solid var(--line); background: var(--cream); border-radius: var(--r); padding: 12px 14px; font-size: 16px; line-height: 1.5; resize: vertical; min-height: 110px; outline: none; }
.notes textarea:focus { border-color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.print-only { display: none; }
.print-only:empty { display: none !important; }
#print-notes { white-space: pre-wrap; font-weight: 400; }

/* ---------- my week ---------- */
.wk { display: grid; gap: 6px; margin-bottom: 18px; }
.wk-head, .wk-row { display: grid; grid-template-columns: 42px repeat(4, 1fr); gap: 6px; align-items: center; }
.wk-head span { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.wk-day { font-weight: 700; font-size: .86rem; }
.wk-cell { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sage); color: var(--maroon); font-weight: 700; font-size: .72rem; padding: 0 2px; }
.wk-cell[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); }
.evs { display: grid; gap: 10px; margin-top: 4px; }
.ev { border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px 12px; background: var(--cream); }
.ev h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.ev p { font-size: .88rem; line-height: 1.45; margin-top: 4px; }
.ev p .hand { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.05rem; color: var(--muted); }
.evs-h { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.7rem; line-height: 1.1; margin: 22px 0 8px; }

/* ---------- party plan ---------- */
.ev-in { margin-bottom: 16px; }
.ev-in label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--sage); border: 1.5px solid var(--line); font-weight: 600; font-size: .86rem; }
.info-list { display: grid; gap: 10px; padding: 10px 2px 2px; }
.info-list li { position: relative; padding-left: 22px; font-size: .92rem; line-height: 1.5; }
.info-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--green); }
.ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; margin: 8px 0 14px; }
.ladder .chip:nth-child(3) { background: var(--blush); border-color: var(--blush); color: var(--maroon); }
.ladder .chip:nth-child(4) { background: var(--pink); border-color: var(--pink); color: var(--maroon); }
.ladder .chip + .chip::before { content: "\2192"; margin-right: 6px; font-weight: 700; }
.fine { font-size: .78rem; color: var(--muted); margin-top: 10px; padding: 0 2px; }
.holds { display: grid; gap: 10px; padding: 10px 0 2px; }
.hold { border-radius: 14px; background: var(--cream); border: 1.5px solid var(--line); padding: 12px 14px; }
.hold h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.hold p { font-size: .9rem; line-height: 1.5; margin-top: 3px; }
.remind { margin-top: 18px; background: var(--green); color: var(--cream); border-radius: var(--r); padding: 18px 18px 20px; }
.remind .remind-h { font-family: "Instrument Serif", Georgia, serif; font-size: 1.55rem; line-height: 1.2; color: var(--lime); }
.remind p + p { margin-top: 8px; font-size: .92rem; }
.picks-h { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.15rem; line-height: 1.3; margin: 8px 2px 0; }

/* the part nobody talks about: you're allowed to enjoy your night */
.enjoy { background: var(--lime); color: var(--green); border-radius: var(--r); padding: 16px 18px 18px; margin-bottom: 18px; }
.enjoy .kicker { margin-bottom: 4px; }
.enjoy h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 2.2rem; line-height: 1.05; margin-bottom: 8px; }
.enjoy p:not(.kicker) { font-size: .94rem; font-weight: 600; line-height: 1.45; }

/* ---------- hands ---------- */
.hstrips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.hstrip { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; background: var(--sage); border-radius: 14px; padding: 10px 4px 8px; }
.hstrip b { font-size: .86rem; }
.hstrip span.j { font-size: .72rem; color: var(--muted); line-height: 1.2; }
.art { display: inline-flex; width: 52px; height: 52px; flex: none; }
.art svg { width: 100%; height: 100%; }
.art.lg { width: 64px; height: 64px; }
.hlead { font-size: .92rem; margin-bottom: 14px; }
.hcards { display: grid; gap: 12px; }
.hcard { border-radius: var(--r); padding: 14px; background: color-mix(in srgb, var(--hc) 38%, #FAF8F0); border: 1.5px solid color-mix(in srgb, var(--hc) 70%, #FAF8F0); }
.hcard .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hcard .eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--maroon); display: block; }
.hcard h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.7rem; line-height: 1.05; }
.hcard dl { display: grid; gap: 6px; font-size: .88rem; line-height: 1.45; }
.hcard dt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.hcard .tip { font-family: "Mynerve", "Comic Sans MS", cursive; font-size: 1.1rem; line-height: 1.3; margin-top: 10px; }
.h-h { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.8rem; line-height: 1.1; margin: 26px 0 6px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 4px; border: 2px solid var(--green); border-radius: 999px; margin: 10px 0 14px; }
.seg button { min-height: 42px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: .82rem; color: var(--green); }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.pnote { font-size: .88rem; color: var(--muted); margin: 0 2px 10px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 10px; background: var(--cream); }
.pcard .small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pcard b { display: block; font-size: .9rem; line-height: 1.3; font-weight: 600; }
.pextra { background: var(--sage); border-radius: 14px; padding: 12px 14px; font-size: .88rem; margin-top: 10px; }
.order { display: grid; gap: 10px; margin-top: 10px; }
.order li { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1.5px solid var(--line); padding-bottom: 10px; }
.order .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; font-family: "Instrument Serif", Georgia, serif; font-size: 1.2rem; }
.order b { display: block; font-size: .98rem; line-height: 1.3; }
.order span.s { font-size: .86rem; color: var(--muted); line-height: 1.4; }

/* ---------- free tools: shopping list and calculator ---------- */
.freecard { margin-top: 26px; background: var(--sage); border-radius: var(--r); border-top: 5px solid var(--pink); padding: 14px 16px 16px; }
.freecard h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.freecard .proof { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin: 10px 0 4px; }
.freecard .proof b { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 2.6rem; line-height: 1; }
.freecard .proof span { font-size: .9rem; font-weight: 600; flex: 1 1 160px; line-height: 1.4; }
.freecard p.small, .calc p.small { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.freecard .btn { margin-top: 12px; }
.calc { margin-top: 16px; padding: 14px 16px 16px; border-radius: var(--r); border: 2px solid var(--green); background: var(--cream); }
.calc .calcq { font-family: "Instrument Serif", Georgia, serif; font-size: 1.7rem; line-height: 1.1; }
.calc p.small { margin-top: 4px; }
.calc .btn { margin-top: 12px; }

/* ---------- actions ---------- */
.actions { margin-top: 26px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
#confirm:not(:empty) { margin-top: 12px; }
.confirm { background: var(--blush); border-radius: 14px; padding: 14px; }
.confirm p { font-size: .9rem; margin-bottom: 10px; }
.confirm .btn { margin-right: 8px; }
.note { font-size: .88rem; margin-top: 12px; font-weight: 600; }
.note:empty { display: none; }
.share-box { width: 100%; margin-top: 10px; border: 2px solid var(--line); background: var(--cream); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.keep { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- footer ---------- */
.foot { margin-top: 30px; padding-top: 18px; border-top: 1.5px solid var(--line); font-size: .78rem; color: var(--muted); }
.foot p + p { margin-top: 8px; }
.foot .credit { margin-top: 14px; font-weight: 600; color: var(--green); }

/* ---------- bottom bar ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; margin: 0 auto; max-width: 640px; background: var(--green); color: var(--cream); border-radius: 20px 20px 0 0; padding: 12px 18px calc(12px + var(--safe-b)); box-shadow: 0 -6px 22px color-mix(in srgb, #344C19 30%, transparent); }
.bar:empty, body[data-tab="hands"] .bar { display: none; }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-lab { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.bar strong { display: block; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.85rem; line-height: 1.05; }
.bar-sub { display: block; font-size: .76rem; }
.bar-btn { flex: none; min-height: 46px; padding: 8px 20px; border-radius: 999px; border: 0; background: var(--lime); color: var(--green); font-weight: 700; font-size: .95rem; }
.bar-prog { height: 8px; border-radius: 999px; background: var(--panel); margin-top: 10px; overflow: hidden; }
.bar-prog i { display: block; height: 100%; background: var(--lime); border-radius: 999px; transition: width .2s; }

@media (max-width: 440px) {
  .mode .step { display: none; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 3.1rem; }
  .stats b { font-size: 1.6rem; }
  .big { font-size: 3rem; }
  .action-row { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- print: a clean page she can stick on the fridge (prints whichever tab is open) ---------- */
@media print {
  body { background: none; font-size: 11pt; }
  .freecard, .calc, .photos, .stats, .staples, .kicker, .hero-lead, .tool-h, .how, .modes, .hint-sub, .summary, .add-top-row, .notes, .actions, .bar, .add-open, .add, .edit, .pencil, .go, .foot .credit, .sec-head svg, .seg, .hstrips { display: none !important; }
  #app { max-width: none; padding: 0; }
  .hero { background: none; color: #000; padding: 0 0 6px; border-radius: 0; }
  .hero-logo { height: 40px; background: var(--green); padding: 8px 12px; border-radius: 10px; width: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hero h1 { color: #000; font-size: 26pt; margin: 8px 0 2px; }
  .hero h1 em { color: #000; }
  .tool, .foot { margin: 0; }
  .hint { font-size: 14pt; margin: 6px 0; }
  .print-only { display: block; font-weight: 700; margin: 6px 0 10px; }
  .sec { break-inside: avoid; margin-bottom: 10px; }
  .sec-head { background: #ddd !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; min-height: 0; padding: 4px 10px; }
  .sec-body[hidden] { display: block !important; }
  .check { min-height: 0; padding: 3px 0; }
  .tick { width: 14px; height: 14px; border-width: 1.5px; border-radius: 3px; border-color: #000; }
  .tick svg { width: 10px; height: 10px; }
  .check[aria-pressed="true"] .tick { background: #000; }
  .rows > li { border-bottom: 1px solid #ccc; }
  .remind { background: none; color: #000; border: 1px solid #000; }
  .remind .remind-h { color: #000; }
  .wk-cell { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .foot { font-size: 8pt; color: #000; border: 0; }
}
