:root{
  /* Surfaces. A dark theme separates by a visible EDGE, not a big fill jump: contrast
     ratios compress at low luminance, so lifting a card far enough to read as "1.5
     against the page" just makes it washed-out grey. Measured targets instead: the card
     sits 1.13 on the page, a control 1.20 on the card, and --line does the real work at
     3.6 against a card and 3.0 against every surface, which is the WCAG 1.4.11 floor for
     a control boundary. The old palette had that border at 1.26, which is invisible, and
     that, not the text colour, is why the app looked flat.
     Every pair below is asserted in tests/test_contrast.py so this cannot silently rot. */
  --bg:#0a0d13; --surface:#161b26; --raised:#222a3a; --well:#0f131c;
  --line:#6a7384; --line-soft:#2e3747;
  --ink:#f4f6fa; --muted:#a8b3c4; --dim:#7d8798;
  /* The in-app camera is black in every theme, so the food reads true (2 Nov 2026). */
  --cam-bg:#000; --cam-shade-rgb:0 0 0;
  --accent:#4cc4a0; --on-accent:#05120c; --red:#ff7d7d; --amber:#ffc46b;
  --on-red:#2a0b0b; --on-amber:#231a05; --beam:#7dffd4;
  /* Channel triples, so a tint is mixed from the token instead of the colour being
     hard-coded a second time and drifting when the token changes. */
  --accent-rgb:76 196 160; --red-rgb:255 125 125; --amber-rgb:255 196 107;
  /* The calorie split's three arcs: one lighter than the accent, the accent, one deeper.
     Steps of OPACITY were tried first and do not work on a dark ground, because fading a
     colour toward a near-black page only ever moves it toward the page: at .34 the fat arc
     measured 2.04 against the card, under the 3:1 a graphic carrying meaning has to clear.
     Stepping lightness up as well as down keeps all three above 3:1 on the card AND on a
     raised surface, and keeps them one family so green still reads as green. */
  /* 6 Oct 2026, the depth pass: three HUES now, not three greens ("three greens in a row are not a legend").
     Protein a pale sky, carbs the accent itself, fat a violet. Still stepped in lightness (each step over 1.5) so a
     greyscale screenshot or colour-blind eye can still tell them apart, every one above 3:1 on every surface, and none
     borrows a meaning already taken: amber is "over", red is a warning. */
  --split-p:#bfe4ff; --split-c:var(--accent); --split-f:#8f7bef;
  --muted-rgb:168 179 196;
  /* The camera button's glass. One light source, upper left, so the lit stop and the deep stop are
     the SAME green at two different distances from that light, not two different greens. They are
     tokens because light mode will need its own pair, and a colour written into a rule is a colour
     that cannot follow a theme. --on-accent-rgb is the same near-black as --on-accent, as a triple,
     so the shadows inside the glass are mixed from the palette instead of guessed. */
  --lens-lit:#a5f0d5; --lens-deep:#2f9c7e; --on-accent-rgb:5 18 12; --lit-rgb:255 255 255;
  /* The focus reticle, defined here and brightened locally when pressed. */
  --bracket:rgb(var(--accent-rgb)/.5);
  /* One spacing and radius scale, so padding stops being decided per rule. */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px;
  --r1:10px; --r2:14px; --r3:18px; --r4:22px; --pill:999px;
  --pad:16px;
  /* Elevation: an edge plus a soft shadow. Shadow alone cannot be seen on a dark ground. */
  --lift-1:0 1px 2px rgb(0 0 0 / .35);
  --lift-2:0 4px 14px rgb(0 0 0 / .35);
  --lift-3:0 6px 22px rgb(0 0 0 / .45);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--ink);
  font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  overflow-x:hidden}
/* No pull-to-refresh (2 Nov 2026, for the store apps): dragging down at the top reloaded the whole app, a web page's
   habit. "contain" keeps the phone's own bounce or stretch at the edge, which native apps have too. */
html{overscroll-behavior-y:contain}
body{padding:env(safe-area-inset-top) var(--pad) calc(env(safe-area-inset-bottom) + 24px)}
.screen{max-width:560px;margin:0 auto}
header{display:flex;align-items:center;justify-content:space-between;padding:18px 0 8px}
.brand{font-size:21px;font-weight:650;margin:0;letter-spacing:-.01em}
.brand img{display:block;height:25px;width:auto}
.lockBrand{display:flex;justify-content:center;margin:2px 0 10px}
.lockBrand img{height:37px;width:auto}
.muted{color:var(--muted)}
.hint{color:var(--muted);text-align:center;font-size:15px;margin:14px 0 0}
.error{color:var(--red)}

button{font:inherit;border:0;border-radius:var(--r2);padding:16px 20px;min-height:52px}
.primary{background:var(--accent);color:var(--on-accent);font-weight:650;width:100%;
  box-shadow:var(--lift-1)}
.ghost{background:transparent;color:var(--muted);border:1px solid var(--line);
  padding:10px 16px;min-height:44px;border-radius:var(--r2)}

/* A visible focus ring. :focus-visible only, so it appears for a keyboard or a switch and never
   as a box left behind after a tap. Offset so it reads as a ring rather than thickening the border. */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r1)}

#lock{padding-top:max(4vh,12px);text-align:center;max-width:400px}
#passcode{width:100%;margin:18px 0 12px;padding:18px;font-size:26px;text-align:center;
  letter-spacing:.3em;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r2);color:var(--ink)}
/* The emailed-code sign-in on the lock screen. Same well as the passcode box, smaller type for an
   address; the code box spaces its digits like the passcode does. */
.lockField{width:100%;margin:12px 0 10px;padding:15px;font-size:17px;text-align:center;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r2);color:var(--ink)}
.lockField.code{font-size:26px;letter-spacing:.3em;padding:16px}
#signin,#googleSignin{width:100%}
#googleLogin{margin-top:10px}
#lockCodeSent{margin:0 0 18px;font-size:15px;line-height:1.45}
#emailEditBox{display:block}
#emailEditBox .primary,#emailCancel{width:100%}
#emailCancel{margin-top:6px}
/* The add-your-email card: words on their own line, the two buttons under them, the one that acts last. */
#emailHint{flex-wrap:wrap;justify-content:flex-end}
#emailHint p{flex:1 1 100%}
.joinLink{margin-top:28px;font-size:15px}
.joinLink a{color:var(--accent);font-weight:600}

/* THE CAMERA BUTTON IS THE APP.
   Lance, 25 Sep 2026: "that is the most used button in the entire app and it's the foundation of
   the entire thing... it must exude trust and professionalism as if this technology is extremely
   reliable accurate and trustworthy."

   Trust is drawn with PRECISION, not with decoration. Everything here is a real optical cue rather
   than an ornament: a glass element with one light source, a barrel edge, an aperture, and a focus
   reticle. Nothing bounces, nothing rainbows, nothing celebrates. An instrument you would believe a
   measurement from is still, exact, and answers the instant you touch it.

   PRESSING IT OPENS THE SYSTEM CAMERA, and that is the constraint the press animation is built
   around: the input is inside the label, so the picker opens on the browser's own gesture handling
   with nothing deferred. Every effect below is CSS on :active, so it plays WHILE the camera sheet
   rises and can never hold it up. Anything on a timer here would delay the camera, and a shutter
   that hesitates is the opposite of the thing this button is trying to say. */
.shoot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;
  margin-top:8vh;padding:42px 20px 38px;border:1px solid var(--line);
  /* The card is lit from the same direction as the glass on it. A control reads as one solid object
     when every surface agrees about where the light is. */
  background:linear-gradient(180deg,var(--raised) 0%,var(--surface) 62%);
  border-radius:var(--r4);cursor:pointer;box-shadow:var(--lift-2);
  transition:transform .14s cubic-bezier(.2,.8,.3,1),border-color .14s,box-shadow .14s}
.shoot:active{transform:scale(.985);border-color:rgb(var(--accent-rgb)/.55)}
/* A label's focus lands on the input inside it, which is 1px and invisible, so the ring has to be
   drawn on the thing a person can actually see. */
.shoot:focus-within{outline:3px solid rgb(var(--accent-rgb)/.75);outline-offset:3px}
.shoot input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}

.lensWrap{position:relative;display:grid;place-items:center;width:150px;height:150px}

/* The focus reticle: four corner brackets, drawn as eight backgrounds on one element rather than
   eight spans. They close in when pressed, which is what a camera does when it takes the shot. */
.lensWrap::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(var(--bracket),var(--bracket)) left top/14px 2px no-repeat,
    linear-gradient(var(--bracket),var(--bracket)) left top/2px 14px no-repeat,
    linear-gradient(var(--bracket),var(--bracket)) right top/14px 2px no-repeat,
    linear-gradient(var(--bracket),var(--bracket)) right top/2px 14px no-repeat,
    linear-gradient(var(--bracket),var(--bracket)) left bottom/14px 2px no-repeat,
    linear-gradient(var(--bracket),var(--bracket)) left bottom/2px 14px no-repeat,
    linear-gradient(var(--bracket),var(--bracket)) right bottom/14px 2px no-repeat,
    linear-gradient(var(--bracket),var(--bracket)) right bottom/2px 14px no-repeat;
  transition:inset .16s cubic-bezier(.2,.8,.3,1)}
.shoot:active .lensWrap::before{inset:9px;--bracket:rgb(var(--accent-rgb)/.9)}

/* Ready, not nagging: a slow bloom behind the glass, about the rate of a resting breath. */
.lensWrap::after{content:"";position:absolute;width:128px;height:128px;border-radius:50%;
  background:radial-gradient(circle,rgb(var(--accent-rgb)/.28),transparent 70%);
  animation:lensReady 3.4s ease-in-out infinite}
@keyframes lensReady{0%,100%{opacity:.5;transform:scale(1)}50%{opacity:1;transform:scale(1.07)}}

/* The glass. One light source, upper left, held consistently by every highlight and shadow here:
   two light sources is the thing that makes a rendered object look fake. */
.lens{width:112px;height:112px;border-radius:50%;display:block;position:relative;z-index:1;
  /* A shallow gradient, not a bulge. A big white blowout across the top is how a button ends up
     looking moulded and cheerful; an instrument is nearly flat with its light held at the edge. */
  background:radial-gradient(circle at 42% 34%,var(--lens-lit) 0%,var(--accent) 52%,var(--lens-deep) 100%);
  box-shadow:
    0 0 0 1px rgb(var(--lit-rgb)/.10),                 /* a machined outer edge */
    0 0 0 5px rgb(var(--accent-rgb)/.13),              /* the coating, sitting off the barrel */
    0 14px 30px rgb(var(--on-accent-rgb)/.5),          /* weight, so it rests ON the card */
    inset 0 -8px 16px rgb(var(--on-accent-rgb)/.42),   /* the underside turning away */
    inset 0 2px 5px rgb(var(--lit-rgb)/.16);           /* the top edge catching the light */
  transition:transform .14s cubic-bezier(.2,.8,.3,1),box-shadow .14s}
/* Pressed: it sits DOWN into the card and the coating tightens around it. Travel plus a change of
   light, because a press that only changes colour reads as a state, and a press that moves reads as
   a mechanism. */
.shoot:active .lens{transform:scale(.945);
  box-shadow:
    0 0 0 1px rgb(var(--lit-rgb)/.16),
    0 0 0 9px rgb(var(--accent-rgb)/.2),
    0 3px 10px rgb(var(--on-accent-rgb)/.55),
    inset 0 -4px 12px rgb(var(--on-accent-rgb)/.5),
    inset 0 2px 4px rgb(var(--lit-rgb)/.1)}

/* The aperture. It closes on the press: the single clearest way to say "the shot is being taken"
   without drawing a shutter that is not really there. */
.lens::before{content:"";position:absolute;inset:27px;border-radius:50%;
  border:6px solid var(--on-accent);
  /* An opening is a HOLE: dark inside, with the lit rim of the cut showing at its edge. Drawing it
     as a flat dark ring is what made the old one read as a printed circle rather than an aperture. */
  box-shadow:0 0 0 1px rgb(var(--lit-rgb)/.14),inset 0 0 0 1px rgb(var(--on-accent-rgb)/.9),
    inset 0 1px 6px rgb(var(--on-accent-rgb)/.65);
  transition:inset .14s cubic-bezier(.2,.8,.3,1),border-width .14s}
.shoot:active .lens::before{inset:33px;border-width:8px}

/* The specular: the one highlight that makes it read as glass rather than paint. */
.lens::after{content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;
  background:linear-gradient(161deg,rgb(var(--lit-rgb)/.15) 0 11%,rgb(var(--lit-rgb)/0) 38%)}

.shootLabel{font-size:21px;font-weight:650;letter-spacing:-.015em}
.shoot:active .shootLabel{color:var(--accent)}

/* Reduced motion keeps every STATE and drops every MOVEMENT: pressed still looks pressed, so the
   button still answers, it just does not travel to say so. */
@media (prefers-reduced-motion:reduce){
  .shoot,.lens,.lens::before,.lensWrap::before{transition:none}
  .shoot:active{transform:none}
  .shoot:active .lens{transform:none}
  .lensWrap::after{animation:none;opacity:.75}
}

.pick{display:block;margin-top:10px;padding:14px 20px;text-align:center;
  background:transparent;border:1px solid var(--line-soft);border-radius:var(--r2);
  color:var(--muted);font-size:15px;min-height:50px;cursor:pointer}
.pick input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}

/* Radar sweep. Only transform and opacity animate, so it composites on the GPU
   and costs no layout or paint per frame. The glow is a static box-shadow on a
   moving element, not an animated shadow, which would be a repaint every frame. */
.scanWrap{position:relative;margin-top:10px;border-radius:var(--r4);overflow:hidden;min-height:160px}
#shot{width:100%;display:block}
.scan{position:absolute;inset:0;pointer-events:none;transition:opacity .32s ease}
.scan.done{opacity:0}
/* a faint grid for the instrument feel, static */
.scan::after{content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgb(var(--accent-rgb) / .07) 1px,transparent 1px),
    linear-gradient(90deg,rgb(var(--accent-rgb) / .07) 1px,transparent 1px);
  background-size:14.2857% 14.2857%}
/* The beam is the glowing line itself, moved in PIXELS by the Web Animations API
   once the photo is on screen (see runSweep in app.js). A translateY(%) sweep sat
   frozen at the top of the photo on Lance's iPhone; pixel travel fixed it there,
   confirmed on his phone 13 Sep 2026. No percentages, no animated ancestor. */
.beam{position:absolute;top:0;left:-4%;right:-4%;height:2px;border-radius:2px;
  background:var(--beam);
  box-shadow:0 0 6px 2px rgb(125 255 212 / .85), 0 0 22px 8px rgb(var(--accent-rgb) / .55),
             0 0 60px 20px rgb(var(--accent-rgb) / .28);
  opacity:0;will-change:transform}
.beam.live{opacity:1}
/* the trail, above the line, so it follows the beam down */
.beam::before{content:"";position:absolute;left:4%;right:4%;bottom:2px;height:76px;
  background:linear-gradient(to top,rgb(var(--accent-rgb) / .34),transparent)}

/* Progress bar. Fills toward 90% over 13s, which is where the median answer
   lands, then holds. It never sits at 100% waiting, because a full bar with
   nothing happening reads as broken. The last tenth closes when the answer does. */
.progress{height:4px;border-radius:3px;background:var(--well);overflow:hidden;margin-top:12px}
.progressFill{height:100%;width:100%;border-radius:3px;background:var(--accent);
  transform:scaleX(0);transform-origin:left;will-change:transform}
.progress.full .progressFill{animation:none;transform:scaleX(1);
  transition:transform .3s ease}
@keyframes fill{from{transform:scaleX(0)}to{transform:scaleX(.9)}}

@media (prefers-reduced-motion:reduce){
  .beam{animation:none;top:50%;opacity:.5}
  .jitter{animation:none}
  .progressFill{animation:none;transform:scaleX(.5)}
}

/* the photo stays at the top of the summary, with numbered labels under it */
.summaryShot{width:100%;display:block;border-radius:var(--r3);margin-bottom:14px}

.swapHint{margin:14px 0 6px;color:var(--muted);font-size:13px}
/* Alternatives must never be truncated: this is the correction path the whole
   accuracy design leans on, and an unreadable option cannot be chosen. */
.alts button{flex:1 1 100%;text-align:left;white-space:normal;line-height:1.35;
  padding:12px 14px;overflow-wrap:anywhere}
.conf{margin-top:8px;font-size:13px;color:var(--amber)}
.conf.low{color:var(--red)}
.working{display:flex;align-items:center;gap:12px;justify-content:center;padding:20px 0;color:var(--muted)}
.spinner{width:20px;height:20px;border-radius:50%;border:3px solid var(--line);
  border-top-color:var(--accent);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* the answer */
.answer{background:var(--surface);border:1px solid var(--line);border-radius:var(--r4);
  padding:22px;margin-top:14px}
.kcal{font-size:clamp(42px,14vw,54px);font-weight:700;line-height:1;letter-spacing:-.03em}
.kcal span{font-size:21px;font-weight:500;color:var(--muted);margin-left:8px}
.kj{color:var(--muted);font-size:15px;margin-top:6px}
/* A clear second to the macros: a headline figure, not a caption, but never
   competing with the tiles above it. Calories carry the weight, kJ sits beside
   them small, the same relationship the unit suffix has on a macro tile. */
.energy{display:flex;align-items:baseline;justify-content:center;gap:10px;margin-top:18px}
.energy b{font-size:clamp(22px,7.5vw,31px);font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.energy b i{font-style:normal;font-size:.45em;font-weight:600;color:var(--muted);margin-left:3px}
.energy span{font-size:13px;color:var(--muted)}
.macros{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:4px}
/* min-width:0 stops a long value (100.5 g) from forcing the grid wider than
   the screen. Grid and flex children default to min-width:auto. */
/* Tiles are display, not controls, so they take the quiet border: the lifted fill and the shadow
   do the separating, and a 3:1 edge on every tile would read as a grid of boxes. */
.macro{background:var(--raised);border:1px solid var(--line-soft);border-radius:var(--r2);
  padding:16px 6px;text-align:center;min-width:0;box-shadow:var(--lift-1)}
/* The hero of the page. He should read protein, carbs and fat without looking
   for them, so they are the largest thing on screen and energy steps back. */
.macro b{display:block;font-size:clamp(26px,9vw,40px);font-weight:700;
  letter-spacing:-.03em;white-space:nowrap;line-height:1.05}
.macro b i{font-style:normal;font-size:.44em;font-weight:600;color:var(--muted);margin-left:2px}
.macro small{margin-top:5px}
.macro small{color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.06em}


.ask{margin-top:16px;background:var(--raised);border:1px solid var(--line);
  border-radius:var(--r3);padding:18px}
.ask p{margin:0 0 14px;font-weight:600}
.opts{display:flex;flex-wrap:wrap;gap:10px}
.opts button{background:var(--bg);color:var(--ink);border:1px solid var(--line);
  flex:1 1 44%;min-width:0;padding:14px 10px;font-size:15px}

.items{margin-top:18px;display:flex;flex-direction:column;gap:10px}
.item{background:var(--raised);border:1px solid var(--line-soft);border-radius:var(--r3);
  padding:14px 16px;box-shadow:var(--lift-1)}
.item .row{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.item b{font-weight:600;font-size:17px;min-width:0;overflow-wrap:anywhere}
.item .kc{color:var(--muted);font-size:15px;white-space:nowrap}
.itemMacros{display:flex;gap:14px;margin-top:8px;flex-wrap:wrap}
.itemMacros span{color:var(--muted);font-size:13px;white-space:nowrap}
.itemMacros b{color:var(--ink);font-weight:650;font-size:15px}
.item .src{color:var(--muted);font-size:13px;margin-top:8px}
.taps{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.taps button{background:var(--bg);color:var(--muted);border:1px solid var(--line);
  padding:9px 13px;min-height:44px;font-size:13px;border-radius:var(--r2);
  max-width:100%;overflow-wrap:anywhere}
.taps button.on{border-color:var(--accent);color:var(--accent)}

.actions{display:flex;gap:10px;margin-top:18px}
.actions button{flex:1}

/* today */
/* Meal rows are buttons: they open that meal's summary again. */
.dayline{display:flex;width:100%;justify-content:space-between;align-items:center;gap:12px;
  padding:14px 12px;margin:0 -12px;border:0;border-bottom:1px solid var(--line-soft);
  background:transparent;color:var(--ink);font:inherit;text-align:left;
  min-height:52px;border-radius:var(--r2)}
.dayline:active{background:var(--raised)}
.dayText{min-width:0;overflow-wrap:anywhere}
.chev{color:var(--muted);margin-left:8px;font-size:17px}
.dayline .kc{white-space:nowrap;color:var(--muted);font-size:15px;flex:0 0 auto}
/* The whole bars block is now the switch, instead of a pill above it (Lance, 23 Sep 2026:
   "get rid of the % of target switch button thing ... just make it if you press on the
   collection of the bars"). It sits outside .targetsTap rather than inside it: that wrapper
   is already role="button", and a button inside a button is invalid and reads as one
   confused control to a screen reader.

   The hint stays, much quieter than the pill was. Removing the pill removes the only thing
   on the screen that said switching exists at all, and a gesture nobody knows about is the
   same as a feature that is not there. It is a caption, not a control: 11.5px, muted, no
   border, and the tap target is the whole block behind it. */
.bars{margin-top:16px;display:flex;flex-direction:column;gap:12px;
  padding:12px;margin-inline:-12px;border-radius:var(--r2);cursor:pointer;
  -webkit-tap-highlight-color:transparent}
.bars:active{background:var(--well)}
.bars:focus-visible{outline:2px solid rgb(var(--accent-rgb) / .8);outline-offset:2px}
.barsHint{margin:2px 0 0;text-align:right;font-size:11.5px;color:var(--dim);letter-spacing:.02em}
.barsHint span{margin-left:3px}
.bar small{display:flex;justify-content:space-between;color:var(--muted);font-size:13px}
/* The track holds the whole amount, not just the target, so the two fills sit side by side
   and the mark shows where the target was. overflow:hidden keeps the rounded ends. */
.track{position:relative;display:flex;height:9px;background:var(--well);border-radius:5px;
  margin-top:6px;overflow:hidden}
.fill{height:100%;background:var(--accent)}
.fill.over{background:var(--amber)}
.trackMark{position:absolute;top:0;bottom:0;width:0;border-left:2px dashed var(--ink);opacity:.8}
/* The calorie bar is the primary one on the day, so it is taller than the three macro
   bars under it and sits tight to the figure it belongs to. Weight is doing the work
   here, not colour: it stays the same green as the macros. */
.calBar{margin-top:12px}
.calBar .track{height:14px;border-radius:7px}
.attr{color:var(--muted);font-size:11.5px;line-height:1.5;margin-top:26px}

/* Update pill. Fixed, so it never pushes the layout around, and it is a hint
   rather than an interruption: nothing reloads until it is tapped. */
.updatePill{position:fixed;left:50%;transform:translateX(-50%);
  bottom:calc(env(safe-area-inset-bottom) + 14px);z-index:20;
  background:var(--accent);color:var(--on-accent);font-size:13px;font-weight:600;
  border-radius:var(--pill);padding:11px 18px;min-height:0;
  box-shadow:var(--lift-3);animation:pillIn .3s ease}
@keyframes pillIn{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
.version{color:var(--muted);opacity:.55;font-size:11.5px;text-align:center;margin-top:18px}

/* day and month navigation */
/* THE DAY IS THE SUBJECT OF THIS ROW. EVERYTHING ELSE IS A CONTROL.
   
   Until 23 Sep all five carried the same raised fill and border, and the calendar chip was ACCENT
   green, so the loudest thing in the row was a utility while "Today", the thing the row is actually
   about, sat in plain 17px text. The eye landed on the wrong element every time.
   
   Now: the day is the largest thing here, the arrows are chevrons rather than boxes, and the two
   utilities keep a quiet outline. All four stay 44px, which is the tap target floor: quieter must
   never mean harder to hit. */
.dayNav{display:flex;align-items:center;gap:4px;padding:6px 0 14px}
.dayLabel{flex:1;text-align:center;font-size:21px;font-weight:650;min-width:0;letter-spacing:-.01em}
.navBtn{background:transparent;border:0;color:var(--muted);
  width:44px;height:44px;min-height:44px;padding:0;border-radius:var(--r2);font-size:21px;line-height:1}
.navBtn:hover:not(:disabled),.navBtn:focus-visible{color:var(--ink)}
.calBtn{background:transparent;border:1px solid var(--line-soft);color:var(--muted);
  width:44px;height:44px;min-height:44px;padding:0;border-radius:var(--r2);font-size:15px;line-height:1}
.navBtn:disabled{opacity:.3}
.todayBtn{width:100%;background:transparent;border:1px solid var(--line);
  color:var(--muted);border-radius:var(--r2);padding:12px;min-height:46px;
  font-size:15px;margin-bottom:12px}
.empty{color:var(--muted);text-align:center;padding:26px 0;margin:0}

/* month grid. At 390px: 358 body, less 2x12 card padding = 334, less six 4px
   gaps = 310, so each cell is 44px. That is the tap target floor exactly, which
   is why the cells carry a number and a total and nothing else. */
.grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r3);padding:12px}
.wd{text-align:center;color:var(--muted);font-size:11.5px;padding-bottom:4px}
.cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  min-height:50px;min-width:0;padding:2px;border:1px solid transparent;border-radius:var(--r1);
  background:transparent;color:var(--ink);font:inherit}
.cell.blank{visibility:hidden}
.cell.isToday{border-color:var(--accent)}
.cell.future{opacity:.35}
.cellDay{font-size:13px;font-weight:600;line-height:1}
.cellCal{font-size:11.5px;color:var(--muted);line-height:1}
/* an unlogged day gets a quiet dot, never a zero */
.cellCal.dot{width:3px;height:3px;border-radius:50%;background:var(--line-soft);margin-top:3px}

/* Press feedback. iOS Safari has no Vibration API, so this is visual only.
   Transform and opacity keep it off the layout and paint path. */
button:active,.shoot:active,.pick:active,.dayline:active,.cell:active{
  transform:scale(.965);opacity:.88}
button,.shoot,.pick,.dayline,.cell,details summary{
  transition:transform .09s ease,opacity .09s ease}
.updatePill:active{transform:translateX(-50%) scale(.95);opacity:.9}
@media (prefers-reduced-motion:reduce){
  button:active,.shoot:active,.pick:active,.dayline:active,.cell:active{transform:none}
  .updatePill:active{transform:translateX(-50%)}
}

/* Collapsed sections (23 Sep 2026, Lance: "i dont think every food needs the 'not this? change it'
   so big ... it's too in your face and the screen is too crowded").

   The bordered full width box that used to live here is gone, and both things that used it moved
   onto .quiet below. A meal with four foods was showing four of them, each 44px tall with a border,
   for a path most people never take.

   The note that was here said "the label has to say what it is for, not be a bare chevron", and that
   still holds, which is why this is an icon AND the word "Change" rather than the bare chevron that
   was asked for. A glyph alone on a correction control is a guess about what it corrects. */
/* Both, not either. ::-webkit-details-marker alone leaves the triangle in current Chrome and
   Safari, which want list-style; and this is set on every summary rather than per class, because
   the per-class version is how a fat picker ended up wearing a raw browser triangle the moment a
   rule it silently depended on was deleted. */
details summary{list-style:none}
details summary::-webkit-details-marker{display:none}
details.swap .taps{margin-top:10px}
/* Could also be (11 Oct 2026): other foods by name, first under Change, as chips; then the database's closer
   matches; then a second look at the photo. Each group is labelled so the two kinds of list never blur together. */
.swapHead{margin:14px 0 0;color:var(--muted);font-size:13px}
details.swap .swapHead + .taps{margin-top:8px}
.couldBe{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.couldBe .chip{min-height:44px;padding:10px 14px;font-size:15px;font-weight:550;white-space:normal;text-align:left;
  background:var(--raised);color:var(--ink);border-color:var(--line)}
.lookAgain{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:12px;color:var(--ink)}
.lookAgain .uiIcon{color:var(--accent)}

/* current portion, so he can see what the steps are doing */

/* titled meal rows */
.dayMain{display:flex;flex-direction:column;gap:5px;min-width:0;align-items:flex-start}
/* The food is the heading, not "Meal 2".
   It was the other way round until 23 Sep: "Meal 2" was bold and full brightness while "chicken and
   rice" sat underneath in grey. Nobody scans a day looking for which number a meal was; they scan
   for what they ate, and the app was making them read the small grey line to find it. */
.dayTitle{font-size:17px;font-weight:650;color:var(--ink)}
.dayTitle em{font-style:normal;font-weight:500;color:var(--muted);margin-left:8px;font-size:13px}
.daySub{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.dayMacros{display:flex;gap:12px;flex-wrap:wrap}
.dayMacros span{color:var(--muted);font-size:13px;white-space:nowrap}
.dayMacros b{color:var(--ink);font-weight:650;font-size:13px}
.dayline{align-items:flex-start;padding:14px 12px}

.danger{background:var(--red);color:var(--on-red);font-weight:650;flex:1}

/* the info panel: one tap from the day header, collapsed by default */
.calBtn.info{font-size:17px;font-weight:700;font-style:italic;font-family:Georgia,serif}
.infoPanel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r3);
  padding:16px;margin-bottom:12px}
.infoPanel p{margin:0 0 9px;color:var(--muted);font-size:13px;line-height:1.5}
.infoPanel p:last-child{margin-bottom:0}
.infoHead{color:var(--ink)!important;font-weight:650;font-size:15px!important}
.infoPanel .attr{font-size:11.5px;line-height:1.5}
.infoPanel .version{opacity:.55;font-size:11.5px}

/* ---------- targets screen ---------- */
.targetsTap{display:block;cursor:pointer;border-radius:var(--r2)}
.targetsTap:active{transform:scale(.985);opacity:.9}
.tnote{display:block;margin-top:12px;color:var(--muted);font-size:13px;text-align:right}
.tnote.unset{color:var(--amber);text-align:left}
/* THREE WEIGHTS, AND THEY MUST LOOK DIFFERENT.
   
   .primary  filled accent   the one thing this screen is for. Never two on a screen.
   .ghost    outlined        a real alternative, chosen about as often as not
   .linkBtn  no border       occasional, or a way out. A link, which is what it is called.
   
   linkBtn used to carry "border:1px solid var(--line)", so a link rendered as a box identical to a
   ghost button. That is why every screen read as a stack of equal options: the app had one control
   style wearing three class names, and an eye had to READ each box to rank it. Counted 23 Sep: four
   near-identical boxes on the home screen, four more in the account export block.
   
   Still 46px tall. Quieter is not the same as harder to hit. */
.linkBtn{background:transparent;border:0;color:var(--accent);
  width:100%;border-radius:var(--r2);min-height:46px;font-size:15px;font-weight:600;margin-top:4px}
.linkBtn:hover,.linkBtn:focus-visible{text-decoration:underline}
.navSpacer{width:44px;flex:0 0 44px}
.tcard{margin-top:0;margin-bottom:12px}
.tHead{margin:0 0 12px;font-weight:650;font-size:15px}
.tSub{margin:12px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.seg{display:flex;gap:8px}
.seg button{flex:1;background:var(--raised);border:1px solid var(--line);color:var(--ink);
  border-radius:var(--r2);min-height:46px;padding:8px 6px;font-size:15px}
.seg button.on,.acts button.on{border-color:var(--accent);color:var(--accent)}
.seg small{font-size:13px;color:var(--muted);margin-left:3px}
.seg button.on small{color:var(--accent)}
.tgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.tfield{display:flex;flex-direction:column;gap:6px;min-width:0}
.tfield>span{color:var(--muted);font-size:13px}
.tin{display:flex;align-items:center;gap:6px;background:var(--raised);border:1px solid var(--line);
  border-radius:var(--r2);padding:0 10px;min-height:46px;min-width:0}
.tin input{flex:1;min-width:0;width:100%;background:transparent;border:0;color:var(--ink);
  font:inherit;font-size:17px;font-weight:600;padding:10px 0;outline:none}
.tin em{font-style:normal;color:var(--muted);font-size:13px}
.acts{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.acts button{background:var(--raised);border:1px solid var(--line);color:var(--ink);text-align:left;
  border-radius:var(--r2);min-height:46px;padding:11px 14px;font-size:15px;line-height:1.35}
.tBmr{margin-top:14px}
.tnums{display:flex;gap:18px;flex-wrap:wrap}
.tnums span{color:var(--muted);font-size:13px}
.tnums b{color:var(--ink);font-size:21px;font-weight:700;margin-right:2px}
.trow{margin-top:14px}
.tline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tline>span:first-child{font-size:15px;font-weight:600}
.tline .tin{width:130px;flex:0 0 130px}
.tslider{width:100%;height:44px;margin:4px 0 0;accent-color:var(--accent)}
.terr{margin:14px 0 0;color:var(--red);font-size:13px}
.twarn{margin:14px 0 0;color:var(--amber);font-size:13px;line-height:1.5}

/* Back out of a meal: top of the page, one-handed, press feedback from button:active */
.mealNav{padding:6px 0 10px}
.backBtn{background:var(--raised);border:1px solid var(--line);color:var(--ink);min-height:46px;
  padding:0 18px 0 12px;border-radius:var(--r2);font-size:15px;font-weight:600;max-width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* calendar button: today's month and day, drawn, not an emoji. Theme tokens only. */
.calIcon{display:inline-flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
  overflow:hidden;padding:0;line-height:1}
.calIcon .calMon{background:var(--line);color:var(--ink);font-size:11.5px;font-weight:800;
  letter-spacing:.06em;padding:3px 0 2px;text-align:center}
.calIcon .calDay{flex:1;display:flex;align-items:center;justify-content:center;
  color:var(--ink);font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}

/* ---------- photo first, then the scan ---------- */
/* Nothing about the scan shows until the photo is on screen: the bar is invisible
   and not animating, the grid is off, the beam is off. */
.progress{opacity:0;transition:opacity .2s ease}
.progress.running{opacity:1}
.progress.running .progressFill{animation:fill 13s cubic-bezier(.3,.42,.45,1) forwards}
.progress.running.full .progressFill{animation:none;transform:scaleX(1);transition:transform .3s ease}
.scan::after{opacity:0;transition:opacity .2s ease}
.scanWrap.scanning .scan::after{opacity:1}
#shot{transition:opacity .12s ease}

/* Loading the photo: a quiet pulse and short text inside the frame. Opacity only,
   so it reads as working, and it looks nothing like the scan that follows. */
.scanWrap.loading,.scanWrap.nophoto{background:var(--surface)}
.scanWrap.loading #shot{opacity:0}
.photoNote{position:absolute;inset:0;display:none;align-items:center;justify-content:center;
  padding:0 20px;text-align:center;color:var(--muted);font-size:15px;z-index:1;pointer-events:none}
.scanWrap.loading .photoNote,.scanWrap.nophoto .photoNote{display:flex}
.scanWrap.loading::before{content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(255,255,255,0) 20%,rgba(255,255,255,.07) 50%,rgba(255,255,255,0) 80%);
  animation:photoPulse 1.3s ease-in-out infinite}
@keyframes photoPulse{0%,100%{opacity:.25}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .scanWrap.loading::before{animation:none;opacity:.6}
  .progress.running .progressFill{animation:none;transform:scaleX(.5)}
}

/* targets: a labelled way in */
.targetsCta{margin-top:16px}
.targetsCta .setTargets{min-height:50px}
.targetsCta .tnote{margin-top:8px;text-align:center;font-size:13px}
.editTargets{width:100%;margin-top:14px;min-height:44px;font-size:15px}

/* stage messages crossfade with the scan, opacity only */
#workingText{transition:opacity .17s ease}
#workingText.fading{opacity:0}

/* FAQ in the info panel: each question collapsed */
.faq{margin:14px 0 6px;border-top:1px solid var(--line-soft)}
.faq details{border-bottom:1px solid var(--line-soft)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;
  gap:10px;min-height:44px;padding:10px 0;color:var(--ink);font-size:15px;font-weight:600}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"\203A";transform:rotate(90deg);color:var(--muted);font-size:17px;flex:0 0 auto}
.faq details[open] summary::after{transform:rotate(-90deg)}
.faq details p{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.55}

/* ---------- calendar: goal-aware stats and day colours ---------- */
.cell.tone-good{background:rgb(var(--accent-rgb) / .24)}
.cell.tone-bad{background:rgb(var(--red-rgb) / .26)}
.cell.tone-warn{background:rgb(var(--amber-rgb) / .26)}
.cellCal .mark,.legend .mark{font-weight:800;font-style:normal;font-size:11.5px;margin-right:1px}
.tone-good .mark,.lg .tone-good + .mark{color:var(--accent)}
.tone-bad .mark,.lg .tone-bad + .mark{color:var(--red)}
.tone-warn .mark,.lg .tone-warn + .mark{color:var(--amber)}
.mstats{background:var(--surface);border:1px solid var(--line);border-radius:var(--r3);padding:14px 14px 12px;margin-bottom:10px}
.mgoal{margin:0 0 10px;font-weight:650;font-size:15px}
.mgoal span{font-weight:500;color:var(--muted);font-size:13px}
.figs{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:6px}
.fig{background:var(--raised);border:1px solid var(--line-soft);border-radius:var(--r2);
  padding:9px 6px;text-align:center;min-width:0}
.fig b{display:block;font-size:17px;font-weight:700;white-space:nowrap}
.fig small{display:block;margin-top:3px;font-size:11.5px;color:var(--muted);line-height:1.2;overflow-wrap:anywhere}
.mnote{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 2px 12px;color:var(--muted);font-size:13px}
.lg{display:inline-flex;align-items:center;gap:4px}
.sw{display:inline-block;width:11px;height:11px;border-radius:3px}
.sw.tone-good{background:rgb(var(--accent-rgb) / .55)}
.sw.tone-bad{background:rgb(var(--red-rgb) / .6)}
.sw.tone-warn{background:rgb(var(--amber-rgb) / .6)}

/* ---------- save or share the meal as an image ---------- */
.cardActs{display:flex;gap:8px;margin:12px 0 2px}
.cardBtn{flex:1;min-height:44px;padding:10px 12px;background:transparent;color:var(--muted);
  border:1px solid var(--line);border-radius:var(--r2);font-size:15px;font-weight:550}
.cardBtn:disabled{opacity:.45}
.cardView{position:fixed;inset:0;z-index:50;background:var(--bg);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:12px;padding:20px 16px}
.cardView img{max-width:100%;max-height:72vh;border-radius:var(--r2);-webkit-touch-callout:default;
  -webkit-user-select:auto;user-select:auto}
.cardView p{margin:0;color:var(--ink);font-size:15px;text-align:center}
.cardView button{min-width:140px}

/* ---------- all vitamins and minerals, and the info sheet ---------- */
.ngroup{margin-top:10px}
.nhead{margin:12px 0 2px;color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.06em}
.nrow{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;
  padding:8px 2px;background:transparent;border:0;border-bottom:1px solid var(--line-soft);border-radius:0;
  color:var(--ink);text-align:left;font-size:15px;font-weight:500}
.nname{display:inline-flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.nright{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex:none}
.nbar{position:relative;display:block;width:84px;height:3px;border-radius:2px;
  background:rgb(var(--muted-rgb) / .16);overflow:hidden}
.nbar i{position:absolute;left:0;top:0;bottom:0;background:rgb(var(--muted-rgb) / .72);border-radius:2px}
.nbar b{position:absolute;top:0;bottom:0;width:12px;
  background:repeating-linear-gradient(90deg,rgb(var(--muted-rgb) / .6) 0 2px,transparent 2px 4px)}
.nval{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:13px;text-align:right}
.nutriNote{margin:10px 0 2px;color:var(--muted);font-size:13px;line-height:1.45}
/* On the meal summary the macro labels and the calorie line open their sheets.
   They keep their exact look; an invisible extension makes each a 44px target. */
.labelTap{position:relative;display:inline;min-height:0;padding:0;margin:0;background:transparent;border:0;
  border-radius:0;font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit}
.labelTap::after{content:"";position:absolute;inset:-15px -10px}
.energyTap{position:relative;display:flex;align-items:baseline;justify-content:center;gap:10px;min-height:0;
  padding:0;margin:0;background:transparent;border:0;border-radius:0;font:inherit;color:inherit}
.energyTap::after{content:"";position:absolute;inset:-8px -6px}
.nsheetWrap{position:fixed;inset:0;z-index:60}
.nsheetBack{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.nsheet{position:absolute;left:0;right:0;bottom:0;background:var(--surface);border-top:1px solid var(--line-soft);
  border-radius:var(--r3) 18px 0 0;padding:14px 16px calc(22px + env(safe-area-inset-bottom));max-height:70vh;overflow:auto}
.nsheetHead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.nsheet h2{margin:0;font-size:21px;line-height:1.3}
.nsheet h2 small{font-size:13px;font-weight:500;color:var(--muted)}
.nsheetClose{flex:none;width:44px;height:44px;min-height:44px;padding:0;background:transparent;
  border:1px solid var(--line);border-radius:var(--r2);color:var(--ink);font-size:15px}
.nsheet p{margin:10px 0 0;line-height:1.45;font-size:15px}
.nsheet .nlabel{color:var(--muted)}
.nsheet .nref{color:var(--muted);font-size:13px}

/* ---------- polish sweep, 13 Sep 2026 ----------
   Refinement only: no new elements, wording or behaviour. Each rule is tagged so
   any one can be deleted on its own to undo it. The camera, the macro tiles, the
   calorie line and kJ are deliberately untouched. */

/* [G1] One focus ring for keyboard focus, in the app's accent, instead of the
   browser's square blue box. Touch taps do not show it. */
button:focus-visible,summary:focus-visible,.shoot:focus-within,.pick:focus-within{
  outline:2px solid rgb(var(--accent-rgb) / .8);outline-offset:2px}
.nrow:focus-visible,.labelTap:focus-visible,.energyTap:focus-visible{outline-offset:0;border-radius:8px}

/* [G2] One secondary button: the outline buttons were four near-identical styles
   (radius 11 or 12, 44 or 46px, 14, 15 or 16px text). Now one.
   
   .linkBtn was in this list until 23 Sep and should not have been. Unifying four BUTTONS was right;
   sweeping the link in with them meant the app had one control appearance for three different
   weights, which is the whole reason nothing guided the eye. This rule also sits later in the file
   than .linkBtn's own, so it silently won on colour. Removing it here is the fix; the link keeps
   the shared height, because quieter must not mean harder to hit. */
.ghost,.todayBtn,.cardBtn,.editTargets{border-radius:var(--r2);min-height:46px;
  font-size:15px;font-weight:500;color:var(--muted)}
.linkBtn{border-radius:var(--r2);min-height:46px}

/* [G4] One disabled look (was .3 on day arrows, .45 on the image button). */
.navBtn:disabled,.cardBtn:disabled{opacity:.4}

/* [G5] FAQ questions get the same press feedback as every other disclosure. */
.faq summary:active{transform:scale(.985);opacity:.88}
.faq summary{transition:transform .09s ease,opacity .09s ease}
@media (prefers-reduced-motion:reduce){.faq summary:active{transform:none}}

/* [G6] One heading weight, 650, where three were in use (600, 650, 700). */
.dayLabel,.nsheet h2,.ask p{font-weight:650}

/* [D1] "of 2088 cal" was inheriting the headline's tight letter spacing and read
   as "of2088cal". */
.kcal span{letter-spacing:0}

/* [D2] Meal rows on the day view reach the card's content edge on both sides (they
   stopped 24px short on the right) and their divider runs straight to the ends. */
.dayline{width:calc(100% + 24px);border-radius:0}

/* [M1] "Delete for good?" fits on one line beside Keep instead of wrapping, down
   to a 360px screen. */
.actions button{padding-left:12px;padding-right:12px;font-size:15px}
.actions .danger{padding-left:8px;padding-right:8px;font-size:15px;white-space:nowrap}

/* ---------- meal view order, 13 Sep 2026 ---------- */
/* The photo no longer has numbered pills under it, so it sits straight on the tiles. */
.summaryShot{margin-bottom:14px}

/* What stands out: one wrapping row of short chips. Colour follows the existing
   traffic-light level; each opens that nutrient's sheet. 36px to see, 44px to tap. */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.chip{position:relative;min-height:36px;padding:7px 12px;border-radius:var(--pill);font-size:13px;font-weight:550;
  border:1px solid transparent;line-height:1.2}
.chip::after{content:"";position:absolute;inset:-4px 0}
/* Neutral at rest (14 Nov 2026): on the journal the tone class is left off (what stands out is said, never
   coloured), and a bare .chip then fell back to the browser's own light-grey button. The tones below still win where given. */
.chips .chip{background:var(--raised);color:var(--ink);border-color:var(--line)}
.chip.red{background:rgb(var(--red-rgb) / .13);color:var(--red);border-color:rgb(var(--red-rgb) / .25)}
.chip.amber{background:rgb(var(--amber-rgb) / .13);color:var(--amber);border-color:rgb(var(--amber-rgb) / .25)}
.chip.good{background:rgb(var(--accent-rgb) / .12);color:var(--accent);border-color:rgb(var(--accent-rgb) / .25)}

/* Portion: one line, smaller, the grams, bigger, and "reset" only when changed. */
.stepper{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:nowrap}
.stepBtn{width:44px;height:44px;min-height:44px;padding:0;background:var(--bg);border:1px solid var(--line);
  border-radius:var(--r2);font-size:17px;line-height:1;color:var(--ink)}
.stepG{min-width:64px;text-align:center;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
.resetBtn{min-height:44px;padding:0 6px;background:transparent;border:0;color:var(--muted);font-size:13px;
  text-decoration:underline;text-underline-offset:3px}

/* The one collapsed-section style, used by the per-food vitamins, the meal and day
   nutrient lists, and the correction path. A quiet text control that expands inline. */
details.quiet{margin-top:6px}
details.quiet summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;
  min-height:44px;padding:0 2px;color:var(--muted);font-size:13px}
details.quiet summary::-webkit-details-marker{display:none}
details.quiet summary::after{content:"\203A";transform:rotate(90deg);font-size:15px}
details[open].quiet summary::after{transform:rotate(-90deg)}
details.quiet summary:active{transform:scale(.97);opacity:.88}
details.quiet summary{transition:transform .09s ease,opacity .09s ease}
@media (prefers-reduced-motion:reduce){details.quiet summary:active{transform:none}}

/* Save / Share image: its own full-width row above Delete meal and Back. */
.cardRow .cardActs{margin:18px 0 0}

/* ---------- today view order, 13 Sep 2026 ---------- */
/* Calories left or over sit inside the headline's small suffix, neutral colour. The
   suffix never breaks apart: when it cannot fit beside the number it moves under it
   as one line, instead of leaving "left" on a line of its own. */
.kcal em{font-style:normal}
.kcal{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:4px}
.kcal span{margin-left:0;white-space:nowrap;line-height:1.2}
/* Meal rows now follow the bars directly. */
.targetsTap + .items{margin-top:16px}
.items + details.nutriAll{margin-top:16px}
/* A published limit reads on its own small line under the amount. */
.nlim{color:var(--muted);font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
/* Limit bars: grey toward the limit, amber once over. The only bars that change colour. */
.nbar.limit.over i{background:var(--amber)}
.nbar.limit.over b{background:repeating-linear-gradient(90deg,rgb(var(--amber-rgb) / .7) 0 2px,transparent 2px 4px)}

/* ---------- foods with no exact match, 13 Sep 2026 ---------- */
/* "At least" on a total that leaves out a food with no nutrition data yet. */
.atl{font-style:normal;color:var(--muted);font-weight:600}
.macro b .atl{margin:0 2px 0 0}
.energy b .atl{margin:0 3px 0 0}
.kcal .atl{font-size:.45em;align-self:center;margin-right:-4px}
.atlNote{margin:8px 0 0;text-align:center;color:var(--muted);font-size:13px;line-height:1.4}
.nodata{margin-top:8px;color:var(--amber);font-size:13px}

/* A dish estimated from a typical recipe: the breakdown behind a quiet control. */
details.recipe{margin-top:2px}
details.recipe .parts{margin:0 0 6px;color:var(--muted);font-size:13px;line-height:1.55}

/* Stage labels stay on one line: the wording is chosen to fit, and this is only the
   last resort for a very long food name. */
#workingText{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* Account, consent and privacy (multi-user phase 4) */
/* The wording on these screens comes from privacy_text.json. */
.acct h2 { font-size:21px;margin:0 0 6px }
.acct h3 { font-size:15px;margin:24px 0 8px;color:var(--ink) }
.acct p { color:var(--muted);font-size:15px;line-height:1.5 }
.acct p b { color:var(--ink) }
.acct a.linkBtn,.infoPanel a.linkBtn { display:flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box }
.infoPanel a.linkBtn { margin-top:12px }
.acctRow { display:flex;align-items:center;gap:10px;margin-top:14px;flex-wrap:wrap }
.acctValue { flex:1;color:var(--ink);font-weight:600;min-width:0;overflow-wrap:anywhere }
.acctRow .linkBtn { width:auto;margin:0;padding:0 14px }
/* "Australia/Brisbane" was breaking mid-word into "Brisban / e". A slash is a break opportunity and
   the row was too tight to fit the zone, so it broke AFTER the slash and then ran out of room again.
   The value is a span, not a b: my first attempt targeted the wrong element and the bug survived a
   screenshot, which is a good argument for looking twice. */
/* Let the zone use the whole width and wrap at the slash if it must, rather than being squeezed
   into a third of a row. Truncating to "Australia/Brisb..." was no better than breaking mid-word:
   both hide the answer the row exists to give. */
.acctRow{flex-wrap:wrap;gap:4px 10px}
.acctRow .acctValue{flex:1 1 100%;order:3;font-weight:650}
.acctRow .linkBtn{order:2}

/* The export block: one thing most people want, two alternatives, and the policy on its own. */
.acctExport{display:flex;align-items:center;justify-content:center;text-decoration:none;
  width:100%;box-sizing:border-box;margin-top:8px}
.acctAlts{display:flex;gap:18px;justify-content:center;margin:10px 0 0}
.acctAlts a{color:var(--accent);font-size:13px;text-decoration:none}
.acctAlts a:hover,.acctAlts a:focus-visible{text-decoration:underline}
/* Bring your history (22 Oct 2026). */
.acctNote{margin:0 0 12px;color:var(--muted);font-size:13.5px;line-height:1.45}
#importCard .primary{margin-top:12px}
#importSays{margin:12px 0 0;color:var(--ink)}
.acctPolicy{margin:18px 0 0;text-align:center}
.acctPolicy a{color:var(--muted);font-size:13px}
.zoneEdit { margin-top:10px;display:flex;gap:8px;flex-wrap:wrap }
.zoneEdit select { flex:1;min-width:0;min-height:46px;background:var(--raised);color:var(--ink);border:1px solid var(--line);
  border-radius:var(--r2);padding:0 10px;font:inherit }
.zoneEdit .primary { width:auto;padding:0 18px }
.tick { display:flex;gap:12px;align-items:flex-start;margin:14px 0;color:var(--ink);font-size:15px;line-height:1.45 }
.tick input { width:22px;height:22px;flex:0 0 22px;margin:1px 0 0;accent-color:var(--accent) }
/* The app is dark only and sets no color-scheme, so an unticked box drew in the light scheme: a white square on the
   re-consent screen (4 Nov 2026). The sign-up page sets dark for itself; this matches it. */
.tick input { color-scheme:dark }
.tick em { color:var(--muted);font-style:normal;font-size:13px }
.tick a { color:var(--accent) }
.dangerOutline { width:100%;color:var(--red)!important;border-color:rgb(var(--red-rgb) / .5)!important }
.deleteConfirm .actions { display:flex;gap:8px;margin-top:12px }
.deleteConfirm .tfield { margin-top:12px }
.draftTag { display:inline-block;background:var(--amber);color:var(--on-amber)!important;font-weight:700;font-size:13px!important;
  border-radius:6px;padding:3px 8px;margin:0 0 12px }
.consentText ul { padding-left:20px;margin:6px 0 }
.consentText li,.consentText p { color:var(--muted);font-size:15px;line-height:1.5;margin:5px 0 }
.consentText b { color:var(--ink) }
.homeHint { background:var(--surface);border:1px solid var(--line);border-radius:var(--r2);padding:12px 14px;margin:16px 0 0;
  display:flex;gap:10px;align-items:center }
.homeHint p { margin:0;flex:1;color:var(--muted);font-size:15px;line-height:1.45 }
.homeHint .ghost { flex:0 0 auto }
/* A display rule would otherwise beat the hidden attribute. */
/* hidden means hidden, everywhere.
   The browser's own [hidden] rule is display:none, but ANY author rule that sets display beats it,
   because a stylesheet outranks the user agent one. So every element here with its own display, a
   flex row of buttons for instance, quietly ignored the hidden attribute and showed anyway. The
   codebase had been patching that one selector at a time: .homeHint, .zoneEdit, .deleteConfirm,
   .tTip. It surfaced again on 23 Sep when "Start over" and "Read this meal" appeared on the home
   screen with no photos taken.
   One rule instead of a growing list. !important is the right tool exactly here: nothing should
   ever be visible while carrying hidden. */
[hidden]{display:none !important}

/* Features wave 1: the macro view pill (A) and the cooking fat controls (B) */
.viewRow{display:flex;justify-content:flex-end;margin:10px 0 -4px}
.viewPill{background:var(--raised);color:var(--muted);border:1px solid var(--line);border-radius:var(--pill);
  padding:5px 12px;font-size:13px;font-weight:600;line-height:1.2;cursor:pointer}
.viewPill:active{transform:scale(.97)}
.barFigure.over{color:var(--amber)}
.fatRemove{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.addFatRow{margin-top:10px}

/* Features wave 1: feedback (C) */
.fbKinds{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.fbText{width:100%;box-sizing:border-box;background:var(--raised);color:var(--ink);border:1px solid var(--line);
  border-radius:var(--r2);padding:12px;font:inherit;font-size:17px;line-height:1.4;resize:vertical}
.fbCount,.fbNote{color:var(--muted);font-size:13px;margin:6px 0}
.reportRow{margin-top:18px;text-align:center}
/* The policy's "what's new" on re-consent (stage 5, 4 Nov 2026): the newest change in a tinted box, the older ones folded. */
.whatsNew{margin:14px 0;padding:12px 14px;border-radius:var(--r3);background:rgb(var(--accent-rgb) / .12);border:1px solid rgb(var(--accent-rgb) / .35)}
.whatsNew p{margin:0;color:var(--ink);font-size:14.5px;line-height:1.5}
.whatsNew details{margin-top:8px}.whatsNew details p{margin:8px 0 0;color:var(--muted);font-size:14px}
.whatsNew summary{min-height:44px;display:flex;align-items:center;color:var(--accent);font-size:14px;font-weight:600;cursor:pointer}

/* Features wave 1: targets as % of calories (D) */
.tGrams{color:var(--muted);font-weight:400;font-size:13px;margin-left:4px}
.tFixed .tslider,.tFixed .tin input{opacity:.55}
.trow{position:relative}
.tTip{position:absolute;left:0;top:0;z-index:5;white-space:nowrap;pointer-events:none;
  background:var(--ink);color:var(--bg);font-size:13px;font-weight:600;line-height:1;
  padding:6px 9px;border-radius:var(--r1);box-shadow:var(--lift-2)}
/* Features wave 2: the exact amount editor (H) */
button.stepG{background:transparent;border:1px dashed var(--line);border-radius:var(--r1);min-height:44px;padding:0 10px;
  font:inherit;font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;cursor:pointer}
button.stepG[aria-expanded="true"]{border-style:solid;border-color:var(--accent);color:var(--accent)}
.amountEdit{margin-top:10px}
.amtSlider{width:100%;height:44px;margin:0;accent-color:var(--accent);touch-action:manipulation}
.amtRow{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.amtIn{flex:1 1 110px;min-width:0}
.amtIn input{font-size:16px}
.amtBtn{flex:0 0 auto;width:auto;min-height:44px;padding:0 16px}
/* The scales tick. 44px of tap target, because it sits under a slider people are already
   fighting with, and a 20px checkbox next to a slider is a missed tap. */
.amtWeighed{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:6px;cursor:pointer}
.amtWeighed input{width:22px;height:22px;margin:0;flex:0 0 auto;accent-color:var(--accent)}
.amtWeighed span{font-size:15px;color:var(--muted)}
.amtWeighed input:checked+span{color:var(--ink);font-weight:600}
.weighRow{margin:10px 0 2px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:var(--r2);background:var(--well)}
.weighRow .amtWeighed{margin-top:0}
.weighHint{margin:2px 0 0 32px;font-size:13px;color:var(--dim);line-height:1.35}
.amtErr{margin-top:8px}
/* Features wave 2: typed foods, "Not this? Change it" and "+ Add a food" (E, F) */
.typedBox{display:flex;gap:8px;margin-top:10px;align-items:stretch}
.typedBox input{flex:1 1 auto;min-width:0;font:inherit;font-size:16px;color:var(--ink);background:var(--raised);
  border:1px solid var(--line);border-radius:var(--r2);padding:10px 12px;min-height:46px}
.typedBox input::placeholder{color:var(--muted)}
.typedBox .typedGo{flex:0 0 auto;width:auto;padding:0 18px;color:var(--ink);font-weight:600}
/* The label is a second way to change the food, not part of the typed box: its own row under a hairline, so
   "Change" and "Photograph its label" never sit edge to edge (11 Oct 2026, Lance). */
.labelSwapRow{margin-top:16px;padding-top:16px;border-top:1px solid var(--line-soft)}
.labelSwap{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;color:var(--ink)}
.labelSwap .uiIcon{color:var(--accent)}
.labelSwapRow .tSub{margin:8px 0 0}
.typedStatus{margin:8px 0 0;color:var(--muted);font-size:13px}
.typedStatus.bad{color:var(--red)}
.addFatRow{display:flex;flex-wrap:wrap;gap:8px}
.addFatRow>.ghost{flex:1 1 140px;white-space:nowrap;padding-inline:10px}
.addFood{flex:1 1 100%}
.stepper.checkAmount button.stepG{border-style:solid;border-color:var(--amber);color:var(--amber)}
.checkHint{margin:6px 0 0;color:var(--amber);font-size:13px}
/* Features wave 3: log a meal by typing it (J) */
.typeMeal{display:block;width:100%;margin-top:12px}
.homeTyped{margin-top:12px}
#typeMealSays{text-align:center}
/* Features wave 4: logging onto the day you are looking at (L) */
.dayLog{margin-top:18px}
.dayLog .typedBox{margin-top:12px}
/* Features wave 4: how to photograph a meal (K) */
.photoGuide{background:var(--surface);border:1px solid var(--line);border-radius:var(--r3);padding:14px;margin-bottom:14px}
.shots{display:flex;gap:10px}
.shots figure{flex:1 1 0;margin:0;min-width:0}
.shots img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--r2);display:block}
.shots figcaption{margin-top:6px;font-size:13px;line-height:1.35;color:var(--muted)}
.shots .good{color:var(--accent)}
.shots .bad{color:var(--red)}
.photoGuide .tips,.faq .tips{margin:12px 0 0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.5}
.photoGuide .ghost{margin-top:12px}
.faq .shots{margin-top:10px}
/* Features wave 5: log this meal again (M) */
.againRow{margin-top:12px}
.againRow .ghost{width:100%}
/* Features wave 5: when the meal was eaten (N) */
.eatenRow{margin:12px 0 0}
.eatenEdit{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}
.eatenEdit input{font-size:16px;color:var(--ink);background:var(--raised);border:1px solid var(--line);
  border-radius:var(--r2);padding:10px 12px;min-height:46px}
.eatenEdit .ghost{width:auto;padding:0 16px}
/* Features wave 5: the week (O) */
.weekBox{margin-top:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r3);padding:12px 14px}
.weekTap{display:flex;width:100%;justify-content:space-between;align-items:center;gap:10px;background:transparent;
  border:0;padding:0;color:var(--muted);font:inherit;font-size:13px;text-align:left;min-height:32px}
/* The week chart (UI refresh, stage 2). The SVG is the picture and is aria-hidden; the
   buttons sitting over it are the controls, so tap, focus and screen readers are unchanged.
   The plot is sunken so the bars have something to stand in. */
.weekChart{position:relative;margin-top:12px;padding-bottom:20px}
.weekPlot{display:block;width:100%;height:64px;background:var(--well);border-radius:var(--r1);
  border:1px solid var(--line-soft);overflow:hidden}
.wkIn{fill:var(--accent)}
.wkOver{fill:var(--amber)}
/* non-scaling-stroke keeps this 1px: the viewBox is stretched to the screen width, so a
   plain stroke would be drawn as a fat smear horizontally and a hairline vertically. */
.wkTarget{stroke:var(--ink);stroke-width:1;stroke-dasharray:5 4;opacity:.75;
  vector-effect:non-scaling-stroke}
.weekHits{position:absolute;inset:0;display:grid;grid-template-columns:repeat(7,1fr)}
.weekHits .weekDay{background:transparent;border:0;padding:0;min-height:0;display:flex;
  align-items:flex-end;justify-content:center;cursor:pointer}
.weekDay small{color:var(--muted);font-size:11.5px;line-height:1}
.weekDay.missed small{color:var(--dim)}
.weekDay.future{opacity:.45}
.weekDay:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:8px}
.weekNote{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
/* Features wave 5: named target presets (P) */
.presetList button em{display:block;font-style:normal;font-size:13px;color:var(--muted);margin-top:2px}
.presetList.deleting button{border-color:rgb(var(--red-rgb) / .55);color:var(--red)}
.presetSave{display:flex;gap:8px;margin-top:10px;align-items:center}
.presetSave .tin{flex:1 1 auto;min-width:0}
.presetSave .tin input{font-size:16px}
.presetSave .ghost{flex:0 0 auto;width:auto;padding:0 16px}
/* Features wave 5: reading a nutrition label (Q) */
.labelPick{margin-top:12px}

/* Several angles of one meal. Deliberately set apart from the single shot at the top: it is an
   experiment, not a better mode, and the two must never be mistaken for each other. Bordered and
   inset rather than another button in the stack, so the eye reads it as its own thing. */
.angles{margin-top:22px;padding:16px 18px;border:1px solid var(--line-soft);
  border-radius:var(--r3);background:var(--well)}
.angles h2{margin:6px 0 4px;font-size:17px;font-weight:650}
/* Amber, the app's caution colour, used here to mean "unproven" rather than "wrong". It is the same
   colour the eating-disorder notice uses, and for the same reason: read this before relying on it. */
.angleTag{display:inline-block;margin:0;padding:3px 9px;border-radius:var(--pill);
  background:rgb(var(--amber-rgb) / .14);color:var(--amber);
  font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.angleWhy{margin:6px 0 12px;color:var(--muted);font-size:15px;line-height:1.5}
.angles .pick{margin-top:0}
.angles .actions{margin-top:12px}

/* Three overlapping plates, against the single lens on the main button. The distinction is the
   whole point of the mark: one photo of one plate up there, several of the same meal down here. */
.plates{display:inline-block;width:20px;height:14px;margin-right:9px;vertical-align:-2px;position:relative}
.plates::before,.plates::after{content:"";position:absolute;top:1px;width:12px;height:12px;
  border-radius:50%;border:1.5px solid var(--muted)}
.plates::before{left:0;opacity:.45}
.plates::after{left:6px;background:var(--well)}

.angleList{list-style:none;margin:0 0 12px;padding:0}
.angleItem{display:flex;align-items:center;gap:10px;padding:9px 0;
  border-bottom:1px solid var(--line-soft)}
.angleNum{font-weight:650;font-size:15px}
.angleHint{color:var(--muted);font-size:13px;flex:1}
/* 44px so it is a real tap target on a phone, not a decorative cross. */
.angleDrop{min-width:44px;min-height:44px;background:transparent;border:0;color:var(--muted);
  font-size:21px;line-height:1;cursor:pointer}
/* Red on hover only where there is a real pointer. On a phone a tap leaves "hover" stuck on whatever is under the
   finger, and the list redraws after an x, so the next photo's x slid under it and turned red (4 Oct 2026). */
@media (hover:hover){.angleDrop:hover{color:var(--red)}}
.angleDrop:focus-visible{color:var(--red)}
.panelTable{width:100%;border-collapse:collapse;margin-top:12px}
.panelTable td{padding:9px 0;border-bottom:1px solid var(--line-soft);font-size:15px}
.panelTable td:last-child{text-align:right;font-weight:650;font-variant-numeric:tabular-nums}
.panelTable td small{color:var(--muted);font-weight:400}

/* The figures, editable since 23 Sep 2026. Styled to read as a value that CAN be changed rather
   than a form to fill in: no box until it is touched, so the table still scans as a table. */
.panelFig{width:5.5em;background:transparent;border:0;border-bottom:1px dashed var(--line);
  color:var(--ink);font:inherit;font-weight:650;font-variant-numeric:tabular-nums;
  text-align:right;padding:2px 2px 3px;min-height:34px}
.panelFig:focus{outline:none;border-bottom:1px solid var(--accent);background:var(--raised)}

/* The voluntary rows. Closed by default so the amount box and Log it stay on the first screen: with
   everything open, eleven rows sat between the photo and the thing the screen exists to do. */
.moreFigs{margin-top:10px}
.moreFigs summary{list-style:none;cursor:pointer;color:var(--accent);font-size:13px;
  padding:10px 0;min-height:44px;display:flex;align-items:center}
.moreFigs summary::-webkit-details-marker{display:none}
.moreFigs summary::after{content:"";margin-left:8px;width:7px;height:7px;border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.moreFigs[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.moreFigs .panelTable{margin-top:0}
.panelTable td:last-child{white-space:nowrap}
.panelAmount{display:flex;gap:10px;align-items:center;margin-top:14px;flex-wrap:wrap}
.panelAmount .tin{flex:0 0 120px}
.panelAmount .tin input{font-size:16px}
.fromLabel{color:var(--muted);font-size:13px;margin-top:8px}

/* The label you just photographed, on the screen where you approve the figures read off it.
   Capped by height rather than width: a nutrition panel is tall and narrow, and letting it run to
   its natural height pushed the amount box and the Log it button off the bottom of a phone. */
.panelShot{display:block;width:100%;max-height:34vh;object-fit:contain;margin:12px 0 4px;
  border-radius:var(--r2);background:var(--well);border:1px solid var(--line-soft)}

/* What the amount currently typed will actually add to the day. The per 100 table above and the
   figures on Today were both right and there was nothing showing the arithmetic between them, which
   is how a correct answer came to be reported as a bug. Accent, because it is the answer. */
.panelTotals{margin:10px 0 0;font-size:15px;color:var(--accent);font-variant-numeric:tabular-nums;
  min-height:20px}

/* The "who Plategist is not for" warning. Amber rather than red: it is a caution to read, not an
   error to clear, and red is already the colour for a figure that has gone over target. */
.safetyNotice{margin-top:16px;background:var(--raised);border:1px solid var(--amber);
  border-radius:var(--r3);padding:16px 18px;box-shadow:var(--lift-1)}
.safetyNotice h2{margin:0 0 8px;font-size:17px;font-weight:650;color:var(--amber)}
.safetyNotice p{margin:0 0 12px;font-size:15px;line-height:1.55}
.safetyNotice .ghost{width:100%}
.safetyNotice .linkBtn{display:block;margin:0 0 12px;padding:0}
/* The same warning on the consent screen, where it sits above the ticks. */
.warn{border-left:3px solid var(--amber);padding-left:12px;margin:14px 0}
.helpline{margin-top:12px;color:var(--amber)}

/* The calorie split ring (23 Sep 2026). Three lightnesses of the accent rather than three
   hues: colour in this app already means progress, over and problem, and a third scheme
   would stop any of them meaning anything. The steps are far enough apart to survive a
   greyscale screenshot, and the percentage is written beside each dot, so nothing here is
   carried by colour alone. The three tones are tokens, measured in test_contrast.py. */
.splitBlock{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:14px 0 2px}
.splitRing{width:var(--ringSize,92px);height:var(--ringSize,92px);flex:none}
.splitRing svg{width:100%;height:100%;display:block}
.ringSeg{transition:stroke-dasharray .35s ease}
.splitKey{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;
  font-size:13px;color:var(--muted)}
.splitKey li{display:flex;align-items:center;gap:8px;white-space:nowrap}
.splitDot{width:10px;height:10px;border-radius:50%;flex:none}
/* Today's hero is left aligned and a meal's is centred, so the ring follows whichever
   it sits under rather than fixing one alignment and being wrong on one screen. */
#heroSplit .splitBlock{justify-content:center;margin:10px 0 4px}
@media (prefers-reduced-motion:reduce){.ringSeg{transition:none}}

/* The leading glyph on a quiet disclosure. Dim rather than muted so the WORD is what you
   read and the mark is only a handle for the eye, and aria-hidden so it is never spoken. */
.swapIcon,.nutriIcon{color:var(--dim);font-size:14px;line-height:1}
details.swap{margin-top:10px}
.nutriAll{margin-top:14px}

/* Delete says what it is in its colour (Lance: "delete meal can be in red"). Red TEXT on the
   quiet button, not a filled red block: filled red is what the "Delete for good?" confirm
   wears, and a screen with two of those would be shouting before anything is at stake.
   --red is 5.94 on a card, so this clears AA as text. */
.ghost.risk{color:var(--red);border-color:rgb(var(--red-rgb) / .45)}
.ghost.risk:active{background:rgb(var(--red-rgb) / .08)}

/* The meal screen's occasional actions (23 Sep 2026, part two of the tidy-up).

   Four bordered 46px boxes were competing with the one green button that ends the screen: add a
   food, add cooking fat, log this again, remove. All four are things you do sometimes, and the
   outline said each was as important as finishing. Weight now follows how often a thing is used
   and what it costs, which is the same rule the rest of the hierarchy pass follows.

   None of them gets quieter than 44px, because quieter must never mean harder to hit. The border
   is what goes, not the target. */

/* Secondary: a filled well instead of an outline. Still obviously a control, no longer a box
   shouting next to the primary. The two adds are a pair and share one weight. */
.ghost.soft{border-color:transparent;background:var(--well);color:var(--ink);font-weight:550}
.ghost.soft:active{background:var(--raised)}

/* Tertiary: text. "Log this again" is useful and rare, and rare is the half that should show. */
.ghost.plain{border-color:transparent;background:transparent;color:var(--muted);font-weight:550}
.ghost.plain:active{background:var(--well)}

/* Minor destructive: red text, no box. Deliberately lighter than "Delete meal", which keeps its
   red outline, because that ends the whole meal and this drops one ingredient. Same colour, less
   weight, so the difference between them is legible before you tap either. */
.ghost.risk.quiet{border-color:transparent;background:transparent;width:auto;padding-inline:0;
  font-weight:550}
.ghost.risk.quiet:active{background:rgb(var(--red-rgb) / .08)}

/* Google's mark on the sign-in button. Inline SVG, no request, same as every other asset here.
   The white tile is not decoration: four colours on a near-black button read as smudges, and a
   mark people do not recognise is worse than no mark on a button whose whole job is looking
   familiar enough to trust. */
.google{display:flex;align-items:center;justify-content:center;gap:10px}
.gmark{width:19px;height:19px;flex:0 0 19px;background:#fff;border-radius:3px;padding:2px}
.orLine{display:flex;align-items:center;gap:12px;color:var(--dim);font-size:13px;margin:14px 0 10px}
.orLine::before,.orLine::after{content:"";flex:1;height:1px;background:var(--line-soft)}

/* ---------- Add to Home Screen (2 Oct 2026) ----------
   The card on the home screen, until Plategist is opened from its icon. Amber, not red: nothing is wrong. */
.installCard{width:100%;text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.installCard:active{background:var(--raised)}
.installDot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--amber);
  box-shadow:0 0 0 4px rgb(var(--amber-rgb) / .16)}
.installCardText{flex:1;display:flex;flex-direction:column;gap:2px;font-size:15px;line-height:1.4}
.installCardText b{font-weight:600}
.installCardText span{color:var(--muted);font-size:14px}
.installCardGo{flex:0 0 auto;color:var(--accent);font-weight:600;font-size:15px}

/* The sheet itself: the whole screen, scrolls if the phone is short. */
.install{position:fixed;inset:0;z-index:60;background:var(--bg);overflow-y:auto;
  -webkit-overflow-scrolling:touch;padding:max(28px, env(safe-area-inset-top)) var(--pad) max(24px, env(safe-area-inset-bottom))}
.installInner{max-width:440px;margin:0 auto;display:flex;flex-direction:column}
#installTitle:focus{outline:none}
.install h1{margin:18px 0 8px;font-size:26px;line-height:1.2;font-weight:700;text-align:center;letter-spacing:-.01em}
.installLead{margin:0 0 22px;color:var(--muted);font-size:16px;line-height:1.5;text-align:center}

/* A Home Screen in miniature, with Plategist on it. Blank tiles around it so it reads as "among your apps". */
.installHero{display:flex;justify-content:center;padding:22px 0 6px}
.installGrid{display:grid;grid-template-columns:repeat(3,60px);gap:16px 22px;padding:20px 24px;
  border-radius:var(--r4);background:var(--surface);border:1px solid var(--line-soft)}
.installGrid>span{width:60px;height:60px;border-radius:var(--r2);background:var(--raised)}
.installGrid>span.installApp{background:none;position:relative;display:flex;flex-direction:column;align-items:center}
.installApp img{width:60px;height:60px;border-radius:var(--r2);box-shadow:var(--lift-2);
  animation:installPop .7s cubic-bezier(.2,.9,.3,1.3) .2s both}
.installApp i{font-style:normal;font-size:11px;color:var(--ink);margin-top:5px;white-space:nowrap}
@keyframes installPop{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion: reduce){.installApp img{animation:none}}

.installSteps{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-direction:column;gap:10px;counter-reset:step}
.installSteps li{display:flex;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line-soft);
  border-radius:var(--r2);padding:14px;font-size:16px;line-height:1.45;counter-increment:step}
.installSteps li b{font-weight:650}
.installIcon{flex:0 0 40px;width:40px;height:40px;border-radius:var(--r2);background:var(--raised);
  display:flex;align-items:center;justify-content:center;color:var(--accent);position:relative}
.installIcon::after{content:counter(step);position:absolute;top:-6px;left:-6px;width:18px;height:18px;border-radius:50%;
  background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.installIcon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.installIcon circle{fill:currentColor;stroke:none}
.installIcon img{width:32px;height:32px;border-radius:8px}
#installNow{margin:0 0 16px}
.installApps{margin:0 0 18px;padding:14px;border-radius:var(--r2);border:1px solid var(--amber);background:var(--surface);
  font-size:15px;line-height:1.5}
#installLater{width:100%;margin-top:4px}

/* "Emails to this address aren't arriving" on the account screen (3 Oct 2026). Amber: fixable, not an error. */
#emailBouncing{color:var(--amber)}

/* ---------- the bottom bar (3 Oct 2026, MEALBOT_NAVBAR) ----------
   Fixed to the bottom, above the Home Screen's safe area. The active tab is the accent; the rest are muted, so
   the bar reads as where you are, not four equal shouts. */
.navbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(5,1fr);align-items:end;
  background:color-mix(in srgb, var(--surface) 96%, transparent);border-top:1px solid var(--line-soft);
  padding:6px 8px max(8px, env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.navbar button{background:none;border:0;color:var(--dim);display:flex;flex-direction:column;align-items:center;
  gap:3px;padding:6px 0;min-height:52px;font:inherit;font-size:11px;font-weight:600;letter-spacing:.01em;cursor:pointer}
.navbar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.navbar circle[r="1.6"]{fill:currentColor;stroke:none}
.navbar button.on{color:var(--accent)}
.navbar button:active{color:var(--ink)}
body.withNav #app{padding-bottom:calc(84px + env(safe-area-inset-bottom))}

/* The camera in the middle: a green disc standing proud of the bar, the same lens green as the home screen's
   button so it reads as the same action. The input fills it, so the tap is the camera itself. */
.navCam{position:relative;justify-self:center;width:62px;height:62px;margin-top:-26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--on-accent);
  background:radial-gradient(circle at 35% 30%, var(--lens-lit), var(--accent) 55%, var(--lens-deep));
  box-shadow:0 0 0 5px var(--bg), 0 6px 18px rgb(var(--accent-rgb) / .35)}
.navCam input{position:absolute;inset:0;opacity:0;cursor:pointer}
.navCam svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.navCam:active{transform:scale(.95)}

/* The other ways to log, on Today. Three equal, quiet buttons: the camera below is the loud one. */
.quickLog{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0 12px}
.quickLog .ghost{width:100%;min-height:44px;padding:8px 6px;font-size:14px}

/* With the bar, the calendar's own way out and the targets back arrow repeat it, so they go. */
body.withNav #calendar button[aria-label="Close calendar"],
body.withNav #calendar .todayBtn,
body.withNav #targets button[aria-label="Back to the day"],body.withNav #targets .dayNav .navSpacer{display:none}
/* With the bar, the camera screen is the tray of photos taken so far: the big camera card and the library picker
   it used to open on are the bar's job now, and the quick row's on Today. */
body.withNav #home .shoot,
body.withNav #home > .pick,
body.withNav #home #typeMeal{display:none}

/* ---------- the scan reveal (3 Oct 2026, MEALBOT_SCAN_REVEAL) ----------
   The sweep line stays; the squares light just behind it. Then brackets on each food, the rest dimmed, the food at
   full colour (no wash: the food should look its best at the moment it is named). Colours are the app's tokens. */
.pixgrid{position:absolute;inset:0;display:none;grid-template-columns:repeat(14,1fr);grid-template-rows:repeat(14,1fr);
  pointer-events:none}
.scanWrap.pixels .pixgrid{display:grid}
.pixgrid i{border:1px solid rgb(var(--accent-rgb) / .07);transition:background .5s ease}
.pixgrid i.lit{background:rgb(var(--accent-rgb) / .32);transition:background .08s ease}
.scanWrap.revealing .pixgrid i{border-color:transparent;background:rgb(var(--on-accent-rgb) / .5);transition:background .35s ease}
.scanWrap.revealing .pixgrid i.hit{background:transparent}
.scanWrap.revealing .scan::after,.scanWrap.revealing .scan::before{opacity:0 !important}
/* A food is a button: tap it to fix its amount. No animation on the box itself (an animated box becomes its own
   layer and covers an earlier food's tag); the brackets and the tag animate. */
.found{position:absolute;padding:0;margin:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.found .c{position:absolute;width:18px;height:18px;border:2.5px solid var(--accent);z-index:1;
  animation:bracketIn .32s cubic-bezier(.2,.9,.3,1.2) both}
.found .tl{transform-origin:top left;top:0;left:0;border-right:0;border-bottom:0;border-top-left-radius:7px}
.found .tr{transform-origin:top right;top:0;right:0;border-left:0;border-bottom:0;border-top-right-radius:7px}
.found .bl{transform-origin:bottom left;bottom:0;left:0;border-right:0;border-top:0;border-bottom-left-radius:7px}
.found .br{transform-origin:bottom right;bottom:0;right:0;border-left:0;border-top:0;border-bottom-right-radius:7px}
@keyframes bracketIn{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}   /* each corner grows from its own point */
.foundTag{position:absolute;z-index:3;left:0;top:-24px;padding:3px 8px;border-radius:var(--pill);font-size:12px;font-weight:650;
  white-space:nowrap;background:var(--accent);color:var(--on-accent);box-shadow:var(--lift-2);
  animation:tagIn .28s ease .18s both}
.foundTag.inside{top:6px;left:6px}
@keyframes tagIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.found:active .c{border-color:var(--ink)}
@media (prefers-reduced-motion: reduce){.found .c,.foundTag{animation:none}}

/* The meal's macro tiles are the view switch (3 Oct 2026); a percentage says what it is of, small, under it. */
#heroMacros{cursor:pointer;-webkit-tap-highlight-color:transparent}
#heroMacros:active .macro{background:var(--raised)}
.macroOf{display:block;margin-top:-2px;font-style:normal;font-size:11px;color:var(--dim);letter-spacing:.02em}

/* The outlines on the meal's photo (3 Oct 2026): the same brackets and tags as the reveal, still, each a button. */
.shotWrap{position:relative;border-radius:var(--r3);overflow:hidden;margin-bottom:14px;cursor:zoom-in}
.shotWrap .summaryShot{margin-bottom:0}
.found.still .c,.found.still .foundTag{animation:none}
.shotWrap .foundTag{font-size:11px;padding:2px 7px;top:-21px}
.shotWrap .foundTag.inside{top:5px;left:5px}
/* Full size: the photo on a dark sheet, bigger brackets, tap a food to fix it. */
.shotView{position:fixed;inset:0;z-index:70;background:rgb(var(--on-accent-rgb) / .92);display:flex;align-items:center;
  justify-content:center;padding:max(20px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom))}
.shotViewInner{width:100%;max-width:560px}
.shotWrap.big{cursor:default;border-radius:var(--r2)}
.shotWrap.big img{width:100%;display:block}
.shotWrap.big .foundTag{font-size:13px;padding:3px 9px;top:-25px}
.shotViewHint{color:var(--muted);text-align:center;font-size:14px;margin:14px 0 0}
/* A label shortened to fit the photo ends in an ellipsis (keepInside). */
.foundTag{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Zoom (8 Oct 2026): the photo and its outlines zoom together inside the frame; the page itself never moves. */
.shotView{touch-action:none}
.shotWrap.big{touch-action:none;-webkit-user-select:none;user-select:none}
.shotZoom{position:relative;transform-origin:0 0;will-change:transform}
/* Labels and corner brackets stay their own size as the photo zooms, so zooming in shows more food, not bigger labels. */
.shotZoom .foundTag{transform:scale(calc(1 / var(--zs, 1)));transform-origin:0 100%}
.shotZoom .foundTag.inside{transform-origin:0 0}
.shotZoom .found .c{width:calc(18px / var(--zs, 1));height:calc(18px / var(--zs, 1));border-width:calc(2.5px / var(--zs, 1))}
.shotWrap.big.zoomed{cursor:grab}
.shotViewClose{position:fixed;top:max(14px, env(safe-area-inset-top));right:14px;z-index:72;width:44px;height:44px;min-height:44px;
  padding:0;display:flex;align-items:center;justify-content:center;font-size:17px}
.summaryShot[role="button"]{cursor:zoom-in}
.ingCrop[role="button"]{cursor:zoom-in}

/* Outlines on or off (4 Oct 2026): a small pill in the photo's corner. Off shows the plain photo. */
.outlineToggle{position:absolute;right:8px;bottom:8px;z-index:4;border:0;border-radius:var(--pill);padding:5px 10px;
  font:inherit;font-size:12px;font-weight:650;color:var(--ink);background:rgb(var(--on-accent-rgb) / .62);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:pointer}
.shotWrap.bare .found{display:none}

/* Foods with no position on the photo, listed under it so none goes unnoticed (4 Oct 2026). */
.unplaced{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:-6px 0 14px;font-size:12px;color:var(--dim)}
.foundTag.loose{position:static;animation:none;border:0;cursor:pointer;font:inherit;font-size:12px;font-weight:650}

/* The thumbnail of each photo taken (4 Oct 2026): the photo itself, small, so it is clear it went in. */
.angleThumb{width:46px;height:46px;flex:0 0 46px;object-fit:cover;border-radius:var(--r1);border:1px solid var(--line-soft);
  background:var(--well)}

/* ---------- several photos, one reading (4 Oct 2026) ----------
   The photos side by side above the scan, each lit in turn by its own short line while the meal is read; then
   they settle into a small overlapping stack. Nothing merges or measures: the model looks at all of them and
   answers once. */
/* A stack of prints (3 Nov 2026): the other angles behind the big photo, fanned and peeking over its top edge, centred;
   each lifts out in turn, its border lit and its line running down it, then settles back. The big photo sits in front
   (z-index) and carries the tag: it is the one the outlines land on, and the one kept. */
.views{position:relative;height:118px;margin:10px 0 0}
.viewsLabel{position:absolute;top:0;left:0;right:0;margin:0;text-align:center;font-size:13px;font-weight:650;color:var(--muted)}
/* What the photo being looked at is for, changing with each turn. One line, so nothing below it moves. */
.viewsSay{position:absolute;top:19px;left:0;right:0;margin:0;text-align:center;font-size:14.5px;font-weight:650;color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.viewsRow{position:absolute;left:0;right:0;top:60px}
.view{position:absolute;top:0;width:92px;aspect-ratio:1;border-radius:var(--r2);overflow:hidden;border:2px solid var(--line-soft);
  background:var(--surface);container-type:size;--rest:0deg;transform:rotate(var(--rest, 0deg));
  animation:vlift 3.3s cubic-bezier(.3,1.25,.5,1) infinite;transition:transform .55s cubic-bezier(.3,1.2,.5,1)}
.views.two .view:nth-child(1){left:calc(50% - 124px);--rest:-8deg}
.views.two .view:nth-child(2){left:calc(50% + 32px);--rest:8deg}
.views.one .view{left:calc(50% - 46px);--rest:-5deg}
.view img{width:100%;height:100%;object-fit:cover;display:block}
.vbeam{position:absolute;left:0;right:0;top:0;height:2px;background:var(--accent);opacity:0;
  box-shadow:0 0 10px 2px rgb(var(--accent-rgb) / .7);animation:vsweep 3.3s linear infinite}
/* One photo at a time: it lifts clear of the stack, straightens, lights, and its line runs down it. */
@keyframes vlift{0%{transform:rotate(var(--rest, 0deg))}6%,28%{transform:translateY(-16px) rotate(0deg) scale(1.06);border-color:var(--accent)}
  38%,100%{transform:rotate(var(--rest, 0deg));border-color:var(--line-soft)}}
@keyframes vsweep{0%,5%{opacity:0;transform:translateY(0)}6%{opacity:1;transform:translateY(0)}30%{opacity:1;transform:translateY(100cqh)}31%,100%{opacity:0}}
.views + .scanWrap{z-index:1}
/* The answer is in: the prints tuck down behind the big photo, only their edges showing. */
.views.stacked .view{animation:none;transform:translateY(30px) rotate(calc(var(--rest, 0deg) * .5)) scale(.94)}
.views.stacked .vbeam{display:none}
.mainTag{position:absolute;left:8px;bottom:8px;z-index:4;border-radius:var(--pill);padding:4px 10px;font-size:12px;font-weight:650;
  color:var(--ink);background:rgb(var(--on-accent-rgb) / .62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);pointer-events:none}
@media (prefers-reduced-motion: reduce){.view,.vbeam{animation:none}.view{transition:none}}

/* The food the model is least sure of (4 Oct 2026): an amber dot on its photo tag, and a quiet amber link on its
   row. Amber, not red: it is worth a look, nothing is wrong. */
.foundTag.check::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;
  background:var(--amber);box-shadow:0 0 0 2px rgb(var(--amber-rgb) / .35);vertical-align:1px}
.checkThis{display:inline-flex;align-items:center;gap:6px;margin:2px 0 8px;padding:0;border:0;background:none;
  color:var(--amber);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.checkThis::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--amber)}
/* "Your usual" (6 Oct 2026, research A1 + A2): the amount this person keeps settling on for this food, one tap
   away. A suggestion with a number on it, never applied by itself. */
.usualBtn{display:inline-flex;align-items:center;gap:6px;margin:8px 0 2px;padding:7px 12px;border-radius:var(--pill);cursor:pointer;
  border:1px solid rgb(var(--accent-rgb) / .45);background:rgb(var(--accent-rgb) / .12);color:var(--accent);font:inherit;font-size:14px;font-weight:600}
.usualBtn b{color:var(--ink);font-weight:700}
.usualBtn::before{content:"↺";font-size:13px}

/* The tray's tip, and the camera that it points to (4 Oct 2026). */
.angleTip{margin:0 0 10px;padding:10px 12px;border-radius:var(--r2);background:rgb(var(--accent-rgb) / .12);
  border:1px solid rgb(var(--accent-rgb) / .35);font-size:14px;line-height:1.45;color:var(--ink)}
.angleTip b{color:var(--accent)}
body.angleRoom .navCam{animation:camPulse 1.8s ease-in-out infinite}
@keyframes camPulse{0%,100%{box-shadow:0 0 0 5px var(--bg),0 6px 18px rgb(var(--accent-rgb) / .35)}
  50%{box-shadow:0 0 0 5px var(--bg),0 0 0 11px rgb(var(--accent-rgb) / .30),0 6px 22px rgb(var(--accent-rgb) / .5)}}
@media (prefers-reduced-motion: reduce){body.angleRoom .navCam{animation:none}}

/* With the bottom bar the "New version" pill sat underneath it, out of sight and out of reach (4 Oct 2026). It sits
   just above the bar instead. */
body.withNav .updatePill{bottom:calc(env(safe-area-inset-bottom) + 96px);z-index:45}

/* The bar lifting off the bottom after the camera, with a black strip under it (4 Oct 2026, iPhone, installed app).
   After the camera closes iOS hands the page a shorter screen than the phone has, and bottom:0 pins the bar to that
   shortened edge. Re-measuring from script snapped it down for a moment and iOS lifted it again. So in the installed
   app the bar is placed from the top by the LARGE viewport height, which is the whole screen and does not shrink, and
   the page is at least that tall so the area under it is painted rather than left black. Only when installed: in a
   browser tab the large viewport includes room under the browser's own toolbar, which would hide the bar. */
@media (display-mode: standalone){
  @supports (height:100lvh){
    body.withNav{min-height:100lvh}
    body.withNav .navbar{bottom:auto;top:100lvh;transform:translateY(-100%)}
  }
}

/* An empty photo slot: the whole row opens the camera for that slot (4 Oct 2026). */
.angleSlot{display:flex;align-items:center;gap:10px;flex:1;min-height:46px;cursor:pointer;position:relative}
.angleSlot input{position:absolute;inset:0;opacity:0;cursor:pointer}
.angleBlank{display:block;background:transparent;border:1.5px dashed var(--line)}
.angleEmpty .angleNum{color:var(--muted)}
.angleTake{padding:6px 12px;border-radius:var(--pill);border:1px solid rgb(var(--accent-rgb) / .5);color:var(--accent);
  font-size:13px;font-weight:650}

/* Photos waiting: the way back to them from any other screen, and the count on the camera (4 Oct 2026). */
.resumePill{white-space:nowrap}
body.withNav .resumePill{bottom:calc(env(safe-area-inset-bottom) + 96px);z-index:44}
.camCount{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 5px;border-radius:var(--pill);
  background:var(--ink);color:var(--bg);font-size:12px;font-weight:700;line-height:20px;text-align:center;
  box-shadow:0 0 0 2px var(--bg);pointer-events:none}
header .brand{cursor:pointer}

/* ---------- Eat out, Progress and the header tools (4 Oct 2026, MEALBOT_EAT_OUT) ---------- */
.navbar .eatOnly{display:none}
body.eatOn .navbar .eatOnly{display:flex}
body.eatOn .navbar .eatOff{display:none}
body.eatOn .dayNav .calIcon{display:none}
.hdrTools{display:flex;align-items:center;gap:10px}
/* min-height too (8 Oct 2026): the general button rule's 52px minimum had made these 44 x 52, ovals a little taller
   than the calendar beside them (Lance: "keep them as ovals?"). Circles now, all three the same height, never shrunk. */
.hdrTools > *{flex-shrink:0}
/* No food in the photo (8 Oct 2026): a line of our own, said plainly, not as an error. */
.notFood{font-size:19px;line-height:1.4;font-weight:600;color:var(--ink);text-align:center;margin:28px 8px 20px}
/* Feedback screenshot (8 Oct 2026) */
.fbShot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0 0}
.fbShotPick{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;cursor:pointer}
.fbShotName{font-size:14px;color:var(--ink);max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fbShotRemove{width:auto;min-height:44px;margin:0;padding:0 8px}
.fbShot .fbNote{flex-basis:100%;margin:0}
.hdrAcct{width:44px;height:44px;min-height:44px;border-radius:50%;padding:0;display:flex;align-items:center;justify-content:center;
  background:var(--raised);border:1px solid var(--line-soft);color:var(--muted);cursor:pointer}
.hdrAcct svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hdrTools .on{border-color:var(--accent);color:var(--accent)}

.progTiles{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:6px}
.progTile{background:var(--surface);border:1px solid var(--line);border-radius:var(--r3);padding:12px 14px}
.progTile b{display:block;font-size:24px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.progTile b small{font-size:14px;font-weight:600;color:var(--muted);margin-left:1px}
.progTile span{font-size:13px;color:var(--muted)}
.progCard h3{margin:2px 0 0;font-size:15px;font-weight:650;color:var(--ink)}

.eoTitle{margin:6px 0 4px;font-size:24px;font-weight:700}
.eoLeft{margin:0 0 14px;color:var(--muted);font-size:15px;line-height:1.5}
.eoLeft b{color:var(--ink)}
.eoLead{margin:0 0 12px;font-size:15px;line-height:1.5;color:var(--ink)}
.eoShoot .primary{margin-top:10px}
.eoPick{position:relative;display:flex;align-items:center;justify-content:center;min-height:50px;margin-top:10px;
  border-radius:var(--r2);cursor:pointer;font-weight:650}
.eoPick input{position:absolute;inset:0;opacity:0;cursor:pointer}
.eoError{margin:0 0 10px;color:var(--amber);font-size:14px;line-height:1.45}
.eoWorking{display:flex;align-items:center;gap:12px}
.eoWorking p{margin:0;color:var(--ink)}
.eoSpin{width:20px;height:20px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);
  animation:eoSpin .9s linear infinite;flex:0 0 20px}
@keyframes eoSpin{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion: reduce){.eoSpin{animation:none}}
.eoSorts{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin:0 -2px;scrollbar-width:none}
.eoSorts::-webkit-scrollbar{display:none}
.eoSorts .chip{flex:0 0 auto;background:var(--raised);color:var(--muted);border:1px solid var(--line);cursor:pointer}
.eoSorts .chip.on{border-color:var(--accent);color:var(--accent);background:rgb(var(--accent-rgb) / .12)}
/* A menu's filters, every one a button (7 Oct 2026): its courses, then the sorts. */
.eoFilterHead{margin:12px 0 6px;font-size:12.5px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--dim)}
.eoCourses .chip span{margin-left:6px;font-size:12px;color:var(--dim)}
.eoSortChips .chip{display:inline-flex;align-items:center;gap:6px}
.eoSortChips .chip .uiIcon{width:16px;height:16px}
.eoSortSays{margin:8px 0 0;color:var(--muted);font-size:13px}
.eoList{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}
.eoDish{background:var(--surface);border:1px solid var(--line);border-radius:var(--r3);overflow:hidden}
.eoHead{display:grid;grid-template-columns:1fr auto;gap:4px 10px;width:100%;padding:12px 14px;background:transparent;
  border:0;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.eoName{font-size:16px;font-weight:650;line-height:1.3}
.eoName small{display:block;font-size:12px;font-weight:500;color:var(--dim);margin-top:1px}
.eoFit{align-self:start;padding:3px 10px;border-radius:var(--pill);font-size:12px;font-weight:700;white-space:nowrap}
.fit-fits .eoFit{background:rgb(var(--accent-rgb) / .12);color:var(--accent)}
.fit-close .eoFit{background:rgb(var(--amber-rgb) / .14);color:var(--amber)}
.fit-over .eoFit{background:rgb(var(--red-rgb) / .13);color:var(--red)}
.eoNums{grid-column:1 / -1;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.eoNums b{color:var(--ink);font-weight:650}
.eoPrinted{grid-column:1 / -1;font-size:12px;color:var(--dim)}
.eoMore{padding:0 14px 14px;border-top:1px solid var(--line-soft)}
.eoMore ul{margin:10px 0 0;padding-left:18px;color:var(--muted);font-size:14px;line-height:1.6}
.eoMore .primary{margin-top:12px}
.eoNote{margin:8px 0 0;color:var(--amber);font-size:13px}
.eoAgain{margin-top:14px}

/* Weight on Progress (4 Oct 2026) */
.wtNow{margin:6px 0 0;color:var(--muted);font-size:14px}
.wtNow b{color:var(--ink);font-size:20px}
.wtPlot{height:96px;margin-top:10px}
.wtDot{fill:var(--muted);opacity:.7}
.wtTrend{fill:none;stroke:var(--accent);stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.wtAxis{display:flex;justify-content:space-between;margin-top:4px;font-size:11.5px;color:var(--dim)}
.wtForm{margin-top:12px}
.wtForm label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.wtRow{display:flex;gap:8px}
.wtRow input{flex:1;min-width:0;font-size:16px;color:var(--ink);background:var(--raised);border:1px solid var(--line);
  border-radius:var(--r2);padding:10px 12px;min-height:46px}
.wtRow .primary{width:auto;padding:0 20px}
.wtList{list-style:none;margin:10px 0 0;padding:0}
.wtList li{display:flex;align-items:center;gap:10px;padding:2px 0;border-bottom:1px solid var(--line-soft);font-size:14px}
.wtList li span{flex:1;color:var(--muted)}
.wtList li b{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}

/* Kitchen (4 Oct 2026) */
.hdrTools{gap:8px}
.ktRead label,.ktLabel{display:block;font-size:13px;color:var(--muted);margin:12px 0 6px}
.ktRead textarea,.ktInput{width:100%;box-sizing:border-box;font:inherit;font-size:16px;color:var(--ink);background:var(--raised);
  border:1px solid var(--line);border-radius:var(--r2);padding:10px 12px;min-height:46px}
.ktRead textarea{min-height:110px;resize:vertical;line-height:1.45}
.ktRead .primary,.angles .ktInput + .primary{margin-top:12px}
.ktItems{list-style:none;margin:0;padding:0}
.ktItems li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line-soft);font-size:14px}
.ktItems li span{flex:1;color:var(--ink)}
.ktItems li em{font-style:normal;color:var(--muted);font-variant-numeric:tabular-nums}
.ktItems li b{font-weight:600;color:var(--muted);min-width:64px;text-align:right;font-variant-numeric:tabular-nums}
.ktGrams{width:72px;font:inherit;font-size:16px;color:var(--ink);background:var(--raised);border:1px solid var(--line);
  border-radius:var(--r1);padding:6px 8px;text-align:right}
.ktH3{margin:0 0 8px;font-size:15px;font-weight:650}
.ktPer{color:var(--dim)}
.ktEaten{margin:12px 0 0}
.eoAgain.danger{border-color:rgb(var(--red-rgb) / .55);color:var(--red)}
.eoMore > .ghost{margin-top:12px}

/* Saved menus (4 Oct 2026) */
.eoSave{margin-top:16px}
.eoSaved{margin:16px 0 0;color:var(--muted);font-size:14px}
.eoSaved b{color:var(--ink)}
.savedMenus{margin-top:18px}
.savedMenu{display:flex;width:100%;align-items:center;gap:10px;background:transparent;border:0;padding:4px 0;
  color:var(--ink);font:inherit;font-size:15px;text-align:left;cursor:pointer;min-height:40px}
.savedMenu span{flex:1;font-weight:600}
.savedMenu em{font-style:normal;color:var(--muted);font-size:13px}

/* Learning you: patterns on Progress (4 Oct 2026) */
.patterns{margin-bottom:10px}
.patterns ul{list-style:none;margin:8px 0 0;padding:0}
.patterns li{padding:9px 0;border-bottom:1px solid var(--line-soft)}
.patterns li:last-child{border-bottom:0}
.patterns li p{margin:0;color:var(--ink);font-size:15px;line-height:1.45}
.patterns li small{display:block;margin-top:2px;color:var(--dim);font-size:12px}

/* A small picture beside each meal on the day (4 Oct 2026) */
.dayThumb{position:relative;flex:0 0 40px;width:40px;height:40px;border-radius:var(--r1);overflow:hidden;
  background:var(--raised);border:1px solid var(--line-soft);display:flex;align-items:center;justify-content:center;
  align-self:flex-start;margin-top:2px}
.dayThumb svg{width:22px;height:22px;fill:none;stroke:var(--dim);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dayThumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dayline .dayMain{flex:1;min-width:0}
.dayTitle em{white-space:nowrap}
/* The header's way back on a meal, in the logo's place (8 Oct 2026). */
.hdrBack{background:none;border:0;padding:0 6px 0 0;min-height:44px;width:auto;max-width:48%;color:var(--accent);
  font:inherit;font-size:17px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;
  text-align:left}
/* The meal screen's way back (8 Oct 2026, Lance: "Back to today" was "massive and bulky and old design"): a slim
   link like the day bar's, still saying where it goes, with a full-size tap area. The green button below says Done. */
.mealNav .backBtn{background:none;border:0;border-radius:0;min-height:44px;padding:0 4px;width:auto;color:var(--accent);
  font-weight:650;font-size:15px}
/* The time may drop to its own line (8 Oct 2026): glued to the last word with no space, "banana7:00 am" was one
   unbreakable run wider than the column on a 320 px screen (an iPhone with Display Zoom), and the name ran under the
   calories ("Porridge and09 cal"). A space before it, the margin gone so a wrapped time sits flush, and long words
   allowed to break. */
.dayline .dayTitle{overflow-wrap:anywhere}
.dayline .dayTitle em{margin-left:2px}
.dayline:has(.dayThumb){gap:10px}

/* About Plategist behind the logo; the i on Today goes in the new layout (4 Oct 2026) */
body.eatOn .dayNav .calBtn.info{display:none}
.dayCredit{margin:22px 0 4px;color:var(--dim);font-size:12px;line-height:1.5;text-align:center}
.dayCredit .linkBtn{font-size:12px}
.aboutSheet .attr{color:var(--muted);font-size:12px;line-height:1.5}
.aboutSheet a{color:var(--accent)}

/* Recipes: generate a meal (4 Oct 2026) */
.genBox h3{margin:2px 0 10px;font-size:16px;font-weight:650}
.genWish{margin:10px 0 0}
.genBox .primary{margin-top:10px}
.genWorking{margin-top:12px}
.ideaCard{margin-top:14px;padding:12px 0 0;border-top:1px solid var(--line-soft)}
.ideaHead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.ideaHead b{font-size:17px;line-height:1.3}
.ideaCard .eoNums{margin:6px 0 0}
.ideaCard ul{margin:10px 0 0;padding-left:18px;color:var(--muted);font-size:14px;line-height:1.6}
.ktMethod{margin:10px 0 0;padding-left:20px;color:var(--ink);font-size:14px;line-height:1.55}
.ktMethod li{margin-bottom:4px}
.ktListHead{margin-top:22px}

.againRow{display:flex;flex-direction:column;gap:8px}
.mealToRecipe{margin-top:10px}
.mealToRecipe .ktInput{margin-bottom:4px}

.savedMenus.first{margin-top:4px}
.savedMenus.first .savedMenu{min-height:52px;font-size:16px}
.savedMenu .chev{margin-left:6px}

/* Other ways to log, each saying when you'd use it (5 Oct 2026) */
.quickHead{margin:2px 0 8px;font-size:12px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--dim)}
.quickLog .quickTile{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;row-gap:1px;
  align-items:center;width:100%;min-height:0;padding:10px;border-radius:var(--r2);background:var(--surface);border:1px solid var(--line-soft);color:var(--ink);
  font:inherit;text-align:left;cursor:pointer}
.quickTile:active{background:var(--raised)}
.quickTile svg{grid-row:1 / span 2;width:22px;height:22px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;
  stroke-linejoin:round}
.quickTile b{font-size:14px;font-weight:650;line-height:1.25}
.quickTile span{font-size:12px;line-height:1.35;color:var(--muted)}

/* ---------- motion (6 Oct 2026; app.js "motion" says what plays when, and why it never changes a figure) ---------- */
/* Bars fill from the left, one after another. A transform, so nothing around them moves while they grow. */
.track.mGrow .fill{transform-origin:left center;animation:mFill .8s cubic-bezier(.22,1,.36,1) both;
  animation-delay:calc(var(--mi,0) * 90ms + 120ms)}
.track.mGrow .fill.over{animation-delay:calc(var(--mi,0) * 90ms + 500ms)}
@keyframes mFill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* Chart bars rise from the floor; a missed day's dashed slot fades in behind them. */
.weekPlot.mRise .wkIn,.weekPlot.mRise .wkOver{transform-box:fill-box;transform-origin:center bottom;
  animation:mRise .7s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--mi,0) * 70ms + 100ms)}
.weekPlot.mRise .wkGap{animation:mFade .6s ease both;animation-delay:calc(var(--mi,0) * 70ms + 300ms)}
.weekPlot.mRise .wtDot{animation:mFade .4s ease both .2s}
@keyframes mRise{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes mFade{from{opacity:0}to{opacity:1}}

/* A missed day in a chart: an empty dashed slot, so a gap reads as a gap and never as a zero. */
.wkGap{fill:none;stroke:var(--line);stroke-width:1.2;stroke-dasharray:3 3;vector-effect:non-scaling-stroke;opacity:.7}
/* The chart bars, lit: a soft glow in their own colour. */
.weekPlot .wkIn{filter:drop-shadow(0 0 3px rgb(var(--accent-rgb) / .55))}
.weekPlot .wkOver{filter:drop-shadow(0 0 3px rgb(var(--amber-rgb) / .55))}
.wtDot{transition:opacity .2s}

/* When a total changes (a meal added, an amount corrected), it glows once. */
.mGlow{animation:mGlow 1.1s ease-out}
@keyframes mGlow{0%{box-shadow:0 0 0 0 rgb(var(--accent-rgb) / .55)}100%{box-shadow:0 0 0 16px rgb(var(--accent-rgb) / 0)}}

/* Screens fade in. Opacity only: see motionScreen in app.js for why not a slide. */
.mEnter{animation:mFade .22s ease-out}

/* The active tab's pill, under its icon, sliding between tabs. */
#navPill{position:absolute;left:0;top:8px;height:34px;border-radius:var(--pill);pointer-events:none;opacity:0;z-index:0;
  background:rgb(var(--accent-rgb) / .12);box-shadow:0 0 18px rgb(var(--accent-rgb) / .25);
  transition:transform .38s cubic-bezier(.34,1.3,.64,1),width .38s ease,opacity .2s}
.navbar [data-tab]{position:relative;z-index:1}
.navbar button.on svg{filter:drop-shadow(0 0 6px rgb(var(--accent-rgb) / .6))}

/* Things you tap press in a little under your thumb. Never the bar or the camera: their positions are fixed and
   lifting them is what the 29 Sep nav-bar bug was made of. */
.answer button:not(:disabled),.dayline,.chip,.primary,.ghost,.quickTile,.usualBtn,.savedMenu{transition:transform .12s ease}
.answer button:not(:disabled):active,.dayline:active,.chip:active,.primary:active,.ghost:active,.quickTile:active,
.usualBtn:active,.savedMenu:active{transform:scale(.97)}

/* Meal-type glyphs on the recipe chips. */
.mealIcon{width:15px;height:15px;margin-right:6px;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}

@media (prefers-reduced-motion:reduce){
  .track.mGrow .fill,.weekPlot.mRise .wkIn,.weekPlot.mRise .wkOver,.weekPlot.mRise .wkGap,.weekPlot.mRise .wtDot,
  .mGlow,.mEnter{animation:none}
  #navPill{transition:none}
  .answer button:active,.dayline:active,.chip:active,.primary:active,.ghost:active,.quickTile:active,.usualBtn:active,
  .savedMenu:active{transform:none}
}

/* Recipe cards carry their meal's glyph (6 Oct 2026). */
/* A recipe's header gains a column for the glyph; Eat out's dish headers are left exactly as they were. */
.eoHead:has(> .rIcon){grid-template-columns:auto 1fr auto;align-items:center}
.eoHead:has(> .rIcon) .eoNums{grid-column:2 / -1}
.rIcon{flex:none;display:inline-grid;place-items:center;width:38px;height:38px;margin-right:2px;border-radius:var(--r2);
  color:var(--accent);background:rgb(var(--accent-rgb) / .12);border:1px solid rgb(var(--accent-rgb) / .25)}
.rIcon .mealIcon{width:20px;height:20px;margin:0;vertical-align:0}
/* A recipe saved from a photographed meal shows that photo (7 Oct 2026); the dish icon underneath if it will not load. */
.rIcon.rPhoto{position:relative;overflow:hidden}
.rIcon.rPhoto img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}

/* Loading placeholders: soft shapes with a light passing over them. Shapes only, never a number. */
.skel{display:grid;gap:12px;padding:6px 0}
.sk{display:block;border-radius:var(--r2);background:var(--surface);position:relative;overflow:hidden}
.sk::after{content:"";position:absolute;inset:0;transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgb(var(--lit-rgb) / .06),transparent);animation:skPass 1.3s ease-in-out infinite}
@keyframes skPass{to{transform:translateX(100%)}}
.sk-tiles{height:72px}.sk-hero{height:150px}.sk-line{height:22px;border-radius:8px}.sk-line.short{width:55%}
.sk-card{height:120px}.sk-tile{height:78px}.sk-chart{height:150px}
.skGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* The logged note: rises above the bar, a tick draws, then it goes. */
#loggedToast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));z-index:60;display:flex;align-items:center;
  gap:10px;padding:11px 18px 11px 12px;border-radius:var(--pill);font-size:15px;color:var(--ink);pointer-events:none;
  background:color-mix(in srgb, var(--surface) 92%, transparent);border:1px solid rgb(var(--accent-rgb) / .45);
  box-shadow:var(--lift-3),0 0 24px rgb(var(--accent-rgb) / .25);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  opacity:0;transform:translate(-50%,16px) scale(.96);transition:opacity .25s ease,transform .35s cubic-bezier(.34,1.4,.64,1)}
#loggedToast.show{opacity:1;transform:translate(-50%,0) scale(1)}
#loggedToast b{color:var(--accent)}
#loggedToast svg{width:24px;height:24px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#loggedToast svg path{stroke-dasharray:20;stroke-dashoffset:20}
#loggedToast.show svg path{animation:tick .45s ease-out .15s forwards}
@keyframes tick{to{stroke-dashoffset:0}}

@media (prefers-reduced-motion:reduce){
  .sk::after{animation:none}
  #loggedToast{transition:none}
  #loggedToast.show svg path{animation:none;stroke-dashoffset:0}
}

/* Icons beside headings and on chips (6 Oct 2026): the tab bar's line style, in the accent, never the only label. */
.uiIcon{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  vertical-align:-3px}
h3 > .uiIcon{width:19px;height:19px;margin-right:8px;color:var(--accent);vertical-align:-4px}
.chip > .uiIcon{width:15px;height:15px;margin-right:6px}

/* ---------- the depth pass (6 Oct 2026) ----------
   Lance: "do you think we need a redesign ... to move away from the flat design". Not a redesign: the same layout,
   lit. Agreed with the content and research sessions the same day: cards get a top light and an inner edge, the
   screen gets one soft light from above (on #app, not body, so the promo renders that have no body still get it, and
   switchable with .noLight), no grain (it turns to mush in h264), the three macros get three hues, and Today's top
   card holds the macro ring beside the total. */

/* Cards, lit from above: a faint sheen fading down, a hairline of light on the top edge, a soft drop. */
.answer,.weekBox,.eoDish,.progTile,.quickTile,.homeHint,.macro{
  background-image:linear-gradient(180deg,rgb(var(--lit-rgb) / .045),rgb(var(--lit-rgb) / 0) 55%);
  box-shadow:inset 0 1px 0 rgb(var(--lit-rgb) / .07),var(--lift-2)}
.answer{border-color:var(--line-soft)}
.weekBox,.eoDish,.progTile{border-color:var(--line-soft)}

/* One light, from above the screen, in the accent. */
#app:not(.noLight)::before{content:"";position:fixed;left:0;right:0;top:0;height:46vh;pointer-events:none;z-index:-1;
  background:radial-gradient(70% 60% at 50% -10%,rgb(var(--accent-rgb) / .13),transparent 70%)}

/* Today's hero: the total and the macro ring side by side. */
.heroTop{display:flex;align-items:center;justify-content:space-between;gap:12px}
.heroFigures{min-width:0;flex:1}
.heroRing{position:relative;flex:none;width:116px;height:116px;filter:drop-shadow(0 0 14px rgb(var(--accent-rgb) / .28))}
.heroRing .splitRing{--ringSize:116px}
.heroDot{position:absolute;left:50%;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;
  background:var(--accent);box-shadow:0 0 12px rgb(var(--accent-rgb) / .8)}
@media (max-width:360px){.heroRing,.heroRing .splitRing{width:92px;height:92px;--ringSize:92px}}
.kcal{text-shadow:0 0 28px rgb(var(--accent-rgb) / .22)}
/* the key sits under the bars now that the ring is in the hero */
.answer > .splitKey{display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 2px;padding:0}

/* Each macro in its own colour: its bar, the dot by its name, the edge of its tile on a meal. "Over" stays amber. */
.bar[data-m="protein"] .fill:not(.over){background:var(--split-p)}
.bar[data-m="carbs"] .fill:not(.over){background:var(--split-c)}
.bar[data-m="fat"] .fill:not(.over){background:var(--split-f)}
.mDot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;vertical-align:1px}
.bar[data-m="protein"] .mDot{background:var(--split-p)}
.bar[data-m="carbs"] .mDot{background:var(--split-c)}
.bar[data-m="fat"] .mDot{background:var(--split-f)}
.macro[data-m]{position:relative;overflow:hidden}
.macro[data-m]::before{content:"";position:absolute;left:0;right:0;top:0;height:3px}
.macro[data-m="protein"]::before{background:var(--split-p)}
.macro[data-m="carbs"]::before{background:var(--split-c)}
.macro[data-m="fat"]::before{background:var(--split-f)}

/* The hero's words wrap beside the ring instead of running under it ("2,444 under" did, on a past day). */
.heroFigures .kcal span{white-space:normal}

/* A day or month slides in from the side it lies on. */
.mSlideL{animation:mSlideL .32s cubic-bezier(.22,1,.36,1)}
.mSlideR{animation:mSlideR .32s cubic-bezier(.22,1,.36,1)}
@keyframes mSlideL{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes mSlideR{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}

/* A reminder shown inside the app, because an iPhone will not show it while the app is open. */
#pushBanner{position:fixed;left:12px;right:12px;top:calc(10px + env(safe-area-inset-top));z-index:70;display:grid;gap:2px;
  padding:12px 16px;border-radius:var(--r3);background:color-mix(in srgb, var(--surface) 94%, transparent);
  border:1px solid var(--line-soft);box-shadow:var(--lift-3);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  opacity:0;transform:translateY(-16px);transition:opacity .25s ease,transform .35s cubic-bezier(.34,1.3,.64,1);pointer-events:none}
#pushBanner.show{opacity:1;transform:none}
#pushBanner b{font-size:14px}
#pushBanner span{font-size:14px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){.mSlideL,.mSlideR{animation:none}#pushBanner{transition:none}}

/* ---------- charts and the calendar, given depth (6 Oct 2026) ----------
   Lance: "the graphs just feel compressed and look like 2D drawn ... improve the graphics on the calendar too". */
.weekPlot{height:auto;aspect-ratio:7 / 3;padding:0;
  background:linear-gradient(180deg,rgb(var(--lit-rgb) / .03),rgb(var(--lit-rgb) / 0) 70%),var(--well);
  box-shadow:inset 0 1px 6px rgb(var(--on-accent-rgb) / .55)}
.wtPlot{height:auto;aspect-ratio:700 / 260;margin-top:10px}
.wkGrid{stroke:var(--line-soft);stroke-width:1;vector-effect:non-scaling-stroke;opacity:.6}
.wkVal{fill:var(--muted);font-size:22px;font-weight:600;text-anchor:middle;font-variant-numeric:tabular-nums}
.weekPlot .wkIn{filter:drop-shadow(0 0 6px rgb(var(--accent-rgb) / .45))}
.wkOver{fill:var(--amber)}
.wtArea{stroke:none}
.wtTrend{stroke-width:3;filter:drop-shadow(0 0 5px rgb(var(--accent-rgb) / .7))}
.wtDot{fill:var(--ink);opacity:.55}
.weekChart{padding-bottom:22px}

/* The month: a lit card, logged days glowing softly in their tone, today ringed in light. */
.grid{background-image:linear-gradient(180deg,rgb(var(--lit-rgb) / .045),rgb(var(--lit-rgb) / 0) 55%);
  border-color:var(--line-soft);box-shadow:inset 0 1px 0 rgb(var(--lit-rgb) / .07),var(--lift-2);gap:6px}
.cell{border-radius:var(--r2);background:rgb(var(--lit-rgb) / .025);transition:transform .12s ease}
.cell:not(.blank):not(.future):active{transform:scale(.94)}
.cell.tone-good{background:radial-gradient(120% 120% at 50% 0%,rgb(var(--accent-rgb) / .38),rgb(var(--accent-rgb) / .12));
  box-shadow:inset 0 1px 0 rgb(var(--lit-rgb) / .08)}
.cell.tone-warn{background:radial-gradient(120% 120% at 50% 0%,rgb(var(--amber-rgb) / .36),rgb(var(--amber-rgb) / .1));
  box-shadow:inset 0 1px 0 rgb(var(--lit-rgb) / .08)}
.cell.tone-bad{background:radial-gradient(120% 120% at 50% 0%,rgb(var(--red-rgb) / .34),rgb(var(--red-rgb) / .1));
  box-shadow:inset 0 1px 0 rgb(var(--lit-rgb) / .08)}
.cell.isToday{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 0 14px rgb(var(--accent-rgb) / .45)}
.cellDay{font-size:14px}
@media (prefers-reduced-motion:reduce){.cell:active{transform:none}}

/* When a saved menu was saved (6 Oct 2026). */
.eoSaved{margin:-2px 0 6px;font-size:13px;color:var(--dim)}

/* Same packet, same answer (6 Oct 2026). */
.lblSame{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:14px;color:var(--accent)}
.lblPrev{margin:10px 0;padding:12px 14px;border-radius:var(--r2);border:1px solid rgb(var(--accent-rgb) / .35);
  background:rgb(var(--accent-rgb) / .08);font-size:14px;color:var(--muted)}
.lblPrev p{margin:0 0 10px;line-height:1.45}
.lblPrev b{color:var(--ink)}
.lblPrev .uiIcon{color:var(--accent)}

/* Targets: landmarks on the calorie slider, its readout, the tips, and each macro slider in its colour (6 Oct 2026). */
.trow{position:relative}
.tMarks{position:relative;height:46px;margin-top:2px}
/* two levels, so the labels never collide when BMR and maintenance sit close together on the track */
.tMark.tdee i{height:24px}
.tMark{position:absolute;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;
  pointer-events:none;white-space:nowrap}
.tMark i{width:2px;height:10px;border-radius:2px;background:var(--muted)}
.tMark em{font-style:normal;font-size:11px;color:var(--muted)}
.tMark.tdee i{background:var(--accent);box-shadow:0 0 8px rgb(var(--accent-rgb) / .8)}
.tMark.bmr{z-index:1}
.tMark.tdee em{color:var(--accent)}
.calDelta{display:grid;gap:6px;margin:6px 0 4px;font-size:14px;color:var(--muted);line-height:1.45}
.calDelta b{font-size:16px;color:var(--ink)}
.calProj{color:var(--muted)}
.calRest{color:var(--amber)}
#r_calories{accent-color:var(--accent)}
#r_protein_g{accent-color:var(--split-p)}
#r_carbs_g{accent-color:var(--split-c)}
#r_fat_g{accent-color:var(--split-f)}
.tTips{margin:14px 0 6px;border:1px solid var(--line-soft);border-radius:var(--r2);padding:10px 14px;
  background-image:linear-gradient(180deg,rgb(var(--lit-rgb) / .04),rgb(var(--lit-rgb) / 0) 60%)}
.tTips summary{cursor:pointer;font-weight:600;list-style:none;display:flex;align-items:center;gap:8px}
.tTips summary::-webkit-details-marker{display:none}
.tTips summary .uiIcon{color:var(--accent)}
.tTips dl{margin:10px 0 0}
.tTips dt{font-weight:650;margin-top:10px;display:flex;align-items:center;gap:2px}
.tTips dt .uiIcon{color:var(--accent);margin-right:6px}
.tTips dd{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.5}

/* The home typing box: a text area with room to write a whole meal (6 Oct 2026). */
.homeTyped{flex-direction:column;align-items:stretch}
.homeTyped textarea{width:100%;min-height:104px;padding:14px 16px;font:inherit;font-size:17px;line-height:1.45;color:var(--ink);
  background:var(--raised);border:1px solid var(--line-soft);border-radius:var(--r3);resize:none;
  box-shadow:inset 0 1px 0 rgb(var(--lit-rgb) / .05)}
.homeTyped textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgb(var(--accent-rgb) / .2)}
.homeTyped textarea::placeholder{color:var(--muted)}
.homeTyped .typedGo{align-self:stretch;min-height:50px}

/* Progress over a week, a month or a year (6 Oct 2026). One chart drawing for 7, 31 or 12 bars; each macro in its
   own colour, the same three as the Today ring. */
.pgRanges{margin:2px 0 6px}
.pgRanges button,.wtRanges button{min-height:38px;font-size:14px;font-weight:600}
.progCard h3{display:flex;align-items:center;flex-wrap:wrap;gap:0 2px}
.progAvg{margin-left:auto;font-size:13px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.pg-protein h3 > .uiIcon{color:var(--split-p)}
.pg-carbs h3 > .uiIcon{color:var(--split-c)}
.pg-fat h3 > .uiIcon{color:var(--split-f)}
.wkVal.small{font-size:19px}
.weekHits .weekDay:disabled{cursor:default}
.pgPick{display:block;margin-top:10px}
.pgPick select{width:100%;min-height:44px;padding:0 12px;border-radius:var(--r2);border:1px solid var(--line);
  background:var(--raised);color:var(--ink);font:inherit;font-size:15px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wtRanges{margin-top:10px}
.wtChange{margin-top:6px}
.wtMore{width:100%;margin-top:6px}

/* Each meal's macros on one line, each figure in its macro's colour (6 Oct 2026). Lance: fat kept dropping to a
   second line with room to spare; the gap and the size were the cause. */
.dayMacros{gap:3px 9px;flex-wrap:wrap}
.dayMacros span{font-size:12.5px}
.dayMacros b{font-size:13px}
.dayMacros .mP b{color:var(--split-p)}
.dayMacros .mC b{color:var(--split-c)}
.dayMacros .mF b{color:var(--split-f)}

/* The foot of a meal, rethought (6 Oct 2026). Lance: "the entire bottom section needs to be re thought and cleaned
   up". When it was eaten is a chip that says it can be changed; everything you can do with the meal is one row of
   tiles with an icon each; Delete and Back stay the two big buttons under them. */
.eatenRow{margin:16px 0 0}
.whenChip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:var(--pill);
  background:var(--raised);border:1px solid var(--line);color:var(--ink);font:inherit;font-size:14px;font-weight:550;cursor:pointer}
.whenChip .uiIcon{color:var(--accent)}
.whenChip .uiIcon:last-child{width:15px;height:15px;color:var(--muted)}
.whenChip:active{transform:scale(.98)}
.mealActs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin-top:14px}
.mealActs .actSlot{display:contents}
.actTile{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-height:84px;
  padding:12px 4px 10px;border-radius:var(--r3);background:var(--surface);border:1px solid var(--line);color:var(--ink);
  font:inherit;font-size:12.5px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer}
.actTile .uiIcon{width:22px;height:22px;padding:8px;box-sizing:content-box;border-radius:var(--r2);
  color:var(--accent);background:rgb(var(--accent-rgb) / .12)}
.actTile:active{transform:scale(.97)}
.actTile:disabled{opacity:.45}
.actTile.cardBtn{color:var(--ink);min-height:84px;flex:none}
.cardRow .actTile{width:100%;flex-direction:row;justify-content:center;min-height:48px;margin-top:16px}

/* A recipe at the amount chosen (6 Oct 2026): the figures and every ingredient follow the serve chips. */
.ktFor{margin:10px 0 10px;font-size:14px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.ktListFor{margin:14px 0 4px;font-size:13px;color:var(--muted)}
.ktIngr{padding-left:18px}
.ktIngr li{margin:4px 0}
.ktIngr b{font-variant-numeric:tabular-nums}
.ktIngr small{display:block;font-size:12px;color:var(--dim)}

/* Pills wrap instead of scrolling sideways (6 Oct 2026, Lance: "just stack them"). Find a meal's four are a 2 x 2. */
.eoSorts{flex-wrap:wrap;overflow:visible}
.eoSorts.genTypes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.eoSorts.genTypes .chip{text-align:center;min-height:42px;font-size:14px}
.wishChips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.wishChip{display:inline-flex;align-items:center;border-radius:var(--pill);border:1px solid var(--line);background:var(--raised)}
.wishChip button{background:transparent;border:0;color:var(--muted);font:inherit;font-size:14px;font-weight:600;
  min-height:36px;padding:0 14px;cursor:pointer}
.wishChip.on{border-color:var(--accent);background:rgb(var(--accent-rgb) / .12)}
.wishChip.on button{color:var(--accent)}
.wishChip .wishDrop{padding:0 12px 0 0;font-size:18px}
.wishSaveBtn{min-height:36px;padding:0;margin-top:4px;font-size:14px;width:auto}
.wishName{display:flex;gap:8px;margin-top:8px}
.wishName .ktInput{flex:1;margin:0}

/* Years of history (6 Oct 2026): the month's name opens the phone's own month and year picker, so March two years
   ago is one tap, not twenty-odd taps of the arrow. */
.monthJump{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;cursor:pointer}
.monthJump .jumpCaret{font-size:13px;color:var(--muted)}
.monthJump input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0;margin:0}
.ktFind{margin:8px 0 10px}
/* The macros run under the title AND the calories, the full width of the row, so all three fit on one line. */
.dayline{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;row-gap:7px;align-items:start}
.dayline > .dayThumb{grid-column:1;grid-row:1 / span 2}
.dayline > .dayMain{grid-column:2;grid-row:1}
.dayline > .kc{grid-column:3;grid-row:1}
.dayline > .dayMacros{grid-column:2 / 4;grid-row:2;flex-wrap:nowrap}
.eoSorts.ktEaten{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.eoSorts.ktEaten .chip{text-align:center;padding:7px 4px}

/* Progress cards fold shut and open (6 Oct 2026). The heading is the summary; a chevron says it can be folded. */
details.progCard > summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer}
details.progCard > summary::-webkit-details-marker{display:none}
details.progCard > summary h3{flex:1;min-width:0;margin:2px 0 0}
.pgChev{width:9px;height:9px;flex:none;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:rotate(45deg);margin:0 4px 4px 0;transition:transform .2s ease}
details.progCard:not([open]) .pgChev{transform:rotate(-45deg);margin-bottom:0}
details.progCard:not([open]){padding-bottom:14px}
.pg-micro h3 .nstar,.nstar{font-style:normal;color:var(--amber);margin-right:6px;font-size:.95em}
.pgUnstar{width:auto;min-height:36px;padding:0;margin-top:2px;font-size:14px}

/* Starred nutrients: the chips at the top of a meal and of Today, and the star in a nutrient's info sheet. */
.focusStrip{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.focusChip{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:8px 12px;border-radius:var(--r2);
  background:var(--surface);border:1px solid var(--line);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.focusChip .fcName{font-size:12px;color:var(--muted);font-weight:600}
.focusChip .fcName i{font-style:normal;color:var(--amber);margin-right:4px}
.focusChip b{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
.focusChip small{font-size:11.5px;color:var(--dim)}
.focusChip.over{border-color:rgb(var(--amber-rgb) / .55)}
.starBtn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;margin-top:6px;border-radius:var(--pill);
  background:var(--raised);border:1px solid var(--line);color:var(--ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.starBtn span{color:var(--amber);font-size:18px}
.starBtn.on{border-color:rgb(var(--amber-rgb) / .6);background:rgb(var(--amber-rgb) / .10)}
.starBtn:disabled{opacity:.5}

/* The weight chart, zoomable. */
.wtZoom{position:relative;touch-action:pan-y;user-select:none;-webkit-user-select:none;margin-top:10px}
.wtReset{position:absolute;top:8px;left:8px;background:var(--raised);color:var(--ink);border:1px solid var(--line);cursor:pointer}
.wtHint{margin:4px 0 0;font-size:12px;color:var(--dim);text-align:center}
.wtScale{fill:var(--dim);font-size:20px;text-anchor:end;font-variant-numeric:tabular-nums}
.wtEmpty{min-height:120px;display:flex;align-items:center;justify-content:center;text-align:center}
.wtLog{margin-top:12px;border-top:1px solid var(--line-soft);padding-top:8px}
.wtLog > summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:40px;
  cursor:pointer;font-size:15px;font-weight:600;color:var(--ink)}
.wtLog > summary::-webkit-details-marker{display:none}
.wtLog > summary span{font-size:13px;color:var(--muted);font-weight:600;padding:2px 9px;border-radius:var(--pill);background:var(--raised)}
.wtLog > summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:rotate(45deg);margin:0 6px 4px 10px}
.wtLog[open] > summary::after{transform:rotate(-135deg);margin-bottom:0}

/* Recipes by meal (6 Oct 2026). */
.ktFilter{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 12px}
.ktFilter .chip{background:var(--raised);color:var(--muted);border:1px solid var(--line);cursor:pointer;display:inline-flex;align-items:center;gap:2px}
.ktFilter .chip span{margin-left:6px;font-size:11.5px;color:var(--dim);font-variant-numeric:tabular-nums}
.ktFilter .chip.on{border-color:var(--accent);color:var(--accent);background:rgb(var(--accent-rgb) / .12)}
.ktFilter .chip.on span{color:var(--accent)}
.ktTag{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0 10px}
.ktTag .chip{background:var(--raised);color:var(--muted);border:1px solid var(--line);font-size:12.5px;padding:7px 2px;text-align:center;cursor:pointer}
.ktTag .chip .mealIcon{margin-right:3px}
.ktTag .chip.on{border-color:var(--accent);color:var(--accent);background:rgb(var(--accent-rgb) / .12)}

/* Targets, more visual (6 Oct 2026). Each slider in its macro's colour, filled to the thumb; every figure for it
   underneath; the calorie split as one bar; steps beside each activity level; presets as cards. */
.trow{--c:var(--accent)}
.trow[data-k="protein_g"]{--c:var(--split-p)}
.trow[data-k="carbs_g"]{--c:var(--split-c)}
.trow[data-k="fat_g"]{--c:var(--split-f)}
.tline>span:first-child{display:inline-flex;align-items:center}
.tline .uiIcon{width:19px;height:19px;margin-right:8px;color:var(--c, var(--accent))}
.tslider{-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer;--fill:50%}
.tslider::-webkit-slider-runnable-track{height:10px;border-radius:var(--pill);
  background:linear-gradient(to right,var(--c, var(--accent)) 0 var(--fill, 50%),var(--raised) var(--fill, 50%) 100%);box-shadow:inset 0 0 0 1px var(--line)}
.tslider::-moz-range-track{height:10px;border-radius:var(--pill);background:var(--raised)}
.tslider::-moz-range-progress{height:10px;border-radius:var(--pill);background:var(--c, var(--accent))}
.tslider::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-8px;border-radius:50%;
  background:var(--ink);border:3px solid var(--c, var(--accent));box-shadow:var(--lift-1)}
.tslider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--ink);border:3px solid var(--c, var(--accent))}
.tslider:disabled{opacity:.5}
.tStats{display:flex;flex-wrap:wrap;gap:4px 12px;margin:2px 0 0;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.tStats b{color:var(--c, var(--accent));font-weight:700}
.tStats span + span::before{content:"·";margin-right:12px;color:var(--dim)}
.tSplit{display:flex;gap:3px;height:30px;margin:12px 0 4px;border-radius:var(--r1);overflow:hidden}
.tSplitPart{display:flex;align-items:center;justify-content:center;min-width:0;padding:0 6px;font-size:12px;white-space:nowrap;
  overflow:hidden;color:var(--on-accent);transition:flex-grow .25s ease}
.tSplitPart b{margin-right:4px}
.s-p{background:var(--split-p)} .s-c{background:var(--split-c)} .s-f{background:var(--split-f)}
.tStepsSay{color:var(--dim)}
.acts button{display:flex;align-items:center;justify-content:space-between;gap:10px}
.acts button > span{flex:1;min-width:0}
.tSteps{flex:none;display:inline-flex;align-items:center;gap:4px;font-style:normal;font-size:12px;font-weight:600;
  color:var(--muted);padding:3px 8px;border-radius:var(--pill);background:var(--bg);white-space:nowrap}
.tSteps .uiIcon{width:14px;height:14px}
.acts button.on .tSteps{color:var(--accent)}
.presetCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.presetCard{position:relative;border-radius:var(--r3);background:var(--surface);border:1px solid var(--line);min-height:120px}
.presetCard.inUse{border-color:var(--accent)}
.pcUse{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;height:100%;padding:12px 12px 12px;
  background:transparent;border:0;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.pcName{font-size:14px;font-weight:650;padding-right:30px;line-height:1.25}
.pcName em{display:block;font-style:normal;font-size:11.5px;color:var(--accent);font-weight:600;margin-top:2px}
.pcCal{font-size:13px;color:var(--muted)}
.pcCal b{font-size:20px;color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.pcBar{display:flex;gap:2px;width:100%;height:7px;border-radius:var(--pill);overflow:hidden}
.pcGrams{display:flex;gap:8px;font-size:11.5px;color:var(--muted)}
.pcGrams .mP b{color:var(--split-p)} .pcGrams .mC b{color:var(--split-c)} .pcGrams .mF b{color:var(--split-f)}
.pcDrop{position:absolute;top:6px;right:6px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;
  border-radius:var(--r1);background:transparent;border:0;color:var(--muted);cursor:pointer}
.pcDrop .uiIcon{width:18px;height:18px}
.pcDrop:active,.pcDrop:hover{color:var(--red);background:rgb(var(--red-rgb) / .10)}
.presetCard.asking{border-color:rgb(var(--red-rgb) / .6);padding:12px;display:flex;flex-direction:column;justify-content:space-between}
.pcAsk{margin:0;font-size:14px}
.pcAskBtns{display:flex;gap:6px;margin-top:10px}
.pcAskBtns button{flex:1;min-height:40px;padding:0 6px;font-size:14px}
.presetSave .ghost .uiIcon{margin-right:6px;vertical-align:-3px}

/* Reading a menu: a bar, the three steps, and permission to leave (6 Oct 2026). */
.menuWait{padding:18px 16px}
.mwStage{display:flex;align-items:center;gap:10px;margin:0;font-size:16px;font-weight:600;color:var(--ink)}
.mwStage .eoSpin{flex:none}
.mwBar{height:10px;border-radius:var(--pill);background:var(--raised);overflow:hidden;margin:14px 0 12px;box-shadow:inset 0 0 0 1px var(--line)}
.mwBar i{display:block;height:100%;border-radius:var(--pill);background:linear-gradient(to right,var(--accent),var(--beam));
  transition:width .6s ease}
.mwSteps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.mwSteps li{position:relative;padding-left:22px;font-size:13.5px;color:var(--dim)}
.mwSteps li::before{content:"";position:absolute;left:2px;top:4px;width:10px;height:10px;border-radius:50%;border:2px solid var(--line)}
.mwSteps li.now{color:var(--ink);font-weight:600}
.mwSteps li.now::before{border-color:var(--accent)}
.mwSteps li.done{color:var(--muted)}
.mwSteps li.done::before{background:var(--accent);border-color:var(--accent)}
.mwNote{margin:14px 0 0;font-size:13.5px;line-height:1.5;color:var(--muted)}
#pushBanner.tappable{cursor:pointer}
#pushBanner.tappable.show{pointer-events:auto}

/* Account, as cards under plain labels (6 Oct 2026). */
.acctCards{background:transparent;border:0;box-shadow:none;padding-left:0;padding-right:0}
.acctHead{display:flex;align-items:center;gap:14px;margin:4px 0 14px}
.acctHead h2{margin:0 0 2px}
.acctHead p{margin:0;color:var(--muted);font-size:14px}
.acctAvatar{flex:none;width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:22px;font-weight:700;color:var(--on-accent);background:linear-gradient(135deg,var(--beam),var(--accent))}
.acctGroup{margin:24px 4px 6px;font-size:15px;font-weight:650;color:var(--muted)}
.acctCard,.acctCards #acctExtras > *{background:var(--surface);border:1px solid var(--line);border-radius:var(--r3);
  padding:14px 16px;margin-top:10px}
.acctCard h3,.acctCards #acctExtras > * h3{margin-top:0}
.acctCard > :last-child{margin-bottom:0}
.acctCard .acctRow{margin:0}
.acctDanger{border-color:rgb(var(--red-rgb) / .35)}

/* Layout pass (6 Oct 2026): "Add a meal" under the day's meals, the week as a link to Progress, and a one-time note
   saying what moved. */
#today .quickHead{margin:18px 2px 8px;font-size:15px;font-weight:650;letter-spacing:0;text-transform:none;color:var(--ink)}
.quickLog.four{grid-template-columns:repeat(2,minmax(0,1fr))}
.weekLink{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;margin:12px 0 4px;padding:0 14px;border-radius:var(--r2);
  background:var(--surface);border:1px solid var(--line);color:var(--ink);font:inherit;font-size:14px;font-weight:550;text-align:left;cursor:pointer}
.weekLink .uiIcon{color:var(--accent)}
.weekLink span:not(.chev){flex:1;min-width:0}
.weekLink .chev{color:var(--muted)}
.movedNote{margin:0 0 10px;padding:10px 14px;border-radius:var(--r2);background:rgb(var(--accent-rgb) / .12);
  border:1px solid rgb(var(--accent-rgb) / .3);font-size:13.5px;line-height:1.45;color:var(--ink)}
.movedNote .linkBtn{width:auto;min-height:0;padding:0;margin-left:6px;font-size:13.5px;display:inline}

/* Targets, layout pass (6 Oct 2026). */
.aboutLine{display:grid;gap:3px;width:100%;text-align:left;font:inherit;color:var(--ink);cursor:pointer}
.aboutTop{display:flex;align-items:center;justify-content:space-between}
.aboutTop b{font-size:15px}
.aboutEdit{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--accent)}
.aboutEdit .uiIcon{width:15px;height:15px}
.aboutBits{font-size:15px;font-weight:600}
.aboutAct,.aboutTdee{font-size:13px;color:var(--muted)}
.presetsTop .tHead{margin-top:0}
.tSaveBar{position:sticky;bottom:12px;z-index:30;margin:16px -6px 0;padding:10px 6px;border-radius:var(--r3);
  background:color-mix(in srgb, var(--surface) 94%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
body.withNav .tSaveBar{bottom:calc(env(safe-area-inset-bottom) + 96px)}
/* The macro bars' view switch, visible as a small pill rather than a faint hint (layout pass, 6 Oct 2026). */
.barsHint{display:flex;justify-content:flex-end;margin:8px 0 0}
.barsHint{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:0}
.bars .barsHint::before{content:"Showing";margin-right:5px;color:var(--dim);font-weight:500}
.barsHint span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-left:6px;
  border-radius:50%;background:var(--raised);border:1px solid var(--line);color:var(--accent)}

/* Design review (6 Oct 2026). 1: Today leads with what was eaten; the target and what's left are one quiet line. */
.heroFigures .kcal span{font-size:17px;margin-left:8px;white-space:nowrap}
.heroOf{margin:4px 0 0;font-size:13.5px;color:var(--muted);font-variant-numeric:tabular-nums;line-height:1.35}
.heroOf .calLeft{font-style:normal;color:var(--ink);font-weight:600}
/* 2: first run, one action. */
.firstRun{margin:6px 0 14px;padding:22px 18px;border-radius:var(--r4);background:var(--surface);border:1px solid var(--line);text-align:center}
.firstRun h2{margin:0 0 8px;font-size:22px}
.firstRun > p{margin:0 auto 16px;max-width:30em;color:var(--muted);font-size:14.5px;line-height:1.5}
.firstShot{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;font-size:17px;cursor:pointer}
.firstShot input{display:none}
.firstShot .uiIcon{width:22px;height:22px;color:inherit}
.firstTips{margin-top:14px;text-align:left}
.firstTips summary{cursor:pointer;color:var(--accent);font-weight:600;font-size:14px;text-align:center;list-style:none}
.firstTips summary::-webkit-details-marker{display:none}
.firstLater{margin:6px 2px 0;font-size:13px;color:var(--dim);text-align:center}
.firstLater .uiIcon{width:15px;height:15px;vertical-align:-3px;color:var(--muted)}
/* 3: the pinned totals. */
#dayPin{position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 8px);z-index:60;display:flex;align-items:baseline;gap:10px;
  padding:8px 14px;border-radius:var(--pill);background:color-mix(in srgb, var(--surface) 94%, transparent);border:1px solid var(--line);
  box-shadow:var(--lift-2);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font-size:13px;color:var(--muted);
  white-space:nowrap;font-variant-numeric:tabular-nums;opacity:0;transform:translate(-50%,-12px);pointer-events:none;
  transition:opacity .2s ease,transform .25s ease}
#dayPin.show{opacity:1;transform:translate(-50%,0)}
#dayPin > b{color:var(--ink);font-size:15px}
#dayPin small{font-size:12px;color:var(--dim)}
#dayPin .mP b{color:var(--split-p)} #dayPin .mC b{color:var(--split-c)} #dayPin .mF b{color:var(--split-f)}
/* Never wider than the screen (8 Oct 2026: at 320 px it ran off the right edge). Narrow phones drop the "/ target"
   part and close up, and the cap holds whatever is left. */
#dayPin{max-width:calc(100vw - 24px)}
/* Two short lines (8 Oct 2026): the day and the calories, then the macros. On one line, with the day added, it was
   wider than a 390 px screen. */
#dayPin{flex-direction:column;align-items:center;gap:2px;padding:6px 16px;border-radius:var(--r2)}
#dayPin .pinTop,#dayPin .pinMacros{display:flex;align-items:baseline;gap:8px}
#dayPin .pinTop > b{color:var(--ink);font-size:15px}
#dayPin .pinMacros{gap:10px;font-size:12px}
#dayPin .pinDay{color:var(--ink);font-weight:650;font-size:13px;padding-right:8px;border-right:1px solid var(--line)}
@media (max-width:359px){#dayPin{gap:7px;padding:8px 11px}#dayPin small{display:none}}

/* 5 (design review, 6 Oct 2026): amber means OVER. "Worth a look" is not "you did something wrong", so uncertainty
   gets a calm neutral with a question mark: the model's confidence, a food to check, an amount to check, a food not
   in the data, the placeholder-targets note and the Home Screen dot. Real warnings (the safety notice, below-BMR,
   errors) keep amber. */
.conf{color:var(--muted)}
.conf::before,.checkHint::before,.nodata::before,.checkThis::before{content:"?";display:inline-flex;align-items:center;justify-content:center;
  width:16px;height:16px;margin-right:6px;border-radius:50%;border:1px solid var(--line);background:var(--raised);
  color:var(--ink);font-size:11px;font-weight:700;vertical-align:1px}
.conf.low{color:var(--ink)}
.checkHint,.nodata{color:var(--muted)}
.stepper.checkAmount button.stepG{border-style:dashed;border-color:var(--muted);color:var(--ink)}
.checkThis{color:var(--ink)}
.checkThis::before{background:var(--raised);margin-right:0}
.foundTag.check::before{content:"?";width:14px;height:14px;line-height:14px;text-align:center;font-size:10px;font-weight:700;
  color:var(--ink);background:var(--raised);box-shadow:0 0 0 1px var(--line)}
.tnote.unset{color:var(--muted)}
.installDot{background:var(--accent);box-shadow:0 0 0 4px rgb(var(--accent-rgb) / .16)}
.eoNote{color:var(--muted)}

/* 6: less green (design review, 6 Oct 2026). When everything is accent nothing is: the one main button per screen and
   links stay green; a selected chip or segment is ink on a raised fill with a green edge. */
.chip.on,.eoSorts .chip.on,.ktFilter .chip.on,.ktTag .chip.on,.wishChip.on{background:var(--raised);color:var(--ink);border-color:var(--accent)}
.chip.on .mealIcon,.chip.on .uiIcon{color:var(--accent)}
.ktFilter .chip.on span{color:var(--muted)}
.wishChip.on button{color:var(--ink)}
.seg button.on,.acts button.on{color:var(--ink);border-color:var(--accent);background:var(--raised);box-shadow:inset 0 0 0 1px var(--accent)}

/* 7: one button system (design review, 6 Oct 2026). Three kinds only: the filled main action, the outlined second
   action (same height and corners, ink text), and the plain text link. Chips stay chips: they are choices. */
button{border-radius:var(--r2)}
.ghost,.todayBtn,.cardBtn,.editTargets{border-radius:var(--r2);min-height:48px;color:var(--ink);font-weight:600}
.ghost.soft,.ghost.plain{color:var(--muted)}
.todayBtn{background:none;border:0;color:var(--accent);min-height:40px;width:auto;padding:0 4px;font-weight:600}
.todayBtn::before{content:"‹ "}
/* 8: sentence case for every label (the all-caps eyebrows go). */
.macro small,.nhead,.angleTag,.quickHead{text-transform:none;letter-spacing:0}
.nhead{font-weight:650;color:var(--ink)}
/* 9: Eat out sorts with one control; only Close and Over earn a badge (design review, 6 Oct 2026). */
.eoSort{display:flex;align-items:center;gap:8px;margin:4px 0 10px;padding:0 4px 0 12px;min-height:46px;border-radius:var(--r2);
  background:var(--raised);border:1px solid var(--line);color:var(--muted);font-size:14px;font-weight:600}
.eoSort .uiIcon{color:var(--accent)}
.eoSort select{flex:1;min-height:44px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:15px;font-weight:600}
.fit-over .eoFit{background:rgb(var(--amber-rgb) / .14);color:var(--amber)}
.fit-close .eoFit{background:var(--raised);color:var(--ink);border:1px solid var(--line)}
.progEarly{margin:0 0 10px;padding:12px 14px;border-radius:var(--r2);background:var(--surface);border:1px solid var(--line);color:var(--muted);font-size:14px;line-height:1.5}
@media (prefers-reduced-motion: reduce){#dayPin,.tSplitPart,.mwBar i,.pgChev,.wtLog > summary::after{transition:none}}
.firstShot{border-radius:var(--r2)}

/* Food: one tab, four sections (6 Oct 2026). */
.foodSegs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:2px 0 14px}
.foodSegs button{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:62px;padding:8px 2px;border-radius:var(--r2);
  background:var(--surface);border:1px solid var(--line);color:var(--muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.foodSegs button .uiIcon{width:20px;height:20px;color:var(--muted)}
.foodSegs button.on{color:var(--ink);border-color:var(--accent);background:var(--raised)}
.foodSegs button.on .uiIcon{color:var(--accent)}

/* Meal prep. */
.prepForm h3{margin-top:0}
.prepQ{margin:14px 0 6px;font-size:14px;font-weight:650;color:var(--ink)}
.prepHint{margin:6px 0 0;font-size:12.5px;color:var(--dim)}
.prepDays{flex-wrap:wrap}
/* Even buttons for days, dishes and snacks (7 Oct 2026, Lance: "better sizing to match the rest of page"). */
.eoSorts.prepGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.eoSorts.prepGrid.prepThree{grid-template-columns:repeat(3,minmax(0,1fr))}
.eoSorts.prepGrid .chip{min-height:42px;padding:8px 6px;font-size:14px;text-align:center;justify-content:center}
.eoSorts.prepGrid .chip .uiIcon{display:none}      /* the highlight says it; a tick pushed "2 dishes" onto two lines */
/* Your recipes for a prep: a filtered list that stays inside the page. */
.prepPicker{margin-top:10px}
.prepFilter .chip span{margin-left:6px;font-size:12px;color:var(--dim)}
.prepPicker .ktFind{margin-top:8px}
.prepPick{list-style:none;margin:8px 0 0;padding:0;max-height:340px;overflow-y:auto;border:1px solid var(--line-soft);border-radius:var(--r3)}
.prepPick li + li{border-top:1px solid var(--line-soft)}
.ppRow{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 12px;background:none;border:0;
  color:var(--ink);text-align:left;cursor:pointer}
.ppRow.on{background:rgb(var(--accent-rgb) / .12)}
.ppRow:disabled{opacity:.45;cursor:default}
.ppName{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ppName b{font-size:14.5px;font-weight:650;overflow-wrap:anywhere}
.ppName small{font-size:12.5px;color:var(--muted)}
.ppTick{flex:none;width:22px;color:var(--accent)}
.prepDays .chip,.prepForm .eoSorts .chip{background:var(--raised);color:var(--muted);border:1px solid var(--line);cursor:pointer}
.prepUse{margin-top:12px}
.prepUse summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--accent)}
.prepForm .primary{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:8px}
.prepForm .primary .uiIcon{color:inherit}
.prepTabs{margin:4px 0 12px}
.prepDay.today{border-color:var(--accent)}
.prepFits{margin:4px 0 8px;font-size:13px;color:var(--muted)}
.prepBoxes{list-style:none;margin:0;padding:0}
.prepBoxes li{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line-soft)}
.prepBoxes li.done{opacity:.6}
.pbName{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pbName b{font-size:14.5px}
.pbName small{font-size:12.5px;color:var(--muted)}
.pbName .pbFrozen{color:var(--ink)}
.pbLog{width:auto;min-height:40px;padding:0 16px}
.pbDone{font-size:12.5px;font-weight:600;color:var(--accent)}
.prepSafe{display:flex;gap:8px;align-items:flex-start;margin:8px 0;padding:10px 12px;border-radius:var(--r2);background:var(--raised);
  font-size:13px;line-height:1.45;color:var(--ink)}
.prepSafe .uiIcon{flex:none;color:var(--accent)}
.prepSplit{list-style:none;margin:0;padding:0}
.prepSplit li{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px solid var(--line-soft);font-size:13px}
.prepSplit li span{color:var(--muted);text-align:right}
.prepEnd{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.prepEnd .ghost{display:flex;align-items:center;justify-content:center;gap:8px}
.prepToday{margin:14px 0 4px}
.prepToday .quickHead .uiIcon{width:17px;height:17px;margin-right:6px;vertical-align:-3px;color:var(--accent)}
.prepTodayBtn{display:flex;align-items:center;gap:12px;width:100%;margin-top:8px;padding:12px 14px;border-radius:var(--r3);
  background:var(--surface);border:1px solid var(--accent);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.prepTodayBtn > span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:2px}
.prepTodayBtn small{font-size:12.5px;color:var(--muted)}

/* Ask: a question bar that answers in cards. */
.askBar{display:flex;align-items:center;gap:8px;margin:4px 0 12px;padding:6px 6px 6px 14px;border-radius:var(--r3);
  background:var(--surface);border:1px solid var(--line)}
.askBar .uiIcon{color:var(--muted);flex:none}
.askBar input{flex:1;min-width:0;min-height:44px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:16px}
.askBar input:focus{outline:none}
.askSend{width:auto;min-height:44px;padding:0 18px}
.askChips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.askChips .chip{background:var(--raised);color:var(--ink);border:1px solid var(--line);text-align:left;cursor:pointer}
.askQA{margin-bottom:14px}
.askYou{margin:0 0 6px;font-size:14px;color:var(--muted)}
.askYou::before{content:"You asked: ";color:var(--dim)}
.askCard{padding:14px 16px;border-radius:var(--r3);background:var(--surface);border:1px solid var(--line)}
.askCard p{margin:6px 0 0;font-size:14.5px;line-height:1.5}
.askCard.decline{border-color:var(--line)}
.askTitle{display:block;font-size:13px;font-weight:600;color:var(--muted)}
.askFig{display:block;margin-top:4px;font-size:30px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.askFig small{font-size:15px;color:var(--muted);font-weight:600}
.askLines{margin:8px 0 0;padding-left:18px;font-size:13.5px;color:var(--muted)}
.askRows{list-style:none;margin:8px 0 0;padding:0}
.askRows li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line-soft);font-size:14px}
.askRows li button{display:flex;justify-content:space-between;gap:10px;width:100%;background:none;border:0;padding:0;min-height:0;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.askRows small{display:block;font-size:12px;color:var(--dim)}
.askRows b{font-variant-numeric:tabular-nums;white-space:nowrap}
.askNote{color:var(--muted);font-size:13px}
.askHelp{color:var(--ink);font-size:13.5px}
.askGo{margin-top:12px;width:100%}
.askWait{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:var(--muted)}
.askNotes ul{list-style:none;margin:8px 0 0;padding:0}
.askNotes li{padding:8px 0;border-top:1px solid var(--line-soft)}
.askNotes li p{margin:0;font-size:14px}
.askNotes li small{font-size:12px;color:var(--dim)}
.askNew{display:inline-block;margin-bottom:4px;padding:1px 8px;border-radius:var(--pill);font-size:11.5px;font-weight:700;
  background:var(--raised);border:1px solid var(--accent);color:var(--ink)}
.prepDay h3,.prepForm h3,#kitchen .weekBox > h3{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}
.prepDay h3 .progAvg,#kitchen .weekBox > h3 .progAvg{margin-left:auto}

/* Header buttons that say what they are (6 Oct 2026). */
.hdrAcct{box-shadow:var(--lift-1);transition:transform .15s ease,border-color .15s ease}
.hdrAcct:active{transform:scale(.94)}
.hdrTargets .tRing{width:26px;height:26px;transform:rotate(-90deg)}
.hdrTargets .tRing circle{fill:none;stroke-width:3.4;stroke-linecap:round}
.hdrTargets .tr-p{stroke:var(--split-p)}
.hdrTargets .tr-c{stroke:var(--split-c)}
.hdrTargets .tr-f{stroke:var(--split-f)}
.hdrTargets .tr-dot{fill:var(--ink);stroke:none}
.hdrMe{padding:3px}
.hdrInitial{width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.hdrInitial svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hdrInitial.hasInitial{background:linear-gradient(135deg,var(--beam),var(--accent));color:var(--on-accent);font-size:17px;font-weight:700}
.hdrTools .hdrMe.on{border-color:var(--accent);box-shadow:0 0 0 2px rgb(var(--accent-rgb) / .35)}
.hdrTools .hdrTargets.on{border-color:var(--accent)}

/* Help, one tap away on every screen (6 Oct 2026). */
.helpLink{display:inline-flex;align-items:center;gap:6px;width:auto;min-height:36px;margin:6px 0 2px;padding:0 4px;
  background:none;border:0;color:var(--muted);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer}
.helpLink .uiIcon{width:17px;height:17px;color:var(--accent)}
.helpLink:active{color:var(--ink)}
.helpSteps{margin:10px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.helpSteps li{font-size:14.5px;line-height:1.5;color:var(--ink)}
.helpMore{margin:16px 0 0;font-size:14px;color:var(--muted)}
.helpMore .linkBtn{display:inline;width:auto;min-height:0;padding:0;font-size:14px}
.wtDot{fill:var(--ink);opacity:.9;stroke:var(--surface);stroke-width:3;vector-effect:non-scaling-stroke}
.hdrTargets .tRing{width:30px;height:30px}.hdrTargets .tRing circle{stroke-width:4}

/* Selected means SELECTED (6 Oct 2026, Lance: "the button highlights are too weak", and on meal prep a later rule
   made a chosen day look exactly like the rest). One strong state for every chip, segment and toggle: a green fill,
   a firm green edge, bold ink text. Declared last and specific enough to win over every screen's own chip rule. */
.chip.on,.eoSorts .chip.on,.prepForm .eoSorts .chip.on,.ktFilter .chip.on,.ktTag .chip.on,.askChips .chip.on,.wishChip.on{
  background:rgb(var(--accent-rgb) / .2);color:var(--ink);border-color:var(--accent);font-weight:700;
  box-shadow:inset 0 0 0 1px var(--accent)}
.chip.on .uiIcon,.chip.on .mealIcon{color:var(--accent)}
.seg button.on,.acts button.on,.foodSegs button.on,.prepTabs button.on{background:rgb(var(--accent-rgb) / .18);color:var(--ink);
  border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);font-weight:700}
.wishChip.on button{color:var(--ink);font-weight:700}
.chip .uiIcon{width:15px;height:15px;margin-right:5px;vertical-align:-3px}
.prepForm .eoSorts .chip{min-height:40px;font-size:14px}
.prepUsing{display:flex;align-items:center;gap:6px;margin:8px 0 2px;font-size:13.5px;font-weight:600;color:var(--ink)}
.prepUsing .uiIcon{width:16px;height:16px;color:var(--accent)}

/* Meal ideas (6 Oct 2026). */
.genQ{margin:12px 0 6px;font-size:14px;font-weight:650;color:var(--ink)}
.genAims,.genStyles{flex-wrap:wrap}
.genAims .chip,.genStyles .chip{background:var(--raised);color:var(--muted);border:1px solid var(--line);cursor:pointer;min-height:40px;font-size:14px}
.genAims .chip small{display:block;font-size:11px;font-weight:500;color:var(--dim);margin-top:1px}
.genAims .chip.on small{color:var(--muted)}
.genAims .chip:disabled{opacity:.45}
.genAt{margin:6px 0 0;font-size:13px;color:var(--muted)}
.genFinish{display:flex;align-items:flex-start;gap:8px;margin:8px 0;padding:10px 12px;border-radius:var(--r2);background:rgb(var(--accent-rgb) / .12);font-size:13.5px;line-height:1.45}
.genFinish .uiIcon{flex:none;color:var(--accent)}
.ideaHead{display:flex;align-items:center;gap:10px}
.ideaHead .rIcon{flex:none}
.dishIcon{width:22px;height:22px;margin:0}
.askSource{margin:10px 0 0;padding-top:8px;border-top:1px solid var(--line-soft);font-size:12px;color:var(--dim)}

/* Ask switched off (6 Oct 2026): Targets takes its place in the bar. */
body.eatOn .navbar .askOnly{display:none}
body.eatOn.askOn .navbar .askOnly{display:flex}
body.eatOn:not(.askOn) .navbar .noAsk{display:flex}
.nsheetTop{margin-top:14px}
.topFoods{list-style:none;margin:6px 0 0;padding:0}
.topFoods li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid var(--line-soft);font-size:14px}
.topFoods b{white-space:nowrap;font-variant-numeric:tabular-nums}

/* The header carries the day (6 Oct 2026). The old "‹ Today ›" row is gone in the new layout; on another day a slim
   bar says which, with the arrows and a way back. */
body.eatOn .dayNavOld{display:none}
.pastBar{display:flex;align-items:center;gap:6px;margin:0 0 12px;padding:6px 8px;border-radius:var(--r2);
  background:rgb(var(--accent-rgb) / .12);border:1px solid rgb(var(--accent-rgb) / .35)}
.pastBar .navBtn{min-height:36px;width:36px;padding:0}
.pastDay{flex:1;text-align:center;font-size:15px;font-weight:650;color:var(--ink)}
.pastToday{width:auto;min-height:36px;padding:0 12px;border-radius:var(--pill);background:var(--raised);border:1px solid var(--line);
  color:var(--accent);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.remindKinds{margin:6px 0 0 28px;display:flex;flex-direction:column;gap:2px}
/* Account: explanations behind "Why?" (6 Oct 2026). */
.acctWhy{margin-top:6px}
.acctWhy summary{display:inline-flex;align-items:center;min-height:36px;cursor:pointer;color:var(--accent);font-size:14px;font-weight:600;list-style:none}
.acctWhy summary::-webkit-details-marker{display:none}
.acctWhy summary::after{content:"";width:7px;height:7px;margin-left:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.acctWhy[open] summary::after{transform:rotate(-135deg)}
.prepCookDay{display:flex;align-items:center;gap:8px;margin:16px 2px 4px;font-size:16px;font-weight:700;color:var(--ink)}.prepCookDay .uiIcon{color:var(--accent)}

/* Accessibility pass (6 Oct 2026): every control at least 44 px to a thumb (Apple's guideline), without changing how
   it looks. The visible size stays; an invisible margin round it takes the tap, as .chip already does. */
.helpLink,.pgUnstar,.acctWhy summary{min-height:44px}
/* .pcDrop and .wtReset are left out on purpose: both are already position:absolute, and making them relative here
   (6 Oct 2026) dropped the preset bin under its card and the weight Reset under the chart. */
.pastBar .navBtn,.pastToday,.wishChip button{position:relative}
.pastBar .navBtn::after,.pastToday::after,.pcDrop::after,.wtReset::after,.wishChip button::after{content:"";position:absolute;inset:-4px}
.pcDrop{width:40px;height:40px}
/* Contrast (6 Oct 2026): --dim is 3.97:1 on a raised surface, under the 4.5:1 text minimum, so captions sitting on
   raised chips use --muted (6.79:1) instead. */
.genAims .chip small,.ktFilter .chip span,.wtScale{color:var(--muted);fill:var(--muted)}
/* Targets: weight is behind a tap, never the headline (6 Oct 2026). */
.calWeight{margin-top:6px}
.calWeight summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;color:var(--accent);font-size:13.5px;font-weight:600;list-style:none}
.calWeight summary::-webkit-details-marker{display:none}
.calWeight p{margin:2px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}

/* About you, open: Hide in its header and its own Save at its foot (6 Oct 2026) */
#tAbout .aboutTop{display:flex;align-items:center;justify-content:space-between;gap:12px}
#tAbout .aboutTop .tHead{margin:0}
#tAbout .aboutTop + .seg{margin-top:12px}
.aboutHide{background:transparent;border:0;color:var(--accent);font:inherit;font-size:13px;font-weight:600;
  min-height:44px;padding:0 4px;cursor:pointer}
.tAboutSave{width:100%;margin-top:16px}
.aboutSaved{display:inline-flex;align-items:center;gap:4px;margin-left:10px;font-size:12px;font-weight:600;color:var(--accent)}
.aboutSaved .uiIcon{width:14px;height:14px}
/* "Daily targets" and its grams / % switch share one line, not a row each with a gap between (6 Oct 2026) */
.tTargetsHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 10px}
.tTargetsHead .tHead{margin:0}
.tTargetsHead .viewRow{margin:0}
.seg.tModes{margin:0 0 12px}
.seg.tModes button{min-height:40px;padding:8px 6px;font-size:14px;font-weight:600}

/* Meal ideas: How big and Anything in particular as icon tiles in a grid (6 Oct 2026) */
.genGrid{display:grid;gap:8px;margin:0 0 4px}
.genAims{grid-template-columns:repeat(3,minmax(0,1fr))}
.genStyles{grid-template-columns:repeat(2,minmax(0,1fr))}
.genTile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  min-height:84px;padding:10px 8px;border-radius:var(--r2);background:var(--raised);border:1px solid var(--line);
  color:var(--ink);font:inherit;font-size:14px;font-weight:600;text-align:center;cursor:pointer}
.genTile .gtIcon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;color:var(--muted)}
.genTile .gtIcon .uiIcon{width:24px;height:24px}
.genTile .gtText{display:flex;flex-direction:column;gap:1px;min-width:0}
.genTile small{font-size:12px;font-weight:500;color:var(--muted)}
.genTile .gtTick{position:absolute;top:6px;right:6px;color:var(--accent);display:flex}
.genTile .gtTick .uiIcon{width:16px;height:16px}
.genTile.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:rgb(var(--accent-rgb) / .12)}
.genTile.on .gtIcon{color:var(--accent)}
.genTile:disabled{opacity:.45;cursor:default}
/* One bowl at three sizes */
.gt-small .gtIcon .uiIcon{width:17px;height:17px}
.gt-medium .gtIcon .uiIcon{width:23px;height:23px}
.gt-large .gtIcon .uiIcon{width:30px;height:30px}
/* Finish my day and Surprise me take a whole row, icon beside the words */
.genTile.gtWide{grid-column:1/-1;flex-direction:row;justify-content:flex-start;gap:12px;min-height:58px;padding:10px 14px;text-align:left}
.genTile.gt-finish{order:-1}
.genTile.gt-any{order:1}
/* Anything in particular: icon beside the word, two to a row; an odd last one takes the row */
.genTile.gtRow{flex-direction:row;justify-content:flex-start;gap:10px;min-height:52px;padding:8px 12px;text-align:left}
.genTile.gtRow .gtIcon{width:28px;height:28px}
.genTile.gtRow .gtIcon .uiIcon{width:21px;height:21px}
.genStyles .genTile:last-child:nth-child(odd){grid-column:1/-1}
.eoSorts.genTypes .chip{border-radius:var(--r2);min-height:48px}
.genTile.on{background:rgb(var(--accent-rgb) / .2);font-weight:700}

/* Ingredients as rows: kind icon tinted by its macro, amount right, a line as long as its share of the dish (6 Oct 2026) */
.ingList{list-style:none;margin:12px 0 4px;padding:0;display:flex;flex-direction:column;gap:6px}
.ing{position:relative;display:flex;align-items:center;gap:12px;padding:9px 12px 11px;border-radius:var(--r2);
  background:var(--raised);border:1px solid var(--line-soft);overflow:hidden}
.ingIcon{flex:none;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:var(--r1);
  color:var(--muted);background:rgb(var(--muted-rgb) / .12)}
.ingIcon .uiIcon{width:20px;height:20px}
.ing-p .ingIcon{color:var(--split-p);background:color-mix(in srgb, var(--split-p) 16%, transparent)}
.ing-c .ingIcon{color:var(--split-c);background:color-mix(in srgb, var(--split-c) 16%, transparent)}
.ing-f .ingIcon{color:var(--split-f);background:color-mix(in srgb, var(--split-f) 16%, transparent)}
.ingName{flex:1;min-width:0;font-size:14.5px;font-weight:550;color:var(--ink);line-height:1.3}
.ingName small{display:block;margin-top:2px;font-size:12px;font-weight:500;color:var(--muted)}
.ingAmt{flex:none;display:flex;flex-direction:column;align-items:flex-end;text-align:right;font-variant-numeric:tabular-nums}
.ingAmt b{font-size:14.5px;font-weight:650;color:var(--ink)}
.ingAmt small{font-size:12px;color:var(--muted)}
.ingShare{position:absolute;left:0;bottom:0;height:3px;border-radius:0 3px 3px 0;background:var(--muted);opacity:.55}
.ing-p .ingShare{background:var(--split-p)} .ing-c .ingShare{background:var(--split-c)} .ing-f .ingShare{background:var(--split-f)}
/* The dish name sits beside its icon, not pushed to the far edge */
.ideaHead{justify-content:flex-start}
.ideaCard ul.ingList,.weekBox ul.ingList,ul.ingList{padding:0;line-height:normal}

/* Food cards under a photographed meal (6 Oct 2026): a kind icon tinted by its macro, the name with its database
   match under it, calories and amount on the right; macros in their own colours over a split bar; a softer amount
   control; Change and Vitamins and minerals side by side in a footer. */
.item{padding:14px 14px 6px}
.item .itemHead{align-items:center;gap:12px}
.item .itemHead .ingIcon{width:40px;height:40px;border-radius:var(--r2)}
.item .itemHead .ingIcon .uiIcon{width:22px;height:22px}
.itemTitle{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.itemTitle b{font-size:16.5px;line-height:1.25}
.itemTitle .src{margin:0;font-size:12px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.item .kc{align-self:flex-start;margin-top:2px;font-size:14px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.itemMacros{margin-top:12px;gap:6px 14px}
.itemMacros span{font-size:12.5px}
.itemMacros b{font-size:15px}
.itemMacros .mP b{color:var(--split-p)} .itemMacros .mC b{color:var(--split-c)} .itemMacros .mF b{color:var(--split-f)}
.itemMacros .itemSplit{flex-basis:100%;display:flex;gap:2px;height:5px;margin-top:2px;border-radius:3px;overflow:hidden}
.itemSplit i{display:block;min-width:2px}
.item .stepper{display:inline-flex;gap:0;margin-top:14px;padding:3px;border-radius:var(--r2);background:var(--surface);border:1px solid var(--line-soft)}
.item .stepBtn{background:transparent;border:0;border-radius:var(--r2);color:var(--ink)}
.item .stepBtn:active{background:var(--raised)}
.item button.stepG{border:0;min-width:80px;background:rgb(var(--muted-rgb) / .10);border-radius:var(--r1)}
.item .stepper.checkAmount button.stepG{box-shadow:inset 0 0 0 1px var(--amber)}
.item .resetBtn{margin-left:4px}
.itemFoot{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;margin-top:10px;padding-top:2px;border-top:1px solid var(--line-soft)}
.itemFoot details.quiet{margin-top:0}
/* min-width 0: a flex item will not shrink below its content's natural width, and the open Change panel's typing box
   pushed it 16px past the card's right edge (9 Oct 2026, Lance's photo of eel nigiri). */
.itemFoot details{min-width:0;max-width:100%}
.itemFoot details[open]{flex-basis:100%}
.itemFoot .fatRemove{flex-basis:100%}
.item .stepBtn .uiIcon{width:20px;height:20px;stroke:var(--ink);stroke-width:2.2}
.item .kc{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.item .kc b{font-size:15px;font-weight:650;color:var(--ink)}
.item .kc small{font-size:12.5px;font-weight:500;color:var(--muted)}
.nutriIcon .uiIcon{width:15px;height:15px;color:var(--muted)}

/* ===== Brand consistency pass (7 Oct 2026) =====
   Lance: "look across the entire app and ensure we have brand consistency ... I really like how we've been upgrading
   all the graphics, so I don't want to remove those". So the newer graphics are the standard and the older screens
   come up to them. The rules, also written in _brand/README.md under "Shapes, surfaces and graphics":
   - corners: r1 small marks, r2 buttons/tiles/rows/inputs, r3 cards inside a card, r4 the screen's main cards and sheets
   - containers (cards, rows) have SOFT outlines; controls keep --line, because a control's edge must reach 3:1
   - one secondary button: a raised fill, --line edge, ink text, an icon where one says what it does
   - one selected state (the strong one already on chips and tiles), one informational tint (accent at 12%) */

/* The secondary button, everywhere .ghost was a transparent box with a grey outline. */
.ghost{background:var(--raised);border:1px solid var(--line);color:var(--ink);border-radius:var(--r2);font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}
.ghost .uiIcon{width:18px;height:18px;color:var(--accent)}
.ghost:active{background:var(--surface)}
/* Its quieter forms keep their own weight. */
.ghost.soft{background:var(--raised);border-color:var(--line-soft);color:var(--ink)}
.ghost.soft:active{background:var(--surface)}
.ghost.plain{background:transparent;border-color:transparent}
.ghost.risk{background:var(--raised)}
.ghost.risk.quiet{background:transparent}
label.ghost{cursor:pointer}

/* Containers: soft outlines, so the controls inside them are what stands out. */
.weekBox,.progTile,.presetCard,.eoDish,.infoPanel,.acctCard,.firstRun,.nsheet .topFoods li{border-color:var(--line-soft)}

/* Today's meals: rows like the food cards, tinted by each meal's main macro, with the same split bar. */
#today .dayline{width:100%;margin:0 0 8px;padding:12px;border:1px solid var(--line-soft);border-radius:var(--r2);
  background:var(--raised)}
#today .dayline:active{background:var(--surface)}
#today .dayThumb{flex:0 0 44px;width:44px;height:44px;border-radius:var(--r2);background:rgb(var(--muted-rgb) / .12);border:0}
#today .dayThumb svg{stroke:var(--muted)}
#today .dayline.ing-p .dayThumb{background:color-mix(in srgb, var(--split-p) 16%, transparent)}
#today .dayline.ing-p .dayThumb svg{stroke:var(--split-p)}
#today .dayline.ing-c .dayThumb{background:color-mix(in srgb, var(--split-c) 16%, transparent)}
#today .dayline.ing-c .dayThumb svg{stroke:var(--split-c)}
#today .dayline.ing-f .dayThumb{background:color-mix(in srgb, var(--split-f) 16%, transparent)}
#today .dayline.ing-f .dayThumb svg{stroke:var(--split-f)}
#today .dayline .itemSplit{grid-column:1/-1;display:flex;gap:2px;height:4px;width:100%;margin-top:2px;border-radius:3px;overflow:hidden}
#today .dayline .itemSplit i{display:block;min-width:2px}

/* Sheets: the close button is a quiet round control like the rest, not a green ring. */
.nsheetClose{background:var(--raised);border:1px solid var(--line-soft);border-radius:var(--pill);color:var(--ink)}
.nsheetClose:active{background:var(--surface)}
/* "Highest in" lists use the ingredient rows. */
.nsheet ul.topFoods{list-style:none;padding:0;margin:10px 0 4px;display:flex;flex-direction:column;gap:6px}
.nsheet ul.topFoods li.ing{border-bottom:1px solid var(--line-soft)}

/* Account: the title sits with the avatar, reading left to right like every other header. */
.acctHead > div{flex:1;text-align:left}

/* Eat out: its opening card leads with an icon, like the cards beside it. */
.eoLead{display:flex;align-items:flex-start;gap:12px}
.eoLead .ingIcon{margin-top:2px}

#today .dayMacros .itemSplit{flex-basis:100%}
/* The meal row's macro line spans the row, so its split bar does too. */
#today .dayline .dayMacros{width:100%}
/* Logging onto a past day: its photo pickers are secondary buttons like every other. */
.pick{background:var(--raised);border:1px solid var(--line);color:var(--ink);font-weight:600;display:flex;align-items:center;
  justify-content:center;gap:8px}
.pick:active{background:var(--surface)}
.pick .uiIcon{width:18px;height:18px;color:var(--accent)}
#today .dayline > .dayMacros{flex-wrap:wrap}

/* The day swipe (7 Oct 2026): the neighbouring day rides beside the real one while a thumb drags. */
html,body{overflow-x:clip}
.swipePeek{position:absolute;z-index:1;pointer-events:none;will-change:transform}
#today,#progressView,#calendar{touch-action:pan-y}
/* The day bar on Today too, quieter than the "you are on another day" bar of a past day. */
.pastBar.isToday{background:transparent;border-color:var(--line-soft)}
/* Every day the same slim bar (8 Oct 2026, Lance: the "Back to today" pill was "massive and bulky"): the day, its
   date under it, and on another day "Back to today" as a small link beside the date. The link is what says you are
   not on today; the Today tab goes back as well. */
.pastBar{background:transparent;border-color:var(--line-soft)}
.pastBar .pastDay{display:flex;flex-direction:column;align-items:center;line-height:1.2}
.pastBar .pastDay small{font-size:12px;font-weight:500;color:var(--muted)}
.pastBar .pastToday{position:relative;display:inline;min-height:0;width:auto;padding:0;margin:0;border:0;border-radius:0;
  background:none;color:var(--accent);font:inherit;font-weight:650;cursor:pointer}
.pastBar .pastToday::after{content:"";position:absolute;inset:-14px -8px}

/* The paid version: the plan sheet and the trial notice (7 Oct 2026; the sheet and the Account card redesigned 9 Oct
   2026). Neither plan is chosen for the person, and the amount actually charged is the biggest figure on each tile
   (never a per-month number bigger than it). The saving is a tag, a fact, never a pre-selection. */
/* Taller than the info sheets, so both plans show without scrolling on a phone. */
.nsheet.planSheet{max-height:92vh;max-height:92dvh}
.planSheet .planLead{margin:2px 0 18px;font-size:15px;line-height:1.45;color:var(--ink)}
.planIncl{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:10px}
.planIncl li{display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.35;color:var(--ink)}
.planIcon{flex:0 0 34px;height:34px;display:grid;place-items:center;border-radius:var(--r2);
  background:rgb(var(--accent-rgb) / .12);color:var(--accent)}
.planIcon .uiIcon{width:18px;height:18px}
.planTiles{display:grid;gap:10px;margin:0 0 12px}
.planTile{display:grid;gap:4px;width:100%;padding:14px 16px;border-radius:var(--r3);background:var(--raised);
  border:1px solid var(--line);color:var(--ink);text-align:left;font:inherit;cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.planTile:hover,.planTile:focus-visible{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.planTile:active{transform:scale(.99)}
.planTile:disabled{opacity:.6}
.planTileTop{display:flex;align-items:center;justify-content:space-between;gap:8px}
.planName{font-size:13px;font-weight:650;letter-spacing:.02em;color:var(--muted);text-transform:uppercase}
.planTag{padding:3px 10px;border-radius:var(--pill);background:rgb(var(--accent-rgb) / .2);color:var(--ink);
  font-size:12.5px;font-weight:700}
.planPrice{font-size:26px;font-weight:750;line-height:1.15;letter-spacing:-.01em}
.planTileFoot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted)}
.planGo{color:var(--accent);font-weight:700;font-size:14px;white-space:nowrap}
.planFounder{margin:0 0 14px;padding:12px 14px;border-radius:var(--r3);background:rgb(var(--accent-rgb) / .12);
  border:1px solid var(--line-soft)}
.planFounder b{display:block;margin-bottom:4px;font-size:14px}
.planFounder p{margin:0;font-size:13.5px;line-height:1.45;color:var(--ink)}
.planFree{margin:0 0 12px;padding:10px 14px;border-radius:var(--r2);background:rgb(var(--accent-rgb) / .12);
  font-size:14px;line-height:1.45;color:var(--ink)}
.planSecure{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:13px;color:var(--ink)}
.planSecure .uiIcon{flex:0 0 16px;width:16px;height:16px;color:var(--accent)}
.planSmall{margin:0 0 6px;font-size:12.5px;color:var(--muted);line-height:1.45}
.planLater{display:block;margin:0 auto}
.planCard .planCardHead{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.planCard .planCardHead h3{flex:1;min-width:0;margin:0}
.planBadge{flex:0 0 34px;height:34px;display:grid;place-items:center;border-radius:var(--r2);
  background:rgb(var(--accent-rgb) / .12);color:var(--accent)}
.planBadge .uiIcon{width:18px;height:18px}
.planPill{padding:3px 10px;border-radius:var(--pill);border:1px solid var(--line);font-size:12.5px;font-weight:650;
  white-space:nowrap;color:var(--ink)}
.planPill.good{background:rgb(var(--accent-rgb) / .2);border-color:transparent}
.planPill.bad{background:rgb(var(--red-rgb) / .16);border-color:transparent}
.planCard > p{margin:0 0 12px;font-size:14px;line-height:1.45;color:var(--muted)}
.planCardGo{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}
.refCard .refStats{margin:-4px 0 12px;font-size:13.5px;color:var(--ink)}
.refCard .refSaid{margin:10px 0 0;font-size:13.5px;color:var(--muted);overflow-wrap:anywhere}
.planCardGo .uiIcon{width:18px;height:18px;color:var(--accent)}
.trialNotice{margin:0 0 12px;padding:14px;border-radius:var(--r3);background:rgb(var(--accent-rgb) / .12);
  border:1px solid var(--line-soft)}
.trialNotice p{margin:0 0 8px;font-size:14px;line-height:1.45}
.trialNotice .tnHead{font-weight:650;font-size:15px}
.tnActs{display:flex;gap:8px}
.tnActs .ghost{flex:1}
.planFounder{margin:10px 0 0;padding:10px 12px;border-radius:var(--r2);background:rgb(var(--accent-rgb) / .12);font-size:13.5px;line-height:1.45}

/* A food's own picture from the meal photo (7 Oct 2026, research A16): the crop sits over the icon, ringed in its
   macro's colour so the row still says protein, carbs or fat at a glance. Until it is drawn, the icon shows. */
.ingIcon.ingCrop{position:relative;overflow:hidden}
.ingIcon.ingCrop canvas{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;opacity:0;transition:opacity .2s ease}
.ingIcon.ingCrop.drawn canvas{opacity:1}
.ingIcon.ingCrop.drawn{box-shadow:0 0 0 2px rgb(var(--muted-rgb) / .5)}
.ing-p .ingIcon.ingCrop.drawn{box-shadow:0 0 0 2px var(--split-p)}
.ing-c .ingIcon.ingCrop.drawn{box-shadow:0 0 0 2px var(--split-c)}
.ing-f .ingIcon.ingCrop.drawn{box-shadow:0 0 0 2px var(--split-f)}
@media (prefers-reduced-motion: reduce){.ingIcon.ingCrop canvas{transition:none}}

/* A button asking "are you sure" (confirmTap, 7 Oct 2026): the second tap does it. */
button.asking{border-color:var(--red) !important;color:var(--red) !important;background:rgb(var(--red-rgb) / .1) !important}

/* Weight, 7 Oct 2026: how the line is drawn, kg or % change, the day a weigh-in is for, and a landscape view. */
/* One tidy row under the chart (8 Oct 2026): two small segmented controls and a full-screen icon. */
.wtControls{display:flex;align-items:center;gap:8px;margin-top:10px}
.wtSeg{gap:0;border:1px solid var(--line);border-radius:var(--r2);overflow:hidden;background:var(--raised)}
.wtSeg button{min-height:36px;padding:0 10px;border:0;border-radius:0;background:transparent;font-size:13px;font-weight:600;
  color:var(--muted);box-shadow:none}
.wtSeg button + button{border-left:1px solid var(--line)}
.wtSeg button.on{background:rgb(var(--accent-rgb) / .2);color:var(--ink);box-shadow:none}
.wtControls .wtSeg:first-child{flex:1.7}
.wtControls .wtSeg:nth-child(2){flex:.8}
.wtLandscape{flex:0 0 38px;width:38px;height:38px;min-height:38px;padding:0;display:flex;align-items:center;justify-content:center;
  background:var(--raised);border:1px solid var(--line);border-radius:var(--r2);color:var(--accent);cursor:pointer}
.wtLandscape .uiIcon{width:18px;height:18px}
.wtJoin{fill:none;stroke:var(--ink);stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round;opacity:.8}
.wtJoin.thin{stroke-width:1.2;opacity:.45}
.wtZero{stroke:var(--line);stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.wtDayRow{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.wtDayRow input{height:42px;padding:0 10px;border-radius:var(--r2);border:1px solid var(--line);background:var(--raised);color:var(--ink);font:inherit}
.wtDayRow span{font-size:13px;color:var(--muted)}
.wtEdit{display:flex;flex:1;justify-content:space-between;gap:10px;background:none;border:0;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
.wtFull{position:fixed;inset:0;z-index:60;background:var(--bg);display:flex;align-items:center;justify-content:center}
.wtFullIn{flex:0 0 auto;width:100vw;height:100vh;height:100dvh;padding:14px 18px;display:flex;flex-direction:column;gap:8px;box-sizing:border-box}
/* Turned for a phone held upright. flex:0 0 auto (8 Oct 2026): the panel is as long as the screen is TALL, and as a
   flex item it was shrunk to the screen's width before being turned, so the chart filled about 40% of the phone and
   the buttons wrapped into rows. dvh: the visible height, not counting the browser's own bars. */
@media (orientation:portrait){.wtFullIn{width:100vh;width:100dvh;height:100vw;transform:rotate(90deg)}}
.wtFullHead{display:flex;align-items:center;gap:12px}
.wtFullHead .wtControls{margin:0;flex:1;max-width:340px}
.wtFullPlot{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.wtFullPlot .wtPlot{width:100%;height:100%;max-height:100%}

/* A weigh-in on the calendar (7 Oct 2026): a small scale beside the day's number. */
.cellDay{position:relative}
.cellWt{display:inline-flex;margin-left:3px;vertical-align:1px;color:var(--split-f)}
.cellWt .uiIcon{width:11px;height:11px}

/* Protein, carbs and fat together (7 Oct 2026). */
.seg.allAs{margin:4px 0 10px}
.seg.allAs button{min-height:36px;font-size:13.5px}
.allKey{display:flex;gap:14px;margin:8px 0 0;font-size:12.5px;color:var(--muted)}
.allKey i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}

/* Progress: every vitamin and mineral at once (9 Oct 2026). Accent at three strengths, never amber or red: amber is
   only for over, and being under a reference is not an error. The % on each row says it in words too. */
.moLead{margin:6px 0 10px;color:var(--ink);font-size:14px;line-height:1.4}
.moSort{display:inline-flex;margin:0 0 6px}
.moSort button{white-space:nowrap;padding:0 14px}
.moRows{list-style:none;margin:0;padding:0}
.moRows li + li{border-top:1px solid var(--line-soft)}
.moRow{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.4fr) 50px;align-items:center;gap:10px;width:100%;
  min-height:44px;padding:6px 0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--ink);text-align:left;font:inherit}
.moName{font-size:14px;font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.moName small{display:block;margin-top:2px;font-size:12px;font-weight:500;color:var(--muted)}
.moCells{display:grid;gap:3px}
.moCells.many{gap:1px}
.moCell{display:block;height:16px;border-radius:3px;background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
.moCells.many .moCell{border-radius:1px}
.moCell.l1{background:rgb(var(--accent-rgb) / .34);box-shadow:none}
.moCell.lf{box-shadow:none;background:var(--line-soft);opacity:.45}
.moCell.l2{background:rgb(var(--accent-rgb) / .58);box-shadow:none}
.moCell.l3{background:var(--accent);box-shadow:none}
.moPct{font-size:14px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.moKey{margin:10px 0 4px;font-size:12px;line-height:1.9;color:var(--muted)}
.moKey span{white-space:nowrap;margin-right:8px}
.moKey .moCell{display:inline-block;width:12px;height:12px;margin-right:4px;vertical-align:-2px}

/* The sign-in screen inside another app's browser (9 Oct 2026): information, so accent at 12%. */
.lockInApp{margin:14px 0;padding-left:12px;border-left:3px solid var(--amber);color:var(--ink);font-size:15px;
  line-height:1.45;text-align:left}
.lockInApp b{display:block;margin-bottom:4px;color:var(--amber)}

/* ---------- the guided start for targets (14 Oct 2026) ----------
   Built to the brand consistency rules above: tiles are --raised with a --line edge and --r2 corners; selected is the
   accent edge, a 1px inner ring, accent at 20% and ink at 700 with a tick; information is accent at 12%. */
.guide{padding-bottom:24px}
.gStepSay{font-size:13px;color:var(--muted);margin:8px 0 6px;font-weight:550}
.gSteps{display:flex;gap:6px;margin:0 0 18px}
.gSteps i{flex:1;height:4px;border-radius:var(--pill);background:var(--raised)}
.gSteps i.on{background:var(--accent)}
.gQ{font-size:24px;line-height:1.2;margin:14px 0 6px;color:var(--ink);letter-spacing:-.01em;text-wrap:balance}
.gStepSay + .gSteps + .gQ{margin-top:0}
.gLead{color:var(--muted);font-size:15px;line-height:1.45;margin:0 0 18px}
.gTiles{display:grid;gap:10px}
.gTile{display:flex;gap:14px;align-items:flex-start;text-align:left;background:var(--raised);border:1px solid var(--line);
  border-radius:var(--r2);padding:16px;color:var(--ink);font:inherit;width:100%;position:relative}
.gTile .gWords{flex:1;min-width:0}
.gTile b{display:block;font-size:16px;margin-bottom:3px}
.gTile small{display:block;color:var(--muted);font-size:14px;line-height:1.4}
.gTile.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:rgb(var(--accent-rgb) / .20)}
.gTile.on b{font-weight:700}
.gTick{color:var(--accent);flex:0 0 auto}
.gBadge{flex:0 0 auto;width:40px;height:40px;border-radius:var(--r2);background:rgb(var(--accent-rgb) / .12);
  display:grid;place-items:center;color:var(--accent)}
.gBadge.big{width:56px;height:56px}
.gPop{display:inline-block;margin-top:8px;font-size:12px;font-weight:650;color:var(--accent);
  background:rgb(var(--accent-rgb) / .12);border-radius:var(--pill);padding:3px 9px}
.gWhy{margin:16px 0 0;background:rgb(var(--accent-rgb) / .12);border-radius:var(--r2);padding:12px 14px;color:var(--ink);
  font-size:14px;line-height:1.45}
.gWhy b{color:var(--accent)}
.gErr{margin-top:12px}
.gFoot{display:grid;gap:10px;margin-top:24px}
.gFoot .primary,.gFoot .ghost{margin:0;width:100%}
.gCard{padding:16px}
.gHero{margin-top:28px}
.gResult{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r4);padding:18px 16px}
.gBig{font-size:44px;font-weight:800;color:var(--ink);letter-spacing:-.02em;margin:4px 0 0;font-variant-numeric:tabular-nums}
.gBig small{font-size:17px;font-weight:600;color:var(--muted);letter-spacing:0}
.gSplit{display:flex;height:8px;border-radius:var(--pill);overflow:hidden;margin:14px 0 6px}
.gSplit .s-p,.gDot.s-p{background:var(--split-p)}
.gSplit .s-c,.gDot.s-c{background:var(--split-c)}
.gSplit .s-f,.gDot.s-f{background:var(--split-f)}
.gWhat{margin:0;color:var(--muted);font-size:13px}
.gRows{display:grid;gap:8px;margin-top:14px}
.gRow{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--line-soft);
  border-radius:var(--r2);padding:12px 14px}
.gRow b{color:var(--ink);font-size:16px}
.gRow span{display:block;color:var(--muted);font-size:14px;line-height:1.4}
.gDot{width:10px;height:10px;border-radius:50%;margin-top:6px;flex:0 0 auto}
.gAgain{width:100%;margin:0 0 12px;display:flex;align-items:center;justify-content:center;gap:8px}

/* ---------- the face of Plategist in the header (14 Oct 2026) ----------
   Beside the wordmark, never in place of it. The small frosted variant, which is never shown on the same screen as the
   standard dark one: so it steps aside on the first-run Today, where the standard one greets a new person. */
.hdrMascot{position:relative;background:none;border:0;padding:0;margin:0 auto 0 8px;width:44px;min-height:44px;
  display:grid;place-items:center;cursor:pointer}
.hdrMascot img{display:block;width:30px;height:30px}
body:has(#today:not([hidden]) .firstRun) .hdrMascot{display:none}
/* Below it, pointing up: beside it, the header's tools would cover the bubble. */
.mascotSays{position:absolute;left:50%;top:calc(100% + 4px);transform:translateX(-50%);white-space:nowrap;
  background:var(--surface);border:1px solid var(--line);color:var(--ink);font-weight:650;font-size:14px;
  border-radius:var(--r2);padding:6px 12px;pointer-events:none;z-index:30}
.mascotSays::before{content:"";position:absolute;left:50%;top:-6px;width:10px;height:10px;background:var(--surface);
  border-left:1px solid var(--line);border-top:1px solid var(--line);transform:translateX(-50%) rotate(45deg)}
/* Picked up: above everything, no scrolling or text selection while it is held, and a spring home on release. */
.hdrMascot{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.hdrMascot.held{z-index:50;cursor:grabbing}
/* The cards below the header come later in the page and would paint over it, so the header rises while it is held. */
header:has(.hdrMascot.held),header:has(.hdrMascot.home),header:has(.mascotSays:not([hidden])){position:relative;z-index:100}
.hdrMascot.held img{transform:scale(1.15)}
.hdrMascot.home{transition:transform .4s cubic-bezier(.3,1.6,.5,1)}
@media (prefers-reduced-motion: no-preference){
  .hdrMascot.held img{animation:mascotWiggle .28s ease-in-out infinite}
  .hdrMascot.hi img{animation:mascotHop .5s ease-out}
  .hdrMascot.hi .mascotSays{animation:mascotPop .22s ease-out}
}
@keyframes mascotHop{0%{transform:translateY(0)}35%{transform:translateY(-5px)}70%{transform:translateY(0)}85%{transform:translateY(-1.5px)}100%{transform:translateY(0)}}
@keyframes mascotPop{from{opacity:0;transform:translateX(-50%) translateY(-4px) scale(.85)}to{opacity:1;transform:translateX(-50%) scale(1)}}
@keyframes mascotWiggle{0%,100%{transform:scale(1.15) rotate(-10deg)}50%{transform:scale(1.15) rotate(10deg)}}

/* A meal whose photos were read and not kept (15 Oct 2026): information, so accent at 12%, where the photo would be. */
.photoGone{display:flex;gap:10px;align-items:flex-start;margin:0 0 14px;padding:12px 14px;border-radius:var(--r2);
  background:rgb(var(--accent-rgb) / .12);color:var(--ink);font-size:14px;line-height:1.45}
.photoGone > .uiIcon{flex:0 0 auto;color:var(--accent);margin-top:1px}
.photoGoneLink{display:inline;background:none;border:0;padding:0;min-height:0;width:auto;font:inherit;color:var(--accent);
  text-decoration:underline;text-underline-offset:3px}

/* How much of the meal was eaten (18 Oct 2026). */
.shareRow{margin:10px 0 14px}
/* How much was there: everyday serves in place of - and + (22 Oct 2026). */
.serves{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.servesHead{margin:0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
.servePicks{display:flex;flex-wrap:wrap;gap:8px}
.servePick{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:44px;padding:8px 13px;
  border-radius:var(--r2);background:var(--well);border:1px solid var(--line-soft);color:var(--ink);
  font:inherit;font-size:14.5px;line-height:1.2;text-align:left;cursor:pointer}
.servePick b{font-weight:650}
.servePick small{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.servePick.on{background:rgb(var(--accent-rgb)/.12);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.serves.checkAmount .servePick.on{border-color:var(--muted);box-shadow:none;background:var(--well)}
.serveType{align-self:flex-start;background:none;border:0;padding:4px 0;color:var(--accent);font:inherit;font-size:14px;font-weight:600}
/* Where the day lands with this meal (22 Oct 2026). */
.dayAfter{margin:-4px 0 14px;color:var(--muted);font-size:13.5px;line-height:1.45;text-align:center}
.dayAfter b{color:var(--ink);font-weight:700}
.dayAfter span{white-space:nowrap}
.shareToggle{width:100%;display:flex;align-items:center;gap:10px;text-align:left}
.shareToggle .uiIcon{color:var(--accent);flex:0 0 auto}
.shareSaid{flex:1;min-width:0;font-weight:600}
.shareEdit{color:var(--accent);font-weight:600;font-size:14px}
.sharePanel{margin-top:10px;background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r3);padding:14px}
.sharePanel .tnote{margin:0 0 10px;text-align:left}
.sharePicks{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.sharePicks .chip{min-width:52px;font-size:16px}
.sharePicks .chip.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:rgb(var(--accent-rgb) / .20);color:var(--ink);font-weight:700}
.sharePct{margin:6px 0 0;color:var(--muted);font-size:14px}
.sharePct b{color:var(--ink)}

/* ---------- Components (journal redesign, 2 Nov 2026) ----------
   One block per component in ui.js, every value from the tokens above. Prefixed .ui- so nothing here can meet an older
   rule by accident. Tap targets at least 44px; text in rem-free px like the rest, wrapping rather than shrinking. */
.ui-card{background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r4);padding:var(--s4)}
.ui-card.flush{padding:var(--s1) var(--s4)}
.ui-label{display:flex;justify-content:space-between;align-items:baseline;gap:var(--s3);margin:var(--s5) 2px var(--s3);font-size:13px;font-weight:650;color:var(--muted);text-transform:uppercase;letter-spacing:.07em}
.ui-link{all:unset;cursor:pointer;color:var(--accent);font-size:13px;font-weight:600;text-transform:none;letter-spacing:0;min-height:44px;display:inline-flex;align-items:center}
.ui-empty{display:grid;justify-items:center;gap:6px;text-align:center;padding:var(--s5) var(--s4);color:var(--muted)}
.ui-empty .uiIcon{width:28px;height:28px}.ui-empty b{color:var(--ink);font-size:16px}.ui-empty span{font-size:14px}
.ui-error{color:var(--red);font-size:14px;margin:var(--s2) 0}
.ui-notice{border-radius:var(--r3);padding:var(--s3) var(--s4);background:rgb(var(--accent-rgb) / .12);border:1px solid rgb(var(--accent-rgb) / .35)}
.ui-notice p{margin:0;font-size:14.5px;line-height:1.45}.ui-notice.safety{background:var(--surface);border-color:var(--line)}
.ui-notice-acts{display:flex;gap:var(--s4);justify-content:flex-end}
.ui-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);min-height:52px;width:100%;padding:0 var(--s4);border-radius:var(--r2);font:inherit;font-weight:650;cursor:pointer}
.ui-btn.primary{background:var(--accent);color:var(--on-accent);border:0}
.ui-btn.ghost{background:var(--raised);color:var(--ink);border:1px solid var(--line)}.ui-btn.ghost .uiIcon{color:var(--accent)}
.ui-btn.quiet{background:none;color:var(--accent);border:0;min-height:44px}
.ui-btn.risk{background:none;color:var(--red);border:0;min-height:44px}
.ui-btn[disabled]{opacity:.45;cursor:default}
.ui-chips{display:flex;flex-wrap:wrap;gap:var(--s2)}.ui-chips.fill{flex-wrap:nowrap}.ui-chips.fill>.ui-chip{flex:1;min-width:0;justify-content:center;padding:0 8px}
.ui-chip{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;border-radius:var(--pill);background:var(--raised);border:1px solid var(--line);color:var(--ink);font:inherit;font-size:14.5px;font-weight:600;cursor:pointer}
.ui-chip small{color:var(--muted);font-weight:500}
.ui-chip.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:rgb(var(--accent-rgb) / .2);font-weight:700}
.ui-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:3px;padding:3px;border-radius:var(--r2);background:var(--well);border:1px solid var(--line-soft)}
.ui-seg button{all:unset;cursor:pointer;display:grid;place-items:center;min-height:42px;border-radius:11px;font-size:14px;font-weight:600;color:var(--muted)}
.ui-seg button.on{background:var(--raised);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.ui-field{display:grid;gap:6px;font-size:14px;color:var(--muted)}
.ui-field input{font:inherit;font-size:16px;color:var(--ink);background:var(--well);border:1px solid var(--line);border-radius:var(--r2);min-height:48px;padding:0 var(--s3)}
.ui-field small{color:var(--dim);font-size:12.5px}
.ui-badge{width:44px;height:44px;flex:none;border-radius:var(--r2);display:grid;place-items:center;background:var(--raised);color:var(--muted)}
.ui-badge.big{width:64px;height:64px}
.ui-badge.t-p{background:color-mix(in srgb, var(--split-p) 16%, transparent);color:var(--split-p)}
.ui-badge.t-c{background:color-mix(in srgb, var(--split-c) 16%, transparent);color:var(--split-c)}
.ui-badge.t-f{background:color-mix(in srgb, var(--split-f) 16%, transparent);color:var(--split-f)}
.ui-badge.t-accent{background:rgb(var(--accent-rgb) / .12);color:var(--accent)}
.ui-row{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:var(--s3);width:100%;min-height:56px;padding:6px 0;border-top:1px solid var(--line-soft);cursor:default}
button.ui-row{cursor:pointer}.ui-card .ui-row:first-child{border-top:0}
.ui-row-tx{flex:1;min-width:0}.ui-row-tx b{display:block;font-size:15.5px}.ui-row-tx small{display:block;color:var(--dim);font-size:13px}
.ui-row-right{font-weight:700;white-space:nowrap}.ui-go{color:var(--dim);font-size:20px}
.ui-toggle .ui-switch{margin-left:auto}
.ui-switch{width:50px;height:30px;flex:none;border-radius:var(--pill);background:var(--well);border:1px solid var(--line);position:relative}
.ui-switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--muted);transition:left .15s}
.ui-switch.on{background:rgb(var(--accent-rgb) / .35);border-color:var(--accent)}.ui-switch.on::after{left:23px;background:var(--ink)}
.ui-tile{all:unset;box-sizing:border-box;cursor:pointer;display:grid;gap:4px;align-content:start;padding:var(--s3);min-height:76px;border-radius:var(--r3);background:var(--raised);border:1px solid var(--line)}
.ui-tile .uiIcon{color:var(--accent)}.ui-tile b{font-size:15px}.ui-tile small{color:var(--muted);font-size:13px}
.ui-tile.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:rgb(var(--accent-rgb) / .2)}
.ui-macros{display:flex;flex-wrap:wrap;gap:2px 8px;font-size:12px;color:var(--muted)}.ui-macros>span{white-space:nowrap}
.ui-macros i,.ui-summary-macros i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px;vertical-align:1px}
.d-p{background:var(--split-p)}.d-c{background:var(--split-c)}.d-f{background:var(--split-f)}
.ui-summary{display:block}
.ui-summary.pinned{position:sticky;top:env(safe-area-inset-top, 0px);z-index:5;margin:0 calc(-1 * var(--pad));padding:8px var(--pad) 12px;background:color-mix(in srgb, var(--bg) 94%, transparent);backdrop-filter:blur(12px);border-bottom:1px solid var(--line-soft)}
.ui-summary-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--s3);flex-wrap:wrap}
.ui-summary-head>b{font-size:28px;letter-spacing:-.02em}.ui-summary-head>b span{font-size:14px;color:var(--muted);font-weight:600;margin-left:6px;letter-spacing:0}
.ui-summary-head>small{color:var(--muted);font-size:13px}.ui-reached{display:inline-flex;align-items:center;gap:5px}
.ui-bar{height:8px;border-radius:var(--pill);background:var(--well);border:1px solid var(--line-soft);overflow:hidden;margin:9px 0}
.ui-bar i{display:block;height:100%;background:var(--accent);border-radius:var(--pill)}
.ui-summary-macros{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:13px;color:var(--muted)}.ui-summary-macros b{color:var(--ink)}.ui-summary-macros small{color:var(--dim)}
/* Seven days on screen, the rest a sideways scroll (2 Nov 2026). The momentum and the settle are the phone's own scroll,
   snapping a whole day into place, so it moves as an iPhone list does; no scroll bar. */
.ui-week{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 36px) / 7);gap:6px;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.ui-week::-webkit-scrollbar{display:none}
.ui-week button{all:unset;scroll-snap-align:start;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:58px;border-radius:var(--r2);border:1px solid transparent}
.ui-week small{color:var(--dim);font-size:11.5px}.ui-week b{font-size:16px}
.ui-week i{width:5px;height:5px;border-radius:50%}.ui-week i.lg{background:var(--muted)}
.ui-week button.on{background:var(--raised);border-color:var(--line)}.ui-week button.on i.lg{background:var(--accent)}
.ui-week button.future{cursor:default;opacity:.4}
.ui-timeline{position:relative}
.ui-timeline::before{content:"";position:absolute;left:65px;top:12px;bottom:12px;width:2px;border-radius:2px;background:var(--line-soft)}
.ui-entry{display:grid;grid-template-columns:55px 14px minmax(0,1fr);align-items:center;gap:0 4px;margin-bottom:10px}
.ui-entry-time{white-space:nowrap;font-size:12px;color:var(--muted);text-align:right}
.ui-entry-dot{width:10px;height:10px;border-radius:50%;justify-self:center;position:relative;z-index:1;background:var(--bg);border:2px solid var(--accent)}
.ui-entry-card{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:72px;padding:8px 12px 8px 8px;border-radius:var(--r3);background:var(--surface);border:1px solid var(--line-soft)}
.ui-entry-card img{width:56px;height:56px;border-radius:var(--r2);object-fit:cover}
.ui-entry-tx b{display:block;font-size:15px;line-height:1.25}.ui-entry-tx small{display:block;color:var(--dim);font-size:12.5px}
.ui-entry-cal{font-size:16px;font-weight:750}
.ui-entry.reading .ui-entry-card{border-style:dashed}.ui-entry.reading .ui-entry-dot{border-color:var(--muted)}
.ui-summary-top{cursor:pointer;border-radius:var(--r2)}
.ui-summary-top:focus-visible,.ui-summary-macros:focus-visible{outline:3px solid rgb(var(--accent-rgb)/.75);outline-offset:3px}
button.ui-summary-macros{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;width:100%;min-height:28px;font-size:13px;color:var(--muted)}
.ui-view{margin-left:auto;color:var(--dim);font-size:11.5px;white-space:nowrap}
.ui-atl{font-style:normal;color:var(--muted);margin-right:3px;font-weight:600}
.ui-entry-pic{position:relative;width:56px;height:56px}
.ui-entry-card .ui-badge.big{width:56px;height:56px}
.ui-entry-tx .ui-macros{font-size:12px;gap:2px 7px}.ui-entry-pic img{position:absolute;inset:0}
/* Today as the photo journal (journal redesign, 2 Nov 2026, MEALBOT_JOURNAL). */
.answer.jDay{display:grid;gap:var(--s3);background:none;background-image:none;border:0;border-radius:0;box-shadow:none;padding:0;margin-top:6px}
.jDay .ui-week{margin:0 -4px}
.jDay .ui-label{margin:var(--s3) 2px 0}
.jDinner{margin:0}
.jTiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#journalNote{margin-bottom:var(--s3)}
/* The plate clock (2 Nov 2026): one colour, calm. The face is square at any width; the hours sit outside the ring. */
.ui-clock{display:grid;gap:var(--s4)}
.ui-clock-face{position:relative;width:min(100% - 56px, 300px);aspect-ratio:1;margin:22px auto 4px}
.ui-clock-dial{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ui-clock-ring{fill:none;stroke:var(--line);stroke-width:1.5}
.ui-clock-track{fill:var(--surface);stroke:var(--well);stroke-width:14}
.ui-clock-arc{fill:none;stroke:var(--accent);stroke-width:14;stroke-linecap:round}
.ui-clock-hr{position:absolute;color:var(--dim);font-size:11.5px;white-space:nowrap}
.ui-clock-hr.n{left:50%;top:-20px;transform:translateX(-50%)}.ui-clock-hr.s{left:50%;bottom:-20px;transform:translateX(-50%)}
.ui-clock-hr.e{right:-30px;top:50%;transform:translateY(-50%)}.ui-clock-hr.w{left:-30px;top:50%;transform:translateY(-50%)}
.ui-clock-mid{position:absolute;inset:27%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px;cursor:pointer}
.ui-clock-mid b{font-size:clamp(28px,9vw,40px);letter-spacing:-.02em;line-height:1}.ui-clock-mid span{color:var(--muted);font-size:14px;font-weight:600}
.ui-clock-mid small{color:var(--dim);font-size:12px}
.ui-clock-mid:focus-visible{outline:3px solid rgb(var(--accent-rgb)/.75);outline-offset:3px}
.ui-clock-meal{all:unset;box-sizing:border-box;cursor:pointer;position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;
  display:grid;place-items:center;overflow:hidden;background:var(--raised);color:var(--muted);border:2px solid var(--bg);box-shadow:0 0 0 1px var(--line)}
.ui-clock-meal img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ui-clock-meal:focus-visible{outline:3px solid rgb(var(--accent-rgb)/.75);outline-offset:2px}
/* With photos in the tray (journal): the photos and Read come first, nothing above them. */
body.capturing #noticeSlot,body.capturing #home > :not(#angleBox):not(#typeMealSays):not(input){display:none!important}
/* Filming mode: nothing on screen but the app itself. */
body.filming #noticeSlot,body.filming .homeHint,body.filming #photoGuide,body.filming #install,body.filming .movedNote,
body.filming #journalNote,body.filming #pushBanner,body.filming .updatePill,body.filming #dayPin,body.filming .installCard{display:none!important}
/* A sentence rather than a figure in the logged note's place (a photo held with no signal): a card, not a pill. */
#loggedToast.note{width:min(340px, calc(100vw - 32px));border-radius:var(--r3);padding:12px 16px;line-height:1.4;text-align:left;font-weight:500}
/* Plategist's own camera (a trial, 2 Nov 2026): the whole screen is the viewfinder; the controls sit clear of the
   phone's own edges. Black, not a brand colour, so the food reads true. */
.cam{position:fixed;inset:0;z-index:80;background:var(--cam-bg);color:#fff;display:flex;flex-direction:column;justify-content:space-between}
/* The whole frame, as the phone's own camera shows it (3 Nov 2026, Lance: it opened "zoomed in"). Filling the tall
   screen cropped the 3:4 picture to about its middle 60%, yet the photo kept is the whole frame: more than was seen. */
.cam video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.vfTop,.vfBottom{position:relative;z-index:1;display:flex;align-items:center;gap:12px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;
  background:linear-gradient(180deg,rgb(var(--cam-shade-rgb) / .55),transparent)}
/* Three columns, the shutter in a middle one of its own (2 Nov 2026, Lance: the buttons either side "push the camera
   button across" as they change to Save for later and Read 2 photos). The sides share what is left equally and wrap
   their words rather than widen, so the shutter sits in the middle of the screen whatever they say. */
.vfBottom{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:20px 16px calc(24px + env(safe-area-inset-bottom));
  background:linear-gradient(0deg,rgb(var(--cam-shade-rgb) / .6),transparent)}
.vfClose{all:unset;cursor:pointer;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:rgb(var(--cam-shade-rgb) / .45);font-size:18px}
.vfHint{flex:1;text-align:center;font-weight:650;font-size:15px}
/* Top bar as three columns too, so the angle drawing stays centred whatever sits either side of it. */
.vfTop{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.vfTop .vfClose{justify-self:start}.vfRight{justify-self:end;display:flex;align-items:center;gap:8px}
.vfTorch{all:unset;cursor:pointer;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:rgb(var(--cam-shade-rgb) / .45)}
.vfTorch svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linejoin:round}
.vfTorch.on{background:var(--accent)}.vfTorch.on svg{fill:var(--on-accent);stroke:var(--on-accent)}
.vfTorch[hidden]{display:none}.vfTorch:focus-visible{outline:3px solid #fff;outline-offset:3px}.vfCount{min-width:44px;text-align:right;font-size:14px;opacity:.85}
/* Floats under the angle drawing, out of the column below (2 Nov 2026, Lance: when the "Taken in" timer went, "all of
   the stuff above it shifts down again"). Nothing moves when it comes or goes. */
.vfNote{position:absolute;z-index:2;top:calc(env(safe-area-inset-top, 0px) + 104px);left:50%;transform:translateX(-50%);margin:0;
  width:max-content;max-width:min(320px, calc(100% - 32px));text-align:center;font-size:12.5px;line-height:1.4;padding:4px 12px;
  border-radius:var(--pill);background:rgb(var(--cam-shade-rgb) / .55);pointer-events:none}
.vfShutter{all:unset;cursor:pointer;width:74px;height:74px;border-radius:50%;background:#fff;box-shadow:0 0 0 5px rgb(var(--cam-shade-rgb) / .45),0 0 0 8px #fff}
.vfShutter{transition:transform .38s cubic-bezier(.34,1.56,.64,1)}
.vfShutter.down{transform:scale(.86);transition:transform .08s ease-out}.vfShutter:disabled{opacity:.35;cursor:default}
.vfPhone,.vfRead{all:unset;box-sizing:border-box;cursor:pointer;min-width:min(84px,100%);max-width:100%;min-height:44px;display:grid;
  place-items:center;text-align:center;font-size:14px;font-weight:650;line-height:1.2;border-radius:var(--r3)}
.vfPhone{justify-self:start;color:#fff;opacity:.9}
.vfRead{justify-self:end;background:var(--accent);color:var(--on-accent);padding:4px 12px}
.vfRead[hidden]{display:grid!important;visibility:hidden}
.vfClose:focus-visible,.vfShutter:focus-visible,.vfPhone:focus-visible,.vfRead:focus-visible{outline:3px solid #fff;outline-offset:3px}
/* The photo taken (2 Nov 2026): the frozen frame, under the controls; a blink of dark as a shutter gives, and the accent
   ring of the logo's plate closing in round the edge. Then it flies into its thumbnail (app.js, shotLand), which pops. */
.vfShot{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:var(--cam-bg)}
.vfShot canvas{display:block;width:100%;height:100%;object-fit:contain}
.vfShot::before,.vfShot::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.vfShot::before{background:var(--cam-bg);opacity:0;animation:vfBlink .18s ease-out}
.vfShot::after{box-shadow:inset 0 0 0 3px var(--accent);animation:vfRing .5s cubic-bezier(.2,.8,.2,1)}
@keyframes vfBlink{from{opacity:.9}to{opacity:0}}
/* The ring goes as the photo lifts, so the flight is the photo alone. */
.vfShot::after{animation:vfRing .45s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes vfRing{0%{box-shadow:inset 0 0 0 0 var(--accent)}30%{box-shadow:inset 0 0 0 14px var(--accent)}100%{box-shadow:inset 0 0 0 0 var(--accent)}}
.vfShutter.fired{animation:vfFired .45s ease-out}
@keyframes vfFired{0%{background:var(--accent)}100%{background:#fff}}
/* Landing (shotLanded): a squash and stretch, and a ring of accent that leaves it. */
.vfThumb::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0}
.vfThumb.landed{animation:vfLanded .5s cubic-bezier(.3,1.4,.5,1)}
.vfThumb.landed::after{animation:vfRipple .6s cubic-bezier(.2,.8,.2,1)}
@keyframes vfLanded{0%{transform:scale(1.18,.84);box-shadow:0 0 0 3px var(--accent)}35%{transform:scale(.92,1.08)}
  65%{transform:scale(1.04,.97)}100%{transform:scale(1);box-shadow:0 0 0 2px #fff}}
@keyframes vfRipple{0%{opacity:1;box-shadow:0 0 0 2px var(--accent)}100%{opacity:0;box-shadow:0 0 0 18px var(--accent)}}
/* A full set: the row hops in a wave, and Read asks to be tapped. */
.vfThumb.hop{animation:vfHop .5s cubic-bezier(.3,1.5,.5,1) backwards}
@keyframes vfHop{0%{transform:translateY(0)}40%{transform:translateY(-12px) scale(1.06)}100%{transform:translateY(0)}}
.vfRead.ready{animation:vfReady 1.6s ease-in-out .4s 2}
@keyframes vfReady{0%,100%{box-shadow:0 0 0 0 rgb(var(--accent-rgb) / .6)}50%{box-shadow:0 0 0 10px rgb(var(--accent-rgb) / 0);transform:scale(1.05)}}
.vfRead.arrive{animation:vfArrive .45s cubic-bezier(.34,1.56,.64,1)}
@keyframes vfArrive{from{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}
/* A word or number that changes lifts into place rather than cutting. */
.bump{animation:vfBump .32s cubic-bezier(.2,.8,.2,1)}
@keyframes vfBump{from{transform:translateY(6px);opacity:.2}to{transform:none;opacity:1}}
@media (prefers-reduced-motion: reduce){.vfShot::before,.vfShutter.fired,.vfThumb.landed,.vfThumb.landed::after,.vfThumb.hop,
  .vfRead.ready,.vfRead.arrive,.bump{animation:none}.vfShutter,.vfShutter.down{transition:none;transform:none}}
/* Meal or Barcode (2 Nov 2026), above the shutter as a camera's modes are. In Barcode, a box to hold the code in, the
   rest of the picture dimmed; it turns accent when a code is read. Scanning needs no shutter. */
.vfModes{display:flex;gap:4px;padding:3px;border-radius:var(--pill);background:rgb(var(--cam-shade-rgb) / .5)}
.vfModes button{all:unset;cursor:pointer;min-height:32px;padding:0 16px;display:grid;place-items:center;border-radius:var(--pill);
  font-size:13.5px;font-weight:650;color:#fff;opacity:.85}
.vfModes button.on{background:var(--accent);color:var(--on-accent);opacity:1}
.vfModes button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.vfFrame{display:none;position:absolute;left:8%;right:8%;top:34%;height:20%;z-index:0;pointer-events:none;border:3px solid #fff;
  border-radius:var(--r3);box-shadow:0 0 0 100vmax rgb(var(--cam-shade-rgb) / .35);transition:border-color .15s}
.vfFrame.hit{border-color:var(--accent)}
.cam[data-mode="barcode"] .vfFrame{display:block}
#label .tSub a{color:var(--accent)}
.cam[data-mode="barcode"] .vfShutter,.cam[data-mode="barcode"] #camLeft,.cam[data-mode="label"] #camLeft{visibility:hidden}
/* The meal screen on the journal (stage 3): a heading, and each food's controls under Adjust. */
.jMealHead{margin:4px 2px 12px}.jMealHead h2{margin:0;font-size:22px;line-height:1.2;text-wrap:balance}
.jMealHead small{display:block;margin-top:4px;color:var(--muted);font-size:14px}
.jAdjust{margin-top:6px;border-top:1px solid var(--line-soft)}
.jAdjust>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;min-height:44px;color:var(--accent);font-weight:650;font-size:14px}
.jAdjust>summary::-webkit-details-marker{display:none}
.jAdjust>summary .uiIcon{width:18px;height:18px}
.jAdjust[open]>summary{color:var(--muted)}
.jAdjust>summary:focus-visible{outline:3px solid rgb(var(--accent-rgb)/.75);outline-offset:2px;border-radius:var(--r1)}
.vfAngle{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px}
.vfArt{width:56px;height:49px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* On a dark backing, not only a shadow: a white pack or plate behind it otherwise swallows the words (2 Nov 2026). */
.vfPrompt{margin:0 16px;padding:6px 12px;border-radius:var(--r2);background:rgb(var(--cam-shade-rgb) / .5);text-align:center;
  font-size:16px;font-weight:650;line-height:1.35;text-shadow:0 1px 3px rgb(var(--cam-shade-rgb) / .9);
  /* Two lines' room always, so a one-line prompt becoming two never moves the photos above it. */
  min-height:calc(2.7em + 12px);min-height:calc(2lh + 12px);display:grid;place-items:center;box-sizing:border-box}
.vfPrompt:empty{display:none}
.vfAngle .vfHint{flex:none;font-size:14px}
.vfLower{position:relative;z-index:1;margin-top:auto;display:grid;justify-items:center;gap:8px;padding-bottom:6px}
.vfThumbs{display:flex;gap:10px;min-height:0}.vfThumbs:empty{display:none}
.vfThumb{position:relative;width:58px;height:58px;border-radius:var(--r2);box-shadow:0 0 0 2px #fff}
.vfThumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.vfThumb button{all:unset;cursor:pointer;position:absolute;top:0;right:0;width:26px;height:26px;display:grid;place-items:center;
  font-size:12px;background:rgb(var(--cam-shade-rgb) / .6);border-bottom-left-radius:var(--r1);border-top-right-radius:var(--r2)}

/* ---------- Progress in the photo journal (stage 4, 3 Nov 2026) ---------- */
.pgChart{display:grid;gap:4px}
.pgChartSeg button{padding-inline:4px;font-size:13.5px}
.pgChartHead{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:10px 2px 0}
.pgChartHead b{font-size:21px;font-weight:750;color:var(--ink);font-variant-numeric:tabular-nums}
.pgChartHead b small{font-size:14px;font-weight:600;color:var(--muted)}
.pgChartHead span{font-size:12.5px;color:var(--muted);text-align:right}
.pgDays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.pgDay{all:unset;display:grid;justify-items:center;gap:4px;font-size:12px;color:var(--muted);cursor:pointer;min-width:0}
.pgDay:disabled{cursor:default;opacity:.55}
.pgDay:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r2)}
.pgPic{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:var(--r2);background:var(--raised) center/cover;
  border:1px solid var(--line-soft)}
.pgPic.typed{color:var(--accent);background:rgb(var(--accent-rgb) / .1)}
.pgPic.typed .uiIcon{width:20px;height:20px}
.pgPic.none{background:none;border-style:dashed}
.pgDay b{color:var(--ink);font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}
.pgDay.today b{color:var(--accent)}
.pgRow{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;text-align:left;cursor:pointer;color:var(--ink);font:inherit}
.pgRow > .uiIcon{width:22px;height:22px;color:var(--accent);flex:none}
.pgRow span:not(.chev){flex:1;display:grid;gap:2px}
.pgRow b{font-size:15px;font-weight:650}.pgRow small{font-size:13px;color:var(--muted)}
.pgRow .chev{color:var(--muted);font-size:20px}
.moAll{width:100%;margin-top:8px}
.moName .nstar{color:var(--accent);font-style:normal;margin-right:4px}
/* weight */
.jWeight{display:grid;gap:8px}
.jwRow{display:flex;align-items:center;gap:12px}
.jwRow > .uiIcon{width:22px;height:22px;color:var(--accent);flex:none}
.jwRow span{flex:1;display:grid;gap:2px}.jwRow b{font-size:15px;font-weight:650;color:var(--ink)}
.jwRow small{font-size:13px;color:var(--muted)}
.jwTop{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.jwNow b{display:block;font-size:34px;line-height:1;font-weight:750;color:var(--ink);font-variant-numeric:tabular-nums}
.jwNow b small{font-size:16px;color:var(--muted);font-weight:650;margin-left:3px}
.jwNow span{display:block;margin-top:6px;color:var(--muted);font-size:14px}
.jwIn{width:auto;min-height:40px;padding:0 16px;display:inline-flex;align-items:center;gap:6px;border-radius:var(--pill)}
.jwIn .uiIcon{width:18px;height:18px}
.jwSay{margin:2px 0 0;font-size:15px;line-height:1.4;color:var(--ink)}
.jwControls{display:flex;align-items:center;gap:8px}
.jwControls .wtRanges{flex:1;margin:0}
.wtStep{flex:0 0 44px;min-height:44px;padding:0;border-radius:50%;background:var(--raised);border:1px solid var(--line);
  color:var(--ink);font-size:20px}
.jWeigh{margin:0}
.jwPlot .wtGrid{stroke:var(--line-soft);stroke-width:1;vector-effect:non-scaling-stroke}
.jwPlot .wtScale{text-anchor:end}
.jwPlot .wtTrend{stroke:var(--ink);filter:none}
.jwPlot .wtLast{fill:var(--accent);stroke:var(--surface);stroke-width:3;vector-effect:non-scaling-stroke}
.jWeight.fast .wtLast{fill:var(--muted)}
.jWeight .jwRow{text-align:left}
.jwChip{flex:none;width:auto;min-height:36px;padding:0 14px;border-radius:var(--pill);border:0;background:rgb(var(--accent-rgb) / .16);
  color:var(--accent);font-weight:650;font-size:14px}

/* Food in the photo journal (stage 4, 3 Nov 2026): the page in front of the four sections. */
.fdTitle{margin:6px 2px 12px;font-size:26px;font-weight:750}
.fdSearch{display:flex;align-items:center;gap:10px;padding:0 14px;min-height:48px;border-radius:var(--pill);background:var(--raised);
  border:1px solid var(--line);color:var(--dim)}
.fdSearch .uiIcon{flex:none;width:20px;height:20px}
.fdSearch input{all:unset;flex:1;min-width:0;min-height:46px;font-size:16px;color:var(--ink)}
.fdSearch input::placeholder{color:var(--dim)}
.fdSearch:focus-within{border-color:var(--accent)}
.fdSays{margin:8px 2px 0;color:var(--muted);font-size:13.5px}.fdSays.bad{color:var(--red)}
#fdHub,#fdResults{display:grid;gap:var(--s3);margin-top:var(--s3)}
.fdTiles,.fdCards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fdCard{display:grid;grid-template-rows:auto 1fr;background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r3);overflow:hidden}
.fdPic{position:relative;display:grid;place-items:center;aspect-ratio:4/3;color:var(--accent);background:rgb(var(--accent-rgb) / .1)}
.fdPic .uiIcon{width:34px;height:34px}
.fdPic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fdCard > div{display:grid;gap:2px;align-content:start;padding:8px 10px 10px}
.fdCard b{font-size:14.5px;overflow-wrap:anywhere}.fdCard span{color:var(--muted);font-size:12.5px}
.fdCard .fdSaid{color:var(--muted);font-size:12.5px}.fdCard .fdSaid:empty{display:none}
.fdLog{all:unset;box-sizing:border-box;cursor:pointer;justify-self:start;align-self:end;margin-top:6px;padding:5px 12px;border-radius:var(--pill);
  background:rgb(var(--accent-rgb) / .16);color:var(--accent);font-weight:650;font-size:13px;white-space:nowrap}
.fdCard .fdLog:disabled{opacity:.5}
.fdHit .fdLog{margin:0;flex:none}
.fdNote{margin:-4px 2px 0;color:var(--dim);font-size:12.5px}
.fdBack{all:unset;cursor:pointer;display:inline-block;margin:2px 2px 10px;color:var(--accent);font-weight:650;font-size:15px}

/* Targets in the photo journal (stage 4, 3 Nov 2026): the summary in front of the editor. */
.tsPage{display:grid;gap:var(--s3)}
.tsPage .fdTitle{display:flex;align-items:center;gap:10px;margin-bottom:0}
.tsPage .ui-label{margin-bottom:-4px}
.tsCal{display:flex;align-items:baseline;gap:8px;margin:0}
.tsCal b{font-size:44px;font-weight:800;line-height:1}.tsCal span{color:var(--muted);font-size:15px}
.tsWeek{margin:8px 0 0;color:var(--muted);font-size:14.5px;line-height:1.45}
.pcBar.tsBar{height:10px;margin:16px 0 12px}
.tsMacros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tsMacro{display:grid;gap:2px;min-width:0}
.tsMacro span{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13.5px}
.tsMacro span i{width:8px;height:8px;border-radius:50%;flex:none}
.tsMacro b{font-size:20px}.tsMacro small{color:var(--muted);font-size:12.5px}
.tsHow{margin:0 0 12px;color:var(--muted);font-size:14px;line-height:1.5}
.tsName{margin:4px 0 12px}

/* Account in the photo journal (stage 5, 3 Nov 2026): a list of rows, each opening a small page. */
.acJ .acList > .ui-row:first-child,.acJ .acList > .acDanger:first-child .ui-row{border-top:0}
.acJ .acDanger .ui-row-tx b{color:var(--red)}
.acJ #acNudge,.acJ #acPlanRow{margin-top:var(--s4)}
.acJ .ui-label{margin-top:var(--s5)}
.acJ .ui-row-right{color:var(--muted);font-weight:600}
.acJ .acBody{display:grid;gap:10px}
.acJ .acBody > .acctCard{margin-top:0}
.acJ #zoneChange,.acJ .acctDanger h3{display:none}
.acJ .deleteConfirm .actions{flex-direction:column}
.acJ .deleteConfirm .actions button{flex:none;width:100%}
.acJ .deleteConfirm .danger:disabled{opacity:.4}

/* Sign-in, matched to the sign-up page (stage 5, 3 Nov 2026): the glowing mark, the wordmark, the email first.
   The glow, grid and beam are invite.html's own, at the same sizes, so the two doors look like one. */
.lockHero{position:relative;display:grid;place-items:center;height:172px;margin:0 0 2px;overflow:hidden;
  mask-image:radial-gradient(ellipse 78% 72% at 50% 46%,#000 38%,transparent 100%);
  -webkit-mask-image:radial-gradient(ellipse 78% 72% at 50% 46%,#000 38%,transparent 100%)}
.lockHero::before{content:"";position:absolute;width:230px;height:230px;border-radius:50%;
  background:radial-gradient(circle,rgb(var(--accent-rgb) / .30) 0%,rgb(var(--accent-rgb) / .10) 42%,transparent 68%)}
.lockHero::after{content:"";position:absolute;inset:0;opacity:.55;
  background-image:linear-gradient(rgb(var(--accent-rgb) / .07) 1px,transparent 1px),
    linear-gradient(90deg,rgb(var(--accent-rgb) / .07) 1px,transparent 1px);
  background-size:14.2857% 14.2857%;
  mask-image:radial-gradient(circle,#000 35%,transparent 72%);-webkit-mask-image:radial-gradient(circle,#000 35%,transparent 72%)}
.lockIcon{position:relative;width:82px;height:82px;border-radius:24px;display:block}
/* The beam travels in pixels, never a percentage: a translateY(%) sweep sat frozen on Lance's iPhone (invite.html). */
.lockSweep{position:absolute;left:0;right:0;top:0;height:2px;border-radius:2px;opacity:0;will-change:transform;
  background:linear-gradient(90deg,transparent,var(--beam) 22%,var(--beam) 78%,transparent);
  box-shadow:0 0 6px 2px rgb(var(--accent-rgb) / .45),0 0 22px 8px rgb(var(--accent-rgb) / .3);
  animation:lockSweep 4.6s ease-in-out 1.2s infinite;
  mask-image:linear-gradient(90deg,transparent,#000 25%,#000 75%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 25%,#000 75%,transparent)}
@keyframes lockSweep{0%{transform:translateY(6px);opacity:0}12%{opacity:.9}50%{transform:translateY(160px);opacity:.9}
  62%{opacity:0}100%{transform:translateY(160px);opacity:0}}
@media (prefers-reduced-motion:reduce){.lockSweep{display:none}}
.lockPitch{color:var(--muted);font-size:16px;line-height:1.45;margin:0 0 20px}
.lockLabel{display:block;color:var(--muted);font-size:14px;margin:0 0 6px}
#lock .lockField{margin:0 0 10px}
#lockEmail{text-align:left}
#lock #lockError{margin:10px 0 0}
#lock .orLine{margin:18px 0 12px}
.lockFace{width:20px;height:20px;flex:none;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lockQuiet{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 14px;margin:6px 0 0}
.lockQuiet button{background:none;min-height:44px;padding:8px;color:var(--accent);font-size:15px}
/* One notice at a time on Today (stage 5): a plan card (trial ending, ready, or thanks) stands alone; the hints and the
   new-look note wait for another visit. Never the safety notice, which is not a hint. In CSS so it is right whichever
   draws first. */
body:has(#noticeSlot .trialNotice) :is(#journalNote,#emailHint,#remindHint,#referHint,#homeHint){display:none}
.planTop .primary{margin:6px 0 14px}

/* ---------- The first-run notices in the journal (stage 5, 4 Nov 2026) ----------
   One at a time, everywhere on Today: the safety notice alone while it shows (never hidden itself: it is not a hint), and
   otherwise only the first notice in the slot. The new-look note waits while any notice shows. In CSS, so it is right
   whichever notice draws first. Each one wears the journal's notice: the words across the full width, the choices as
   links along the bottom right, the one that does the thing in the accent. Before, the reminder and referral cards
   squeezed their words into a narrow column beside two buttons, and each sat on top of the new-look note. */
body.journalOn #noticeSlot > :not([hidden]) ~ :not(#safetyNotice),
body.journalOn #noticeSlot:has(#safetyNotice:not([hidden])) > :not(#safetyNotice),
body.journalOn:has(#noticeSlot > :not([hidden])) #journalNote{display:none}
body.journalOn :is(#safetyNotice,#emailHint,#remindHint,#referHint,#reviewCard){display:flex;flex-wrap:wrap;align-items:center;
  justify-content:flex-end;column-gap:var(--s4);margin:0 0 var(--s3);padding:var(--s3) var(--s4) var(--s1);border-radius:var(--r3);
  background:rgb(var(--accent-rgb) / .12);border:1px solid rgb(var(--accent-rgb) / .35);box-shadow:none}
body.journalOn :is(#safetyNotice,#emailHint,#remindHint,#referHint,#reviewCard) p{flex:1 0 100%;margin:0 0 var(--s1);color:var(--ink);font-size:14.5px;line-height:1.45}
body.journalOn :is(#emailHint,#remindHint,#referHint,#reviewCard) button,
body.journalOn #safetyNotice :is(.ghost,.linkBtn){all:unset;box-sizing:border-box;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;
  color:var(--accent);font-size:14px;font-weight:650}
body.journalOn :is(#emailHint,#remindHint,#referHint,#reviewCard) .plain{color:var(--muted);font-weight:550}
body.journalOn :is(#emailHint,#remindHint,#referHint,#reviewCard) button[disabled]{opacity:.45;cursor:default}
body.journalOn :is(#emailHint,#remindHint,#referHint) button:focus-visible,
body.journalOn #safetyNotice button:focus-visible,body.journalOn #reviewCard button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
/* The safety notice: calm, the surface rather than a tint, its heading in the ink. Research's rule for the journal is no
   amber or red that reads as a warning about the person; this is information about the app. "Read more" leads on the
   left, "Got it" on the right. */
body.journalOn #safetyNotice{background:var(--surface);border-color:var(--line)}
body.journalOn #safetyNotice h2{flex:1 0 100%;margin:0 0 var(--s2);font-size:16px;font-weight:650;color:var(--ink)}
body.journalOn #safetyNotice .linkBtn{margin-right:auto;font-weight:600}
/* The review: the stars, the box and the tick keep their own rows; Send moves to the end of the choices. */
body.journalOn #reviewCard > :not(.tnActs):not(p){flex:1 0 100%}
body.journalOn #reviewCard .tnHead{font-weight:650}
body.journalOn #reviewCard .tnActs{flex:1 0 100%;display:flex;flex-wrap:wrap;justify-content:flex-end;column-gap:var(--s4)}
body.journalOn #reviewCard #reviewSend{order:2}
body.journalOn #reviewCard label span{font-size:13.5px;line-height:1.45;color:var(--muted)}
/* The Home Screen card keeps its dot and its "Show me", in the journal's notice box. */
body.journalOn #homeHint{margin:0 0 var(--s3);padding:var(--s3) var(--s4);border-radius:var(--r3);
  background:rgb(var(--accent-rgb) / .12);border:1px solid rgb(var(--accent-rgb) / .35)}

/* The unsubscribe pages (stage 5, 4 Nov 2026), laid out as the offline page is (sw.js): the lockup, then one line and at most
   one button, in the middle of the screen. They load this stylesheet, so their colours are the app's own. */
.sysPage{margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;box-sizing:border-box;
  padding:24px max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left));background:var(--bg);text-align:center}
.sysPage main{width:100%;max-width:340px}
.sysPage .sysMark{display:block;margin:0 auto 24px;height:39px;width:auto}
.sysPage h1{font-size:22px;margin:0 0 8px}
.sysPage p{color:var(--muted);margin:0 0 28px}
.sysPage form .primary{width:100%}
