/* =========================================================================
   EHO App · Bright and bold · the-mix.css                 (draft, 15 Oct 2026)
   Page styles for home/options/bright/the-mix.html. Load after eho-anim.css,
   bright.css and bento-board.css (the tiles and their mini-animations come
   from bento-board.css unchanged).

   The page is a mix of three options, so most of this is theirs, copied:
     k-   from choose-your-kitchen.html (the hero, the chooser, the fridge slider)
     tl-  from day-timeline.html (the sun bar and the moments of the day)
   and the new parts are mx-:
     1. Tints (five kitchens)   2. Hero and chooser   3. The board
     4. The day: bar and moments   5. Moment pieces   6. Arriving from a tile
     7. The team   8. Phones   9. Motion off
   Nothing here edits the shared kit: where a shared rule needed a tweak, it is
   overridden below under an mx- class and listed in the build report.
   ========================================================================= */

.k-skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--b-ink); color: #fff; font-weight: 700; text-decoration: none; }
.k-skip:focus { top: 12px; }
.mx-nobr { white-space: nowrap; }

/* ---------- 1. Tints: café butter, restaurant coral, schools & care lilac, takeaway sky, pub mint ---------- */
:root { --k-tint: var(--b-coral); --k-soft: #fff1eb; }
[data-kitchen="cafe"] { --k-tint: var(--b-butter); --k-soft: #fff7dc; }
[data-kitchen="schools"] { --k-tint: var(--b-lilac); --k-soft: #f5f1ff; }
[data-kitchen="takeaway"] { --k-tint: var(--b-sky); --k-soft: #eef5ff; }
[data-kitchen="pub"] { --k-tint: var(--b-mint); --k-soft: #ebf8f0; }
.k-tinted { background-color: var(--k-tint); transition: background-color .7s var(--b-out); }

/* ---------- 2. Hero and chooser (choose-your-kitchen.html) ---------- */
.k-hero { margin: clamp(8px, 1.2vw, 18px) clamp(0px, 1.2vw, 18px) 0; border-radius: var(--b-r-xl); }
.k-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; padding-block: clamp(36px, 5.5vw, 80px) clamp(30px, 4vw, 56px); }
.k-hero-copy { display: grid; gap: 22px; justify-items: start; }
.k-hero .b-display { font-size: clamp(66px, 9.4vw, 138px); }
.k-hero .b-lede { color: #2c2a24; }
.k-for { display: flex; gap: 12px; align-items: flex-start; max-width: 32em; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .7); font-size: 16.5px; line-height: 1.45; }
.k-for .b-ichip { --b-ichip-size: 40px; }
.k-for .b-ichip .b-icon { --b-icon-size: 26px; --b-icon-stroke: 3px; }
.k-for b { font-weight: 700; }

.k-choose { margin: 0; padding: clamp(18px, 2.4vw, 28px); border: var(--b-border); border-radius: var(--b-r-lg); background: var(--b-paper); box-shadow: var(--b-shadow-lg); min-width: 0; }
.k-choose legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font: 800 clamp(32px, 3.4vw, 46px)/1 var(--b-font-head); letter-spacing: var(--b-track); }
.k-choose-hint { clear: both; margin: 0 0 16px; font-size: 14.5px; color: var(--b-dim); }
.k-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.k-opt { --k-c: var(--b-coral); position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 2px; min-height: 150px; padding: 12px 14px 14px; border-radius: 22px; background: var(--k-c); border: 2px solid transparent; cursor: pointer; transform: rotate(0deg); transition: transform .5s var(--b-spring), box-shadow .25s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.k-opt[data-k="cafe"] { --k-c: var(--b-butter); }
.k-opt[data-k="schools"] { --k-c: var(--b-lilac); }
.k-opt[data-k="takeaway"] { --k-c: var(--b-sky); }
.k-opt[data-k="pub"] { --k-c: var(--b-mint); }
.k-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.k-opt:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--b-ink); }
.k-opt:active { transform: scale(.97); transition-duration: .08s; }
.k-opt:has(input:checked) { border-color: var(--b-ink); box-shadow: 5px 5px 0 var(--b-ink); transform: rotate(-2.5deg) translate(-2px, -2px); }
.k-opt:nth-child(even):has(input:checked) { transform: rotate(2.5deg) translate(-2px, -2px); }
.k-opt:has(input:focus-visible) { outline: 3px solid var(--b-ink); outline-offset: 4px; }
.k-opt-art { height: 64px; display: flex; align-items: flex-end; }
.k-opt-art svg { height: 64px; width: auto; overflow: visible; }
.k-opt-name { font: 800 clamp(22px, 2.1vw, 27px)/1.05 var(--b-font-head); letter-spacing: -.03em; margin-top: 6px; }
.k-opt-sub { font-size: 13.5px; line-height: 1.3; color: #2c2a24; }
.k-opt-tick { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: var(--b-border); background: var(--b-paper); opacity: 0; transform: scale(.3) rotate(-30deg); transition: transform .5s var(--b-spring-big), opacity .15s; }
.k-opt-tick svg { width: 16px; height: 16px; }
.k-opt:has(input:checked) .k-opt-tick { opacity: 1; transform: none; background: var(--b-ink); color: var(--b-butter); }

/* five choices: three across, then two wider ones (the last row is never a lonely orphan) */
.mx-opts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mx-opts > .k-opt { grid-column: span 2; min-height: 146px; }
.mx-opts > .k-opt:nth-child(n+4) { grid-column: span 3; }
.mx-opts .k-opt-name { font-size: clamp(17px, 1.72vw, 25px); }
@media (min-width: 961px) and (max-width: 1180px) { .mx-opts > .k-opt { padding: 10px 11px 12px; } .mx-opts .k-opt-sub { font-size: 12.5px; } }
.mx-opts .k-opt-art, .mx-opts .k-opt-art svg { height: 56px; }
/* the rotation of the chosen card alternates by its place in the grid, not by odd and even */
.mx-opts > .k-opt:nth-child(even):has(input:checked) { transform: rotate(-2.5deg) translate(-2px, -2px); }
.mx-opts > .k-opt:nth-child(2):has(input:checked), .mx-opts > .k-opt:nth-child(5):has(input:checked) { transform: rotate(2.5deg) translate(-2px, -2px); }

/* the film, with stickers that change with the kitchen */
.k-film { position: relative; padding-bottom: clamp(36px, 5vw, 64px); }
.k-film-frame { position: relative; max-width: 1080px; margin-inline: auto; padding: clamp(10px, 1.4vw, 16px) clamp(10px, 1.4vw, 16px) 4px; border: var(--b-border); border-radius: var(--b-r-xl); background: var(--b-paper); box-shadow: var(--b-shadow-lg); }
.k-film-frame .b-pin-tl { left: -3%; top: 16%; }
.k-film-frame .b-pin-tr { right: -2.5%; top: -20px; }
.k-film-frame .b-pin-br { right: 8%; bottom: -20px; }
@media (max-width: 640px) { .k-film-frame .b-pin-tl { left: 2%; top: -18px; } }

/* ---------- 3. The board ---------- */
.mx-board-sec { padding-block: clamp(64px, 8vw, 112px) clamp(56px, 7vw, 96px); }
.mx-board-wrap { position: relative; }
.mx-board {
  display: grid; gap: var(--bb-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, var(--bb-row));
  grid-template-areas:
    "checks checks  fridge label"
    "deliv  allergy cool   label"
    "qr     allergy insp   insp";
}
a.bb-tile { text-decoration: none; }
.mx-board .bb-th { padding-right: 98px; }
.bb-tile { scroll-margin-top: 12px; }   /* html's scroll-padding already clears the nav */

/* the time of the tile's moment, and where tapping takes you (down the page, to that moment of the day) */
.mx-go { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 9px 0 13px; border: var(--b-border); border-radius: 999px; background: var(--b-paper); color: var(--b-ink); font: 800 15px/1 var(--b-font-head); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: transform .5s var(--b-spring), background-color .25s, color .25s, border-color .25s; }
.mx-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--b-spring); }
.bb-tile:hover .mx-go, .bb-tile:focus-visible .mx-go { transform: rotate(-3deg) scale(1.05); background: var(--b-butter); }
.bb-tile:hover .mx-go svg, .bb-tile:focus-visible .mx-go svg { transform: translateY(2px); }
.bb-tile--ink .mx-go { border-color: var(--b-on-ink); background: var(--b-ink); color: var(--b-on-ink); }
.bb-tile--ink:hover .mx-go, .bb-tile--ink:focus-visible .mx-go { background: var(--b-butter); color: var(--b-ink); border-color: var(--b-butter); }

/* the tile whose turn it is: an ink ring and an ink time (butter on the ink tile) */
.bb-tile.is-now { box-shadow: inset 0 0 0 2.5px var(--b-ink); }
.bb-tile.is-now .mx-go { background: var(--b-ink); color: var(--b-butter); border-color: var(--b-ink); }
.bb-tile--ink.is-now { box-shadow: inset 0 0 0 2.5px var(--b-butter); }
.bb-tile--ink.is-now .mx-go { background: var(--b-butter); color: var(--b-ink); border-color: var(--b-butter); }
@media (hover: hover) {
  .bb-tile.is-now:hover { box-shadow: inset 0 0 0 2.5px var(--b-ink), 6px 6px 0 var(--bb-hover); }
}
/* back from a moment: the tile you came from says so for a moment */
.bb-tile.mx-flash { animation: mx-flash 1.6s var(--b-out); }
@keyframes mx-flash { 0%, 55% { box-shadow: inset 0 0 0 3px var(--b-ink), 0 0 0 6px var(--b-butter), 0 0 0 8px var(--b-ink); } 100% { box-shadow: inset 0 0 0 0 transparent, 0 0 0 0 transparent; } }
.b-motion-off .bb-tile.mx-flash { animation: none; box-shadow: inset 0 0 0 3px var(--b-ink), 0 0 0 6px var(--b-butter), 0 0 0 8px var(--b-ink); }

/* "Tap a tile": a sticker on the board's top edge (it never loops) */
.mx-board-head { margin-bottom: clamp(48px, 5vw, 64px); }
.mx-hint { position: absolute; z-index: 6; top: -12px; right: 18px; gap: 6px; padding: 7px 14px 7px 16px; font-size: 14.5px; box-shadow: 3px 3px 0 var(--b-ink); --b-tilt: -3deg; transform: translateY(-100%) rotate(var(--b-tilt)); pointer-events: none; }
.mx-hint svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1100px) {
  .mx-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, var(--bb-row));
    grid-template-areas:
      "checks checks fridge"
      "label  deliv  allergy"
      "label  cool   allergy"
      "qr     insp   insp";
  }
  /* a third of the width: the time pill gets smaller and the one-column tiles drop their icon for the name */
  .mx-board .bb-th { padding-right: 80px; }
  .mx-go { gap: 3px; padding: 0 8px 0 11px; font-size: 14px; }
  .mx-go svg { width: 13px; height: 13px; }
  .bb-a-fridge .bb-name .b-icon, .bb-a-label .bb-name .b-icon, .bb-a-deliv .bb-name .b-icon,
  .bb-a-allergy .bb-name .b-icon, .bb-a-cool .bb-name .b-icon, .bb-a-qr .bb-name .b-icon { display: none; }
}

/* ---------- 4. The day: the sun bar and the moments (day-timeline.html) ---------- */
:root { --tl-bar-h: 122px; }
.tl { --tl-bg: var(--b-butter); position: relative; background: var(--tl-bg); }
.tl-intro { padding-block: clamp(64px, 8vw, 110px) clamp(16px, 2vw, 24px); }
.tl-bar { position: sticky; top: var(--b-nav-h); z-index: 40; padding-block: 8px; }
.tl-bar-in { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 6px 22px 6px 18px; border: var(--b-border); border-radius: 26px; background: rgba(255, 253, 247, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--b-shadow); transition: background-color .5s, color .5s, box-shadow .5s; }
.tl-clock { display: grid; gap: 2px; min-width: 104px; }
.tl-clock b { font: 800 30px/1 var(--b-font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tl-clock span { font: 700 11.5px/1.2 var(--b-font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--b-dim); white-space: nowrap; }
.tl-track { position: relative; height: 84px; margin-inline: 34px; }
.tl-arc { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 30px; overflow: visible; }
.tl-arc path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .45; vector-effect: non-scaling-stroke; }
.tl-orb { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; transform: translate(var(--tl-x, 0px), var(--tl-y, 28px)); z-index: 2; }
.tl-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .5s, transform .6s var(--b-spring); }
.tl-orb .tl-moon { opacity: 0; transform: scale(.4) rotate(-40deg); }
.tl-bar.is-night .tl-orb .tl-sun { opacity: 0; transform: scale(.4) rotate(60deg); }
.tl-bar.is-night .tl-orb .tl-moon { opacity: 1; transform: none; }
.tl-times { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; margin: 0; padding: 0; list-style: none; }
.tl-times li { position: absolute; bottom: 0; left: calc(var(--p) * 100%); transform: translateX(-50%); }
.tl-times a { display: grid; place-items: center; min-width: 64px; min-height: 44px; padding: 0 12px; border-radius: 999px; font: 800 16px/1 var(--b-font-head); letter-spacing: -.01em; text-decoration: none; color: inherit; transition: background-color .25s, color .25s, transform .4s var(--b-spring); }
.tl-times a small { display: none; }
.tl-times a:hover { background: rgba(21, 20, 15, .08); }
.tl-times a[aria-current] { background: var(--b-ink); color: var(--b-on-ink); transform: translateY(-2px); }
.tl-times a:focus-visible { outline: 3px solid var(--b-ink); outline-offset: 2px; }
.tl-prog { display: none; }
.tl-bar.is-night .tl-bar-in { background: rgba(21, 20, 15, .94); color: var(--b-on-ink); box-shadow: 4px 4px 0 var(--b-butter); }
.tl-bar.is-night .tl-clock span { color: var(--b-on-ink-dim); }
.tl-bar.is-night .tl-times a:hover { background: rgba(255, 253, 247, .12); }
.tl-bar.is-night .tl-times a[aria-current] { background: var(--b-butter); color: var(--b-ink); }
.tl-bar.is-night .tl-times a:focus-visible { outline-color: var(--b-butter); }
/* ten stops: below 1000 px the times become a row of chips that scrolls sideways inside the bar */
@media (max-width: 1000px) {
  :root { --tl-bar-h: 66px; }
  .tl-bar { padding-block: 6px; }
  .tl-bar-in { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 6px 8px; border-radius: 20px; box-shadow: 3px 3px 0 var(--b-ink); }
  .tl-clock { display: none; }
  .tl-track { height: auto; margin: 0; }
  .tl-arc, .tl-track > .tl-orb { display: none; }
  .tl-times { position: static; height: auto; display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); padding-inline: 8px; }
  .tl-times::-webkit-scrollbar { display: none; }
  .tl-times li { position: static; transform: none; flex: none; scroll-snap-align: center; }
  .tl-times a { display: inline-flex; gap: 6px; min-height: 44px; padding: 0 12px; font-size: 15px; }
  .tl-times a small { display: inline; font: 500 13px var(--b-font-body); letter-spacing: 0; }
  .tl-prog { display: block; position: relative; height: 4px; margin: 2px 12px 0; border-radius: 2px; background: rgba(21, 20, 15, .14); }
  .tl-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--tl-p, 0) * 100%); border-radius: 2px; background: var(--b-ink); }
  .tl-prog .tl-orb { width: 20px; height: 20px; margin: -10px 0 0 -10px; top: 2px; transform: translateX(var(--tl-xp, 0px)); }
  .tl-bar.is-night .tl-prog { background: rgba(255, 253, 247, .2); }
  .tl-bar.is-night .tl-prog i { background: var(--b-butter); }
}

/* a moment of the day (a little tighter than day-timeline's: ten moments, not six) */
.tl-moment { position: relative; padding-block: clamp(56px, 6.4vw, 96px); scroll-margin-top: calc(var(--tl-bar-h) + 8px); background: var(--m-bg); }   /* + html's scroll-padding (the nav) */
.js .tl-moment:not(.tl-night) { background: transparent; }
.tl-moment:focus { outline: none; }
.tl-moment-in { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.tl-moment.tl-flip .tl-copy { order: 2; }
.tl-copy { display: grid; gap: 16px; justify-items: start; }
.tl-when { display: flex; align-items: center; gap: 14px; }
.tl-when time { font: 800 clamp(60px, 7.4vw, 112px)/.8 var(--b-font-head); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.tl-when .b-ichip { --b-ichip-size: 58px; }
.tl-copy h3 { font: 800 clamp(30px, 3.2vw, 46px)/1 var(--b-font-head); letter-spacing: var(--b-track); }
.tl-copy > p { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.5; max-width: 31em; color: #2c2a24; }
.tl-copy > p.tl-screen { font-size: 14.5px; }
.tl-screen { display: inline-block; padding: 7px 15px 7px 13px; border-radius: 18px; background: rgba(255, 255, 255, .72); font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.tl-screen::before { content: '📱'; font-size: 15px; margin-right: 7px; }
.tl-screen small { font-weight: 500; color: var(--b-dim); font-size: 13px; }

.tl-scene { position: relative; min-width: 0; border: var(--b-border); border-radius: var(--b-r-lg); background: var(--b-paper); box-shadow: var(--b-shadow-lg); overflow: hidden; }
.tl-scene svg.tl-art { display: block; width: 100%; height: auto; }
.tl-scene-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 18px 14px; border-top: 2px solid var(--b-ink); font-size: 14px; font-weight: 500; }
.tl-scene-cap b { font-weight: 700; }

.tl-app { display: grid; gap: 9px; width: 100%; max-width: 440px; padding: 14px; border-radius: 22px; background: var(--a-bg, #111210); box-shadow: 0 30px 50px -34px rgba(21, 20, 15, .7); }
.tl-app .a-row { max-height: none; }
.tl-app .a-row small { color: var(--a-dim, #8a8880); }
.tl-app-h { display: flex; align-items: center; gap: 10px; }
.tl-app-h b { font: 700 18px 'Barlow Condensed', sans-serif; }
.tl-app-h small { display: block; color: var(--a-dim, #8a8880); font-size: 12px; }
.tl-tag { font: 700 10px Barlow, sans-serif; letter-spacing: .5px; padding: 2px 8px; border-radius: 4px; background: var(--green-d, #14532d); color: var(--green, #22c55e); }
.tl-tag.red { background: var(--red-d, #7f1d1d); color: var(--red, #ef4444); }
.tl-tag.amber { background: var(--amber-d, #78450a); color: var(--amber, #f59e0b); }
.tl-tag.blue { background: var(--blue-d, #1e3a5f); color: #93c5fd; }

.tl-phone { --tl-s: .74; position: relative; width: calc(380px * var(--tl-s)); height: calc(796px * var(--tl-s)); flex: none; }
.tl-phone .dev { position: absolute; left: 0; top: 0; transform: scale(var(--tl-s)); transform-origin: 0 0; box-shadow: 0 50px 70px -40px rgba(21, 20, 15, .55), inset 0 0 0 2px #46463f, inset 0 0 0 5px #0c0c0b; }
.tl-phone-stage { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 32px); min-width: 0; }

/* open up: tick the checks (touch) */
.tl-tick { --tl-prog: 0; position: relative; border: var(--b-border); border-radius: var(--b-r-lg); background: var(--b-paper); box-shadow: var(--b-shadow-lg); overflow: hidden; }
.tl-tick-sky { position: relative; aspect-ratio: 480 / 150; background: linear-gradient(180deg, #d2e7ff, #fff3cf); border-bottom: 2px solid var(--b-ink); overflow: hidden; }
.tl-tick-sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tl-tick-sunny { transform: translateY(calc((1 - var(--tl-prog)) * 70px)); transition: transform .8s var(--b-spring); }
.tl-shutter { transform-origin: 50% 0; transform: scaleY(calc(1 - var(--tl-prog) * .86)); transition: transform .7s var(--b-out); }
.tl-open-sign { opacity: 0; transform: rotate(-8deg) scale(.4); transform-box: fill-box; transform-origin: center; transition: transform .55s var(--b-spring-big), opacity .15s; }
.tl-tick.is-done .tl-open-sign { opacity: 1; transform: rotate(-8deg) scale(1); }
.tl-tick-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 18px 20px 6px; }
.tl-tick-head p:first-child { font: 800 22px/1.1 var(--b-font-head); letter-spacing: -.02em; }
.tl-tick-head p:first-child small { display: block; margin-top: 4px; font: 500 13.5px var(--b-font-body); letter-spacing: 0; color: var(--b-dim); }
.tl-count { font: 800 46px/.9 var(--b-font-head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-count small { font-size: .5em; color: var(--b-dim); }
.tl-count.mx-bump { animation: tl-bump .45s var(--b-spring); }
@keyframes tl-bump { 40% { transform: scale(1.18) rotate(-3deg); } }
.tl-items { display: grid; gap: 8px; margin: 0; padding: 10px 16px 18px; list-style: none; }
.tl-item { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px 8px 10px; border-radius: 16px; background: var(--b-cream); cursor: pointer; transition: background-color .2s, transform .35s var(--b-spring); }
.tl-item:hover { background: #f0e9d8; }
.tl-item:active { transform: scale(.98); }
.tl-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tl-item:has(input:focus-visible) { outline: 3px solid var(--b-ink); outline-offset: 2px; }
.tl-box { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: var(--b-border); background: var(--b-paper); flex: none; transition: background-color .2s; }
.tl-box svg { width: 22px; height: 22px; overflow: visible; }
.tl-box path { fill: none; stroke: var(--b-ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s var(--b-out); }
.tl-item:has(input:checked) { background: var(--b-mint); }
.tl-item:has(input:checked) .tl-box { background: var(--b-butter); }
.tl-item:has(input:checked) .tl-box path { stroke-dashoffset: 0; }
.tl-item-t { flex: 1; font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.tl-item i { font-style: normal; font-size: 20px; }
.tl-tick-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 18px; }
.tl-tick-foot p { font-size: 14px; color: var(--b-dim); max-width: 24em; }
.tl-done-stk { position: absolute; right: 14px; top: 14px; z-index: 3; opacity: 0; transform: rotate(-5deg) scale(.3); transition: transform .6s var(--b-spring-big), opacity .15s; pointer-events: none; }
.tl-tick.is-done .tl-done-stk { opacity: 1; transform: rotate(-5deg) scale(1); }

/* delivery: the van (runs only while it is the one live scene) */
.tl-dl { --d: 8s; }
.is-live .tl-van { animation: tl-van var(--d) var(--b-out) infinite; }
@keyframes tl-van { 0% { transform: translateX(-340px); } 22% { transform: translateX(6px); } 26%, 100% { transform: none; } }
.tl-door { transform-box: fill-box; transition: none; }
.is-live .tl-door-l { animation: tl-door var(--d) ease infinite; transform-origin: 0 50%; }
.is-live .tl-door-r { animation: tl-door var(--d) ease infinite; transform-origin: 100% 50%; }
@keyframes tl-door { 0%, 27% { transform: scaleX(1); } 33%, 100% { transform: scaleX(.12); } }
.is-live .tl-crate { animation: tl-crate var(--d) var(--b-spring) infinite; }
@keyframes tl-crate { 0%, 33% { transform: translateX(-60px); opacity: 0; } 34% { opacity: 1; } 44%, 100% { transform: none; opacity: 1; } }
.is-live .tl-probe { animation: tl-probe var(--d) var(--b-out) infinite; }
@keyframes tl-probe { 0%, 44% { transform: translateY(-70px); opacity: 0; } 46% { opacity: 1; } 54%, 100% { transform: none; opacity: 1; } }
.tl-pop { transform-box: fill-box; transform-origin: center; }
.is-live .tl-dial { animation: tl-pop1 var(--d) var(--b-spring-big) infinite; }
@keyframes tl-pop1 { 0%, 55% { transform: scale(0); } 64%, 100% { transform: scale(1); } }
.is-live .tl-stamp { animation: tl-pop2 var(--d) var(--b-spring-big) infinite; }
@keyframes tl-pop2 { 0%, 66% { transform: scale(0) rotate(-40deg); } 74%, 100% { transform: scale(1); } }
.is-live .tl-dl-all { animation: tl-fade var(--d) linear infinite; }
@keyframes tl-fade { 0%, 92% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 1; } }
.is-live .tl-wheel { animation: tl-wheel var(--d) var(--b-out) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tl-wheel { 0% { transform: rotate(-720deg); } 24%, 100% { transform: none; } }

/* allergy order: ticket + the Log Allergen Event window */
.tl-ticket { position: relative; width: clamp(150px, 15vw, 190px); padding: 14px 14px 18px; background: #fffdf3; border: 2px solid var(--b-ink); box-shadow: var(--b-shadow); font: 700 13px/1.45 var(--b-font-mono); letter-spacing: .02em; transform: rotate(-3deg); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 92% 100%, 84% calc(100% - 7px), 76% 100%, 68% calc(100% - 7px), 60% 100%, 52% calc(100% - 7px), 44% 100%, 36% calc(100% - 7px), 28% 100%, 20% calc(100% - 7px), 12% 100%, 4% calc(100% - 7px), 0 100%); }
.tl-ticket p { margin: 0; }
.tl-ticket hr { border: 0; border-top: 2px dashed var(--b-ink); margin: 8px 0; }
.tl-ticket .tl-al { margin-top: 10px; padding: 7px 8px; border: 2px solid var(--b-ink); background: var(--b-coral); text-align: center; line-height: 1.3; }
.is-live .tl-ticket { animation: tl-print 7s var(--b-out) infinite; }
@keyframes tl-print { 0% { transform: translateY(-40px) rotate(-3deg); opacity: 0; } 8%, 100% { transform: rotate(-3deg); opacity: 1; } }
.is-live .tl-al { animation: tl-flash 7s ease infinite; }
@keyframes tl-flash { 0%, 9% { background: var(--b-paper); } 12%, 16% { background: var(--b-coral); transform: scale(1.06); } 20%, 100% { background: var(--b-coral); transform: none; } }
.tl-ae .a-chips span { font-size: 11.5px; padding: 6px 10px; }
.tl-ae .a-chips span[data-on] { background: var(--amber-d); border-color: var(--amber); color: var(--amber-l); }
.is-live .tl-ae .a-chips span[data-on="1"] { animation: tl-chip1 7s steps(1) infinite; }
.is-live .tl-ae .a-chips span[data-on="2"] { animation: tl-chip2 7s steps(1) infinite; }
@keyframes tl-chip1 { 0%, 26% { background: var(--a-s2); border-color: var(--a-border); color: var(--a-text); } 27%, 100% { background: var(--amber-d); border-color: var(--amber); color: var(--amber-l); } }
@keyframes tl-chip2 { 0%, 36% { background: var(--a-s2); border-color: var(--a-border); color: var(--a-text); } 37%, 100% { background: var(--amber-d); border-color: var(--amber); color: var(--amber-l); } }
.is-live .tl-ae [data-dish] { animation: tl-dish 7s steps(1) infinite; }
@keyframes tl-dish { 0%, 50% { color: var(--a-muted); } 51%, 100% { color: var(--a-text); } }
.is-live .tl-ae [data-logbtn] { animation: tl-press 7s ease infinite; }
@keyframes tl-press { 0%, 72% { transform: none; filter: none; } 75% { transform: scale(.95); filter: brightness(1.2); } 80%, 100% { transform: none; filter: none; } }
.tl-ae .sheet { padding-top: 6px; }
.tl-ae .sheet label { margin: 9px 0 5px; }
.tl-ae .sheet .a-input { min-height: 36px; padding: 6px 12px; font-size: 14px; }

/* cooling */
.mx-therm { width: clamp(130px, 13vw, 180px); height: auto; overflow: visible; flex: none; }
.tl-cool-card { margin-top: 2px; background: var(--a-s1, #1c1d1a); border: 1.5px solid var(--amber-d, #78450a); border-radius: 14px; padding: 14px; }
.tl-cool-card.is-pass { border-color: var(--a-border, #333430); }
.tl-cool-top { display: flex; align-items: center; gap: 10px; }
.tl-cool-top > i { font-style: normal; font-size: 26px; }
.tl-cool-top div { flex: 1; min-width: 0; }
.tl-cool-top b { display: block; font: 700 16px Barlow, sans-serif; }
.tl-cool-top small { display: block; color: var(--a-dim, #8a8880); font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.tl-cool-timer { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--a-s2, #252620); }
.tl-cool-ring { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--amber, #f59e0b); color: var(--amber, #f59e0b); font: 700 14px 'Barlow Condensed', sans-serif; flex: none; }
.tl-cool-timer b { display: block; font: 600 13px Barlow, sans-serif; }
.tl-cool-timer small { display: block; color: var(--a-dim, #8a8880); font-size: 11px; margin-top: 2px; }
.tl-cool-btn { margin-top: 10px; padding: 12px; border-radius: 8px; background: var(--amber, #f59e0b); color: #000; text-align: center; font: 700 15px 'Barlow Condensed', sans-serif; }
.tl-cool-btn.ok { margin-top: 8px; background: transparent; border: 1px solid var(--green-d, #14532d); color: var(--green, #22c55e); font-size: 14px; padding: 10px; }
.tl-cool-done { display: none; }
.tl-cool-card.is-pass .tl-cool-live { display: none; }
.tl-cool-card.is-pass .tl-cool-done { display: block; }
.tl-cool-done p { margin: 6px 0 0; color: var(--a-dim, #8a8880); font-size: 12px; }
.tl-cool-done p b { color: var(--a-text, #f0ede6); }
.tl-therm-fill { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--tl-lvl, .06)); }
.tl-ring-p { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--tl-ring, .96)); }
.is-live .tl-steam path { animation: tl-steam 2.6s ease-in-out infinite; }
.tl-steam path:nth-child(2) { animation-delay: .8s !important; }
.tl-steam path:nth-child(3) { animation-delay: 1.6s !important; }
@keyframes tl-steam { 0% { opacity: 0; transform: translateY(8px); } 45% { opacity: .9; } 100% { opacity: 0; transform: translateY(-16px); } }
.tl-steam { opacity: var(--tl-steam, 0); transition: opacity .5s; }

/* hot holding */
.is-live .tl-hand { animation: tl-hand 9s linear infinite; transform-origin: 96px 92px; }
@keyframes tl-hand { to { transform: rotate(360deg); } }
.is-live .tl-rdot { animation: tl-rdot 9s steps(1) infinite; }
.tl-rdot[data-h="4"] { animation-name: tl-rdot4 !important; }
.tl-rdot[data-h="6"] { animation-name: tl-rdot6 !important; }
@keyframes tl-rdot { 0%, 33% { fill: var(--b-paper); } 34%, 100% { fill: var(--b-ok); } }
@keyframes tl-rdot4 { 0%, 66% { fill: var(--b-paper); } 67%, 100% { fill: var(--b-ok); } }
@keyframes tl-rdot6 { 0%, 98% { fill: var(--b-paper); } 99%, 100% { fill: var(--b-ok); } }
.is-live .tl-needle { animation: tl-needle 3.2s ease-in-out infinite; transform-origin: 360px 118px; }
@keyframes tl-needle { 50% { transform: rotate(-6deg); } }
.is-live .tl-bubble { animation: tl-bub 1.8s ease-in infinite; }
.tl-bubble:nth-child(2) { animation-delay: .6s !important; } .tl-bubble:nth-child(3) { animation-delay: 1.2s !important; }
@keyframes tl-bub { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.tl-hold-card .a-eq-top b { font-size: 16px; }
.tl-hold-line { font-size: 12px; color: var(--a-dim, #8a8880); margin-top: 5px; }
.tl-hold-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.tl-hold-btns span, .tl-hold-out { padding: 9px; border-radius: 8px; text-align: center; font: 700 14px 'Barlow Condensed', sans-serif; }
.tl-hold-btns span:first-child { background: var(--amber, #f59e0b); color: #000; }
.tl-hold-btns span:last-child { background: var(--a-s2, #252620); color: var(--a-text, #f0ede6); }
.tl-hold-out { margin-top: 8px; border: 1px solid var(--a-border, #333430); color: var(--a-text, #f0ede6); }
.tl-pill { font: 700 11px 'Barlow Condensed', sans-serif; letter-spacing: .8px; padding: 4px 10px; border-radius: 20px; background: var(--green-d, #14532d); color: var(--green, #22c55e); }

/* close: the night block for kitchens that shut late (day kitchens keep the light) */
.tl-night { --m-bg: var(--b-ink); margin-inline: clamp(0px, 1.2vw, 18px); border-radius: var(--b-r-xl) var(--b-r-xl) 0 0; background: var(--b-ink); color: var(--b-on-ink); overflow: hidden; }
.tl-night .tl-copy > p { color: rgba(255, 253, 247, .82); }
.tl-night .tl-screen { background: rgba(255, 253, 247, .12); color: var(--b-on-ink); }
.tl-night .tl-screen small { color: rgba(255, 253, 247, .7); }
.tl-night :focus-visible { outline-color: var(--b-butter); }
.tl-night > .b-wrap { position: relative; z-index: 1; }
.tl-night .tl-copy > p.tl-when { color: var(--b-on-ink); }   /* the time is a <p>: keep it full white, not the paragraph's dim */
@media (max-width: 760px) { .tl-night .tl-stars { opacity: .55; } }
.tl-stars, .tl-moonbig { display: none; }
.tl-night .tl-stars { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tl-stars path { fill: var(--b-butter); transform-box: fill-box; transform-origin: center; }
.is-live .tl-stars path { animation: tl-twinkle 3.2s ease-in-out infinite; }
.tl-stars path:nth-child(2n) { animation-delay: 1.1s !important; } .tl-stars path:nth-child(3n) { animation-delay: 2.1s !important; }
@keyframes tl-twinkle { 50% { transform: scale(.55); opacity: .5; } }
.tl-night .tl-moonbig { display: block; position: absolute; right: clamp(16px, 6vw, 96px); top: clamp(26px, 5vw, 60px); width: clamp(70px, 9vw, 120px); height: auto; }
.tl-close { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.tl-sms { position: relative; width: 100%; max-width: 420px; padding: 14px 16px 15px; border-radius: 20px; background: #f3f1ea; color: var(--b-ink); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8); }
.tl-moment:not(.tl-night) .tl-sms { border: var(--b-border); box-shadow: var(--b-shadow); background: var(--b-paper); }
.tl-sms header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font: 700 12.5px/1.2 var(--b-font-body); color: #57544b; }
.tl-sms p { font-size: 15.5px; line-height: 1.4; }
.is-live .tl-sms { animation: tl-sms 8s var(--b-spring) infinite; }
@keyframes tl-sms { 0% { transform: translateY(-24px) scale(.94); opacity: 0; } 7%, 100% { transform: none; opacity: 1; } }
.tl-closing { max-width: 420px; }
.tl-closing .a-check { padding: 9px 12px; }
.tl-closing .a-check span { font-size: 13px; }
.tl-sfbb { flex: none; font: 700 9.5px Barlow, sans-serif; letter-spacing: .5px; padding: 2px 6px; border-radius: 4px; background: var(--amber-d, #78450a); color: var(--amber, #f59e0b); }
.is-live .tl-closing .a-check { animation: tl-ck 8s steps(1) var(--dl, 0s) infinite; }
.is-live .tl-closing .a-check em { animation: tl-cke 8s steps(1) var(--dl, 0s) infinite; }
@keyframes tl-ck { 0%, 22% { border-color: var(--a-border); } 23%, 100% { border-color: #1f8a46; } }
@keyframes tl-cke { 0%, 22% { background: transparent; border-color: #4a4a44; color: transparent; } 23%, 100% { background: var(--green); border-color: var(--green); color: #fff; } }
.tl-toast { justify-self: center; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--green, #22c55e); background: #101a12; color: var(--green, #22c55e); font: 600 13px Barlow, sans-serif; white-space: nowrap; }
.is-live .tl-toast { animation: tl-toast 8s ease infinite; }
@keyframes tl-toast { 0%, 62% { opacity: 0; transform: translateY(8px); } 68%, 100% { opacity: 1; transform: none; } }

/* ---------- 5. Moment pieces (new) ---------- */
/* Pro / Free, honestly, beside the words */
.mx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-tags .bb-tag { min-height: 26px; font-size: 12.5px; }
.tl-copy > p.mx-tags { font-size: 12.5px; }
/* back to the board */
.mx-back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px 0 12px; border: var(--b-border); border-radius: 999px; background: var(--b-paper); color: var(--b-ink); font: 700 14.5px/1 var(--b-font-body); text-decoration: none; transition: transform .45s var(--b-spring), box-shadow .2s; }
.mx-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.mx-back:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--b-ink); }
.mx-back:active { transform: scale(.95); box-shadow: none; transition-duration: .08s; }
.tl-night .mx-back { border-color: var(--b-on-ink); background: var(--b-ink); color: var(--b-on-ink); }
.tl-night .mx-back:hover { box-shadow: 3px 3px 0 var(--b-butter); }

/* a tile's own scene, enlarged inside its moment (the tile's markup, cloned, so the two always agree) */
.mx-ms { --mx-c: var(--b-butter); display: grid; }
.mx-ms--butter { --mx-c: var(--b-butter); }
.mx-ms--sky { --mx-c: var(--b-sky); }
.mx-ms--ink { --mx-c: var(--b-ink); }
.mx-ms-box { display: grid; place-items: center; padding: clamp(18px, 2.6vw, 34px); background: var(--mx-c); min-width: 0; }
.mx-ms-box > .bb-stage { width: min(100%, 360px); height: auto; aspect-ratio: var(--mx-ar, 1.2); }
.mx-ms-box[data-mx-clone="label"] > .bb-stage { --mx-ar: .82; width: min(100%, 320px); }
.mx-ms-box[data-mx-clone="qr"] > .bb-stage { --mx-ar: 1.3; width: min(100%, 470px); }
.mx-ms-box--wide > .bb-stage { --mx-ar: 1.75; width: 100%; color: var(--b-on-ink); }
/* without JavaScript the enlarged scenes (clones of the tiles) and the fridge read-out don't exist: no empty boxes */
html:not(.js) .mx-ms-box:empty, html:not(.js) .k-out:empty { display: none; }

/* the fridge slider (choose-your-kitchen.html) */
.k-fridge { display: grid; gap: 16px; padding: clamp(20px, 2.6vw, 30px); border: var(--b-border); border-radius: var(--b-r-lg); background: var(--b-paper); box-shadow: var(--b-shadow-lg); min-width: 0; }
.k-fridge-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.k-fridge-h b { font: 800 22px/1.1 var(--b-font-head); letter-spacing: -.02em; }
.k-fridge-h span { font-size: 13.5px; color: var(--b-dim); }
.k-read { display: flex; align-items: baseline; gap: 2px; font: 800 clamp(64px, 7vw, 96px)/.85 var(--b-font-head); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.k-read small { font-size: .34em; }
.k-range { position: relative; padding-bottom: 40px; }
.k-range input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 52px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.k-range input:focus { outline: none; }
.k-range input::-webkit-slider-runnable-track { height: 20px; border-radius: 999px; border: var(--b-border); background: linear-gradient(90deg, var(--b-mint) 0 calc(21px + (100% - 42px) * 5 / 12), var(--b-butter) 0 calc(21px + (100% - 42px) * 8 / 12), var(--b-coral) 0); }
.k-range input::-moz-range-track { height: 20px; border-radius: 999px; border: var(--b-border); box-sizing: border-box; background: linear-gradient(90deg, var(--b-mint) 0 calc(21px + (100% - 42px) * 5 / 12), var(--b-butter) 0 calc(21px + (100% - 42px) * 8 / 12), var(--b-coral) 0); }
.k-range input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 42px; height: 42px; margin-top: -13px; border-radius: 50%; border: 3px solid var(--b-ink); background: var(--b-paper); box-shadow: 3px 3px 0 var(--b-ink); }
.k-range input::-moz-range-thumb { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--b-ink); background: var(--b-paper); box-shadow: 3px 3px 0 var(--b-ink); box-sizing: border-box; }
.k-range input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--b-ink); outline-offset: 3px; }
.k-range input:focus-visible::-moz-range-thumb { outline: 3px solid var(--b-ink); outline-offset: 3px; }
.k-marks { position: absolute; left: 0; right: 0; top: 50px; font: 700 12px/1.15 var(--b-font-body); pointer-events: none; }
.k-marks span { position: absolute; transform: translateX(-50%); white-space: nowrap; text-align: center; }
.k-marks span::before { content: ''; display: block; width: 2.5px; height: 8px; margin: 0 auto 3px; border-radius: 2px; background: var(--b-ink); }
.k-marks .m0 { left: 21px; } .k-marks .m5 { left: calc(21px + (100% - 42px) * 5 / 12); } .k-marks .m8 { left: calc(21px + (100% - 42px) * 8 / 12); } .k-marks .m12 { left: calc(100% - 21px); }
.k-out { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: var(--a-bg, #111210); color: #f0ede6; font: 400 13.5px/1.35 Barlow, sans-serif; min-height: 196px; align-content: start; }
.k-out .a-eq-top b { font-size: 16px; }
.k-eqi { font-style: normal; font-size: 20px; line-height: 1; }
.k-pill { font: 700 11px 'Barlow Condensed', sans-serif; letter-spacing: .8px; padding: 4px 10px; border-radius: 20px; background: var(--green-d, #14532d); color: var(--green, #22c55e); }
.k-line { font-size: 12px; color: var(--a-dim, #8a8880); margin-top: 6px; }
.k-banner { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.k-banner.amber { background: var(--amber-d, #78450a); border-left: 3px solid var(--amber, #f59e0b); color: var(--amber, #f59e0b); }
.k-banner.fail { background: var(--red-d, #7f1d1d); border-left: 3px solid var(--red, #ef4444); color: var(--red, #ef4444); }
.k-out-title { font: 700 18px 'Barlow Condensed', sans-serif; }
.k-out-ask { font-size: 12.5px; color: var(--a-dim, #8a8880); }
.k-paths { display: grid; gap: 6px; }
.k-paths span { display: block; padding: 8px 11px; border-radius: 8px; background: var(--a-s2, #252620); border: 1.5px solid; font: 700 14px 'Barlow Condensed', sans-serif; }
.k-paths span:nth-child(1) { border-color: var(--red-d, #7f1d1d); } .k-paths span:nth-child(2) { border-color: var(--amber-d, #78450a); } .k-paths span:nth-child(3) { border-color: var(--blue-d, #1e3a5f); }
.k-paths small { font: 400 11.5px Barlow, sans-serif; color: var(--a-dim, #8a8880); margin-left: 6px; }
.k-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; font-weight: 500; }

/* ---------- 6. Arriving from a tile: the moment says "here" for a couple of seconds ---------- */
.mx-mark { position: relative; z-index: 0; isolation: isolate; }
.mx-mark::after {
  content: ''; position: absolute; z-index: -1; left: -.06em; right: -.1em; bottom: .02em; height: .4em;
  background: var(--b-paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 10.5C40 6 101 3.6 193 6.2 196.8 6.4 199 9 198.6 13L197.2 27.4C196.9 30.6 194.6 32.4 191.4 32.6 131 36.4 63 37.8 6.2 35.4 3.4 35.3 1.6 33.5 1.5 30.6L1.2 14.8C1.1 12.4 2.1 10.8 4 10.5Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M4 10.5C40 6 101 3.6 193 6.2 196.8 6.4 199 9 198.6 13L197.2 27.4C196.9 30.6 194.6 32.4 191.4 32.6 131 36.4 63 37.8 6.2 35.4 3.4 35.3 1.6 33.5 1.5 30.6L1.2 14.8C1.1 12.4 2.1 10.8 4 10.5Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-1.4deg); clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--b-inout) .15s;
}
.tl-night .mx-mark::after { background: var(--b-butter); opacity: .35; }
.mx-arrive .mx-mark::after { clip-path: inset(0 0 0 0); }
/* and the tile you tapped pops up beside the time, then goes */
.tl-when { position: relative; }
.mx-here { --b-tilt: -4deg; position: absolute; left: 0; top: -10px; translate: 0 -100%; z-index: 2; opacity: 0; transform: rotate(var(--b-tilt)) scale(.3); transition: opacity .16s linear, transform .62s var(--b-spring-big); pointer-events: none; }
.mx-here .b-icon { --b-icon-size: 24px; --b-icon-stroke: 3px; --b-icon-fill: #3a3a33; color: var(--b-on-ink); margin: -4px 0 -4px -5px; }
.mx-arrive .mx-here { opacity: 1; transform: rotate(var(--b-tilt)) scale(1); }
.tl-night .mx-here { --b-sticker-bg: var(--b-butter); color: var(--b-ink); box-shadow: 4px 4px 0 var(--b-on-ink); }
.tl-night .mx-here .b-icon { color: var(--b-ink); --b-icon-fill: #fff; }

/* ---------- 7. The team (reworded: names, not sign-in) ---------- */
.mx-team-rec { margin-top: 12px; max-width: 460px; }
.mx-team-rec .a-row em { white-space: nowrap; }

/* ---------- 8. Responsive ---------- */
@media (max-width: 960px) {
  .k-hero-top { grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; }
  /* phones: the question comes straight after the promise, then the line it changes, then the buttons */
  .k-hero-copy { display: contents; }
  .k-hero-copy > .b-eyebrow { order: 1; } .k-hero-copy > h1 { order: 2; } .k-hero-copy > .b-lede { order: 3; }
  .k-choose { order: 4; width: 100%; margin-block: 6px; } .k-for { order: 5; } .k-hero-copy > .b-row { order: 6; } .k-hero-copy > .b-dots { order: 7; }
}
@media (max-width: 900px) {
  .tl-moment-in { grid-template-columns: minmax(0, 1fr); }
  .tl-moment.tl-flip .tl-copy { order: 0; }
  .tl-phone { --tl-s: .66; }
  .mx-ms-box--wide > .bb-stage { --mx-ar: 1.5; }
}
@media (max-width: 760px) {
  .mx-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, var(--bb-row));
    grid-template-areas:
      "checks  checks"
      "fridge  label"
      "deliv   label"
      "allergy cool"
      "allergy qr"
      "insp    insp";
  }
  .mx-board .bb-th { padding-right: 62px; }
  .mx-go { top: 9px; right: 9px; min-height: 32px; padding: 0 9px; font-size: 13px; }
  .mx-go svg { display: none; }
  .bb-a-checks .mx-go svg, .bb-a-insp .mx-go svg { display: block; width: 14px; height: 14px; }
  .bb-a-checks .mx-go, .bb-a-insp .mx-go { padding: 0 7px 0 10px; }
  .mx-board .bb-a-checks .bb-th, .mx-board .bb-a-insp .bb-th { padding-right: 82px; }
}
@media (max-width: 560px) {
  .mx-opts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mx-opts > .k-opt, .mx-opts > .k-opt:nth-child(n+4) { grid-column: auto; min-height: 128px; }
  .mx-opts > .k-opt:last-child { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
  .mx-opts > .k-opt:last-child .k-opt-art { grid-row: 1 / span 2; }
  .mx-opts > .k-opt:last-child .k-opt-name { margin-top: 0; align-self: end; }
  .mx-opts > .k-opt:last-child .k-opt-sub { align-self: start; }
  .mx-opts .k-opt-art, .mx-opts .k-opt-art svg { height: 46px; }
  .mx-opts > .k-opt:nth-child(odd):has(input:checked) { transform: rotate(-2deg) translate(-2px, -2px); }
  .mx-opts > .k-opt:nth-child(even):has(input:checked) { transform: rotate(2deg) translate(-2px, -2px); }
  .mx-opts > .k-opt:last-child:has(input:checked) { transform: rotate(-1.2deg) translate(-2px, -2px); }
  .mx-ms-box--wide > .bb-stage { --mx-ar: 1.05; }
}
@media (max-width: 520px) {
  .tl-phone-stage { flex-direction: column; }
  .tl-ticket { transform: rotate(-2deg); }
  .tl-phone { --tl-s: .74; }
  .tl-when .b-ichip { --b-ichip-size: 46px; }
}
@media (max-width: 420px) {
  .k-opt { padding: 10px 12px 12px; }
  .k-opt-sub { font-size: 12.5px; }
  .mx-board .bb-name { font-size: 13.5px; }
}

/* ---------- 9. Motion off: every loop stops on its still frame (the base styles above) ---------- */
.b-motion-off .k-tinted { transition: none; }
.b-motion-off .tl-scene *, .b-motion-off .tl-night *, .b-motion-off .tl-phone-stage, .b-motion-off .tl-phone-stage *, .b-motion-off .tl-close * { animation: none !important; }
.b-motion-off .mx-mark::after { transition: none; }
@media print { .mx-hint, .tl-bar { display: none !important; } }
