/* =============================================================================
   Roastery Hub v3 (Ryan, 17 Nov 2026) — Production, Green beans and Settings
   Bean Brothers design system v2.2: black ink on white paper, thin lines, square corners, one soft blue.
   Everything here sits under #view.v3 (or a pop-up opened from it), so no other module changes.
   Part 1 = the two rows (tabs + sub-tabs) and the phone menu. Part 2 = the look inside the screens.
   ============================================================================= */

/* ---------- 1. the two rows ---------- */
#view.v3,.v3-menuwrap{--v3i:#000;--v3i2:#111;--v3i3:#4A4A4A;--v3l:#D9D9D6;--v3lc:#D9D9D6;--v3f:#F0F0EF;--v3bt:#4986A0;--v3bs:#AFCDD7;--v3w:#fff;
  --v3wt:#111;--v3wtt:#AFCDD7}
#view.v3 .v3-top{display:flex;align-items:center;gap:12px 16px;min-height:56px;margin:-18px calc(-1 * var(--pad)) 0;padding:6px var(--pad);border-bottom:1px solid var(--v3i);flex-wrap:wrap}
#view.v3 .v3-top h1{flex:1 1 auto;margin:0;font-size:1.25rem;font-weight:400;letter-spacing:0;color:var(--v3i);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
/* row 1: the tabs (DS §5.2 sub-tab bar) */
#view.v3 .v3-tabs{display:flex;gap:28px;margin:0 calc(-1 * var(--pad));padding:0 var(--pad);border-bottom:1px solid var(--v3l);overflow-x:auto;scrollbar-width:none;background:var(--v3w)}
#view.v3 .v3-tabs::-webkit-scrollbar,#view.v3 .v3-subs::-webkit-scrollbar{display:none}
#view.v3 .v3-tabs a{flex:none;display:flex;align-items:center;gap:8px;height:44px;font-size:.8125rem;letter-spacing:.1em;text-transform:uppercase;color:var(--v3i3);text-decoration:none;border-bottom:2px solid transparent;white-space:nowrap;transition:color 100ms,border-color 100ms}
#view.v3 .v3-tabs a:hover{color:var(--v3i)}
#view.v3 .v3-tabs a.on{color:var(--v3i);border-bottom-color:var(--v3i);font-weight:600}
/* row 2: the sub-tabs (audit 1, 18 Nov) — DS §5.2 tab style, quieter than row 1: no strip, no box, sentence case 14 px grey;
   the current one is ink, weight 500, with a 2 px ink underline sitting on the ink rule that closes the header */
#view.v3 .v3-subs{display:flex;gap:24px;margin:0 calc(-1 * var(--pad)) 20px;padding:0 var(--pad);background:var(--v3w);border-bottom:1px solid var(--v3i);overflow-x:auto;scrollbar-width:none}
#view.v3 .v3-subs.none{display:none}   /* audit 17: a tab with no sub-tabs draws no second row (no rule, no margin) */
#view.v3 .v3-tabs a{margin-bottom:-1px}   /* the current tab's 2 px underline sits on the row's own rule */
#view.v3 .v3-tabs:has(+ .v3-subs.none){border-bottom-color:var(--v3i);margin-bottom:20px}   /* …and then that rule is the ink rule that closes the header */
#view.v3 .v3-subs a{flex:none;display:flex;align-items:center;gap:8px;height:44px;margin-bottom:-1px;font-size:.875rem;color:var(--v3i3);text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent;transition:color 100ms,border-color 100ms}
#view.v3 .v3-subs a:hover{color:var(--v3i)}
#view.v3 .v3-subs a.on{color:var(--v3i);font-weight:500;border-bottom-color:var(--v3i)}
#view.v3 .v3-subs.fl,#view.v3 .v3-tabs.fl{-webkit-mask-image:linear-gradient(90deg,transparent,#000 32px);mask-image:linear-gradient(90deg,transparent,#000 32px)}
#view.v3 .v3-subs.fr,#view.v3 .v3-tabs.fr{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}
#view.v3 .v3-subs.fl.fr,#view.v3 .v3-tabs.fl.fr{-webkit-mask-image:linear-gradient(90deg,transparent,#000 32px,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,transparent,#000 32px,#000 calc(100% - 32px),transparent)}
@media (pointer:coarse){ #view.v3 .v3-tabs a{height:48px} #view.v3 .v3-subs a{height:48px} }
/* counts: Waiting colour, always beside the word */
.v3 .v3-cnt,.v3-menuwrap .v3-cnt{display:inline-block;border-radius:999px;font-size:.75rem;font-weight:400;letter-spacing:0;padding:1px 8px;background:var(--v3wtt);color:var(--v3wt);line-height:1.5}
.v3 .v3-cnt[hidden],.v3-menuwrap .v3-cnt[hidden]{display:none}
/* phone: one button under the title opens the menu (DS §6.17); the rows are not shown */
#view.v3 .v3-pnav{display:none}
@media (max-width:599px){
  #view.v3 .v3-tabs,#view.v3 .v3-subs{display:none}
  #view.v3 .v3-pnav{display:flex;align-items:center;justify-content:space-between;gap:12px;width:calc(100% + 2 * var(--pad));min-height:52px;margin:0 calc(-1 * var(--pad)) 16px;padding:0 var(--pad);
    border:0;border-bottom:1px solid var(--v3i);background:var(--v3f);color:var(--v3i);font:inherit;font-size:.875rem;text-align:left;cursor:pointer}
  #view.v3 .v3-pnav b{font-weight:400;letter-spacing:.1em;text-transform:uppercase;font-size:.8125rem}
  #view.v3 .v3-top .tsearch span,#view.v3 .v3-top .tsearch kbd{display:none}
}
.v3-menuwrap{position:fixed;inset:0;z-index:2000;background:var(--v3w);color:var(--v3i);overflow:auto;overscroll-behavior:contain;font-family:var(--font)}
.v3-menu{min-height:100%;border:1px solid var(--v3i)}
.v3-mh{display:flex;align-items:center;height:56px;background:var(--v3f);border-bottom:1px solid var(--v3i);position:sticky;top:0}
.v3-mh .v3-mx{width:48px;height:48px;margin-left:4px;border:0;background:none;font-size:1.25rem;color:var(--v3i);cursor:pointer}
.v3-mh span{flex:1;text-align:center;margin-right:52px;font-size:.8125rem;letter-spacing:.1em;text-transform:uppercase}
.v3-menu .v3-mi{display:flex;align-items:center;gap:8px;width:100%;min-height:52px;padding:0 16px;border:0;border-bottom:1px solid var(--v3i);background:none;color:var(--v3i);
  font:inherit;font-size:1rem;letter-spacing:.1em;text-transform:uppercase;text-align:left;text-decoration:none;cursor:pointer}
.v3-mopen{display:grid;grid-template-columns:42% 58%;border-bottom:1px solid var(--v3i)}
.v3-mopen .v3-mt{border:0;background:none;color:var(--v3bt);font:inherit;font-size:1rem;letter-spacing:.1em;text-transform:uppercase;cursor:pointer;padding:8px}
.v3-mopen>div{display:flex;flex-direction:column;animation:v3open 250ms ease-out}
.v3-mopen>div a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 12px;border-bottom:1px solid var(--v3i);color:var(--v3i);text-decoration:none;font-size:1rem;text-align:center}
.v3-mopen>div a:last-child{border-bottom:0}
.v3-mopen>div a.on{font-weight:600}
@keyframes v3open{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.v3-mopen>div{animation:none}}
.v3-menuwrap :focus-visible,#view.v3 .v3-tabs a:focus-visible,#view.v3 .v3-subs a:focus-visible,#view.v3 .v3-pnav:focus-visible{outline:2px solid var(--v3i);outline-offset:-2px}
/* the headline: one sentence that gives the answer */
#view.v3 .v3-lead{margin:4px 0 20px}
#view.v3 .v3-lead[hidden]{display:none}
#view.v3 .v3-meta{font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;color:var(--v3i3)}
#view.v3 .v3-meta:empty{display:none}
#view.v3 .v3-h{margin:4px 0 0;font-size:clamp(24px,4cqi,2.125rem);font-weight:400;line-height:1.15;letter-spacing:0;color:var(--v3i);max-width:40ch}
/* a tick box that was a chip (Records › History › Show deleted) */
/* audit 23: also inside pop-ups opened from the v3 modules */
:is(#view.v3,body.v3look .sheet-wrap) .v3-tick{display:inline-flex;align-items:center;gap:8px;min-height:36px;font-size:.875rem;cursor:pointer}
:is(#view.v3,body.v3look .sheet-wrap) .v3-tick input{flex:none;width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:#000}
@media (pointer:coarse){ :is(#view.v3,body.v3look .sheet-wrap) .v3-tick{min-height:48px} }
/* Settings › Notifications split: My alerts shows the "Me" column, Alerts for everyone the four "for everyone" columns */
#view.v3 #modBody[data-part="mine"] .nb-adm,#view.v3 #modBody[data-part="mine"] .nb-ev,#view.v3 #modBody[data-part="mine"] .nb-foot{display:none}
#view.v3 #modBody[data-part="everyone"] .nb-me{display:none}

/* ---------- 2. the look inside the screens (DS v2.2) — on for the modules listed in v3.js LOOK ----------
   L = the screen (#view.v3-look) and any pop-up opened from it (body.v3look .sheet-wrap). White paper only: the dark theme is
   ignored here (decision 5); every token the older screens use is set again to its light Bean Brothers value. */
:is(#view.v3-look,body.v3look .sheet-wrap){
  --ink:#000;--paper:#fff;--ink-2:#111;--ink-3:#4A4A4A;--line:#D9D9D6;--line-strong:#000;--line-control:#D9D9D6;--fill:#F0F0EF;--blue-soft:#AFCDD7;--blue-text:#4986A0;
  --c-bg:#fff;--c-surface:#fff;--c-surface-2:#F0F0EF;--c-line:#D9D9D6;--c-line-strong:#D9D9D6;--c-text:#000;--c-text-muted:#4A4A4A;--c-disabled:#B5B5B1;
  --c-primary:#000;--c-primary-hover:#111;--c-primary-press:#000;--c-on-primary:#fff;--c-primary-border:#000;
  --c-accent:#000;--c-accent-text:#000;--c-on-accent:#fff;--c-focus:#000;
  --c-ok:#111;--c-ok-soft:#F0F0EF;--c-warn:#111;--c-warn-soft:#AFCDD7;--c-warn-fill:#AFCDD7;--c-on-warn:#111;
  --c-bad:#B3261E;--c-bad-fill:#B3261E;--c-bad-soft:#FFFFFF;--c-bad-hover:#B3261E;--c-on-bad:#fff;--c-bad-border:#B3261E;
  --c-info:#4986A0;--c-info-soft:#F0F0EF;--c-sel:#AFCDD7;--c-on-sel:#000;--c-progress:#000;--c-track:#F0F0EF;--c-risk-bar:#B3261E;
  --c-hover:rgba(0,0,0,.04);--c-press:rgba(0,0,0,.08);--c-scrim:rgba(0,0,0,.35);
  --c-ink:#000;--c-steel:#4A4A4A;--c-ok-fill:#111;--c-info-fill:#4986A0;--c-shade:0,0,0;--c-light:255,255,255;
  --c-s1:#000;--c-s2:#34677D;--c-s3:#2E6B4A;--c-s4:#954066;--c-s5:#8C8C8C;
  --c-shadow:none;--c-shadow-pop:none;--shadow-1:none;--shadow-2:none;--ring:0 0 0 2px #fff,0 0 0 4px #000;
  --r-sm:0;--r-md:0;--r-lg:0;
  --teal:#000;--navy:#000;--on-teal:#fff;--gold:#000;--on-gold:#fff;--gold-text:#000;--coffee:#954066;
  --bg:#fff;--card:#fff;--muted:#4A4A4A;--line-input:#D9D9D6;--soft:#F0F0EF;--tan:#F0F0EF;
  --ok:#111;--ok-soft:#F0F0EF;--bad:#B3261E;--bad-soft:#FFFFFF;--warn:#111;--warn-soft:#AFCDD7;--info:#4986A0;--info-soft:#F0F0EF;
  --key:#111;--key-bg:#AFCDD7;--key-ink:#111;--prd-on-ok:#fff;
  --radius:0;--shadow:none;
  --s-bg:#EEF1F1;--s-floor:#E2E6E7;--s-upright:#1F5FB8;--s-beam:#F0A023;--s-deck:#9BA8AB;--s-plate:#11212D;
  color-scheme:light;color:#000}
#view.v3-look{background:#fff}
/* audit 18 (18 Nov): DS §5.6 fluid page column instead of the width steps (--view-max): 94 % of the space beside the sidebar,
   centred, at most 2400 px (+ the page margins). Only the v3 modules; the others keep the steps until they move. */
@media (min-width:1200px){ #view.v3{max-width:calc(clamp(1200px, (100vw - var(--side)) * .94, 2400px) + 2 * var(--pad))} }
/* type (audit 11 + 13, 18 Nov): one type rule inside the v3 modules — DS v2.2 §3, in rem so it grows with the Hub's base size on big screens
   (16 px · 18 px from 2400 px · 19 px from 3200 px). Body 15 (16 on a phone) · caption 13 grey · label 12 / 400 / .14em UPPERCASE ·
   H2 22 / 400 · H3 16 / 400 · KPI 32 / 500 · buttons and tabs 13 UPPERCASE .1em (compact 12). Only two trackings on UPPERCASE text. */
:is(#view.v3-look,body.v3look .sheet-wrap){
  font-size:.9375rem;--fs-base:.9375rem;
  --t-body-size:.9375rem;--t-body-lh:1.6;--t-small-size:.875rem;--t-caption-size:.8125rem;--t-caption-lh:1.4;--t-caption-track:0;
  --t-label-size:.75rem;--t-label-track:.14em;--t-h1-track:0;--t-h2-size:1.375rem;--t-h2-lh:1.3;--t-h2-track:0;--t-h3-size:1rem;--t-h3-lh:1.5;--t-h3-track:0;
  --t-kpi-size:2rem;--t-button-size:.8125rem;--t-micro-size:.75rem}
@media (max-width:599px){ :is(#view.v3-look,body.v3look .sheet-wrap){font-size:1rem;--fs-base:1rem;--t-body-size:1rem} }
:is(#view.v3-look,body.v3look .sheet-wrap) :is(.t-label,.kicker){font-weight:400;letter-spacing:.14em;font-size:.75rem}
:is(#view.v3-look,body.v3look .sheet-wrap) .t-caption{font-size:.8125rem;letter-spacing:0;color:#4A4A4A}
:is(#view.v3-look,body.v3look .sheet-wrap) :is(.t-kpi,.rb-nums b){font-weight:500;letter-spacing:0}
:is(#view.v3-look,body.v3look .sheet-wrap) :is(small,.ui-count,.cnt,kbd){font-size:clamp(.75rem,.85em,.875rem)}   /* 12–14 px: never under 12, never bigger than 14 */
#view.v3 .v3-top :is(kbd,.cnt,small){font-size:.75rem}
/* section start (DS §6.2): an UPPERCASE eyebrow over a 1 px ink rule — one class for blocks that are not a .card title */
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-sec{display:block;margin:0 0 12px;padding:0 0 6px;border-bottom:1px solid #000;font-size:.75rem;font-weight:400;letter-spacing:.14em;text-transform:uppercase;color:#000;line-height:1.4}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-sec :is(.hint,small){font-size:.8125rem;letter-spacing:0;text-transform:none;color:#4A4A4A}
:is(#view.v3-look,body.v3look .sheet-wrap) :is(td,.num,.stat b,.t-num,.t-kpi){font-variant-numeric:tabular-nums}
body.v3look{background:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) h1,:is(#view.v3-look,body.v3look .sheet-wrap) h2,:is(#view.v3-look,body.v3look .sheet-wrap) h3,:is(#view.v3-look,body.v3look .sheet-wrap) h4,:is(#view.v3-look,body.v3look .sheet-wrap) .t-h1,:is(#view.v3-look,body.v3look .sheet-wrap) .t-h2,:is(#view.v3-look,body.v3look .sheet-wrap) .t-h3{font-weight:400}
:is(#view.v3-look,body.v3look .sheet-wrap) b,:is(#view.v3-look,body.v3look .sheet-wrap) strong{font-weight:500}
:is(#view.v3-look,body.v3look .sheet-wrap) .hint,:is(#view.v3-look,body.v3look .sheet-wrap) .t-caption,:is(#view.v3-look,body.v3look .sheet-wrap) .sub{color:#4A4A4A}
:is(#view.v3-look,body.v3look .sheet-wrap) a:not([class]){color:#111}
/* section start: a card's title is an UPPERCASE eyebrow with an ink rule under it (DS §6.2) */
:is(#view.v3-look,body.v3look .sheet-wrap) .card,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-card{background:#fff;border:1px solid #D9D9D6;border-radius:0;box-shadow:none}
:is(#view.v3-look,body.v3look .sheet-wrap) .card>h2:first-child,:is(#view.v3-look,body.v3look .sheet-wrap) .card>.row.spread:first-child h2,:is(#view.v3-look,body.v3look .sheet-wrap) .card>summary h2,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-card>h2:first-child,:is(#view.v3-look,body.v3look .sheet-wrap) .card>.su-head h2,:is(#view.v3-look,body.v3look .sheet-wrap) .card>.w3d-head h2,:is(#view.v3-look,body.v3look .sheet-wrap) .card>header h2{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;font-weight:400;color:#000}
:is(#view.v3-look,body.v3look .sheet-wrap) .card>h2:first-child,:is(#view.v3-look,body.v3look .sheet-wrap) .card>.row.spread:first-child,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-card>h2:first-child{border-bottom:1px solid #000;padding-bottom:6px;margin-bottom:12px}
:is(#view.v3-look,body.v3look .sheet-wrap) .card h2 .hint,:is(#view.v3-look,body.v3look .sheet-wrap) .card h2 small,:is(#view.v3-look,body.v3look .sheet-wrap) .card h2 span{text-transform:none;letter-spacing:0;font-size:.8125rem}
:is(#view.v3-look,body.v3look .sheet-wrap) .card>.w3d-head h2{margin:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .card.quiet{background:#F0F0EF;border-color:#F0F0EF}
/* buttons: one black primary per screen; the rest are ink outlines; UPPERCASE tracked; 36 px with a mouse, 48 on touch (DS §6.5) */
:is(#view.v3-look,body.v3look .sheet-wrap) .btn,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn{border-radius:0;font-weight:400;font-size:.8125rem;letter-spacing:.1em;text-transform:uppercase;min-height:36px;box-shadow:none}
:is(#view.v3-look,body.v3look .sheet-wrap) .btn{background:#000;border-color:#000;color:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) .btn.ghost,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn--secondary{background:#fff;border:1px solid #000;color:#000}
:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn--ghost{border-color:transparent}
:is(#view.v3-look,body.v3look .sheet-wrap) .btn.ghost:hover,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn--secondary:hover{background:#F0F0EF}
:is(#view.v3-look,body.v3look .sheet-wrap) .btn:active,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn:active{opacity:.85}
:is(#view.v3-look,body.v3look .sheet-wrap) .btn:disabled,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn:disabled,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn[aria-disabled="true"]{background:#F0F0EF;color:#4A4A4A;border-color:#D9D9D6}
:is(#view.v3-look,body.v3look .sheet-wrap) .btn.small,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn--compact{font-size:.75rem;padding:0 12px}
:is(#view.v3-look,body.v3look .sheet-wrap) :is(.btn.small,.ui-btn--compact):not(.danger):not(.ui-btn--danger):not(.ui-btn--ghost):not(:disabled):not([aria-disabled="true"]){--_bg:#fff;--_fg:#000;--_bd:#000;--_hov:#F0F0EF;--_prs:#F0F0EF;background:#fff;border:1px solid #000;color:#000}   /* DS §6.5: a compact (row / toolbar) button is always an outline */
@media (hover:hover){ :is(#view.v3-look,body.v3look .sheet-wrap) :is(.btn.small,.ui-btn--compact):not(.danger):not(.ui-btn--danger):not(.ui-btn--ghost):not(:disabled):hover{background:#F0F0EF} }
:is(#view.v3-look,body.v3look .sheet-wrap) .danger-text{color:#B3261E!important}
:is(#view.v3-look,body.v3look .sheet-wrap) .btn.danger,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn--danger{background:#B3261E;border-color:#B3261E;color:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) .linkbtn{color:#111}
@media (pointer:coarse){ :is(#view.v3-look,body.v3look .sheet-wrap) .btn,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn,:is(#view.v3-look,body.v3look .sheet-wrap) .btn.small,:is(#view.v3-look,body.v3look .sheet-wrap) .ui-btn--compact{min-height:48px} }
/* audit 32: opened Records batch — the next action = compact black, the other two = Soft (#AFCDD7 + ink); press 85 %, 100 ms; 2 px ink focus ring */
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-acts .ui-btn{min-height:36px;padding:0 12px;font-size:.75rem;transition:opacity 100ms}   /* all compact, one height */
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-acts .ui-btn.rcd-next{background:#000;border-color:#000;color:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-acts .ui-btn.rcd-soft{background:#AFCDD7;border-color:#AFCDD7;color:#000}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-acts .ui-btn:is(.rcd-next,.rcd-soft):active{opacity:.85}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-acts .ui-btn:is(.rcd-next,.rcd-soft):focus-visible{outline:2px solid #000;outline-offset:2px}
@media (pointer:coarse){ :is(#view.v3-look,body.v3look .sheet-wrap) .rcd-acts .ui-btn{min-height:48px} }
/* the Cropster button while it waits for its address: grey like any disabled button; the roaster's Head Roaster line sits centred in the row */
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-acts .ui-btn[aria-disabled="true"]{background:#F0F0EF;border-color:#D9D9D6;color:#4A4A4A}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-acts .cr-only{align-self:center}
/* (Ryan 24 Nov 2026, "why there is a double arrow?": no arrow added by CSS any more; a button that needs one says it in its label) */
/* inputs: 1 px control grey, square, 48 px on touch; focus = ink (DS §6.8) */
:is(#view.v3-look,body.v3look .sheet-wrap) input:not([type=checkbox]):not([type=radio]):not([type=range]),:is(#view.v3-look,body.v3look .sheet-wrap) select,:is(#view.v3-look,body.v3look .sheet-wrap) textarea{border:1px solid #D9D9D6;border-radius:0;background:#fff;color:#000;box-shadow:none}
:is(#view.v3-look,body.v3look .sheet-wrap) input:focus-visible,:is(#view.v3-look,body.v3look .sheet-wrap) select:focus-visible,:is(#view.v3-look,body.v3look .sheet-wrap) textarea:focus-visible{outline:1.5px solid #000;outline-offset:0}
:is(#view.v3-look,body.v3look .sheet-wrap) input[type=checkbox],:is(#view.v3-look,body.v3look .sheet-wrap) input[type=radio]{accent-color:#000}
:is(#view.v3-look,body.v3look .sheet-wrap) :focus-visible{outline-color:#000}
/* tables: header UPPERCASE grey over an ink rule, light row rules, the row under the mouse goes soft blue (DS §6.7) */
:is(#view.v3-look,body.v3look .sheet-wrap) .tablewrap{border:1px solid #D9D9D6;border-radius:0;background:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) th{font-size:.6875rem;font-weight:400;letter-spacing:.1em;text-transform:uppercase;color:#4A4A4A;background:#fff;border-bottom:1px solid #000;white-space:normal}
:is(#view.v3-look,body.v3look .sheet-wrap) td{border-bottom:1px solid #D9D9D6}
@media (hover:hover){ :is(#view.v3-look,body.v3look .sheet-wrap) tbody tr:not(.ncat):not(.rcd-det):not(.v3-grp):hover>td{background:#AFCDD7;transition:background-color 100ms} }
:is(#view.v3-look,body.v3look .sheet-wrap) tbody tr:not(.rcd-det):not(.v3-grp):focus-within>td{background:#AFCDD7}
/* audit 31a: a total row = one 1.5 px ink rule ABOVE the whole row, no rule under, label in body type, weight 600 (DS §4, §6.7) */
/* every tfoot in the v3 modules + their pop-ups; the rule only above the FIRST footer row (Subtotal / Tax / Total keep one rule); cells keep their own colour, a th label turns ink */
:is(#view.v3-look,body.v3look .sheet-wrap) tfoot :is(th,td){position:static;border-bottom:0;font-size:inherit;font-weight:600;letter-spacing:0;text-transform:none}
:is(#view.v3-look,body.v3look .sheet-wrap) tfoot>tr:first-child>:is(th,td){border-top:2px solid #000}   /* DS §4 1.5–2 px; Chrome draws 1.5 as 1 on a normal screen */
:is(#view.v3-look,body.v3look .sheet-wrap) tfoot th{color:#000;background:#fff}
/* audit 31b: tables inside an opened row never stick; the list header stays solid white above the panel with its ink rule */
#view.v3-look tr.rcd-det th{position:static;z-index:auto}
#view.v3-look .rcd-tbl>table>thead th{z-index:3;background:#fff;box-shadow:inset 0 -1px 0 #000}
/* audit 31c + d: the opened row's blocks are section starts (eyebrow + ink rule + content), no boxes; 24 px between; headings one line so the rules line up */
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-grid{gap:24px}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-blk:not(.rcd-iss){background:none;border:0;border-radius:0;padding:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-blk>h4.v3-sec{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-cap{margin:-6px 0 8px;font-size:.8125rem}
:is(#view.v3-look,body.v3look .sheet-wrap) .gc-blk>.row.spread{border-bottom:1px solid #000;padding:0 0 6px;margin:0 0 12px;flex-wrap:wrap;align-items:baseline;min-height:0;row-gap:4px}
:is(#view.v3-look,body.v3look .sheet-wrap) .gc-blk>.row.spread>.linkbtn{min-height:0;padding:0;line-height:1.4;font-size:.8125rem;margin-left:auto;position:relative}   /* the rule sits as close as the other headings' */
/* …but the tap area stays a full target (TYPE_STANDARD: 36 px with a mouse, 44 px on touch) — only the visible line is slim */
:is(#view.v3-look,body.v3look .sheet-wrap) .gc-blk>.row.spread>.linkbtn::after{content:"";position:absolute;left:-6px;right:0;top:50%;height:36px;transform:translateY(-50%)}
@media (pointer:coarse){ :is(#view.v3-look,body.v3look .sheet-wrap) .gc-blk>.row.spread>.linkbtn::after{height:44px} }
:is(#view.v3-look,body.v3look .sheet-wrap) .gc-blk>.row.spread>h4{margin:0;font-size:.75rem;font-weight:400;letter-spacing:.14em;text-transform:uppercase;color:#000;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .gc-blk>.row.spread>h4 .hint{letter-spacing:0;text-transform:none}
/* badges: pills on their status tint, always with the word (DS §6.12) */
:is(#view.v3-look,body.v3look .sheet-wrap) .badge{background:#F0F0EF;color:#4A4A4A;font-weight:400;box-shadow:inset 0 0 0 1px #D9D9D6}
:is(#view.v3-look,body.v3look .sheet-wrap) .badge.b-ok{background:#F0F0EF;color:#111;box-shadow:none} :is(#view.v3-look,body.v3look .sheet-wrap) .badge.b-warn,:is(#view.v3-look,body.v3look .sheet-wrap) .badge.b-gold,:is(#view.v3-look,body.v3look .sheet-wrap) .badge.b-key{background:#AFCDD7;color:#111;box-shadow:none}
:is(#view.v3-look,body.v3look .sheet-wrap) .badge.b-bad{background:#FFFFFF;color:#B3261E;box-shadow:none} :is(#view.v3-look,body.v3look .sheet-wrap) .badge.b-info,:is(#view.v3-look,body.v3look .sheet-wrap) .badge.b-wait{background:#F0F0EF;color:#111;box-shadow:none}
:is(#view.v3-look,body.v3look .sheet-wrap) .t-ok{color:#111} :is(#view.v3-look,body.v3look .sheet-wrap) .t-warn{color:#111} :is(#view.v3-look,body.v3look .sheet-wrap) .t-bad{color:#B3261E}
/* messages: square tints; the info one is the soft blue panel */
:is(#view.v3-look,body.v3look .sheet-wrap) .callout{border-radius:0;border:0;color:#000}
:is(#view.v3-look,body.v3look .sheet-wrap) .callout.info{background:#F0F0EF} :is(#view.v3-look,body.v3look .sheet-wrap) .callout.ok{background:#F0F0EF} :is(#view.v3-look,body.v3look .sheet-wrap) .callout.warn{background:#AFCDD7} :is(#view.v3-look,body.v3look .sheet-wrap) .callout.bad{background:#FFFFFF;color:#000}
:is(#view.v3-look,body.v3look .sheet-wrap) .callout.bad b:first-child{color:#B3261E}
/* chips stay pills (DS §6.12); selected = ink */
:is(#view.v3-look,body.v3look .sheet-wrap) .chip{border-color:#D9D9D6;background:#fff;color:#000}
:is(#view.v3-look,body.v3look .sheet-wrap) .chip.on,:is(#view.v3-look,body.v3look .sheet-wrap) .chip[aria-current]{background:#000;border-color:#000;color:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) .chip.on b,:is(#view.v3-look,body.v3look .sheet-wrap) .chip[aria-current] b{color:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) .seg{border-radius:0;border-color:#000}
:is(#view.v3-look,body.v3look .sheet-wrap) .seg a.on,:is(#view.v3-look,body.v3look .sheet-wrap) .seg button.on,:is(#view.v3-look,body.v3look .sheet-wrap) .seg [aria-selected="true"],:is(#view.v3-look,body.v3look .sheet-wrap) .seg [aria-pressed="true"]{background:#000;color:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) .ui-tabs--seg{border-radius:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .switch input:checked+.sw{background:#000}
/* KPI strip: one ruled box, tiles share their rules; 2 per row on a phone, 3 from 600 px, 6 from 1600 px (DS §5.4) */
:is(#view.v3-look,body.v3look .sheet-wrap) .stats{display:grid;gap:0;grid-template-columns:repeat(2,1fr);border:1px solid #000;margin-bottom:24px}
@container (min-width:600px){ #view.v3-look .stats{grid-template-columns:repeat(3,1fr)} }
@container (min-width:1600px){ #view.v3-look .stats.six,#view.v3-look .stats:has(>:nth-child(6):last-child){grid-template-columns:repeat(6,1fr)} }
:is(#view.v3-look,body.v3look .sheet-wrap) .stats>.stat{border:0;border-right:1px solid #D9D9D6;border-bottom:1px solid #D9D9D6;margin:0 -1px -1px 0;border-radius:0;padding:12px 16px;background:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) .stat b{font-size:clamp(22px,7cqi,2rem);font-weight:500;letter-spacing:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .stat span{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:#4A4A4A}
:is(#view.v3-look,body.v3look .sheet-wrap) .pstat{border-left:0}
/* pop-ups: square, an ink outline, one soft shadow */
body.v3look .sheet-wrap .sheet{background:#fff;color:#000;border:1px solid #000;box-shadow:none}
body.v3look .sheet-wrap .sheet h2{font-weight:400}
:is(#view.v3-look,body.v3look .sheet-wrap) .empty{color:#4A4A4A}
:is(#view.v3-look,body.v3look .sheet-wrap) .prd-bar{gap:12px}
/* square everywhere except the listed exceptions (DS §4: pills, avatars, round icon buttons, dots) */
:is(#view.v3-look,body.v3look .sheet-wrap) :not(.badge,.chip,.v3-cnt,.sw,.ui-status,.bean-chip,.qc-n,.rb-dot,.prd-dot,.ui-count,.sr-cnt,.cl-cnt,.prd-seq,.me-av,.dot,.tab-cnt,.live,.cl-tag,.ma-snd,.tact,.tbell .cnt,.loadbar,.bar,.bar i,input[type=radio],.ui-iconbtn,.pin-dot,.geo-dot,.lm-av,.ro-pill,.ck-x){border-radius:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .qc-step{border:1px solid #D9D9D6;border-top:2px solid var(--acc,#D9D9D6);box-shadow:none}
:is(#view.v3-look,body.v3look .sheet-wrap) :is(.btn.small,.ui-btn--compact){letter-spacing:.1em}
/* Pack › Today's output: seven columns fit without dragging from 1200 px up (DS §6.7.1 rule 4) */
/* Pack: Today's output sits beside the batch table only when both fit without dragging (DS §6.7.1 rule 4); otherwise under it */
#view.v3-look .pack-wrap{grid-template-columns:minmax(0,1fr)}
@container (min-width:1800px){ #view.v3-look .pack-wrap{grid-template-columns:minmax(0,1fr) 32rem} }
/* Stock by bean: purchase-order chips wrap inside the Lot ID cell, so the table fits without dragging from 1920 px (DS §6.7.1) */
#view.v3-look td.l71{white-space:normal} #view.v3-look .po71{display:flex;flex-wrap:wrap;gap:4px}
#view.v3-look .pack-sum :is(th,td){padding-left:6px;padding-right:6px}
/* audit 3/5: no coloured side bars in the three modules — Pack rows show the bean colour as the small square before the name */
#view.v3-look tr.brow td:first-child{box-shadow:none}
#view.v3-look .prd-cardtbl tr.brow{border-left:0;padding-left:0}   /* the phone card: no coloured bar either */
/* audit 19: With Logistics · not counted yet — a section with a compact table */
#view.v3-look .ho-sent{margin-top:20px}
#view.v3-look .ho-sent .tablewrap{margin-bottom:8px}
#view.v3-look .ho-srow[hidden]{display:none}
/* audit 20: Pack table — priority-2 columns (Roasting, Bags ready) hide when the table box is 600–1023 px (DS §6.7.1); the Bags ready
   tick then sits in the Packing cell, so nothing is lost. The Packing cell may wrap its button under the pill. */
#view.v3-look .pack-col .prd-cardtbl{container:pkt / inline-size}
#view.v3-look .pk-bags-in{display:none}
@container pkt (min-width:600px) and (max-width:1023px){ #view.v3-look .pack-col [data-p="2"]{display:none} #view.v3-look .pk-bags-in{display:inline-flex;margin-right:8px} }
#view.v3-look .pack-col td[data-l="Packing"]{white-space:normal}
#view.v3-look .pk-bags{min-height:0;font-size:.875rem}
/* KPI strip, DS v2.2 §5.4 — THE strip component in the v3 modules (audit 21 again): <div class="v3-kpis"><div class="stats">tiles</div></div>.
   The wrapper is the ink frame and the container the tile count reads: 2 under 600 px, 3 from 600, 6 from 1500 (by the strip's own width; Ryan 18 Nov: 1500, so 1920 screens get one row).
   Each tile draws only its right and bottom #D9D9D6 line; the grid sticks out 1 px right and bottom so the outer ones are clipped:
   shared single lines, none on the frame. Tile: UPPERCASE 12 px eyebrow, 32 px number (cqi clamp, never wraps) + 14 px grey unit,
   one 13 px caption line, 16 px padding, no colour accents. */
#view.v3-look .v3-kpis{container:kpis / inline-size;border:1px solid #000;overflow:hidden;background:#fff;margin:0 0 24px}
#view.v3-look .v3-kpis>.stats{display:grid;gap:0;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 -1px -1px 0;border:0;background:#fff}
@container kpis (min-width:600px){ #view.v3-look .v3-kpis>.stats{grid-template-columns:repeat(3,minmax(0,1fr))} }
@container kpis (min-width:1500px){ #view.v3-look .v3-kpis>.stats:has(>:nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr))} }
/* never a lone tile: 3 tiles stay one row; 4 tiles are 2 + 2, then one row of 4 from 600 px */
#view.v3-look .v3-kpis>.stats:has(>:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
@container kpis (min-width:600px){ #view.v3-look .v3-kpis>.stats:has(>:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))} }
#view.v3-look .v3-kpis>.stats>.stat{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;padding:16px;border:0;border-radius:0;background:#fff;
  box-shadow:inset -1px 0 0 #D9D9D6,inset 0 -1px 0 #D9D9D6;color:#000;text-decoration:none}
#view.v3-look .v3-kpis .stat>span{order:-1;font-size:.75rem;line-height:1.3333;letter-spacing:.14em;text-transform:uppercase;color:#4A4A4A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#view.v3-look .v3-kpis .stat>b{display:block;font-size:clamp(1.25rem,8cqi,2rem);line-height:1.25;font-weight:500;letter-spacing:0;white-space:nowrap;font-variant-numeric:tabular-nums}
#view.v3-look .v3-kpis .stat>b small{font-size:.875rem;font-weight:400;color:#4A4A4A;margin:0}
#view.v3-look .v3-kpis .stat>small{display:block;margin:0;font-size:.8125rem;line-height:1.4;color:#4A4A4A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){ #view.v3-look .v3-kpis a.stat:hover{background:#F0F0EF} }
/* …one search box (48 px, the icon inside, no frame around a frame) */
#view.v3-look .gfind{min-height:48px;padding:0 12px;border:1px solid #D9D9D6;border-radius:0;background:#fff}
#view.v3-look .gfind:focus-within{border-color:#000}
#view.v3-look .gfind input{border:0!important;min-height:46px;padding:0;background:transparent;outline:none}
/* …and "NEEDS YOU": one row per item, status word in its colour, the sentence, one link at the end */
#view.v3-look .gw-needs{margin:0 0 24px}
#view.v3-look .gw-needs ul{margin:0;padding:0;list-style:none}
#view.v3-look .gw-needs li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:12px 0;border-bottom:1px solid #D9D9D6}
#view.v3-look .gw-needs li>span{flex:1 1 20rem;min-width:0}
#view.v3-look .gw-needs li>b{font-weight:500}
#view.v3-look .gw-needs a{color:#000;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
/* small phones (320 px): nothing sticks out past the right edge (DS §14) */
@media (max-width:420px){
  #view.v3-look :is(.datenav,.prd-bar,.prd-bar-r,.pb-week,.qc-bar){flex-wrap:wrap;min-width:0}
  #view.v3-look .datenav{row-gap:8px}
  #view.v3-look .lim-t{display:block;max-width:100%;overflow-x:auto}
  #view.v3-look .lim-t input{min-width:0;width:100%}
  #view.v3-look .btn-split{display:inline-flex;max-width:100%;min-width:0}
  #view.v3-look .btn-split>.btn:first-child{min-width:0;white-space:normal;letter-spacing:.1em}
  #view.v3-look .prd-bar-r{max-width:100%}
}
#view.v3-look code{overflow-wrap:anywhere;word-break:break-all;white-space:normal}

/* ---------- 3. the pick list (audit 15, 18 Nov 2026; v3.js BB.pick) — one list in our design for every drop-down in the v3 modules ----------
   Proposed design-system addition (docs/COLOR_STANDARD.md "Pick list"): the closed box = a form field; the open list = white, square,
   1 px ink outline, rows 52 px over a #D9D9D6 rule, the chosen row ink + ✓ + 500, search above 8 choices. Touch / phone: a sheet from the bottom. */
.v3-pk-src{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0;pointer-events:none;overflow:hidden;clip-path:inset(50%)}
.v3-pk-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:0 10px 0 12px;border:1px solid #D9D9D6;border-radius:0;background:#fff;color:#000;
  font:inherit;font-size:max(16px,.9375rem);line-height:1.3;text-align:left;cursor:pointer;min-width:0;box-shadow:none}
.v3-pk-btn[hidden]{display:none}
.v3-pk-btn .v3-pk-t{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v3-pk-btn.ph .v3-pk-t{color:#4A4A4A}
.v3-pk-btn .v3-pk-c{flex:none;width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:1.75;transition:transform 100ms}
.v3-pk-btn[aria-expanded="true"]{border-color:#000}.v3-pk-btn[aria-expanded="true"] .v3-pk-c{transform:rotate(180deg)}
.v3-pk-btn:focus-visible{outline:1.5px solid #000;outline-offset:0}
.v3-pk-btn:disabled{background:#F0F0EF;color:#4A4A4A;cursor:not-allowed}
@media (pointer:coarse){ .v3-pk-btn{min-height:48px} }
.v3-pk-wrap{position:fixed;inset:0;z-index:3000;pointer-events:none;font-family:var(--font-family,inherit);color:#000}
.v3-pk-wrap>*{pointer-events:auto}
.v3-pk{position:fixed;display:flex;flex-direction:column;background:#fff;border:1px solid #000;box-shadow:none;overflow:hidden;font-size:1rem}
.v3-pk-h{display:none}
.v3-pk-s{padding:8px;border-bottom:1px solid #D9D9D6}
.v3-pk-q{width:100%;min-height:44px;padding:0 12px;border:1px solid #D9D9D6;border-radius:0;background:#fff;color:#000;font:inherit;font-size:max(16px,1rem)}
.v3-pk-q:focus-visible{outline:1.5px solid #000;outline-offset:0}
.v3-pk-l{flex:1 1 auto;min-height:0;margin:0;padding:0;list-style:none;overflow:auto;overscroll-behavior:contain;outline:none}
.v3-pk-o{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:6px 16px;border-bottom:1px solid #D9D9D6;cursor:pointer;line-height:1.35}
.v3-pk-o:last-child{border-bottom:0}
.v3-pk-o svg{flex:none;width:1.125rem;height:1.125rem;fill:none;stroke:#000;stroke-width:2}
.v3-pk-o.on{font-weight:500;color:#000}
.v3-pk-o.act{background:#F0F0EF}
@media (hover:hover){ .v3-pk-o:not([aria-disabled="true"]):hover{background:#AFCDD7;transition:background-color 100ms} }
.v3-pk-o[aria-disabled="true"]{color:#4A4A4A;cursor:not-allowed}
.v3-pk-g{padding:14px 16px 6px;border-bottom:1px solid #000;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:#000;background:#fff;position:sticky;top:0}
.v3-pk-none{padding:16px;color:#4A4A4A}
.v3-pk-more{min-height:48px;margin:0;padding:0 16px;border:0;border-top:1px solid #D9D9D6;background:#fff;color:#000;font:inherit;font-size:.8125rem;letter-spacing:.1em;text-transform:uppercase;text-align:left;cursor:pointer}
.v3-pk-more:focus-visible,.v3-pk-x:focus-visible{outline:2px solid #000;outline-offset:-2px}
/* touch screens and phones: a sheet from the bottom, with its own title and ✕ */
.v3-pk-dim{position:fixed;inset:0;background:rgba(0,0,0,.35);animation:v3pkfade 250ms ease-out}
.v3-pk-wrap.sheet .v3-pk{left:0;right:0;bottom:0;max-height:min(80vh,40rem);border-width:1px 0 0;padding-bottom:env(safe-area-inset-bottom);animation:v3pkup 250ms ease-out}
@media (min-width:600px){ .v3-pk-wrap.sheet .v3-pk{left:50%;right:auto;width:min(36rem,100vw);transform:translateX(-50%);border-width:1px 1px 0;animation-name:v3pkupc} }
.v3-pk-wrap.sheet .v3-pk-h{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:0 4px 0 16px;border-bottom:1px solid #000;font-size:.8125rem;letter-spacing:.1em;text-transform:uppercase}
.v3-pk-x{width:48px;height:48px;border:0;background:none;color:#000;font-size:1.125rem;cursor:pointer}
@keyframes v3pkup{from{transform:translateY(100%)}to{transform:none}}
@keyframes v3pkupc{from{transform:translate(-50%,100%)}to{transform:translateX(-50%)}}
@keyframes v3pkfade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){ .v3-pk,.v3-pk-dim,.v3-pk-btn .v3-pk-c{animation:none!important;transition:none!important} }
/* audit 27: the Roast queue table in the v3 look — DS §6.7 row hover #AFCDD7, blue-text actions #4986A0 (= --c-info here) */
@media (hover:hover){#view.v3-look .rq-r:hover>td{background:#AFCDD7}}
#view.v3-look .rq-r.sel>td{background:#F0F0EF}
#view.v3-look .rq-r.open>td,#view.v3-look .rq-d>td{background:#F0F0EF}
#view.v3-look .rq-t td.rq-coffee .rq-nm b{font-weight:500}

/* Compare (Ryan 18 Nov): only the changed value is tinted — no whole-row tint, no blue hover / focus fill on the values (no double highlight) */
:is(#view.v3-look,body.v3look .sheet-wrap) table.rcd-cmp.rcd-cmp.rcd-cmp tbody tr:not(.rcd-sec)>:is(td,th[scope=row]),
:is(#view.v3-look,body.v3look .sheet-wrap) table.rcd-cmp.rcd-cmp.rcd-cmp tbody tr:not(.rcd-sec):hover>:is(td,th[scope=row]),
:is(#view.v3-look,body.v3look .sheet-wrap) table.rcd-cmp.rcd-cmp.rcd-cmp tbody tr:not(.rcd-sec):focus-within>:is(td,th[scope=row]){background:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) table.rcd-cmp.rcd-cmp.rcd-cmp tbody tr:not(.rcd-sec)>td.rcd-out.rcd-out,
:is(#view.v3-look,body.v3look .sheet-wrap) table.rcd-cmp.rcd-cmp.rcd-cmp tbody tr:not(.rcd-sec):hover>td.rcd-out.rcd-out,
:is(#view.v3-look,body.v3look .sheet-wrap) table.rcd-cmp.rcd-cmp.rcd-cmp tbody tr:not(.rcd-sec):focus-within>td.rcd-out.rcd-out{background:var(--c-warn-soft)}   /* (td.rcd-out twice: outweighs the white rule's :is(td,th[scope=row])) */
/* Compare on a phone (under 600 px): no sideways table — a picker row for the reference, then one block per row, one line per roast */
.rcd-pick,.rcd-stack{display:none}
@media (max-width:599px){
  .rcd-cmp-sheet .rcd-cmpwrap{display:none}
  .rcd-pick{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:12px 0}
  .rcd-pick>.hint{flex-basis:100%}
  .rcd-pk{min-height:44px;padding:0 12px;border:1px solid #000;background:#fff;color:#000;border-radius:0;font:inherit;font-size:.8125rem;cursor:pointer}
  .rcd-pk.on{background:#000;color:#fff}
  .rcd-pk small{font-size:.75rem;opacity:.8}
  .rcd-pk:focus-visible{outline:2px solid #000;outline-offset:2px}
  .rcd-stack{display:block}
  :is(#view.v3-look,body.v3look .sheet-wrap) .rcd-sbg.v3-sec{margin:16px 0 4px}
  .rcd-sb{padding:8px 0;border-bottom:1px solid #D9D9D6}
  .rcd-sbh{margin:0 0 4px;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
  .rcd-sbh .rcd-difftag{display:inline}
  .rcd-sl{display:grid;grid-template-columns:4.5rem minmax(0,1fr);gap:8px;padding:4px 6px;overflow-wrap:break-word}
  .rcd-sl.rcd-out{background:var(--c-warn-soft)}
  .rcd-slb{color:#4A4A4A;font-size:.75rem;padding-top:2px}
  .rcd-slb small{display:block;font-size:.6875rem;text-transform:uppercase;letter-spacing:.08em}
  .rcd-slv .rcd-lot{display:block;white-space:normal}
}

/* ---------- 4. the page grammar (Hub v3 #41 · V3 Fix 2, 19 Nov 2026) — DIRECTION B (Ryan 18 Nov: design system + three beanbrothers.co.kr ideas) ----------
   Every screen in one order: meta line → headline sentence → ONE toolbar → ONE summary sentence → the list or table → paging.
   The shared parts, used by class name (no inline styles in the screens):
     .v3-ic   line icons, 1.5 px stroke (never text glyphs)        .v3-tbw > .v3-tb > .v3-cell   toolbar: equal cells between two black rules
     .v3-tiles > .v3-tile   status tiles, the chosen one Soft blue  .v3-say   the summary sentence
     .v3-btn (--main black · outline · --soft) + .v3-link (text link) + .v3-dots (more)        .v3-barw > .v3-bar   tiles left, actions right
     .v3-t    table: number columns hug their numbers (#46)       tr.v3-grp   group row        .v3-plr   phone list rows
     .v3-side side panel from the right (DS §5.5) + .v3-fsec / .v3-fg / .v3-f form parts + .v3-lr coffee lines
   Type: weight 400, 500 only for figures and the bold start of the sentence; controls 15–16 px sentence case; UPPERCASE only for
   section eyebrows, the tab row and table heads. Touch folds, it doesn't grow: a narrow box folds filters / actions, nothing wraps. */
.v3-ic{display:inline-block;flex:none;width:1rem;height:1rem;background-color:currentColor;-webkit-mask:var(--icu) center/contain no-repeat;mask:var(--icu) center/contain no-repeat;vertical-align:-.1875em}
.v3-ic--down{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.v3-ic--right{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E")}
.v3-ic--cal{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5'/%3E%3Cpath d='M3 9.5h18M8 3v3M16 3v3'/%3E%3C/svg%3E")}
.v3-ic--search{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E")}
.v3-ic--more{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3C/svg%3E")}
.v3-ic--dl{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m-5-5 5 5 5-5M5 20h14'/%3E%3C/svg%3E")}
.v3-ic--up{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V9m-5 5 5-5 5 5M5 4h14'/%3E%3C/svg%3E")}
.v3-ic--plus{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.v3-ic--x{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E")}
.v3-ic--set{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E")}
/* a hidden part keeps its id (scripts and the bulk bar still find it), it is only not drawn */
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-gone{display:none!important}

/* the toolbar: equal cells between two black rules (the website's nav); the controls inside lose their own frame */
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-tbw{container:v3tb / inline-size;margin:0 0 16px}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-tb{display:flex;align-items:stretch;min-width:0;border-top:1px solid #000;border-bottom:1px solid #000;background:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:8px;min-height:52px;padding:0 16px;border-right:1px solid #D9D9D6;font-size:1rem;line-height:1.3;white-space:nowrap}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell:last-child{border-right:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell--2{flex-grow:1.8}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell--fit{flex:0 0 auto;gap:20px}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell--dots{flex:0 0 auto;padding:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell:focus-within{outline:1.5px solid #000;outline-offset:-1.5px}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell :focus-visible{outline:none}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell select{width:100%;min-height:50px;border:0;font-size:1rem}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell .v3-pk-btn{min-height:50px;padding:0;border:0;background:transparent;font-size:1rem}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell .rt-dr{flex:1 1 auto;min-width:0;min-height:50px;padding:0;border:0;border-radius:0;background:transparent}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell .rt-dr-b{flex:1 1 auto;min-width:0;min-height:50px;justify-content:space-between;padding:0;font:inherit;font-size:1rem;font-weight:400;color:#000}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell .rt-dr-b>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell .rt-dr-b .rt-ic{display:none}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell .rt-dr-b::after{content:"";flex:none;width:1rem;height:1rem;background:currentColor;--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");-webkit-mask:var(--icu) center/contain no-repeat;mask:var(--icu) center/contain no-repeat}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell .gfind{flex:1 1 auto;flex-direction:row-reverse;max-width:none!important;min-height:50px;padding:0;border:0;background:transparent}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell .gfind input{min-height:48px;font-size:1rem}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell .gfind input::placeholder{color:#4A4A4A}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell .gfind span svg{width:1rem;height:1rem;color:#4A4A4A;stroke-width:1.5}
/* iPad and narrower boxes: the exports fold into the more menu */
@container v3tb (max-width:899px){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell--ex{display:none} }
/* the date cell is as wide as its range, so both dates always show; the other cells share the rest */
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell--date{flex:0 0 auto}
/* phone: the cells stack — two pick lists side by side, then search across the full width */
@container v3tb (max-width:599px){
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-tb{flex-wrap:wrap}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell{padding:0 12px}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell--search{order:9;flex:1 0 100%;border-right:0;border-top:1px solid #D9D9D6}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell--date{order:-1;flex:1 0 100%;border-right:0;border-bottom:1px solid #D9D9D6}
}
/* text link (exports, help) and the more button */
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-link{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0;border:0;background:none;color:#111;font:inherit;font-size:.9375rem;font-weight:400;letter-spacing:0;text-transform:none;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;cursor:pointer}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-link:focus-visible{outline:2px solid #000;outline-offset:2px}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-dots{display:inline-grid;place-items:center;width:52px;min-height:52px;height:100%;padding:0;border:0;background:none;color:#000;cursor:pointer}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-dots .v3-ic{width:1.25rem;height:1.25rem}
@media (hover:hover){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-dots:hover{background:#F0F0EF} }
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-dots:focus-visible{outline:2px solid #000;outline-offset:-2px}
@media (pointer:coarse){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-link{min-height:48px} }

/* status tiles: one row, the chosen one Soft blue (DS §6.5 Soft), the count beside the word */
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-tiles{display:flex;min-width:0;margin:0 0 16px}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-tile{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;margin:0 0 0 -1px;padding:0 18px;border:1px solid #D9D9D6;border-radius:0;
  background:#fff;color:#111;font:inherit;font-size:1rem;font-weight:400;line-height:1.25;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color 100ms}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-tile:first-child{margin-left:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-tile .v3-tn{font-variant-numeric:tabular-nums}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-tile.on{z-index:1;background:#AFCDD7;border-color:#AFCDD7;color:#000}
@media (hover:hover){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-tile:not(.on):hover{background:#F0F0EF;color:#000} }
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-tile:focus-visible{z-index:2;outline:2px solid #000;outline-offset:2px}
@media (pointer:coarse){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-tile{min-height:48px} }
@container (max-width:599px){
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-tiles .v3-tile{flex:1 1 0;min-width:0;flex-direction:column;gap:0;padding:6px 4px;font-size:.9375rem;white-space:normal;text-align:center}
}
/* the summary: one sentence, its start in 500 */
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-say{margin:0 0 16px;font-size:1rem;line-height:1.5;color:#111;font-variant-numeric:tabular-nums}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-say b{font-weight:500;color:#000}

/* buttons: black = the one main action, outline = compact tools, Soft = the next useful action; one size: 36 px with a mouse, 48 on touch */
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;margin:0;padding:0 16px;border:1px solid #000;border-radius:0;
  background:#fff;color:#000;font:inherit;font-size:.9375rem;font-weight:400;line-height:1.2;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;box-shadow:none;cursor:pointer;transition:opacity 100ms,background-color 100ms}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-btn.v3-btn--main{background:#000;border-color:#000;color:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-btn.v3-btn--soft{background:#AFCDD7;border-color:#AFCDD7;color:#000}
@media (hover:hover){
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-btn:not(.v3-btn--main):not(.v3-btn--soft):not(:disabled):hover{background:#F0F0EF}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-btn.v3-btn--main:not(:disabled):hover{background:#111;border-color:#111}
}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-btn:active{opacity:.85}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-btn:disabled{background:#F0F0EF;border-color:#D9D9D6;color:#4A4A4A;cursor:not-allowed}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-btn:focus-visible{outline:2px solid #000;outline-offset:2px}
@media (pointer:coarse){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-btn{min-height:48px} }
/* a list screen's bar with no date / search: status tiles on the left, the main action + More on the right; a phone puts the actions above the tiles */
#view.v3-look .v3-barw{container:v3bar / inline-size;margin:0 0 16px}
#view.v3-look .v3-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
#view.v3-look .v3-bar>.v3-tiles{margin:0;min-width:0}
#view.v3-look .v3-acts{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none}
#view.v3-look .v3-bar .v3-btn{min-height:44px}   /* one height in the row: the actions match the tiles (48 on touch) */
@media (pointer:coarse){ #view.v3-look .v3-bar .v3-btn{min-height:48px} }
/* the tiles and the actions need ~730 px side by side: an iPad upright (and a phone) puts the actions above the tiles, the tiles share the full width */
@container v3bar (max-width:759px){
  #view.v3-look .v3-bar{flex-direction:column-reverse;align-items:stretch;gap:12px}
  #view.v3-look .v3-bar>.v3-tiles .v3-tile{flex:1 1 auto;min-width:0;padding:0 8px;white-space:normal;text-align:center}
}
@container v3bar (max-width:599px){
  #view.v3-look .v3-bar>.v3-tiles .v3-tile{flex:1 1 0;flex-direction:column;gap:0;padding:6px 4px;font-size:.9375rem}
}

/* tables (#46): number columns hug their numbers, the text column takes the rest — from 600 px; the phone cards keep their own layout */
@container (min-width:600px){
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-t :is(th,td).num{width:1%;white-space:nowrap;text-align:right}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-t :is(th,td).v3-fill{width:auto}
}
/* group row inside a table: fill, eyebrow type, no hover; a group that folds holds one button (the chevron turns when open) */
:is(#view.v3-look,body.v3look .sheet-wrap) tbody tr.v3-grp>td{padding:10px 12px;background:#F0F0EF;border-bottom:1px solid #D9D9D6;font-size:.75rem;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:#111;white-space:normal}
:is(#view.v3-look,body.v3look .sheet-wrap) tbody tr.v3-grp>td:has(>.v3-grpb){padding:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-grpb{display:flex;align-items:center;gap:4px;width:100%;min-height:40px;padding:0 12px;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-align:left;cursor:pointer}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-grpb .v3-ic{transition:transform 180ms}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-grpb[aria-expanded="true"] .v3-ic{transform:rotate(90deg)}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-grpb:focus-visible{outline:2px solid #000;outline-offset:-2px}
@media (hover:hover){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-grpb:hover{color:#000;text-decoration:underline;text-underline-offset:3px} }
@media (pointer:coarse){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-grpb{min-height:48px} }
@media (prefers-reduced-motion:reduce){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-grpb .v3-ic{transition:none} }
/* rows of a folded group stay out of every layout (the phone list rows set their own display) */
:is(#view.v3-look,body.v3look .sheet-wrap) tr[data-grp][hidden]{display:none!important}
/* a toolbar cell that only matters when the exports are folded (the more menu of a screen with nothing else in it) */
@container v3tb (min-width:900px){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-cell--nar{display:none} }
/* a text column that should not take the spare width either (dates, initials) */
@container (min-width:600px){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-t :is(th,td).v3-hug{width:1%;white-space:nowrap} }
/* the block under a list (deleted batches, reference roasts) */
#view.v3-look .v3-after{margin-top:24px}
/* a row's chevron is a line icon */
#view.v3-look .rcd-chev .v3-ic{width:1rem;height:1rem;color:#4A4A4A}

/* phone list rows (DS §6.6): name + status, one grey line of figures, chevron — the same table rows, so ticks, Compare and the opened row keep working */
#view.v3-look :is(th,td).v3-pl{display:none}
@container (max-width:599px){
  #view.v3-look .v3-plr .tablewrap{border:0}
  #view.v3-look .v3-plr tr.rcd-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:4px;margin:0;padding:10px 0;border:0;border-bottom:1px solid #D9D9D6;border-radius:0;background:#fff}
  #view.v3-look .v3-plr tr.rcd-row>td{display:none}
  #view.v3-look .v3-plr tr.rcd-row>:is(td.rcd-c-tick,td.v3-pl,td.rcd-c-end){position:static;display:flex;align-items:center;padding:0;border:0;background:none}
  #view.v3-look .v3-plr tr.rcd-row>td.rcd-c-tick{width:auto}
  #view.v3-look .v3-plr tr.rcd-row>td.v3-pl{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:2px}
  #view.v3-look .v3-plr td.v3-pl::before{display:none}
  #view.v3-look .v3-plr .v3-pl-t{grid-column:1;font-size:1.0625rem;line-height:1.35;overflow-wrap:anywhere}
  #view.v3-look .v3-plr .v3-pl-s{grid-column:1;font-size:.875rem;line-height:1.4;color:#4A4A4A;font-variant-numeric:tabular-nums}
  #view.v3-look .v3-plr .v3-pl-c{grid-column:2;grid-row:1 / 3;align-self:center}
  #view.v3-look .v3-plr tr.rcd-det{margin:0;padding:0;border:0;border-bottom:1px solid #D9D9D6;border-radius:0}
  #view.v3-look .v3-plr tr.v3-grp{display:block;margin:0;padding:0;border:0;border-radius:0;background:none}
  #view.v3-look .v3-plr tr.v3-grp>td{position:static;display:block;padding:10px 12px}
  #view.v3-look .v3-plr tr.v3-grp>td:has(>.v3-grpb){padding:0}
  #view.v3-look .v3-plr tr.v3-grp>td::before{display:none}
}

/* side panel (DS §5.5): slides in from the right, 960 px (the whole width below that), white, 1 px ink rule on the left edge,
   title + close over an ink rule, sticky footer bottom-right (Cancel outline + the action black). Phone: full screen. */
body.v3look .sheet-wrap.v3-side{padding:0;justify-content:flex-end;align-items:stretch}
body.v3look .sheet-wrap.v3-side>.sheet{width:min(960px,100vw);height:100vh;height:100dvh;max-height:none;border:0;border-left:1px solid #000;border-radius:0;box-shadow:none;animation:v3side 250ms ease-out}
@keyframes v3side{from{transform:translateX(24px);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){ body.v3look .sheet-wrap.v3-side>.sheet{animation:none} }
body.v3look .v3-side .sheet-head{align-items:center;border-bottom:1px solid #000}
body.v3look .v3-side .sheet-head h2{margin:0;font-size:1.25rem;font-weight:400;letter-spacing:0}
body.v3look .v3-side .v3-x{display:inline-grid;place-items:center;flex:none;width:48px;height:48px;min-width:48px;padding:0;border:0;background:none;color:#000;cursor:pointer}
body.v3look .v3-side .v3-x .v3-ic{width:1.25rem;height:1.25rem}
body.v3look .v3-side .v3-x:focus-visible{outline:2px solid #000;outline-offset:-2px}
body.v3look .v3-side .sheet-foot{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #000;box-shadow:none}
body.v3look .v3-side .sheet-foot>.btn{flex:0 0 auto;min-height:48px}
body.v3look .v3-side .v3-intro{margin:0 0 24px;font-size:.9375rem;color:#111}
/* form parts: a section = eyebrow + ink rule, no box; one grid of 4 columns (2 in a narrow panel); labels above as a 12 px eyebrow, inputs 48 px */
body.v3look .sheet-wrap .v3-fsec{margin:0 0 32px}
body.v3look .sheet-wrap .v3-fsec>.v3-sec{margin-bottom:16px}
body.v3look .sheet-wrap .v3-fg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end}
body.v3look .sheet-wrap .v3-f{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}
body.v3look .sheet-wrap .v3-f--2{grid-column:span 2}
body.v3look .sheet-wrap .v3-f--all{grid-column:1 / -1}
body.v3look .sheet-wrap :is(.v3-f>label:not(.gp-drop),.v3-fl){display:block;margin:0;font-size:.75rem;font-weight:400;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:#000}
body.v3look .sheet-wrap .v3-opt{margin-left:6px;font-size:.75rem;letter-spacing:0;text-transform:none;color:#4A4A4A}
body.v3look .sheet-wrap .v3-fh{display:block;margin:0;font-size:.8125rem;line-height:1.4;letter-spacing:0;text-transform:none;color:#4A4A4A}
body.v3look .sheet-wrap .v3-f :is(input,select){width:100%;min-height:48px;padding:0 12px;font-size:1rem}
body.v3look .sheet-wrap .v3-f .v3-pk-btn{min-height:48px}
@container (max-width:699px){ body.v3look .sheet-wrap .v3-fg{grid-template-columns:repeat(2,minmax(0,1fr))} }
/* coffee lines: one table (a grid per row, so it can fold): Coffee (as printed) · Our green bean · Bags · Bag kg · Net kg · Price / kg · Total · More;
   Ref, ICO, Origin, Contract and Crop year open under the row; totals in a footer row under a 2 px ink rule (no coloured bar) */
body.v3look .sheet-wrap .v3-lr{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,2fr) 4.25rem 4.5rem 5.5rem 6rem 7rem 7.25rem;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #D9D9D6}
body.v3look .sheet-wrap .v3-lr--h{align-items:end;padding:0 0 8px;border-bottom:1px solid #000}
body.v3look .sheet-wrap .v3-lr--h>span{min-width:0;font-size:.6875rem;line-height:1.35;letter-spacing:.1em;text-transform:uppercase;color:#4A4A4A}
body.v3look .sheet-wrap .v3-lr--h>span.num,body.v3look .sheet-wrap .v3-lr--f>.num{text-align:right}
body.v3look .sheet-wrap .v3-lr--h .v3-fh{margin-top:2px;font-size:.75rem}
body.v3look .sheet-wrap .v3-lc{display:flex;flex-direction:column;gap:4px;min-width:0}
body.v3look .sheet-wrap .v3-lcl{display:none;font-size:.75rem;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:#4A4A4A}
body.v3look .sheet-wrap .v3-lr :is(input,select){width:100%;min-width:0;min-height:48px;padding:0 10px;font-size:1rem}
body.v3look .sheet-wrap .v3-lr .v3-pk-btn{min-height:48px}
body.v3look .sheet-wrap .v3-lc.num input{text-align:right}
body.v3look .sheet-wrap .v3-lc.v3-bad :is(input,.v3-pk-btn){border-color:#B3261E;box-shadow:inset 0 0 0 1px #B3261E}
body.v3look .sheet-wrap .v3-le{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0 2px;min-width:0}
body.v3look .sheet-wrap .v3-le .v3-link{min-height:48px;padding:0 6px}
body.v3look .sheet-wrap .v3-le .v3-x{display:inline-grid;place-items:center;width:40px;height:48px;padding:0;border:0;background:none;color:#000;cursor:pointer}
body.v3look .sheet-wrap .v3-le .v3-x:focus-visible{outline:2px solid #000;outline-offset:-2px}
body.v3look .sheet-wrap .v3-le .badge{white-space:nowrap}
body.v3look .sheet-wrap .v3-lmore{grid-column:1 / -1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:4px 0}
body.v3look .sheet-wrap .v3-lmore[hidden]{display:none}
body.v3look .sheet-wrap .v3-lmore .v3-lcl{display:block}
body.v3look .sheet-wrap .v3-lmore .cy-read{font-size:.75rem;font-style:normal;color:#4A4A4A}
body.v3look .sheet-wrap .v3-lr--f{align-items:baseline;border-top:2px solid #000;border-bottom:0;font-weight:500;font-variant-numeric:tabular-nums}
body.v3look .sheet-wrap .v3-lr--f>span{min-width:0;white-space:nowrap}
body.v3look .sheet-wrap .v3-lsum{margin:4px 0 0;font-size:.9375rem;color:#111}
body.v3look .sheet-wrap .v3-ladd{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0 0}
@container (max-width:859px){
  body.v3look .sheet-wrap .v3-lr--h{display:none}
  body.v3look .sheet-wrap .v3-lr{grid-template-columns:repeat(10,minmax(0,1fr));row-gap:10px;padding:16px 0}
  body.v3look .sheet-wrap .v3-lr>.v3-lc--name{grid-column:span 5}
  body.v3look .sheet-wrap .v3-lr>.v3-lc.num{grid-column:span 2}
  body.v3look .sheet-wrap .v3-lr>.v3-le{grid-column:1 / -1}
  body.v3look .sheet-wrap .v3-lcl{display:block}
  body.v3look .sheet-wrap .v3-lr--f{display:flex;flex-wrap:wrap;gap:4px 16px;padding:12px 0}
  body.v3look .sheet-wrap .v3-lr--f>span:empty{display:none}
  body.v3look .sheet-wrap .v3-lmore{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container (max-width:479px){
  body.v3look .sheet-wrap .v3-lr{grid-template-columns:repeat(6,minmax(0,1fr))}
  body.v3look .sheet-wrap .v3-lr>.v3-lc--name{grid-column:1 / -1}
  body.v3look .sheet-wrap .v3-lr>.v3-lc.num{grid-column:span 2}
  body.v3look .sheet-wrap .v3-lr>.v3-lc.num.v3-lc--w{grid-column:span 3}
  body.v3look .sheet-wrap .v3-lmore{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* files: one plain square box to drop on or tap (no dashed frame, no round corners) */
body.v3look .sheet-wrap .gp-drop{display:block;min-height:48px;padding:14px 16px;border:1px solid #D9D9D6;border-radius:0;background:#fff;text-align:center;cursor:pointer}
body.v3look .sheet-wrap .gp-drop.on{background:#AFCDD7}
body.v3look .sheet-wrap .gp-drop:focus-within{outline:1.5px solid #000;outline-offset:0}
/* a hidden form part stays hidden (the grid / flex rules above would draw it) */
body.v3look .sheet-wrap :is(.v3-f,.v3-fg>*)[hidden]{display:none!important}
body.v3look .sheet-wrap .v3-att{white-space:nowrap}
body.v3look .sheet-wrap .gp-drop .v3-x{width:36px;height:36px;vertical-align:middle}
@media (pointer:coarse){ body.v3look .sheet-wrap .gp-drop .v3-x{width:48px;height:48px} }
/* a block on a list screen (What we owe) */
#view.v3-look .v3-blk{margin:0 0 16px}
/* the one-day date box (rowtools) in a form field: the same 48 px square box as the inputs, 400 */
body.v3look .sheet-wrap .v3-f .rt-d1{min-height:48px;padding:0 12px;border:1px solid #D9D9D6;border-radius:0;font-weight:400;font-size:1rem;color:#000}
body.v3look .sheet-wrap .v3-f .rt-d1:focus-visible{outline:1.5px solid #000;outline-offset:0;border-color:#000}
/* a folded block's own marker is a line icon (the browser's triangle is a text glyph) */
#view.v3-look details.v3-after>summary{list-style:none;display:flex;align-items:baseline;gap:8px;cursor:pointer}
#view.v3-look details.v3-after>summary::-webkit-details-marker{display:none}
#view.v3-look details.v3-after>summary::before{content:"";flex:none;align-self:center;width:1rem;height:1rem;background:currentColor;transition:transform 180ms;
  --icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E");-webkit-mask:var(--icu) center/contain no-repeat;mask:var(--icu) center/contain no-repeat}
#view.v3-look details.v3-after[open]>summary::before{transform:rotate(90deg)}
@media (prefers-reduced-motion:reduce){ #view.v3-look details.v3-after>summary::before{transition:none} }
/* iPad: the Records table fits without dragging — Details folds away below 900 px (shown whole in the opened row; By already folds below 1100) */
@container (min-width:600px) and (max-width:899px){ #view.v3-look .v3-plr :is(th,td).rcd-c-why{display:none} }
/* #46: a long text cell (note · why) wraps inside its column, so the table fits its box and the number columns stay together (DS §6.7.1) */
#view.v3-look .v3-t td:has(>.wrap){white-space:normal;min-width:12rem}
#view.v3-look .v3-t td>.wrap{white-space:normal;overflow-wrap:anywhere}

/* ── V3 Fix 7 (Ryan 19 Nov 2026) ─────────────────────────────────────────────────────────────────────────────────────────────
   #54 New purchase panel: wider by window — 1080 px from a 1366 px window, 960 from 1200 to 1365, 880 on an iPad sideways, the whole
   screen below that. At 1080 the coffee table's number columns get 6rem (96 px) each; "Coffee (as printed)" takes the rest. */
body.v3look .sheet-wrap.v3-side.v3-side--wide>.sheet{width:min(880px,100vw)}
@media (min-width:1200px){ body.v3look .sheet-wrap.v3-side.v3-side--wide>.sheet{width:960px} }
@media (min-width:1366px){ body.v3look .sheet-wrap.v3-side.v3-side--wide>.sheet{width:1080px} }
@container (min-width:960px){
  body.v3look .sheet-wrap.v3-side--wide .v3-lr{grid-template-columns:minmax(0,1fr) 14rem repeat(5,6rem) 6rem}
  body.v3look .sheet-wrap.v3-side--wide .v3-lr--f{grid-template-columns:minmax(0,1fr) 14rem repeat(5,6rem) 6rem}
}
body.v3look .sheet-wrap .v3-lc.v3-bad .gbp-box{border-color:#B3261E;box-shadow:inset 0 0 0 1px #B3261E}

/* #54b the green-bean picker (greenbuy.js beanPick): a 48 px box with two lines (ID-Tag · Cropster name / Hub name · kg, grey);
   the list is at least 420 px wide, anchored left, search on top, origin eyebrows, 52 px two-line rows, the chosen one Soft blue + ✓,
   + New green bean pinned at the bottom. A phone gets a sheet from the bottom. */
.gbp-box{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:48px;margin:0;padding:3px 10px;border:1px solid #D9D9D6;border-radius:0;background:#fff;color:#000;font:inherit;text-align:left;cursor:pointer}
.gbp-box:disabled{background:#F0F0EF;color:#4A4A4A;cursor:not-allowed}
.gbp-box:focus-visible{outline:1.5px solid #000;outline-offset:0;border-color:#000}
.gbp-box>.v3-ic{color:#000}
.gbp-bt{display:flex;flex-direction:column;justify-content:center;min-width:0}
.gbp-1{min-width:0;overflow:hidden;font-size:.9375rem;line-height:1.3;white-space:nowrap;text-overflow:ellipsis}
.gbp-2{min-width:0;overflow:hidden;font-size:.8125rem;line-height:1.3;color:#4A4A4A;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.gbp-ph{font-size:1rem;color:#4A4A4A}
.gbp-wrap{position:fixed;inset:0;z-index:3000;pointer-events:none;color:#000}
.gbp{position:fixed;display:flex;flex-direction:column;min-height:0;pointer-events:auto;background:#fff;border:1px solid #000;box-shadow:none;animation:v3side 180ms ease-out}
.gbp-s{flex:none;display:flex;align-items:center;gap:8px;padding:0 0 0 12px;border-bottom:1px solid #000}
.gbp-s>.v3-ic{color:#4A4A4A}
.gbp-q{flex:1 1 auto;min-width:0;min-height:48px;padding:0 12px 0 0;border:0;background:transparent;font:inherit;font-size:1rem;color:#000}
.gbp-q:focus{outline:none}
.gbp-s:focus-within{box-shadow:inset 0 -1px 0 #000}
.gbp-x{display:inline-grid;place-items:center;flex:none;width:48px;height:48px;padding:0;border:0;background:none;color:#000;cursor:pointer}
.gbp-l{flex:1 1 auto;min-height:0;margin:0;padding:0;overflow:auto;list-style:none;overscroll-behavior:contain}
.gbp-g{padding:14px 12px 6px;font-size:.75rem;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:#4A4A4A}
.gbp-o{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:4px 12px;border-bottom:1px solid #D9D9D6;cursor:pointer}
.gbp-o.act{background:#F0F0EF}
.gbp-o.on{background:#AFCDD7}
.gbp-o svg{flex:none;width:1.125rem;height:1.125rem;fill:none;stroke:#000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover){ .gbp-o:not(.on):hover{background:#F0F0EF} }
.gbp-none{padding:16px 12px;font-size:.9375rem;color:#4A4A4A}
.gbp-new{flex:none;display:flex;align-items:center;gap:8px;min-height:52px;padding:0 12px;border:0;border-top:1px solid #000;background:#fff;color:#000;font:inherit;font-size:.9375rem;text-align:left;cursor:pointer}
@media (hover:hover){ .gbp-new:hover{background:#F0F0EF} }
.gbp-new:focus-visible,.gbp-x:focus-visible{outline:2px solid #000;outline-offset:-2px}
.gbp-wrap.sheet{pointer-events:auto}
.gbp-dim{position:absolute;inset:0;background:rgba(0,0,0,.32)}
.gbp-wrap.sheet .gbp{left:0;right:0;bottom:0;max-height:85vh;max-height:85dvh;border-width:1px 0 0;animation:none}
@media (prefers-reduced-motion:reduce){ .gbp{animation:none} }

/* #50 Roaster board batch row header: line 1 number · swatch · coffee · PR (link) · "from a lot on QC hold"; line 2 grey facts. The Cropster
   note + a quiet Copy sit in the middle of the header row when the row is wide (desktop); on an iPad / phone they take their own line. */
.v3-ic--copy{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12'/%3E%3Cpath d='M16 8V4H4v12h4'/%3E%3C/svg%3E")}
/* (the row is not a container: the step strip keeps reading the view width) */
#view.v3-look .prd-bt1{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-width:0}
#view.v3-look .prd-bt1>b{font-size:1.0625rem}
#view.v3-look .prd-bt1>.ui-status{align-self:center}
#view.v3-look .prd-crm{order:5;flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0;padding:8px 0 0;border-top:1px solid #D9D9D6}
#view.v3-look .prd-crl{font-size:.75rem;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:#4A4A4A}
#view.v3-look .prd-crm>b{font-weight:500;letter-spacing:.02em;color:#000}
#view.v3-look .prd-cpy{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:1px solid #D9D9D6;border-radius:0;background:#fff;color:#111;font:inherit;font-size:.8125rem;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}
#view.v3-look .prd-cpy .v3-ic{width:.9375rem;height:.9375rem}
@media (hover:hover){ #view.v3-look .prd-cpy:hover{border-color:#D9D9D6;color:#000} }
#view.v3-look .prd-cpy:focus-visible{outline:2px solid #000;outline-offset:2px}
@media (pointer:coarse){ #view.v3-look .prd-cpy{min-height:44px} }
#view.v3-look .prd-brow.fold .prd-crm{display:none}
@container (min-width:1000px){
  #view.v3-look .prd-bt{flex:0 1 auto}
  #view.v3-look .prd-crm{order:0;flex:0 1 auto;margin:0 auto;padding:0;border-top:0}
}
/* Setup › Blend recipes: a green-bean picker in an origin row takes the row's free width */
#view.v3-look .lotrow>.gbp-box,body.v3look .sheet-wrap .lotrow>.gbp-box{flex:1 1 auto;width:auto}
/* #53 Setup › Blend recipes: a Cropster-linked coffee's recipe, read-only */
#view.v3-look .rc-cr{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:10px 0 0;font-size:.9375rem}
#view.v3-look .rc-cr>b{font-weight:500}
#view.v3-look .rc-cr>.hint{flex:1 0 100%}

/* #51 Green beans › Stock › By bean: ▸ · ID-Tag · Name (Cropster style, Hub name + lots grey) · Available kg (≈ sacks) · Origin · ICO · Price / kg · ⋯;
   opened: a grey facts line + a lots table; a lot's details (third level) open only when its row is tapped. iPad: ICO and Invoice drop out.
   Phone: list rows (name + kg; ID-Tag · lots · avg price · sacks grey), lots as code + kg, then date · price · pallet + QC. */
#view.v3-look .gs7tb .v3-cell--search>.v3-ic{color:#4A4A4A}
#view.v3-look .gs7tb .v3-cell--search input[type="search"]{flex:1 1 auto;width:auto;min-width:0;min-height:48px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;font:inherit;font-size:1rem;color:#000}
#view.v3-look .gs7tb .v3-cell--search input::placeholder{color:#4A4A4A}
#view.v3-look .gs7tb .v3-cell--search input:focus{outline:none}
#view.v3-look .gs7tb .v3-cell--fit .v3-btn{min-height:40px}
#view.v3-look .gs7 table{width:100%;table-layout:auto}
#view.v3-look .gs7 :is(th,td):is(.ck58,.gs7-car,.gs7-tag,.gs7-act){width:1%;white-space:nowrap}
#view.v3-look .gs7 .gs7-car{padding-right:0}
#view.v3-look .gs7 .car58{color:#4A4A4A;transition:transform 180ms}
#view.v3-look .gs7 .gs7-tag{font-variant-numeric:tabular-nums}
#view.v3-look .gs7 .gs7-nm .bean-chip{margin:4px 8px 0 0;vertical-align:top}
#view.v3-look .gs7 .gs7-nt{display:inline-flex;flex-direction:column;gap:2px;min-width:0;max-width:calc(100% - 24px);vertical-align:top}
#view.v3-look .gs7 .gs7-nt>b{font-weight:500}
#view.v3-look .gs7 :is(.gs7-sub,.gs7-sk){display:block;font-size:.8125rem;font-weight:400;color:#4A4A4A}
#view.v3-look .gs7 .gs7-m{display:none}
#view.v3-look .gs7 :is(.gs7-o,.gs7-ico){white-space:nowrap}
#view.v3-look .gs7 tr.gs7-open>td{padding:8px 12px 16px 56px;background:#fff;white-space:normal}
#view.v3-look .gs7-facts{display:flex;flex-wrap:wrap;gap:4px 20px;margin:0 0 10px;font-size:.875rem;line-height:1.5;color:#4A4A4A}
#view.v3-look .gs7-facts b{font-weight:500;color:#000;font-variant-numeric:tabular-nums}
#view.v3-look .gs7-none{margin:0}
#view.v3-look .gs7-lots{width:100%;border-collapse:collapse}
#view.v3-look .gs7-lots th{padding:6px 8px;border-bottom:1px solid #000;font-size:.6875rem;font-weight:400;letter-spacing:.1em;text-transform:uppercase;text-align:left;color:#4A4A4A;white-space:nowrap}
#view.v3-look .gs7-lots td{padding:8px;border-bottom:1px solid #D9D9D6;vertical-align:middle;font-variant-numeric:tabular-nums}
#view.v3-look .gs7-lots :is(th,td).num{text-align:right;white-space:nowrap}
#view.v3-look .gs7-lots .gs7-act{width:1%;white-space:nowrap;text-align:right}
#view.v3-look .gs7-lot{cursor:pointer}
#view.v3-look .gs7-lot.open>td{border-bottom-color:transparent}
#view.v3-look .gs7-lot:focus-visible{outline:2px solid #000;outline-offset:-2px}
@media (hover:hover){ #view.v3-look .gs7-lot:hover>td{background:#F0F0EF} }
@media (pointer:coarse){ #view.v3-look .gs7-lot>td{height:48px} }
#view.v3-look .gs7-chev{margin-left:4px;color:#4A4A4A;transition:transform 180ms}
#view.v3-look .gs7-lot.open .gs7-chev{transform:rotate(90deg)}
#view.v3-look .gs7-first{font-size:.8125rem;color:#111;white-space:nowrap}
#view.v3-look .gs7-x>td{padding:6px 8px 10px;background:#F0F0EF;border-bottom:1px solid #D9D9D6}
#view.v3-look .gs7-x .gs7-facts{margin:0}
#view.v3-look .gs7-po>td{padding:8px}
/* Ryan 21 Nov: open POs get their own column after Price / kg (one chip per line); under the name only when the table is narrow */
#view.v3-look .gs7 td.gs7-poc .po71{flex-direction:column;align-items:flex-start}
#view.v3-look .gs7 .gs7-nm .po71{display:none}
@media (prefers-reduced-motion:reduce){ #view.v3-look :is(.gs7 .car58,.gs7-chev){transition:none} }
@container (max-width:899px){ #view.v3-look .gs7 .gs7-ico,#view.v3-look .gs7-lots .gs7-inv{display:none} }
@container (max-width:599px){
  #view.v3-look .gs7 thead{display:none}
  #view.v3-look .gs7 :is(td.gs7-tag,td.gs7-o,td.gs7-pr,td.gs7-car,td.gs7-poc,.gs7-sub,.gs7-sk){display:none}
  #view.v3-look .gs7 .gs7-nm .po71{display:flex}
  #view.v3-look .gs7 .gs7-m{display:block;font-size:.8125rem;line-height:1.4;color:#4A4A4A}
  #view.v3-look .gs7 tr.gs7-open>td{padding:8px 4px 14px}
  #view.v3-look .gs7-lots .gs7-d{display:none}
  #view.v3-look .gs7-lots td{padding:8px 4px}
}
/* #51: the table fits its box (the old Stock table kept a 1040 px minimum); an opened bean is white, its lot details Soft grey */
#view.v3-look .gs7.st58:not(.pr58)>.tablewrap>table{min-width:0;table-layout:auto}
#view.v3-look .gs7.st58 tr.c58>td{background:#fff}
@container (max-width:599px){ #view.v3-look .gs7 .tablewrap{overflow-x:hidden} #view.v3-look .gs7 td{padding-left:6px;padding-right:6px} }
/* fresh-review fixes: the lots table inside an opened bean fits its box (not the outer table's 760 px, no sticky head); the Name column wraps;
   the opened bean stays white on hover / focus (a tapped lot row must not turn the whole block Soft blue) */
#view.v3-look .gs7 table.gs7-lots{min-width:0;table-layout:auto}
#view.v3-look .gs7 .gs7-lots thead{position:static}
#view.v3-look .gs7 .gs7-lots :is(.gs7-lc,.gs7-inv){white-space:normal;overflow-wrap:anywhere}
#view.v3-look .gs7.st58 tbody td.gs7-nm{white-space:normal;min-width:12rem}
#view.v3-look .gs7.st58 tbody tr.gs7-open>td,#view.v3-look .gs7.st58 tbody tr.gs7-open:hover>td,#view.v3-look .gs7.st58 tbody tr.gs7-open:focus-within>td{background:#fff}
#view.v3-look .gs7.st58 tbody tr.gs7-x>td,#view.v3-look .gs7.st58 tbody tr.gs7-x:hover>td{background:#F0F0EF}
@container (max-width:599px){ #view.v3-look .gs7.st58 tbody td.gs7-nm{min-width:0} }
/* PO badges under a bean wrap (a long invoice no. must not widen the row); below 900 px the opened bean loses its indent so the lots table fits */
#view.v3-look .gs7 .po71 .badge{white-space:normal;overflow-wrap:anywhere}
@container (max-width:899px){
  #view.v3-look .gs7.st58 tbody tr.gs7-open>td{padding:8px 8px 14px}
  #view.v3-look .gs7 .gs7-lots :is(th,td){padding-left:6px;padding-right:6px}
}
/* the opened bean never widens the bean table: its box takes the row's width (width 0 + min-width 100 %), the lots table scrolls inside it if it must */
#view.v3-look .gs7 .gs7-ow{width:0;min-width:100%;overflow-x:auto}
@container (max-width:899px){
  #view.v3-look .gs7.st58 tbody td.gs7-nm{min-width:9rem}
  #view.v3-look .gs7.st58 tbody td:is(.num,.gs7-o){white-space:normal}
  #view.v3-look .gs7 .gs7-sk{white-space:normal}
  #view.v3-look .gs7 th.gs7-o,#view.v3-look .gs7 td.gs7-o{padding-left:8px}
}
@container (max-width:599px){
  #view.v3-look .gs7-lots .gs7-chev{display:none}
  #view.v3-look .gs7-lots .gs7-first{display:block}
  #view.v3-look .gs7-lots .gs7-lc>b{overflow-wrap:anywhere}
  #view.v3-look .gs7-lots .gs7-m .badge{white-space:nowrap}
}
#view.v3-look .gs7 .gs7-lots tr.gs7-po>td{white-space:normal}
#view.v3-look .gs7 .gs7-lots tr.gs7-po .badge{white-space:normal;overflow-wrap:anywhere}

/* ── V3 Fix 8 (Ryan 19 Nov 2026, Round 4) ────────────────────────────────────────────────────────────────────────────────────
   #62 "All" is always the first status filter (the screens also write it first; this keeps a new screen right): mark it data-all. */
:is(#view.v3-look,body.v3look .sheet-wrap) :is(.v3-tiles,.chips)>[data-all]{order:-1}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-tiles>.v3-tile[data-all]{margin-left:0}
/* #35 form rule in a centred pop-up (#60 pest visit …): .sheet-wrap.v3-form — square ✕, Cancel + the action bottom-right (not 50/50); phone full screen */
body.v3look .sheet-wrap.v3-form>.sheet{width:min(760px,100vw);border-radius:0;container-type:inline-size}
body.v3look .sheet-wrap.v3-form .sheet-head{align-items:center;border-bottom:1px solid #000;margin-bottom:20px}
body.v3look .sheet-wrap.v3-form .sheet-head h2{margin:0;font-size:1.25rem;font-weight:400;letter-spacing:0}
body.v3look .sheet-wrap.v3-form .v3-x{display:inline-grid;place-items:center;flex:none;width:48px;height:48px;padding:0;border:0;background:none;color:#000;cursor:pointer}
body.v3look .sheet-wrap.v3-form .v3-x .v3-ic{width:1.25rem;height:1.25rem}
body.v3look .sheet-wrap.v3-form .v3-x:focus-visible{outline:2px solid #000;outline-offset:-2px}
body.v3look .sheet-wrap.v3-form :is(.sheet-foot,form>.row:last-child){display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #000;box-shadow:none}
body.v3look .sheet-wrap.v3-form :is(.sheet-foot,form>.row:last-child)>.btn{flex:0 0 auto;min-width:120px;min-height:48px}
@media (max-width:599px){ body.v3look .sheet-wrap.v3-form>.sheet{width:100vw;height:100dvh;max-height:none;border:0} }
/* #59 Compare · GREEN: one row per bean — the label = Cropster-style name, ID-Tag (blue text) + blend % grey under it; each cell = kg · Hub lot ·
   price / kg packed close on fixed widths, so they line up row to row; the total row under a 2 px ink rule; Cropster ≠ weigh-in in the Waiting colour */
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-gv{display:inline-grid;grid-template-columns:5rem 8rem minmax(4.5rem,max-content);column-gap:.5rem;align-items:baseline;font-variant-numeric:tabular-nums}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-gk{text-align:right;font-weight:500;white-space:normal}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-gl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8125rem;color:#4A4A4A}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-gp{white-space:nowrap;font-size:.875rem}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-gv.t-warn :is(.rcd-gk,.rcd-gp){color:#111}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-gsub{display:block;margin-top:2px;font-size:.75rem;color:#4A4A4A}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-gtag{color:#111}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-cmp td:has(>.rcd-gv){max-width:none;white-space:nowrap}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-cmp tbody tr.rcd-gtot>:is(th,td){border-top:2px solid #000;font-weight:500}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-cmp tbody tr:has(+tr.rcd-gtot)>:is(th,td){border-bottom:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-cmp tbody th[scope=row]:has(>.rcd-gsub){min-width:13rem;color:#000;font-size:.9375rem;letter-spacing:0;text-transform:none}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-cmp tbody th[scope=row]:has(>.rcd-gsub)>.rcd-difftag{display:inline-block;margin-left:4px}
/* #58 the Show switch: on the right of the summary row, a square segmented control (the chosen one Soft blue); 36 px with a mouse, 48 on touch */
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-ansrow{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 24px;margin:0 0 .75rem}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-ansrow>.rcd-ans{flex:1 1 24rem;margin:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-show{display:inline-flex;align-items:center;flex:none}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-showl{margin-right:10px;font-size:.9375rem;color:#4A4A4A}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-show>button{display:inline-flex;align-items:center;gap:6px;min-height:36px;margin:0 0 0 -1px;padding:0 14px;border:1px solid #D9D9D6;border-radius:0;background:#fff;color:#111;font:inherit;font-size:.9375rem;letter-spacing:0;text-transform:none;cursor:pointer}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-show>button.on{position:relative;z-index:1;background:#AFCDD7;border-color:#AFCDD7;color:#000}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-show>button:focus-visible{position:relative;z-index:2;outline:2px solid #000;outline-offset:2px}
@media (hover:hover){ :is(#view.v3-look,body.v3look .sheet-wrap) .rcd-show>button:not(.on):hover{background:#F0F0EF;color:#000} }
@media (pointer:coarse){ :is(#view.v3-look,body.v3look .sheet-wrap) .rcd-show>button{min-height:48px} }
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-shown{font-variant-numeric:tabular-nums}
:is(#view.v3-look,body.v3look .sheet-wrap) .rcd-cmp tr.rcd-shownote>td{padding:6px .75rem;border-bottom:1px solid #D9D9D6;font-size:.8125rem;color:#4A4A4A;white-space:normal;max-width:none}
:is(#view.v3-look,body.v3look .sheet-wrap) p.rcd-shownote{margin:0 0 8px;font-size:.8125rem;color:#4A4A4A}
/* square segmented control (#55 Accept, #56 Week plan): one ink frame, cells split by light rules, the chosen one Soft blue; each cell a word
   in 500 + a grey line; a disabled cell grey ("not in service"). 52 px tall; a phone folds 4 cells into 2 × 2 and 3 into a column. */
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;border:1px solid #000;background:#fff}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg>button{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;min-width:0;min-height:52px;margin:0;padding:8px 12px;border:0;border-right:1px solid #D9D9D6;border-radius:0;background:#fff;color:#000;font:inherit;font-size:1rem;line-height:1.25;letter-spacing:0;text-transform:none;text-align:left;cursor:pointer;transition:background-color 100ms}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg>button:last-child{border-right:0}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg>button>b{font-weight:500}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg>button>small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8125rem;color:#4A4A4A;font-variant-numeric:tabular-nums}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg>button.on{background:#AFCDD7}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg>button.on>small{color:#111}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg>button:disabled{background:#F0F0EF;color:#4A4A4A;cursor:not-allowed}
:is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg>button:focus-visible{position:relative;z-index:1;outline:2px solid #000;outline-offset:-2px}
@media (hover:hover){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg>button:not(.on):not(:disabled):hover{background:#F0F0EF} }
@media (prefers-reduced-motion:reduce){ :is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg>button{transition:none} }
@container (max-width:479px){
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg--4{grid-auto-flow:row;grid-template-columns:1fr 1fr}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg--4>button:nth-child(2n){border-right:0}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg--4>button:nth-child(-n+2){border-bottom:1px solid #D9D9D6}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg--3{grid-auto-flow:row;grid-template-columns:1fr}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg--3>button{border-right:0;border-bottom:1px solid #D9D9D6}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg--3>button:last-child{border-bottom:0}
}
/* #55 Accept: 560 px, sections as eyebrow + ink rule, the summary one sentence (no tinted box) */
body.v3look .sheet-wrap.qa-wrap>.sheet{width:min(600px,100vw)}
body.v3look .sheet-wrap.qa-wrap .qa-meta{margin:0 0 4px;font-size:.875rem;color:#4A4A4A}
body.v3look .sheet-wrap.qa-wrap .qa-meta b{font-weight:500;color:#000}
body.v3look .sheet-wrap.qa-wrap .v3-sec{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:20px 0 10px}
body.v3look .sheet-wrap.qa-wrap .qa-secn{font-size:.75rem;letter-spacing:0;text-transform:none;color:#4A4A4A}
body.v3look .sheet-wrap.qa-wrap .qa-fg{grid-template-columns:1fr 1fr;margin-top:12px}
body.v3look .sheet-wrap.qa-wrap .qa-pick{margin-top:12px;max-width:16rem}
body.v3look .sheet-wrap.qa-wrap .qa-pick[hidden]{display:none}
body.v3look .sheet-wrap.qa-wrap .qa-sum{margin:20px 0 0;padding:12px 0 0;border-top:1px solid #D9D9D6;font-size:.9375rem;line-height:1.5;color:#111;font-variant-numeric:tabular-nums}
body.v3look .sheet-wrap.qa-wrap .qa-sum b{font-weight:500;color:#000}
@container (max-width:479px){ body.v3look .sheet-wrap.qa-wrap .qa-fg{grid-template-columns:1fr} body.v3look .sheet-wrap.qa-wrap .qa-pick{max-width:none} }
@media (max-width:599px){ body.v3look .sheet-wrap.v3-form :is(.sheet-foot,form>.row:last-child)>.btn{flex:1 1 0} }
/* #63 an opened purchase (greenbuy.js openSheet): the New purchase side panel; header pills, a fact grid (6 across, 3 on an iPad, 2 on a phone),
   ONE coffee-lines table that fits the panel (the bean column wraps, numbers hug), a total row under a 2 px ink rule, extra costs in the #35 form */
body.v3look .sheet-wrap.gpo .gpo-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
body.v3look .sheet-wrap.gpo .gpo-h .badge{font-size:.8125rem}
body.v3look .sheet-wrap.gpo .gpo-facts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 16px;margin:0 0 28px;padding:0 0 16px;border-bottom:1px solid #D9D9D6}
body.v3look .sheet-wrap.gpo .gpo-facts>div{display:flex;flex-direction:column;gap:2px;min-width:0}
body.v3look .sheet-wrap.gpo .gpo-facts b{font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body.v3look .sheet-wrap.gpo :is(.gpo-fl){font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:#4A4A4A}
body.v3look .sheet-wrap.gpo .gpo-fs{font-size:.8125rem;color:#4A4A4A}
body.v3look .sheet-wrap.gpo .v3-sec{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
body.v3look .sheet-wrap.gpo .gpo-secn{font-size:.8125rem;letter-spacing:0;text-transform:none;color:#4A4A4A;text-align:right}
body.v3look .sheet-wrap.gpo .gpo-ra{display:flex;justify-content:flex-end;margin:0 0 8px}
body.v3look .sheet-wrap.gpo .gpo-tw{overflow-x:visible}
body.v3look .sheet-wrap.gpo table.gpo-t{width:100%;border-collapse:collapse;table-layout:auto;font-variant-numeric:tabular-nums}
body.v3look .sheet-wrap.gpo .gpo-t th{padding:6px 10px 8px;border-bottom:1px solid #000;font-size:.6875rem;font-weight:400;letter-spacing:.1em;text-transform:uppercase;text-align:left;color:#4A4A4A;white-space:nowrap}
body.v3look .sheet-wrap.gpo .gpo-t td{padding:10px;border-bottom:1px solid #D9D9D6;vertical-align:top}
body.v3look .sheet-wrap.gpo .gpo-t :is(th,td).num{width:1%;text-align:right;white-space:nowrap}
body.v3look .sheet-wrap.gpo .gpo-t td.gpo-bean{min-width:14rem;overflow-wrap:anywhere}
body.v3look .sheet-wrap.gpo .gpo-t td.gpo-bean>b{font-weight:500}
body.v3look .sheet-wrap.gpo .gpo-t td.gpo-lot{width:1%;white-space:nowrap;font-size:.875rem}
body.v3look .sheet-wrap.gpo .gpo-t thead th{white-space:nowrap}
body.v3look .sheet-wrap.gpo .gpo-sub{display:block;margin-top:2px;font-size:.8125rem;line-height:1.4;color:#4A4A4A;white-space:normal}
body.v3look .sheet-wrap.gpo .gpo-tag{color:#111}
body.v3look .sheet-wrap.gpo .gpo-recv{margin-top:6px}
body.v3look .sheet-wrap.gpo .gpo-t tfoot td{border-top:2px solid #000;border-bottom:0;font-weight:500}
body.v3look .sheet-wrap.gpo .gpo-note{margin-top:8px}
body.v3look .sheet-wrap.gpo .gpo-cost{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr) minmax(0,1.2fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin:16px 0 6px}
body.v3look .sheet-wrap.gpo .gpo-cost .v3-f :is(input,select){min-height:48px}
body.v3look .sheet-wrap.gpo .gpo-add{min-height:48px}
body.v3look .sheet-wrap.gpo .gpo-files{display:flex;flex-direction:column}
body.v3look .sheet-wrap.gpo .gpo-file{display:flex;align-items:center;gap:12px;min-height:48px;border-bottom:1px solid #D9D9D6}
body.v3look .sheet-wrap.gpo .gpo-file .v3-x{margin-left:auto;width:40px;height:40px;display:inline-grid;place-items:center;padding:0;border:0;background:none;cursor:pointer}
body.v3look .sheet-wrap.gpo .gpo-drop{margin-top:12px}
body.v3look .sheet-wrap.gpo .sheet-foot .v3-dots{width:48px;min-height:48px;height:48px;border:1px solid #D9D9D6}
@container (max-width:899px){ body.v3look .sheet-wrap.gpo .gpo-facts{grid-template-columns:repeat(3,minmax(0,1fr))} body.v3look .sheet-wrap.gpo .gpo-cost{grid-template-columns:1fr 1fr} body.v3look .sheet-wrap.gpo .gpo-cost .gpo-add{grid-column:1 / -1;justify-self:start} }
@container (max-width:599px){
  body.v3look .sheet-wrap.gpo .gpo-facts{grid-template-columns:1fr 1fr}
  body.v3look .sheet-wrap.gpo .gpo-t thead{display:none}
  body.v3look .sheet-wrap.gpo .gpo-t tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #D9D9D6;padding:8px 0}
  body.v3look .sheet-wrap.gpo .gpo-t td{display:block;width:auto;padding:4px 0;border:0;text-align:left}
  body.v3look .sheet-wrap.gpo .gpo-t td.gpo-bean{grid-column:1 / -1;min-width:0}
  body.v3look .sheet-wrap.gpo .gpo-t :is(th,td).num{width:auto;text-align:left}
  body.v3look .sheet-wrap.gpo .gpo-t tfoot tr{border-top:2px solid #000}
  body.v3look .sheet-wrap.gpo .gpo-t tfoot td{border-top:0}
  body.v3look .sheet-wrap.gpo .gpo-cost{grid-template-columns:1fr}
  body.v3look .sheet-wrap.gpo .gpo-secn{display:none}
}
/* #64 / #65 New purchase: one grey note under a coffee line ("60 kg bags" · "last: RM 57.06 · 05 Nov (+RM 1.20 / kg)"); the copy offer */
body.v3look .sheet-wrap .v3-lr>.v3-lnote{grid-column:1 / -1;margin:-2px 0 0;font-size:.8125rem;line-height:1.4;color:#4A4A4A;font-variant-numeric:tabular-nums}
body.v3look .sheet-wrap .v3-lr>.v3-lnote:empty{display:none}
body.v3look .sheet-wrap .gp-copy{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 0;border-top:1px solid #D9D9D6;border-bottom:1px solid #D9D9D6;font-size:.9375rem}
body.v3look .sheet-wrap .gp-copy>span{flex:1 1 16rem}
body.v3look .sheet-wrap .gp-copy[hidden]{display:none}
.v3-ic--left{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E")}
/* #56 Week plan (production.js planBoard): toolbar cells; To plan on the left (300 px); one column per weekday with a load bar; chips square
   with an ink border; board batches grey; past days hatched; a day opens its 20-min slots. iPad: To plan above the week. Phone: a list of days. */
#view.v3-look .pw-skel{display:grid;gap:10px}
#view.v3-look .pw-tb .v3-cell{flex:0 1 auto}
#view.v3-look .pw-tb .v3-cell:last-child{margin-left:auto}
#view.v3-look .pw-wk b{font-weight:500;white-space:nowrap}
#view.v3-look .pw-ib{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #D9D9D6;border-radius:0;background:#fff;color:#000;cursor:pointer}
#view.v3-look .pw-ib:disabled{color:#B5B5B1;cursor:not-allowed}
#view.v3-look .pw-ib:focus-visible{outline:2px solid #000;outline-offset:2px}
#view.v3-look .pw-seg{display:inline-flex;border:1px solid #000}
#view.v3-look .pw-seg>button{min-height:36px;margin:0;padding:0 14px;border:0;border-right:1px solid #D9D9D6;border-radius:0;background:#fff;color:#000;font:inherit;font-size:.9375rem;letter-spacing:0;text-transform:none;white-space:nowrap;cursor:pointer}
#view.v3-look .pw-seg>button:last-child{border-right:0}
#view.v3-look .pw-seg>button.on{background:#AFCDD7}
#view.v3-look .pw-seg>button:disabled{background:#F0F0EF;color:#4A4A4A;cursor:not-allowed}
#view.v3-look .pw-seg>button:focus-visible{position:relative;z-index:1;outline:2px solid #000;outline-offset:-2px}
@media (hover:hover){ #view.v3-look .pw-seg>button:not(.on):not(:disabled):hover{background:#F0F0EF} }
@media (pointer:coarse){ #view.v3-look :is(.pw-seg>button,.pw-ib){min-height:48px} #view.v3-look .pw-ib{width:48px;height:48px} }
#view.v3-look .pw-short{margin-top:-8px}
#view.v3-look .pw-phone{display:none}
#view.v3-look .pw-wrap{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}
#view.v3-look .pw-tray{border-top:1px solid #000}
#view.v3-look .pw-tray>.v3-sec{margin:8px 0;border:0;padding:0}
#view.v3-look .pw-req{display:flex;flex-direction:column;gap:6px;padding:12px 0;border-bottom:1px solid #D9D9D6}
#view.v3-look .pw-rh{display:flex;align-items:center;justify-content:space-between;gap:8px}
#view.v3-look .pw-rh>b{font-weight:500;font-size:1rem}
#view.v3-look .pw-rs{margin:0;font-size:.8125rem;line-height:1.4;color:#4A4A4A;font-variant-numeric:tabular-nums}
#view.v3-look .pw-set{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.875rem}
#view.v3-look .pw-set input{width:64px;min-height:36px;padding:0 8px;text-align:right}
#view.v3-look .pw-chips{display:flex;flex-wrap:wrap;gap:6px}
#view.v3-look .pw-hint{margin:0;font-size:.75rem;color:#4A4A4A}
#view.v3-look .pw-place{display:none}
#view.v3-look .pw-req>.v3-btn{align-self:flex-start}
#view.v3-look .pw-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;font-size:.875rem;color:#4A4A4A}
#view.v3-look .pw-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:32px;margin:0;padding:4px 8px;border:1px solid #000;border-radius:0;background:#fff;color:#000;font:inherit;font-size:.8125rem;letter-spacing:0;text-transform:none;text-align:left;cursor:grab}
#view.v3-look .pw-chip.urg{border-color:#B3261E}
#view.v3-look .pw-chip:disabled{cursor:default}
#view.v3-look .pw-chip>b{font-weight:500;white-space:nowrap}
#view.v3-look .pw-chip>small{color:#4A4A4A;font-variant-numeric:tabular-nums}
#view.v3-look .pw-chip.lifted{opacity:.4}
#view.v3-look .pw-chip:focus-visible{outline:2px solid #000;outline-offset:2px}
#view.v3-look .pw-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (pointer:coarse){ #view.v3-look .pw-chip{min-height:44px} }
#view.v3-look .pw-days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid #000}
#view.v3-look .pw-day{display:flex;flex-direction:column;min-width:0;min-height:420px;border-right:1px solid #D9D9D6;background:#fff}
#view.v3-look .pw-day:last-child{border-right:0}
#view.v3-look .pw-day.today .pw-dh{background:#F0F0EF}
#view.v3-look .pw-day.past{background:repeating-linear-gradient(45deg,#fff,#fff 6px,#F0F0EF 6px,#F0F0EF 12px)}
#view.v3-look .pw-day.hot{background:#F0F0EF}
#view.v3-look .pw-dh{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-bottom:1px solid #000}
#view.v3-look .pw-dh>small{font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;color:#4A4A4A}
#view.v3-look .pw-dh>b{font-weight:500;font-size:1rem}
#view.v3-look .pw-bar{position:relative;display:block;height:4px;margin-top:6px;background:#F0F0EF}
#view.v3-look .pw-bar>i{position:absolute;left:0;top:0;bottom:0;width:var(--w,0);background:#000}
#view.v3-look .pw-bar.full>i{background:#111}
#view.v3-look .pw-bar.over>i{background:#B3261E}
#view.v3-look .pw-load{font-size:.75rem;color:#4A4A4A;font-variant-numeric:tabular-nums}
#view.v3-look .pw-list{display:flex;flex:1 1 auto;flex-direction:column;gap:6px;padding:8px 10px}
#view.v3-look .pw-fix{display:flex;flex-direction:column;padding:6px 8px;border:1px solid #D9D9D6;background:#F0F0EF;color:#111;font-size:.8125rem;text-decoration:none}
#view.v3-look .pw-fix>small{font-size:.75rem;color:#4A4A4A}
#view.v3-look .pw-drop{margin-top:auto;padding:10px 6px;border:1px dashed #D9D9D6;font-size:.75rem;color:#4A4A4A;text-align:center}
#view.v3-look .pw-day.hot>.pw-list>.pw-drop{border-color:#4986A0;background:#F0F0EF;color:#111}
#view.v3-look .pw-tm{align-self:flex-start;font-size:.8125rem}
#view.v3-look .pw-slots{margin:0;padding:0 10px 10px;list-style:none;border-top:1px solid #D9D9D6}
#view.v3-look .pw-slots>li{display:flex;align-items:center;gap:6px;min-height:36px;border-bottom:1px solid #F0F0EF;font-size:.8125rem}
#view.v3-look .pw-slots>li.hot{background:#F0F0EF}
#view.v3-look .pw-slots>li.taken{color:#4A4A4A}
#view.v3-look .pw-tl{flex:none;width:2.75rem;color:#4A4A4A;font-variant-numeric:tabular-nums}
#view.v3-look .pw-fixs{font-size:.75rem;color:#4A4A4A}
@media (prefers-reduced-motion:reduce){ #view.v3-look .pw-chip{transition:none} }
/* iPad and narrower: To plan above the week, the week stays five columns while it fits */
@container (max-width:1099px){ #view.v3-look .pw-wrap{grid-template-columns:1fr} #view.v3-look .pw-day{min-height:240px} }
@container (max-width:899px){ #view.v3-look .pw-tb{flex-wrap:wrap} #view.v3-look .pw-tb .v3-cell{flex:1 1 auto} #view.v3-look .pw-tb .v3-cell:last-child{margin-left:0} }
/* phone: a list of days; "Place on…" instead of dragging */
@container (max-width:599px){
  #view.v3-look .pw-nophone,#view.v3-look .pw-hint,#view.v3-look .pw-drop{display:none}
  #view.v3-look .pw-phone{display:inline}
  #view.v3-look .pw-place{display:flex}
  #view.v3-look .pw-days{grid-template-columns:1fr}
  #view.v3-look .pw-day{min-height:0;border-right:0;border-bottom:1px solid #D9D9D6}
  #view.v3-look .pw-day:last-child{border-bottom:0}
  #view.v3-look .pw-dh{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
  #view.v3-look .pw-bar{flex:1 0 100%}
  #view.v3-look .pw-tb .v3-cell{flex:1 1 100%;border-right:0;border-bottom:1px solid #D9D9D6}
  #view.v3-look .pw-tb .v3-cell:last-child{border-bottom:0}
}
@media (pointer:coarse){ #view.v3-look .pw-place{display:flex} }
/* fixes after the Preview check (20 Nov): the id-level table / section rules above win over class rules, so these are scoped by id */
body.v3look #qaF .v3-sec{margin:24px 0 10px}
body.v3look #qaF>.v3-sec:first-child{margin-top:16px}
body.v3look #qaF .qa-fg{align-items:start}
@container (max-width:599px){
  body.v3look #gpoT>tbody>tr>td,body.v3look #gpoT>tfoot>tr>td{border:0;padding:4px 0}
  body.v3look #gpoT td[data-l]::before{content:attr(data-l);display:block;font-size:.6875rem;line-height:1.4;letter-spacing:.1em;text-transform:uppercase;color:#4A4A4A}
  body.v3look #gpoT>tbody>tr{border-bottom:1px solid #D9D9D6}
}
/* a segmented control with 5 or more cells (many machines) folds into rows of two on a phone */
@container (max-width:479px){
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg:not(.v3-seg--1):not(.v3-seg--2):not(.v3-seg--3):not(.v3-seg--4){grid-auto-flow:row;grid-template-columns:1fr 1fr}
  :is(#view.v3-look,body.v3look .sheet-wrap) .v3-seg:not(.v3-seg--1):not(.v3-seg--2):not(.v3-seg--3):not(.v3-seg--4)>button{border-bottom:1px solid #D9D9D6}
}
body.v3look .sheet-wrap .gpo-bks{margin-top:6px}
/* V3 fix 6 (#49c): "take from" on an order line — 1kg / 200g / 20g / Loose kg. The line's own size and Loose can be picked;
   another size shows its stock only (dimmed, not a button). Chips keep the 44 px tap height. */
.tf-box{margin-top:10px;display:grid;gap:8px}
.tf-row{display:grid;gap:4px}
.tf-row .chips{display:flex;flex-wrap:wrap;gap:6px}
.tf-row .tf-c{min-height:44px}
.tf-row .tf-c small{color:var(--muted)}
.tf-row .tf-off{cursor:default;color:var(--muted);border-style:dashed}
.tf-row .tf-off:hover{border-color:var(--line);color:var(--muted)}
.tf-row .tf-c:disabled{cursor:not-allowed;opacity:.55}
.sc-line .tf-row{margin:6px 0 4px}
.tf-row .tf-c.on small{color:inherit}   /* the picked chip keeps its own (inverted) text colour */
/* Combine loose… sheet */
.cb-list{margin-top:10px}
.cb-sum{margin:12px 0}
/* V3 fix 12 (20 Nov): Print rack labels — one side panel (DS §5.5, 680 px; full screen on a phone): Show chips, racks that open to pallets
   (empty racks grey, no tick), paper / way round / copies / arrow, More print settings, live preview, sticky footer "Prints N labels" */
.sheet-wrap.rk-side>.sheet{container-type:inline-size}
body.v3look .sheet-wrap.v3-side.rk-side>.sheet{width:min(680px,100vw)}
.rk-side .rk-sec{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.rk-side .rk-sec>span{font-size:.8125rem;letter-spacing:0;text-transform:none;color:#4A4A4A;text-align:right}
.rk-side .rk-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rk-side .rk-chips .chip{min-height:44px;cursor:pointer}
.rk-side .rk-bean{width:auto;max-width:100%;min-height:44px;border-radius:999px;padding:0 12px}
.rk-side .rk-rack{border-bottom:1px solid #D9D9D6}
.rk-side .rk-rh{display:flex;align-items:center;gap:12px;min-height:48px}
.rk-side .rk-rh>input,.rk-side .rk-pal>input{flex:none;width:20px;height:20px;min-height:0;margin:0;accent-color:#000}
.rk-side .rk-rt{flex:1;min-width:0;display:flex;align-items:center;gap:10px;min-height:48px;padding:0;border:0;background:none;color:#000;font:inherit;font-size:.9375rem;text-align:left;cursor:pointer}
.rk-side .rk-rn{font-weight:500}
.rk-side .rk-rc{margin-left:auto;font-size:.8125rem;color:#4A4A4A;text-align:right}
.rk-side .rk-rt .v3-ic{transition:transform 180ms}
.rk-side .rk-rack.open .rk-rt .v3-ic{transform:rotate(180deg)}
.rk-side .rk-rack--empty .rk-rt{cursor:default;color:#4A4A4A}.rk-side .rk-rack--empty .rk-rn{font-weight:400}
.rk-side .rk-pal{display:grid;grid-template-columns:20px 3.5rem minmax(0,1fr) auto;gap:10px;align-items:center;min-height:48px;padding:8px 0 8px 32px;border-top:1px solid #D9D9D6;font-size:.875rem;cursor:pointer}
.rk-side .rk-sl{font-weight:500}
.rk-side .rk-nm{min-width:0;overflow-wrap:anywhere}
.rk-side .rk-nm small{display:block;font-size:.75rem;color:#4A4A4A}
.rk-side .rk-kg{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.rk-side .rk-fg{margin-top:16px}
.rk-side .rk-arw>button{align-items:center}
.rk-side .rk-more{margin-top:16px}
.rk-side .rk-more>summary{min-height:48px;display:flex;align-items:center;cursor:pointer;font-size:.9375rem}
.rk-side .rk-more .v3-fh{margin-top:12px}
.rk-side .rk-pv{background:#F0F0EF;padding:16px;overflow:hidden}
.rk-side .rk-pvin{position:relative;overflow:hidden}
.rk-side .rk-pvin>.rlabel{position:absolute;top:0;left:0;transform:scale(var(--s,1));transform-origin:top left}
.rk-side .rk-foot{position:sticky;bottom:calc(-1 * var(--sp));z-index:4;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:16px calc(-1 * var(--sp)) calc(-1 * var(--sp));padding:14px var(--sp);background:#fff;border-top:1px solid #000}
.rk-side .rk-sum{margin-right:auto;font-size:.875rem;color:#111}.rk-side .rk-sum b{font-weight:500;color:#000}
.rk-side .rk-foot>.btn{flex:0 0 auto;min-height:48px}
@container (max-width:479px){
  .rk-side .rk-foot{flex-wrap:wrap}.rk-side .rk-sum{flex-basis:100%;margin:0}.rk-side .rk-foot>.btn{flex:1}
  .rk-side .rk-pal{grid-template-columns:20px minmax(0,1fr) auto;padding-left:8px}.rk-side .rk-sl{display:none}
}
@media (prefers-reduced-motion:reduce){ .rk-side .rk-rt .v3-ic{transition:none} }
/* arrows with a shaft (line icons; .v3-ic--up / --down are chevrons) */
.rk-ic--up{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E")}
.rk-ic--down{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E")}
.rk-ic--left{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E")}
.rk-ic--right{--icu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")}

/* ---------- 5. the other nine modules (Ryan 21 Nov 2026 · Hub-v3-All-Modules-Mockup.html) — on while a module is in v3.js FLAT and not in V3_HOLD ----------
   Same page grammar as Production and Green beans: tab row, one headline sentence, one toolbar with ONE black action, ruled section boxes.
   Their screens were written with the filled button everywhere, so here a button is an ink OUTLINE unless the screen marks it .v3-pri
   (DS v2.3 §6.5: one black primary per screen). Danger buttons keep their red; links stay links. */
#view.v3-flat .btn:not(.v3-pri):not(.danger):not(.ghost){background:#fff;border:1px solid #000;color:#000}
#view.v3-flat .btn:not(.v3-pri):not(.danger):not(:disabled):hover{background:#F0F0EF}
#view.v3-flat .ui-btn:not(.v3-pri):not(.ui-btn--danger):not(.ui-btn--ghost):not(:disabled):not([aria-disabled="true"]){--_bg:#fff;--_fg:#000;--_bd:#000;--_hov:#F0F0EF;--_prs:#F0F0EF}
#view.v3-flat :is(.btn,.ui-btn).v3-pri{--_bg:#000;--_fg:#fff;--_bd:#000;--_hov:#111;--_prs:#111;background:#000;border-color:#000;color:#fff}
#view.v3-flat :is(.btn,.ui-btn).v3-pri:hover{background:#111}
/* the tab counts: today's count badges (data-badge, painted by each screen) in the Waiting colour beside the word */
#view.v3-flat .v3-tabs .tab-cnt{margin-left:6px}
/* a module with one screen (Dashboard, Forecast, All apps): no tab row; the headline sits under the page title */
#view.v3-flat .v3-top + .v3-subs.none{display:none}
/* All apps */
.apps-tip{margin-top:18px}
#view.v3-flat .apps-sec{margin-top:24px}
#view.v3-flat .apps-sec:first-child{margin-top:8px}
#view.v3-flat .app-tile{border:1px solid #D9D9D6;border-radius:0;box-shadow:none;background:#fff}
#view.v3-flat .app-tile:hover{border-color:#000}
/* one toolbar per screen (period / date switch, filters, search · then the one black action on the right) */
#view.v3-flat .v3-mtb{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 16px}
#view.v3-flat .v3-mtb .sp{flex:1 1 0;min-width:0}
#view.v3-flat .v3-mtb .seg{margin:0}
#view.v3-flat .v3-kpis{margin:0 0 20px}
/* Dashboard: Main · Roasting · Logistics is the tab row (UPPERCASE, the chosen one underlined deep blue like every v3 tab row) */
#view.v3-flat .dv-role{display:flex;gap:0 24px;background:none;border:0;border-bottom:1px solid #D9D9D6;border-radius:0;padding:0}
#view.v3-flat .dv-role button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;box-shadow:none;margin:0 0 -1px;padding:10px 2px;min-height:44px;
  font-size:.8125rem;letter-spacing:.12em;text-transform:uppercase;color:#4A4A4A}
#view.v3-flat .dv-role button[aria-pressed="true"]{color:#000;border-bottom-color:#4986a0}
/* Dashboard: 3D Warehouse · green room — the live scene (about 2/3) beside Climate and Slots; under it on iPad portrait and phone */
#view.v3-flat .dv-wh{margin:24px 0}
#view.v3-flat .dv-wh-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
#view.v3-flat .dv-wh-h a{font-size:.8125rem;letter-spacing:0;text-transform:none;color:#111}
#view.v3-flat .dv-wh-b{display:grid;grid-template-columns:minmax(0,2fr) minmax(16rem,1fr);gap:20px;align-items:start}
#view.v3-flat .dv-3d--wh{height:26rem;margin:0;border:1px solid #D9D9D6}
#view.v3-flat .dv-3d--wh[data-orbit].is-live iframe{pointer-events:auto}
#view.v3-flat .dv-wh-side{display:flex;flex-direction:column;gap:20px;min-width:0}
#view.v3-flat .dv-clim{list-style:none;margin:6px 0 0;padding:0}
#view.v3-flat .dv-clim li{display:grid;grid-template-columns:5.5rem minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 10px;border-bottom:1px solid #D9D9D6;font-size:.875rem}
#view.v3-flat .dv-clim li.bad{outline:1px solid #B3261E;outline-offset:-1px}
#view.v3-flat .dv-clim li.bad .st{color:#B3261E}
#view.v3-flat .dv-clim li.off .st{color:#4A4A4A}
#view.v3-flat .dv-clim li.ok .st{color:#111}
#view.v3-flat .dv-clim .st svg{width:1rem;height:1rem;vertical-align:-3px}
#view.v3-flat .dv-wh-n{margin:6px 0 2px;font-size:1.5rem;font-weight:400}
@media (max-width:1023px){ #view.v3-flat .dv-wh-b{grid-template-columns:1fr} #view.v3-flat .dv-3d--wh{height:20rem} }
@media (max-width:599px){ #view.v3-flat .dv-3d--wh{height:14rem} }
/* Ryan's review 1 (21 Nov 2026): the page head follows the mock-up — tab row first, no title row (the headline is the title), then the
   headline, then the meta line in sentence case; live state, scan, bell, theme and the small clock in the Office top bar */
#view.v3-flat .v3-lead{display:flex;flex-direction:column;margin:16px 0 16px}
#view.v3-flat .v3-lead .v3-h{order:1;margin:0;max-width:none}
#view.v3-flat .v3-lead .v3-meta{order:2;margin-top:6px;font-size:.875rem;letter-spacing:0;text-transform:none}
#view.v3-flat .v3-tabs{margin-top:0}
#view.v3-flat .v3-tabs a.gap{margin-left:auto}   /* Inventory: Stock · Purchase Order · Repack · Counts · Documents on the right */
body.office .oacts{display:flex;align-items:center;gap:6px;margin-left:auto}
/* the page-header row moved into the top bar: the tab row (or the first row of the page) starts right under it */
#view.v3.o-nohead:has(> .v3-tabs, > .dv-role, > #modBody[data-mod="dashboard"]){padding-top:0}   /* the Dashboard too, before its role row arrives (no jump) */
#view.v3.o-nohead > :is(.v3-tabs, .dv-role){margin-top:0}
body.office .oacts:empty{display:none}
body.office .oacts:not(:empty) + .oname{margin-left:0}
body.office .oacts .tacts{display:flex;align-items:center;gap:6px;margin:0}
body.office .oacts .tsearch{display:none}   /* the top bar has its own Search */
body.office .oacts .tact{min-height:36px;height:36px}
body.office .oacts .ck--mini{font-size:.8125rem}
body.office .oacts .ck-pin{min-height:32px;padding:0 10px;border:1px solid #D9D9D6;border-radius:999px;background:#fff;font-size:.75rem;color:#111;cursor:pointer}
body.office .oacts .ck-pin[aria-pressed="true"]{border-color:#4986a0;color:#000}
/* Dashboard page (Ryan's review 1 · the mock-up's values): the role tab row above the headline, meta, toolbar, ONE joined KPI strip,
   a 1.6 : 1 grid of ruled sections with tables, grey pills (light blue = needs you, red outline = problem) */
#view.v3-flat > .dv-role{margin:0}
/* 2b (Ryan 22 Nov): Refresh sits at the right end of the chips' row (no toolbar row of its own); the KPI strip starts 16 px under it */
#view.v3-flat .dv-v3 .dv-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 4px}   /* + the page grid's 12 px gap = 16 */
#view.v3-flat .dv-v3 .dv-top .dv-meta{flex:0 1 auto;min-width:0}
#view.v3-flat .dv-v3 .dv-refresh{margin-left:auto;min-height:44px}
#view.v3-flat .dv-v3 .dv-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:#fff;border:1px solid #d9d9d6;border-radius:8px;overflow:hidden;margin:0 0 18px;padding:0}
@media (min-width:1600px){ #view.v3-flat .dv-v3 .dv-kpis{grid-template-columns:repeat(6,minmax(0,1fr))} }
@media (max-width:699px){ #view.v3-flat .dv-v3 .dv-kpis{grid-template-columns:repeat(2,minmax(0,1fr))} }
#view.v3-flat .dv-v3 .dv-kpi{background:#fff;border:0;border-radius:0;box-shadow:1px 0 0 #d9d9d6, 0 1px 0 #d9d9d6;margin:0;padding:16px 18px;min-width:0}
#view.v3-flat .dv-v3 .dv-kpi.needs{background:#F0F0EF}
#view.v3-flat .dv-v3 .dv-g2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:18px;align-items:start;margin:0 0 8px}
#view.v3-flat .dv-v3 .dv-col{display:flex;flex-direction:column;gap:22px;min-width:0}
@media (max-width:1100px){ #view.v3-flat .dv-v3 .dv-g2{grid-template-columns:minmax(0,1fr)} }
/* sections: UPPERCASE label left, link right, a 2 px black rule, then the list / table — no boxes */
#view.v3-flat .dv-v3 :is(.dv-card,.dv-act,.dv-ins){background:none;border:0;border-radius:0;box-shadow:none;padding:0;margin:0}
#view.v3-flat .dv-v3 :is(.dv-ch,.dv-sh){display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:0 0 12px;margin:0;border-bottom:2px solid #000}
#view.v3-flat .dv-v3 .dv-st{font-size:.875rem;font-weight:400;letter-spacing:.14em;text-transform:uppercase;color:#111}
#view.v3-flat .dv-v3 .dv-ch a.t,#view.v3-flat .dv-v3 .dv-lk{font-size:.875rem;font-weight:400;letter-spacing:0;text-transform:none;color:#4986a0;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
#view.v3-flat .dv-v3 .dv-cb{padding:0}
/* Act now and the insights are ruled rows, one per line (the old page lays them out as a wrapping chip strip) */
#view.v3-flat .dv-v3 :is(.dv-act,.dv-ins):not([hidden]){display:block;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
#view.v3-flat .dv-v3 .dv-arow{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #d9d9d6}
#view.v3-flat .dv-v3 .dv-arow .grow{flex:1;min-width:0;display:flex;gap:8px;align-items:center}
#view.v3-flat .dv-v3 .dv-arow .grow svg{flex:none;width:1rem;height:1rem;color:#4a4a4a}
#view.v3-flat .dv-v3 .dv-arow.bad .grow svg{color:#b3261e}
/* the public-holiday line is a grey pill next to Freshness (mock-up: "🎄 34 days to Christmas Day") */
#view.v3-flat .dv-hol{display:inline-flex;align-items:center;gap:6px;background:#f0f0ef;color:#111;border-radius:4px;padding:4px 10px;font-size:.8125rem}
/* the next-event chip (and a sooner holiday) open Forecast › Events (22 Nov) */
#view.v3-flat a.dv-hol{text-decoration:none;transition:background-color 100ms ease}
#view.v3-flat a.dv-hol:hover{background:#D9D9D6;text-decoration:underline;text-underline-offset:3px}
#view.v3-flat a.dv-hol:focus-visible{outline:2px solid #4986a0;outline-offset:2px}
@media (prefers-reduced-motion:reduce){ #view.v3-flat a.dv-hol{transition:none} }
#view.v3-flat .dv-v3 .dv-t{width:100%;border-collapse:collapse}
/* long names (stops, items) wrap so the number and status columns stay on the card */
#view.v3-flat .dv-v3 .dv-t td:first-child{white-space:normal;overflow-wrap:anywhere;line-height:1.35;padding-top:6px;padding-bottom:6px}
#view.v3-flat .dv-v3 .dv-t td:not(:first-child){white-space:nowrap}
#view.v3-flat .dv-v3 .dv-t th{font-size:.75rem;font-weight:400;letter-spacing:.12em;text-transform:uppercase;color:#4a4a4a;text-align:left;padding:10px 12px;border-bottom:1px solid #000;white-space:nowrap}
#view.v3-flat .dv-v3 .dv-t td{padding:0 12px;height:44px;border-bottom:1px solid #d9d9d6;font-size:.875rem}
#view.v3-flat .dv-v3 .dv-t :is(th,td).num{text-align:right;font-variant-numeric:tabular-nums}
#view.v3-flat .dv-v3 .dv-t tr.needs td{background:#F0F0EF}
#view.v3-flat .dv-v3 .dv-cap{margin:10px 0 0;color:#4a4a4a}
.dv-pill{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:6px;background:#f0f0ef;color:#111;font-size:.8125rem;white-space:nowrap}
.dv-pill.needs{background:#afcdd7}
.dv-pill.bad{background:#fff;color:#b3261e;box-shadow:inset 0 0 0 1px #b3261e}
#view.v3-flat .dv-v3 .dv-arow .grow small{display:block;font-size:.8125rem;color:#4a4a4a}

/* ---------- Ryan 21 Nov 2026: every tab row = the mock-up's (Hub-v3-All-Modules-Mockup.html .tabs, as on B2C) ----------
   14 px, .14em, grey #4A4A4A; current tab ink #111 / 500 with the #4986a0 underline; a light #d9d9d6 rule under the row (no ink rule) */
#view.v3 .v3-tabs{gap:32px;border-bottom:1px solid #d9d9d6}
#view.v3 .v3-tabs:has(+ .v3-subs.none){border-bottom-color:#d9d9d6}
#view.v3 .v3-tabs a{height:44px;min-height:0;padding:0;font-size:14px;letter-spacing:.14em;color:#4A4A4A;font-weight:400}
#view.v3 .v3-tabs a:hover{color:#111}
#view.v3 .v3-tabs a.on{color:#111;font-weight:500;border-bottom-color:#4986a0}
#view.v3 .v3-tabs .tab-cnt{font-size:12px;letter-spacing:0;border-radius:4px}
#view.v3-flat .dv-role{gap:0 32px;border-bottom-color:#d9d9d6}
#view.v3-flat .dv-role button{height:44px;min-height:0;padding:0 2px;font-size:14px;letter-spacing:.14em;color:#4A4A4A;font-weight:400}
#view.v3-flat .dv-role button[aria-pressed="true"]{color:#111;font-weight:500;border-bottom-color:#4986a0}
@media (max-width:699px){ #view.v3 .v3-tabs, #view.v3-flat .dv-role{gap:0 24px} }
/* Ryan 21 Nov 2026: the tab row is as tall as the sub-tab row under it (Roaster board · Pick list): 44 px, 48 px on touch */
@media (pointer:coarse){ #view.v3 .v3-tabs a{height:48px} }
@media (min-width:700px) and (pointer:coarse){ #view.v3-flat .dv-role button{height:48px} }
@media (max-width:699.98px){ #view.v3-flat .dv-role button{height:auto;min-height:44px;padding:22px 2px 14px} }
/* Ryan 21 Nov 2026: a module with no tab row (Forecast, All apps) starts its headline close under the top bar, like the tab rows */
#view.v3-flat.o-nohead:not(:has(> .v3-tabs, > .dv-role)) > .v3-lead{margin-top:-8px}
