/* LunchEAZE Simulator shell — mobile first. Desktop layout from 900 px (panel full width, descriptive parts below).
   Everything is laid out relative to the panel element's box; nothing uses canvas pixel coordinates. */

/* The Pro TFT's fonts (ui/tft-pro.js): the firmware's VLW fonts are Chivo Mono SemiBold (OFL, fonts/OFL.txt) at
   16 / 24 / 48 px, and size-0 text is TFT_eSPI's GLCD 5x7 font (Adafruit GFX glcdfont.c, BSD, fonts/LICENSE-glcdfont.txt).
   Both are subset files served from the plugin; nothing is fetched from a font CDN. */
@font-face {
  font-family: 'LZ TFT Chivo Mono';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(fonts/chivo-mono-600-tft.woff2) format('woff2');
}
@font-face {
  font-family: 'LZ TFT GLCD';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(fonts/glcd-5x7-tft.woff2) format('woff2');
}

/* The applet's OWN chrome (time bar, legend / caption bands, in-graphic controls, drawers, tips, toasts) is light, in
   the site's Redesign 3 palette (designs/redesign-3/lz.css §1); INTERFACE.md §7.10 has the map. The device (TFT /
   7-segment displays, LEDs, photo, cutaway, wire) keeps its own colours and is not styled here. The tokens are also
   set on .lzs-tip because the tooltip is appended to <body>, outside .lzs. */
.lzs, .lzs-tip {
  --ink: #181B1F;          /* site --ink: text, the time-bar handle, black lines */
  --ink-soft: #464C54;     /* site --ink-soft: body text */
  --muted: #5F666F;        /* site --muted is #727A84 (4.3:1 on white): darkened so small text passes 4.5:1 on --bg-3 */
  --paper: #FCFCFD;        /* site --paper: cards, drawers, tips */
  --bg: #EBEDF0;
  --bg-2: #F3F5F7;         /* bands: time bar, legend, caption */
  --bg-3: #E2E5E9;         /* tracks, wells */
  --line: rgba(17, 20, 24, .12);
  --line-soft: rgba(17, 20, 24, .07);
  --line-strong: rgba(17, 20, 24, .17);
  --accent: #FF7C1F;       /* site --brand: fills only (2.6:1 on white: never small text on light) */
  --accent-deep: #E5651A;  /* site --brand-deep: focus rings, hover borders (3.4:1 on white) */
  --accent-tint: #FFF1E6;  /* site --brand-tint: pressed toggles */
  --accent-text: #B04A0B;  /* orange text on light surfaces (5.0:1 on --bg-2) */
  --accent-ink: #181B1F;   /* text on an orange fill (6.7:1) */
  --ok: #1f9d55;           /* Lunch marker line, battery fill */
  --ok-text: #157A41;
  --low: #d64545;
  --low-text: #C42B25;
  --charge: #3b82f6;
  --charge-text: #1A62BD;
  --back: #C23A1A;         /* rewinding (time bar) */
  --shadow-xs: 0 1px 1px rgba(17, 20, 24, .05), 0 1px 3px -1px rgba(17, 20, 24, .10);
  --shadow-sm: 0 1px 2px rgba(17, 20, 24, .05), 0 6px 14px -8px rgba(17, 20, 24, .20);
  --shadow: 0 1px 2px rgba(17, 20, 24, .05), 0 14px 32px -18px rgba(17, 20, 24, .30);
  --pill: 980px;
}
.lzs {
  --soft: var(--bg-2);
  --r: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  max-width: 1180px;
  margin: 0 auto;
  -webkit-text-size-adjust: 100%;
}
.lzs *, .lzs *::before, .lzs *::after { box-sizing: border-box; }
.lzs button { font: inherit; color: inherit; }
.lzs [hidden] { display: none !important; }
.lzs :focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }

/* ---------- generic buttons (the site's .btn: pill, flat fill, hairline ghost) ---------- */
.lzs-btn {
  min-height: 44px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.lzs-btn svg { width: 16px; height: 16px; }
.lzs-btn:hover { border-color: var(--ink-soft); background: #fff; }
.lzs-btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lzs-btn-accent:hover { border-color: var(--accent-deep); background: var(--accent-deep); }
/* `.lzs button { color: inherit }` above outranks a single class: pin the text colours of the filled buttons */
.lzs .lzs-btn { color: var(--ink); }
.lzs .lzs-btn-accent, .lzs .lzs-ctl-btn { color: var(--accent-ink); }

/* ---------- header (§7.12, Uzair 2026-11-02: "Clean up the title and subtitle area"): ONE quiet line, the H1 in the
   site's heading face and weight; no dot, no intro. The model picker and "Show me how to…" live in the left gutter
   stack on tablet + desktop (ui/ingraphic.js); phones (and label skins) keep them in a slim row under the H1. ---------- */
.lzs-head { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px 8px; }
.lzs-head .lzs-title {
  margin: 0; font-family: var(--font-display, inherit); font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; color: var(--navy, var(--ink));
}
.lzs-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.lzs-head-row:empty { display: none; }
.lzs-head-row .lzs-btn { min-height: 40px; padding: 0 12px; font-size: 13px; }

/* scenario menu: a button and its popover (an optional one-sentence hint, then the list of films) */
.lzs-scn { position: relative; flex: none; }
.lzs-scn-short, .lzs-scn-ico { display: none; }
@media (max-width: 479px) {
  .lzs-scn-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lzs-scn-short { display: inline; }
  .lzs-head .lzs-title { font-size: 16px; }
}
.lzs-scn-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px;
  min-width: 250px; max-width: calc(100vw - 32px); background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: auto; overscroll-behavior: contain; transform: translateY(var(--scn-shift, 0px));
}
.lzs-scn-items { margin: 0; padding: 0; list-style: none; }
.lzs-scn-hint { margin: 0 0 4px; padding: 6px 12px 8px; font-size: 13px; line-height: 1.4; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.lzs-scn-list button {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px; text-align: left; border: 0; border-radius: 8px;
  background: transparent; font-size: 14px; cursor: pointer;
}
.lzs-scn-list button:hover, .lzs-scn-list button:focus-visible { background: var(--soft); }
.lzs-scn-empty { padding: 10px 12px; color: var(--muted); font-size: 14px; }

/* ---------- main column ---------- */
.lzs-main { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 8px; }
/* small print (Uzair 2026-11-03): demonstration only, the real product may differ; last thing in the applet */
.lzs-disclaimer { margin: 2px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); text-align: center; }
/* embedded in another page's iframe (§7.15): edge to edge, the host page sizes the frame to the posted height */
.lzs.is-embed { max-width: none; border-radius: 0; }
.lzs-stage { position: relative; width: 100%; }
.lzs-panel-host { width: 100%; }
.lzs-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

/* toasts: phones → just above the sticky dock (never over the panel); desktop → top edge of the stage */
.lzs-toasts {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--dock-h, 200px) + 10px); z-index: 35;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.lzs-toast {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 8px 12px; font-size: 13px; line-height: 1.3; box-shadow: var(--shadow-sm);
  animation: lzs-in .2s ease-out; transition: opacity .3s, transform .3s; max-width: 100%;
}
.lzs-toast.is-out { opacity: 0; transform: translateY(-4px); }
@keyframes lzs-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* pointer chip (scenarios) — positioned in the overlay from the target part's box */
.lzs-chip {
  position: absolute; max-width: min(260px, 90%); background: #fff; color: var(--ink); border-radius: 10px;
  padding: 8px 12px; font-size: 13px; font-weight: 500; line-height: 1.35; box-shadow: var(--shadow);
  border: 1px solid var(--accent); animation: lzs-in .25s ease-out;
}
.lzs-chip-arrow {
  position: absolute; left: var(--arrow-x, 50%); width: 12px; height: 12px; background: #fff;
  border: 1px solid var(--accent); transform: translateX(-50%) rotate(45deg);
}
.lzs-chip[data-side="top"] .lzs-chip-arrow { bottom: -7px; border-top: 0; border-left: 0; }
.lzs-chip[data-side="bottom"] .lzs-chip-arrow { top: -7px; border-bottom: 0; border-right: 0; }
.lzs-chip[data-side="none"] .lzs-chip-arrow { display: none; }
.lzs-chip[data-side="none"] { transform: translateX(-50%); }

/* placeholder panel affordances (the real panel styles itself) */
.lzp-hot:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 0; }
.lzp-hot[data-down] { background: rgba(255, 124, 31, .28) !important; }

/* ---------- caption band ---------- */
/* hairlines on the bands are inset shadows, not borders, so no band changes size */
.lzs-caption { background: var(--bg-2); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line-soft); border-radius: var(--r); padding: 14px 16px; }
.lzs-cap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lzs-cap-heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lzs-cap-try { flex: none; }
.lzs-cap-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.lzs-cap-title { margin: 0; font-size: 16px; font-weight: 650; color: var(--ink); }
/* every line of the film is listed from the start (as in the manual's films); current = bold ink, the rest muted
   (a colour step, not opacity, so the other lines still read at 4.5:1) */
.lzs-cap-lines {
  position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px;
  font-size: 14px; line-height: 1.4; color: var(--muted); max-height: 13.5em; overflow-y: auto; overscroll-behavior: contain;
}
.lzs-cap-lines li { display: flex; align-items: baseline; gap: 8px; transition: color .2s; }
.lzs-cap-lines li.is-current { color: var(--ink); font-weight: 700; }
.lzs-cap-lines li.lzs-cl-head { font-size: 15px; }
.lzs-cap-num { flex: none; min-width: 1em; font-weight: 700; color: inherit; }
.lzs-cap-lines li.lzs-cl-sub { padding-left: 26px; font-size: 13.5px; }
.lzs-cap-lines li.lzs-cl-sub.is-current { font-weight: 600; }
.lzs-cap-lines li.lzs-cl-note { color: var(--accent-text); }
.lzs-cap-lines li.lzs-cl-note.is-current { color: var(--accent-text); }
/* bullet dots = the device's lit-icon colours (scenarios.js sets data-color; any other colour is set inline) */
.lzs-cap-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-1px); align-self: center; }
.lzs-cap-lines li:not(.is-current) .lzs-cap-dot { opacity: .6; }
.lzs-cap-dot[data-color="clock"] { background: #2fbf5a; }
.lzs-cap-dot[data-color="thermo"] { background: #e5322d; }
.lzs-cap-dot[data-color="flame"] { background: #ff8a1f; }
.lzs-cap-dot[data-color="batt"], .lzs-cap-dot[data-color="charging"] { background: #3ab0ff; }
.lzs-cap-dot[data-color="heating"] { background: #ff6a1a; }
.lzs-cap-dot[data-color="autoheat"] { background: #3fd46d; }
.lzs-cap-dot[data-color="neutral"] { background: var(--muted); }
.lzs-chip-line { display: block; }
.lzs-cap-progress { margin-top: 12px; height: 3px; border-radius: 2px; background: var(--bg-3); overflow: hidden; }
.lzs-cap-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- side controls: a strip under the panel on phones ---------- */
.lzs-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lzs-ctl {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 10px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; min-width: 0;
}
.lzs-ctl:hover { border-color: var(--line-strong); }
.lzs-ctl > svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.lzs-ctl[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
.lzs-ctl[aria-pressed="true"] > svg { color: var(--accent-text); }
.lzs-ctl-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.lzs-ctl-label { font-size: 14px; font-weight: 600; line-height: 1.2; }
.lzs-ctl-value { font-size: 12px; color: var(--muted); line-height: 1.2; }
/* the Container box: "Add cold food" (+ Junior's In / Out); the charger button sits beside it */
.lzs-ctl-box { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 8px; cursor: default; }
.lzs-ctl-head { display: flex; align-items: center; gap: 8px; min-width: 0; padding-left: 2px; }
.lzs-ctl-head > svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.lzs-ctl-actions { display: flex; gap: 6px; min-width: 0; }
.lzs-ctl-btn {
  flex: 1 1 auto; min-height: 40px; padding: 0 10px; border-radius: var(--pill); border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.lzs-ctl-btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.lzs-ctl-btn:active { transform: translateY(1px); }
.lzs-ctl-box.has-sensor .lzs-ctl-actions { flex-direction: column; }
/* Pro: "Show first-time startup intro" takes a full row under the charger / container */
.lzs-controls > .lzs-ctl-intro { grid-column: 1 / -1; flex-basis: 100%; }
.lzs-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.lzs-seg button {
  min-height: 40px; min-width: 52px; padding: 0 10px; border: 0; border-left: 1px solid var(--line); background: var(--paper);
  color: var(--ink-soft); font-size: 13px; font-weight: 600; cursor: pointer;
}
.lzs-ctl-box .lzs-seg { flex: 1 1 auto; }
.lzs-ctl-box .lzs-seg button { flex: 1 1 0; min-width: 0; }
.lzs-seg button:first-child { border-left: 0; }
.lzs-seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* the fridge card + Junior's lift card (all placements; the graphic's sizes are below) */
.lzs-ctl-food > svg { color: var(--ink-soft); }
.lzs-ctl-lift { flex-direction: column; align-items: stretch; gap: 0; padding: 0; cursor: default; overflow: hidden; }
.lzs-lift {
  display: flex; align-items: center; gap: .5em; width: 100%; min-height: 44px; padding: 0 .7em; border: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: .95em; font-weight: 600; line-height: 1.2;
  text-align: left; cursor: pointer;
}
.lzs-lift + .lzs-lift { border-top: 1px solid var(--line); }
.lzs-lift svg { width: 1.35em; height: 1.35em; flex: none; color: var(--ink-soft); }
.lzs-lift:hover:not(:disabled) { background: var(--accent-tint); }
.lzs-lift:hover:not(:disabled) svg { color: var(--accent-text); }
.lzs-lift:disabled { color: var(--muted); cursor: default; }
.lzs-lift:disabled svg { color: var(--line-strong); }
.lzs-lift:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }

/* ---------- battery gauge ---------- */
.lzs-gauge { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--paper); color: var(--ink); }
.lzs-gauge-head { display: flex; align-items: baseline; gap: 8px; }
.lzs-gauge-title { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: auto; }
.lzs-gauge-pct { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lzs-gauge-volt { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lzs-gauge-bar { height: 10px; border-radius: 5px; background: var(--bg-3); border: 1px solid var(--line); margin: 6px 0; overflow: hidden; }
.lzs-gauge-fill { height: 100%; background: var(--ok); border-radius: 5px; transition: width .3s ease; }
.lzs-gauge.is-low .lzs-gauge-fill { background: var(--low); }
.lzs-gauge[data-phase="charging"] .lzs-gauge-fill { background: var(--charge); }
.lzs-gauge[data-phase="continuous"] .lzs-gauge-fill, .lzs-gauge[data-phase="keepWarm"] .lzs-gauge-fill { background: var(--accent); }
.lzs-gauge-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; line-height: 1.35; }
.lzs-gauge-phase { font-weight: 600; }
.lzs-gauge-est { color: var(--muted); }

/* ---------- dock: the legend drawer, sticky at the bottom on phones (the time bar sits in the page flow) ---------- */
.lzs-dock {
  position: sticky; bottom: 0; z-index: 30; background: var(--paper); color: var(--ink);
  border-radius: 14px 14px 0 0; box-shadow: inset 0 1px 0 var(--line), 0 -6px 20px rgba(17, 20, 24, .10);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* legend */
.lzs-legend { color: var(--ink); }
.lzs-legend-handle {
  position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 16px 4px;
  background: transparent; border: 0; cursor: pointer; text-align: left;
}
.lzs-legend-grip { position: absolute; top: 4px; left: 50%; width: 32px; height: 3px; margin-left: -16px; border-radius: 2px; background: rgba(17, 20, 24, .22); }
.lzs-legend-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); flex: none; }
.lzs-legend-htitle { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lzs-legend-chev { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform .2s; }
.lzs-legend.is-open .lzs-legend-chev { transform: rotate(180deg); }
.lzs-legend-body { display: none; padding: 8px 16px 12px; max-height: 40vh; overflow: auto; border-top: 1px solid var(--line); }
.lzs-legend.is-open .lzs-legend-body { display: block; }
.lzs-legend-kicker-desk { display: none; }
.lzs-legend-title { display: none; margin: 0 0 4px; font-size: 16px; font-weight: 650; line-height: 1.25; color: var(--ink); }
.lzs-legend-text { margin: 0 0 10px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.lzs-legend-buttons { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lzs-legend-buttons li { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; }
.lzs-legend-buttons li.is-none .lzs-meaning { color: var(--muted); }
.lzs-legend-buttons li.is-none .lzs-key { color: var(--muted); border-color: var(--line); }
/* button-name chips: outlined pills (the site's chip: paper, hairline) */
.lzs-key {
  display: inline-flex; justify-content: center; align-items: center; height: 24px; padding: 0 6px; white-space: nowrap;
  border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: 12px; font-weight: 700; color: var(--ink); background: var(--paper);
}
.lzs-meaning { color: var(--ink-soft); }

/* time bar: a compact light block under the panel, in the page flow (never sticky, never over the panel).
   One grid: phones = speed controls | clock, then the full-width track; desktop (below) = ONE thin row. */
.lzs-timebar {
  position: relative; background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-soft); border-radius: 12px; padding: 6px 12px 3px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "left sky" "track track";
  align-items: center; column-gap: 8px;
}
.lzs-tb-left { grid-area: left; }
.lzs-tb-sky { grid-area: sky; }
.lzs-tb-info { grid-area: info; }
.lzs-tb-trackwrap { grid-area: track; }
.lzs-tb-slot { display: flex; align-items: center; gap: 4px; min-width: 0; }
.lzs-sp {
  min-height: 36px; min-width: 38px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); cursor: pointer; flex: 0 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; line-height: 1; white-space: nowrap;
}
.lzs-sp b { font-size: 13px; font-weight: 700; }
.lzs-sp small { font-size: 11px; color: var(--muted); }
.lzs-sp svg { width: 16px; height: 16px; flex: none; }
.lzs-sp:hover { border-color: var(--ink-soft); }
.lzs-sp[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lzs-sp[aria-pressed="true"] small { color: var(--accent-ink); }
.lzs-timebar.is-busy .lzs-sp { opacity: .55; }

.lzs-tb-sky { display: flex; align-items: center; gap: 8px; }
.lzs-tb-arcbox { display: block; width: 46px; flex: none; }
.lzs-tb-arc { width: 100%; height: auto; display: block; overflow: visible; }
.lzs-arc-path { fill: none; stroke: rgba(24, 27, 31, .38); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.lzs-arc-horizon { stroke: rgba(24, 27, 31, .28); stroke-width: 1.5; }
.lzs-sun-disc { fill: var(--accent); }
.lzs-sun-halo { fill: var(--accent); opacity: .2; }
.lzs-moon-disc { fill: var(--muted); }
.lzs-timebar.is-night .lzs-arc-path { stroke: rgba(24, 27, 31, .24); }
.lzs-tb-clock { display: flex; flex-direction: column; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lzs-tb-time { font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.lzs-timebar.is-drag .lzs-tb-time { color: var(--accent-text); }
.lzs-timebar.is-drag.is-back .lzs-tb-time { color: var(--back); }
.lzs-tb-day { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.lzs-tb-info { display: none; }
/* the clock carries seconds (so you can see it running): a fixed width keeps the row from jiggling */
.lzs-tb-time { min-width: 7.6ch; }
/* the restart arrow right beside the clock */
.lzs-tb-restart {
  flex: none; width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer;
}
.lzs-tb-restart svg { width: 20px; height: 20px; }
.lzs-tb-restart:hover { border-color: var(--accent-deep); color: var(--accent-text); }
.lzs-tb-restart:active { transform: rotate(-40deg); transition: transform .12s; }

/* track geometry: marker-label band, track and hour labels; the marker lines run from the top of the label band to
   just under the bar, ONE continuous line each (--tb-mk + --tb-tr / 2 - 7 px above the wrap's bottom edge) */
.lzs-tb-trackwrap { --tb-mk: 14px; --tb-tr: 28px; --tb-hr: 13px; position: relative; margin-top: 2px; min-width: 0; }
/* timer markers: a label band over the track (Auto-heat hangs left of its tick, Lunch right of its tick) */
.lzs-tb-marks { position: relative; height: var(--tb-mk); }
.lzs-tb-mark {
  position: absolute; bottom: 0; display: flex; align-items: baseline; gap: 4px; padding: 0 5px 1px; white-space: nowrap;
  font-size: 10.5px; line-height: 12px; font-weight: 700; letter-spacing: .02em;
}
.lzs-tb-mark em { font-style: normal; }
.lzs-tb-mark small { font-size: 10px; font-weight: 600; opacity: .8; display: none; }
.lzs-tb-mlong { display: none; }
/* heating = orange, lunch = green (Uzair 2026-11-02): the LINES are --accent / --ok; the labels use the same hues one
   step darker so the 10.5-px text passes 4.5:1 on the light bar */
.lzs-tb-mark.is-heat { color: var(--accent-text); transform: translateX(-100%); }
.lzs-tb-mark.is-heat.is-flip { transform: none; }
.lzs-tb-mark.is-meal { color: var(--ok-text); }
.lzs-tb-mark.is-meal.is-flip { transform: translateX(-100%); }
.lzs-tb-mark.is-mute em, .lzs-tb-mark.is-mute small { visibility: hidden; }
.lzs-tb-track { position: relative; height: var(--tb-tr); cursor: pointer; touch-action: none; border-radius: 8px; }
/* the hit area reaches 8 px past the drawn track on both sides (44 px on phones, 40 px on desktop) */
.lzs-tb-track::before { content: ""; position: absolute; left: -4px; right: -4px; top: -8px; bottom: -8px; }
.lzs-tb-daylight, .lzs-tb-fill {
  position: absolute; left: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; pointer-events: none;
}
.lzs-tb-daylight {
  right: 0; width: 100%;
  /* hard stops, not a blend: night (12–6 AM, 6 PM–12 AM) a darker grey than the day */
  background: linear-gradient(90deg, #C5CAD1 0 25%, var(--bg-3) 25% 75%, #C5CAD1 75% 100%);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.lzs-tb-fill { background: var(--accent); border-radius: 3px 0 0 3px; }
.lzs-tb-tick {
  position: absolute; top: 0; bottom: calc(var(--tb-hr) + var(--tb-tr) / 2 - 7px); width: 2px; margin-left: -1px;
  border-radius: 1px; pointer-events: none; z-index: 1;
}
.lzs-tb-trackwrap:has(.lzs-tb-marks.is-preview) .lzs-tb-tick { opacity: .85; }
.lzs-tb-tick.is-heat { background: var(--accent); }
.lzs-tb-tick.is-meal { background: #1f9d55; }
.lzs-tb-ghost { position: absolute; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; background: var(--ink-soft); border-radius: 1px; pointer-events: none; }
.lzs-timebar.is-back .lzs-tb-ghost { background: var(--back); }
/* a slim dark drag handle on the fill's clean edge (the whole track + its margin is the hit area) */
.lzs-tb-handle {
  position: absolute; top: 50%; width: 4px; height: 20px; margin: -10px 0 0 -2px; border-radius: 2px; z-index: 1;
  background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 1px 3px rgba(17, 20, 24, .3); pointer-events: none;
}
.lzs-timebar.is-drag .lzs-tb-handle { height: 24px; margin-top: -12px; }
.lzs-tb-track:focus-visible { outline-offset: 0; }
.lzs-tb-ticks { position: relative; height: var(--tb-hr); margin: 0 2px; font-size: 9.5px; line-height: 12px; color: var(--muted); }
.lzs-tb-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.lzs-tb-ticks span:first-child { transform: none; }
.lzs-tb-ticks span:last-child { transform: translateX(-100%); }

/* small phones: a smaller clock so the speed buttons keep their room; from 600 px the status / timer summary */
@media (max-width: 479px) {
  .lzs-tb-arcbox { display: none; }
  .lzs-tb-time { font-size: 15px; }
  .lzs-tb-day { font-size: 10px; }
  .lzs-tb-sky { gap: 5px; }
  .lzs-tb-restart { width: 32px; height: 32px; }
  .lzs-tb-restart svg { width: 18px; height: 18px; }
  .lzs-tb-slot { gap: 3px; }
  .lzs-sp { min-width: 34px; padding: 0 6px; }
  .lzs-sp:not(.lzs-sp-next) small { display: none; }
}
@media (min-width: 600px) {
  .lzs-tb-mlong { display: inline; }
  .lzs-tb-mshort { display: none; }
  .lzs-tb-mark small { display: inline; }
  .lzs-timebar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "left sky info" "track track track"; }
  .lzs-tb-info {
    display: flex; flex-direction: column; align-items: flex-end; min-width: 0; font-size: 12px; line-height: 1.25;
    color: var(--muted); text-align: right;
  }
  .lzs-tb-info > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lzs-tb-timer { color: var(--ink); font-weight: 600; }
  .lzs-tb-timer:empty { display: none; }
}

/* ---------- tooltip (fixed, from the target's box) ---------- */
.lzs-tip {
  position: fixed; z-index: 1000; max-width: min(300px, calc(100vw - 16px)); padding: 10px 12px; border-radius: 10px;
  background: var(--paper); color: var(--ink-soft); font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  border: 1px solid var(--line); box-shadow: var(--shadow); pointer-events: none; display: flex; flex-direction: column; gap: 3px;
}
.lzs-tip-title { font-weight: 700; color: var(--ink); }
.lzs-tip-text { color: var(--ink-soft); }
.lzs-tip-live { color: var(--ink-soft); font-weight: 600; padding-top: 2px; border-top: 1px solid var(--line); margin-top: 2px; }
.lzs-tip-states { display: flex; flex-direction: column; gap: 1px; color: var(--ink-soft); }
/* state words (tooltips.js data-c): the LED / icon colour names, darkened to read on the light tip; "white" = ink */
.lzs-tip-word { font-weight: 800; letter-spacing: .02em; color: var(--muted); }
.lzs-tip-word[data-c="orange"] { color: var(--accent-text); }
.lzs-tip-word[data-c="green"] { color: var(--ok-text); }
.lzs-tip-word[data-c="blue"] { color: var(--charge-text); }
.lzs-tip-word[data-c="red"] { color: var(--low-text); }
.lzs-tip-word[data-c="white"] { color: var(--ink); }
.lzs-tip-word[data-c="muted"] { color: var(--muted); }
.lzs-tip-text:empty { display: none; }
.lzs-tip[hidden], .lzs-tip-live[hidden], .lzs-tip-states[hidden] { display: none; }
/* phones (§7.11): a full-width strip just below the stage (tooltips.js sets its top), never over the device */
.lzs-tip.is-strip { left: 8px; right: 8px; max-width: none; }

/* ---------- tablet + desktop (>= 600 px): the WHOLE applet fits 97 % of the viewport height (Uzair, round 2).
   shell.js measures everything that is not the stage (title block, time bar, legend / caption band, controls, gauge,
   gaps; ResizeObserver) and sets --stage-max-h = 0.97 * innerHeight - that; the stage's width follows the photo's
   aspect, centred. A taller legend or caption band therefore shrinks the photo instead of overflowing. ---------- */
@media (min-width: 600px) {
  .lzs-stage { align-self: center; width: min(100%, calc(var(--stage-max-h, 100000px) * var(--panel-aspect, 1.36))); }
  .lzs-head { padding: 8px 16px 2px; }
}

/* ---------- desktop: the panel across the content width (within the budget above), the thin time bar under it;
   everything descriptive below that: the legend as a wide short band, then the controls + battery gauge in one row */
@media (min-width: 900px) {
  .lzs {
    display: grid; column-gap: 16px; row-gap: 8px; padding: 0 20px 12px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    grid-template-areas: "head head" "stage stage" "bar bar" "legend legend" "controls gauge";
    align-items: start;
  }
  /* the small print takes its own implicit row across every column, whatever areas the in-graphic modes below define
     (a named area that a mode's template lacks would create implicit columns and squeeze the stage) */
  .lzs-disclaimer { grid-column: 1 / -1; margin: 0; }
  .lzs-head { grid-area: head; padding: 8px 0 0; }
  .lzs-head .lzs-title { font-size: 19px; }
  .lzs-toasts { position: absolute; top: 10px; left: 8px; right: 8px; bottom: auto; }
  .lzs-main, .lzs-dock { display: contents; }
  .lzs-stage { grid-area: stage; justify-self: center; }
  .lzs-bar-host { grid-area: bar; }
  .lzs-band-host { grid-area: legend; display: none; }
  .lzs-controls-host { grid-area: controls; }
  .lzs-gauge-host { grid-area: gauge; align-self: stretch; }

  /* the thin time bar: speed controls | track | clock + ↺, one row (≈ 56 px) */
  .lzs-timebar {
    grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "left track sky";
    column-gap: 16px; padding: 3px 14px 2px 10px;
  }
  .lzs-tb-trackwrap { --tb-mk: 13px; --tb-tr: 24px; --tb-hr: 12px; margin-top: 0; }
  /* the status / timer line is read out (aria-live) but not drawn; the clock's title repeats it on hover */
  .lzs-tb-info {
    display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .lzs-tb-sky { gap: 6px; }
  .lzs-tb-time { font-size: 16px; }

  /* the legend: a wide short band — title + sentence on the left, the button rows as a 2–3-column grid */
  .lzs-legend { grid-area: legend; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-soft); border-radius: var(--r); }
  .lzs-legend-handle { display: none; }
  .lzs-legend-body, .lzs-legend.is-open .lzs-legend-body {
    display: grid; max-height: none; border: 0; padding: 10px 16px; min-height: 64px;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 2.1fr); column-gap: 10px; align-items: baseline;
    grid-template-rows: auto 1fr;
  }
  /* "WHAT IS HAPPENING NOW  <title>" on one line, the sentence under it, the button rows to the right */
  .lzs-legend-kicker-desk { display: block; margin: 0; grid-column: 1; grid-row: 1; }
  .lzs-legend-title { display: block; grid-column: 2; grid-row: 1; margin: 0; font-size: 15px; }
  .lzs-legend-text { grid-column: 1 / span 2; grid-row: 2; margin: 2px 0 0; }
  .lzs-legend-buttons {
    grid-column: 3; grid-row: 1 / span 2; align-self: center; margin-left: 14px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px;
  }
  .lzs-legend-buttons li { grid-template-columns: 84px 1fr; }

  /* during a film the caption band takes the legend's place: heading left, the lines (scrolling) right */
  .lzs.is-film .lzs-band-host { display: block; }
  .lzs.is-film .lzs-legend { display: none; }
  .lzs-caption {
    display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.1fr); column-gap: 24px;
    grid-template-areas: "head lines" "prog prog"; padding: 12px 16px;
  }
  .lzs-caption[hidden] { display: none; }
  .lzs-cap-head { grid-area: head; flex-direction: column; align-items: stretch; margin-bottom: 0; }
  .lzs-cap-try { align-self: flex-start; min-height: 36px; }
  .lzs-cap-lines { grid-area: lines; max-height: 162px; gap: 4px; }
  .lzs-cap-progress { grid-area: prog; margin-top: 10px; }

  /* controls + gauge: one row of boxes under the legend */
  .lzs-controls { display: flex; flex-wrap: wrap; }
  .lzs-controls > .lzs-ctl { flex: 1 1 0; }
  .lzs-controls > .lzs-ctl-intro { flex: 1.35 1 0; flex-basis: 0; }
  /* one line each (the full text is the button's tip): the row stays as low as the Charger box */
  .lzs-ctl-intro .lzs-ctl-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lzs-controls > .lzs-ctl-box { flex: 1.6 1 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .lzs-ctl-box.has-sensor .lzs-ctl-actions { flex-direction: row; }
  .lzs-ctl-box .lzs-ctl-actions { flex: 0 1 auto; }
  .lzs-ctl-box .lzs-ctl-btn { flex: 0 0 auto; }
  .lzs-ctl-box .lzs-seg { flex: 0 0 auto; }
  .lzs-ctl-box .lzs-seg button { min-width: 46px; padding: 0 8px; }
  .lzs-ctl-label { font-size: 13.5px; }
  .lzs-gauge { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 4px 12px; }
  .lzs-gauge-pct { font-size: 16px; }
  .lzs-gauge-bar { margin: 3px 0; height: 7px; }
  .lzs-gauge-foot { font-size: 12px; }
}
/* narrow desktops: the arc gives its room to the track; the Pro's controls wrap under one another sooner */
@media (min-width: 900px) and (max-width: 1099px) {
  .lzs-tb-arcbox { display: none; }
  .lzs-timebar { column-gap: 12px; }
  .lzs-controls > .lzs-ctl-intro { flex: 1 1 100%; }
}

/* ---------- "still being built" notice (a device whose firmware / panel / skin is missing) ---------- */
.lzs.lzs-is-notice { display: block; padding-bottom: 16px; }
.lzs-notice {
  margin: 4px 16px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid #FFD2B0; background: var(--accent-tint);
  display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45;
}
@media (min-width: 900px) { .lzs-is-notice .lzs-notice { margin: 4px 0 0; } }
.lzs-notice code { font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

/* ---------- the model picker (Core · Junior · Pro), rendered by the page above the simulator; the shell moves it into
   the left gutter stack (tablet + desktop) or the row under the H1 (phones), §7.12 ---------- */
.lzs-devices {
  max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #5F666F;
}
/* (outside .lzs until main.js moves it in, so literal Redesign 3 values, not the tokens) */
.lzs-devices a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(17, 20, 24, .17);
  background: #FCFCFD; color: #181B1F; text-decoration: none;
}
.lzs-devices a:hover { border-color: #464C54; }
.lzs-devices a[aria-current="page"] { background: #181B1F; border-color: #181B1F; color: #fff; }
.lzs-devices a:focus-visible { outline: 3px solid #E5651A; outline-offset: 2px; }
@media (min-width: 900px) { .lzs-devices { padding: 0 20px; } }
/* inside the simulator: ONE segmented control (a paper card, the current model filled with ink like the old chip) */
.lzs .lzs-devices {
  max-width: none; margin: 0; padding: 3px; flex-wrap: nowrap; gap: 2px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); color: var(--ink-soft);
}
.lzs .lzs-devices a {
  flex: 1 1 auto; justify-content: center; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink-soft); white-space: nowrap;
}
.lzs .lzs-devices a:hover { background: var(--bg-2); color: var(--ink); }
.lzs .lzs-devices a[aria-current="page"] { background: var(--ink); color: #fff; }
.lzs .lzs-devices a:focus-visible { outline-offset: 1px; }
.lzs .lzs-devices-label { display: none; }
.lzs-head-row .lzs-devices { flex: 0 1 auto; min-width: 0; font-size: 13px; }

/* ---------- Pro: the screen's battery bars in the gauge ---------- */
.lzs-gauge-bars { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 4px; }
.lzs-gauge-bars i { width: 5px; height: 10px; border-radius: 1px; background: var(--bg-3); border: 1px solid var(--line-strong); }
.lzs-gauge-bars i.is-on { background: var(--ok); border-color: var(--ok); }
.lzs-gauge-bars b { font-size: 12px; line-height: 10px; color: var(--charge-text); margin-left: 2px; }
.lzs-gauge-bars b[hidden] { display: none; }

/* ---------- in-graphic controls (§7.9, ui/ingraphic.js): tablet + desktop put the battery + charger LEFT of the
   device (in the wide crop's blank gutter), the container buttons INSIDE the see-through tray and intro / factory
   reset RIGHT of the device, bottom; phones collapse them into a hamburger drawer in the dock. The old row goes. */
.lzs.is-ig .lzs-controls-host, .lzs.is-ig .lzs-gauge-host,
.lzs.is-menu .lzs-controls-host, .lzs.is-menu .lzs-gauge-host { display: none; }
@media (min-width: 900px) {
  .lzs.is-ig { grid-template-areas: "head head" "stage stage" "bar bar" "legend legend"; }
}
/* the wire (skins/charger.py) fades in / out with the charger toggle */
.lz-charger { transition: opacity .25s ease; }

/* the switch inside the charger toggle (every placement): grey track + white knob off; the knob turns orange on */
.lzs-switch {
  flex: none; position: relative; width: 30px; height: 18px; margin-left: auto; border-radius: 9px; background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .15s;
}
.lzs-switch span {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px var(--line-strong), 0 1px 2px rgba(17, 20, 24, .25); transition: transform .15s, background .15s;
}
.lzs-ctl[aria-pressed="true"] .lzs-switch { background: #FFD9BC; box-shadow: inset 0 0 0 1px var(--accent); }
.lzs-ctl[aria-pressed="true"] .lzs-switch span { transform: translateX(12px); background: var(--accent); box-shadow: 0 1px 2px rgba(17, 20, 24, .3); }
.lzs-gauge-cell { display: flex; align-items: center; gap: 0; }
.lzs-gauge-cell .lzs-gauge-bar { flex: 1 1 auto; min-width: 0; }
.lzs-gauge-nub, .lzs-gauge-word { display: none; }

/* the layer over the stage (below the scenario chips and toasts); sizes follow the panel's width (--lzs-pw) */
.lzs-ig {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  font-size: clamp(11px, calc(var(--lzs-pw, 900px) * .0122), 14px);
}
.lzs-ig > div { position: absolute; pointer-events: none; }
.lzs-ig > div > * { pointer-events: auto; }
.lzs-ig .lzs-ctl, .lzs-ig .lzs-gauge {
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.lzs-ig .lzs-ctl > svg { color: var(--muted); width: 1.6em; height: 1.6em; }
.lzs-ig .lzs-ctl-label { color: var(--ink); font-size: 1em; }
.lzs-ig .lzs-ctl-value { color: var(--muted); font-size: .84em; }
.lzs-ig .lzs-ctl:hover { border-color: var(--line-strong); }
.lzs-ig .lzs-ctl[aria-pressed="true"] { border-color: var(--accent); background: var(--paper); }
.lzs-ig .lzs-ctl[aria-pressed="true"] > svg { color: var(--accent-text); }

/* left: battery on top, the charger toggle under it, centred on the wire's plug (the stack's right edge) */
.lzs-ig-left {
  --tog-h: 44px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  transform: translateY(calc(-100% + var(--tog-h) / 2));
}
/* with the picker + menu on top (§7.12) the stack starts at the top of the gutter and reaches the plug: an auto margin
   under the menu keeps the food / battery / charger cards on the plug; with too little room the stack grows DOWN
   (past the plug, by the overflow) and never up over the title */
.lzs-ig-left.is-tall { transform: none; min-height: calc(var(--stack-h, 0px) + var(--tog-h) / 2); }
.lzs-ig-left > .lzs-scn { margin-bottom: auto; }
.lzs-ig-left .lzs-devices { font-size: .92em; box-shadow: var(--shadow-sm); }
.lzs-ig-left .lzs-devices a { min-height: 2.5em; padding: 0 .3em; }
/* "Show me how to…": a full-width card like the fridge card (icon + label + chevron); its list opens below it over
   the left gutter only (--gut-l / --gut-w from ingraphic.js: the stage's left edge to the photo's left edge) */
.lzs-ig-left .lzs-scn-btn {
  width: 100%; min-height: 44px; padding: .4em .6em .4em .7em; gap: .55em; justify-content: flex-start;
  border-radius: 12px; border-color: var(--line); background: var(--paper); box-shadow: var(--shadow-sm);
  font-size: 1em; font-weight: 600; line-height: 1.2; text-align: left; white-space: normal;
}
.lzs-ig-left .lzs-scn-btn:hover { border-color: var(--line-strong); background: var(--paper); }
.lzs-ig-left .lzs-scn.is-open .lzs-scn-btn { border-color: var(--accent); }
.lzs-ig-left .lzs-scn-ico { display: block; flex: none; width: 1.6em; height: 1.6em; color: var(--accent-text); }
.lzs-ig-left .lzs-scn-long { flex: 1 1 auto; min-width: 0; }
.lzs-ig-left .lzs-scn-chev { flex: none; width: 1em; height: 1em; color: var(--muted); }
.lzs-ig-left .lzs-scn-list { left: var(--gut-l, 0px); right: auto; width: var(--gut-w, 100%); min-width: 0; max-width: none; padding: 4px; }
.lzs-ig-left .lzs-scn-list button { min-height: 30px; padding: 5px 9px; font-size: 12.5px; line-height: 1.25; }
.lzs-ig-left .lzs-scn-hint { padding: 6px 10px 7px; font-size: 12.5px; }
/* a narrow stack (tablets): the toggle keeps its icon + switch (its tip says the rest), the gauge drops the volts */
.lzs-ig-left { container-type: inline-size; }
@container (max-width: 124px) {
  .lzs-ig-left .lzs-ctl-charger .lzs-ctl-text { display: none; }
  .lzs-ig-left .lzs-gauge-volt { display: none; }
}
.lzs-ig-left .lzs-ctl-charger { height: var(--tog-h); min-height: var(--tog-h); padding: 0 8px; gap: 6px; border-radius: 12px 4px 4px 12px; }
.lzs-ig-left .lzs-ctl-charger .lzs-ctl-text { min-width: 0; }
.lzs-ig-left .lzs-ctl-charger .lzs-ctl-label, .lzs-ig-left .lzs-ctl-charger .lzs-ctl-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lzs-ig-left .lzs-gauge { padding: .55em .7em .5em; }
.lzs-ig-left .lzs-gauge-head { flex-wrap: wrap; gap: 0 .4em; }
.lzs-ig-left .lzs-gauge-title { flex-basis: 100%; margin: 0; font-size: .74em; color: var(--muted); }
.lzs-ig-left .lzs-gauge-pct { font-size: 1.6em; line-height: 1.1; color: var(--ink); }
.lzs-ig-left .lzs-gauge-volt { margin-left: auto; font-size: .86em; color: var(--muted); }
.lzs-ig-left .lzs-gauge-bars { display: none; }
.lzs-ig-left .lzs-gauge-cell { margin: .35em 0 .3em; }
/* a battery cell drawn in black lines: ink-soft outline + nub, a light-grey well */
.lzs-ig-left .lzs-gauge-bar {
  height: 1.15em; margin: 0; padding: 2px; border-radius: 4px; background: var(--bg-3); border: 1.5px solid var(--ink-soft);
}
.lzs-ig-left .lzs-gauge-fill { border-radius: 2px; }
.lzs-ig-left .lzs-gauge-nub { display: block; flex: none; width: 3px; height: .55em; border-radius: 0 2px 2px 0; background: var(--ink-soft); }
.lzs-ig-left .lzs-gauge-foot { font-size: .9em; }
.lzs-ig-left .lzs-gauge-phase, .lzs-ig-left .lzs-gauge-est { display: none; }
.lzs-ig-left .lzs-gauge-word { display: inline; font-weight: 700; color: var(--ink); }
.lzs-ig-left .lzs-gauge[data-phase="charging"] .lzs-gauge-word { color: var(--charge-text); }
.lzs-ig-left .lzs-gauge[data-phase="full"] .lzs-gauge-word { color: var(--ok-text); }
.lzs-ig-left .lzs-gauge[data-phase="continuous"] .lzs-gauge-word, .lzs-ig-left .lzs-gauge[data-phase="keepWarm"] .lzs-gauge-word { color: var(--accent-text); }
.lzs-ig-left .lzs-gauge.is-low .lzs-gauge-word { color: var(--low-text); }

/* the fridge card ("Replace with cold food") and Junior's lift card (Take container out / Put container in) sit at the
   top of the left stack, above the battery (round 3 of the food visual): paper cards, ink icons, 44-px targets. In the
   graphic the fridge card is icon + a two-line label (its tip says the rest); the lift card is two stacked 44-px rows,
   the one that applies enabled, the other dimmed. */
.lzs-ig-left .lzs-ctl-food { min-height: 44px; padding: .4em .7em; gap: .55em; }
.lzs-ig-left .lzs-ctl-food > svg { color: var(--ink-soft); }
.lzs-ig-left .lzs-ctl-food .lzs-ctl-label { white-space: normal; line-height: 1.2; }
.lzs-ig-left .lzs-ctl-food .lzs-ctl-value { display: none; }
@container (max-width: 124px) {
  .lzs-ig-left .lzs-ctl-food .lzs-ctl-label { font-size: .92em; }
  .lzs-ig-left .lzs-lift span { font-size: .9em; }
  .lzs-ig-left .lzs-devices a { padding: 0 .12em; font-size: .86em; }
  .lzs-ig-left .lzs-scn-ico { display: none; }
  .lzs-ig-left .lzs-scn-long { font-size: .92em; }
}

/* right, bottom: Pro's startup intro / Core's factory reset */
.lzs-ig-right { display: flex; flex-direction: column; align-items: stretch; gap: 6px; transform: translateY(-100%); }
.lzs-ig-right .lzs-ctl { min-height: 44px; padding: .45em .7em; gap: .5em; }
.lzs-ig-right .lzs-ctl > svg { color: var(--accent-text); }
.lzs-ig-right .lzs-ctl-intro .lzs-ctl-value { white-space: normal; }

/* right, top: the persistent tooltip slot (§7.11, Uzair: "Move them to a persistent tooltip location in the gutter").
   A paper card, always there; idle it says one quiet muted line, on hover / focus / tap the part's tip renders INSIDE
   it (the same .lzs-tip element, docked: no box of its own, no position). ingraphic.js sets left / top / width /
   max-height from the skin's anchors; a tip taller than the room left above the intro / reset card is cut with a fade. */
.lzs-ig > .lzs-ig-tip {
  display: block; box-sizing: border-box; overflow: hidden; padding: .6em .75em; border-radius: 10px;
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  line-height: 1.4;
}
.lzs-ig > .lzs-ig-tip[hidden] { display: none; }
.lzs-ig .lzs-ig-tip, .lzs-ig .lzs-ig-tip * { pointer-events: none; }
.lzs-ig-tip-idle { display: block; color: var(--muted); font-size: .92em; }
.lzs-ig-tip.is-active .lzs-ig-tip-idle { display: none; }
.lzs-ig-tip.is-clipped { -webkit-mask-image: linear-gradient(#000 calc(100% - 1.8em), transparent); mask-image: linear-gradient(#000 calc(100% - 1.8em), transparent); }
.lzs-tip.is-docked {
  position: static; z-index: auto; max-width: none; padding: 0; border: 0; border-radius: 0; background: none;
  box-shadow: none; font: inherit; gap: .25em;
}
.lzs-tip.is-docked .lzs-tip-title { font-size: 1.04em; }
.lzs-tip.is-docked .lzs-tip-states { gap: .15em; }

/* phones: the hamburger (44 px) top right of the stage opens the drawer in the dock */
.lzs .lzs-burger {
  position: absolute; top: 6px; right: 6px; z-index: 6; width: 44px; height: 44px; padding: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
}
.lzs-burger svg { width: 22px; height: 22px; }
.lzs .lzs-burger[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lzs-menu { padding: 4px 16px 12px; border-bottom: 1px solid var(--line); max-height: 58vh; overflow: auto; overscroll-behavior: contain; }
.lzs-menu-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.lzs-menu-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.lzs-menu-close {
  width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.lzs-menu-close:hover { background: var(--bg-2); }
.lzs-menu-close svg { width: 20px; height: 20px; }
.lzs-menu-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lzs-menu-body > .lzs-gauge { grid-column: 1 / -1; order: 0; }
.lzs-menu-body > .lzs-ctl-charger { order: 1; }
.lzs-menu-body > .lzs-ctl-intro, .lzs-menu-body > .lzs-ctl-reset { order: 2; }
.lzs-menu-body > .lzs-ctl-food, .lzs-menu-body > .lzs-ctl-lift { grid-column: 1 / -1; order: -1; }
.lzs-menu-body:not(:has(.lzs-ctl-intro, .lzs-ctl-reset)) > .lzs-ctl-charger { grid-column: 1 / -1; }
/* the drawer's cards: white on the paper dock, hairline borders (the row's own .lzs-ctl / .lzs-gauge look) */
.lzs-menu .lzs-ctl, .lzs-menu .lzs-gauge { background: #fff; border-color: var(--line); color: var(--ink); }
.lzs-menu .lzs-ctl > svg, .lzs-menu .lzs-ctl-head > svg { color: var(--muted); }
.lzs-menu .lzs-ctl-label { color: var(--ink); }
.lzs-menu .lzs-ctl-value, .lzs-menu .lzs-gauge-title, .lzs-menu .lzs-gauge-volt, .lzs-menu .lzs-gauge-est { color: var(--muted); }
.lzs-menu .lzs-gauge-pct { color: var(--ink); }
.lzs-menu .lzs-ctl[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
.lzs-menu .lzs-ctl[aria-pressed="true"] > svg, .lzs-menu .lzs-ctl-reset > svg, .lzs-menu .lzs-ctl-intro > svg { color: var(--accent-text); }
.lzs-menu .lzs-ctl-intro .lzs-ctl-value, .lzs-menu .lzs-ctl-reset .lzs-ctl-value { white-space: normal; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .lzs-toast, .lzs-chip { animation: none; }
  .lzs-toast, .lzs-gauge-fill, .lzs-legend-chev, .lz-charger, .lzs-switch, .lzs-switch span, .lzs-cap-lines li { transition: none; }
}
