/*
 * DAB Scales. Black and white, like the shop and its wordmark.
 * Bebas Neue for headings, prices and big labels; DM Sans to read; DM Mono for PLUs.
 * Green only for a success tick, red only for errors. No other colours.
 */

:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --bone: #f3f0ea;
  --hair: #e4dfd6;
  --muted: #5c5c5c;
  --ok: #4caf50;
  --bad: #dc2626;
  --on-ink: #ffffff;
  --on-ink-2: rgba(255, 255, 255, 0.64);
  --on-ink-3: rgba(255, 255, 255, 0.28);

  --display: "Bebas Neue", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --pad-l: max(16px, var(--sal));
  --pad-r: max(16px, var(--sar));

  --bar-h: 56px;
  --dock-h: 62px;
  --r: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--ink);
  font: 400 16px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button, input { font: inherit; color: inherit; margin: 0; }
/* touch-action on every button too: fast taps on the PIN keys must never be read as a double-tap zoom */
button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.view--dark :focus-visible,
.bar :focus-visible,
.dock :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted { color: var(--muted); }
.noscript { color: #fff; padding: 24px; font-family: var(--body); }

/* ------------------------------------------------------------ app shell */
.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}

.panels { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }

/* Panels stay laid out when hidden, so the order board never resizes or reloads. */
.panel { position: absolute; inset: 0; visibility: hidden; }
.panel.is-active { visibility: visible; }

.view-host { position: absolute; inset: 0; }

.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
}
.view--dark { background: var(--ink); color: var(--on-ink); }

.scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ------------------------------------------------------------ dock */
.dock {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 var(--sar) var(--sab) var(--sal);
}
.dock-inner { display: flex; height: var(--dock-h); max-width: 520px; margin: 0 auto; }
.dock-tab {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  padding: 6px 0 2px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font: 400 16px/1 var(--display);
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.15s;
}
.dock-tab svg { width: 26px; height: 26px; flex: none; }
.dock-tab span { padding-left: 0.14em; } /* balances the letter-spacing */
.dock-tab.is-active { color: #fff; }
.dock-tab::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 36px;
  height: 3px;
  margin-left: -18px;
  border-radius: 0 0 3px 3px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.dock-tab.is-active::before { transform: scaleX(1); }

@media (min-width: 700px) {
  .dock-tab { flex-direction: row; gap: 10px; font-size: 20px; }
}

/* ------------------------------------------------------------ header bar */
.bar {
  flex: 0 0 auto;
  background: var(--ink);
  color: #fff;
  padding: var(--sat) var(--sar) 0 var(--sal);
}
.bar-in {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  height: var(--bar-h);
  padding: 0 6px;
}
.bar-side { display: flex; align-items: center; }
.bar-side--end { justify-content: flex-end; }
.bar-logo {
  justify-self: center;
  display: block;
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1); /* the black wordmark, in white */
}
.bar-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
}
.bar-btn svg { width: 24px; height: 24px; }
.bar-btn:active { background: rgba(255, 255, 255, 0.14); }

@media (min-width: 700px) and (min-height: 600px) {
  :root { --bar-h: 64px; }
  .bar-logo { height: 46px; }
  .bar-in { padding: 0 12px; }
}

/* ------------------------------------------------------------ menu */
.menu {
  position: absolute;
  z-index: 50;
  top: calc(var(--sat) + var(--bar-h) - 6px);
  right: calc(var(--sar) + 8px);
  min-width: 232px;
  padding: 6px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--hair);
}
.menu-who {
  margin: 0 0 4px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
  color: var(--muted);
}
.menu-who strong { color: var(--ink); }
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: 500 16px var(--body);
  text-align: left;
  cursor: pointer;
}
.menu-item:hover, .menu-item:active { background: var(--bone); }

/* ------------------------------------------------------------ toast */
.toast {
  position: absolute;
  z-index: 60;
  top: calc(var(--sat) + var(--bar-h) + 10px);
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ splash */
.splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px var(--pad-r) 24px var(--pad-l);
  text-align: center;
}
.splash-logo { display: block; width: min(64vw, 300px); height: auto; mix-blend-mode: screen; }
.splash-msg { margin: 0; max-width: 320px; color: var(--on-ink-2); font-size: 16px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 3px 22px 0;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font: 400 23px/1 var(--display);
  letter-spacing: 0.07em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s, background-color 0.15s, opacity 0.15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:active:not(:disabled) { background: #2b2b2b; }
.btn--outline { background: var(--paper); }
.btn--outline:active:not(:disabled) { background: var(--bone); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--big { min-height: 60px; font-size: 27px; }
.btn--sm { min-height: 44px; padding: 3px 16px 0; font-size: 19px; border-radius: 12px; }
.btn .ico { margin-top: -3px; }
.btn .ico svg { width: 20px; height: 20px; }

.linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 400 15px/1.2 var(--body);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkbtn--ink { color: var(--ink); font-weight: 500; font-size: 16px; }

.quietbtn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 8px 0 10px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 15px/1.2 var(--body);
  cursor: pointer;
}

.iconbtn {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:disabled svg { animation: spin 0.9s linear infinite; }

.ico { display: inline-grid; place-items: center; flex: none; }
.ico svg { display: block; width: 22px; height: 22px; }
.ico--sm svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ pages */
.page {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 22px var(--pad-r) 40px var(--pad-l);
}
.page--center { text-align: center; }

.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.title {
  margin: 0;
  padding-top: 4px;
  font: 400 clamp(36px, 9.6vw, 48px)/0.92 var(--display);
  letter-spacing: 0.02em;
}
.title:focus { outline: none; }
.title--center { text-align: center; }

/* The heavy rule from the wordmark, under every page title. */
.rule { height: 4px; margin: 12px 0 20px; border-radius: 2px; background: var(--ink); }

/* ------------------------------------------------------------ voice home */
.home {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 6px var(--pad-r) 0 var(--pad-l);
}
.home-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 0 2px;
}
.home-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.mic-stage {
  --btn: min(60vw, 300px);
  position: relative;
  flex: none;
  width: calc(var(--btn) * 1.12);
  height: calc(var(--btn) * 1.12);
  display: grid;
  place-items: center;
}
.mic-btn {
  position: relative;
  width: var(--btn);
  height: var(--btn);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 20px 44px -18px rgba(11, 11, 11, 0.7);
  transition: transform 0.15s ease;
}
.mic-btn:active:not(:disabled) { transform: scale(0.97); }
.mic-btn:disabled { cursor: default; }
.mic-btn:focus-visible { outline-offset: 6px; }
.mic-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.mic-stamp { position: absolute; inset: 0; display: block; color: #fff; }
.mic-stamp svg, .disc-stamp svg { display: block; width: 100%; height: 100%; }
.stamp-text { font-family: var(--display); font-size: 22px; fill: currentColor; opacity: 0.78; }
.stamp-line { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.3; }
.mic-icon { position: relative; display: grid; place-items: center; width: 33%; height: 33%; }
.mic-icon svg { display: block; width: 100%; height: 100%; }

.mic-progress { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.mic-progress svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mic-progress-track { fill: none; stroke: var(--hair); stroke-width: 5; }
.mic-progress-bar { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }

.is-listening .mic-progress { opacity: 1; }
.is-listening .mic-btn { animation: breathe 1.5s ease-in-out infinite; }
.is-listening .mic-btn::after { animation: ripple 1.5s ease-out infinite; }
.is-working .mic-stamp { animation: spin 14s linear infinite; }

.mic-label {
  margin: 4px 0 0;
  font: 400 clamp(30px, 8.6vw, 42px)/1 var(--display);
  letter-spacing: 0.06em;
}
.mic-sub {
  width: 100%;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}
.mic-note { margin: 0; color: var(--muted); font-size: 15px; }

.examples { color: var(--muted); font-size: 15px; line-height: 1.6; }
.examples ul { margin: 0; padding: 0; list-style: none; }
.examples li { font-style: italic; }

.meter { display: flex; align-items: center; justify-content: center; gap: 7px; height: 48px; }
.meter i {
  display: block;
  width: 7px;
  height: 48px;
  border-radius: 4px;
  background: var(--ink);
  transform: scaleY(0.08);
  transition: transform 90ms linear;
}

.home-foot {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 0 6px;
}
.home-foot-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--hair); }
@media (max-width: 359px) {
  .home-foot { flex-wrap: nowrap; }
  .home-foot .linkbtn, .home-foot .quietbtn { padding: 0 6px; font-size: 14px; }
  .home-foot-sep { margin: 0 2px; }
}

.problem {
  width: 100%;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bone);
  text-align: left;
}
.problem-title { margin: 0 0 4px; font: 400 24px/1.05 var(--display); letter-spacing: 0.04em; }
.problem-text { margin: 0; font-size: 15px; line-height: 1.45; }
.problem.is-error .problem-text { color: var(--bad); }
.problem-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Short phones in portrait: keep everything on one screen. */
@media (orientation: portrait) and (max-height: 700px) {
  .mic-stage { --btn: max(150px, min(60vw, 300px, calc((100vh - 372px) / 1.12))); }
  .mic-sub { min-height: 80px; }
}

/* Phones on their side: the button left, the words right. */
@media (orientation: landscape) and (max-height: 560px) {
  .home-main { flex-direction: row; gap: clamp(20px, 6vw, 60px); }
  .mic-stage { --btn: max(120px, min(calc((100vh - 196px) / 1.12), 240px)); }
  .home-text { align-items: flex-start; max-width: 360px; text-align: left; }
  .mic-sub { align-items: flex-start; min-height: 0; }
  .meter { justify-content: flex-start; }
}

/* ------------------------------------------------------------ PIN screen */
.view--pin { background: var(--ink); }
/* The scroller; .pin-in is centred with auto margins so that, if it is ever taller
   than the screen, nothing is pushed out of reach above the top. */
.pin {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  padding: max(14px, var(--sat)) var(--pad-r) 14px var(--pad-l);
}
.pin-in {
  margin: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.2vh, 26px);
}
.pin-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.4vh, 14px);
  width: 100%;
}
/* The square logo, cropped to the wordmark; screen blending melts its black into ours. */
.pin-logo {
  display: block;
  width: min(66vw, 320px, 37vh);
  height: auto;
  aspect-ratio: 1254 / 840;
  object-fit: cover;
  object-position: 50% 58%;
  mix-blend-mode: screen;
}
.pin-app {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--on-ink-2);
  font: 400 21px/1 var(--display);
  letter-spacing: 0.42em;
}
.pin-app span { margin-right: -0.42em; }
.pin-app::before, .pin-app::after {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 1px;
  background: var(--on-ink-3);
}
.pin-device {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 320px);
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px solid var(--on-ink-3);
  cursor: text;
}
.pin-device:focus-within { border-bottom-color: #fff; }
.pin-device-label { flex: none; font-size: 13px; color: var(--on-ink-2); }
.pin-device-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: 500 17px var(--body);
  text-align: right;
}
.pin-device-input::placeholder { color: rgba(255, 255, 255, 0.35); }

.pin-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.5vh, 16px);
}
.pin-dots { display: flex; align-items: center; justify-content: center; gap: 14px; height: 30px; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.pin-placeholder { color: var(--on-ink-2); font: 400 21px/1 var(--display); letter-spacing: 0.3em; padding-left: 0.3em; }
.pin-dots.shake { animation: shake 0.42s; }
.pin-msg {
  min-height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pin-status {
  max-width: 320px;
  margin: 0;
  color: var(--on-ink-2);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
}
.pin-status:empty { display: none; }
.pin-status.is-error {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bad);
  color: #fff;
  font-weight: 500;
}
.pin-countdown { margin: 0; color: var(--on-ink-2); font: 400 19px/1 var(--display); letter-spacing: 0.12em; }
.pin-countdown:empty { display: none; }

.keypad {
  --key: clamp(52px, min(8.6vh, 19vw), 78px);
  display: grid;
  grid-template-columns: repeat(3, var(--key));
  gap: clamp(10px, 1.7vh, 16px) clamp(20px, 7vw, 32px);
  margin-top: 2px;
}
.key {
  width: var(--key);
  height: var(--key);
  display: grid;
  place-items: center;
  padding: 4px 0 0;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 400 calc(var(--key) * 0.46)/1 var(--display);
  cursor: pointer;
  transition: background-color 0.1s, color 0.1s, border-color 0.1s;
}
.key:active:not(:disabled) { background: #fff; color: var(--ink); border-color: #fff; }
.key:disabled { opacity: 0.35; cursor: default; }
.key--quiet { border-color: transparent; }
.key--go { background: #fff; color: var(--ink); border-color: #fff; }
.key--go:active:not(:disabled) { background: var(--bone); border-color: var(--bone); }
.key .ico { margin-top: -4px; }
.ico--key svg { width: calc(var(--key) * 0.38); height: calc(var(--key) * 0.38); }

/* Short phones (iPhone SE and friends) in portrait: a little smaller so nothing scrolls. */
@media (orientation: portrait) and (max-height: 720px) {
  .pin-logo { width: min(66vw, 320px, 31vh); }
  .pin-entry { gap: 6px; }
  .pin-msg { min-height: 34px; }
  .keypad { --key: clamp(50px, min(8vh, 19vw), 78px); }
}

/* Landscape (iPad on its side, phones on their side): logo left, keypad right. */
@media (orientation: landscape) and (min-width: 600px) {
  .pin-in { flex-direction: row; justify-content: center; width: auto; gap: clamp(28px, 8vw, 110px); }
  .pin-brand { flex: 0 1 auto; width: auto; }
  .pin-logo { width: min(38vw, 400px, 50vh); }
  .keypad { --key: clamp(44px, calc((100vh - 230px) / 4.6), 80px); }
}

/* ------------------------------------------------------------ product rows */
.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: var(--r);
  background: var(--bone);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, opacity 0.12s;
}
.row:active:not(:disabled), .row.is-busy { border-color: var(--ink); }
.row:disabled { cursor: default; }
.row:disabled:not(.is-busy) { opacity: 0.5; }
.row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row-name { padding-top: 2px; font: 400 23px/1 var(--display); letter-spacing: 0.025em; overflow-wrap: anywhere; }
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.row-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.row-amount { padding-top: 2px; font: 400 28px/1 var(--display); letter-spacing: 0.02em; }
.row-unit { margin-top: 2px; color: var(--muted); font-size: 12px; }

.plu {
  display: inline-block;
  padding: 2px 7px 1px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 500 12.5px/1.3 var(--mono);
  letter-spacing: 0;
  white-space: nowrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px 2px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 700 11px/1.2 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-box {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -8px 0 6px;
  padding: 8px 0 10px;
  background: var(--paper);
}
.search-ico { position: absolute; top: 50%; left: 15px; margin-top: -1px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input {
  width: 100%;
  height: 56px;
  padding: 0 16px 0 48px;
  border: 2px solid var(--hair);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font: 400 18px var(--body);
  -webkit-appearance: none;
  appearance: none;
}
.search-input:focus { outline: none; border-color: var(--ink); }
.search-input::placeholder { color: var(--muted); opacity: 0.6; }
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-box .search-input { padding-right: 52px; }
.search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 44px;
  height: 44px;
  margin-top: -1px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  transform: translateY(-50%);
  cursor: pointer;
}
.search-clear svg { width: 18px; height: 18px; }

.list-status { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.list-status:empty { display: none; }
.list-status.is-error { color: var(--bad); }

/* ------------------------------------------------------------ understood */
.heard {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 4px solid var(--ink);
  border-radius: 0 12px 12px 0;
  background: var(--bone);
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.heard-label { color: var(--muted); font-weight: 700; }
.heard q { font-style: italic; quotes: "\201C" "\201D"; }

.lede p { margin: 0 0 10px; font-size: 16px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px 2px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 400 18px/1 var(--display);
  letter-spacing: 0.06em;
}

.sorry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bone);
}
.sorry-bull { flex: none; width: 60px; height: 60px; mix-blend-mode: multiply; }
.sorry-text { margin: 0; font-size: 17px; line-height: 1.45; }

.actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 520px) { .actions--row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ------------------------------------------------------------ forms */
/* minmax(0, 1fr) everywhere: an input's built-in width must never push the page sideways. */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.fields-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 560px) { .fields-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; align-content: start; min-width: 0; }
.field-label {
  margin: 0;
  color: var(--muted);
  font: 700 12px/1.2 var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.field-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 0 16px;
  border: 2px solid var(--hair);
  border-radius: var(--r);
  background: var(--paper);
  cursor: text;
  transition: border-color 0.12s;
}
.field-box:focus-within { border-color: var(--ink); }
.field-box.is-invalid { border-color: var(--bad); }
.field-box input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 5px 0 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: 400 32px/1 var(--display);
  letter-spacing: 0.03em;
}
.field-box input::placeholder { color: var(--muted); opacity: 0.4; }
.field-box--text input { padding: 0; font: 400 19px/1.2 var(--body); letter-spacing: 0; }
.field-affix { flex: none; padding-top: 4px; color: var(--muted); font: 400 26px/1 var(--display); }
.field-affix--after { padding-top: 0; font: 500 14px/1 var(--body); }
.field-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

.form-status { margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--bad); }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--r);
}
.seg-btn {
  min-height: 58px;
  padding: 4px 8px 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 22px/1 var(--display);
  letter-spacing: 0.07em;
  cursor: pointer;
}
.seg-btn + .seg-btn { border-left: 2px solid var(--ink); }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

.examples--tap { margin-top: 26px; }
.examples--tap ul { display: grid; gap: 6px; margin-top: 8px; }
.example-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--bone);
  color: var(--ink);
  font: italic 400 16px/1.35 var(--body);
  text-align: left;
  cursor: pointer;
}
.example-btn:active { background: var(--hair); }

/* ------------------------------------------------------------ product screen */
.product-head .rule { margin-top: 12px; }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.title--product { font-size: clamp(32px, 8.8vw, 46px); overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 0 10px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--bone);
}
.tile-label { color: var(--muted); font: 700 11px/1.2 var(--body); letter-spacing: 0.09em; text-transform: uppercase; }
.tile-value { padding-top: 4px; font: 400 36px/1 var(--display); letter-spacing: 0.02em; }
.tile-unit { color: var(--muted); font-size: 13px; }
.epos { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.product-now { margin-bottom: 20px; }
.product-now .epos { margin-bottom: 0; }

/* ------------------------------------------------------------ the Like picker */
.like { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 16px; background: var(--bone); }
.like-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.like-product {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
}
.like-empty { margin: 0; color: var(--muted); font-size: 15px; }
.picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.picker .search-input { height: 52px; padding-left: 16px; }
.picker-foot { display: flex; justify-content: center; }
.rows--compact .row { min-height: 60px; background: var(--paper); }

/* ------------------------------------------------------------ proceed manually */
.choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 98px;
  padding: 16px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--bone);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s;
}
.choice:active { border-color: var(--ink); }
.choice-icon {
  flex: none;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.choice-icon svg { width: 27px; height: 27px; }
.choice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.choice-title { padding-top: 3px; font: 400 clamp(26px, 7.3vw, 32px)/0.95 var(--display); letter-spacing: 0.03em; }
.choice-sub { color: var(--muted); font-size: 14px; line-height: 1.35; }
.choice-go { flex: none; display: grid; place-items: center; color: var(--ink); }
.choice-go svg { width: 22px; height: 22px; }

.brand-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 44px 0 0; }
.brand-foot img { display: block; width: 132px; height: auto; }
.brand-foot p { margin: 0; color: var(--muted); font: 400 15px/1 var(--display); letter-spacing: 0.34em; padding-left: 0.34em; }

/* ------------------------------------------------------------ confirm card */
.sheet-host { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.sheet-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.55);
  opacity: 0;
  transition: opacity 0.22s;
}
.sheet {
  --sheet-pb: 18px;
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: calc(100% - 16px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px var(--pad-r) var(--sheet-pb) var(--pad-l);
  border-radius: 22px 22px 0 0;
  background: var(--paper);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet-wrap.is-open .sheet { transform: none; }
.sheet-wrap.is-open .sheet-backdrop { opacity: 1; }
.sheet-grip { width: 44px; height: 5px; margin: 2px auto 12px; border-radius: 3px; background: var(--hair); }
.sheet-title {
  margin: 0;
  padding-top: 4px;
  font: 400 clamp(36px, 9.6vw, 46px)/0.94 var(--display);
  letter-spacing: 0.02em;
}
.sheet-title:focus { outline: none; }
.sheet .heard { margin-bottom: 12px; font-size: 15px; }
.sheet .rule { margin: 10px 0 2px; }

@media (min-width: 700px) and (min-height: 620px) {
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet {
    --sheet-pb: 22px;
    max-height: 100%;
    padding: 18px 28px var(--sheet-pb);
    border-radius: 22px;
    opacity: 0;
    transform: translateY(24px);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
  }
  .sheet-wrap.is-open .sheet { opacity: 1; }
  .sheet-grip { display: none; }
}

.lines { margin: 0; }
.line { padding: 13px 0 12px; border-bottom: 1px solid var(--hair); }
.line-label {
  margin: 0 0 5px;
  color: var(--muted);
  font: 700 12px/1.2 var(--body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.line-body { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.line-value { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.line-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.line-from { color: var(--muted); font-size: 19px; text-decoration-thickness: 2px; }
.line-arrow { color: var(--muted); font-size: 19px; }
.line-to { font: 400 36px/1 var(--display); letter-spacing: 0.02em; overflow-wrap: anywhere; }

/* Short phones: a tighter card, so more of it shows above the buttons. */
@media (max-height: 700px) {
  .sheet-title { font-size: 34px; }
  .line { padding: 9px 0 8px; }
  .line-to { font-size: 30px; }
}

.notes { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bone);
  font-size: 15px;
  line-height: 1.4;
}
.ico--note svg { width: 18px; height: 18px; margin-top: 1px; }
.sheet-actions {
  position: sticky;
  bottom: calc(-1 * var(--sheet-pb)); /* sticky offsets start inside the sheet's padding */
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 6px 0 0;
  padding: 12px 0 8px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--paper) 12px);
}
.sheet-edit { display: flex; justify-content: center; gap: 28px; margin-top: 4px; }
.row--choice { min-height: 64px; }
.step-count { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.rows + .sheet-edit { margin-top: 18px; }

/* ------------------------------------------------------------ saving and the result */
.disc {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 10px auto 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 20px 44px -18px rgba(11, 11, 11, 0.7);
}
.disc-stamp { position: absolute; inset: 0; display: block; }
.disc--spin .disc-stamp { animation: spin 14s linear infinite; }
.disc-bull {
  position: absolute;
  top: 26%;
  left: 27%;
  width: 46%;
  height: 46%;
  border-radius: 50%;
  filter: invert(1) brightness(1.18); /* the black bull, in white */
  mix-blend-mode: screen;
}
.saving-what { margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.progress {
  width: 100%;
  max-width: 420px;
  height: 8px;
  margin: 24px auto 14px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--hair);
}
.progress-fill { width: 0; height: 100%; border-radius: 4px; background: var(--ink); transition: width 0.25s linear; }
.saving-text { margin: 0; font-size: 17px; font-weight: 500; }
.saving-note { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.badge {
  width: 96px;
  height: 96px;
  margin: 10px auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}
.badge svg { width: 50px; height: 50px; }
.badge--ok { background: var(--ok); }
.badge--bad { background: var(--bad); }
.badge--unsure { background: var(--ink); }
.result-of { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.result-msg { max-width: 480px; margin: 12px auto 0; font-size: 17px; line-height: 1.45; }
.result-msg.is-error { color: var(--bad); }
.steps {
  margin: 22px 0 0;
  padding: 4px 16px;
  border-radius: 16px;
  background: var(--bone);
  list-style: none;
  text-align: left;
}
.step { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.step:last-child { border-bottom: 0; }
.step-mark {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}
.step-mark svg { width: 15px; height: 15px; }
.step.is-ok .step-mark { background: var(--ok); }
.step.is-bad .step-mark { background: var(--bad); }
.step-text { min-width: 0; padding-top: 2px; }
.step-label { display: block; font-weight: 700; }
.step-detail { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.result .form-status { text-align: center; }
.actions .linkbtn { justify-self: center; }

/* Keeps the next step (Done, Confirm) on screen however long the list above it is. */
.actions--sticky {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 18px calc(-1 * var(--pad-r)) 0 calc(-1 * var(--pad-l));
  padding: 18px var(--pad-r) 14px var(--pad-l);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--paper) 16px);
}
.result { padding-bottom: 0; }

/* ------------------------------------------------------------ recent changes */
.log { margin: 0; padding: 0; list-style: none; }
.log-row { display: flex; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--hair); }
.log-mark {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hair);
  color: #fff;
}
.log-mark svg { width: 15px; height: 15px; }
.log-mark.is-ok { background: var(--ok); }
.log-mark.is-bad { background: var(--bad); }
.log-body { min-width: 0; }
.log-summary { margin: 0; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.log-meta { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 0;
  color: var(--muted);
  text-align: center;
}
.empty img { width: 72px; height: 72px; mix-blend-mode: multiply; }
.empty p { margin: 0; }

/* ------------------------------------------------------------ orders (the staff board) */
.orders-wrap {
  position: absolute;
  inset: 0;
  padding: var(--sat) var(--sar) 0 var(--sal);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--ink);
}
.orders-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--ink); }
.orders-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ink);
  color: var(--on-ink-2);
}
.orders-loading img { display: block; width: min(50vw, 220px); height: auto; mix-blend-mode: screen; }
.orders-loading p { margin: 0; }

/* ------------------------------------------------------------ motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(11, 11, 11, 0.3); }
  100% { box-shadow: 0 0 0 calc(var(--btn) * 0.09) rgba(11, 11, 11, 0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
.spin { animation: spin 0.9s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ------------------------------------------------------------ easy to read (owner, 2026-10-30)
   "This should be easy enough for an old person to use with bad eyes": the small grey
   text around the big headings and prices is made larger and darker, links included. */
body { font-size: 17px; }
.mic-note, .form-status, .note, .heard { font-size: 18px; }
.sorry-text { font-size: 22px; line-height: 1.35; }
.step-count { font-size: 18px; color: var(--ink); }
.line-label { font-size: 15px; color: var(--ink); }
.line-value { font: 400 32px/1.05 var(--display); letter-spacing: 0.02em; }
.line-from, .line-arrow { font-size: 22px; }
.line-to { font-size: 44px; }
.linkbtn--ink { font-size: 20px; }
.row-name { font-size: 28px; }
.row-amount { font-size: 32px; }
.row-unit { font-size: 15px; }
.chip { font-size: 20px; }
.quietbtn--big { min-height: 56px; font: 400 28px/1 var(--display); letter-spacing: 0.04em; }
.quietbtn--big .ico svg { width: 24px; height: 24px; }
.home-foot { justify-content: center; }
@media (max-height: 700px) { .line-to { font-size: 36px; } .line-value { font-size: 28px; } }.sheet-edit { gap: 18px; flex-wrap: wrap; }
.sheet-edit .linkbtn { white-space: nowrap; }

/* ------------------------------------------------------------ barcode scanning (owner, 2026-10-31)
   The camera fills the screen; a white box shows where the barcode goes, with big words under it. */
.home-foot { flex-direction: column; gap: 4px; }
.home-scan { width: 100%; max-width: 440px; }

.view--scan { background: #000; color: #fff; }
.scan { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #000; }
.scan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* About the size a grocery barcode looks from 20 cm, so nobody holds the phone too close to focus. */
.scan-guide {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(62vw, 400px);
  height: min(34vw, 210px);
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.42);
  pointer-events: none;
  transition: border-color 0.15s;
}
.scan-laser {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 3px;
  border-radius: 2px;
  background: var(--bad);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.9);
  animation: laser 1.8s ease-in-out infinite;
}
.is-found .scan-guide { border-color: var(--ok); border-width: 6px; }
.is-found .scan-laser, .is-off .scan-laser { display: none; }
@keyframes laser { 0%, 100% { transform: translateY(-34px); } 50% { transform: translateY(34px); } }
.scan-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px var(--pad-r) 12px var(--pad-l);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8) 34%);
  text-align: center;
}
.scan-status { margin: 0; font: 400 clamp(34px, 9.5vw, 46px)/1 var(--display); letter-spacing: 0.05em; }
.scan-tip { margin: 0; max-width: 440px; color: rgba(255, 255, 255, 0.92); font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.scan-status:empty, .scan-tip:empty, .scan-extra:empty { display: none; }
.scan-extra { display: flex; justify-content: center; width: 100%; }
.scan-extra .problem { color: var(--ink); }
.linkbtn--light { color: #fff; font-size: 20px; }
.scan-torch {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
}
.scan-torch[hidden] { display: none; }
.scan-torch[aria-pressed="true"] { background: #fff; color: var(--ink); }
.scan-torch svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------ groceries */
.scan-code { margin: -4px 0 18px; font-size: 18px; }
.scan-code .plu { font-size: 16px; }
.field-label { font-size: 14px; color: var(--ink); }
.opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 4px 16px 0;
  border: 2px solid var(--hair);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font: 400 27px/1 var(--display);
  letter-spacing: 0.03em;
  text-align: left;
  cursor: pointer;
}
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt-tick { display: none; margin-top: -4px; }
.opt-tick svg { display: block; width: 26px; height: 26px; }
.opt[aria-pressed="true"] .opt-tick { display: block; }
.opts > .linkbtn, .more > .linkbtn { justify-self: start; padding-left: 0; }
.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg.is-invalid { border-color: var(--bad); }
.markups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.markup {
  min-height: 50px;
  padding: 4px 2px 0;
  border: 2px solid var(--hair);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font: 400 22px/1 var(--display);
  letter-spacing: 0.03em;
  cursor: pointer;
}
.markup[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.margin-calc { margin: 0; min-height: 25px; font-size: 18px; line-height: 1.4; color: var(--ink); }
.margin-calc.is-bad { color: var(--bad); }
.more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.problem--fix { max-width: none; margin: 0 0 18px; border: 2px solid var(--bad); }
.problem--fix .form-status { margin-top: 8px; }
.tile-value { overflow-wrap: anywhere; }
