/* Roasters Desk. Values from the locked Figma (file uwS6PeGow0UaZpqBxk9v0m): the 1920 frames in "Locked"
   (106:2) and the 1440 frames in section 131:2. Spacing on the 8 px grid; 4 px only inside components.
   Layout switches by measurement in src/ui/layout.js, which sets data-layout on <html>:
   wide (1920 design), compact (1440 design), and data-tight below 1440 (the 1440 design tightened). */

@font-face { font-family: Figtree; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/figtree-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "League Spartan"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/league-spartan-latin-600-normal.woff2) format("woff2"); }

:root {
  /* The brand tokens an account may set (src/accounts): these are Elysian's. */
  --teal-dark: #144041;
  --brand-press: #0e3233;
  --shade-rgb: 20, 64, 65;
  --cream-rgb: 255, 249, 244;
  --teal-text: #2c5b5d;
  --tint: #d6dfdf;
  --tint-soft: rgba(214, 223, 223, 0.4);
  --chip: #e4eeec;
  --page: #f5f0e8;
  --sand: #e6dfd3;
  --segment: #efe9df;
  --line: #ece6dc;
  --border: #ddd4c6;
  --past: #ecebe8;
  --ink: #1d1c1a;
  --muted: #6b655c;
  --faint: #a39c91;
  --red: #c23a2c;
  --green: #127a3c;
  --green-tint: #e2efe6;
  --live: #19e36b;
  --cream: #fff9f4;
  /* Elysian pink from the live theme (--colour-pink #ffcac9), desaturated and lightened for the Today band
     (R3-7): clearly pink, calm, never alert red. Text on it uses --ink-soft for 4.5:1 or better. */
  --pink: #ffcac9;
  --pink-soft: #f5e1de;
  --ink-soft: #4f4a44;
  /* One motion for selections and screens (R3-5): gentle ease in and out. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hover: 0.2s;
  --panel: 0.32s;
  --dur: 0.35s;
  --white: #ffffff;
  --scrim: rgba(29, 28, 26, 0.32);
  --shadow-panel: -16px 0 48px rgba(var(--shade-rgb), 0.16);
  --shadow-pop: 0 16px 48px rgba(var(--shade-rgb), 0.18);
  --font: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-display: "League Spartan", "Figtree", "Helvetica Neue", Arial, sans-serif;

  /* layout, set per layout below */
  --pad: 48px;       /* page side padding (top bar, toolbar, working area left) */
  --pad-r: 32px;     /* working area right padding before a sidebar */
  --gap: 24px;       /* between day columns */
  --side: 384px;     /* dashboard and packing sidebar */
  --roast-side: 384px;
}
/* The page padding depends on the window only, never on the screen's layout, so switching tabs never
   shifts the top bar or the titles (R3-5). */
html[data-layout="compact"] { --pad-r: 24px; --gap: 16px; --side: 320px; --roast-side: 320px; }
html[data-tight] { --pad: 24px; --pad-r: 16px; --gap: 16px; --side: 296px; --roast-side: 296px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-width: 1280px; background: var(--page); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 20px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
p, h1, h2, h3, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 32px; height: 64px;
  padding: 0 var(--pad); background: var(--teal-dark); color: var(--cream);
}
.brand { display: flex; align-items: center; gap: 12px; padding-right: 16px; flex: none; }
.brand img { width: 61.563px; height: 16px; }
.brand__rule { width: 1px; height: 20px; background: rgba(var(--cream-rgb), 0.25); }
.brand__name { font-size: 13px; color: rgba(var(--cream-rgb), 0.5); white-space: nowrap; }
.tabs { position: relative; display: flex; gap: 4px; flex: none; }
.thumb { position: absolute; left: 0; transform-origin: 0 50%; will-change: transform; pointer-events: none; }
.tabs .thumb { top: 0; bottom: 0; border-radius: 8px; background: rgba(var(--cream-rgb), 0.14); }
/* The highlight glides with transform only (R3-5): its width is set once; translate and scale move it. */
.thumb.is-sliding { transition: transform var(--dur) var(--ease); }
.tabs.has-thumb .tab[aria-current="page"] { background: none; }
.tab { position: relative; transition: color var(--hover) var(--ease); }
.tab { padding: 8px 16px; border-radius: 8px; font-weight: 500; font-size: 14px; color: rgba(var(--cream-rgb), 0.7); white-space: nowrap; }
.tab:hover { color: var(--cream); }
.tab[aria-current="page"] { background: rgba(var(--cream-rgb), 0.14); color: var(--cream); }
.top__spacer { flex: 1; min-width: 0; }
.search {
  display: flex; align-items: center; gap: 8px; width: 320px; min-width: 40px; padding: 8px 8px 8px 12px; border-radius: 8px;
  background: rgba(var(--cream-rgb), 0.1); color: rgba(var(--cream-rgb), 0.6); font-size: 14px; flex: 0 1 auto;
}
html[data-tight] .search { width: 256px; }
.search span:first-child { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search:hover { background: rgba(var(--cream-rgb), 0.14); }
.key { display: inline-block; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 4px; font-weight: 500; font-size: 11px; line-height: 16px; background: var(--segment); color: var(--muted); white-space: nowrap; }
.key--dark { background: rgba(var(--cream-rgb), 0.14); color: rgba(var(--cream-rgb), 0.85); }
.clock { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; flex: none; }
.clock b { font-weight: 600; font-size: 15px; line-height: 20px; color: var(--cream); }
.clock span { font-size: 12px; line-height: 16px; color: rgba(var(--cream-rgb), 0.65); }
/* The end of the top bar (round 3, Chris's note on uneven spacing): the time, then one group of three equal
   40 px icon tiles 4 px apart, then a hairline and the account. The badge sits on the icon's top-right corner and
   never moves anything. */
.top__end { display: flex; align-items: center; gap: 20px; flex: none; }
.icons { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 8px; flex: none; }
.icon-btn img, .icon-btn svg { width: 20px; height: 20px; color: var(--cream); }
.icon-btn.is-due svg { color: #ff8a7d; }
.icon-btn:hover, .icon-btn[aria-expanded="true"], .icon-btn[aria-current="page"] { background: rgba(var(--cream-rgb), 0.14); }
.icon-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.badge {
  position: absolute; left: 21px; top: 4px; display: flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 4px; border: 2px solid var(--teal-dark); border-radius: 9px; background: var(--red); color: #fff; box-sizing: border-box;
  font-weight: 600; font-size: 11px; line-height: 14px; font-variant-numeric: tabular-nums; pointer-events: none;
}
.icon-btn:hover .badge, .icon-btn[aria-expanded="true"] .badge { border-color: #3b5d5e; }
.top__rule { width: 1px; height: 24px; background: rgba(var(--cream-rgb), 0.2); margin: 0 -4px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-direction: column; gap: 12px; padding: 24px var(--pad) 16px; background: var(--white); border-bottom: 1px solid var(--sand); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; }
.title-group { display: flex; align-items: center; gap: 24px; min-width: 0; }
.title { font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 44px; white-space: nowrap; }
.title--week { line-height: 48px; }
.title--week span { color: var(--teal-dark); font-size: 40px; line-height: 48px; }
html[data-tight] .title--week span { font-size: 34px; }
/* Date controls (R4-3): 2 x 2 unit, 48 px tall like the title line; borders drawn with box-shadow so each
   button keeps its full 24 px. */
.week-unit {
  display: grid; grid-template-columns: 32px 32px; grid-template-rows: 24px 24px; flex: none;
  border-radius: 8px; background: var(--white); box-shadow: 0 0 0 1px var(--sand);
}
.week-unit button { display: flex; align-items: center; justify-content: center; }
.week-unit button:hover { background: var(--page); }
.week-unit__cal { grid-column: 1 / 3; border-radius: 8px 8px 0 0; box-shadow: inset 0 -1px 0 var(--sand); }
.week-unit button:nth-child(2) { border-radius: 0 0 0 8px; box-shadow: inset -1px 0 0 var(--sand); }
.week-unit button:nth-child(3) { border-radius: 0 0 8px 0; }
.week-unit img { width: 16px; height: 16px; }
.page-head .title-group { gap: 16px; }
button.title { cursor: pointer; }
.title__meta { font-size: 14px; color: var(--muted); white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 12px; flex: none; }
.week-row { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.week-control { display: flex; align-items: center; border: 1px solid var(--sand); border-radius: 8px; background: var(--white); }
.week-control button { display: flex; padding: 5px 8px; }
.week-control button:hover { background: var(--page); }
.week-control button:first-child { border-radius: 7px 0 0 7px; }
.week-control button:last-child { border-radius: 0 7px 7px 0; }
.week-control img { width: 16px; height: 16px; }
.week-control i { width: 1px; height: 26px; background: var(--sand); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); font-weight: 500; font-size: 13px; line-height: 20px; white-space: nowrap; color: var(--ink);
  transition: border-color var(--hover) var(--ease), background-color var(--hover) var(--ease);
}
.btn:hover { border-color: var(--faint); }
.btn--key { padding-right: 6px; }
.btn--small { padding: 5px 12px; font-size: 13px; }
.drawer .btn, .lightbox .btn { padding: 8px 16px; font-size: 14px; }
.drawer .btn--key, .lightbox .btn--key { padding-right: 8px; }
.btn--dark { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--cream); }
.btn--dark:hover { background: var(--brand-press); border-color: var(--brand-press); }
.btn--dark .key { background: rgba(var(--cream-rgb), 0.14); color: var(--cream); }
.btn:disabled { opacity: 0.4; }
.btn--undo { border: 1.5px solid var(--teal-dark); color: var(--teal-dark); padding-left: 12px; }
.countdown { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--teal-dark) var(--p, 100%), transparent 0); -webkit-mask: radial-gradient(circle, transparent 4.9px, #000 5px); mask: radial-gradient(circle, transparent 4.9px, #000 5px); }
.pill-done { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--green-tint); font-weight: 500; font-size: 14px; color: var(--ink); }
.pill-done img { width: 16px; height: 16px; }

.segments { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--segment); font-size: 13px; line-height: 20px; flex: none; }
.segments button { position: relative; display: flex; gap: 6px; padding: 3px 10px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.segments button span { font-weight: 400; color: var(--faint); }
.segments button[aria-pressed="true"] { background: var(--white); }
.segments .thumb { top: 3px; bottom: 3px; border-radius: 6px; background: var(--white); box-shadow: 0 1px 2px rgba(29, 28, 26, 0.08); }
.segments.has-thumb button[aria-pressed="true"] { background: none; }
.segments:not(.has-thumb) button:not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, 0.5); }
.segments.has-thumb button:not([aria-pressed="true"]):hover { color: var(--teal-dark); }

/* ---------- main and sidebars ---------- */
.main { position: relative; display: flex; align-items: stretch; flex: 1; overflow-x: hidden; overflow-x: clip; }
#page { display: flex; flex-direction: column; min-height: calc(100vh - 64px); }
#page > div { display: flex; flex-direction: column; flex: 1; }
.work { flex: 1; min-width: 0; padding: 32px var(--pad-r) 40px var(--pad); }
.work--full { padding-right: var(--pad); }
#page.is-entering { animation: page-in var(--dur) var(--ease); }
@keyframes page-in { from { opacity: 0; } }
.side { flex: none; width: var(--side); padding: 24px; background: var(--sand); display: flex; flex-direction: column; gap: 24px; }
.card { background: var(--white); border-radius: 12px; overflow: hidden; }
.card--pad { padding: 24px; }
.card__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; line-height: 24px; }
.count { padding: 0 8px; border-radius: 10px; background: var(--chip); font-weight: 600; font-size: 12px; line-height: 20px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.empty { padding: 32px 24px; text-align: center; color: var(--faint); font-size: 14px; }
.card--pad .empty { padding: 16px 0 8px; }

/* notes under rows: a small label plus body, with a 2 px rule */
.note { display: flex; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.note::before { content: ""; width: 2px; flex: none; background: var(--border); }
.note b { font-weight: 600; color: var(--ink); margin-right: 1px; }
.note--red::before { background: var(--red); }
.note--red b { color: var(--red); }
.note--teal::before { background: var(--teal-dark); }
.note--teal b { color: var(--teal-dark); }

/* ---------- dashboard ---------- */
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.day { background: var(--white); border-radius: 12px; overflow: hidden; transition: box-shadow var(--hover) var(--ease); }
.day.is-drop { box-shadow: 0 0 0 2px var(--teal-dark); }
.day__head { display: flex; flex-direction: column; gap: 4px; padding: 20px 16px 16px 24px; background: var(--tint); border-bottom: 1px solid var(--line); }
.day__name { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; }
.day__name b { font-weight: 600; }
.day__name span { color: var(--muted); }
.day__name i { flex: 1; }
.day__stats { font-size: 13px; color: var(--muted); }
.tag { padding: 2px 8px; border-radius: 4px; font-weight: 500; font-size: 12px; line-height: 16px; white-space: nowrap; background: var(--white); color: var(--muted); }
.tag--today, .day__name .tag--today { background: var(--teal-dark); color: var(--cream); }
.day.is-today .day__head { background: var(--pink-soft); }
.day.is-today .day__name span:not(.tag), .day.is-today .day__stats { color: var(--ink-soft); }
.day.is-past .day__head, .day.is-past .roast-sum, .day.is-past .row--collapsed { background: var(--past); }
.day.is-past .day__name, .day.is-past .day__stats, .day.is-past .roast-sum > *, .day.is-past .row--collapsed .row__line { opacity: 0.55; }
.day.is-past .row:not(.row--collapsed) > :not(.note) { opacity: 0.55; }

.row { position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--line); cursor: pointer; background: var(--white); }
.row[draggable="true"] { cursor: grab; }
.row[draggable="true"]:active { cursor: grabbing; }
.row.is-lifted { z-index: 2; box-shadow: 0 8px 24px rgba(var(--shade-rgb), 0.18); transform: scale(1.01); }
.row:hover { background: var(--tint-soft); }
.row__line { display: flex; align-items: flex-start; gap: 8px; }
.row__name { flex: 1; min-width: 0; font-weight: 500; font-size: 14px; }
.row__name small { margin-left: 4px; font-weight: 400; font-size: 12px; color: var(--faint); }
.row__status { flex: none; width: 80px; font-size: 13px; color: var(--ink); }
.row__lb { flex: none; width: 56px; text-align: right; font-weight: 500; font-size: 14px; white-space: nowrap; }
.row__sub { padding-right: 64px; font-size: 12px; line-height: 16px; color: var(--muted); }
.row .note { margin-right: 64px; }
.s-received { color: var(--faint); }
.s-roasting, .s-roasted, .s-delivered { color: var(--teal-text); }
.s-packed { color: var(--ink); }
.row.is-dragging { opacity: 0.4; }
.drop-line { height: 0; margin: -1px 16px 0 16px; border-top: 2px solid var(--teal-dark); position: relative; z-index: 3; pointer-events: none; }
.row--collapsed .row__name { font-weight: 500; }
.roast-sum { padding: 16px 0; background: var(--tint); }
.roast-sum__label { padding: 0 16px 4px 24px; font-weight: 500; font-size: 11px; line-height: 16px; letter-spacing: 0.06em; color: var(--faint); }
.roast-sum__row { display: flex; gap: 8px; padding: 4px 16px 4px 24px; font-size: 13px; }
.roast-sum__row span:first-child { flex: 1; min-width: 0; }
.roast-sum__row span:nth-child(2) { width: 80px; font-size: 12px; color: var(--faint); }
.roast-sum__row span:last-child { width: 56px; text-align: right; font-weight: 500; }
.day .empty { padding: 24px; text-align: left; }

.expected { display: flex; flex-direction: column; gap: 16px; }
.expected__head { display: flex; align-items: center; gap: 8px; }
.expected__head .card__title { flex: 1; }
.exp { display: flex; align-items: center; gap: 12px; }
.exp div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.exp b { font-weight: 500; font-size: 14px; }
.exp p { font-size: 12px; line-height: 16px; color: var(--muted); }
.exp em { font-style: normal; font-weight: 500; }
.exp em.overdue { color: var(--red); }
.exp em.today { color: var(--teal-dark); }
.show-all { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 500; font-size: 13px; color: var(--teal-dark); text-align: left; }
.by-coffee { padding: 24px; }
.by-coffee .card__title { padding-bottom: 16px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { padding: 6px 0; font-weight: 400; font-size: 12px; color: var(--muted); text-align: left; border-bottom: 1px solid var(--border); }
.mini-table td { padding: 6px 0; }
.mini-table .r { text-align: right; }
.mini-table td.r { font-weight: 500; }
.mini-table tfoot td { padding-top: 12px; border-top: 1px solid var(--ink); font-weight: 600; }
.mini-table tbody tr:first-child td { padding-top: 12px; }

/* ---------- roasting ---------- */
.rtw { display: flex; flex-direction: column; gap: 8px; }
.rtw__sum { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.side--roast { gap: 24px; }
.batches__head { padding-top: 24px; background: var(--tint); }
.batches__title { padding: 0 var(--bpad, 48px); font-weight: 600; font-size: 16px; line-height: 24px; }
.coffee-name { font-weight: 600; font-size: 14px; }
.coffee-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--muted); }
.coffee-sub.is-live { color: var(--teal-text); }
.input-num {
  width: 64px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--white);
  font-weight: 500; font-size: 14px; text-align: right; -moz-appearance: textfield; appearance: textfield;
}
.input-num::-webkit-outer-spin-button, .input-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bar { flex: none; width: 56px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal-dark); }
.bar--wide { width: 100%; }
.bar--green i { background: var(--green); }
.done-text { font-weight: 500; white-space: nowrap; }
.done-text.is-done { color: var(--teal-text); }
.side--roast { width: var(--roast-side); }

/* ---------- packing ---------- */
.stp { display: flex; flex-direction: column; gap: 16px; }
.stp__head { display: flex; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 12px; line-height: 16px; color: var(--muted); }
.stp__head span:first-child { flex: 1; }
.stp__group { display: flex; flex-direction: column; gap: 4px; }
.stp__group > b { font-weight: 600; font-size: 13px; }
.stp__line { display: flex; align-items: center; gap: 8px; min-height: 20px; font-size: 14px; }
.stp__line span:first-child { flex: 1; min-width: 0; }
.stp__line b { font-weight: 600; color: var(--red); }
.stp__line img { width: 20px; height: 20px; }
.is-green, .is-green > b { color: var(--green) !important; }
.stp__total { display: flex; padding-top: 16px; border-top: 1px solid var(--ink); font-weight: 600; font-size: 14px; }
.stp__total span:first-child { flex: 1; }
.stp__total .left { color: var(--red); }

/* ---------- settings: its own screen with a left sidebar (P15) ---------- */
.settings { display: grid; grid-template-columns: 232px minmax(0, 1fr); flex: 1; }
.settings__nav { display: flex; flex-direction: column; gap: 2px; padding: 32px 16px; background: var(--white); border-right: 1px solid var(--sand); }
.settings__title { padding: 0 12px 12px; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 32px; }
.settings__nav a { padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--muted); }
.settings__nav a:hover { background: var(--page); color: var(--ink); }
.settings__nav a[aria-current="page"] { background: var(--tint); color: var(--ink); }
.settings__main { min-width: 0; padding: 32px var(--pad) 40px; display: flex; flex-direction: column; gap: 24px; }
.settings__main .title { font-size: 32px; line-height: 40px; }
.settings-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 24px; }

/* ---------- settings pages ---------- */
.table-card { padding: 0; }
.st { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.st:last-child { border-bottom: 0; }
.st--head { padding: 16px 24px 8px; border: 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.st--head > * { color: inherit !important; font-size: 12px !important; }
.st--section { gap: 8px; background: var(--tint); border: 0; font-weight: 500; font-size: 11px; line-height: 16px; }
.st--section b { font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.st--section span { color: var(--faint); }
.st .c-name { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.st .c-name b { font-weight: 500; }
.st .c-name small { font-size: 12px; line-height: 16px; color: var(--muted); }
.st.is-past { color: var(--faint); }
.st.is-past .c-name b, .st.is-past .c-name small, .st.is-past .c-type { color: var(--faint); font-weight: 400; }
a.st:hover { background: var(--tint-soft); }
.field {
  height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); font-size: 14px; min-width: 0;
}
.field::placeholder { color: var(--faint); }
select.field {
  -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%236b655c' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.field--date { width: 120px; }
.field--kg { width: 72px; text-align: left; -moz-appearance: textfield; appearance: textfield; }
.field--kg::-webkit-outer-spin-button, .field--kg::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field--time { width: 120px; }
textarea.field { height: auto; min-height: 64px; resize: vertical; line-height: 20px; }

.customer-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; align-items: start; }
html[data-tight] .customer-grid { grid-template-columns: 360px minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.facts { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px 0; align-items: center; margin-top: 16px; font-size: 13px; }
.facts > span { color: var(--muted); }
.facts .field { width: 100%; }
.order-link { display: flex; align-items: center; gap: 8px; min-width: 0; }
.order-link a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; line-height: 16px; color: var(--faint); background: var(--white); }
.chip[aria-pressed="true"] { background: var(--tint); border-color: var(--tint); color: var(--ink); }
.name-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 4px; background: var(--tint); font-size: 13px; }
.name-chip button { color: var(--muted); padding: 0 2px; }
.add-chip { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); text-align: center; }
.usual-line { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 16px; font-size: 14px; }
.usual-line + .usual-line { border-top: 0; margin-top: 0; }
.usual-line span:first-child { flex: 1; }
.usual-line span:nth-child(2) { color: var(--muted); }
.usual-line b { font-weight: 500; width: 48px; text-align: right; }
.standing { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.standing label { font-size: 12px; line-height: 16px; color: var(--muted); }
/* Products (round 9): one switch per product, grouped coffee, tea, supplies. */
.prod-group { margin-top: 16px; }
.prod-group + .prod-group { margin-top: 24px; }
.prod-group__title { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prod-group__title span { color: var(--faint); }
.prods { list-style: none; margin: 0; padding: 0; }
.prod { display: flex; align-items: center; gap: 16px; min-height: 40px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 24px; }
.prod__name { flex: 1; min-width: 0; }
.prod.is-off .prod__name { color: var(--faint); }
.switch { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: var(--border); transition: background var(--dur) var(--ease); }
.switch i { position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(29, 28, 26, 0.2); transition: transform var(--dur) var(--ease); }
.switch[aria-checked="true"] { background: var(--teal-text); }
.switch[aria-checked="true"] i { transform: translateX(16px); }
.switch:disabled { cursor: default; opacity: 0.48; }
@media (prefers-reduced-motion: reduce) { .switch, .switch i { transition: none; } }
.hist { display: flex; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.hist:hover { background: var(--tint-soft); }
.hist--head { padding: 8px 24px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); cursor: default; }
.hist--head:hover { background: none; }
.hist span:nth-child(1) { width: 136px; } .hist span:nth-child(2) { width: 72px; color: var(--faint); }
.hist span:nth-child(3) { flex: 1; min-width: 0; color: var(--muted); } .hist span:nth-child(4) { width: 48px; text-align: right; font-weight: 500; }
.hist span:nth-child(5) { width: 96px; }
.hist--head span { color: inherit !important; font-weight: 400 !important; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); }
.drawer {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: 600px; display: flex; flex-direction: column;
  background: var(--white); box-shadow: var(--shadow-panel);
}
.drawer.is-entering { animation: slide-in var(--panel) var(--ease); }
.scrim.is-entering { animation: fade-in var(--panel) var(--ease); }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } }
.drawer__body { flex: 1; overflow-y: auto; padding: 24px 24px 40px; }
.drawer__foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }
.drawer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.order-no { font-size: 12px; line-height: 16px; color: var(--faint); }
.drawer h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; margin-top: 8px; }
.drawer h2.title { font-size: 32px; line-height: 40px; margin: 0; }
.sub { font-size: 13px; color: var(--muted); }
.close { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; border: 1px solid var(--border); border-radius: 8px; font-weight: 500; font-size: 13px; flex: none; }
.section { padding: 24px 0; border-top: 1px solid var(--line); }
.drawer__top + .sub + .section, .drawer__top + .section { margin-top: 24px; }
.section h3 { font-weight: 600; font-size: 15px; line-height: 24px; margin-bottom: 16px; }
.timeline { display: flex; }
.timeline li { position: relative; flex: 1; padding-top: 20px; font-size: 12px; line-height: 16px; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 0; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--white); }
.timeline li::after { content: ""; position: absolute; top: 8px; left: 12px; right: 4px; height: 1.5px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--teal-dark); border-color: var(--teal-dark); }
.timeline li.is-done::after { background: var(--teal-dark); }
.timeline li.is-next::before { border-color: var(--teal-dark); }
.timeline li.is-future { color: var(--faint); }
.timeline small { display: block; font-size: 11px; color: var(--muted); }
.drawer-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.drawer-actions i { flex: 1; }
.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.lines th { padding-bottom: 12px; border-bottom: 1px solid var(--border); font-weight: 400; font-size: 12px; color: var(--muted); text-align: left; }
.lines td { padding: 16px 0; border-bottom: 1px solid var(--line); }
.lines .r { text-align: right; }
.lines tfoot td { border-top: 2px solid var(--border); border-bottom: 0; font-weight: 500; }
.details { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px 0; align-items: center; font-size: 14px; }
.details > span { font-size: 12px; color: var(--muted); }
.details .field { width: 200px; }
.std-notes { font-size: 14px; line-height: 24px; }
.std-notes small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 4px; }
.only-box { margin-top: 24px; padding: 16px; border-radius: 8px; background: var(--tint); }
.only-box small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 4px; }

/* new order */
.no-lines .nl { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.nl--head { font-size: 12px; color: var(--muted); padding-bottom: 8px !important; border-bottom: 1px solid var(--line); }
.nl .c-p { flex: 1; min-width: 0; } .nl .c-p .field { width: 100%; }
.nl .c-s { width: 96px; } .nl .c-s .field { width: 100%; }
.nl .c-q { width: 120px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.nl .c-l { width: 48px; text-align: right; }
.nl .c-x { width: 20px; color: var(--faint); font-size: 16px; }
.nl--total { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 16px !important; font-weight: 500; }
.step { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; background: var(--white); }
.step:disabled { opacity: 0.4; }
.counter { display: inline-flex; align-items: center; gap: 8px; }
.step--quiet { width: 28px; height: 28px; border-color: var(--line); color: var(--muted); font-size: 15px; }
.step--quiet:not(:disabled):hover { border-color: var(--border); color: var(--ink); }
.counter .done-text { min-width: 44px; text-align: center; }
.step--40 { width: 40px; height: 40px; border-radius: 8px; font-size: 18px; }
.add-line { display: inline-flex; gap: 8px; margin-top: 8px; color: var(--teal-dark); font-weight: 500; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col .field { width: 100%; height: 38px; }
.meta { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }

/* lightbox */
.lightbox {
  position: fixed; z-index: 41; top: 48px; left: 50%; width: 720px; max-height: calc(100vh - 96px); transform: translateX(-50%);
  display: flex; flex-direction: column; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-pop);
}
.lightbox.is-entering { animation: lb-in var(--panel) var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.lb__head { padding: 24px 24px 0; }
.lb__body { flex: 1; overflow-y: auto; margin: 24px 24px 0; border-top: 1px solid var(--line); padding: 16px 12px 16px; mask-image: linear-gradient(#000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent); }
.lb__group { font-size: 12px; color: var(--muted); padding: 8px 0; }
.lb__line { padding: 8px 0; border-bottom: 1px solid var(--line); }
.lb__row { display: flex; align-items: center; gap: 8px; }
.lb__row .n { flex: 1; min-width: 0; font-size: 14px; }
.lb__row .n span { color: var(--muted); }
.lb__row .of { width: 64px; text-align: center; font-size: 14px; white-space: nowrap; }
.lb__row .of b { font-weight: 500; }
.lb__row .of span { color: var(--muted); }
.lb__line .bar { margin-top: 8px; }
.lb__line.is-done { padding: 4px 0; }
.lb__line.is-done .n, .lb__line.is-done .of, .lb__line.is-done .of span { color: var(--green); }
.lb__line.is-done .step { width: 28px; height: 28px; font-size: 14px; }
.lb__check { width: 20px; height: 20px; }
.lb__total { margin: 0 24px; padding: 16px 12px; border-radius: 8px; background: var(--tint); }
.lb__total .bar { background: var(--white); }
.lb__total div { display: flex; justify-content: space-between; font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.lb__total .ok { display: inline-flex; gap: 6px; align-items: center; color: var(--green); }
.lb__total .ok img { width: 16px; height: 16px; }
.lb__foot { display: flex; gap: 8px; margin: 16px 24px 0; padding: 16px 0 24px; border-top: 1px solid var(--line); }
.lb__foot i { flex: 1; }
.lb__notes { padding-top: 16px; }

/* popovers */
.pop {
  position: fixed; z-index: 45; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop);
  animation: pop-in 0.25s var(--ease);
}
.notif { top: 60px; width: 380px; padding: 20px 0 8px; max-height: calc(100vh - 80px); display: flex; flex-direction: column; }
.notif ul { overflow-y: auto; overscroll-behavior: contain; }
.pop__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px 12px; }
.pop__head h3 { font-weight: 600; font-size: 15px; }
.link { font-weight: 500; font-size: 13px; color: var(--teal-dark); }
.link:hover { text-decoration: underline; }
.notif li.nrow + li.nrow { border-top: 1px solid var(--line); }
.notif .group { padding: 12px 16px 4px; font-weight: 500; font-size: 11px; letter-spacing: 0.06em; color: var(--faint); border-top: 0; }
.nrow { position: relative; display: flex; gap: 4px; padding: 12px 40px 12px 8px; cursor: pointer; }
.nrow:hover { background: var(--tint-soft); }
.nrow .dot-mark { flex: none; width: 24px; display: flex; justify-content: center; padding-top: 6px; }
.nrow .dot-mark i { width: 8px; height: 8px; border-radius: 50%; }
.nrow.is-new .dot-mark i { background: var(--teal-dark); }
.nrow.is-new b { font-weight: 600; }
.nrow > div { flex: 1; min-width: 0; }
.nrow .mark { position: absolute; right: 8px; top: 12px; width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; opacity: 0; color: var(--teal-dark); }
.nrow:hover .mark, .nrow .mark:focus-visible { opacity: 1; }
.nrow .mark:hover { background: var(--white); }
.nrow .mark svg { width: 16px; height: 16px; }
.ctx { position: fixed; z-index: 60; min-width: 180px; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-pop); }
.ctx button { display: block; width: 100%; padding: 8px 12px; border-radius: 6px; font-size: 13px; text-align: left; }
.ctx button:hover, .ctx button:focus-visible { background: var(--tint); outline: none; }
.reminders li.exp { padding: 12px 16px; }
.notif b { font-weight: 500; }

.notif p { font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 2px; }
.notif p em { font-style: normal; color: var(--red); }

.cal { padding: 16px; width: 280px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.cal__head button { padding: 4px 8px; border-radius: 6px; }
.cal__head button:hover { background: var(--page); }
.cal__days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: var(--faint); padding: 4px 0; }
.cal__weeks { display: flex; flex-direction: column; gap: 2px; }
.cal__week { display: grid; grid-template-columns: repeat(7, 1fr); width: 100%; padding: 6px 0; border-radius: 999px; text-align: center; font-size: 13px; transition: background-color var(--hover) var(--ease); }
.cal__week:hover { background: var(--page); }
.cal__week.is-current { background: var(--tint); }
.cal__week .is-out { color: var(--faint); }
.palette { top: 96px; left: 50%; width: 560px; transform: translateX(-50%); padding: 8px; }
.palette.is-entering { animation: fade-in 0.25s var(--ease); }
/* The search field's clear button in the Desk's ink, not the browser's blue (R4). */
.palette input::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' stroke='%231d1c1a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}
.keys { top: 96px; left: 50%; width: 400px; transform: translateX(-50%); padding: 24px; animation: fade-in 0.25s var(--ease); z-index: 46; }
.keys ul { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 14px; }
.keys li { display: flex; align-items: center; gap: 12px; }
.keys .key { min-width: 32px; }
.palette input { width: 100%; padding: 12px; border: 0; outline: 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.palette__results ul { max-height: 420px; overflow-y: auto; padding-top: 8px; }
.palette li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.palette li span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.palette li[aria-selected="true"] { background: var(--tint); }
.palette .group { padding: 8px 12px 4px; font-size: 11px; letter-spacing: 0.06em; color: var(--faint); }

.toast-wrap { position: fixed; z-index: 50; left: 0; right: 0; bottom: 32px; display: flex; justify-content: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 16px; pointer-events: auto;
  padding: 8px 8px 8px 16px; border-radius: 8px; background: var(--teal-dark); color: var(--cream); font-size: 14px; box-shadow: var(--shadow-pop);
}
.toast.is-entering { animation: pop-in 0.28s var(--ease); }
.toast button b { font-weight: 500; display: inline-block; min-width: 8px; }
.toast button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 6px; background: rgba(var(--cream-rgb), 0.1); font-weight: 500; }
.toast button:hover { background: rgba(var(--cream-rgb), 0.18); }
.toast .key { background: rgba(var(--cream-rgb), 0.14); color: var(--cream); }
.toast--error { background: var(--red); }

/* sign in */
.signin { max-width: 400px; margin: 96px auto; padding: 32px; }
.signin h1 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; margin-bottom: 24px; }
.signin label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.signin .field { height: 40px; color: var(--ink); }
.signin .err { margin-bottom: 16px; color: var(--red); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- print: Letter ---------- */
#print-root { display: none; }
@page { size: letter; margin: 0.5in; }
@media print {
  body { min-width: 0; background: #fff; }
  .top, .week-control, .week-unit, .week-row .btn, .actions, .scrim, .drawer, .lightbox, .pop, .toast { display: none !important; }
  .toolbar { padding: 0 0 16px; border: 0; }
  .work { padding: 16px 0 0; }
  .main { min-height: 0; }
  .side { background: none; padding: 16px 0 0; }
  .day, .card { break-inside: avoid; border: 1px solid #ccc; }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .row__sub, .row .note { padding-right: 0 !important; margin-right: 0 !important; }
  .main { display: block; }
  .side { width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .side .btn, .show-all, .live-dot { display: none !important; }
  .page-roasting .side--roast { display: block; }
  .page-roasting { --bpad: 8px; --bgap: 6px; font-size: 11px; }
  .bt .c-done .btn { display: none; }
  .input-num, .bt .input-num, .day-score__cap { border: 0 !important; box-shadow: none !important; background: none !important; padding: 0; }
  /* Round 2 controls: paper keeps what was chosen (the week, the day) as plain text and drops every button. */
  .week-nav__today, .week-nav__arrows, .week-nav .chev, .th__arrow, .c-slip, .c-act, .step, .rc__toggle .chev, .plan-news__x,
  .page-head .segments .thumb, .page-head .segments button:not([aria-pressed="true"]), .actions, .pack-card__fold .chev { display: none !important; }
  .week-nav__title, .page-head .segments, .page-head .segments button { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
  .page-head .segments button[aria-pressed="true"] { font-size: 15px; font-weight: 500; color: #000; }
  .page-head .segments button[aria-pressed="true"]::after { display: none; }
  .att, .omark { border: 1px solid #ccc; background: none !important; }
  body.print-slips > :not(#print-root) { display: none !important; }
  body.print-slips #print-root { display: block; }
}
.slip { width: 7.5in; min-height: 9.9in; display: flex; flex-direction: column; color: #000; font-family: var(--font); break-after: page; }
.slip:last-child { break-after: auto; }
.slip__top { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 16px; border-bottom: 2px solid #000; }
.slip__top img { width: 108px; height: 28px; filter: brightness(0); }
.slip__no { text-align: right; }
.slip__no small, .slip__k { display: block; font-weight: 500; font-size: 9px; letter-spacing: 0.16em; color: #444; }
.slip__no b { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 40px; }
.slip__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 32px 0 24px; }
.slip__meta b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; margin: 8px 0; }
.slip__meta p { font-size: 12px; line-height: 24px; color: #444; }
.slip table { width: 100%; border-collapse: collapse; font-size: 15px; }
.slip th { padding: 8px 0; border-bottom: 2px solid #000; font-weight: 500; font-size: 9px; letter-spacing: 0.16em; color: #444; text-align: left; }
.slip td { padding: 12px 0; border-bottom: 1px solid #ccc; }
.slip .r { text-align: right; }
.slip .box { display: inline-block; width: 18px; height: 18px; border: 1.5px solid #000; border-radius: 2px; vertical-align: middle; }
.slip tfoot td { border: 0; font-family: var(--font-display); font-weight: 600; }
.slip__only { margin-top: 32px; padding: 16px 20px; border: 2px solid #000; }
.slip__only b { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.slip__every { margin-top: 32px; font-size: 14px; line-height: 28px; }
.slip__sign { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 48px; font-size: 15px; }
.slip__sign div { display: flex; flex-direction: column; gap: 24px; }
.slip__sign span { display: flex; align-items: center; gap: 12px; }
.slip__sign i { border-bottom: 1px solid #000; height: 1px; }
.slip__foot { display: flex; gap: 16px; align-items: baseline; margin-top: 32px; font-size: 10px; color: #444; }
.slip__foot b { font-weight: 600; letter-spacing: 0.16em; color: #000; }
.slip__foot span:last-child { margin-left: auto; }
.preview { position: fixed; z-index: 41; top: 48px; left: 50%; transform: translateX(-50%); width: 720px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-pop); }
.preview__paper { flex: 1; overflow: auto; margin: 0 24px; padding: 24px; background: var(--sand); border-radius: 8px; }
.preview__paper .slip { zoom: 0.5; background: #fff; padding: 0.5in; margin: 0 auto 24px; width: 8.5in; min-height: 11in; }
.rtw .mini-table td, .rtw .mini-table th { white-space: nowrap; }
.rtw .mini-table td:first-child { white-space: normal; }
.rtw .mini-table .r { padding-left: 12px; }
.title--fixed { display: inline-grid; }
.title--fixed > span { grid-area: 1 / 1; }
.title__sizer { visibility: hidden; }

/* Confetti, copied from the live theme (assets/elysian-cart.css) */
.ely-confetti { position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; pointer-events: none; }
.ely-confetti__bit { position: absolute; left: 0; top: 0; display: block; width: 7px; height: 7px; margin: -4px 0 0 -3px; border-radius: 1px; will-change: transform, opacity; }
.ely-confetti__bit--round { border-radius: 50%; }
.ely-confetti__bit--light { box-shadow: 0 0 0 1px rgba(34, 56, 56, 0.35); }
@media (prefers-reduced-motion: reduce) { .ely-confetti { display: none; } }

/* ---------- Batches table hierarchy (R5-2 to R5-4) ----------
   Unfinished lines lead: larger names, ink numbers, the two controls (Leftover, the batch stepper) clearly
   interactive. Computed columns are quieter. Finished lines step back: muted text, a done check. */
.counter .done-text { min-width: 56px; font-weight: 600; font-size: 15px; }
.done-check { width: 18px; height: 18px; flex: none; }

/* ---------- Roasting This Week card (R5-5) ---------- */
.rtw .card__title { font-size: 16px; line-height: 24px; }
.rtw__sum { margin: 0 0 16px; font-size: 13px; line-height: 20px; color: var(--muted); }
.rtw .mini-table th { padding: 0 0 8px; font-weight: 500; font-size: 11px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.rtw .mini-table td { padding: 8px 0; font-size: 14px; line-height: 20px; border-bottom: 1px solid var(--line); }
.rtw .mini-table tbody tr:first-child td { padding-top: 12px; }
.rtw .mini-table tbody tr:last-child td { border-bottom: 0; }
.rtw .mini-table td.r { font-weight: 500; }
.rtw .mini-table tfoot td { padding-top: 16px; border-top: 1.5px solid var(--ink); font-size: 15px; font-weight: 600; }

/* ---------- Packing scope and status tabs (R5-8) ---------- */

/* Deliver waits for packing (R5-7) */
.btn--blocked, .btn--blocked:hover { background: var(--white); border-color: var(--border); color: var(--faint); cursor: not-allowed; }
.btn--blocked .key { background: var(--segment); color: var(--faint); }
.nudge { align-self: center; font-size: 13px; color: var(--red); white-space: nowrap; }
.nudge.is-shaking { animation: shake 0.36s var(--ease); }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* ---------- Coffees: Roast math group (R5-9) ---------- */
html[data-tight] .settings { grid-template-columns: 184px minmax(0, 1fr); }

/* ---------- Plan: the software decides, the roaster informs (Nov 8) ----------
   Per coffee, its batches as quiet rows: the orders in each as chips, a thin fill bar. Full batches look
   settled; a part batch shows its spare lb. Reasons sit under the group as one muted line each. */
.btn--quiet { border-color: transparent; background: none; color: var(--teal-text); }
.btn--quiet:hover:not(:disabled) { background: var(--page); }
.btn--quiet:disabled { color: var(--faint); }
.plan-batches { list-style: none; margin: 8px 0 0; padding: 0; }
.pb { display: grid; grid-template-columns: 96px minmax(0, 1fr) 120px 96px; align-items: center; gap: 16px; min-height: 40px; padding: 4px 0; }
.pb + .pb { border-top: 1px solid var(--line); }
.pb__n { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.pb__check { width: 16px; height: 16px; flex: none; }
.pb__chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 8px; border-radius: 4px; font-size: 12px; line-height: 16px;
  background: var(--chip); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip b { font-weight: 600; }
button.pchip { cursor: pointer; }
button.pchip:hover { box-shadow: inset 0 0 0 1px var(--teal-text); }
.pchip--stock { background: repeating-linear-gradient(135deg, var(--sand) 0 6px, var(--segment) 6px 12px); color: var(--ink-soft); }
.pchip--short { background: var(--pink-soft); color: var(--red); }
.pchip.is-pinned { box-shadow: inset 0 0 0 1.5px var(--teal-dark); }
.pchip.is-over { box-shadow: inset 0 0 0 1.5px var(--red); }
.mark-shopify, .mark-pin { width: 16px; height: 16px; flex: none; }
.mark-shopify { color: #5e8e3e; }
.mark-pin { color: var(--teal-dark); }
.pb__fill { height: 8px; border-radius: 4px; background: var(--segment); overflow: hidden; }
.pb__fill i { display: block; height: 100%; border-radius: 4px; background: var(--faint); }
.pb.is-full .pb__fill i { background: var(--teal-dark); }
.pb.is-roasted .pb__fill i { background: var(--green); }
.pb.is-roasted .pchip { background: var(--page); color: var(--muted); }
.pb.is-roasted .pb__n { color: var(--faint); }
.pb__spare { font-size: 13px; line-height: 20px; text-align: right; color: var(--teal-text); font-weight: 600; white-space: nowrap; }
.plan-why { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--muted); }
.plan-why--over { color: var(--red); }
html[data-layout="compact"] .pb { grid-template-columns: 80px minmax(0, 1fr) 96px 88px; gap: 12px; }
html[data-tight] .pb { grid-template-columns: 72px minmax(0, 1fr) 72px 80px; gap: 8px; }

/* What changed since the roaster last looked (late orders), one quiet dismissible line. */
.plan-news { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 8px 8px 8px 16px; border-radius: 8px; background: var(--tint);
  font-size: 13px; line-height: 20px; color: var(--ink); }
.plan-news span { flex: 1; min-width: 0; }
.plan-news__x { width: 24px; height: 24px; border-radius: 4px; font-size: 16px; line-height: 24px; color: var(--muted); }
.plan-news__x:hover { background: rgba(255, 255, 255, 0.6); }

/* Pin a chip to a day. */
.pin { width: 280px; padding: 16px 0; }
.pin .pop__head { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 8px; }
.pin__meta { font-size: 12px; line-height: 16px; color: var(--muted); }
.pin__days { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 16px; }
.pin__days .chip { padding: 8px; font-size: 13px; line-height: 16px; color: var(--ink); }
.pin__days .chip:disabled { color: var(--faint); background: var(--page); }
.pin__off { display: block; margin: 16px 16px 0; }
.c-to__buffer { display: block; font-size: 12px; line-height: 16px; color: var(--faint); }

/* A batch logged as roasted settles. Reduced motion changes state at once. */
.pb.is-snapping .pb__fill { animation: pb-snap 0.22s cubic-bezier(0.2, 0, 0, 1); }
.pb.is-snapping .pb__n { animation: pb-snap 0.22s cubic-bezier(0.2, 0, 0, 1); }
@keyframes pb-snap { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pb.is-snapping .pb__fill, .pb.is-snapping .pb__n { animation: none; } }

/* The day's score in the Roasting header, with the quiet perfect mark. */
.day-score { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; line-height: 24px; color: var(--muted); white-space: nowrap; }
.day-score__cap { width: 48px; height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); font: inherit; color: var(--ink); text-align: center; }
.day-score__cap { -moz-appearance: textfield; appearance: textfield; }
.day-score__cap::-webkit-outer-spin-button, .day-score__cap::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.day-score__cap:disabled { background: none; border-color: transparent; color: inherit; }
.day-score.is-over .day-score__cap { color: var(--red); }
.day-score.is-over { color: var(--red); }
.day-score.is-perfect { color: var(--teal-dark); font-weight: 600; }
.day-score__mark { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-dark); }
.day-score__mark::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid var(--cream); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Settings > Roasting */
.roaster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 24px; align-items: start; }
.unit-field { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* ---------- round 1 (Nov 8): the Orders list, the date control (option A), the demo clock ---------- */
/* The demo clock sits beside the time; the search narrows to make room. */

/* Option A: [Today] ‹ › Nov 2 – 6 ▾ on one line, the title's own 48 px line height. */
html[data-tight] .week-nav__title .title--fixed span { font-size: 34px; }

/* Needs attention: one line of buttons, only when something applies. */
.attention { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.att { padding: 4px 12px; border-radius: 8px; background: #f8e2df; color: var(--red); font-weight: 500; font-size: 13px; line-height: 24px; }
.att:hover { background: #f3d2ce; }

/* One row per order. */
.olist { overflow: visible; }
.omark { padding: 0 8px; border-radius: 4px; background: var(--segment); font-weight: 500; font-size: 12px; line-height: 24px; color: var(--ink-soft); white-space: nowrap; }
.omark--shopify { display: inline-flex; align-items: center; padding: 0 4px; background: #e8f0e1; }
.omark--prio { background: var(--teal-dark); color: var(--cream); }
.omark--big { background: var(--chip); color: var(--teal-text); }
.omark--late { background: #f8e2df; color: var(--red); }
.omark--stock { background: var(--green-tint); color: var(--green); }
.s-stocked { color: var(--green); }
.ogroup { margin-top: 24px; }
.ogroup__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 600; font-size: 13px; line-height: 24px; color: var(--muted); }
.ogroup__title span { padding: 0 8px; border-radius: 8px; background: var(--segment); font-size: 12px; line-height: 20px; }

/* The row menu. */

/* Settings > Roasting: the expected-orders row. */
.unit-row { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }


/* ==========================================================================================================
   Round 2 (Nov 10, 2026). Same look, clearer conventions: a page title with a compact week control beside
   it, sortable column headers, one working list on Roasting, the day read top to bottom on Packing, Settings
   as Products / Customers / Planning, and Green coffee as its own screen. Spacing on the 8 px grid.
   ========================================================================================================== */
:root { --warn: #8a5a0b; --warn-tint: #f4e8cf; --red-tint: #f8e2df; }
.grow { flex: 1; }
.center { text-align: center; }
.chev { width: 16px; height: 16px; flex: none; }

/* ---------- top bar: the week's three screens, a rule, then Green coffee ---------- */
.tab { display: inline-flex; align-items: center; gap: 8px; }
.tabs__rule { align-self: center; width: 1px; height: 20px; margin: 0 12px; background: rgba(var(--cream-rgb), 0.25); }
.tab__flag { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--warn-tint); color: var(--warn); font-weight: 600; font-size: 11px; line-height: 16px; text-align: center; }
.tab__flag--short { background: var(--red); color: #fff; }
html[data-tight] .top { gap: 16px; }
.search span:first-child { min-width: 0; }

/* ---------- page title and the week control ---------- */
.page-head .title-group { gap: 24px; }
.title--fixed { display: inline-grid; }
.title--fixed > span { grid-area: 1 / 1; }
html[data-tight] .toolbar .title { font-size: 32px; line-height: 40px; }
.title__meta { font-size: 14px; line-height: 24px; color: var(--muted); white-space: nowrap; }
.week-nav { display: flex; align-items: center; gap: 4px; flex: none; }
.week-nav__today { height: 32px; margin-right: 4px; }
.week-nav__today:disabled { opacity: 1; border-color: var(--line); color: var(--faint); }
.week-nav__arrows { display: inline-flex; }
.week-nav__arrow { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; flex: none; }
.week-nav__arrow:hover { background: var(--page); }
.week-nav__arrow img { width: 16px; height: 16px; }
.week-nav__title { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 12px; border-radius: 8px; font-weight: 600; font-size: 15px; line-height: 32px; color: var(--ink); white-space: nowrap; }
.week-nav__title:hover { background: var(--page); }
.week-nav__title .chev { color: var(--muted); }
html[data-tight] .page-roasting .week-nav__today { display: none; }
.segments button.is-today::after { content: ""; align-self: center; width: 4px; height: 4px; border-radius: 50%; background: var(--teal-text); }

/* ---------- sortable column headers ---------- */
.th { display: inline-flex; align-items: center; gap: 4px; margin: -4px -8px; padding: 4px 8px; border-radius: 6px; font: inherit; color: inherit; white-space: nowrap; }
.th:hover { background: var(--page); color: var(--ink); }
.th__arrow { width: 12px; height: 12px; flex: none; opacity: 0; transition: opacity var(--hover) var(--ease); }
.th:hover .th__arrow { opacity: 0.4; }
.th.is-on { color: var(--ink); font-weight: 600; }
.th.is-on .th__arrow { opacity: 1; }
.th.is-asc .th__arrow { transform: rotate(180deg); }

/* ---------- Orders: one row per order, columns set apart ---------- */
.ol {
  display: grid; align-items: center; gap: 24px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--white);
  grid-template-columns: minmax(280px, 1fr) 136px 128px 80px 88px 120px 64px; font-size: 14px; line-height: 24px;
}
html[data-tight] .ol { gap: 16px; grid-template-columns: minmax(240px, 1fr) 128px 120px 72px 80px 112px 56px; }
.ol:last-child { border-bottom: 0; border-radius: 0 0 12px 12px; }
.ol[role="button"] { cursor: pointer; }
.ol[role="button"]:hover { background: var(--tint-soft); }
.ol--head { padding-top: 16px; padding-bottom: 12px; font-size: 12px; line-height: 16px; color: var(--muted); border-radius: 12px 12px 0 0; }
.ol__cust { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.ol__name { margin-right: 4px; font-weight: 500; font-size: 15px; }
.ol__status { white-space: nowrap; }
.ol__status.is-back { color: var(--red); font-weight: 500; }
.ol__roast, .ol__ship { white-space: nowrap; }
.ol__roast b { margin-left: 8px; color: var(--red); font-weight: 600; font-size: 12px; }
.ol__placed, .ol__method, .ol__usual { color: var(--muted); white-space: nowrap; }
.ol__lb { text-align: right; font-weight: 600; white-space: nowrap; }
.ol--head .ol__lb { display: flex; justify-content: flex-end; font-weight: 400; }
.ol__lb .th, .g-hand .th, .g-week .th, .g-rate .th, .g-cost .th, .g-value .th, .c-cust .th { flex-direction: row-reverse; }
.ol__plan { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; white-space: nowrap; }
.ol.is-done > * { opacity: 0.55; }
.ogroup--expected .ol { grid-template-columns: minmax(280px, 1fr) 200px 200px; background: transparent; color: var(--muted); border-bottom-color: var(--sand); }
.ogroup--expected .ol__name { font-weight: 400; color: var(--ink-soft); }
a.att { display: inline-block; }
a.omark:hover { text-decoration: underline; }

/* ---------- Roasting: one working list ---------- */
.page-roasting { --bpad: 32px; --bgap: 24px; }
html[data-layout="compact"] .page-roasting { --bpad: 24px; --bgap: 16px; }
html[data-tight] .page-roasting { --bgap: 8px; }
.bt { display: flex; align-items: center; gap: var(--bgap); padding: 16px var(--bpad); }
.bt > * { flex: none; text-align: right; }
.bt .c-coffee { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 8px; text-align: left; }
.bt .c-ord { width: 88px; } .bt .c-left { width: 96px; } .bt .c-to { width: 88px; } .bt .c-green { width: 104px; }
.bt .c-done { width: 360px; display: flex; align-items: center; gap: 16px; text-align: left; }
html[data-layout="compact"] .bt .c-ord { width: 72px; } html[data-layout="compact"] .bt .c-left { width: 88px; }
html[data-layout="compact"] .bt .c-to { width: 80px; } html[data-layout="compact"] .bt .c-green { width: 96px; }
html[data-layout="compact"] .bt .c-done { width: 312px; }
html[data-tight] .bt .c-ord { width: 64px; } html[data-tight] .bt .c-left { width: 80px; }
html[data-tight] .bt .c-to { width: 72px; } html[data-tight] .bt .c-green { width: 88px; }
html[data-tight] .bt .c-done { width: 272px; gap: 8px; }
.bt--head { padding-top: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--muted); }
.rc { border-bottom: 1px solid var(--line); }
.rc.is-live { background: var(--tint-soft); }
.rc > .bt { padding-top: 24px; padding-bottom: 24px; }
.rc__toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 6px; color: var(--muted); }
button.rc__toggle:hover { background: var(--page); color: var(--ink); }
.rc__toggle .chev { transform: rotate(-90deg); transition: transform var(--dur) var(--ease); }
.rc__toggle[aria-expanded="true"] .chev { transform: none; }
.coffee-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 600; font-size: 16px; line-height: 24px; }
.bt .c-ord { font-size: 15px; color: var(--ink-soft); }
.bt .c-to { font-weight: 600; font-size: 15px; }
.bt .c-green { font-size: 15px; color: var(--ink-soft); }
.bt .input-num {
  width: 80px; height: 40px; padding: 8px 12px; border: 1.5px solid var(--faint); border-radius: 8px; font-weight: 600; font-size: 15px;
  box-shadow: 0 1px 2px rgba(29, 28, 26, 0.06); transition: border-color var(--hover) var(--ease);
}
html[data-tight] .bt .input-num { width: 72px; }
.bt .input-num:hover { border-color: var(--teal-text); }
.bt .input-num:focus { border-color: var(--teal-dark); outline: 2px solid rgba(var(--shade-rgb), 0.18); outline-offset: 0; }
/* Batches as bins: one per batch, filled as each is logged. */
.pips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pips i { width: 16px; height: 16px; border-radius: 4px; background: var(--segment); box-shadow: inset 0 0 0 1px var(--border); }
.pips i.is-on { background: var(--teal-dark); box-shadow: none; }
.pips i.is-next { box-shadow: inset 0 0 0 2px var(--teal-text); animation: blink 1.6s ease-in-out infinite; }
.rc.is-done .pips i.is-on { background: var(--green); }
html[data-layout="compact"] .pips i, html[data-tight] .pips i { width: 12px; height: 12px; border-radius: 3px; }
html[data-tight] .pips { gap: 2px; max-width: 112px; }
.c-done .bar { width: 96px; }
.step--count { width: 40px; height: 40px; border: 1.5px solid var(--faint); border-radius: 8px; color: var(--ink); font-size: 20px; font-weight: 500; }
.step--count:not(:disabled):hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.rc.is-open .step--count[data-n="1"]:not(:disabled) { border-color: var(--teal-dark); background: var(--teal-dark); color: var(--cream); }
.rc.is-open .step--count[data-n="1"]:not(:disabled):hover { background: var(--brand-press); }
.counter .done-text { min-width: 64px; }
.rc.is-done .coffee-name, .rc.is-done .c-ord, .rc.is-done .c-to, .rc.is-done .c-green { color: var(--muted); font-weight: 500; }
.rc.is-done .done-text { color: var(--green); }
.rc.is-done .input-num { border-color: var(--border); box-shadow: none; color: var(--muted); }
.rc.is-done .step--count { border-color: var(--line); color: var(--muted); }
.rc.is-skipped .coffee-name { color: var(--muted); }
.rc .plan-why { margin: -12px 0 16px; padding: 0 var(--bpad) 0 calc(var(--bpad) + 32px); }
.rc__batches { padding: 0 var(--bpad) 16px calc(var(--bpad) + 32px); }
.rc__batches .plan-batches { margin: 0; border-top: 1px solid var(--line); }
.rc__foot { display: flex; justify-content: flex-end; padding-top: 8px; }
.plan-group__tag { padding: 0 8px; border-radius: 4px; font-size: 12px; line-height: 24px; background: var(--segment); color: var(--ink-soft); }
.bt--total { background: var(--tint); font-weight: 600; font-size: 15px; border-radius: 0 0 12px 12px; }
.bt--total > * { color: var(--ink) !important; font-weight: 600 !important; }
.roast--stock { margin-top: 24px; }
.roast .pk--section { display: flex; align-items: center; gap: 8px; padding: 16px var(--bpad); background: var(--tint); font-weight: 500; font-size: 11px; line-height: 16px; }
.roast .pk--section b { font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.roast .pk--section span { color: var(--faint); }
.bt--stock { border-bottom: 1px solid var(--line); }
.bt--stock:last-child { border-bottom: 0; }
.bt--stock .coffee-name { font-weight: 500; font-size: 15px; }
.from-stock { font-size: 13px; color: var(--muted); }

/* ---------- Packing: the day, top to bottom ---------- */
.pack { display: flex; flex-direction: column; gap: 24px; }
.pack-card__title { display: flex; align-items: center; gap: 8px; width: 100%; padding: 24px 32px 16px; font-weight: 600; font-size: 16px; line-height: 24px; }
.pack-card__fold { padding-bottom: 24px; cursor: pointer; }
.pack-card__fold:hover { background: var(--tint-soft); }
.pack-card__fold .chev { color: var(--muted); transition: transform var(--dur) var(--ease); }
.pack-card__fold[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pack-card--done .pack-card__title { color: var(--muted); }
.pk { display: flex; align-items: center; gap: 16px; padding: 16px 32px; border-top: 1px solid var(--line); }
.pk[data-order] { cursor: pointer; }
.pk[data-order]:hover { background: var(--tint-soft); }
.pk .c-cust { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pk .c-cust > b { font-weight: 500; font-size: 16px; line-height: 24px; }
.pk .c-cust > p:not(.note) { font-size: 13px; line-height: 20px; color: var(--muted); }
.pk .c-cust > p.pk__addr { color: var(--ink-soft); }
.pk .c-del { width: 96px; flex: none; font-size: 13px; color: var(--muted); }
.pk .c-bags { width: 168px; flex: none; display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 13px; white-space: nowrap; }
.pk .c-bags.is-done { color: var(--teal-text); }
.pk .c-slip { width: 40px; flex: none; display: flex; justify-content: center; }
.pk .c-slip img { width: 28px; height: 28px; }
.pk .c-slip img.printed { width: 26px; height: 26px; }
.pk .c-act { width: 168px; flex: none; display: flex; justify-content: flex-end; }
.pk--waiting .c-cust > b { color: var(--ink-soft); }
.pk--waiting .c-bags, .pk--out .c-bags, .pk--done .c-bags { font-weight: 400; color: var(--muted); }
.pk.is-delivered .c-cust > b { color: var(--muted); }
.pk.is-delivered .c-cust > p, .pk.is-delivered .c-del { color: var(--faint); }
html[data-tight] .pk { gap: 12px; padding-left: 24px; padding-right: 24px; }
html[data-tight] .pack-card__title { padding-left: 24px; padding-right: 24px; }
html[data-tight] .pk .c-del { width: 80px; }
html[data-tight] .pk .c-bags { width: 136px; }
html[data-tight] .pk .c-bags .bar { width: 40px; }
html[data-tight] .pk .c-act { width: 152px; }
.btn--quiet { border-color: transparent; background: none; color: var(--teal-text); }
.btn--quiet:hover:not(:disabled) { border-color: transparent; background: var(--page); }

/* ---------- order drawer: ship-by, editing, the reasons menu ---------- */
.choice { display: inline-flex; justify-self: start; align-self: center; gap: 2px; padding: 2px; border-radius: 8px; background: var(--segment); }
.choice button { min-width: 40px; padding: 4px 12px; border-radius: 6px; font-weight: 500; font-size: 13px; line-height: 20px; color: var(--ink-soft); text-align: center; white-space: nowrap; }
.choice button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 28, 26, 0.08); }
.choice button:disabled { color: var(--faint); cursor: default; }
.choice button[aria-pressed="true"]:disabled { color: var(--ink-soft); }
.choice button:not(:disabled):not([aria-pressed="true"]):hover { color: var(--teal-dark); background: rgba(255, 255, 255, 0.5); }
.shipby { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.details > span.shipby { font-size: 13px; }
.shipby__rule { font-size: 13px; color: var(--muted); }
.edit-state { margin-top: 16px; }
.edit-diff { margin-left: 8px; font-weight: 500; color: var(--teal-text); }
.row-menu { display: flex; flex-direction: column; width: 240px; padding: 8px; border-radius: 12px; }
.row-menu__title { padding: 4px 12px 8px; font-weight: 600; font-size: 12px; line-height: 16px; color: var(--muted); }
.row-menu button { padding: 8px 12px; border-radius: 8px; text-align: left; font-size: 14px; line-height: 24px; }
.row-menu button:hover, .row-menu button:focus-visible { background: var(--page); }

/* ---------- a date: a month to pick from ---------- */
.field--datebtn { display: inline-flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; white-space: nowrap; }
.field--datebtn svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.field--datebtn.is-empty span { color: var(--faint); }
.field--datebtn:hover { border-color: var(--faint); }
.dp { width: 296px; }
.dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp__day { height: 36px; border-radius: 8px; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.dp__day:hover:not(:disabled) { background: var(--page); }
.dp__day.is-out { color: var(--faint); }
.dp__day.is-today { box-shadow: inset 0 0 0 1px var(--teal-text); }
.dp__day[aria-pressed="true"] { background: var(--teal-dark); color: var(--cream); }
.dp__day:disabled { opacity: 0.3; }
.dp__foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.dp__foot .link:disabled { opacity: 0.4; }

/* ---------- Settings: Products, Customers, Planning, Demo ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-bottom: -16px; font-weight: 500; font-size: 13px; line-height: 24px; color: var(--muted); }
.back:hover { color: var(--ink); }
.back img { width: 16px; height: 16px; opacity: 0.6; }
.st--product, .st--customer, .st--demo { display: grid; gap: 24px; align-items: center; }
.st--product { grid-template-columns: minmax(200px, 1fr) 152px 168px 144px 112px 96px; }
.st--customer { grid-template-columns: minmax(200px, 1fr) 144px 96px 136px 96px 168px; }
.st--demo { grid-template-columns: minmax(280px, 1fr) 120px 160px; }
.st--product.st--section, .st--customer.st--section { display: flex; }
html[data-tight] .st--product { gap: 16px; grid-template-columns: minmax(176px, 1fr) 136px 152px 128px 96px 80px; }
html[data-tight] .st--customer { gap: 16px; grid-template-columns: minmax(176px, 1fr) 136px 88px 128px 80px 152px; }
.st .c-name { min-width: 0; }
.st .c-sizes, .st .c-roasts, .st .c-rot, .st .c-type, .st .c-prio { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.st .c-batch { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.st .c-cust { text-align: right; font-size: 13px; white-space: nowrap; }
.st--head .c-cust { display: flex; justify-content: flex-end; }
.st .c-last, .st .c-url { color: var(--muted); font-size: 13px; white-space: nowrap; }
.st.is-past > * { color: var(--faint) !important; }
.st--demo.is-current { background: var(--tint-soft); box-shadow: inset 2px 0 0 var(--teal-dark); }
.st--demo:hover { background: var(--tint-soft); }
.facts > label { color: var(--muted); }
.facts .choice { justify-self: start; }
.facts .unit-row .field { width: 80px; }
.facts textarea.field { min-height: 56px; }
.chip--lg { padding: 4px 12px; border-radius: 6px; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.chip:disabled { opacity: 0.5; cursor: default; }
.field--chip { width: 160px !important; height: 28px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card__head .field { width: 200px; color: var(--ink-soft); }
.prods--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); column-gap: 32px; }
.prod--all { margin-top: 16px; border-bottom: 1px solid var(--border); font-weight: 500; }
.prod .omark { margin-left: 8px; }
a.prod__name:hover { text-decoration: underline; }
.switch[aria-checked="mixed"] { background: var(--faint); }
.switch[aria-checked="mixed"] i { transform: translateX(8px); }
.loss { margin-left: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.recipe { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.recipe__row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 24px; gap: 8px; align-items: center; }
.recipe__row select.field { width: 100%; }
.recipe__row .unit-row .field { width: 72px; }
.recipe__x { width: 24px; height: 24px; border-radius: 4px; color: var(--faint); font-size: 16px; line-height: 24px; text-align: center; }
.recipe__x:hover:not(:disabled) { background: var(--page); color: var(--ink); }
.recipe__foot { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.recipe__total { margin-right: 32px; font-weight: 600; color: var(--teal-text); }
.recipe__total.is-off { color: var(--red); }
.add-line:disabled { color: var(--faint); cursor: default; }
/* A setting reads as the sentence it means. */
.say { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 40px; margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--ink-soft); }
.card__title + .say { margin-top: 16px; }
.say .field { width: 72px; color: var(--ink); }
.say select.field { width: 144px; }
.say .field--time { width: 128px; }
.say .switch { margin-left: auto; }
.roaster-grid { grid-template-columns: repeat(2, minmax(0, 480px)); }
.roaster-grid .facts { grid-template-columns: 136px minmax(0, 1fr); }
.roaster-grid .facts select.field { width: 200px; }
.table-card + .roaster-grid { margin-top: 0; }

/* ---------- Green coffee ---------- */
.gr { display: grid; align-items: center; gap: 24px; padding: 16px 24px; border-top: 1px solid var(--line); grid-template-columns: minmax(220px, 1fr) 112px 128px 80px minmax(296px, 0.9fr) 88px 96px; font-size: 14px; line-height: 24px; }
html[data-tight] .gr { gap: 16px; grid-template-columns: minmax(200px, 1fr) 104px 120px 72px minmax(280px, 0.9fr) 80px 88px; }
.gr > span { min-width: 0; }
.gr--head { padding-top: 16px; padding-bottom: 12px; border-top: 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.gr[data-green] { cursor: pointer; }
.gr[data-green]:hover { background: var(--tint-soft); }
.gr small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 400; }
.g-name b { display: block; font-weight: 500; font-size: 15px; }
.g-hand, .g-week, .g-rate, .g-cost, .g-value { text-align: right; white-space: nowrap; }
.gr--head .g-hand, .gr--head .g-week, .gr--head .g-rate, .gr--head .g-cost, .gr--head .g-value { display: flex; justify-content: flex-end; }
.g-hand b { font-weight: 600; font-size: 15px; }
.g-rate, .g-cost { color: var(--ink-soft); }
.g-reach { display: flex; align-items: center; gap: 16px; }
/* How far it reaches: the bar is twelve weeks wide, the tick is the warning distance. */
.runway { position: relative; flex: none; width: 112px; height: 8px; border-radius: 4px; background: var(--segment); }
.runway i { display: block; min-width: 4px; height: 100%; border-radius: 4px; background: var(--teal-dark); }
.runway b { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--faint); }
.runway--low i { background: var(--warn); }
.runway--short i { background: var(--red); }
.runway--idle i { display: none; }
.g-reach__text b { display: block; font-weight: 500; white-space: nowrap; }
.gr--low .g-reach__text b, .g-reach__text.gr--low b { color: var(--warn); }
.gr--short .g-reach__text b, .g-reach__text.gr--short b { color: var(--red); }
.gr--idle .g-reach__text b { font-weight: 400; color: var(--faint); }
.gr--total { background: var(--tint); border-top: 0; border-radius: 0 0 12px 12px; font-weight: 600; }
.gstatus { display: inline-block; padding: 0 8px; border-radius: 4px; background: var(--chip); color: var(--teal-text); font-weight: 500; font-size: 12px; line-height: 24px; }
.gstatus--low { background: var(--warn-tint); color: var(--warn); }
.gstatus--short { background: var(--red-tint); color: var(--red); }
.gstatus--idle { background: var(--segment); color: var(--muted); }
.gbig__n { font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 56px; color: var(--teal-dark); }
.gforms { display: grid; gap: 8px; margin-top: 24px; }
.gform { padding: 16px; border-radius: 8px; background: var(--page); }
.gform h3 { margin-bottom: 8px; font-size: 13px; line-height: 16px; }
.gform__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.gform .field { width: 96px; background-color: var(--white); }
.gform .field--datebtn { width: 152px; }
.gform .btn { margin-left: auto; }
.details--form, .details--green { grid-template-columns: 120px minmax(0, 1fr); }
.details > label { font-size: 12px; color: var(--muted); }
.details--form .field { width: 100%; }
.details--form .unit-row .field { width: 96px; }
.ledger .led { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 24px; }
.ledger .led:last-child { border-bottom: 0; }
.led > span:first-child { color: var(--muted); }
.led b { font-weight: 500; }
.led--roast b, .led--order { color: var(--muted); }

/* ---------- Green coffee on a phone (counting at the pallet): this screen and its drawers only ---------- */
@media (max-width: 720px) {
  html[data-route="green"] body { min-width: 0; }
  html[data-route="green"] .top { gap: 16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  html[data-route="green"] .top::-webkit-scrollbar { display: none; }
  html[data-route="green"] .brand { padding-right: 0; }
  html[data-route="green"] .brand__rule, html[data-route="green"] .brand__name, html[data-route="green"] .search,
  html[data-route="green"] .clock, html[data-route="green"] .top__spacer { display: none; }
  html[data-route="green"] .toolbar { padding: 16px; }
  html[data-route="green"] .page-head { flex-wrap: wrap; gap: 16px; }
  html[data-route="green"] .page-head .title-group { flex-wrap: wrap; gap: 0 16px; }
  html[data-route="green"] .toolbar .title { font-size: 28px; line-height: 36px; }
  html[data-route="green"] .work--full { padding: 16px 16px 32px; }
  html[data-route="green"] .gr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name hand" "reach reach"; gap: 8px 16px; padding: 16px; }
  html[data-route="green"] .gr--head, html[data-route="green"] .g-week, html[data-route="green"] .g-rate,
  html[data-route="green"] .g-cost, html[data-route="green"] .g-value { display: none; }
  html[data-route="green"] .g-name { grid-area: name; } html[data-route="green"] .g-hand { grid-area: hand; }
  html[data-route="green"] .g-reach { grid-area: reach; }
  html[data-route="green"] .gr--total .g-reach { display: none; }
  html[data-route="green"] .drawer { width: 100%; }
  html[data-route="green"] .drawer__body { padding: 16px 16px 32px; }
  html[data-route="green"] .gbig__n { font-size: 40px; line-height: 48px; }
  html[data-route="green"] .gform .btn { margin-left: 0; }
  html[data-route="green"] .details--form, html[data-route="green"] .details--green { grid-template-columns: 96px minmax(0, 1fr); }
  html[data-route="green"] .ledger .led { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px; }
  html[data-route="green"] .toast-wrap { bottom: 16px; padding: 0 16px; }
  html[data-route="green"] .toast .key { display: none; }
}

.bt--head > * { font-size: 12px !important; font-weight: 400 !important; color: var(--muted) !important; }
.unit-row .field, .say .field { color: var(--ink); }
.pips i.is-snapping { animation: pb-snap 0.22s cubic-bezier(0.2, 0, 0, 1); }
@media (prefers-reduced-motion: reduce) { .pips i.is-snapping { animation: none; } }

/* Every hover and pressed change eases instead of snapping (Chris's bar: 180 to 240 ms, ease-out). Zero
   specificity, so any element with its own transition keeps it. */
:where(button, a, input, select, textarea, .row, .st, .hist, .nrow, .ol, .pk, .gr, .att, .th, .field, .input-num, .step, .pchip,
  .cal__week, .dp__day, .pack-card__fold, .rc__toggle, .back, .recipe__x, .search, .icon-btn, .switch) {
  transition: background-color var(--hover) var(--ease), border-color var(--hover) var(--ease), color var(--hover) var(--ease),
    box-shadow var(--hover) var(--ease), opacity var(--hover) var(--ease);
}

/* ======================================================================================================
   Round 3 (Nov 12, 2026). Chris: "make this whole app look like it was built in-house at Shopify or Apple."
   Type scale measured from Shopify Polaris (polaris 13.9 tokens, desktop): page title 20/24 semibold, body
   13/20, table heading 12/16 at weight 550 in the secondary text colour, card heading 14/20 semibold.
   Groups are made with space and weight, not rules: a drawer section is a heading and its content with
   32 px above it, and lists inside a group sit on a soft fill instead of between lines.
   ====================================================================================================== */

/* ---------- Green coffee: positions, the lot table, cost a roasted lb ---------- */
.gpos { display: flex; flex-wrap: wrap; gap: 8px 48px; padding-top: 4px; }
.gpos__item { display: grid; gap: 2px; min-width: 0; }
.gpos__item > span { font-size: 12px; line-height: 16px; color: var(--muted); }
.gpos__item > b { font-weight: 600; font-size: 20px; line-height: 28px; color: var(--ink); white-space: nowrap; }
.gpos__item > small { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.gpos__item--rate { margin-left: auto; text-align: right; }

.gr { grid-template-columns: minmax(200px, 1.3fr) 96px 96px 112px 88px 72px minmax(248px, 1.2fr) 88px; gap: 16px; padding: 12px 20px; font-size: 13px; line-height: 20px; }
html[data-tight] .gr { grid-template-columns: minmax(176px, 1.2fr) 88px 88px 104px 80px 64px minmax(224px, 1.2fr) 80px; gap: 12px; }
.gr small { font-size: 12px; line-height: 16px; }
.g-name b { font-size: 13px; font-weight: 600; }
.g-hand b { font-weight: 600; }
.g-transit, .g-importer, .g-landed, .g-value { text-align: right; }
.gr--head .g-transit, .gr--head .g-importer, .gr--head .g-landed { display: flex; justify-content: flex-end; }
.g-transit .th, .g-importer .th, .g-landed .th { flex-direction: row-reverse; }
.gr .dash { font-style: normal; color: var(--faint); }
.g-reach { gap: 12px; }
.runway { width: 80px; height: 6px; border-radius: 3px; }
.runway i { border-radius: 3px; }
.g-reach__text b { font-weight: 500; }
.g-reach__text small { white-space: normal; }
.gr--group { padding: 20px 20px 8px; border-top: 0; font-size: 12px; line-height: 16px; font-weight: 550; color: var(--muted); }
.gr--group + .gr { border-top: 0; }
.gr--idle .g-name b { font-weight: 500; }

.gcost { margin-top: 24px; padding: 20px 0 8px; }
.gcost__head { display: flex; align-items: baseline; gap: 16px; padding: 0 20px 12px; }
.gcost__head .card__title { font-size: 14px; line-height: 20px; }
.gc { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(200px, 1.6fr) 112px 96px 112px; gap: 16px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.gc--head { border-top: 0; padding-top: 4px; padding-bottom: 8px; font-size: 12px; line-height: 16px; font-weight: 550; color: var(--muted); }
.gc .r { text-align: right; }
.gc b { font-weight: 600; }

/* The lot drawer: groups by space. */
.dgroup { margin-top: 32px; }
.dgroup > h3, .section > h3 { margin-bottom: 12px; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--ink); }
.gpos--drawer { gap: 16px 32px; padding: 0; }
.gpos--drawer .gpos__item > b { font-size: 17px; line-height: 24px; }
.gpos--drawer .gpos__item > b.gbig__n { font-family: var(--font); font-weight: 600; font-size: 28px; line-height: 36px; color: var(--teal-dark); }
.gpos--drawer .gpos__item { align-content: end; }
.greach { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--page); font-size: 13px; line-height: 20px; }
.greach small { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--muted); }
.gland { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px; border-radius: 10px; background: var(--page); font-size: 13px; line-height: 20px; }
.gland > span:nth-child(odd) { color: var(--muted); }
.gland > span:nth-child(even) { text-align: right; }
.gland .gland__total { padding-top: 8px; margin-top: 4px; font-weight: 600; color: var(--ink); font-size: 14px; }
.gland b.gland__total { text-align: right; }
.gland__from { margin-top: 8px; font-size: 12px; }
.gforms { display: grid; gap: 8px; }
.gform { padding: 16px; border-radius: 10px; }
.gform h3 { font-size: 13px; line-height: 20px; font-weight: 600; }
.gform__more { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.gform__more .unit-row { font-size: 12px; color: var(--muted); }
.gform__more .field { width: 96px; }
.details--form { gap: 12px 0; }
.details .label { font-size: 12px; color: var(--muted); }
.field--cur { width: 64px !important; text-transform: uppercase; }
.field--unit { width: 72px !important; }
.unit-row--price { flex-wrap: wrap; }
.drawer--green .gstatus { font-size: 12px; }
@media (max-width: 720px) {
  html[data-route="green"] .gpos { gap: 16px 24px; }
  html[data-route="green"] .gpos__item--rate { margin-left: 0; text-align: left; }
  html[data-route="green"] .gr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name hand" "reach reach"; }
  html[data-route="green"] .g-transit, html[data-route="green"] .g-importer, html[data-route="green"] .g-landed { display: none; }
  html[data-route="green"] .gr--group { display: block; }
  html[data-route="green"] .gc { grid-template-columns: minmax(0, 1fr) auto; }
  html[data-route="green"] .gc > :nth-child(2), html[data-route="green"] .gc > :nth-child(3), html[data-route="green"] .gc > :nth-child(4) { display: none; }
  html[data-route="green"] .gcost__head { flex-direction: column; gap: 4px; }
  html[data-route="green"] .gpos--drawer .gpos__item > b.gbig__n { font-size: 24px; line-height: 32px; }
}
.gr.gr--head { padding-top: 12px; padding-bottom: 8px; font-size: 12px; line-height: 16px; font-weight: 550; color: var(--muted); }

/* ---------- B1. Page title and the week control ---------- */
.toolbar { padding-top: 20px; padding-bottom: 16px; }
.page-head { min-height: 36px; }
.title, .title--week span { font-family: var(--font); font-weight: 650; font-size: 24px; line-height: 32px; letter-spacing: -0.012em; }
.page-head .title-group, .title-group { gap: 20px; }
.title__meta { font-size: 13px; line-height: 20px; }
.week-nav { gap: 8px; }
.week-nav__group { display: inline-flex; align-items: stretch; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--white);
  box-shadow: 0 1px 0 rgba(29, 28, 26, 0.04); overflow: hidden; }
.week-nav__group > button { display: inline-flex; align-items: center; justify-content: center; height: 30px; border-radius: 0; }
.week-nav__group > button + button { border-left: 1px solid var(--line); }
.week-nav__group .week-nav__arrow { width: 32px; }
.week-nav__group .week-nav__arrow img { width: 14px; height: 14px; opacity: 0.75; }
.week-nav__group .week-nav__arrow:hover, .week-nav__group .week-nav__today:not(:disabled):hover { background: var(--page); }
.week-nav__today { height: 30px; margin: 0; padding: 0 12px; font-weight: 550; font-size: 13px; color: var(--ink); background: none; border: 0; }
.week-nav__today:disabled { color: var(--muted); opacity: 1; cursor: default; }
.week-nav__title { gap: 8px; height: 32px; padding: 0 10px; font-weight: 550; font-size: 13px; line-height: 32px; color: var(--ink); }
.week-nav__title .cal-ico { width: 16px; height: 16px; color: var(--muted); }
.page-head .segments button { font-size: 13px; }
.settings__title { font-family: var(--font); font-weight: 650; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; padding-bottom: 16px; }
.settings__nav { gap: 2px; padding: 24px 12px; }
.settings__nav a { padding: 6px 12px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-soft); }
.settings__nav a[aria-current="page"] { background: var(--page); color: var(--ink); font-weight: 600; }
.drawer h2 { font-family: var(--font); font-weight: 650; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.drawer h2.title { font-size: 22px; line-height: 28px; }

/* ---------- B2. Tables on the Polaris scale: 13/20 body, 12/16 headings at 550, 12 px vertical padding ---------- */
.ol { padding: 10px 20px; font-size: 13px; line-height: 20px; gap: 20px; }
.ol--head, .ol.ol--head { padding-top: 10px; padding-bottom: 8px; font-size: 12px; line-height: 16px; font-weight: 550; color: var(--muted); }
.ol__name { font-size: 13px; font-weight: 600; }
.ol__lb { font-weight: 600; }
.omark, .ol .omark { font-size: 12px; line-height: 20px; }
.st { padding: 10px 20px; font-size: 13px; line-height: 20px; }
.st--head { padding: 12px 20px 8px; font-weight: 550; }
.st .c-name b { font-weight: 600; }
.st--section { padding-top: 12px; padding-bottom: 8px; background: var(--page); font-size: 12px; }
.st--section b { letter-spacing: 0; font-weight: 600; color: var(--ink-soft); }
.hist { padding: 10px 20px; line-height: 20px; }
.hist--head { padding: 8px 20px; font-weight: 550; }
.card__title { font-size: 14px; line-height: 20px; }
.pk { padding: 12px 24px; }
.pk .c-cust > b { font-size: 14px; line-height: 20px; font-weight: 600; }
.pack-card__title { padding: 20px 24px 12px; font-size: 14px; line-height: 20px; }
.mini-table, .rtw .mini-table td { font-size: 13px; }
.rtw .mini-table th { font-size: 12px; font-weight: 550; letter-spacing: 0; text-transform: none; color: var(--muted); }
.rtw .card__title { font-size: 14px; line-height: 20px; }
.rtw .mini-table tfoot td { font-size: 13px; border-top-width: 1px; }
.empty { font-size: 13px; }

/* ---------- B4. Roasting: a calmer list; batches fill in softly ---------- */
.bt { padding-top: 12px; padding-bottom: 12px; }
.rc > .bt { padding-top: 16px; padding-bottom: 16px; }
.bt--head { padding-top: 12px; padding-bottom: 8px; font-weight: 550; }
.coffee-name { font-size: 14px; line-height: 20px; }
.bt .c-ord, .bt .c-to, .bt .c-green, .bt--stock .coffee-name { font-size: 13px; }
.bt .c-to { font-weight: 600; }
.bt .input-num { width: 72px; height: 32px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; font-weight: 500; font-size: 13px; box-shadow: none; }
.step--count { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; }
.counter .done-text { min-width: 56px; font-size: 13px; font-weight: 600; }
.rc .plan-why { font-size: 12px; }
.bt--total { background: none; border-top: 1px solid var(--border); font-size: 13px; }
.roast .pk--section { padding: 12px var(--bpad) 8px; background: none; font-size: 13px; line-height: 20px; }
.roast .pk--section b { letter-spacing: 0; font-weight: 600; color: var(--ink); }
.roast--stock .bt--stock:first-of-type { border-top: 1px solid var(--line); }
.pips { gap: 4px; }
.pips i { width: 14px; height: 14px; border-radius: 4px; background: var(--segment); box-shadow: inset 0 0 0 1px var(--border);
  transition: background-color 0.42s var(--ease), box-shadow 0.42s var(--ease); }
html[data-layout="compact"] .pips i, html[data-tight] .pips i { width: 12px; height: 12px; border-radius: 3px; }
.pips i.is-next { animation: none; box-shadow: inset 0 0 0 1.5px var(--teal-text); }
/* A batch logged: the bin fills from its centre and settles, 420 ms ease-out, no bounce. A batch taken back
   drains the same way. */
.pips i.is-snapping { animation: bin-fill 0.42s var(--ease) both; }
.pips i.is-draining { animation: bin-drain 0.36s var(--ease) both; }
@keyframes bin-fill {
  from { background-color: var(--segment); box-shadow: inset 0 0 0 1px var(--border); transform: scale(0.7); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes bin-drain {
  from { background-color: var(--teal-dark); box-shadow: none; transform: scale(0.85); }
  to { transform: scale(1); }
}
.pb.is-snapping .pb__fill, .pb.is-snapping .pb__n { animation: bin-fill 0.42s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .pips i, .pips i.is-snapping, .pips i.is-draining, .pb.is-snapping .pb__fill, .pb.is-snapping .pb__n { animation: none; transition: none; }
}

/* ---------- B3. Drawers grouped by space and weight, not lines ---------- */
.drawer__body { padding: 24px 28px 40px; }
.drawer .section { padding: 0; margin-top: 32px; border-top: 0; }
.drawer .section h3 { margin-bottom: 12px; font-size: 14px; line-height: 20px; }
.drawer .sub { margin-top: 2px; }
.drawer .timeline li { font-size: 12px; }
.drawer-actions { margin-top: 20px; gap: 8px; }
.lines { font-size: 13px; line-height: 20px; }
.lines th { padding: 0 0 6px; border-bottom: 0; font-weight: 550; font-size: 12px; }
.lines td { padding: 6px 0; border-bottom: 0; }
.lines tbody tr:first-child td { padding-top: 8px; }
.lines tbody { }
.lines tfoot td { padding-top: 12px; border-top: 0; font-weight: 600; }
.lines-wrap { padding: 12px 16px; border-radius: 10px; background: var(--page); }
.details { gap: 12px 16px; font-size: 13px; line-height: 20px; }
.details > span { font-size: 13px; }
.details > span:nth-child(odd):not(.shipby) { color: var(--muted); }
.details > span:nth-child(even) { color: var(--ink); }
.std-notes { font-size: 13px; line-height: 20px; }
.only-box { margin-top: 12px; border-radius: 10px; background: var(--page); }
.std-notes, .only-box { padding: 12px 16px; border-radius: 10px; background: var(--page); }
.std-notes p + p { margin-top: 4px; }
.no-lines { padding: 8px 16px; border-radius: 10px; background: var(--page); }
.no-lines .nl { padding: 6px 0; gap: 12px; font-size: 13px; }
.nl--head { padding: 4px 0 2px !important; border-bottom: 0; font-weight: 550; }
.nl--total { margin-top: 4px; padding-top: 10px !important; border-top: 0; font-weight: 600; }
.no-lines .field { background-color: var(--white); }
.add-line { margin: 4px 0; font-size: 13px; }
.drawer .meta { margin-top: 8px; }
.drawer .field { font-size: 13px; }
.drawer__top { min-height: 40px; }
:root { --fill: #f8f5ef; }
.lines-wrap, .std-notes, .only-box, .no-lines, .gland, .greach, .gform { background: var(--fill); }
.drawer .details:not(.details--form):not(.details--green) { grid-template-columns: 128px minmax(0, 1fr); }

/* ---------- C. Sign in: the Desk's own entrance ---------- */
.signin-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px;
  background: radial-gradient(120% 80% at 50% 0%, #1d5254 0%, var(--teal-dark) 55%, #0f3334 100%); }
.signin-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.signin__brand { display: flex; align-items: center; gap: 12px; color: rgba(var(--cream-rgb), 0.72); font-size: 14px; line-height: 20px;
  animation: signin-in 0.6s var(--ease) both; }
.signin__brand img { height: 18px; width: auto; }
.signin__brand .brand__rule { width: 1px; height: 16px; background: rgba(var(--cream-rgb), 0.3); }
.signin { width: 100%; max-width: none; margin: 0; padding: 32px; border-radius: 16px; background: var(--white);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.08); animation: signin-in 0.6s 0.08s var(--ease) both; }
.signin h1 { margin: 0 0 24px; font-family: var(--font); font-weight: 650; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.signin__field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; font-size: 13px; line-height: 20px; color: var(--ink-soft); font-weight: 500; }
.signin .field { width: 100%; height: 40px; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.signin .field:focus { border-color: var(--teal-dark); outline: 3px solid rgba(var(--shade-rgb), 0.14); outline-offset: 0; }
.signin__field.has-err .field { border-color: var(--red); }
.signin__field.has-err .field:focus { outline-color: rgba(194, 58, 44, 0.16); }
.signin__field.has-err + .signin__err { margin-top: -10px; }
.signin__err { margin: 0 0 16px; font-size: 13px; line-height: 20px; color: var(--red); animation: signin-err 0.28s var(--ease) both; }
.signin__err--form { padding: 10px 12px; border-radius: 8px; background: var(--red-tint, #fbe9e6); }
.signin__pw { position: relative; display: block; }
.signin__pw .field { padding-right: 64px; }
.signin__show { position: absolute; top: 4px; right: 4px; height: 32px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 550; color: var(--muted); }
.signin__show:hover { background: var(--page); color: var(--ink); }
.signin__go { width: 100%; height: 40px; justify-content: center; margin-top: 8px; font-size: 14px; font-weight: 550; }
.signin__go .spin { width: 14px; height: 14px; margin-right: 8px; border: 2px solid rgba(var(--cream-rgb), 0.35); border-top-color: var(--cream); border-radius: 50%; animation: spin 0.8s linear infinite; }
.signin__forgot { display: block; margin: 16px auto 0; font-size: 13px; color: var(--teal-text); }
.signin__help { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: var(--fill); font-size: 13px; line-height: 20px; color: var(--ink-soft); text-align: center; }
@keyframes signin-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes signin-err { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .signin__brand, .signin, .signin__err { animation: none; } .signin__go .spin { animation-duration: 2.4s; } }
body:has(.signin-page) { min-width: 0; }

/* ---------- D. Settings > Connections, and Send to QuickBooks (simulated for the demo) ---------- */
.conn__note { max-width: 640px; margin: -8px 0 24px; font-size: 13px; line-height: 20px; }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; max-width: 960px; }
.conn { display: flex; flex-direction: column; padding: 24px; }
.conn__head { display: flex; align-items: flex-start; gap: 16px; }
.conn__mono { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: #fff; }
.conn__mono--shopify { background: #95bf47; }
.conn__mono--qbo { background: #2ca01c; text-transform: lowercase; }
.conn__mono svg { width: 22px; height: 22px; display: block; }
.conn__mono--qbo svg { width: 24px; height: 24px; }
.conn__mono--desk { background: var(--teal-dark); color: var(--cream); font-size: 14px; }
.conn__title { flex: 1; min-width: 0; }
.conn__title h2 { font-weight: 650; font-size: 15px; line-height: 20px; }
.conn__region { margin-left: 4px; font-weight: 500; font-size: 12px; color: var(--muted); }
.conn__title p { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.conn__status { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--segment); font-weight: 550; font-size: 12px; line-height: 16px; color: var(--muted); }
.conn__status.is-on { background: var(--green-tint); color: var(--green); }
.conn__status.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.conn__facts { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 16px; margin: 20px 0 0; padding: 16px; border-radius: 10px; background: var(--fill); font-size: 13px; line-height: 20px; }
.conn__facts dt { color: var(--muted); }
.conn__facts dd { margin: 0; color: var(--ink); }
.conn__never { margin-top: 20px; font-size: 13px; line-height: 20px; color: var(--muted); }
.conn__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; }
.conn__foot i { flex: 1; }
.demo-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px dashed var(--border); border-radius: 4px; font-weight: 550; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.btn .spin, .btn--dark .spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid rgba(var(--cream-rgb), 0.35); border-top-color: var(--cream); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; }
.btn--danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn--danger:hover { background: #a93224; }
.scrim--center { z-index: 70; }
.modal { position: fixed; z-index: 71; top: 50%; left: 50%; width: min(440px, calc(100vw - 32px)); transform: translate(-50%, -50%); padding: 28px; border-radius: 16px; background: var(--white); box-shadow: 0 24px 64px rgba(var(--shade-rgb), 0.24); }
.modal.is-entering { animation: modal-in 0.32s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { .modal.is-entering { animation: none; } }
.consent__pair { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.consent__dots { display: inline-flex; gap: 4px; } .consent__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.consent h2 { font-weight: 650; font-size: 17px; line-height: 24px; text-align: center; }
.consent--small h2 { text-align: left; }
.consent__acct { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.consent__acct b { color: var(--ink); font-weight: 600; }
.consent__lead { margin-top: 20px; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.consent--small .consent__lead { margin-top: 8px; }
.consent__list { margin: 8px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--fill); list-style: none; font-size: 13px; line-height: 20px; }
.consent__list li { position: relative; padding-left: 20px; }
.consent__list li + li { margin-top: 6px; }
.consent__list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 5px; border-left: 1.6px solid var(--green); border-bottom: 1.6px solid var(--green); transform: rotate(-45deg); }
.consent__never { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
.consent__foot { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
.consent__foot i { flex: 1; }

.olist--pick .ol { grid-template-columns: 20px minmax(260px, 1fr) 136px 128px 80px 88px 120px 64px; }
html[data-tight] .olist--pick .ol { grid-template-columns: 20px minmax(220px, 1fr) 128px 120px 72px 80px 112px 56px; }
.ol__pick { display: flex; align-items: center; }
.pickbox { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 5px; background: var(--white); color: transparent; }
.pickbox svg { width: 12px; height: 12px; }
.pickbox:hover { border-color: var(--teal-text); }
.pickbox[aria-checked="true"] { border-color: var(--teal-dark); background: var(--teal-dark); color: var(--cream); }
.ol.is-picked { background: var(--tint-soft); }
.omark--inv { background: var(--green-tint); color: var(--green); }
.bulkbar { position: fixed; z-index: 40; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 16px; min-width: 360px; padding: 8px 8px 8px 20px; border-radius: 12px;
  background: var(--teal-dark); color: var(--cream); box-shadow: var(--shadow-pop); transform: translateX(-50%); animation: bulk-in 0.32s var(--ease) both; font-size: 13px; }
.bulkbar i { flex: 1; }
.bulkbar .link { color: rgba(var(--cream-rgb), 0.75); font-size: 13px; }
.bulkbar .btn--dark { background: var(--cream); color: var(--teal-dark); border-color: var(--cream); }
@keyframes bulk-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .bulkbar { animation: none; } }
.drawer__foot .demo-tag { align-self: center; }
.drawer__foot .grow { flex: 1; }
.inv { padding: 16px; border-radius: 10px; background: var(--fill); }
.inv + .inv { margin-top: 12px; }
.inv__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.inv__head b { font-weight: 600; }
.inv__lines { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; }
.inv__lines td { padding: 3px 0; }
.inv__lines .r { text-align: right; white-space: nowrap; padding-left: 16px; }
.inv__lines tfoot td { color: var(--muted); }
.inv__lines tfoot tr:first-child td { padding-top: 10px; }
.inv__lines .inv__total td { padding-top: 6px; color: var(--ink); font-weight: 600; }
.sent { padding: 32px 0; text-align: center; }
.sent__check { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-tint); color: var(--green); animation: sent-in 0.5s var(--ease) both; }
.sent__check svg { width: 28px; height: 28px; }
.sent h3 { margin-top: 16px; font-weight: 650; font-size: 17px; line-height: 24px; }
.sent .sub { margin-top: 4px; }
.sent__demo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--muted); }
@keyframes sent-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sent__check { animation: none; } }
.settings__main .title { font-size: 24px; line-height: 32px; }
.gpos--drawer { align-items: flex-end; }
.gpos--drawer { align-items: flex-start; }
.gpos--drawer .gpos__item > b, .gpos--drawer .gpos__item > b.gbig__n { font-size: 20px; line-height: 28px; }
.gpos--drawer .gpos__item > b.gbig__n { color: var(--teal-dark); }

/* ---------- Orders: Source column (round 3) ---------- */
.olist .ol:not(.ol--expected) { grid-template-columns: 48px minmax(240px, 1fr) 136px 128px 80px 88px 120px 64px; }
html[data-tight] .olist .ol:not(.ol--expected) { grid-template-columns: 44px minmax(200px, 1fr) 128px 120px 72px 80px 112px 56px; }
.olist.olist--pick .ol:not(.ol--expected) { grid-template-columns: 20px 48px minmax(220px, 1fr) 136px 128px 80px 88px 120px 64px; }
html[data-tight] .olist.olist--pick .ol:not(.ol--expected) { grid-template-columns: 20px 44px minmax(180px, 1fr) 128px 120px 72px 80px 112px 56px; }
.ol__src { display: flex; align-items: center; }
.ol__src .src { width: 16px; height: 16px; color: var(--muted); opacity: 0.85; }
.ol.is-done .ol__src .src { opacity: 1; }
.ol--head .ol__src .th { font-size: 12px; }

/* New customer (round 3): what is missing, said under its field, in the sign-in's error red. */
.details--form .field.is-invalid { border-color: var(--red); }
.details--form .field.is-invalid:focus { outline-color: rgba(194, 58, 44, 0.16); }
.field-err { margin: -6px 0 0; font-size: 12px; line-height: 16px; color: var(--red); animation: signin-err 0.28s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .field-err { animation: none; } }

/* Account (round 3): initials at the end of the top bar, a small menu under them, the Profile drawer. */
.avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  background: var(--cream); color: var(--teal-dark); font-weight: 600; font-size: 11px; line-height: 16px; letter-spacing: 0.02em; }
.acct { top: 60px; width: 240px; max-width: calc(100vw - 32px); padding: 4px; border-radius: 12px; }
.acct__who { display: flex; flex-direction: column; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.acct__who b { font-weight: 600; font-size: 13px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__who span { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct button { display: block; width: 100%; padding: 8px 12px; border-radius: 6px; font-size: 13px; line-height: 20px; text-align: left; }
.acct button:hover, .acct button:focus-visible { background: var(--tint); outline: none; }
.pf-text { align-self: center; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
@media (max-width: 720px) { .drawer[aria-label="Profile"] { width: 100%; } .drawer[aria-label="Profile"] .details--form { grid-template-columns: 96px minmax(0, 1fr); } }

/* Profile photo (round 3): the round mark in three sizes, the photo row at the top of Profile. */
.avatar--md { width: 36px; height: 36px; font-size: 13px; }
.avatar--lg { width: 72px; height: 72px; font-size: 24px; line-height: 32px; background: var(--teal-dark); color: var(--cream); }
.avatar--img { background: var(--segment); }
.acct__who { flex-direction: row; align-items: center; gap: 12px; }
.acct__who > div { display: flex; flex-direction: column; min-width: 0; }
.acct__who .avatar--md:not(.avatar--img) { background: var(--teal-dark); color: var(--cream); }
.pf-photo { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.pf-photo.is-busy .avatar--lg { opacity: 0.5; }
.pf-photo__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pf-photo__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-photo__status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.pf-spin { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--teal-dark); border-radius: 50%; animation: pf-spin 0.8s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pf-spin { animation-duration: 2.4s; } }
/* On a phone (Green coffee is the phone screen) the reminders, notifications and settings fold away (their lists
   and pages are desk-sized) and the account stays pinned at the right of the bar, so Sign out is always in reach. */
@media (max-width: 720px) {
  html[data-route="green"] .top__end { position: sticky; right: 0; padding-left: 12px; height: 64px; background: var(--teal-dark); gap: 0; box-shadow: -12px 0 12px -8px var(--teal-dark); }
  html[data-route="green"] .icons, html[data-route="green"] .top__rule { display: none; }
}

/* Side panels leave as they came (round 3, Chris: "it doesn't slide away"): back out to the right, a little faster
   than they enter and easing in; the scrim fades with them. A form with unsaved changes nudges instead. */
#leaving .drawer, #leaving .scrim { pointer-events: none; }
.drawer.is-leaving { transform: translateX(100%); transition: transform 0.22s cubic-bezier(0.4, 0, 1, 1); }
.scrim.is-leaving { opacity: 0; transition: opacity 0.22s cubic-bezier(0.4, 0, 1, 1); }
.drawer.is-nudging { animation: drawer-nudge 0.18s var(--ease); }
@keyframes drawer-nudge { 40% { transform: translateX(-6px); } }
.unsaved { align-self: center; margin-right: 4px; font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; animation: fade-in 0.18s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .drawer.is-leaving, .scrim.is-leaving { transition: none; }
  .drawer.is-nudging, .unsaved { animation: none; }
}

/* ---------- Round 4 (the AD call, Nov 14) ---------- */
/* Orders: a narrow column for the row menu. */
.olist .ol:not(.ol--expected) { grid-template-columns: 48px minmax(240px, 1fr) 136px 128px 80px 88px 120px 64px 32px; }
html[data-tight] .olist .ol:not(.ol--expected) { grid-template-columns: 44px minmax(200px, 1fr) 128px 120px 72px 80px 112px 56px 32px; }
.olist.olist--pick .ol:not(.ol--expected) { grid-template-columns: 20px 48px minmax(220px, 1fr) 136px 128px 80px 88px 120px 64px 32px; }
html[data-tight] .olist.olist--pick .ol:not(.ol--expected) { grid-template-columns: 20px 44px minmax(180px, 1fr) 128px 120px 72px 80px 112px 56px 32px; }
.ol__more { display: flex; justify-content: flex-end; }
.ol__menu { width: 32px; height: 32px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease); }
.ol__menu svg { width: 16px; height: 16px; }
.ol__menu:hover, .ol__menu[aria-expanded="true"] { background: var(--page); color: var(--ink); }
.fix-hint b { margin-right: 4px; }

/* The demo's View as switch in the top bar. */
.viewas { display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; white-space: nowrap; flex: none; font-size: 13px; color: rgba(var(--cream-rgb), 0.72); }
.viewas__sel { height: 32px; padding: 0 28px 0 10px; border: 1px solid rgba(var(--cream-rgb), 0.28); border-radius: 8px; background: rgba(var(--cream-rgb), 0.08); color: var(--cream); font: inherit; font-weight: 500; }
.viewas__sel option { color: var(--ink); }
.viewas__tag { padding: 0 6px; border: 1px dashed rgba(var(--cream-rgb), 0.5); border-radius: 4px; font-size: 11px; line-height: 18px; }

/* Roasting: batches today, the roaster's main control. */
.bt-today { display: flex; align-items: center; gap: 32px; margin-bottom: 16px; padding: 20px 32px; }
.bt-today__main { display: flex; flex-direction: column; gap: 8px; }
.bt-today__label { font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.bt-today__ctl { display: inline-flex; align-items: center; gap: 12px; }
.step--big { width: 48px; height: 48px; border: 1.5px solid var(--faint); border-radius: 10px; font-size: 24px; font-weight: 500; color: var(--ink); transition: border-color var(--hover) var(--ease), color var(--hover) var(--ease); }
.step--big:not(:disabled):hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.bt-today__n { width: 96px; height: 56px; border: 1.5px solid var(--faint); border-radius: 10px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 56px; color: var(--teal-dark); -moz-appearance: textfield; appearance: textfield; }
.bt-today__n::-webkit-inner-spin-button, .bt-today__n::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bt-today__n:focus { border-color: var(--teal-dark); outline: 2px solid rgba(var(--shade-rgb), 0.18); outline-offset: 0; }
.bt-today__n--read { display: inline-block; width: auto; border: 0; text-align: left; }
.bt-today__say { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bt-today__say p { font-weight: 600; font-size: 20px; line-height: 28px; color: var(--ink); }
.bt-today.is-over .bt-today__say p { color: var(--red); }
.bt-today__extra { font-size: 14px; line-height: 20px; color: var(--muted); }
.bt-today__end { flex: none; }

/* The big warning: full width, high contrast, plain words, with the fix. */

/* Roasting table: batches needed beside batches roasted; on hand is a number, never typed. */
.bt .c-need { width: 72px; font-size: 15px; color: var(--ink-soft); }
.bt .c-left { font-size: 15px; }
.bt .c-done { width: 300px; }
html[data-layout="compact"] .bt .c-need { width: 64px; } html[data-layout="compact"] .bt .c-done { width: 264px; }
html[data-tight] .bt .c-need { width: 56px; } html[data-tight] .bt .c-done { width: 232px; }
.bt--head .c-to, .bt--head .c-need, .bt--head .c-done, .bt--head .c-green, .bt--head .c-left, .bt--head .c-ord { white-space: normal; }
.counter .done-text { min-width: 32px; }

/* Weighing: optional, inline under the coffee. */
.weigh { display: flex; flex-direction: column; gap: 8px; margin: -8px var(--bpad) 16px calc(var(--bpad) + 32px); }
.weigh__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 16px; border-radius: 10px; background: var(--tint-soft); }
.weigh__what { display: flex; flex-direction: column; min-width: 148px; font-size: 14px; line-height: 20px; }
.weigh__what small { font-size: 12px; line-height: 16px; color: var(--muted); }
.weigh__f { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.weigh__f .input-num { width: 88px; height: 36px; padding: 6px 10px; border: 1.5px solid var(--faint); border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.weigh__opt { font-size: 12px; color: var(--faint); }
.pb__weigh { font-size: 13px; }

/* On hand this morning, beside the day. */
.onhand__why { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
.onhand__fix { margin-top: 12px; align-self: flex-start; font-weight: 500; font-size: 13px; color: var(--teal-dark); text-align: left; }
.onhand__fix:hover { text-decoration: underline; }

/* Add an order to today. */
.addtoday { position: fixed; z-index: 60; width: 360px; max-height: 420px; overflow: auto; padding: 16px 0 8px; }
.pop__title { padding: 0 16px; font-weight: 600; font-size: 15px; line-height: 20px; }
.pop__sub { padding: 4px 16px 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.pop__empty { padding: 8px 16px 12px; font-size: 13px; color: var(--muted); }
.addtoday ul { list-style: none; margin: 0; padding: 0 4px; }
.addtoday li button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 12px; border-radius: 6px; font-size: 14px; line-height: 20px; text-align: left; }
.addtoday li button span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; }
.addtoday li button:hover { background: var(--tint); }

/* Not sent, priority note, units. */
.pill-back { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: #f8e2df; color: var(--red); font-weight: 500; font-size: 13px; }
.prio-set { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.prio-set small { font-size: 12px; line-height: 16px; color: var(--muted); }
.unit-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.unit-pick small { font-size: 12px; color: var(--muted); }
.say--quiet { margin-top: 16px; font-size: 12px; color: var(--muted); }
.yield-note { font-size: 13px; line-height: 20px; color: var(--muted); }

/* ---------- Round 5 ---------- */
/* Ship today: one star on every order. Outline when off, filled amber when on; 32 px hit area, 16 px mark. */
.star { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px 0 -4px -6px; border-radius: 6px; color: var(--faint); cursor: pointer; transition: color var(--hover) var(--ease), background var(--hover) var(--ease); }
.star svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.star:hover:not(:disabled) { color: var(--teal-dark); background: var(--tint-soft); }
.star.is-on { color: #b7791f; }
.star.is-on svg { fill: #e9a83a; stroke: #b7791f; }
.star:disabled { cursor: default; opacity: 0.4; }
.star:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 1px; }
.star--none { width: 28px; height: 1px; margin-left: -6px; }
.order-no { font-size: 11px; color: var(--muted); font-weight: 500; }
.pchip .order-no { margin-left: 2px; }
.prio-set .star { margin-left: -6px; }

/* Orders today on Roasting: one row per order, star first. */
.otd-list { list-style: none; margin: 0; padding: 0; }
.otd { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.otd:last-child { border-bottom: 0; }
.otd.is-star { background: linear-gradient(90deg, rgba(233, 168, 58, 0.12), transparent); }
.otd__name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; text-align: left; font-size: 14px; line-height: 20px; color: var(--ink); cursor: pointer; }
.otd__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otd__name:hover > span { text-decoration: underline; }
.otd__name .mark-shopify { flex: none; width: 14px; height: 14px; color: var(--muted); }
.otd__lb { font-size: 14px; font-weight: 500; }
.otoday .count { margin-left: 8px; color: var(--muted); font-weight: 500; }

/* What goes first (Settings > Planning). */
.prio { margin-bottom: 24px; max-width: 824px; }
.prio__intro { margin: 0 0 16px; max-width: 640px; font-size: 15px; line-height: 22px; color: var(--ink-soft); }
.prio__grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: start; }
.prio__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prio__row { display: grid; grid-template-columns: 16px 20px minmax(0, 1fr) auto auto; gap: 8px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.prio__row.is-off .prio__text { opacity: 0.5; }
.prio__row.is-dragging { opacity: 0.6; background: var(--tint-soft); }
.prio__grip { color: var(--faint); cursor: grab; display: grid; place-items: center; }
.prio__grip svg { width: 16px; height: 16px; }
.prio__n { font-size: 14px; font-weight: 600; color: var(--teal-dark); text-align: center; }
.prio__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prio__text b { font-size: 14px; line-height: 20px; font-weight: 600; }
.prio__text small { font-size: 12px; line-height: 16px; color: var(--muted); }
.prio__move { display: inline-flex; gap: 2px; }
.prio__btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--teal-text); cursor: pointer; }
.prio__btn svg { width: 16px; height: 16px; }
.prio__btn:hover:not(:disabled) { background: var(--tint-soft); }
.prio__btn:disabled { color: var(--border); cursor: default; }
.prio__btn:focus-visible { outline: 2px solid var(--teal-dark); }
.prio__preview { padding: 16px; border-radius: 8px; background: var(--page); position: sticky; top: 16px; }
.prio__phead { margin: 0 0 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--teal-dark); }
.prio__plist { margin: 0; padding-left: 20px; font-size: 14px; line-height: 20px; }
.prio__plist li { padding: 3px 0; }
.prio__plist li span { font-weight: 500; }
.prio__plist .order-no { margin-left: 4px; }
.prio__star { margin-left: 6px; font-size: 11px; color: #b7791f; font-weight: 600; }
.prio__pempty { margin: 0; font-size: 13px; color: var(--muted); }
.prio__foot { margin-top: 16px; }
@media (max-width: 760px) { .prio__grid { grid-template-columns: 1fr; } .prio__preview { position: static; } }

/* What each customer is (Settings > Customers). */
/* The order panel's Ship today: the star and its note on one line. */
.details .prio-set { flex-direction: row; align-items: center; gap: 8px; }
/* Four delivery methods fit a narrow card by wrapping. */
.facts .choice { flex-wrap: wrap; max-width: 100%; }

/* ---------- Round 5b: When it ships (order panel) ---------- */
.when__lead { margin: -4px 0 12px; font-size: 13px; line-height: 18px; color: var(--muted); }
.when__plan { margin: 0 0 12px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.when__pick { margin-bottom: 8px; }
.choice--days button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; min-height: 40px; padding: 4px 10px; }
.when__miss { margin: 0 0 8px; font-size: 13px; line-height: 18px; color: var(--red); }
.when__star { margin-top: 12px; flex-direction: row; align-items: center; gap: 8px; }
.goes-out { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; color: var(--ink); }
.link--quiet { font-size: 12px; color: var(--muted); }
.link--quiet:hover { color: var(--teal-dark); }


/* ---------- round 6: the unified priority model ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The Roasting tab's mark while any day this week does not have enough coffee. */
.tab__mark { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px rgba(var(--cream-rgb), 0.9); }
.omark--edit { background: #f6e7c8; color: #7a4f0c; }
.plan-help { margin: 0 0 16px; max-width: 760px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.plan-line { margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.plan-line b { color: var(--ink); font-weight: 600; }
.plan-line .link { margin-left: 2px; }

/* Plan: the week board. Five columns, Monday to Friday; each order is a card on the day it is sent. */
.board { display: grid; grid-template-columns: repeat(5, minmax(184px, 1fr)); gap: 16px; align-items: start; margin-bottom: 24px; }
.bd { display: flex; flex-direction: column; gap: 8px; min-height: 240px; padding: 12px; border-radius: 12px; background: var(--white); border: 2px solid transparent; transition: border-color var(--hover) var(--ease), background-color var(--hover) var(--ease); }
.bd.is-today { box-shadow: inset 0 3px 0 var(--pink); }
.bd.is-past { background: var(--past); }
.bd.is-short { border-color: var(--red); }
.bd.is-drop { border-color: var(--teal-dark); background: var(--tint-soft); }
.bd__head { padding: 0 4px 8px; border-bottom: 1px solid var(--line); }
.bd__day { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.bd__day b { font-size: 16px; line-height: 24px; color: var(--ink); font-weight: 650; }
.bd__today { margin-left: auto; padding: 0 6px; border-radius: 4px; background: var(--pink-soft); color: var(--ink-soft); font-size: 11px; font-weight: 600; line-height: 18px; }
.bd__meta { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.bd__cards { display: flex; flex-direction: column; gap: 8px; }
.bc { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); cursor: pointer; text-align: left; }
.bc[draggable="true"] { cursor: grab; }
.bc:hover { border-color: var(--border); }
.bc:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 1px; }
.bc.is-star { background: #fdf3e1; border-color: #efd29b; }
.bc.is-edited:not(.is-star) { border-color: #e2c48c; }
.bc.is-done { opacity: 0.6; }
.bc.is-dragging { opacity: 0.4; }
.bc.is-lifted { box-shadow: var(--shadow-pop); }
.bc__top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bc__top .star { margin: -4px 0 -4px -6px; }
.bc__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 600; }
.bc__meta { font-size: 12px; line-height: 16px; color: var(--muted); }
.bc__marks { display: flex; flex-wrap: wrap; gap: 4px; }
.bc__marks .omark { font-size: 11px; line-height: 18px; padding: 0 6px; }
.bc__back { align-self: flex-start; font-size: 12px; line-height: 16px; }
.bc--ghost { cursor: default; background: transparent; border: 1px dashed var(--border); color: var(--faint); font-size: 12px; line-height: 16px; }
.bc--ghost:hover { border-color: var(--border); }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(5, minmax(168px, 1fr)); overflow-x: auto; padding-bottom: 8px; } }
@media (max-width: 720px) { .board { grid-template-columns: 1fr; overflow: visible; } .bd { min-height: 0; } }

/* Not enough coffee: a notice, never a popup. On a board column it is short; on Roasting it sits above Batches today. */
.nec { border-radius: 10px; background: var(--red-tint); color: var(--ink); }
.nec--col { padding: 10px 12px; font-size: 13px; line-height: 18px; }
.nec--col p { margin: 0; }
.nec--col b { color: var(--red); }
.nec__ways { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.nec--page { margin-bottom: 16px; padding: 20px 24px; border-left: 4px solid var(--red); }
.nec__head { margin: 0; font-weight: 700; font-size: 20px; line-height: 28px; color: var(--red); }
.nec__line { margin: 4px 0 0; font-size: 15px; line-height: 22px; }
.nec--page .nec__ways { flex-direction: column; gap: 12px; margin-top: 16px; }
.nec__way { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nec__way > small { font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.nec__moves { flex-basis: 100%; margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(194, 58, 44, 0.2); }
.nec__moves li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(194, 58, 44, 0.12); font-size: 14px; }
.bt-today__own { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted); }

/* The order panel's This week section. */
.when__pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.when__pick .star { margin: 0; }
.choice--days button { position: relative; }
.when__dot { position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--teal-text); }
.when__state { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.when__fact { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--muted); }

/* Settings > Priorities. */
.prio-page { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 824px); gap: 24px; align-items: start; }
.prio-page .prio { margin-bottom: 0; }
.prio__help { margin: 0 0 16px; }
.prio__row { grid-template-columns: 16px 20px minmax(0, 1fr) auto 28px; }
.prio__row.is-locked { background: var(--page); }
.prio__row.is-locked .prio__n { color: var(--faint); }
.prio__lock { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.prio__x { font-size: 18px; line-height: 1; color: var(--muted); }
.prio__add { display: block; margin-top: 12px; }
.prio__add select { max-width: 280px; }
.prio__tie { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
@media (max-width: 1280px) { .prio-page { grid-template-columns: 1fr; } }

/* Settings > Customers: Customer Type and Send day columns, and Edit types in the table. */
.st--customer .c-send { font-size: 13px; color: var(--ink-soft); }
.st--customer.st--edit { grid-template-columns: minmax(180px, 1fr) 380px 136px 128px 80px 152px; cursor: default; }
.st--edit .choice button { padding: 4px 8px; }
.st--edit select { width: 100%; }

/* Round 6 Mac check: the page head wraps instead of overlapping. The title, week control and dates keep the
   first row; the switch, filters and buttons drop beneath, right-aligned, when the row runs out of space. */
.page-head { flex-wrap: wrap; row-gap: 12px; }
/* The title row keeps the head's own height either way, so wrapping never nudges the week control. */
.page-head > .title-group { flex: 0 0 auto; min-height: inherit; }
.page-head > .actions { margin-left: auto; }
/* The search always reads "Search" in full: only the words after it give way. "View as" hides its label when
   the bar runs short (the select keeps its own aria-label and the Demo tag). */
.search { min-width: 104px; }
.search span.search__label { display: flex; flex: 1; min-width: 0; overflow: hidden; }
.search__label > span:first-child { flex: none; }
.search__more { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1599px) { .viewas > span:first-child { display: none; } }

/* ---------- Round 7 ---------- */
/* Neutral surfaces (Chris: the segmented colours fought the card; table highlights matched the page). One cool
   grey for tracks and highlights, clearly apart from both the white card and the warm page. */
:root { --track: #e8e7e3; --row-hover: #f0efeb; --chip-shadow: 0 1px 2px rgba(29, 28, 26, 0.12), 0 0 0 0.5px rgba(29, 28, 26, 0.06); }

/* Orders: This week and All orders, underline tabs under the title. The underline sits on the toolbar's rule. */
.toolbar.toolbar--tabs { padding-bottom: 0; gap: 16px; }
.subtabs { display: flex; gap: 24px; }
.subtab { padding: 4px 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 500; font-size: 14px; line-height: 20px; color: var(--muted); white-space: nowrap; transition: color var(--hover) var(--ease); }
.subtab:hover { color: var(--ink); }
.subtab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--teal-dark); transition: none; }

/* Info tip: one soft tinted box for guiding text, rounded like a card. */
.tip { display: flex; align-items: flex-start; gap: 12px; max-width: 760px; padding: 16px 20px; border-radius: 12px; background: var(--chip); color: var(--ink-soft); }
.tip__icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--teal-text); }
.tip__text { font-size: 13px; line-height: 20px; }
.tip__text .link { font-weight: 500; }
.work .tip { margin-bottom: 16px; }

/* Segmented controls, one look everywhere: white chip with a soft shadow on the grey track. */
.segments, .choice { background: var(--track); }
.segments { padding: 3px; }
.choice { padding: 3px; }
.segments button, .choice button { color: var(--ink-soft); }
.segments button[aria-pressed="true"], .choice button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--chip-shadow); }
.segments .thumb { background: var(--white); box-shadow: var(--chip-shadow); }
.segments.has-thumb button[aria-pressed="true"] { box-shadow: none; }
.segments:not(.has-thumb) button:not([aria-pressed="true"]):hover,
.choice button:not(:disabled):not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.segments button span { color: var(--muted); }

/* Settings tables: the section band and the row highlight are the grey, never the page colour. */
.st--section { background: var(--track); }
a.st:hover, .st--demo:hover, .hist:hover, .pk[data-order]:hover { background: var(--row-hover); }
.st--demo.is-current { background: var(--row-hover); }
.settings-more { margin-top: 0; }

/* Roasting: the stepper's glyphs and the numeral sit at the optical centre of their boxes. */
.step__glyph { display: block; width: 16px; height: 16px; }
.step--big .step__glyph { width: 20px; height: 20px; }
.step--count .step__glyph { width: 16px; height: 16px; }
.bt-today__n { line-height: normal; padding: 6px 0 0; }
.bt-today__n--read { padding: 0; }

/* Packing cards: name, then the key status beside it; the details are in the lightbox. */
.pk__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pk__top > b { font-weight: 500; font-size: 16px; line-height: 24px; }
/* Nov 19: a Shopify order's card carries the Shopify mark before its buyer's name. */
.pk__top > b { display: inline-flex; align-items: center; gap: 6px; }
.pk__status { display: inline-flex; gap: 4px; }
.lb__details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

/* Units: label left, control right of it, the helper under the control on the same edge. */
.unit-rows { margin-top: 8px; }
.unit-set { display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 24px; row-gap: 8px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.unit-set__label { font-size: 14px; line-height: 20px; color: var(--ink); }
.unit-set__ctl { grid-column: 2; }
.unit-set__help { grid-column: 2; font-size: 13px; line-height: 20px; color: var(--muted); }
.unit-note { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--muted); }
.unit-page { max-width: 640px; }
.unit-set__ctl { display: flex; justify-content: flex-start; }
.unit-set__ctl .choice { margin: 0; }

/* Settings > Weekly Plan (round 7c): the roastery's normal week. The Orders week board's columns and tiles (.board,
   .bd, .bc), with a lane above for customers not placed yet and one below for Any day. */
.wp-lead { margin: 4px 0 0; max-width: 760px; font-size: 15px; line-height: 22px; color: var(--ink-soft); }
.wp-rules { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 20px; color: var(--muted); }
.wp-rules li { position: relative; padding-left: 14px; }
.wp-rules li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-text); }
.wp { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.board--plan { margin-bottom: 0; }
.bd--plan { min-height: 200px; }
.bd--plan .bd__day b { font-size: 16px; }
.bd--plan .bd__cards { flex: 1; min-height: 48px; }
.bc--plan { cursor: grab; background: var(--page); }
.bc--plan[draggable="false"] { cursor: default; }
.bc--plan.is-shopify { background: #eef3ea; border-color: #d9e4d2; }
.bc--plan.is-over { opacity: 0.62; border-style: dashed; }
.bc__n { flex: none; min-width: 16px; font-size: 12px; font-weight: 650; color: var(--teal-text); }
.bc__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.bc__add { appearance: none; -webkit-appearance: none; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--teal-text); cursor: pointer; }
.bc__add:hover, .bc__add:focus-visible { text-decoration: underline; }
.bc__drop { font-size: 12px; line-height: 16px; }
.bc--plan:not(:hover):not(:focus-within) .bc__acts { opacity: 0.0001; height: 0; overflow: hidden; }
.omark--new { margin-left: auto; padding: 0 6px; font-size: 11px; line-height: 18px; background: var(--pink-soft); }
/* The capacity line: where the day fills up. Tiles under it move to the next day if the day is full. */
.wp-cap { display: flex; align-items: center; gap: 8px; margin: 2px 0; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--red); }
.wp-cap::before, .wp-cap::after { content: ""; flex: 1; height: 0; border-top: 2px dashed currentColor; opacity: 0.6; }
.wp-foot { margin: 0; padding: 0 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.wp-foot--over { color: var(--red); }
.wp-lane { padding: 12px 16px 16px; border-radius: 12px; background: var(--white); border: 2px solid transparent; transition: border-color var(--hover) var(--ease), background-color var(--hover) var(--ease); }
.wp-lane.is-drop { border-color: var(--teal-dark); background: var(--tint-soft); }
.wp-lane--tray { background: var(--fill); border: 2px dashed var(--border); }
.wp-lane__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 0 4px 10px; }
.wp-lane__head b { font-size: 16px; line-height: 24px; font-weight: 650; color: var(--ink); }
.wp-lane__head span { font-size: 12px; line-height: 16px; color: var(--muted); }
.wp-lane__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 8px; min-height: 48px; }
.wp-lane__empty { grid-column: 1 / -1; margin: 0; padding: 12px 4px; font-size: 13px; color: var(--faint); }
@media (max-width: 720px) { .wp-lane__cards { grid-template-columns: 1fr; } }
.bc--plan .bc__name { white-space: normal; overflow: visible; }
.bc--plan .bc__top { align-items: baseline; }
.wp-lane__cards:empty { min-height: 16px; }

/* Roasting, the run sheet (round 7c, direction C in the app's own colours). */
.page-run .work { display: flex; flex-direction: column; gap: 16px; }
.page-run .title-group { gap: 12px; }
.rs-tag { padding: 0 8px; border-radius: 4px; background: var(--segment); color: var(--ink-soft); font-size: 12px; font-weight: 600; line-height: 24px; }
/* The week strip: the day picker, arrows only at its ends. */
.rs-week { display: flex; align-items: stretch; gap: 8px; }
.rs-week__arrow { flex: none; display: grid; place-items: center; width: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--white); cursor: pointer; transition: border-color var(--hover) var(--ease); }
.rs-week__arrow:hover { border-color: var(--faint); }
.rs-week__arrow img { width: 16px; height: 16px; }
.rs-week__days { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.rs-day { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); text-align: left; cursor: pointer; transition: background-color var(--hover) var(--ease), border-color var(--hover) var(--ease); }
.rs-day b { font-size: 15px; line-height: 20px; font-weight: 650; color: var(--ink); }
.rs-day > span { font-size: 12px; line-height: 16px; color: var(--muted); }
.rs-day:hover { border-color: var(--border); }
.rs-day.is-today { box-shadow: inset 0 3px 0 var(--pink); }
.rs-day.is-past:not([aria-pressed="true"]) { background: var(--past); }
.rs-day[aria-pressed="true"] { background: var(--teal-dark); border-color: var(--teal-dark); }
.rs-day[aria-pressed="true"] b, .rs-day[aria-pressed="true"] > span { color: var(--cream); }
/* The day's batches, numbered 1 to N. */
.rs-run { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.rs-run__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); }
.rs-run__b span { font-size: 11px; line-height: 14px; color: var(--muted); }
.rs-run__b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.rs-run__b.is-done { background: var(--teal-dark); border-color: var(--teal-dark); }
.rs-run__b.is-done span, .rs-run__b.is-done b { color: var(--cream); }
.rs-run__b.is-spare { background: transparent; border-style: dashed; border-color: var(--border); }
.rs-run__b.is-spare b { color: var(--faint); font-weight: 500; }
.rs-run__b.is-short { background: var(--red-tint); border-color: rgba(194, 58, 44, 0.3); }
.rs-run__b.is-short b { color: var(--red); }
/* Suggested order and Done. */
.rs-list { display: flex; flex-direction: column; gap: 8px; }
.rs-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 4px; font-size: 18px; line-height: 24px; font-weight: 650; }
.rs-h small { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--muted); }
.rs-card { border-radius: 12px; background: var(--white); border: 1px solid var(--line); transition: border-color var(--hover) var(--ease), box-shadow var(--hover) var(--ease); }
.rs-card.is-just { border-color: var(--teal-text); box-shadow: 0 0 0 3px var(--tint-soft); }
.rs-card__main { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 152px; align-items: center; gap: 8px 20px; padding: 16px 20px; }
.rs-card__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--chip); color: var(--teal-dark); font-size: 14px; font-weight: 650; }
.rs-card__check { width: 24px; height: 24px; margin: 0 4px; }
.rs-card__what { min-width: 0; }
.rs-card .coffee-name { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; line-height: 24px; font-weight: 650; }
.rs-card__name { display: inline-flex; align-items: center; gap: 6px; font: inherit; color: inherit; cursor: pointer; }
.rs-card__name .chev { width: 16px; height: 16px; color: var(--muted); transition: transform var(--hover) var(--ease); }
.rs-card__name[aria-expanded="true"] .chev { transform: rotate(180deg); }
.rs-card__line { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.rs-card__green { color: var(--muted); }
.rs-card__note { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--teal-text); }
.rs-card .coffee-sub { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.rs-card .coffee-sub:empty { display: none; }
.rs-card__prog { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); white-space: nowrap; }
.rs-bar { flex-wrap: nowrap; gap: 3px; }
.rs-bar i { width: 18px; height: 8px; border-radius: 3px; }
.rs-card__act { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.rs-roasted, .rs-undo { min-width: 136px; justify-content: center; }
.rs-undo { border-color: var(--teal-text); color: var(--teal-dark); }
.rs-card__orders { padding: 0 20px 16px 72px; }
.rs-ords { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.rs-ord { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-radius: 0; background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; text-align: left; }
.rs-ord small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.rs-ord__name { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.rs-ord b { font-weight: 600; }
button.rs-ord { cursor: pointer; }
button.rs-ord:hover .rs-ord__name { color: var(--teal-dark); text-decoration: underline; }
.rs-card .weigh { margin: 0 20px 16px 72px; }
.rs-card > .plan-why { margin: 0 20px 12px 72px; }
.rs-list--done .rs-card { background: transparent; }
.rs-list--done .rs-card__main { padding: 10px 20px; }
.rs-list--done .coffee-name { font-size: 15px; }
/* Roasted today: every batch with its time, Undo on each line. */
.rs-log__list { margin: 0; padding: 0; list-style: none; }
.rs-log__line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.rs-log__line span:nth-child(2) { color: var(--muted); font-size: 13px; }
.rs-log__line .link { font-size: 13px; }
.rs-log__more { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.roast--stock .bt--stock { display: flex; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .rs-card__main { grid-template-columns: 32px minmax(0, 1fr) auto; } .rs-card__act { grid-column: 2 / -1; justify-content: flex-start; } }
@media (max-width: 720px) { .rs-card__main { grid-template-columns: 32px minmax(0, 1fr); } .rs-card__prog { grid-column: 2; align-items: flex-start; } .rs-card__orders, .rs-card .weigh, .rs-card > .plan-why { margin-left: 20px; padding-left: 0; } .rs-week__arrow { width: 32px; } }
.rs-bar { display: flex; width: 132px; }
.rs-bar i { flex: 1; width: auto; min-width: 6px; }

/* Round 7b. Info tips sit on the grid of what is beneath them; a tip has a Got it button. */
.tipgrid { display: block; }
.tipgrid .tip { max-width: none; align-items: center; }
.tipgrid--board { display: grid; grid-template-columns: repeat(5, minmax(184px, 1fr)); gap: 16px; }
.tipgrid--board .tip { grid-column: 1 / span 2; }
.work .tipgrid { margin-bottom: 16px; }
.work .tipgrid .tip { margin-bottom: 0; }
.tip__text { flex: 1; min-width: 0; }
.tip__ok { flex: none; margin-left: 8px; background: var(--white); }
.settings__tips { margin: 16px 12px 0; align-self: flex-start; font-size: 13px; }
.settings__tips:disabled { color: var(--faint); cursor: default; text-decoration: none; }
@media (max-width: 1100px) { .tipgrid--board { grid-template-columns: minmax(0, 384px); } .tipgrid--board .tip { grid-column: 1; } }

/* Round 7b. Orders tabs as file folders: the active tab is raised and joined to the panel below, the other recessed. */
.toolbar.toolbar--tabs { padding-bottom: 0; }
.subtabs { display: flex; align-items: flex-end; gap: 4px; margin-bottom: -1px; }
.subtab { position: relative; padding: 7px 18px 8px; margin-top: 6px; border: 1px solid var(--sand); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--segment); color: var(--muted); font-weight: 500; font-size: 14px; line-height: 20px; transition: color var(--hover) var(--ease), background-color var(--hover) var(--ease); }
.subtab:hover { color: var(--ink); background: var(--sand); }
.subtab[aria-selected="true"] { z-index: 1; margin-top: 0; padding: 10px 22px 12px; border-bottom: 1px solid var(--page); border-color: var(--sand) var(--sand) var(--page); background: var(--page); color: var(--ink); font-weight: 600; box-shadow: 0 -3px 8px rgba(var(--shade-rgb), 0.06); }
.subtab[aria-selected="true"]:hover { background: var(--page); }
.subtab:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }

/* Round 7b. The week board (Orders, The Plan; and the Weekly Plan), polished to the run sheet's level: generous
   padding, the day name bigger with one calm line under it, a tile reads name then lb and method, softer marks. */
.board { gap: 16px; }
.bd { gap: 10px; padding: 16px 16px 18px; border-radius: 14px; }
.bd__head { padding: 2px 4px 12px; }
.bd__day { gap: 8px; font-size: 13px; }
.bd__day b { font-size: 18px; line-height: 26px; font-weight: 650; letter-spacing: -0.01em; }
.bd__meta { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted); }
.bd__cards { gap: 8px; }
.bc { gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); transition: border-color var(--hover) var(--ease), box-shadow var(--hover) var(--ease); }
.bc:hover { border-color: var(--border); box-shadow: 0 2px 8px rgba(var(--shade-rgb), 0.06); }
.bc__name { font-size: 15px; line-height: 20px; }
.bc__meta { font-size: 13px; line-height: 18px; }
.bc.is-star { background: #fcf7ec; border-color: #eedfbd; }
.bc.is-edited:not(.is-star) { border-color: #e8dbc0; }
.bc .omark { background: var(--sand); color: var(--ink-soft); }
.bc .omark--late { background: var(--pink-soft); color: var(--ink-soft); }
.bd.is-short { border-color: rgba(194, 58, 44, 0.45); }
.bd.is-today { box-shadow: inset 0 3px 0 var(--pink); }
.wp-lane { border-radius: 14px; padding: 16px 16px 18px; }

/* Round 7d. Roasting matches the approved C3 run sheet still: the week strip at the top right, the result line with
   the stepper on one row, the day's batches in one row, white cards (32 padding, 16 apart) with 20 px coffee names,
   "N of M roasted" over a segmented bar, a 152 x 56 Roasted button, and a calm rail on the page colour. */
.page-run .page-head { flex-wrap: wrap; row-gap: 16px; }
.page-run .page-head .title { font-family: var(--font); font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.012em; }
.page-run .work { gap: 16px; padding-right: var(--pad); }
.page-run .side--roast { background: transparent; padding: 32px var(--pad) 40px 0; gap: 24px; }
html[data-tight] .page-run .work { padding-right: var(--pad-r); }
/* The week strip: a segmented control of roast days, arrows at its two ends. */
.rs-week { align-items: center; gap: 8px; }
.rs-week__arrow { width: 32px; height: 32px; border-radius: 8px; }
.rs-week__arrow img { width: 14px; height: 14px; }
.rs-week__days { display: flex; flex: none; gap: 4px; padding: 4px; border-radius: 12px; background: var(--segment); }
.rs-day { width: 88px; gap: 0; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; }
.rs-day:hover { background: rgba(255, 255, 255, 0.55); }
.rs-dd { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.rs-day b { font-size: 16px; line-height: 20px; font-weight: 600; color: var(--ink); }
.rs-day small { font-size: 12px; line-height: 16px; color: var(--muted); }
.rs-dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--teal-dark); vertical-align: 2px; }
.rs-day.is-today { box-shadow: none; }
.rs-day.is-past:not([aria-pressed="true"]) { background: transparent; }
.rs-day.is-past:not([aria-pressed="true"]) b { color: var(--muted); }
.rs-day[aria-pressed="true"] { background: var(--white); border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.rs-day[aria-pressed="true"] b { color: var(--ink); }
.rs-day[aria-pressed="true"] .rs-dd, .rs-day[aria-pressed="true"] small { color: var(--muted); }
/* The day: the result line, the stepper, the numbered batches. */
.rs-top { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.page-run .bt-today { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0; padding: 0; background: none; border-radius: 0; }
.page-run .bt-today__say p { font-size: 18px; line-height: 28px; font-weight: 400; color: var(--muted); }
.page-run .bt-today__say p b { font-weight: 600; color: var(--ink); }
.page-run .bt-today.is-over .bt-today__say p b { color: var(--red); }
.page-run .bt-today__main { flex-direction: row; align-items: center; gap: 16px; flex: none; }
.page-run .bt-today__label { font-size: 13px; line-height: 20px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.page-run .bt-today__ctl { gap: 0; height: 48px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white); }
.page-run .step--big { width: 48px; height: 46px; border: 0; border-radius: 0; background: var(--white); font-size: 20px; }
.page-run .step--big:not(:disabled):hover { background: var(--page); }
.page-run .bt-today__n { width: 64px; height: 46px; padding: 0; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: 0; font-family: var(--font); font-size: 22px; line-height: 46px; color: var(--ink); }
.page-run .bt-today__n:focus { outline: 2px solid rgba(var(--shade-rgb), 0.18); outline-offset: -2px; }
.page-run .bt-today__n--read { border: 0; padding: 0 8px; }
.rs-run { grid-template-columns: repeat(var(--n, 15), minmax(0, 1fr)); gap: 4px; }
.rs-run__b { justify-content: space-between; height: 56px; gap: 0; padding: 6px 8px; border: 0; border-radius: 8px; background: var(--sand); }
.rs-run__b span { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink); }
.rs-run__b b { font-size: 11px; line-height: 14px; font-weight: 400; color: var(--muted); }
.rs-run__b.is-done { background: var(--teal-dark); }
.rs-run__b.is-done span { color: var(--cream); }
.rs-run__b.is-done b { color: var(--cream); opacity: 0.75; }
.rs-run__b.is-spare { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); }
.rs-run__b.is-spare b { color: var(--muted); font-weight: 400; }
.rs-run__b.is-short { background: transparent; box-shadow: inset 0 0 0 2px var(--red); }
.rs-run__b.is-short span, .rs-run__b.is-short b { color: var(--red); }
/* Headings and cards. */
.rs-list { gap: 16px; }
.rs-h { align-items: center; justify-content: space-between; margin: 8px 0 0; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: -0.005em; }
.rs-h small { flex-basis: 100%; }
.rs-list--done { margin-top: 16px; }
.rs-card { display: flex; flex-direction: column; gap: 24px; padding: 32px; border: 0; border-radius: 16px; }
.rs-card.is-just { box-shadow: 0 0 0 3px var(--tint-soft); }
.rs-card__main { grid-template-columns: 32px minmax(0, 1fr) 276px 152px; gap: 24px; padding: 0; }
.rs-card__n { background: var(--segment); color: var(--teal-text); font-size: 14px; font-weight: 600; }
.rs-card__check { margin: 0; background: var(--teal-dark); color: var(--cream); }
.rs-card__check svg { width: 18px; height: 18px; }
.rs-card__what { position: relative; display: flex; flex-direction: column; gap: 8px; padding-left: 48px; }
.rs-card .coffee-name { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.rs-card__name { gap: 0; }
.rs-card__name .chev { position: absolute; left: 0; top: 50%; margin-top: -8px; transform: rotate(-90deg); }
.rs-card__name[aria-expanded="true"] .chev { transform: none; }
.rs-card__line { margin: 0; font-size: 15px; line-height: 20px; color: var(--muted); }
.rs-card__note { align-self: flex-start; margin: 0; padding: 2px 10px; border-radius: 6px; background: var(--segment); font-size: 12px; line-height: 20px; color: var(--teal-text); white-space: nowrap; }
.rs-card .coffee-sub { margin: 0; }
.rs-card__prog { align-items: flex-start; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.rs-card__cnt b { font-weight: 600; color: var(--ink); }
.rs-bar { width: auto; max-width: 100%; gap: 4px; }
.rs-bar i { flex: 0 1 36px; width: 36px; min-width: 8px; height: 14px; border-radius: 4px; background: var(--sand); box-shadow: none; }
.rs-bar i.is-on, .rc.is-done .rs-bar i.is-on { background: var(--teal-dark); }
.rs-bar i.is-just { background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.rs-roasted, .rs-undo { width: 152px; min-width: 0; height: 56px; justify-content: center; gap: 8px; border-radius: 12px; font-size: 15px; line-height: 20px; font-weight: 600; }
.rs-roasted::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.rs-undo { border: 1px solid var(--border); background: var(--white); color: var(--ink); font-weight: 500; font-size: 14px; }
.rs-undo::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--teal-dark) 0 70%, var(--sand) 70% 100%); }
.rs-card__act .btn--small { height: 40px; }
/* A card's orders: an inset panel on the page colour, two columns. */
.rs-card__orders { margin: 0 0 0 80px; padding: 0; }
.rs-ords { gap: 0 48px; grid-template-columns: 1fr 1fr; padding: 8px 24px; border-radius: 12px; background: var(--page); }
.rs-ord { padding: 8px 0; border: 0; background: none; box-shadow: none; font-size: 14px; }
.rs-ord small { font-size: 12px; }
.rs-ord b { font-weight: 400; }
.rs-card .weigh, .rs-card > .plan-why { margin: 0 0 0 80px; }
.rs-card__orders .rc__foot { margin: 12px 0 0; }
/* Done: outlined, quieter. */
.rs-list--done .rs-card { padding: 24px 32px; background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.rs-list--done .rs-card__main { padding: 0; }
.rs-list--done .coffee-name { font-size: 20px; color: var(--muted); }
.rs-list--done .rs-card__name { color: var(--muted); }
/* The rail: white cards on the page colour; Roasted today lines with a bordered Undo. */
.page-run .side--roast .card { border-radius: 24px; padding: 28px 32px; }
.page-run .side--roast .card__title { font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 12px; }
.rs-log__list { display: flex; flex-direction: column; gap: 4px; }
.rs-log__line { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 6px 0; border: 0; font-size: 14px; line-height: 20px; }
.rs-log__line span:first-child { font-weight: 500; }
.rs-log__line span:nth-child(2) { font-size: 14px; color: var(--muted); }
.rs-log__undo { height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color var(--hover) var(--ease); }
.rs-log__undo:hover { border-color: var(--faint); }
.page-run .roast--stock { border-radius: 16px; }
@media (max-width: 1360px) { .rs-card__main { grid-template-columns: 32px minmax(0, 1fr) 200px 152px; } }
@media (max-width: 1100px) { .rs-card__main { grid-template-columns: 32px minmax(0, 1fr) auto; } .rs-card__act { grid-column: 2 / -1; justify-content: flex-start; } .rs-run { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); } }
@media (max-width: 720px) {
  .page-run .bt-today { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-run .bt-today__main { flex-wrap: wrap; }
  .rs-card { padding: 24px; }
  .rs-card__main { grid-template-columns: 32px minmax(0, 1fr); gap: 16px; }
  .rs-card__what { padding-left: 32px; }
  .rs-card__orders, .rs-card .weigh, .rs-card > .plan-why { margin-left: 0; }
  .rs-ords { grid-template-columns: 1fr; }
  .rs-week__days { flex: 1; min-width: 0; overflow-x: auto; }
  .rs-day { width: auto; flex: 1; min-width: 64px; padding: 6px 8px; }
}
@media (min-width: 1360px) { .page-run .side--roast { width: calc(400px + var(--pad)); } }
.page-run .rs-card .rs-bar i { flex: 0 1 36px; width: 36px; min-width: 8px; height: 14px; border-radius: 4px; }
.rs-card__cnt .done-text, .rs-card__cnt .done-text.is-done { color: inherit; }
.rs-top { margin-bottom: 40px; }
.rs-log__line span:first-child { min-width: 0; }
.rs-card__what .rs-card__green { margin: -4px 0 0; font-size: 13px; line-height: 18px; color: var(--faint); }
.rs-card > .plan-why { margin: -8px 0 0 104px; }
@media (max-width: 720px) { .rs-card > .plan-why { margin-left: 0; } }
html .page-run .toolbar .title { font-family: var(--font); font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.012em; }
.rc.rs-card > .plan-why { margin: -8px 0 0 104px; padding: 0; font-size: 13px; }
@media (max-width: 720px) {
  .rc.rs-card > .plan-why { margin-left: 0; }
  .page-run .bt-today__main { flex-wrap: wrap; gap: 8px 16px; }
  .page-run .bt-today__label { flex-basis: 100%; }
  .page-run .rs-week { width: 100%; }
  .rs-h { flex-wrap: wrap; gap: 8px; }
}
.page-run .bt-today__say { flex: 1 1 auto; min-width: 0; }
.page-run .bt-today__label { max-width: 176px; text-align: right; }
@media (max-width: 720px) {
  .page-run .bt-today__label { max-width: none; text-align: left; }
  .page-run .page-head > .rs-week { width: 100%; min-width: 0; }
  .page-run .rs-week__days { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); flex: 1 1 0; min-width: 0; overflow: hidden; }
  .page-run .rs-day { width: auto; min-width: 0; }
}

/* ==========================================================================================================
   Round 8 build (Nov 17, 2026): the signed-off design in the app's own styles. Design A refined (near-white page,
   white cards held by a hairline and a soft shadow, the 16/40 rhythm, one 6 px radius, no pills), then Chris's
   round 8, 9 and 10 comments (feedback-2026-11-17/ROUND-8, 9 and 10-REVIEW.md). Tokens from Design notes v3
   (Figma 113:268). Where an earlier rule in this file says otherwise, this section is the one that holds.
   ========================================================================================================== */
:root {
  --page: #f6f5f3; --sand: #f6f5f3; --segment: #f2f1ef; --line: #e3e3e1; --line-soft: #ededeb;
  --border: #d4d4d0; --past: #efeeec; --chip-n: #eeeeec; --fill-n: #f6f6f4; --card-in: #f7f7f6; --thead: #f7f7f6;
  --info: #eef4f3; --tint: #dce6e5; --tint-soft: rgba(var(--shade-rgb), 0.05); --ink-soft: #4a4a47; --muted: #6e6e69;
  --faint: #a6a6a0; --work: #fbfbfa; --side-bg: #f6f5f3; --nav-on: #ecebe8; --star: #e2a12b;
  --card-shadow: 0 0 0 1px #e3e3e1, 0 1px 2px rgba(26, 26, 26, 0.05);
  --r: 6px;
  /* No pink: today is the teal dot (round 3b, round 10). */
  --pink: transparent; --pink-soft: transparent;
}

/* Surfaces. The work area is #FBFBFA on every screen, Settings included; side panels and the Settings nav a step
   darker. The page floor is the 1024 tablet (round 8 proposal, Chris: "YES"). */
body { min-width: 1024px; background: var(--work); }
.main, #page { background: var(--work); }
.side { background: var(--side-bg); border-left: 1px solid var(--line); gap: 20px; padding: 32px 24px; }
.page-run .side--roast { background: var(--side-bg); padding: 32px 24px 40px; gap: 20px; }
.toolbar { background: var(--white); border-bottom: 1px solid var(--line); padding-top: 24px; padding-bottom: 20px; }
.toolbar.toolbar--tabs { padding-bottom: 0; }
.work { padding-top: 32px; }
/* The demo's View as switch is not part of the product's face; the demo states are in Settings > Demo. */
.viewas { display: none; }

/* Type: League Spartan 600 on page titles only, 28/36. */
.title, .title--week span, html .page-run .toolbar .title, .page-run .page-head .title { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.005em; }

/* Cards: white, a hairline and a soft 2 px shadow instead of a border. One radius, 6 px, on every rounded thing;
   the round Roasted button is the one exception. */
.card, .rs-card, .bd, .wp-lane, .rs-week__arrow { border: 0; border-radius: var(--r); box-shadow: var(--card-shadow); }
.card--pad { padding: 24px; }
.card__title { font-size: 14px; line-height: 20px; font-weight: 650; }
.count { background: var(--chip-n); color: var(--ink-soft); font-weight: 550; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: var(--r); }
.card, .rs-card, .rc, .bd, .bc, .wp-lane, .rs-day, .rs-week__arrow, .rs-run__b, .tip, .btn, .step, .icon-btn, .tab, .search, .star,
.week-nav__title, .week-nav__group, .segments, .segments button, .thumb, .bt-today__n, .input-num, .field, input, select, button, .count,
.omark, .key, .badge, .rs-card__n, .weigh, .settings__nav a, .ogroup, .plan-group__tag, .pack-card, .att, .tag, .lightbox, .drawer,
.pop, .palette, .choice, .choice button, .switch, .stepper, .rs-tag, .r-cap, .bd__cap, .note, .lb__total, .rs-ords, .toast {
  border-radius: var(--r) !important;
}
.subtab[aria-selected="true"], .subtab, .pips i, .bar, .bar i { border-radius: 0 !important; }
.rs-roasted, .today-dot { border-radius: 50% !important; }
.avatar { border-radius: var(--r) !important; }

/* Hairlines over boxes: list rows 1 px #EDEDEB, table totals 1 px ink. */
.mini-table th { border-bottom: 1px solid var(--line); font-weight: 550; padding: 8px 0; }
.mini-table td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.mini-table tbody tr:last-child td { border-bottom: 0; }
.mini-table tfoot td { border-top: 1px solid var(--ink); padding-top: 12px; }
.otd { border-bottom: 1px solid var(--line-soft); padding: 8px 0; }

/* Buttons: secondary white with a #D4D4D0 edge and a 1 px drop; primary teal with a darker bottom edge. */
.btn { border-color: var(--border); box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06); font-weight: 550; background: var(--white); }
.btn--dark { background: var(--teal-dark); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(26, 26, 26, 0.08); }
.key { background: var(--chip-n); }
.btn--dark .key { background: rgba(255, 255, 255, 0.16); }
.key--dark, .search .key { background: rgba(var(--cream-rgb), 0.14); color: rgba(var(--cream-rgb), 0.85); }

/* Focus on a field: a 1 px teal edge and a soft 3 px halo at 12 %, never a loud ring (round 8 review 48). */
.field:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-text); box-shadow: 0 0 0 3px rgba(var(--shade-rgb), 0.12); }

/* Tips: #EEF4F3, no border. */
.tip { background: var(--info); border: 0; padding: 16px 20px; }
.tip__ok { background: var(--white); }

/* Tabs: a quiet underline; the selected tab in ink at 650 with a 2 px teal line. */
.subtabs { gap: 0; margin-bottom: 0; }
.subtab, .subtab:hover { background: transparent; border: 0; box-shadow: none; padding: 10px 4px 12px; margin: 0 24px 0 0; color: var(--muted); font-weight: 500; }
.subtab:hover { color: var(--ink); }
.subtab[aria-selected="true"], .subtab[aria-selected="true"]:hover { z-index: auto; margin: 0 24px 0 0; padding: 10px 4px 12px; border: 0; background: transparent; color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--teal-dark); }

/* Today (round 10): a 6 px teal dot before the day name, on the Plan board, the Roasting week strip and the Packing
   day strip. The plan day in an order's day picker uses the same dot. */
.today-dot { display: inline-block; flex: none; width: 6px; height: 6px; margin-right: 8px; background: var(--teal-dark); vertical-align: middle; position: relative; top: -2px; }
.rs-day .today-dot { margin-right: 0; top: 0; }
.segments button .today-dot { align-self: center; margin-right: 0; top: 0; }
.segments button.is-today::after { content: none; }
.rs-dot, .bd__today { display: none; }
.bd.is-today, .rs-day.is-today { box-shadow: var(--card-shadow); }

/* ---------- Orders: the Plan board ---------- */
.board { gap: 16px; }
.bd, .bd.is-past { background: var(--white); padding: 20px 16px; }
.bd__head { border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; padding: 2px 4px 12px; }
.bd__day { display: flex; align-items: baseline; gap: 8px; }
.bd__day b { display: inline-flex; align-items: center; font-weight: 700; }
.bd__day b .today-dot { top: 0; }
/* The day's orders and pounds, then its batches as a small count on the right (round 8 review 3). */
.bd__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.bd__cap { flex: none; margin-left: auto; padding: 0 8px; background: var(--chip-n); font-size: 12px; line-height: 20px; font-weight: 550; color: var(--ink-soft); white-space: nowrap; }
.bd__cards { gap: 8px; }
/* Order cards: white, two lines, a hairline (round 8 reviews 4 to 6); Shopify white too (round 10). */
.bc, .bc.is-done, .bc.is-shopify, .bc--plan.is-shopify { gap: 6px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); box-shadow: none; }
.bc .bc__meta { color: var(--ink-soft); }
.bc .omark { background: var(--chip-n); }
/* The star: solid, no outline; grey when off, amber when on. */
.star svg { fill: #d9d9d5; stroke: none; }
.star.is-on svg, .star[aria-pressed="true"] svg { fill: var(--star); stroke: none; }
.star:disabled svg { fill: #e6e6e3; }
.star:disabled { opacity: 1; }

/* ---------- Orders: All Orders, one header style, the columns pack toward lb (round 10 review 4) ---------- */
.st--head, .ol--head, .mini-table thead th { background: var(--thead); }
.st--head, .ol--head { border-bottom: 1px solid var(--line); }
.olist .ol:not(.ol--expected) { grid-template-columns: 48px minmax(260px, 1fr) 128px 88px 80px 88px 120px 64px; }
.olist.olist--pick .ol:not(.ol--expected) { grid-template-columns: 20px 48px minmax(220px, 1fr) 128px 88px 80px 88px 120px 64px; }
html[data-tight] .olist .ol:not(.ol--expected) { grid-template-columns: 40px minmax(200px, 1fr) 120px 80px 72px 80px 112px 56px; gap: 16px; }
html[data-tight] .olist.olist--pick .ol:not(.ol--expected) { grid-template-columns: 20px 40px minmax(180px, 1fr) 120px 80px 72px 80px 112px 56px; gap: 16px; }
.ogroup--expected { margin-top: 40px; background: var(--white); border-radius: var(--r); box-shadow: var(--card-shadow); padding: 16px 24px 8px; }
.ogroup--expected .ol { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.ogroup--expected .ol:last-child { border-bottom: 0; }

/* ---------- Order details (round 8 reviews 15 to 19, round 10) ---------- */
.drawer__heading { font-size: 14px; line-height: 20px; font-weight: 650; color: var(--ink); align-self: center; }
.drawer .sub .order-no { font-size: inherit; color: inherit; font-weight: inherit; }
.drawer__top + h2, .drawer__body > h2:first-of-type { margin-top: 16px; }
.drawer__foot { border-top: 0; box-shadow: none; }
.when__plan { margin: 0 0 16px; }
.when__pick { margin-bottom: 0; }
.when__state { margin-top: 24px; }
.when__pick .choice--days button { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; }
.when__dot { position: static; width: 6px; height: 6px; margin: 0 6px 0 0; }
/* New order: the customer, typed to find (round 8 review 21). */
.custfind { position: relative; }
.custfind__input { width: 100%; height: 40px; }
.custfind__list { position: absolute; z-index: 5; left: 0; right: 0; top: 44px; max-height: 280px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-pop), 0 0 0 1px var(--line); }
.custfind__list li { padding: 8px 12px; border-radius: var(--r); font-size: 14px; line-height: 20px; cursor: pointer; }
.custfind__list li[aria-selected="true"], .custfind__list li[role="option"]:hover { background: var(--tint); }
.custfind__none { color: var(--muted); cursor: default; }

/* ---------- Search: round 9's field (round 10 review: "I like the old one better") ---------- */
.palette { box-shadow: 0 0 0 1px var(--line), 0 16px 48px rgba(var(--shade-rgb), 0.18); }
.palette input[type="search"] { background: var(--white); color: var(--ink); font-size: 16px; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
.palette input[type="search"]:focus { border-bottom-color: var(--line); box-shadow: none; }
.palette input[type="search"]::placeholder { color: var(--muted); }

/* ---------- Expected orders: the customer and Remind, a red alert mark (round 8 review 25, round 10) ---------- */
.reminders .exp { align-items: center; }
.reminders .exp b { display: inline-flex; align-items: center; gap: 8px; }
.alert-mark { flex: none; width: 16px; height: 16px; color: var(--red); }

/* ---------- The stepper (round 8, Chris: "make this one UI element look prettier") ---------- */
.stepper { display: inline-flex; align-items: center; flex: none; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: var(--r); background: var(--white); box-shadow: 0 1px 0 rgba(26, 26, 26, 0.04); transition: border-color var(--hover) var(--ease), box-shadow var(--hover) var(--ease); }
.stepper:focus-within { border-color: var(--teal-text); box-shadow: 0 0 0 3px rgba(var(--shade-rgb), 0.12); }
.stepper__btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--r); background: transparent; color: var(--ink-soft); cursor: pointer; transition: background-color var(--hover) var(--ease), color var(--hover) var(--ease); }
.stepper__btn .step__glyph { width: 16px; height: 16px; }
.stepper__btn:not(:disabled):hover { background: var(--tint-soft); color: var(--teal-dark); }
.stepper__btn:not(:disabled):active { background: rgba(var(--shade-rgb), 0.1); }
.stepper__btn:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: -2px; }
.stepper__btn:disabled { color: var(--faint); opacity: 0.55; cursor: default; }
.stepper__val { display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 40px; padding: 0 4px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.stepper__val b { font-weight: 600; }
.stepper__val span { font-weight: 400; color: var(--muted); }
.stepper__input { width: 44px; height: 38px; padding: 0; border: 0; background: transparent; text-align: center; font: inherit; color: inherit; -moz-appearance: textfield; appearance: textfield; cursor: text; }
.stepper__input::-webkit-inner-spin-button, .stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus { border: 0; box-shadow: none; outline: none; }
.stepper--lg .stepper__val { font-size: 18px; line-height: 24px; min-width: 48px; }
.stepper--lg .stepper__input { width: 48px; }
.nl .c-q { width: 128px; }
.nl .c-q .stepper { height: 36px; }
.nl .c-q .stepper__btn { width: 34px; height: 34px; }
.nl .c-q .stepper__val { padding: 0; }
.nl .c-q .stepper__input { height: 34px; }
/* On touch the line's quantity is 44 px in every direction; 16 px type so iOS does not zoom into the field. */
@media (any-pointer: coarse) {
  .nl .c-q { width: 136px; }
  .nl .c-q .stepper { height: 46px; }
  .nl .c-q .stepper__btn { width: 44px; height: 44px; }
  .nl .c-q .stepper__input { width: 44px; height: 44px; font-size: 16px; }
}

/* ---------- Roasting ---------- */
/* The week strip: a segmented control; the picked day white. */
.rs-week__days { background: var(--segment); border-radius: var(--r); padding: 4px; gap: 4px; }
.rs-day, .rs-day.is-today, .rs-day.is-past:not([aria-pressed="true"]) { background: transparent; box-shadow: none; padding: 6px 12px; }
.rs-day[aria-pressed="true"], .rs-day.is-today[aria-pressed="true"] { background: var(--white); box-shadow: var(--card-shadow); }
.rs-dd { display: inline-flex; align-items: center; gap: 4px; }
.rs-week__arrow { width: 32px; height: 32px; background: var(--white); }
/* Today's Roast Batches: one card; the title and the stepper on one line, the batches, one quiet line. */
.rs-top { margin-bottom: 0; gap: 0; }
.page-run .bt-today.rb-card { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 24px; background: var(--white); border-radius: var(--r); box-shadow: var(--card-shadow); }
.rb-card__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.rb-card__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; }
.page-run .rb-card .bt-today__main { display: flex; flex-direction: row; align-items: center; gap: 12px; }
.page-run .rb-card .bt-today__label { max-width: none; font-size: 13px; line-height: 20px; color: var(--muted); text-align: right; white-space: nowrap; }
.page-run .rb-card .bt-today__n--read { width: auto; height: auto; padding: 0 12px 0 0; border: 0; font-family: var(--font); font-size: 18px; line-height: 24px; font-weight: 600; }
.rb-card__note { margin: -8px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.rb-card__note b { font-weight: 650; color: var(--ink); }
.rb-card__note .c-short { font-weight: 650; color: var(--red); }
/* The batches: smaller chips; done teal, the coffee's batches sand, every spare dashed (round 10). */
.rb-card .rs-run { gap: 6px; }
.rb-card .rs-run__b { height: auto; min-height: 0; padding: 6px 8px; gap: 8px; background: var(--white); box-shadow: inset 0 0 0 1px var(--border); }
.rb-card .rs-run__b span { font-size: 12px; line-height: 16px; }
.rb-card .rs-run__b b { font-size: 11px; line-height: 14px; }
.rb-card .rs-run__b.is-done { background: var(--teal-dark); box-shadow: none; }
.rb-card .rs-run__b.is-spare { background: transparent; box-shadow: none; outline: 1.5px dashed var(--border); outline-offset: -1.5px; }
.rb-card .rs-run__b.is-short { background: transparent; box-shadow: inset 0 0 0 2px var(--red); }
/* Suggested order and Done: one row per coffee (round 8 review 29). */
.rs-h { margin: 40px 0 12px; font-size: 16px; line-height: 24px; font-weight: 700; }
.rs-list { gap: 12px; }
.rs-list--done { margin-top: 8px; }
.rs-card, .rs-list--done .rs-card { gap: 0; padding: 0; background: var(--white); box-shadow: var(--card-shadow); }
.rs-card.is-just { box-shadow: 0 0 0 2px var(--teal-text); }
.rs-card__main, .rs-list--done .rs-card__main { grid-template-columns: 32px minmax(240px, 1fr) minmax(160px, auto) auto; align-items: center; column-gap: 24px; padding: 16px 24px; }
.rs-card__n { background: var(--chip-n); color: var(--ink); font-size: 13px; }
.rs-card__check { background: var(--chip-n); color: var(--ink); }
.rs-card__what { gap: 4px; }
.rs-card .coffee-name, .rs-list--done .coffee-name { font-size: 16px; line-height: 24px; font-weight: 700; }
.rs-list--done .rs-card .coffee-name, .rs-list--done .rs-card__name { color: var(--ink-soft); }
.rs-card__line { font-size: 13px; line-height: 20px; color: var(--ink-soft); white-space: nowrap; }
.rs-card__what .rs-card__green, .rs-card__green { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.rs-card__note { font-size: 12px; }
.rs-card .weigh { background: var(--fill-n); border: 0; }
.rs-card__orders, .rs-card .weigh, .rs-card > .plan-why, .rc.rs-card > .plan-why { margin-left: 104px; margin-right: 24px; }
.rs-card > .plan-why, .rc.rs-card > .plan-why { margin-top: -8px; margin-bottom: 16px; }
.rs-card__orders { margin-bottom: 16px; }
.rs-ords { background: var(--work); }
/* The pips speak the batch chip language (round 8 review 34): 16 px squares, teal for roasted, grey for not yet. */
.pips, .rs-bar { display: inline-flex; gap: 4px; width: auto; }
.pips i, .page-run .rs-card .rs-bar i, .rs-bar i { flex: none; width: 16px; min-width: 0; height: 16px; border-radius: 4px !important; background: var(--chip-n); box-shadow: none; }
.pips i.is-on, .rs-bar i.is-on, .rs-list--done .pips i.is-on, .rc.is-done .pips i.is-on, .rc.is-done .rs-bar i.is-on { background: var(--teal-dark); }
/* Roasted: the 48 px round teal button with a check; once a coffee is done, a solid green check that undoes. */
.rs-card__act { grid-column: auto; grid-row: auto; justify-content: flex-end; }
.rs-act { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.rs-act__help { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; text-align: right; }
.rs-roasted, .rs-roasted.is-done { display: grid; place-items: center; width: 48px; min-width: 0; height: 48px; padding: 0; border: 0; background: var(--teal-dark); color: var(--cream); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(26, 26, 26, 0.12); cursor: pointer; transition: background-color var(--hover) var(--ease), transform var(--hover) var(--ease); }
.rs-roasted::before { content: none; }
.rs-roasted svg { width: 22px; height: 22px; }
.rs-roasted:hover { background: var(--brand-press); }
.rs-roasted:active { transform: scale(0.96); }
.rs-roasted.is-done { background: var(--green); }
.rs-roasted.is-done:hover { background: #0f6732; }
.rs-roasted:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
/* The rail. */
.page-run .side--roast .card { border-radius: var(--r); padding: 24px; }
.page-run .side--roast .card__title { font-size: 14px; line-height: 20px; font-weight: 650; margin-bottom: 12px; }
.rs-log__line { border-bottom: 1px solid var(--line-soft); font-size: 13px; gap: 8px; }
.rs-log__line span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.page-run .roast--stock { border-radius: var(--r); margin-top: 16px; }

/* ---------- Packing ---------- */
.lightbox .lb__foot { border-top: 0; box-shadow: none; }
/* From last week and Placed as two quiet rows (round 8 review 38). */
.lb__details { display: grid; gap: 4px; margin-bottom: 16px; }
.meta-row { display: flex; gap: 0; margin: 0; font-size: 12px; line-height: 20px; color: var(--ink); }
.meta-row span:first-child { flex: none; width: 124px; color: var(--muted); }
.meta-row.is-red span:last-child { color: var(--red); }
/* Name, stepper and All on one grid, so they line up across the rows (round 8 review 36). */
.lb__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px; align-items: center; column-gap: 12px; }
.lb__ctl .stepper__val { min-width: 64px; font-weight: 500; font-size: 14px; }
.lb__all { display: flex; justify-content: flex-end; }
.lb__all .btn { width: 56px; justify-content: center; }
.lb__all .lb__check { width: 20px; height: 20px; margin-right: 18px; }
.lb__line.is-done .stepper__val, .lb__line.is-done .stepper__val span { color: var(--green); }
/* Packed: the time and Undo packed, in the lightbox (round 8 review 40). */
.lb__packed { display: inline-flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 14px; font-weight: 550; color: var(--ink); white-space: nowrap; }
.lb__packed img { width: 16px; height: 16px; }

/* ---------- Settings ---------- */
.settings, .settings__main { background: var(--work); }
.settings__nav { background: var(--side-bg); border-right: 1px solid var(--line); }
.settings__nav a:hover { background: var(--nav-on); }
.settings__nav a[aria-current="page"], .settings__nav a.is-on { background: var(--nav-on); color: var(--ink); font-weight: 600; }
/* One table header style everywhere, group rows in sentence case (round 8 reviews 41 and 50). */
.st--section { background: var(--work); }
.st--section b { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; color: var(--ink); }
/* The For sale switch: a 4 px rounded square in its 6 px track (round 8 review 45). */
.switch i { border-radius: 4px !important; }
/* A plain dropdown for one of several (round 8 review 51). */
.field--pick { height: 40px; width: 100%; max-width: 320px; }
/* New product: room to breathe (round 8 review 46, round 10 review 22). */
.drawer .facts { row-gap: 24px; }
.drawer .choice button, .drawer .segments button { padding: 8px 16px; min-height: 36px; }
/* Weekly Plan: lanes #F6F5F3 with a hairline, white cards inside (round 10 review 24). */
.wp .bd, .wp-lane:not(.wp-lane--tray) { background: var(--side-bg); box-shadow: none; border: 1px solid var(--line); }
.wp-lane--tray { background: transparent; box-shadow: none; border: 1.5px dashed var(--border); }
.wp-lead { max-width: 760px; }
.settings__main > .tipgrid + .tipgrid { margin-top: -8px; }
/* Keyboard shortcuts. */
.keys-table { max-width: 720px; }
.kt { display: grid; grid-template-columns: minmax(0, 1fr) 160px 96px; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line-soft); font-size: 14px; line-height: 20px; }
.kt:last-child { border-bottom: 0; }
.kt--head { padding: 12px 24px; background: var(--thead); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 16px; font-weight: 550; color: var(--muted); }
.kt__act { display: flex; justify-content: flex-end; }
.kt__key .key { font-size: 12px; line-height: 20px; padding: 0 8px; }
.kt__listen { display: inline-block; padding: 0 8px; border-radius: var(--r); box-shadow: 0 0 0 1px var(--teal-text), 0 0 0 4px rgba(var(--shade-rgb), 0.12); font-size: 12px; line-height: 20px; color: var(--teal-dark); }
.kt__note { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: var(--red); }

/* ---------- Tablet, 1024 to 1100 (round 8 proposal; round 10 review 28) ---------- */
@media (max-width: 1100px) {
  html[data-tight] { --roast-side: 272px; }
  .rs-card__main, .rs-list--done .rs-card__main { grid-template-columns: 32px minmax(0, 1fr) auto auto; column-gap: 16px; padding: 12px 16px; }
  .rs-card__act { grid-column: auto; }
  .rs-card__line { white-space: normal; }
  .rs-act__help { display: none; }
  .rs-card__prog { min-width: 0; }
  .rs-card__orders, .rs-card .weigh, .rs-card > .plan-why, .rc.rs-card > .plan-why { margin-left: 64px; margin-right: 16px; }
  .rs-run { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
  .rb-card__head { flex-wrap: wrap; }
  .page-run .side--roast { padding: 24px 16px 32px; }
  .page-run .side--roast .card { padding: 20px; }
}
/* Drawer titles are page titles too: League Spartan 28/36. Size chips in New product breathe (round 10 review 22). */
.drawer h2.title { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.005em; }
.drawer [data-act="productNewSize"] { padding: 8px 16px; min-height: 36px; margin-right: 4px; }

/* ==========================================================================================================
   Round 8b (Nov 17, 2026): Chris's round 8 local review, items 26 to 32 (feedback-2026-11-17/FEEDBACK.md part 5).
   ========================================================================================================== */
/* 26. Spare batch chips: a thinner, lighter dash. */
.rb-card .rs-run__b.is-spare { outline: 1px dashed var(--border); outline-offset: -1px; }
/* 27. The coffee's batch segments fill as batches are logged. The earlier rule that drew every segment grey was
   stronger than is-on; this one holds. The last filled segment on today takes that batch back. */
.page-run .rs-card .rs-bar i.is-on, .page-run .rc.is-done .rs-bar i.is-on { background: var(--teal-dark); }
.page-run .rs-card .rs-bar i.is-just { background: var(--green); }
.page-run .rs-card .rs-bar i.is-last { cursor: pointer; transition: opacity var(--hover) var(--ease); }
.page-run .rs-card .rs-bar i.is-last:hover { opacity: 0.6; }
.rs-card__undo { margin-left: 12px; font-size: 12px; line-height: 20px; font-weight: 500; }
/* 30. Grey table header bands: the band runs edge to edge and every first and last column keeps 12 px inside it,
   header and body alike, so the text lines up under the header on every small table. */
.mini-table th:first-child, .mini-table td:first-child, .rtw .mini-table th:first-child, .rtw .mini-table td:first-child { padding-left: 12px; }
.mini-table th:last-child, .mini-table td:last-child, .rtw .mini-table th:last-child, .rtw .mini-table td:last-child { padding-right: 12px; }
.mini-table thead th, .rtw .mini-table thead th { padding-top: 8px; padding-bottom: 8px; line-height: 16px; vertical-align: middle; }
/* 31. The Roasting day strip slides its white selection like every other segmented control. */
.rs-week__days { position: relative; }
.rs-week__days .thumb { top: 4px; bottom: 4px; border-radius: 8px; background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.rs-week__days .rs-day { position: relative; z-index: 1; }
.rs-week__days.has-thumb .rs-day[aria-pressed="true"] { background: transparent; box-shadow: none; }
/* 32. Toasts: centred in the window, the text centred with even padding. */
.toast-wrap { left: 0; right: 0; justify-content: center; padding: 0 16px; }
.toast { justify-content: center; min-height: 44px; padding: 8px 8px 8px 20px; text-align: center; }
.toast.toast--plain { padding: 12px 20px; }

/* ==========================================================================================================
   Round 8c (Nov 17, 2026): Chris's review of the live round 8b, items 33 to 38 (feedback-2026-11-17/FEEDBACK.md
   part 6).
   ========================================================================================================== */
/* 33. Weigh batch: its own room inside the card, the card's 24 px inset on the sides and below, 16 px inside. */
.rs-card .weigh { gap: 8px; margin-top: 0; margin-bottom: 24px; padding: 0; background: transparent; }
.rs-card .weigh__row { padding: 16px 24px; border-radius: var(--r); background: var(--fill-n); box-shadow: inset 0 0 0 1px var(--line-soft); }
.rs-card__orders + .weigh, .rs-card .weigh + .plan-why { margin-top: 0; }
@media (max-width: 1100px) { .rs-card .weigh { margin-bottom: 16px; } .rs-card .weigh__row { padding: 12px 16px; } }
/* 36. Save: a saving state, then one confirmed line with a check; a message under the row when a value is missing
   or odd. */
.weigh__save.is-saving { opacity: 1; color: var(--muted); cursor: progress; }
.weigh__msg { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 20px; color: var(--red); }
.weigh__row.has-note .input-num { border-color: var(--red); }
.rs-card .weigh__row--done { padding: 12px 24px; gap: 12px; background: var(--green-tint, #e9f4ee); box-shadow: none; }
.weigh__row--done .weigh__what { flex-direction: row; gap: 4px; min-width: 0; flex: 1; font-size: 14px; color: var(--ink-soft); }
.weigh__row--done .weigh__what b { font-weight: 600; color: var(--ink); }
.weigh__ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: var(--white); flex: none; }
.weigh__ok svg { width: 12px; height: 12px; }
.weigh__saved { font-size: 13px; font-weight: 600; color: var(--green); }
.weigh__row--done.is-fresh { animation: weigh-in 0.32s cubic-bezier(0, 0, 0.2, 1) both; }
.weigh__row--done.is-fresh .weigh__ok { animation: weigh-ok 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both; }
@keyframes weigh-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes weigh-ok { from { transform: scale(0.4); opacity: 0; } }
/* 35. The round Roasted button: hover lifts on a pointer, press sinks to 0.96 with a tighter shadow, release springs
   back, and a logged batch gives a short pulse while its segment fills (bin-fill). 48 px, so the touch target is past 44. */
.rs-roasted, .rs-roasted.is-done { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 2px 6px rgba(26, 26, 26, 0.16); transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s var(--ease), background-color var(--hover) var(--ease); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .rs-roasted:hover { transform: translateY(-1px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 4px 10px rgba(26, 26, 26, 0.18); }
}
.rs-roasted:active, .rs-roasted:hover:active { transform: scale(0.96); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(26, 26, 26, 0.14); transition-duration: 0.08s; }
.rs-roasted.is-pop { animation: roasted-pop 0.46s cubic-bezier(0.34, 1.56, 0.64, 1); }
.rs-roasted.is-pop svg { animation: roasted-check 0.4s cubic-bezier(0, 0, 0.2, 1); }
@keyframes roasted-pop { 0% { transform: scale(0.94); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(33, 122, 70, 0.4); } 55% { transform: scale(1.06); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 0 0 8px rgba(33, 122, 70, 0); } 100% { transform: none; } }
@keyframes roasted-check { from { opacity: 0.3; transform: scale(0.6) rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) {
  .rs-roasted, .rs-roasted:hover, .rs-roasted:active { transform: none; transition: none; }
  .rs-roasted.is-pop, .rs-roasted.is-pop svg, .weigh__row--done.is-fresh, .weigh__row--done.is-fresh .weigh__ok { animation: none; }
}
/* 34. The orders under a coffee open and close with an eased height (JS); the chevron turns with them. */
.rs-card__orders { will-change: height; }
/* 37. Segmented labels keep one weight pressed or not, so nothing reflows under the sliding indicator. */
.segments button, .segments button[aria-pressed="true"] { font-weight: 500; }
.rs-day, .rs-day[aria-pressed="true"] { font-weight: inherit; }
/* 38. The week control speaks the stepper's language (Roasting today): one white box, a hairline border, 6 px radius,
   quiet 38 px icon buttons, the label plain in the middle; no inner box, no split cells. */
.week-nav__group { height: 40px; padding: 0; border: 1px solid var(--border); border-radius: var(--r) !important; background: var(--white); box-shadow: 0 1px 0 rgba(26, 26, 26, 0.04); overflow: visible; }
.week-nav__group > button { height: 38px; border: 0 !important; border-radius: var(--r) !important; background: transparent; box-shadow: none; }
.week-nav__group > button + button { border-left: 0 !important; }
.week-nav__group .week-nav__arrow { width: 38px; color: var(--ink-soft); transition: background-color var(--hover) var(--ease); }
.week-nav__group .week-nav__arrow img { width: 16px; height: 16px; opacity: 0.8; }
.week-nav__group .week-nav__today { min-width: 88px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--ink); background: transparent; }
.week-nav__group .week-nav__today:disabled { color: var(--ink); }
.week-nav__group .week-nav__arrow:hover, .week-nav__group .week-nav__today:not(:disabled):hover { background: var(--tint-soft); }
.week-nav__group .week-nav__arrow:active, .week-nav__group .week-nav__today:not(:disabled):active { background: rgba(var(--shade-rgb), 0.1); }
.week-nav__group > button:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: -2px; }
.week-nav__group:focus-within { border-color: var(--teal-text); }
.week-nav__title { height: 40px; }
.rs-week__arrow { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--r); background: var(--white); box-shadow: 0 1px 0 rgba(26, 26, 26, 0.04); }
.rs-week__arrow:hover { background: var(--white); box-shadow: inset 0 0 0 40px var(--tint-soft); }
/* 36. A placeholder is a hint, not a value: faint, so an empty weight never looks typed. */
.weigh__f .input-num::placeholder { color: var(--faint); font-weight: 400; opacity: 1; }

/* Round 8d: Friday in the Roasting week strip. A day that is not a roast day reads "No roasting", muted, and opens to
   a calm note and the orders going out that day. */
.rs-day.is-off .rs-day__off { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.rs-day.is-off .rs-dd { color: var(--faint); }
.rs-day.is-off[aria-pressed="true"] .rs-day__off, .rs-day.is-off[aria-pressed="true"] .rs-dd { color: var(--muted); }
.rs-offday { margin-bottom: 20px; background: var(--white); }
.rs-offday__text { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.rs-offday__text .link { margin-left: 4px; font-size: 14px; }

/* Connect Shopify, the real connection (branch rd-shopify) */
.conn__connected { margin-top: 20px; font-size: 14px; line-height: 20px; color: var(--ink); }
.conn__connected b { font-weight: 600; }
.conn__connected + .conn__facts { margin-top: 12px; }
.conn__problem { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: var(--fill); font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.conn__field { display: grid; gap: 6px; margin-top: 20px; font-size: 13px; line-height: 20px; color: var(--muted); }
.conn__field input { width: 100%; max-width: 360px; }
.conn-wait { max-width: 960px; margin-top: 24px; padding: 24px; }
.conn-wait h2 { font-weight: 650; font-size: 15px; line-height: 20px; }
.conn__count { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--segment); font-weight: 550; font-size: 12px; color: var(--muted); }
.conn-wait .sub { margin-top: 4px; font-size: 13px; line-height: 20px; }
.conn-wait__list { margin: 16px 0 0; padding: 0; list-style: none; }
.conn-wait__row { display: grid; grid-template-columns: minmax(0, 1fr) 200px 140px auto auto; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); }
.conn-wait__what { display: grid; gap: 2px; min-width: 0; font-size: 13px; line-height: 20px; }
.conn-wait__what small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .conn-wait__row { grid-template-columns: 1fr 1fr; } .conn-wait__what { grid-column: 1 / -1; } }

/* A note on one order line (the Shopify grind, migration 0021): under the line in the drawer, packing and the slip */
.line-note { display: block; margin-top: 2px; font-style: normal; font-weight: 550; font-size: 12px; line-height: 16px; color: var(--teal-dark, #1d5c63); }
em.line-note { display: inline; margin-left: 4px; }

/* Orders this week heads the Roasting sidebar (Nov 19, AD: total pounds is "the roaster's barometer"). The week's
   total is the headline, big and first; batches and coffees one quiet line under it; the coffees below, smaller,
   as the breakdown. No total row at the foot any more. */
.page-run .side--roast .rtw--total .card__title { margin-bottom: 8px; font-size: 13px; line-height: 20px; font-weight: 550; color: var(--muted); }
.wk-total { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--ink); }
.wk-total b { font-size: 40px; line-height: 48px; font-weight: 650; letter-spacing: -0.02em; }
.wk-total span { font-size: 16px; line-height: 24px; font-weight: 550; color: var(--muted); }
.wk-total__sub { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-soft); }
.rtw .mini-table.wk-total__by { margin-top: 24px; }
.rtw .wk-total__by td { padding-top: 8px; padding-bottom: 8px; font-size: 12px; line-height: 16px; color: var(--ink-soft); }
.rtw .wk-total__by td.r { font-weight: 500; }

/* ---------- Version 1.1.0: accounts, the Staging marker, What's new ---------- */
.brand__name--solo { font-size: 15px; font-weight: 600; color: var(--cream); letter-spacing: -0.01em; }
.env-mark { flex: none; padding: 0 8px; border-radius: 4px; background: #f6e7c8; color: #5f3d05; font-weight: 600; font-size: 12px; line-height: 20px; white-space: nowrap; }
.slip__name { font-weight: 600; font-size: 22px; line-height: 28px; color: #000; }
.settings__version { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 16px 0 0; padding: 0 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
.settings__version .link { font-size: 13px; line-height: 20px; }
.whatsnew h2 { font-weight: 650; font-size: 17px; line-height: 24px; }
.whatsnew__ver { margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--muted); }
.whatsnew__list { display: grid; gap: 16px; max-height: 50vh; margin: 24px 0 0; overflow-y: auto; font-size: 14px; line-height: 20px; }
.whatsnew__list b { font-weight: 600; } .whatsnew__list p { color: var(--ink-soft); }
.whatsnew__none { margin-top: 24px; font-size: 14px; color: var(--muted); }
/* The 1024 tablet floor: the marker takes the brand's own padding, so the top bar still fits. */
@media (max-width: 1180px) { .brand:has(.env-mark) { gap: 8px; padding-right: 0; } }
