:root{
  /* Wears the site's shell tokens (james-poindexter-iv.com/brand/shell/). Green,
     amber and grey are this app's receipt colours: USDA, label photo, estimated. */
  --paper:var(--jp-paper); --panel:var(--jp-panel); --ink:var(--jp-ink); --ink2:var(--jp-ink-2);
  --line:var(--jp-line); --soft:var(--jp-line-soft); --blue:var(--jp-blue); --wash:var(--jp-blue-wash);
  --green:#2F7A52; --green-wash:#E6F2EB; --amber:#8A5A12; --amber-wash:#FBF1DF; --red:#A8483C; --red-wash:#F8E9E6;
  color-scheme:light dark;
}
/* Dark (loop 392 tidy-up): Meals follows the browser like the rest of The Poindex. The
   receipt colours lift to clear the Night ground and their washes sink into it, the same
   way the shell remaps its five tokens; set twice, as the shell does, so an explicit
   data-theme wins either way. */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --green:#7CCB9C; --green-wash:#1C3328; --amber:#E2B566; --amber-wash:#3A2F18; --red:#F0958A; --red-wash:#3E2422}}
:root[data-theme="dark"]{
  --green:#7CCB9C; --green-wash:#1C3328; --amber:#E2B566; --amber-wash:#3A2F18; --red:#F0958A; --red-wash:#3E2422}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--jp-sans);font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%}
.px-page#page{padding-bottom:96px}   /* the column is the shell's .px-page (loop 392); this keeps room under the last button for the feedback tab */
h1{font-size:26px;font-weight:800;letter-spacing:-.02em;margin:.2em 0 .5em;line-height:1.2}
h2{font-size:19px;font-weight:700;margin:1.4em 0 .4em}
h3{font-size:16px;font-weight:700;margin:1em 0 .3em}
p{margin:.4em 0 .8em}
a{color:var(--blue)}
.muted{color:var(--ink2)}
.small{font-size:14px}
.crumb{font-size:14px;margin:0 0 4px}
.crumb a{text-decoration:none}

/* Controls in The Poindex's own shape and colours (loop 392 tidy-up), matching the shell's
   .px-btn: the radius, a card-coloured secondary on a rule border, accent for the primary.
   Sizes and tap targets are unchanged. */
button,.button{font:600 16px var(--jp-sans);cursor:pointer;border:1px solid var(--px-rule);background:var(--px-card);color:var(--px-fg);padding:11px 16px;min-height:44px;border-radius:var(--px-radius);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}
button:hover:not(:disabled),.button:hover{border-color:var(--px-fg)}
button.primary,.button.primary{background:var(--px-accent);border-color:var(--px-accent);color:var(--px-accent-fg)}
button.primary:hover:not(:disabled),.button.primary:hover{border-color:var(--px-accent);filter:brightness(1.08)}
button.quiet{border-color:transparent;background:transparent;color:var(--blue);padding:8px 10px}
button.quiet:hover:not(:disabled){border-color:transparent;background:var(--px-tint)}
button:disabled{opacity:.5;cursor:default}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.row.end{justify-content:flex-end}
.stack>*+*{margin-top:10px}
.grow{flex:1 1 200px}

label{display:block;font-size:14px;font-weight:600;margin:14px 0 4px}
label .hint{display:block;font-weight:400;color:var(--ink2)}
input,select,textarea{font:inherit;font-size:16px;color:var(--px-fg);background:var(--px-bg);border:1px solid var(--px-rule);border-radius:var(--px-radius);padding:10px 12px;width:100%;min-height:44px}
input::placeholder,textarea::placeholder{color:var(--px-muted)}
textarea{min-height:80px;resize:vertical}
input[type=radio],input[type=checkbox]{width:22px;height:22px;min-height:0;margin:0;flex:none;accent-color:var(--px-accent)}
.choice{display:flex;gap:10px;align-items:flex-start;padding:10px 0;font-weight:400;margin:0;border-top:1px solid var(--soft)}
.choice:first-of-type{border-top:0}
.choice input[type=number]{width:110px;margin-left:6px;padding:6px 8px;min-height:36px}
fieldset{border:1px solid var(--line);border-radius:var(--px-radius);padding:4px 14px 8px;margin:16px 0 0}
legend{font-weight:700;padding:0 6px}

/* A card IS the shell's .px-panel (loop 392: "lighten the background on the subsections"):
   the same light card, rule and radius, so the content sits on panels over the paper ground
   rather than on it. The tinted kinds keep their colour and take the radius. */
.card,.px-panel{background:var(--px-card);border:1px solid var(--px-rule);border-radius:var(--px-radius);padding:16px 20px;margin:0 0 16px}
.card.wash{background:var(--wash);border-color:transparent;color:var(--px-fg)}
.card.warn{background:var(--amber-wash);border-color:transparent}
.card.bad{background:var(--red-wash);border-color:transparent;color:var(--red)}
.px-panel .list li:last-child,.card .list li:last-child{border-bottom:0}
.px-panel>h2:first-child,.card>h2:first-child{margin-top:0}
.px-grid>.px-panel,.px-grid>.card,.px-cols>*>:last-child{margin-bottom:0}
.px-cols>*{min-width:0}
.px-cols+*,.px-grid+*{margin-top:16px}
/* The side column FIRST (on the left) where the side is what you read first -- a recipe's
   ingredients, who is at the table -- so a phone, where the columns stack, keeps the order. */
.px-cols.side-first{grid-template-columns:320px minmax(0,1fr)}
@media (max-width:960px){.px-cols.side-first{grid-template-columns:minmax(0,1fr)}}
/* A list of cards: each item its own panel in a .px-grid. */
ul.cardlist{list-style:none;margin:0 0 16px;padding:0}
ul.cardlist>li{margin:0;padding:0}
ul.cardlist a.cardlink{display:flex;flex-direction:column;gap:6px;height:100%;padding:14px 18px;text-decoration:none;color:var(--ink)}
ul.cardlist a.cardlink:hover .name{color:var(--blue)}
ul.cardlist .name{font-weight:600}
ul.cardlist .sub{display:block;font-size:13px;color:var(--ink2)}
ul.cardlist .badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}
ul.cardlist>li.px-panel{padding:0}
.tiles{display:grid;grid-template-columns:1fr;gap:10px;margin:14px 0}
@media (min-width:600px){.tiles{grid-template-columns:repeat(3,1fr)}}
.tile{display:block;border:1px solid var(--line);border-radius:var(--px-radius);padding:14px 16px;text-align:left;text-decoration:none;color:var(--ink);background:var(--paper);min-height:0;font-weight:400}
.tile strong{display:block;font-size:17px;margin-bottom:2px}
.tile span{color:var(--ink2);font-size:14px}

.list{list-style:none;margin:10px 0;padding:0;border-top:1px solid var(--line)}
.list li{border-bottom:1px solid var(--line)}
.list a,.list button.pick{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:12px 2px;text-decoration:none;color:var(--ink);width:100%;border:0;background:none;text-align:left;font-weight:400;min-height:52px}
.list .name{font-weight:600}
.list .sub{display:block;font-size:13px;color:var(--ink2);font-weight:400}

.badge{font:600 12px var(--jp-mono);letter-spacing:.02em;text-transform:uppercase;padding:3px 7px;white-space:nowrap;border-radius:calc(var(--px-radius) / 2)}
.badge.usda{background:var(--green-wash);color:var(--green)}
.badge.branded{background:var(--wash);color:var(--blue)}
.badge.custom{background:var(--amber-wash);color:var(--amber)}
.badge.low{background:var(--amber-wash);color:var(--amber)}

.panel{width:100%;border-collapse:collapse;font-size:15px;margin:8px 0}
.panel th,.panel td{padding:7px 4px;border-bottom:1px solid var(--soft);text-align:right}
.panel th:first-child,.panel td:first-child{text-align:left}
.panel td.unknown{color:var(--ink2)}
.panel input{width:100%;max-width:120px;text-align:right;padding:6px 8px;min-height:38px}
.panel tr.req td:first-child::after{content:" *";color:var(--red)}

.photo{max-width:100%;max-height:420px;display:block;border:1px solid var(--line);margin:8px 0}
.steps{display:flex;gap:6px;margin:4px 0 12px;font-size:13px;color:var(--ink2);flex-wrap:wrap}
.steps b{color:var(--ink)}
.steps a{text-decoration:none}
.plain{margin:4px 0 10px;padding-left:18px}
.plain li{margin:2px 0}
.errors{margin:10px 0;padding:10px 14px;border-radius:var(--px-radius);background:var(--red-wash);color:var(--red)}
.errors ul{margin:4px 0 0;padding-left:18px}

.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--px-fg);color:var(--px-bg);border-radius:var(--px-radius);padding:10px 16px;font-size:15px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:calc(100% - 32px)}
.toast.show{opacity:1}

/* Fallback identity chip (see app.js): only until the live shell fills the slot itself. */
.jp-signout{display:flex;align-items:center;gap:6px;margin:0}
.jp-signout .me-name{font-size:14px;color:var(--ink2);white-space:nowrap;max-width:9em;overflow:hidden;text-overflow:ellipsis}
.jp-signout button.quiet{min-height:36px;padding:4px 8px;font-size:14px}

/* meals: stages, flags, pills, the board */
.badge.stage{background:var(--wash);color:var(--blue)}
.viewas{position:sticky;top:0;z-index:45;background:var(--amber-wash);color:var(--amber);padding:8px 16px;font-size:14px;border-bottom:1px solid var(--line)}
.viewas button{color:var(--amber);padding:2px 8px;min-height:0}
.badge.beta{background:var(--wash);color:var(--blue);margin-left:8px;vertical-align:middle;padding:2px 6px;font-size:11px}
/* Feedback tab: bottom-right, above the phone's home bar; small enough to sit beside a button row. */
.fab{border-radius:var(--px-radius);position:fixed;right:max(12px, env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));z-index:40;min-height:36px;padding:6px 12px;font-size:13px;background:var(--paper);border-color:var(--line);color:var(--ink2);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.sheet{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.35);display:flex;align-items:flex-end;justify-content:center}
html.locked,html.locked body{overflow:hidden}   /* the board keeps its place under an open sheet */
.sheet,.sheet-in{overscroll-behavior:contain}
.sheet-in{background:var(--px-card);color:var(--px-fg);width:100%;max-width:760px;padding:12px 16px calc(16px + env(safe-area-inset-bottom));border:1px solid var(--px-rule);border-bottom:0;border-radius:14px 14px 0 0}
.sheet-in h2{margin:0}
.sheet .kinds button{flex:1 1 40%;font-size:14px;padding:9px 8px}
.composer .row.end{padding-right:84px}
.composer .hints{margin:0 0 6px;font-size:13px;color:var(--ink2)}
.handsfree{margin-right:auto}   /* the Suggest Send button clears the feedback tab */
table.feedback td{vertical-align:top}
.badge.conf-high{background:var(--green-wash);color:var(--green)}
.badge.conf-medium{background:var(--wash);color:var(--blue)}
.badge.conf-low{background:var(--amber-wash);color:var(--amber)}
.match fieldset{border:0;padding:0;margin:10px 0 0}
.match .sub{display:block}
.hhbar{display:flex;align-items:center;gap:10px;padding:6px 0 10px;border-bottom:1px solid var(--soft);margin-bottom:10px;position:relative}
.hhbar #hhSwitch{border:0;background:transparent;padding:4px 6px 4px 0;white-space:nowrap;min-height:32px;font:700 16px var(--jp-sans);color:var(--ink)}
.hhbar a{font-size:14px;text-decoration:none}
.hhmenu{position:absolute;top:100%;left:0;z-index:30;background:var(--px-card);border:1px solid var(--line);border-radius:var(--px-radius);overflow:hidden;min-width:220px;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.hhmenu a{display:block;padding:10px 14px;border-top:1px solid var(--soft);font-size:15px}
.hhmenu a:first-child{border-top:0}
.sheet-in{max-height:85vh;overflow:auto}
.whats-entry{border-top:1px solid var(--soft);padding-top:8px;margin-top:8px}
.whats-entry:first-of-type{border-top:0;margin-top:0}
.whats-entry h3{margin:.2em 0}
.whats-entry ul{margin:.2em 0}
.hh .delbox{padding:6px 0 2px}
.cam{width:100%;max-height:50vh;background:#000}
.eaten .changer{padding:6px 0 4px 34px}
.eaten .results ul{margin:6px 0}
.slots{border:1px solid var(--line);background:var(--px-card)}
.slot{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;padding:8px 12px;border-top:1px solid var(--soft)}
.slot:first-child{border-top:0}
.slot-name{flex:0 0 78px;font:600 12px var(--jp-mono);text-transform:uppercase;letter-spacing:.02em;color:var(--ink2)}
.slot.empty .slot-name{color:var(--ink2);opacity:.7}
.slot-add{flex:1;color:var(--blue);text-decoration:none;font-size:14px}
.slot-meal{flex:1 1 200px;display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);min-width:0}
.slot-meal .name{display:block;font-weight:600}
.slot-meal .sub{display:block;font-size:13px;color:var(--ink2)}
.slot.double{background:var(--amber-wash)}
input.inline{display:inline-block;width:110px;min-height:34px;padding:4px 8px}
.st p{margin:.3em 0}
.seg{display:inline-flex;border:1px solid var(--px-rule);border-radius:var(--px-radius);overflow:hidden}   /* only the outer corners are round */
.seg button{border:0;border-radius:0;min-height:36px;padding:6px 14px;font-size:14px;background:var(--px-card)}
.seg button.on{background:var(--px-accent);color:var(--px-accent-fg)}
.button.small{min-height:36px;padding:6px 10px;font-size:13px}
table.gpa{width:100%;border-collapse:collapse}
table.gpa th{text-align:left;font-size:12px;color:var(--ink2);font-weight:600;padding:4px 6px}
table.gpa td{padding:4px 6px;border-top:1px solid var(--soft)}
.num{border:0;background:transparent;padding:4px 8px;font:600 15px var(--jp-sans);cursor:pointer;color:var(--ink)}
.num.plain{color:var(--ink)}
table.gpa tr.tracked td{background:var(--green-wash)}
.chips{gap:6px}
.chip{border:1px solid var(--px-rule);background:var(--px-card);color:var(--ink2);padding:4px 10px;min-height:30px;font-size:13px;border-radius:var(--px-radius)}
.chip.on{background:var(--wash);color:var(--blue);border-color:var(--blue)}
.num.ok{color:var(--green)} .num.near{color:var(--amber);background:var(--amber-wash)} .num.over,.num.under{color:var(--red);background:var(--red-wash)} .num.unknown,.num.nothing,.num.none,.num.ahead{color:var(--ink2)}
.person .detail{border-top:1px solid var(--soft);margin-top:8px;padding-top:6px}
/* The week table: every nutrient down the side, the seven days across. Fixed layout so a
   four-digit number cannot widen one column and squeeze the rest on a 390px phone. */
.weektable{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
.weektable th{font:600 11px var(--jp-mono);color:var(--ink2);text-transform:uppercase;padding:2px 0;text-align:center;font-weight:600}
.weektable th.rowlab{text-align:left;width:31%;font:600 13px var(--jp-sans);color:var(--ink);text-transform:none;padding:5px 4px 5px 0}
.weektable th.rowlab .wst{font:400 11px var(--jp-mono);color:var(--ink2)}
.weektable .dayhead{border:0;background:none;padding:3px 0;min-height:0;width:100%;font:inherit;color:var(--ink2);cursor:pointer;text-transform:uppercase}
.weektable th.today .dayhead{color:var(--blue);text-decoration:underline}
.weektable td{padding:5px 1px;text-align:center;font-size:12px;border-top:1px solid var(--soft)}
.weektable tr.tracked th.rowlab{background:var(--green-wash)}
.weektable td.today{background:var(--wash)}
.weektable td.ok{color:var(--green)}
.weektable td.near{color:var(--amber);background:var(--amber-wash)}
.weektable td.over,.weektable td.under{color:var(--red);background:var(--red-wash)}
.weektable td.nothing,.weektable td.unknown,.weektable td.none{color:var(--ink2)}
/* A day that has not happened shows what is PLANNED, set apart so it is never read as eaten. */
.weektable td.ahead,.ahead{font-style:italic;color:var(--ink2)}
.weektable td.ahead.over,.weektable td.ahead.under{color:var(--red);background:none}
.weektable td.ahead.near{color:var(--amber);background:none}
.chiplab{margin-right:2px}
/* The shop list: what an item is for, so an unfamiliar one can still be found on a shelf. */
h3.aisle{margin:14px 0 0;font:600 12px var(--jp-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--ink2)}
h3.aisle:first-of-type{margin-top:6px}
.shoplist{margin-top:2px}
.shoplist .forwhat{color:var(--ink2);font-size:12px}
.shoplist .sub{display:block}
/* The week review: one line per target, how many days came in on track and the average day. */
.weeksum{margin:2px 0 8px}
.weekstat{list-style:none;margin:0 0 10px;padding:0}
.weekstat li{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;padding:6px 0;border-top:1px solid var(--soft);font-size:14px}
.weekstat li:first-child{border-top:0}
.weekstat .wsl{flex:1 1 130px;min-width:0;font-weight:600}
.weekstat .wsr{flex:1 1 auto;display:flex;gap:8px;flex-wrap:wrap;align-items:baseline;justify-content:flex-end}
.weekstat .wsv{font:600 13px var(--jp-mono);white-space:nowrap}
.weekstat .wst{font:400 12px var(--jp-mono);color:var(--ink2);white-space:nowrap}
.weekstat .wsv.ok{color:var(--green)}
.weekstat .wsv.near{color:var(--amber)}
.weekstat .wsv.over,.weekstat .wsv.under{color:var(--red)}
.weekstat .wsv.nothing{color:var(--ink2);font-weight:400}
.wdp.ok,.wda.ok{color:var(--green)} .wdp.near,.wda.near{color:var(--amber)} .wdp.over,.wda.over,.wdp.under,.wda.under{color:var(--red)} .wdp.none,.wda.nothing,.wda.ahead,.wdp.unknown,.wda.unknown{color:var(--ink2)}
.transcript{display:flex;flex-direction:column;gap:10px;margin:8px 0 14px}
.turn{max-width:92%;padding:10px 14px;border:1px solid var(--line);border-radius:var(--px-radius)}
.turn p{margin:0}
.turn.me{align-self:flex-end;background:var(--wash);border-color:transparent}
.turn.them{align-self:flex-start;background:var(--px-card)}
.turn .replay{padding:2px 6px;margin-top:4px;min-height:0;font-size:13px}
.turn.note{align-self:center;border:0;font-size:13px;color:var(--ink2);margin:0}
/* A plan running in the background (src/jobs.js): a quiet card with a clock, never a spinner. */
.turn.planjob{display:flex;flex-direction:column;gap:6px}
.turn.planjob .row{align-items:center;gap:8px;flex-wrap:wrap}
.turn.planjob [data-elapsed]{font-variant-numeric:tabular-nums}
.turn .suggestion{margin:10px 0 0;padding:10px 12px}
.suggestion .name{font-weight:700;text-decoration:none}
.suggestion .decide{margin-top:8px}
.dishtag{font:600 11px var(--jp-mono);text-transform:uppercase;letter-spacing:.02em;background:var(--wash);color:var(--blue);padding:1px 5px;margin-right:4px;white-space:nowrap}
button.dishtag{border:0;min-height:0;display:inline;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.tickrow .dishtag{white-space:normal}   /* a long dish name wraps rather than running off a phone */
.rxline{display:block;padding:9px 2px}
.rxline .name{font-weight:600}
.rxline .sub{display:block;font-size:13px;color:var(--ink2)}
.scaleby{font:700 12px var(--jp-mono);color:var(--amber);white-space:nowrap;margin-left:1px}   /* the words are the recipe's; this is what to do to them */
.suggestion .dishes{margin:4px 0}
/* The plate against each person's day (src/plan.js fitFor): a line per target, coloured by how
   much of the day one plate takes; the list this plan would need, folded under the proposal. */
.fit{list-style:none;margin:4px 0 6px;padding:0}
.fit li{padding:2px 0 2px 8px;border-left:3px solid var(--line);color:var(--ink2)}
.fit li.near{border-color:var(--amber);color:var(--amber)}
.fit li.high{border-color:var(--red);color:var(--red)}
.fit li.ok{border-color:var(--green)}
/* A suggestion against the people's own rules, as the server checked it (wave 2, 31 Oct 2026). */
.rules{list-style:none;margin:4px 0 6px;padding:0}
.rules li{padding:2px 0 2px 8px;border-left:3px solid var(--line);color:var(--ink2)}
.rules li.avoid{border-color:var(--red);color:var(--red)}
.rules li.dislike,.rules li.require{border-color:var(--amber)}
.rules li.like,.rules li.ok{border-color:var(--green)}
.suggestion .uses{margin:2px 0}
.shoppreview{margin:10px 0 0;border-top:1px solid var(--soft);padding-top:6px}
.shoppreview>summary{cursor:pointer;font-weight:600;font-size:14px;padding:4px 0}
.shoppreview h4.aisle{margin:8px 0 0;font:600 11px var(--jp-mono);text-transform:uppercase;letter-spacing:.04em;color:var(--ink2)}
.shoppreview ul{margin:2px 0 4px}
.suggestion .when{margin:0 0 2px;font-weight:600}
.quick{margin:0 0 8px}
.quick button{border:1px solid var(--line);padding:6px 10px;min-height:36px;font-size:14px}
.composer{position:sticky;bottom:0;background:var(--paper);padding:8px 0 10px;border-top:1px solid var(--soft)}
.composer .state{min-height:1.4em;margin:0 0 4px}
.composer textarea{min-height:56px}
#mic[aria-pressed="true"]{background:var(--red-wash);border-color:var(--red);color:var(--red)}
.match .decide{border-top:1px solid var(--soft);margin-top:10px}
.flags{list-style:none;margin:8px 0;padding:0}
.flag{padding:6px 10px;margin:4px 0;font-size:14px;border-left:3px solid var(--line)}
.flag.avoid{background:var(--red-wash);border-color:var(--red);color:var(--red)}
.flag.dislike,.flag.require{background:var(--amber-wash);border-color:var(--amber);color:var(--amber)}
.flag.like{background:var(--green-wash);border-color:var(--green);color:var(--green)}
.pills{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0}
.pill{font-size:13px;padding:3px 8px;border:1px solid var(--line);white-space:nowrap;border-radius:calc(var(--px-radius) / 2)}
.pill.unknown{background:var(--amber-wash);color:var(--amber);border-color:transparent}
.panel tr.over td{color:var(--red);font-weight:600}
.panel tr.near td{color:var(--amber)}
.day{margin:14px 0}
.day h2{margin:.6em 0 .2em}
/* COOK's header: the clock and the dish chips stay on screen for the whole cook. --cook-top is
   the height of the shell bar, measured at runtime (it wraps to two rows on a 390px phone);
   --cook-head is this header's own height, so a step scrolled into view clears it. */
.cookhead{position:sticky;top:var(--cook-top,0px);z-index:44;background:var(--paper);margin:10px 0 2px}
.cookhead .countdown{margin:0;padding:8px 12px}
.cookhead .countdown .row{flex-wrap:nowrap;gap:12px;align-items:center}
.countdown .clock{font:700 20px var(--jp-mono);white-space:nowrap}
.countdown .when{font-size:13px;line-height:1.35;flex:1 1 auto;min-width:0}
.dishrail{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;padding:6px 0;scrollbar-width:none}
.dishrail::-webkit-scrollbar{display:none}
.dishrail:empty{display:none}
.dishrail .chip{flex:none;white-space:nowrap}
.tickrow{scroll-margin-top:calc(var(--cook-top,0px) + var(--cook-head,0px) + 8px)}
button.quiet.armed{color:var(--red);font-weight:700}
/* The long-cook timer: a column of clock-over-minutes, narrow enough to leave the step readable
   on a 390px phone. Blue while it runs, green when it has rung, red while asking to stop. */
.timer{flex:none;align-self:center;flex-direction:column;gap:0;min-width:88px;min-height:44px;padding:5px 6px;font:600 13px var(--jp-sans);line-height:1.25}
.timer.running{background:var(--wash);border-color:var(--blue);color:var(--blue)}
.timer.rang{background:var(--green-wash);border-color:var(--green);color:var(--green)}
.timer.armed{border-color:var(--red);color:var(--red);font-weight:700}
.tclock{font:700 15px var(--jp-mono)}
.tmin{font-size:11px;white-space:nowrap;font-weight:400}
.count{font-variant-numeric:tabular-nums}
/* COOK's rows: the label is the hit area for the box alone (48x48, thumb-sized and wet-hand
   safe); the words are a sibling that does nothing when tapped. Struck through off li.done,
   not off :checked, so the first paint from stored ticks looks the same as a tap. */
.tickrow{display:flex;gap:10px;align-items:flex-start;padding:2px 0;font-weight:400;margin:0}
.hit{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;flex:none;margin:0;padding:0;cursor:pointer}
.txt{flex:1 1 auto;min-width:0;padding:13px 0}
.tickrow.done .txt{opacity:.45;text-decoration:line-through}
.phases{list-style:none;margin:8px 0;padding:0;border-top:1px solid var(--line)}
.phases li{border-bottom:1px solid var(--line)}
.phases .when{display:block;font:600 13px var(--jp-mono);color:var(--ink2)}
.phases .what{display:block}
.phases li.dead .when::after{content:"";}
.phases li.dead{background:var(--wash)}
.phases li.now{box-shadow:inset 4px 0 0 var(--blue)}
.phases li.plating .what{font-weight:700}
/* The run of show's blocks (cook-board, 18 Oct 2026): a band with the clock span and the block's
   name; its note in italics underneath. Dead time and breaks are bands with no rows under them. */
.phases li.blockhead{display:block;padding:10px 12px 8px;background:var(--px-tint);border-bottom:1px solid var(--line);margin-top:10px}
.phases li.blockhead:first-child{margin-top:0}
.phases li.blockhead,.phases li.blockhead *{white-space:normal;overflow-wrap:anywhere;min-width:0}
.phases li.blockhead .bname{display:block}
.phases li.blockhead .when{display:block;font:600 13px var(--jp-mono);color:var(--blue);margin-right:10px}
.phases li.blockhead .bname{font:600 17px var(--px-font-display);color:var(--ink)}
.phases li.blockhead .bnote{display:block;font-size:13px;font-style:italic;color:var(--ink2);margin-top:2px}
.phases li.blockhead.dead,.phases li.blockhead.idle{background:var(--paper);border:1px dashed var(--line);border-radius:var(--px-radius)}
.phases .fixline{display:block;font-size:13px;color:var(--amber);border-left:3px solid var(--amber);padding:2px 8px;margin:4px 0 2px}
.phases .fixline b{font-weight:700}
.method{padding-left:22px}
.method li{margin:6px 0}
/* The recipe at the recipe-bot standard (18 Oct 2026): a step's temperature on a mono chip, its
   reason in italics, its correction note in a .fix block (cook-board's word for it); the list's
   component headings; notes as a definition list, Storage / Tip / Variation / Make ahead. */
.temp{font:600 12px var(--jp-mono);background:var(--wash);color:var(--blue);padding:1px 5px;border-radius:4px;white-space:nowrap}
.why{display:block;font-size:13px;font-style:italic;color:var(--ink2)}
.fix{border-left:3px solid var(--amber);background:var(--amber-wash);padding:5px 10px;margin:5px 0 2px;font-size:14px;border-radius:0 var(--px-radius) var(--px-radius) 0}
.fix b{color:var(--amber)}
.list li.grp{font:600 11px var(--jp-mono);text-transform:uppercase;letter-spacing:.06em;color:var(--ink2);padding:10px 2px 2px;border-bottom:0}
.list li.grp+li{border-top:0}
dl.notes{margin:4px 0 0}
dl.notes dt{font:600 11px var(--jp-mono);text-transform:uppercase;letter-spacing:.06em;color:var(--ink2);margin:10px 0 2px}
dl.notes dt:first-child{margin-top:0}
dl.notes dd{margin:0}
.choice.scaleto{display:inline-flex;align-items:center;gap:6px;margin:0;padding:0;border:0;white-space:nowrap;font-weight:400;font-size:14px;color:var(--ink2);flex:none}
.choice.scaleto input[type=number]{width:64px;min-height:34px;padding:4px 8px;margin:0}
.standard{margin-top:-4px}
.ing,.step{border-top:1px solid var(--soft);padding:8px 0}
.ing input,.step input{min-height:40px;padding:8px 10px}
.choice.small{font-size:14px;padding:6px 0;border:0;white-space:nowrap}
h1.grow{margin:0}
.head{margin:2px 0 6px;flex-wrap:nowrap}
.head h1{font-size:24px;flex:1 1 auto}
/* The title and its one line are the shell's .px-head; a title row with arrows or a button
   sits inside it with the title first, like every other section's head. */
.px-head .row.head{margin:0}
.px-head .row.head .button,.px-head .row.head .seg{flex:none}
.px-head p.row{margin-top:6px}
.head .button{padding:8px 12px;min-height:40px}
.card h2:first-child,.card h2.row{margin-top:.1em}
.card h2{font-size:17px}
.card h3{margin-top:.8em}

/* Paper is the fallback when the phone dies mid-cook, so what prints is the board and nothing
   else: no shell, no sticky header, no chips, no sheet, nothing you could tap. The plate-up time
   stays — it is the number you most need once the screen is gone — but the live countdown goes,
   since "6:39 to go" means nothing on a sheet of paper. Steps never break across a page. */
@media print {
  .jp-bar, .jp-foot, .hhbar, .viewas, .fab, .sheet, .toast, .dishrail, .crumb, #tickWarn, .count { display: none !important }
  button, .button { display: none !important }
  button.dishtag { display: inline !important }
  .dishtag { background: none; color: inherit; text-decoration: none; padding: 0; font-weight: 700 }
  html, body { background: #fff; color: #000 }
  #page { max-width: none; padding: 0 }
  .cookhead { position: static; margin: 0 0 8px }
  .cookhead .countdown { background: none; border: 1px solid #000; padding: 6px 8px }
  .countdown .clock { display: none }
  .card, .card.wash { background: none }
  a[href] { color: #000; text-decoration: none }
  input[type=checkbox] { width: 11px; height: 11px }
  .hit { min-width: 18px; min-height: 0; align-items: flex-start; padding-top: 3px }
  .txt { padding: 1px 0 }
  .tickrow { min-height: 0; break-inside: avoid; page-break-inside: avoid }
  .phases li, .list li { break-inside: avoid; page-break-inside: avoid }
  .phases li.dead, .phases li.now { background: none; box-shadow: none }
  .phases li.blockhead { background: none; border: 0; border-bottom: 1.5pt solid #000; padding: 8pt 0 2pt; break-after: avoid; page-break-after: avoid }
  .phases li.blockhead .when, .phases .fixline { color: #000 }
  h1 { font-size: 20px }
  h2 { font-size: 16px; margin: .8em 0 .2em; break-after: avoid; page-break-after: avoid }
}

/* ---------- Blend: everyone on one chart (dashboard) ----------
   Colour is the PERSON; hollow vs solid is planned vs actual. Every bar is a
   share of that person's own target, so one axis serves different targets.
   Sized to keep the whole dashboard on one screen: see .dash-fit below. */
.blend .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 2px 0 10px; font-size: 13px; }
.blend .lg { display: inline-flex; align-items: center; gap: 6px; color: var(--jp-ink-2); }
.blend .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--jp-ink-2)); border: 2px solid var(--c, var(--jp-ink-2)); }
.blend .sw.hollow { background: transparent; }
.blend .key .sw { --c: var(--jp-ink-2); }
.blend .goalkey { width: 2px; height: 12px; background: var(--jp-ink-2); display: inline-block; }

.brow { padding: 6px 0; border-top: 1px solid var(--jp-line-soft); }
.brow:first-of-type { border-top: 0; }
.bhead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.bhead b { font-size: 14px; }
.btrack { position: relative; padding-left: 0; }
/* The target: one line the whole chart is read against. */
.bgoal { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--jp-ink-2); opacity: .55; }
.bperson { display: grid; grid-template-columns: minmax(58px, 15%) 1fr; grid-template-areas: "name planned" "name actual";
  gap: 2px 8px; align-items: center; padding: 3px 0; }
.bname { grid-area: name; font-size: 12px; color: var(--jp-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bperson .bwrap:nth-of-type(1) { grid-area: planned; }
.bperson .bwrap:nth-of-type(2) { grid-area: actual; }
.bwrap { display: flex; align-items: center; gap: 6px; min-height: 12px; }
.bar { height: 10px; border-radius: 0 4px 4px 0; background: var(--c); }
.bar.planned { background: transparent; border: 2px solid var(--c); height: 8px; opacity: .85; }
.bar.over, .bar.under { box-shadow: 0 0 0 2px var(--jp-paper), 0 0 0 4px var(--c); }  /* over the line: a ring, not another colour */
.bnum { font: 500 11px/1 var(--jp-mono); color: var(--jp-ink-2); }

/* One page: the dashboard is meant to be taken in at a glance, so the blended
   view keeps its own padding small and lets the chart itself take the room. */
.blend.card { padding: 12px 14px; }
.blend h2 { font-size: 15px; margin: 0 0 6px; }
@media (max-width: 560px) { .bperson { grid-template-columns: minmax(46px, 22%) 1fr; } .bhead b { font-size: 13px; } }

/* ---------- the colour picker on a person's page ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; }
/* min-height 0: the shared button rule (44px tall, 18 Oct 2026) was stretching
   these into 30x44 pills; a swatch is a square of colour, not a button to read. */
.swatch { width: 30px; height: 30px; min-height: 0; border-radius: 8px; background: var(--c, transparent); border: 2px solid transparent;
  cursor: pointer; padding: 0; display: inline-grid; place-items: center; }
.swatch:hover:not(:disabled) { border-color: var(--jp-ink); }
.swatch.on { outline: 2px solid var(--jp-ink); outline-offset: 2px; }
.swatch.custom { border: 2px dashed var(--jp-line); color: var(--jp-ink-2); position: relative; font: 600 16px/1 var(--jp-sans); }
.swatch.custom input[type="color"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* ---------- fit one page (the blended dashboard) ----------
   The chart is the point; everything else gives up its spacing first. */
#main.fitpage > * { margin-top: 8px; margin-bottom: 8px; }
#main.fitpage > .px-head { margin-top: 0; }
#main.fitpage .card { margin: 0; padding: 10px 14px; }
#main.fitpage .card h2 { margin: 0 0 6px; font-size: 15px; }
#main.fitpage .px-need { padding: 8px 0; }   /* the shell's needs list, tightened */
#main.fitpage .row.head h1 { font-size: 20px; }
#main.fitpage .chips { margin: 4px 0 0; }
/* In Blend the view switch rides in the title row, so the second row keeps only
   the three actions and the page loses a whole row. */
#main.fitpage .row.hidden-seg > .seg { display: none; }
#main.fitpage .row.head { gap: 10px; }
#page:has(#main.fitpage) { padding-bottom: 40px; }

/* Phone, blended: the two rows that wrap are what push the chart off the screen.
   The nutrient chips become one swipeable line, and the shortcuts row goes
   (both live on Poindexter's own screen, and the Poindexter button at the
   bottom opens him here: loop 329, 30 Sep 2026). */
@media (max-width: 560px) {
  #main.fitpage .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  #main.fitpage .chips::-webkit-scrollbar { display: none; }
  #main.fitpage p.row.shortcuts { display: none; }
  #main.fitpage .bperson { padding: 2px 0; }
  #main.fitpage .legend { gap: 2px 10px; font-size: 12px; }
  /* The one-screen day on a phone: the side column is only the Rows chips there (the
     shortcuts are hidden above), so it drops its panel and the purpose line gives back its
     two lines -- the chart is what has to fit. */
  #main.fitpage .dash-side { background: none; border: 0; padding: 0; }
  #main.fitpage .px-head p { display: none; }
  /* A phone's three dials: the dial over its name, and the sentence behind a tap. */
  #main.fitpage button.px-grade { flex-direction: column; justify-content: flex-start; gap: 2px; padding: 6px 4px; text-align: center; }
  #main.fitpage .px-grade-label { font-size: .8rem; }
  #main.fitpage .px-grade-short { display: none; }
}
/* The dials on the one-screen day, at any width: three across with no panel round them, and the purpose line gives back its
   line (a phone has already dropped it). The shell's panel of 190 px cells costs 130 px on a laptop and put the chart below
   the fold on a 1280 x 800 screen; this costs under 30. Week keeps the shell's roomier row. */
#main.fitpage .px-grades { margin-bottom: 8px; padding: 0; background: none; border: 0; }
#main.fitpage .px-grades > .px-label { display: none; }
#main.fitpage .px-grades-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#main.fitpage button.px-grade { min-height: 0; background: var(--px-card); }
#main.fitpage button.px-grade:hover { background: color-mix(in srgb, var(--px-g) 8%, var(--px-card)); }
#main.fitpage .px-head:has(+ .px-grades) p { display: none; }
#main.fitpage .px-main > * + * { margin-top: 8px; }
.dash-side .shortcuts { margin: 0 0 10px; }
.dash-side .chips { margin: 0; }
.chip { white-space: nowrap; }

/* The day's numbers, folded under the chart. The chart answers "where is everyone
   against their own target"; this answers "what exactly", including the rows that
   have no target and so cannot be drawn as a share of anything. */
.numbers{margin:8px 0 0}
.numbers>summary{cursor:pointer;padding:8px 2px;font-weight:600;list-style:none}
.numbers>summary::-webkit-details-marker{display:none}
.numbers>summary::before{content:"▸ ";color:var(--ink2)}
.numbers[open]>summary::before{content:"▾ "}
.numbers>summary:hover{color:var(--jp-blue,#0F6FD6)}
.numbers .card.person{margin-top:0}
.numbers .card.person h2{display:flex}  /* one fold holds everyone, so each table still needs its name */
/* On a phone the fold gives back the last few pixels the one-screen dashboard
   needs: the explanation after "All the numbers" is a nicety, the row is not. */
@media (max-width:560px){
  .numbers>summary{padding:5px 2px}
  .numbers>summary .muted.small{display:none}
}

/* The roster: everyone on one table instead of a card each (23 Sep 2026). A row
   stays a row -- a person with nine dislikes must not make everyone else scroll --
   so a cell shows the first two and counts the rest. */
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 16px}
table.roster{width:100%;border-collapse:collapse;font-size:14px}
table.roster th,table.roster td{text-align:left;vertical-align:top;padding:9px 10px;border-top:1px solid var(--line)}
table.roster thead th{border-top:0;font:600 11px/1 var(--jp-mono,monospace);text-transform:uppercase;
  letter-spacing:.06em;color:var(--ink2);padding-bottom:6px;white-space:nowrap}
table.roster tbody th{font-weight:600;white-space:nowrap}
table.roster .dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--c,var(--ink2));margin-right:7px;vertical-align:baseline}
table.roster td.edit{text-align:right;white-space:nowrap}
/* One long rule ("tomatoes okay if seeded and peeled...") used to take the whole
   width and squeeze every other column into single words stacked four deep. The
   fix is to cap the TAG, not the column: columns still size to their content, so
   "Fluid ≤ 1800 mL" stays whole and only genuinely long text gets an ellipsis
   (with the full text on hover). Fixing the columns instead cut every value to
   the same useless width. Both seen in the browser, 23 Sep 2026. */
table.roster tbody th{width:9rem}
table.roster td[data-col="goal"]{min-width:9rem}
table.roster td.edit{width:3.5rem}
/* Two lines of the goal, then ellipsis: the roster answers "who is here and what
   are they watching", and the full sentence is on their own page. */
table.roster .goaltext{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tag{display:inline-block;max-width:12rem;border:1px solid var(--line);border-radius:999px;padding:1px 8px;
  margin:0 4px 4px 0;font-size:12.5px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  vertical-align:bottom}
.tag.plus{border-style:dashed}
/* A phone gets the row to FIT rather than to scroll sideways: sideways scroll is
   still scrolling, which is the thing being removed. The name and goal columns
   give up their floors, the tags shrink, and the Edit link becomes the row itself
   (the whole name is the link on a phone). */
@media (max-width:560px){
  table.roster tbody th{width:6.5rem}
  table.roster td[data-col="goal"]{min-width:0}
  .tag{max-width:8rem}
  table.roster th,table.roster td{padding:8px 6px;font-size:13px}
  table.roster .dot{margin-right:5px}
}

/* ---------- loop 392: the wide column's panels ----------
   PLAN: a day is a panel in a grid of days (the week, plus Shopping, fills two rows on a
   laptop); inside its panel the slots lose their own box, so there is never a box in a box. */
.planweek .day{margin:0}
.planweek .day h2{margin:0 0 4px;padding:0 0 10px;border-bottom:1px solid var(--px-rule);font-size:17px}
.planweek .slots{border:0;background:none}
.planweek .slot{padding:9px 0}
.planweek .slot:first-child{border-top:0}
.planweek .slot.double{padding-left:8px;padding-right:8px}
/* SHOP: one panel an aisle, in walk order across the grid. */
.aislebox h3.aisle{margin:0 0 6px}
.aislebox .list{margin:0}
/* A panel's own list starts under its heading's rule-free edge. */
.px-panel>h2+.list,.px-panel>h2+ol.phases{margin-top:8px}
/* A bare list that is a block of its own sits on a panel too. */
ul.list.px-listpanel{background:var(--px-card);border:1px solid var(--px-rule);border-radius:var(--px-radius);padding:4px 20px;margin:0 0 16px}
ul.list.px-listpanel>li:last-child{border-bottom:0}
.px-panel>.tablewrap:last-child{margin-bottom:0}
.choice button{white-space:nowrap}
.list .row select{width:auto}
.px-cols>.px-panel,.px-cols>.card{margin-bottom:0}
.dishtag{border-radius:4px}

/* Visual pass, 20 Oct 2026. A matched food under an ingredient is a link in its line, not a
   row of its own: the list's full-width link rule stranded it under a dangling " ·". */
.list .sub a{display:inline;padding:0;min-height:0;width:auto;color:var(--blue);text-decoration:underline;text-underline-offset:2px}
/* On a phone the composer's hands-free box takes its own line, so Talk and Send sit side by
   side (still clear of the feedback tab) instead of stacking. */
@media (max-width:640px){.composer .row.end .handsfree{flex:1 0 100%;margin-right:0}}
/* The Sound toggle beside Poindexter's title never breaks over two lines. */
#mute{white-space:nowrap;flex:none}
@media (max-width:640px){#mute{font-size:14px;padding:6px 6px}}
#ingList li:not(.grp){padding:10px 2px}
/* The shell's calendar (25 Oct 2026) gives its week and day hour grids their column count in a
   style="--px-cal-cols:N" attribute, which this page's CSP refuses (style-src has no 'unsafe-inline',
   on purpose); without it the grid falls to one long column. The count is fixed per view, so it is
   said here instead. Harmless once the shell stops using the attribute. */
.px-cal.view-week .px-cal-time-grid{--px-cal-cols:7}
.px-cal.view-day .px-cal-time-grid{--px-cal-cols:1}
/* Shop's trip line (31 Oct 2026): day, store, Done, on one line on a wide screen and wrapping on a phone. */
.trip{padding:10px 14px;margin:0 0 12px}
/* Send to a store: the picker wraps on a phone; Find sits at the row's end, never under the tick. */
.storepanel{padding:12px 14px;margin:0 0 12px}
.storepick{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.storepick button{min-height:40px}
.storepick button.on{background:var(--px-accent);color:var(--px-accent-fg);border-color:var(--px-accent)}
.storelist .tickrow{align-items:center}
.storelist .tickrow .txt{flex:1;min-width:0}
.storelist .tickrow > a.button{flex:none;width:auto;min-height:40px;padding:6px 14px;border:1px solid var(--px-rule);justify-content:center;color:var(--px-fg);font-weight:600}   /* .list a is a full-width row; Find is a button */
.storelist .tickrow{padding:6px 0}
.storecopy{gap:8px;margin-top:8px}
.storewhole{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 6px}
.storepanel .linkish{display:inline;min-height:0;padding:0;border:0;background:none;color:var(--blue);font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.pastebox{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px}
.pastebox input{flex:1 1 180px;min-width:0}
.storetext{width:100%;margin-top:6px}
/* Walmart picks itself (4 Nov 2026): the picked product under the item's name, a quiet label for the app's
   own pick, and Change's alternatives as full-width buttons that wrap their words on a phone. */
.wmpick{color:var(--px-fg);overflow-wrap:anywhere}
/* Their own product Walmart can't sell today: said beside it, never quietly put in the cart. */
.sub.wmout{color:var(--px-fg);background:var(--amber-wash);padding:2px 6px;border-radius:4px;align-self:flex-start}
.badge.auto{background:var(--px-tint);color:var(--ink2);font-size:11px;padding:2px 6px}
.wmalts{display:flex;flex-direction:column;gap:6px;margin:8px 0 2px}
.wmalt{justify-content:flex-start;text-align:left;white-space:normal;font-weight:400;font-size:14px;min-height:40px;padding:8px 10px;width:100%}
.wmalts .linkish{align-self:flex-start}
.wmzip{margin:6px 0 8px}
.wmzip label{margin-top:4px}
.wmzip .row input{flex:1 1 120px;width:auto;min-width:0}
.wmprobe{overflow-wrap:anywhere;white-space:pre-wrap;font:13px var(--jp-mono)}
/* Choose what to order (4 Nov 2026): days, meals, dishes and lines as nested boxes. Each level steps in
   12px, so a line is 36px in on a 390px phone and its words still wrap rather than run off. */
.choosebar{padding:6px 10px 6px 14px;margin:0 0 12px;gap:4px 8px}
.choosepanel{padding:12px 14px;margin:0 0 12px}
/* Quick picks (5 Nov 2026): the first days of the week and whole aisles, one tap each. Chips wrap on a phone. */
.choosebar .quick{display:flex;flex-direction:column;gap:4px;padding:2px 0 4px}
.quickgroup{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.quickgroup .qlabel{min-width:56px}
.qchip{min-height:36px;padding:4px 12px;border-radius:18px;font-weight:400;font-size:14px}
.qchip .muted{font-size:12px}
.qchip[aria-pressed=true]{background:var(--px-accent);color:var(--px-accent-fg);border-color:var(--px-accent)}
.qchip[aria-pressed=true] .muted{color:inherit;opacity:.85}
/* The split (0027): which store each aisle goes to, named on the aisle's heading and counted on the store's button. */
.badge.storeat{margin-left:8px;vertical-align:middle;font-size:11px;padding:2px 6px;background:var(--wash);color:var(--blue)}
.storepick .n{display:inline-block;min-width:20px;margin-left:4px;padding:0 6px;border-radius:10px;font-size:12px;background:var(--soft);color:inherit}
.splitsays{margin:4px 0}
.splitedit{margin:6px 0 10px;padding:10px 12px;border:1px solid var(--line);border-radius:8px}
.splitrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;margin:0;padding:4px 0;font-weight:400}
.splitrow select{flex:0 1 200px;min-width:0;width:auto}
.choosetree,.choosetree ul{list-style:none;margin:0;padding:0}
.choosetree ul{padding-left:12px}
.choosetree > li{border-top:1px solid var(--line);padding:4px 0}
.choosetree > li:first-child{border-top:0}
.cpick{display:flex;gap:10px;align-items:center;margin:0;padding:0;min-height:44px;font-weight:400;cursor:pointer;flex:1 1 auto;min-width:0}
.cpick .txt{padding:8px 0;overflow-wrap:anywhere}
.cdishrow{display:flex;align-items:center;gap:8px}
.choosepanel .linkish{flex:none;display:inline;min-height:0;padding:4px 0;border:0;background:none;color:var(--blue);font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
/* A finished trip (0021): what it did not buy is carried onto later lists, and says so;
   what it bought is On hand, folded under the list. */
.badge.carried{background:var(--amber-wash);color:var(--amber);margin-left:6px;vertical-align:middle;font-size:11px;padding:2px 6px}
.shoplist input[type=checkbox]:disabled{opacity:.75}
.onhand{margin:12px 0 0;padding:10px 14px}
.onhand>summary{cursor:pointer;font-weight:600;font-size:14px}
.onhand ul{margin:6px 0}
.onhand .sub{display:block}
.trip label{margin:0}
.trip .pair{display:flex;align-items:center;gap:8px;flex:1 1 220px;min-width:0}
.trip .pair input{width:auto;min-width:0;flex:1}
.trip .pair label{white-space:nowrap}

/* Boards (1 Nov 2026): the next service's board as one line, and a board framed in Meals' page,
   sized by boards.js to the screen under the shell so its own sticky countdown works. */
.nextboard{display:flex;flex-direction:column;gap:2px;padding:12px 14px;margin:0 0 14px;text-decoration:none;color:inherit;border-left:3px solid var(--blue)}
.nextboard .name{font-weight:600;font-size:17px}
.nextboard .sub{color:var(--ink2);font-size:14px}
.boardhead{margin-bottom:8px}
.boardmeal{gap:8px;flex-wrap:wrap;align-items:center;margin:4px 0 0}
.boardmeal select{max-width:100%;min-width:0;flex:0 1 auto}
.boardlink{margin:0 0 10px}
/* Today's one cook-board line: a single row, so Today still fits one screen. */
.px-panel.boardtoday{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:8px 12px;margin:0 0 10px;text-decoration:none;color:inherit;border-left:3px solid var(--blue)}
.px-panel.boardtoday .px-label{margin:0;padding:0;border:0;align-self:center}
.boardtoday .name{font-weight:600}
.boardtoday .when{color:var(--ink2);font-size:14px}
.boardhead .row.head{gap:8px;flex-wrap:wrap}
.boardframe{display:block;width:100%;min-height:420px;border:1px solid var(--line);border-radius:var(--px-radius, 6px);background:#fff}
.warnlist li{color:var(--amber)}
@media print{ .boardhead, .crumb { display:none } .boardframe{border:0;height:auto} }
/* The plan builder and the cook's style (build.js, 3 Nov 2026). */
.build h2{margin-top:14px}
.build h2:first-child{margin-top:0}
.ways{display:grid;gap:8px;margin:8px 0 14px}
.way{border:1px solid var(--px-rule);border-radius:var(--px-radius);padding:8px 12px;background:var(--px-card)}
.way.on{border-color:var(--blue);background:var(--wash)}
.way .choice{margin:0}
.way-more{padding:4px 0 6px 30px}
.stylecard fieldset{border:0;padding:0;margin:0 0 12px}
.stylecard legend{font-weight:600;padding:0;margin-bottom:4px}
.stylecard summary{cursor:pointer}
.costline{margin:8px 0 0}
.costline.over strong{color:var(--bad,#b00020)}

/* Shop's Table view (5 Nov 2026): one row a thing, its total, the dishes that want it and a rough price.
   A wide screen reads it as a table; a phone stacks each row (box + name + price on top, the meals
   under) so nothing scrolls sideways. */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.viewswitch{margin:4px 0 10px;align-items:center}
.shopwrap{margin:0 0 8px}
table.shoptable{width:100%;border-collapse:collapse;font-size:14px;background:var(--px-card);border:1px solid var(--px-rule);border-radius:var(--px-radius)}
/* .tickrow is a flex row everywhere else: here it has to stay a table row, or the cells leave their columns. */
table.shoptable tr.tickrow{display:table-row}
table.shoptable th,table.shoptable td{text-align:left;vertical-align:top;padding:8px 10px;border-top:1px solid var(--line)}
table.shoptable thead th{border-top:0;font:600 11px/1 var(--jp-mono,monospace);text-transform:uppercase;letter-spacing:.06em;color:var(--ink2);padding:10px;white-space:nowrap}
table.shoptable .tk{width:44px;padding:2px 0 2px 4px}
table.shoptable .tk .hit{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
table.shoptable th.it{font-weight:600;min-width:8rem}
table.shoptable .sub{display:block;font-size:12.5px;font-weight:400;color:var(--ink2)}
table.shoptable .qty{white-space:nowrap}
table.shoptable .pr{text-align:right;white-space:nowrap}
table.shoptable .price{font-weight:600;font-variant-numeric:tabular-nums}
table.shoptable tr.aislehead th{background:var(--wash);font-weight:600;padding:7px 10px}
table.shoptable tr.aislehead th > span{vertical-align:middle}
table.shoptable tr.aislehead th > .muted{float:right}
table.shoptable tr.done th.it .name{text-decoration:line-through;color:var(--ink2)}
table.shoptable tfoot th,table.shoptable tfoot td{border-top:2px solid var(--px-rule);font-weight:600}
.usechip{display:inline-block;margin:0 6px 6px 0;padding:4px 10px;min-height:32px;font-size:13px;line-height:1.35;text-align:left;
  border:1px solid var(--px-rule);border-radius:999px;background:var(--px-card);color:var(--px-fg);cursor:pointer}
.usechip:hover,.usechip:focus-visible{border-color:var(--px-accent)}
.usechip .when{font-weight:600}
#dishSheet .rxline.hl,#dishSheet .method li.hl{background:var(--wash);border-left:3px solid var(--px-accent);padding-left:8px;border-radius:4px}
@media (max-width:640px){
  table.shoptable thead{display:none}
  table.shoptable tr.tickrow{display:grid;grid-template-columns:44px 1fr auto;column-gap:6px;border-top:1px solid var(--line)}
  table.shoptable tr.tickrow > *{border-top:0;padding:6px 4px}
  table.shoptable tr.tickrow .tk{grid-row:1 / span 2}
  table.shoptable tr.tickrow .it{grid-column:2}
  table.shoptable tr.tickrow .qty{grid-column:2;grid-row:2;white-space:normal;padding-top:0}
  table.shoptable tr.tickrow .qty .sub{display:inline;margin-left:6px}
  table.shoptable tr.tickrow .pr{grid-column:3;grid-row:1}
  table.shoptable tr.tickrow .uses{grid-column:2 / span 2;grid-row:3;padding-top:0}
  table.shoptable tr.aislehead,table.shoptable tfoot tr{display:block}
  table.shoptable tr.aislehead th{display:block}
  table.shoptable tfoot tr{display:flex;justify-content:space-between}
  table.shoptable tfoot th,table.shoptable tfoot td{border-top:0}
  table.shoptable tfoot{display:block;border-top:2px solid var(--px-rule)}
  table.shoptable tbody{display:block}
  table.shoptable{display:block}
}

/* PLAN, edited in place (5 Nov 2026): a planned meal is a button that opens #editSheet; a line at the bottom
   offers Undo. The button wears the link's look; a drag lights the row it would land in. */
button.slot-meal{font:inherit;background:none;border:0;padding:4px 0;min-height:44px;border-radius:0;justify-content:flex-start;text-align:left;cursor:pointer;color:var(--ink)}
button.slot-meal:hover:not(:disabled){border:0;background:var(--px-tint)}
button.slot-meal .name{color:var(--blue)}
button.slot-meal[draggable="true"]{cursor:grab}
.slot.droptarget{outline:2px dashed var(--blue);outline-offset:-2px;background:var(--px-tint)}
#editSheet .sheet-in{max-width:620px}
#editSheet .ed{border-top:1px solid var(--soft);padding:10px 0 4px;margin-top:8px}
#editSheet .ed h3{margin:0 0 6px;font-size:15px}
#editSheet .edwhen{flex-wrap:wrap;align-items:flex-end;gap:8px 12px}
#editSheet .edwhen>span{min-width:0}
#editSheet .edwhen select,#editSheet .edwhen input{max-width:100%}
#editSheet .eddishes li,#editSheet .edpicks li{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
#editSheet .eddishes .grow,#editSheet .edpicks .grow{min-width:0;overflow-wrap:anywhere}
#editSheet .eddishes .sub,#editSheet .edpicks .sub{display:block;font-size:13px;color:var(--ink2)}
#editSheet .edpick{border:1px solid var(--soft);border-radius:var(--px-radius);padding:8px 10px;margin:6px 0}
#editSheet .edpicks{max-height:40vh;overflow:auto;margin:6px 0}
#editSheet .edwho{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:0 18px}
#editSheet .edwho .choice{border-top:0;padding:6px 0}
#editSheet .edgone{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
#editSheet #edGone{color:var(--red);padding-left:0}
.undobar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom));z-index:55;display:flex;align-items:center;gap:12px;background:var(--px-fg);color:var(--px-bg);border-radius:var(--px-radius);padding:6px 6px 6px 16px;font-size:15px;max-width:calc(100% - 32px);box-shadow:0 2px 10px rgba(0,0,0,.2)}
.undobar[hidden]{display:none}
/* Below the shell's floating Saved pill (84px up), and on a phone clear of the Feedback tab at the right. */
@media (max-width:600px){.undobar{left:16px;right:100px;transform:none;max-width:none;justify-content:space-between}}
.undobar button{min-height:40px;padding:6px 12px;background:transparent;color:var(--px-bg);border-color:var(--px-bg)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
