/* =============================================================================
   Roastery Hub on the Bean Brothers Office template (round 1 · Keith and Ryan, 20 Nov 2026)
   Spec: docs/OFFICE_TEMPLATE_SPEC.md (it wins over COLOR / TYPE / LAYOUT_STANDARD where they disagree).
   Source of truth: bb-design templates/office-dashboard (tokens.css values, office.css pieces, src/reference.js menu).
   Loaded LAST in index.html. Two parts:
     A. the look: every --c-* token, the older app.css aliases and the v3 names set to the template values,
        under body.officelook (v3.js OFFICE_HOLD switches it per module, the way LOOK switches the v3 look).
        The same block sits on #view and .sheet-wrap too, so it beats v3.css part 2 inside Production, Green beans, Settings.
     B. the frame: 56 px top bar + 64 px rail that opens over the page to 232 px (computer and iPad, 700 px and up),
        the phone header and tab bar in the template's colours (under 700 px). Under body.office, always on.
   Light only. No new colours: every value below is one of the template's.
   Left for round 2 (spec): hard-coded hex in app/*.js, app.css and v3.css; charts (--c-s*, dashboard.css, uimock);
   the 16 px body text; the sign-in screen, globe and fly-in; Logistics/ and Studio/.
   ============================================================================= */

/* ---------- A. the look: tokens ---------- */
:is(body.officelook, body.officelook #view, body.officelook .sheet-wrap){
  /* the Hub's --c-* tokens (tokens.css §1) */
  --c-bg:#ffffff; --c-surface:#ffffff; --c-surface-2:#f0f0ef; --c-line:#d9d9d6; --c-line-strong:#d9d9d6;
  --c-text:#111111; --c-text-muted:#4a4a4a; --c-disabled:#b5b5b1;
  --c-primary:#000000; --c-primary-hover:#111111; --c-primary-press:#000000; --c-on-primary:#ffffff; --c-primary-border:#000000;
  --c-accent:#4986a0; --c-accent-text:#4986a0; --c-on-accent:#ffffff;                     /* copper goes: the current place is deep blue */
  --c-ok:#111111; --c-ok-soft:#f0f0ef; --c-ok-fill:#111111;                                /* status: quiet grey pills */
  --c-warn:#111111; --c-warn-soft:#afcdd7; --c-warn-fill:#afcdd7; --c-on-warn:#111111;      /* waiting = needs you: light blue, black text */
  --c-bad:#b3261e; --c-bad-fill:#b3261e; --c-bad-soft:#f0f0ef; --c-bad-hover:#b3261e; --c-on-bad:#ffffff; --c-bad-border:#b3261e;   /* alert: real problems only */
  --c-info:#4986a0; --c-info-soft:#f0f0ef; --c-info-fill:#4986a0;
  --c-sel:#f0f0ef; --c-on-sel:#111111; --c-progress:#111111; --c-track:#f0f0ef; --c-risk-bar:#b3261e;
  --c-focus:#4986a0;
  --c-hover:#f0f0ef; --c-press:#d9d9d6; --c-scrim:rgba(17,17,17,.30);
  --c-side:#ffffff; --c-side-line:#d9d9d6; --c-side-text:#111111; --c-side-muted:#4a4a4a; --c-side-hover:#f0f0ef; --c-side-on:#f0f0ef; --c-on-side:#111111;
  --c-ink:#111111; --c-steel:#4a4a4a; --c-shade:17,17,17; --c-light:255,255,255;
  --c-shadow:none; --c-shadow-pop:none; --shadow-1:none; --shadow-2:none;
  --ring:0 0 0 2px #ffffff,0 0 0 4px #4986a0;
  /* corners: 8 panels and cards · 6 buttons and fields · 4 small pieces */
  --r-sm:4px; --r-md:6px; --r-lg:8px; --r-pill:6px;
  --h-control:36px;
  /* the older app.css names */
  --teal:#000000; --navy:#000000; --on-teal:#ffffff; --gold:#4986a0; --on-gold:#ffffff; --gold-text:#4986a0;
  --bg:#ffffff; --card:#ffffff; --ink:#111111; --muted:#4a4a4a; --line:#d9d9d6; --line-input:#d9d9d6;
  --soft:#f0f0ef; --tan:#f0f0ef; --ok:#111111; --ok-soft:#f0f0ef; --bad:#b3261e; --bad-soft:#f0f0ef;
  --warn:#111111; --warn-soft:#afcdd7; --info:#4986a0; --info-soft:#f0f0ef;
  --radius:8px; --shadow:none;
  /* the v3 names (v3.css part 2) */
  --paper:#ffffff; --ink-2:#111111; --ink-3:#4a4a4a; --line-strong:#000000; --line-control:#d9d9d6; --fill:#f0f0ef;
  --blue-soft:#afcdd7; --blue-text:#4986a0; --key:#111111; --key-bg:#afcdd7; --key-ink:#111111; --prd-on-ok:#ffffff;
  color-scheme:light;
}
@media (pointer:coarse){ :is(body.officelook, body.officelook #view, body.officelook .sheet-wrap){ --h-control:44px } }
/* the v3 rows' own names (v3.css part 1): ink, grey, Bb Gray lines, the well, deep blue; the counts are "needs you" light blue */
:is(body.officelook #view.v3, body.officelook .v3-menuwrap){
  --v3i:#111111; --v3i2:#111111; --v3i3:#4a4a4a; --v3l:#d9d9d6; --v3lc:#d9d9d6; --v3f:#f0f0ef; --v3bt:#4986a0; --v3bs:#afcdd7; --v3w:#ffffff;
  --v3wt:#111111; --v3wtt:#afcdd7;
}
html:has(body.officelook), body.officelook, body.officelook #view.v3-look{background:#ffffff;color:#111111}

/* ---------- A. the look: pieces the tokens can't reach ---------- */
/* current tab: a deep-blue underline (template .vt / .subtabs) */
body.officelook #view.v3 :is(.v3-tabs, .v3-subs) a.on{border-bottom-color:#4986a0}
body.officelook .subnav.sn2 a.on{box-shadow:inset 0 -2px 0 #4986a0}

/* corners inside the v3 modules (v3.css squares everything): restore the template's three radii */
body.officelook :is(#view.v3-look, .sheet-wrap) :is(.btn, .ui-btn, .v3-btn, .v3-pk-btn, .linkbtn.box, input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea, .chip, .ui-filter, .seg, .ui-tabs--seg, .callout, .badge, .ui-status, .v3-tile, .v3-seg, .v3-seg>button, .rcd-show>button){border-radius:6px}
body.officelook :is(#view.v3-look, .sheet-wrap) :is(.card, .ui-card, .v3-kpis, .stat, .qc-step, .pb-tray){border-radius:8px}
body.officelook :is(#view.v3-look, .sheet-wrap) :is(.seg button, .ui-tabs--seg .ui-tab){border-radius:4px}

/* chips and segmented switches: the well, black text; selected = black with white text */
body.officelook :is(#view, .sheet-wrap) :is(.chip, .ui-filter, .lm-chip, .daychips button){background:#f0f0ef;border-color:transparent;color:#111111}
body.officelook :is(#view, .sheet-wrap) :is(.chip, .ui-filter, .lm-chip, .daychips button):hover{background:#d9d9d6;color:#111111}
body.officelook :is(#view, .sheet-wrap) :is(.seg, .ui-tabs--seg){background:#f0f0ef;border-color:transparent}
body.officelook :is(#view, .sheet-wrap) :is(.seg button.on, .seg a.on, .subnav:not(.sn2) a.on, .chip.on, a.chip.on, .daychips button.on, .mac.on, .rack-tab.on, .catbar a.on, .lm-chip.on, .rc-tab.on, .stg span.on, .ph-tools-r .btn.on,
  .dv-tt[aria-pressed="true"], .ui-tabs--seg .ui-tab[aria-selected="true"], .ui-tabs--seg .ui-tab.on, .ui-tabs--rack .ui-tab[aria-selected="true"], .ui-tabs--rack .ui-tab.on,
  .ui-filter[aria-pressed="true"], .ui-filter.on, .v3-seg>button.on, .pw-seg>button.on, .rcd-show>button.on){background:#000000;border-color:#000000;color:#ffffff}
body.officelook :is(#view, .sheet-wrap) :is(.chip.on, .mac.on, .rack-tab.on, .cal-d.sel) small{color:#ffffff}
/* Ryan 21 Nov 2026: on black, every word is white — the item's own label (S15 / S35) and its small line,
   even for a selected not-in-service item; count badges and pills keep their own colours */
body.officelook :is(#view, .sheet-wrap) :is(.seg button.on, .seg a.on, .subnav:not(.sn2) a.on, .chip.on, a.chip.on, .daychips button.on, .mac.on, .rack-tab.on, .catbar a.on, .lm-chip.on, .rc-tab.on, .stg span.on, .ph-tools-r .btn.on, .dv-tt[aria-pressed="true"], .ui-tabs--seg .ui-tab[aria-selected="true"], .ui-tabs--seg .ui-tab.on, .ui-tabs--rack .ui-tab[aria-selected="true"], .ui-tabs--rack .ui-tab.on, .ui-filter[aria-pressed="true"], .ui-filter.on, .v3-seg>button.on, .pw-seg>button.on, .rcd-show>button.on, .cal-d.sel, .bk-cal-d.on) :is(b, strong, span, small, em, i, .hint, .code):not(.tab-cnt, .v3-cnt, .ui-count, .badge, .pill, .st, .ui-status, .cnt, [class*="badge"], [class*="cnt"], .lm-chip.on > b, .bk-cal-d.on > i){color:#ffffff}
body.officelook :is(#view, .sheet-wrap) :is(.seg button.on, .seg a.on, .subnav:not(.sn2) a.on, .chip.on, a.chip.on, .daychips button.on, .mac.on, .rack-tab.on, .catbar a.on, .lm-chip.on, .rc-tab.on, .stg span.on, .ph-tools-r .btn.on, .dv-tt[aria-pressed="true"], .ui-tabs--seg .ui-tab[aria-selected="true"], .ui-tabs--seg .ui-tab.on, .ui-tabs--rack .ui-tab[aria-selected="true"], .ui-tabs--rack .ui-tab.on, .ui-filter[aria-pressed="true"], .ui-filter.on, .v3-seg>button.on, .pw-seg>button.on, .rcd-show>button.on, .cal-d.sel, .bk-cal-d.on) :is(small, .hint){opacity:.85}
body.officelook :is(#view, .sheet-wrap) :is(.cal-d.sel, .cal-d.hol-day.sel, .bk-cal-d.on, .bk-cal-d.hol.on){background:#000000;border-color:#000000;color:#ffffff}

/* status pills (template .st): small, quiet; the tokens give grey, light blue for waiting, alert for problems */
body.officelook :is(#view, .sheet-wrap) :is(.badge, .ui-status:not(.ui-status--dot)){border-radius:6px}

/* buttons: black main, Bb Gray secondary; 36 px, 44 on touch */
body.officelook :is(#view, .sheet-wrap) .btn:not(.small){min-height:36px}
body.officelook :is(#view, .sheet-wrap) :is(.btn.ghost, .ui-btn--secondary){background:#d9d9d6;border-color:#d9d9d6;color:#111111}
body.officelook :is(#view, .sheet-wrap) .ui-btn--secondary{--_bg:#d9d9d6;--_fg:#111111;--_bd:#d9d9d6;--_hov:#d9d9d6;--_prs:#d9d9d6}
@media (hover:hover){ body.officelook :is(#view, .sheet-wrap) :is(.btn.ghost, .ui-btn--secondary):hover:not(:disabled){box-shadow:inset 0 0 0 1px #111111} }
@media (pointer:coarse){ body.officelook :is(#view, .sheet-wrap) .btn:not(.small){min-height:44px} }

/* rows: the row under the pointer is the well (light blue only means "needs you") */
@media (hover:hover){
  body.officelook :is(#view.v3-look, .sheet-wrap) tbody tr:not(.ncat):not(.rcd-det):not(.v3-grp):hover>td,
  body.officelook #view.v3-look .rq-r:hover>td,
  body.officelook .v3-pk-o:not([aria-disabled="true"]):hover,
  body.officelook .rt-menu button:hover{background:#f0f0ef}
}
body.officelook :is(#view.v3-look, .sheet-wrap) tbody tr:not(.rcd-det):not(.v3-grp):focus-within>td{background:#f0f0ef}
body.officelook .rt-menu button:focus-visible{background:#f0f0ef}

/* floating panels (menus, pick lists, side panels, dialogs, sheets): 1 px black edge, no shadow, 8 px corners */
body.officelook :is(.me-menu, .nv-fly, .bellpop, .rb-menu, .prd-menu, .cpick-pop, .rt-dr-pop, .rt-menu, .fc-oc, .v3-pk, .bbp){border:1px solid #000000;box-shadow:none;border-radius:8px}
body.officelook .sheet{box-shadow:none}
@media (min-width:700px){ body.officelook :is(#view, .sheet-wrap) .sheet, body.officelook :is(#view.v3-look, .sheet-wrap) .sheet{border:1px solid #000000;border-radius:8px;box-shadow:none} }
body.officelook .toast{border-radius:6px;box-shadow:none;background:#000000;color:#ffffff}
body.officelook .toast.bad{background:#b3261e;color:#ffffff}

/* density (template tokens): fields 38 px, sheet rows 37 px, menu rows 40 px; on touch screens 44 px fields and 48 px rows.
   Element-only specificity (:where around the scope), so every control with its own class and size (steppers, mini fields, chips, pick-list buttons) keeps it. */
:where(body.officelook) :is(input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit])), select:where(:not([multiple]):not([size]))){min-height:38px;padding-top:6px;padding-bottom:6px}
@media (hover:none) and (pointer:coarse){
  :where(body.officelook) :is(input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit])), select:where(:not([multiple]):not([size]))){min-height:44px}
}
/* rows: tables only while they are tables (700 px and up; the phone card lists keep their own layout) */
@media (min-width:700px){
  :where(body.officelook) tbody > tr{height:37px}
  :where(body.officelook) tbody > tr > td{padding-top:7px;padding-bottom:7px}
}
@media (min-width:700px) and (hover:none) and (pointer:coarse){
  :where(body.officelook) tbody > tr{height:48px}
}

/* light only: no theme button (Settings → Appearance keeps only the profile picture) */
[data-theme-btn]{display:none!important}

/* ---------- B. the frame ---------- */
body.office{
  --o-bar:56px; --o-rail:64px; --o-rail-open:232px; --o-row:40px;
  --o-ink:#111111; --o-black:#000000; --o-muted:#4a4a4a; --o-line:#d9d9d6; --o-faint:#b5b5b1; --o-well:#f0f0ef;
  --o-blue:#afcdd7; --o-deep:#4986a0; --o-deep-hover:#3d7189; --o-alert:#b3261e; --o-backdrop:rgba(17,17,17,.30);
}
@media (pointer:coarse){ body.office{ --o-row:48px } }
body.office svg.o-g{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;flex:none}

/* phones (under 700 px): the header and the bottom tab bar stay, in the template's colours, corners and sizes */
body.office .obar, body.office .obackdrop{display:none}
body.office .top{min-height:var(--o-bar);background:#ffffff;border-bottom:1px solid var(--o-line);color:var(--o-ink)}
body.office .top .brand-mark{display:none}
body.office .top .o-mark{display:block;width:28px;height:auto;flex:none;color:var(--o-black)}
body.office .top .brand b{color:var(--o-ink);font-weight:500}
body.office .top .brand small{color:var(--o-muted);font-weight:400}
body.office .tabbar{background:#ffffff;border-top:1px solid var(--o-line);color-scheme:light}
body.office .tabbar a{color:var(--o-ink);border-radius:6px}
body.office .tabbar a.on{color:var(--o-deep);background:none;box-shadow:none;font-weight:500}
@media (hover:hover){ body.office .tabbar a:hover{background:var(--o-well)} }
body.office .o-mark{display:none}

@media (min-width:700px){
  body.office{--side:var(--o-rail)}
  body.office .shell, body.office .shell.side-min{--side:var(--o-rail);display:grid;grid-template-columns:var(--o-rail) minmax(0,1fr);align-content:start}
  body.office .shell > .view{grid-column:2}
  body.office .top{display:none}

  /* top bar: 56 px, white, one Bb Gray line; the mark cell sits over the rail and widens with it */
  body.office .obar{grid-column:1 / -1;position:sticky;top:0;z-index:21;display:flex;align-items:center;gap:14px;height:var(--o-bar);padding:0 16px 0 calc(var(--o-rail) + 20px);
    background:#ffffff;border-bottom:1px solid var(--o-line);color:var(--o-ink);font-family:var(--font)}
  body.office .obar > *{flex-shrink:0}
  body.office .obrand{position:absolute;left:0;top:0;z-index:22;width:var(--o-rail);height:var(--o-bar);display:flex;align-items:center;justify-content:center;overflow:hidden;
    background:#ffffff;border-right:1px solid var(--o-line);border-bottom:1px solid var(--o-line);color:var(--o-black);text-decoration:none;transition:width .15s ease}
  body.office .obrand .o-mark{display:block;width:28px;height:auto}
  body.office .obrand .o-logo{display:none;width:150px;height:auto}
  body.office .shell.menu-open .obrand{width:var(--o-rail-open);justify-content:flex-start;padding-left:20px}
  body.office .shell.menu-open .obrand .o-mark{display:none}
  body.office .shell.menu-open .obrand .o-logo{display:block}
  body.office .ohnav{display:inline-flex;gap:4px}
  body.office .ohnav button{width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;background:var(--o-well);color:var(--o-ink);cursor:pointer}
  body.office .ohnav button:hover:not(:disabled){background:var(--o-line)}
  body.office .ohnav button:disabled{color:var(--o-faint);background:transparent;cursor:default}
  body.office .ohnav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
  body.office .okbar{flex:0 1 340px;min-width:0;display:flex;align-items:center;gap:10px;height:34px;padding:0 12px;border:0;border-radius:6px;background:var(--o-well);color:var(--o-muted);
    font:inherit;font-size:15px;text-align:left;cursor:pointer}
  body.office .obar > .okbar{flex-shrink:1}
  body.office .okbar .q{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.office .okbar .t{display:none}
  body.office .okbar .kbd{font:13px ui-monospace,Menlo,monospace;padding:1px 6px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--o-line)}
  body.office .oname{margin-left:auto;padding:0 12px;font-size:15px;font-weight:500;white-space:nowrap}
  /* Ryan 21 Nov 2026: the module's name in the top bar (20 px, ink, one line), then Back / Forward, then Search */
  body.office .otitle{flex:0 1 auto;min-width:0;max-width:280px;margin:0;font:400 20px/1.2 var(--font);color:var(--o-ink);letter-spacing:0;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.office .obar > .otitle{flex-shrink:1}
  body.office .otitle[hidden]{display:none}
  body.office .obar :focus-visible{outline:2px solid var(--o-deep);outline-offset:2px}

  /* the rail: 64 px, opens over the page to 232 px (it no longer pushes the page) */
  body.office .side{top:var(--o-bar);height:calc(100vh - var(--o-bar));height:calc(100dvh - var(--o-bar));width:var(--o-rail);z-index:20;gap:2px;padding:12px 0;
    background:#ffffff;color:var(--o-ink);border-right:1px solid var(--o-line);color-scheme:light;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;transition:width .15s ease}
  body.office .side::-webkit-scrollbar{display:none}
  body.office .shell.menu-open .side{width:var(--o-rail-open);padding-top:16px;padding-bottom:16px}
  body.office .side-top, body.office #sideTog, body.office #navFoot{display:none!important}
  body.office .side .nvl{--nv-h:var(--o-row);gap:2px}
  body.office .side .nv-row{margin:0 8px;border-radius:6px;background:none;box-shadow:none;transition:none}
  body.office .side .nv-row::before{content:none!important}
  /* Ryan 21 Nov 2026 (mock-up .rail): 22 px line icons, stroke 1.6, round; labels 15 px regular ink; 14 px gap; 12 px padding */
  body.office .side .nv-a{flex:1 1 auto;min-height:var(--o-row);gap:14px;padding:0 12px;border-radius:6px;color:var(--o-ink);font-size:15px;font-weight:400;position:relative}
  body.office .side .nv-a svg{flex:none;width:22px;height:22px;margin:0;color:var(--o-ink);fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  body.office .side .nv-a svg *{stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  body.office .side .nv-l{display:none;color:var(--o-ink);white-space:nowrap}
  body.office .shell.menu-open .side .nv-l{display:block}
  @media (hover:hover){ body.office .side .nv-row:hover{background:var(--o-well)} body.office .side .nv-a:hover svg{color:var(--o-ink)} }
  body.office .side .nv.cur>.nv-row{background:var(--o-well)}
  body.office .side .nv.cur>.nv-row .nv-a, body.office .side .nv.cur>.nv-row .nv-a svg{color:var(--o-deep)}
  body.office .side .nv.cur>.nv-row .nv-l{color:var(--o-deep);font-weight:400}
  body.office .side .nvl :focus-visible{outline:2px solid var(--o-deep);outline-offset:-2px}
  /* counts: a small light-blue square on the icon (needs you), alert when overdue; beside the name when open */
  body.office .side .nv-cnt{position:absolute;top:2px;left:26px;min-width:16px;height:16px;padding:0 4px;border-radius:4px;background:var(--o-blue);color:var(--o-ink);font-size:12px;font-weight:600;line-height:1}
  body.office .side .nv-cnt.late{background:var(--o-alert);color:#ffffff}
  body.office .shell.menu-open .side .nv-cnt{position:static;margin:0 12px 0 auto;min-width:20px;height:18px;font-size:11px}
  body.office .side .nv-x, body.office .side .nv-subs{display:none}
  body.office .shell.menu-open .side .nv-x{display:grid;color:var(--o-muted)}
  body.office .shell.menu-open .side .nv-subs{display:grid}
  body.office .side .nv-ls::before{background:var(--o-line)}
  body.office .side .nv-ls a{color:var(--o-muted);border-radius:6px}
  body.office .side .nv-ls a.on{color:var(--o-ink);font-weight:500}
  body.office .side .nv-ls a.on::before{background:var(--o-deep)}
  /* the sub-pages keep the rows' 8 px inset: the guide line on the icon centre, the text under the module labels */
  body.office .side .nv-ls{margin:0 8px}
  body.office .side .nv-ls::before{left:23px}
  body.office .side .nv-ls a{padding-left:48px}
  body.office .side .nv-ls a.on::before{left:21px}
  body.office .side .nv-ls a.gap::after{left:48px}

  /* the person at the foot of the rail: initials; name and role when it opens */
  body.office .side-foot{margin-top:auto;gap:0;padding:10px 8px 0;border-top:1px solid var(--o-line)}
  body.office .me-btn{min-height:44px;gap:10px;padding:0 6px;border-radius:6px;color:var(--o-ink)}
  @media (hover:hover){ body.office .me-btn:hover{background:var(--o-well)} }
  body.office .me-btn[aria-expanded="true"]{background:var(--o-well)}
  body.office .me-av{width:36px;height:36px;flex:none;background:var(--o-well);color:var(--o-ink);font-size:12px;font-weight:600;box-shadow:none}
  body.office .me-t, body.office .me-ch{display:none}
  body.office .shell.menu-open .me-t{display:block}
  body.office .shell.menu-open .me-ch{display:block;color:var(--o-muted)}
  body.office .me-t b{color:var(--o-ink);font-weight:400;font-size:15px}
  body.office .me-t small{color:var(--o-muted);font-size:13px}
  body.office .me-btn:focus-visible{outline:2px solid var(--o-deep);outline-offset:-2px}

  /* the page never sits under the bar: side panels that stick, stick below it */
  body.office :is(#slotPanel, .plan-side, .board-side, .pack-sum, .plan-assist, .split.main-side>.oside, .split.main-side.conn>.oside){top:calc(var(--o-bar) + 16px)}
  body.office .ph-selbar{top:calc(var(--o-bar) + 8px)}
  /* a table head that sticks to the window (office.js marks the table) sticks below the top bar, not under it */
  body.office table.o-winsticky > thead th, body.office table.o-winsticky > thead td{top:var(--o-bar)}
  /* search lives in the top bar on computer and iPad */
  body.office .tacts .tsearch{display:none}
}
/* iPad and other touch screens: 44 px controls; the open menu gets a backdrop, a tap outside closes it */
@media (min-width:700px) and (hover:none) and (pointer:coarse){
  body.office .side, body.office .obrand{transition:none}
  body.office .ohnav button{width:44px;height:44px}
  body.office .okbar{flex:none;width:auto;height:44px}
  body.office .okbar .q, body.office .okbar .kbd{display:none}
  body.office .okbar .t{display:inline}
  body.office .shell.menu-open .obackdrop{display:block;position:fixed;inset:var(--o-bar) 0 0 0;z-index:19;background:var(--o-backdrop)}
}
/* 700–1023 px (iPad, small laptop): the title shortens, Search becomes its icon and "Roastery Hub" steps aside before anything wraps */
@media (min-width:700px) and (max-width:1023.98px){
  body.office .obar{gap:10px}
  body.office .otitle{max-width:180px;font-size:18px}
  body.office .obar > .okbar{flex:none;width:auto;padding:0 10px}
  body.office .okbar .q, body.office .okbar .kbd, body.office .okbar .t{display:none}
  body.office .oname{display:none}
  body.office .oacts{margin-left:auto}
  body.office .oacts #liveStamp{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (prefers-reduced-motion:reduce){ body.office .side, body.office .obrand{transition:none} }
@media print{ body.office .obar, body.office .obackdrop{display:none!important} }

/* ── Sign-in on the Office finish (Ryan 21 Nov 2026: "apply to sign in as well, keep the globe feature", "remain my 3d Bb Logo").
   Light only, like the app: login.js no longer reads the stored theme and the moon/sun button is hidden.
   The form side takes the template values; the globe keeps its dark sky (it is a picture, not chrome), now neutral black, not navy.
   Logo (Ryan 21 Nov): the 3D Bb tile on the sign-in page only; the rest of the Hub uses Keith's flat mark. */
#lgApp{--c-bg:#fff;--c-surface:#fff;--c-surface-2:#f0f0ef;--c-hover:#f0f0ef;--c-press:#e6e6e4;
  --c-text:#111;--c-text-muted:#4a4a4a;--c-line:#d9d9d6;--c-line-strong:#d9d9d6;
  --c-primary:#111;--c-primary-hover:#000;--c-primary-press:#000;--c-on-primary:#fff;
  --c-bad:#b3261e;--c-bad-soft:#fff;--c-warn:#111;--c-warn-soft:#f0f0ef;--c-focus:#4986a0;
  --r-sm:4px;--r-md:6px;--r-lg:8px;--r-pill:6px;color-scheme:light}
#lgApp .lg2-theme{display:none}
#lgApp .lg2-in input,#lgApp .lg2-dcb{min-height:38px}
#lgApp .lg2-go{min-height:36px}
@media (pointer:coarse){#lgApp .lg2-in input,#lgApp .lg2-dcb,#lgApp .lg2-go{min-height:44px}}
#lgApp .lg2-in input:focus-visible{outline:2px solid #4986a0;outline-offset:1px;border-color:#111}
#lgApp .lg2-err,#lgApp .lg2-dcmsg{border:1px solid #b3261e}
#lgApp .lg2-dcmsg.wait{border-color:#d9d9d6}
#lgApp .lg2-check input{accent-color:#111}
#lgApp .lg2-dcb .dc-ic{fill:#5865F2}
#lgApp .lg2-flag{box-shadow:0 0 0 1px #d9d9d6}
@media (min-width:1024px){
  #lgApp .lg2-globe{background:radial-gradient(90% 80% at 60% 45%,#24282c 0%,#0b0c0d 70%)}
}
#lgApp .lg2-pin{background:#fff;color:#111;border:1px solid #000;border-radius:4px}
#lgApp .lg2-pin i{background:#4986a0;box-shadow:0 0 0 3px rgba(73,134,160,.3)}
#lgApp .lg2-gcap{color:#c9c9c6} #lgApp .lg2-gcap b{color:#fff}

/* ── Audit fixes, PR 1 Safety (bb-designer, 22 Nov 2026; docs/OFFICE_AUDIT_FIX_SPEC.md, Fix spec v3 group A).
   Template pieces only: .problem (H4), .ph loading bars (H1), the ⌘K panel (A2). Values from bb-design templates/office-dashboard. */
/* F2: one problem note. 1px alert edge, no fill, plain words, Try again as a secondary button; under the page head */
.problem{display:flex;align-items:center;gap:16px;padding:10px 14px;margin:0 0 16px;border-radius:6px;box-shadow:inset 0 0 0 1px #b3261e;background:none;color:#b3261e;font-size:14px;line-height:1.45}
.problem b{font-weight:500}
.problem .btn, body.office :is(#view, .sheet-wrap) .problem .btn.btn{margin-left:auto;flex:none;min-height:36px;padding:0 14px;border:0;border-radius:6px;background:#d9d9d6;color:#111111;font-size:14px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.problem .btn.btn[aria-busy="true"]{cursor:progress;opacity:.7}
.problem.floating{position:fixed;left:50%;bottom:24px;z-index:60;transform:translateX(-50%);margin:0;background:#ffffff;max-width:min(640px,calc(100% - 32px))}
@media (pointer:coarse){ .problem .btn, body.office :is(#view, .sheet-wrap) .problem .btn.btn{min-height:44px} }
@media (max-width:699.98px){ .problem.floating{bottom:calc(72px + env(safe-area-inset-bottom))} }
/* F15: nothing for 250 ms, then grey bars in the final shape */
.ph-page{display:flex;flex-direction:column;gap:32px;opacity:0;animation:bbph-in .18s ease-out .25s forwards}
.ph-page .ph{height:14px;border-radius:4px;background:#f0f0ef}
.ph-page .ph-title{height:26px;width:min(420px,70%)}
.ph-page .ph-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ph-page .ph-tiles > div{display:flex;flex-direction:column;gap:10px}
.ph-page .ph-label{width:50%;height:12px} .ph-page .ph-value{width:35%;height:20px}
.ph-page .ph-sheet{display:flex;flex-direction:column;gap:12px}
.ph-page .ph-head{height:16px} .ph-page .ph-row{height:14px}
@media (max-width:1023.98px){ .ph-page .ph-tiles{grid-template-columns:repeat(2,minmax(0,1fr))} }
@keyframes bbph-in{to{opacity:1}}
@media (prefers-reduced-motion:reduce){ .ph-page{animation:bbph-in 0s linear .25s forwards} }
/* F1: the ⌘K panel, 560 px, field on the grey well with a deep-blue ring, the kind as a word at the right */
body.office .sheet-wrap.hs-wrap .sheet{max-width:560px;border:1px solid #000000;border-radius:8px;box-shadow:none}
body.office .hs-bar{padding:12px 14px}
body.office .hs-bar input{min-height:38px;padding:0 10px;border:0;border-radius:6px;background:#f0f0ef;color:#111111;font-size:16px}
body.office .hs-bar input:focus{outline:2px solid #4986a0;outline-offset:0;background:#ffffff}
body.office .hs-x{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:6px;background:none;color:#111111}
body.office .hs-x svg{width:18px;height:18px}
body.office .hs-row{justify-content:space-between;border-radius:6px}
body.office .hs-row.sel{background:#f0f0ef}
body.office .hs-kind{flex:none;font-size:13px;color:#4a4a4a}
@media (pointer:coarse){ body.office .hs-x{width:44px;height:44px} body.office .hs-bar input{min-height:44px} }
/* status tags (template .st, C4 6px corners): grey settled, light blue needs you, red outline for late or failed only */
.st:not(.prd-seg, .dv-clim .st){display:inline-block;padding:2px 8px;border-radius:6px;background:#d9d9d6;color:#111111;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;line-height:16px;white-space:nowrap;vertical-align:middle}
.st.need:not(.prd-seg){background:#afcdd7}
.st.prob:not(.prd-seg){background:none;color:#b3261e;box-shadow:inset 0 0 0 1px #b3261e}
/* F21: template 18px line icons where a glyph used to sit in a button (Fuel card statement, Tanks) */
body.office :is(#fuImp, #fuSet) svg{width:18px;height:18px}

/* =============================================================================
   Audit fixes, PR 2 Look (bb-designer, 22 Nov 2026; docs/OFFICE_AUDIT_FIX_SPEC.md, Fix spec v3 groups B to H, J, K).
   Values and pieces from bb-design templates/office-dashboard (tokens.css, office.css). No new colours, sizes, corners or shadows.
   Scope: L = every screen and the pop-ups opened from it. Phones (under 700 px) keep their own frame (K).
   ============================================================================= */

/* ---------- D. frame: F12 top bar, F13 iPad menu, F28 rail foot and Sign out, F30 skip link ---------- */
body.office .oskip{position:fixed;left:8px;top:8px;z-index:90;padding:8px 14px;border:0;border-radius:6px;background:#000000;color:#ffffff;font:500 14px/20px var(--font);
  letter-spacing:.1em;text-transform:uppercase;transform:translateY(-200%)}
body.office .oskip:focus-visible{transform:none;outline:2px solid #4986a0;outline-offset:2px}
body.office .obrand{display:none}
body.office .osignout{display:none}
@media (min-width:700px){
  /* the mark cell left the bar (F30: it is the first stop, then the rail): fixed over the rail's top, as before */
  body.office .obrand{display:flex;position:fixed}
  html{scroll-padding-top:calc(56px + 16px)}
  /* F12: no module title, no clock, no pills: scan and bell are named square icon buttons on the well, 34 px, 6 px */
  body.office .obar .tacts{display:flex;align-items:center;gap:8px}
  body.office .obar .tact.tstamp, body.office .obar .ck, body.office .obar .ck-pin{display:none!important}   /* Ryan 24 Nov 2026: no Updated pill in the top bar; the page's intro line carries it */
  body.office .obar :is(.tscan, .tbell){position:relative;display:grid;place-items:center;width:34px;height:34px;min-height:0;padding:0;border:0;border-radius:6px;background:#f0f0ef;color:#111111;box-shadow:none}
  body.office .obar :is(.tscan, .tbell):hover{background:#d9d9d6}
  body.office .obar :is(.tscan, .tbell) svg{width:18px;height:18px}
  body.office .obar .tbell .cnt{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:4px;background:#afcdd7;color:#111111;font-size:12px;font-weight:600;line-height:16px;text-align:center;box-shadow:none}
  body.office .oacts{margin-left:auto}
  body.office .oname{margin-left:0;padding:0 4px 0 12px}
  /* F28: Sign out beside the app name, a quiet link */
  body.office .osignout{display:inline-block;padding:0 4px;border:0;background:none;color:#111111;font:400 14px/34px var(--font);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
  /* Ryan 24 Nov 2026: Master Data and All apps at the rail foot, above the profile, rows like the sections (Settings: profile menu) */
  body.office #navEnd{margin:0 -8px 6px}
  body.office #navEnd[hidden]{display:none}
  /* the Settings (Approvals) count: on the profile's avatar when folded, before the chevron when open, and on the menu's Settings */
  body.office .me-btn{position:relative}
  body.office .me-btn .me-cnt{left:30px}
  body.office .me-menu .me-cnt{position:static;margin-left:auto}
  /* G-5: the current section in the open menu: the well, deep-blue icon, the name in ink at 500 */
  body.office .side .nv.cur>.nv-row .nv-l{color:#111111;font-weight:500}
  body.office .side .nv.cur>.nv-row .nv-a{color:#111111}
  body.office .side .nv.cur>.nv-row .nv-a svg{color:#4986a0}
}
@media (min-width:700px) and (max-width:1023.98px){
  /* F12 iPad: the search button says "Search"; the app name stays */
  body.office .okbar .t{display:inline}
  body.office .oname{display:inline}
}
@media (min-width:700px) and (hover:none) and (pointer:coarse){
  body.office .obar :is(.tscan, .tbell){width:44px;height:44px}
  body.office .osignout{line-height:44px}
  /* F13: the mark stays folded while the menu is open, so a second tap on it closes the menu */
  body.office .shell.menu-open .obrand{width:var(--o-rail);justify-content:center;padding-left:0}
  body.office .shell.menu-open .obrand .o-mark{display:block}
  body.office .shell.menu-open .obrand .o-logo{display:none}
}

/* ---------- B. foundations ---------- */
/* T1: type from the template scale. Body 16, rows 15, helper and column heads 14, tags 13 / 12, section labels 12 */
body.officelook #view.v3-look, body.officelook .sheet-wrap .sheet{font-size:16px;--fs-base:16px;--t-body-size:16px}
body.officelook :is(#view, .sheet-wrap) td{font-size:15px}
body.officelook :is(#view, .sheet-wrap) :is(.hint, .sub, .t-caption){font-size:14px;color:#4a4a4a}
/* T2(a): every figure in a cell, tile or count lines up */
body.officelook :is(#view, .sheet-wrap) :is(td, th, .stat b, .dv-kpi b, .v3-cnt, .tab-cnt, .nv-cnt, .cnt, .ui-count, .badge, .st){font-variant-numeric:tabular-nums}
/* column heads: 14 px / 500 muted, sentence case, over a Bb Gray rule; number columns right-aligned with their heads */
body.officelook :is(#view, .sheet-wrap) th{font-size:14px;font-weight:500;letter-spacing:0;text-transform:none;color:#4a4a4a;border-bottom:1px solid #d9d9d6}
body.officelook :is(#view, .sheet-wrap) :is(th, td).num{text-align:right}

/* F5: one status set, the template's .st. Grey = settled or someone else's; light blue = the viewer must act; red outline = late or failed */
body.officelook :is(#view, .sheet-wrap, .v3-menuwrap) :is(.badge, .ui-status:not(.ui-status--dot), .pill){display:inline-block;padding:2px 8px;border:0;border-radius:6px;background:#d9d9d6;color:#111111;
  font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;line-height:16px;white-space:nowrap;vertical-align:middle;box-shadow:none}
body.officelook :is(#view, .sheet-wrap, .v3-menuwrap) :is(.badge.b-warn, .ui-status--warn:not(.ui-status--dot), .pill.warn){background:#afcdd7;color:#111111}
body.officelook :is(#view, .sheet-wrap, .v3-menuwrap) :is(.badge.b-bad, .ui-status--bad:not(.ui-status--dot), .pill.bad){background:none;color:#b3261e;box-shadow:inset 0 0 0 1px #b3261e}
body.officelook :is(#view, .sheet-wrap, .v3-menuwrap) :is(.badge.b-ok, .badge.b-info, .badge.b-wait, .badge.b-gold, .badge.b-key, .ui-status--ok:not(.ui-status--dot), .ui-status--info:not(.ui-status--dot), .pill.ok, .pill.info, .pill.gold, .pill.off){background:#d9d9d6;color:#111111;box-shadow:none}
/* Maintenance priority (23 Nov): High = red outline (as .ui-status--bad), Medium = grey, Low = a lighter grey */
body.officelook :is(#view, .sheet-wrap) .ui-status.mt-prio--low{background:#ececea;color:#4a4a4a}
/* dot statuses: a word in ink, the dot grey, red only for a problem ("Synced" is a muted word, no green dot) */
body.officelook :is(#view, .sheet-wrap) .ui-status--dot{color:#4a4a4a}
body.officelook :is(#view, .sheet-wrap) .ui-status--dot::before{background:#b5b5b1}
body.officelook :is(#view, .sheet-wrap) .ui-status--dot.ui-status--bad{color:#b3261e}
body.officelook :is(#view, .sheet-wrap) .ui-status--dot.ui-status--bad::before{background:#b3261e}
body.officelook :is(#view, .sheet-wrap) .ui-status--dot.ui-status--warn::before{background:#afcdd7}
/* status words in text: ink, red only for a problem */
body.officelook :is(#view, .sheet-wrap) :is(.t-ok, .t-warn, .ok-text, .warn-text){color:#111111}
body.officelook :is(#view, .sheet-wrap) :is(.t-bad, .danger-text){color:#b3261e}

/* F6: notices. Neutral notices are a muted line; a "needs you" notice is the light-blue To do block; a problem is the red-edged note. No other fills */
body.officelook :is(#view, .sheet-wrap) :is(.callout, .callout.info, .callout.ok, .ui-callout){background:none;border:0;border-radius:0;padding:0;color:#4a4a4a;box-shadow:none}
body.officelook :is(#view, .sheet-wrap) .callout.warn{padding:12px 14px;border-radius:8px;background:#afcdd7;color:#111111}
body.officelook :is(#view, .sheet-wrap) .callout.bad{padding:10px 14px;border-radius:6px;background:none;color:#b3261e;box-shadow:inset 0 0 0 1px #b3261e}
body.officelook :is(#view, .sheet-wrap) :is(.callout.bad b:first-child, .callout b){color:inherit;font-weight:500}
body.officelook :is(#view, .sheet-wrap) :is(.callout, .hub-banner) > svg{color:currentColor}
body.officelook .hub-banner{background:none;color:#4a4a4a;box-shadow:inset 0 -1px 0 #d9d9d6}
body.officelook .hub-banner.warn{background:#afcdd7;color:#111111}
/* Ryan 24 Nov 2026: "A new version of the Hub is ready" in a light-blue box (8 px corners), its Reload button the black main button */
body.officelook .hub-banner.info{background:#afcdd7;color:#111111;border-radius:8px;box-shadow:none}
body.officelook .hub-banner.info :is(.btn, button){background:#111111;border:0;border-radius:6px;color:#ffffff;box-shadow:none}
body.officelook .hub-banner.bad{background:none;color:#b3261e;box-shadow:inset 0 0 0 1px #b3261e}

/* F8: chips and switches: the well, 6 px, 15 px; one chosen, ink with white text (never light blue) */
body.officelook :is(#view, .sheet-wrap) :is(.chip, .ui-filter, .lm-chip){min-height:30px;padding:4px 12px;border:0;border-radius:6px;font-size:15px}
body.officelook :is(#view, .sheet-wrap) :is(.chip, .ui-filter)[aria-pressed="true"]{background:#000000;color:#ffffff}
body.officelook :is(#view, .sheet-wrap) :is(.seg, .ui-tabs--seg, .v3-seg, .pw-seg, .rcd-show, .lm-seg){display:inline-flex;gap:2px;padding:3px;border:0;border-radius:6px;background:#f0f0ef;overflow:visible}
body.officelook :is(#view, .sheet-wrap) :is(.seg, .ui-tabs--seg, .v3-seg, .pw-seg, .rcd-show, .lm-seg) > :is(button, a, .ui-tab){min-height:30px;padding:4px 10px;border:0;border-radius:4px;background:none;color:#111111;font-size:14.5px;letter-spacing:0;text-transform:none;box-shadow:none}
body.officelook :is(#view, .sheet-wrap) :is(.seg, .lm-seg) > :is(button, a)[aria-pressed="true"]{background:#000000;color:#ffffff;font-weight:500}
@media (pointer:coarse){ body.officelook :is(#view, .sheet-wrap) :is(.chip, .ui-filter, .lm-chip, .seg > button, .seg > a, .v3-seg > button, .ui-tabs--seg .ui-tab){min-height:44px} }
/* counts on chips, tabs and rail: blue for own work, grey otherwise, red only when late (the rail and tab counts already carry .late) */
body.officelook :is(#view, .sheet-wrap) :is(.chip, .ui-filter) :is(.cnt, small, .ui-count){font-size:13px;opacity:.7;color:inherit;background:none}

/* F17: links in ink, underlined; deep blue only marks the current place and focus */
body.officelook :is(#view, .sheet-wrap) :is(a:not([class]), .linkbtn, .v3-link, .rcd-gtag, .dv-wh-h a){color:#111111;text-decoration:underline;text-underline-offset:3px}
body.officelook .sheet-wrap.gpo .gpo-tag{color:#111111}
/* G-5 + T9: view tabs in sentence case, 15 px; the current one in ink at 500 on a 2 px deep-blue line */
body.officelook #view.v3 .v3-tabs{gap:24px;border-bottom:1px solid #d9d9d6}
body.officelook #view.v3 .v3-tabs a{height:44px;font-size:15px;letter-spacing:0;text-transform:none;color:#4a4a4a;border-bottom-width:2px}
body.officelook #view.v3 .v3-tabs a.on{color:#111111;font-weight:500;border-bottom-color:#4986a0}
body.officelook #view.v3 .v3-subs a{font-size:15px;letter-spacing:0;text-transform:none;color:#4a4a4a}
body.officelook #view.v3 .v3-subs a.on{color:#111111;font-weight:500}
body.officelook #view.v3 :is(.v3-tabs, .v3-subs) .v3-cnt{min-width:20px;padding:1px 6px;border-radius:4px;background:#afcdd7;color:#111111;font-size:12px;font-weight:600}   /* Ryan 24 Nov 2026: the sidebar's light blue */
body.officelook #view.v3 :is(.v3-tabs, .v3-subs) .v3-cnt.need, body.officelook #view.v3 :is(.v3-tabs, .v3-subs) .tab-cnt:not(.late){background:#afcdd7}
body.officelook #view.v3 :is(.v3-tabs, .v3-subs) :is(.v3-cnt, .tab-cnt).late{background:#b3261e;color:#ffffff}
body.officelook #view.v3 .v3-pnav{text-transform:none;letter-spacing:0}
body.officelook #view.v3 .v3-pnav b{font-weight:500}
/* F22: no shadows. Forecast's chart cards are panels: 1 px Bb Gray edge, 8 px, no lift on hover */
body.officelook :is(#view, .sheet-wrap) .fc-cc{border:0;border-radius:8px;box-shadow:inset 0 0 0 1px #d9d9d6;transform:none;transition:none}
body.officelook :is(#view, .sheet-wrap) .fc-cc:hover{box-shadow:inset 0 0 0 1px #d9d9d6;transform:none}
body.officelook :is(.sheet-wrap .sheet, .v3-pk, .gbp, .rt-menu, .dv-pop){box-shadow:none}
/* Origin flags are back (Ryan 24 Nov 2026, "missing my Origin flags"; replaces F21's no-flag rule): the flag picture shows,
   the two-letter code that stood in for it does not. Colour codes stay 12 px squares, never a coloured left border (F25). */
.flagcc{display:none}

/* ---------- C. buttons ---------- */
/* F9: no outline buttons. Secondary = Bb Gray fill, ink text; quiet = an underlined word */
body.officelook :is(#view, .sheet-wrap) :is(.btn, .ui-btn){border-radius:6px;font-size:14px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;min-height:36px;box-shadow:none}
body.officelook :is(#view, .sheet-wrap) :is(.btn.ghost, .btn.small, .ui-btn--secondary, .ui-btn--compact):not(.danger):not(.ui-btn--danger):not(.ui-btn--ghost):not(:disabled):not([aria-disabled="true"]),
body.officelook #view.v3-flat .btn:not(.v3-pri):not(.danger):not(.ghost):not(:disabled),
body.officelook #view.v3-flat .ui-btn:not(.v3-pri):not(.ui-btn--danger):not(.ui-btn--ghost):not(:disabled):not([aria-disabled="true"]){
  --_bg:#d9d9d6;--_fg:#111111;--_bd:#d9d9d6;--_hov:#d9d9d6;--_prs:#d9d9d6;background:#d9d9d6;border:1px solid #d9d9d6;color:#111111}
@media (hover:hover){
  body.officelook :is(#view, .sheet-wrap) :is(.btn.ghost, .btn.small, .ui-btn--secondary, .ui-btn--compact):not(.danger):not(.ui-btn--danger):not(.ui-btn--ghost):not(:disabled):hover,
  body.officelook #view.v3-flat :is(.btn:not(.v3-pri):not(.danger), .ui-btn:not(.v3-pri):not(.ui-btn--danger):not(.ui-btn--ghost)):not(:disabled):hover{background:#d9d9d6;box-shadow:inset 0 0 0 1px #111111}
}
/* F10: the main button: black, 14 px / 500 uppercase, 6 px corners, 36 px */
body.officelook #view.v3-flat :is(.btn, .ui-btn).v3-pri{background:#000000;border-color:#000000;color:#ffffff}
body.officelook :is(#view, .sheet-wrap) :is(.btn, .ui-btn):disabled, body.officelook :is(#view, .sheet-wrap) .ui-btn[aria-disabled="true"]{background:#b5b5b1;border-color:#b5b5b1;color:#ffffff}
body.officelook :is(#view, .sheet-wrap) .ui-btn--ghost{background:none;border-color:transparent;color:#111111}
@media (pointer:coarse){ body.officelook :is(#view, .sheet-wrap) :is(.btn, .ui-btn, .btn.small, .ui-btn--compact){min-height:44px} }
/* row actions on touch: 8 px between them */
@media (pointer:coarse){ body.officelook :is(#view, .sheet-wrap) td :is(.btn, .ui-btn) + :is(.btn, .ui-btn){margin-left:8px} }
/* the problem note's Try again keeps its own secondary look */
body.officelook :is(#view, .sheet-wrap) .problem .btn.btn{background:#d9d9d6;border:0;color:#111111}

/* ---------- E. page anatomy ---------- */
/* F18: the page head. h1 26 px / 500, at most two lines; one intro line, 16 px muted; no kicker above it */
body.officelook #view.v3 .v3-lead{display:flex;flex-direction:column;gap:4px;margin:24px 0 24px}
body.officelook #view.v3 .v3-lead[hidden]{display:none}
body.officelook #view.v3 .v3-h{order:0;margin:0;max-width:none;font-size:26px;font-weight:500;line-height:1.25;letter-spacing:0;color:#111111;outline:none}
body.officelook #view.v3 .v3-intro{order:1;margin:0;font-size:16px;line-height:1.45;color:#4a4a4a}
body.officelook #view.v3 .v3-intro .v3-meta{margin:0;font-size:16px;letter-spacing:0;text-transform:none;color:#4a4a4a}
body.officelook #view.v3 .v3-intro .v3-meta:empty{display:none}
/* G-8: the Updated time ends the intro line after a middot */
body.officelook #view.v3 .v3-intro .v3-meta:not(:empty) + .v3-upd:not(:empty)::before{content:" · "}
body.officelook #view.v3 .v3-upd .linkb{border:0;background:none;padding:0;color:#111111;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
/* T6: "How this works" ends the intro line, a quiet ink link after a middot; it opens the screen's how-to text in a dialog */
body.officelook #view.v3 .v3-intro .v3-how{border:0;background:none;padding:0;color:#111111;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body.officelook #view.v3 .v3-intro .v3-how[hidden]{display:none}
body.officelook #view.v3 .v3-intro :is(.v3-meta, .v3-upd):not(:empty) ~ .v3-how::before{content:"·";display:inline-block;margin:0 .3em;color:#4a4a4a;text-decoration:none}
.v3-howbody{margin-top:12px;font-size:16px;line-height:1.5;color:#111111}
.v3-howbody p{margin:0 0 12px}
body.officelook #view.v3-flat .v3-lead{margin:24px 0 24px}
body.officelook #view.v3-flat.o-nohead:not(:has(> .v3-tabs, > .dv-role)) > .v3-lead{margin-top:8px}
/* the Dashboard's own date line keeps the date; its updated time and Refresh link go (the intro line carries them, G-7) */
body.officelook #view .dv-v3 .dv-top .dv-refresh{display:none}
/* T3: one section head. Label 12 px uppercase .12em muted 500, over a 1 px black rule, 12 px to the content */
body.officelook :is(#view.v3-look, .sheet-wrap) :is(.v3-sec, .card > h2:first-child, .ui-card > h2:first-child, .card > header h2, .card > .row.spread:first-child h2, .card > .su-head h2, .gc-blk > .row.spread > h4, .dv-ch h2, .dv-ch h3){
  font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#4a4a4a;line-height:1.4}
body.officelook :is(#view.v3-look, .sheet-wrap) :is(.v3-sec, .card > h2:first-child, .ui-card > h2:first-child, .card > .row.spread:first-child, .gc-blk > .row.spread){border-bottom:1px solid #000000;padding-bottom:6px;margin-bottom:12px}
body.officelook :is(#view.v3-look, .sheet-wrap) :is(.v3-sec, .card h2, .gc-blk h4) :is(.hint, small, span:not(.badge):not(.st)){font-size:13px;letter-spacing:0;text-transform:none;color:#4a4a4a}
/* T7(c), F20: panels and cards. 8 px, a 1 px Bb Gray edge drawn inside, no black outer edge, 24 px inside */
body.officelook #view.v3-look :is(.card, .ui-card){border:0;border-radius:8px;box-shadow:inset 0 0 0 1px #d9d9d6}
body.officelook #view.v3-look .card.quiet{background:#f0f0ef;box-shadow:none}

/* ---------- F. figures ---------- */
/* F20: one tile anatomy: label, value 20 px / 600, one context line that wraps. Rows that fill: 4 across (3 for a set of 3 or 6), 2 under 1024 px */
body.officelook #view.v3-look .v3-kpis{border:0;border-radius:0;overflow:visible;background:none;box-shadow:none}
body.officelook #view.v3-look :is(.v3-kpis > .stats, .stats){display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 24px;border:0;background:none}
body.officelook #view.v3-look .v3-kpis > .stats{margin:0}
body.officelook #view.v3-look :is(.v3-kpis > .stats, .stats):is(:has(> :nth-child(3):last-child), :has(> :nth-child(6):last-child)){grid-template-columns:repeat(3,minmax(0,1fr))}
body.officelook #view.v3-look :is(.v3-kpis > .stats, .stats):has(> :nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
body.officelook #view.v3-look :is(.v3-kpis > .stats, .stats) > .stat{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0;padding:16px 18px;border:0;border-radius:8px;background:#ffffff;box-shadow:inset 0 0 0 1px #d9d9d6}
body.officelook #view.v3-look :is(.v3-kpis, .stats) .stat > span{order:-1;font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#4a4a4a;white-space:normal}
body.officelook #view.v3-look :is(.v3-kpis, .stats) .stat > b{font-size:20px;font-weight:600;line-height:1.3;letter-spacing:0;white-space:nowrap}
body.officelook #view.v3-look :is(.v3-kpis, .stats) .stat > b small{margin-left:4px;font-size:14px;font-weight:400;color:#4a4a4a}
body.officelook #view.v3-look :is(.v3-kpis, .stats) .stat > small{font-size:14px;line-height:1.4;color:#4a4a4a;white-space:normal;overflow:visible;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
body.officelook #view.v3-look :is(.v3-kpis, .stats) a.stat:hover{box-shadow:inset 0 0 0 1px #111111;background:#ffffff}
body.officelook #view.v3-look :is(.v3-kpis, .stats) .stat.need{background:#afcdd7;box-shadow:none}
/* Dashboard figures: the same tiles */
body.officelook #view .dv-v3 .dv-kpis{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));border:0;border-radius:0;overflow:visible;background:none}
body.officelook #view .dv-v3 .dv-kpis > .dv-kpi{padding:16px 18px;border:0;border-radius:8px;background:#ffffff;box-shadow:inset 0 0 0 1px #d9d9d6}
@media (max-width:1023.98px){
  body.officelook #view.v3-look :is(.v3-kpis > .stats, .stats), body.officelook #view.v3-look :is(.v3-kpis > .stats, .stats):is(:has(> :nth-child(3):last-child), :has(> :nth-child(6):last-child)),
  body.officelook #view .dv-v3 .dv-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1600px){ body.officelook #view .dv-v3 .dv-kpis{grid-template-columns:repeat(6,minmax(0,1fr))} }

/* F14, T5: sheets. Rows 15 px; the name in ink; the row under the pointer is the well */
body.officelook :is(#view.v3-look, .sheet-wrap) .tablewrap{border:0;border-radius:8px;box-shadow:inset 0 0 0 1px #d9d9d6;overflow:auto}
body.officelook :is(#view.v3-look, .sheet-wrap) .tablewrap > table{background:none}
body.officelook :is(#view.v3-look, .sheet-wrap) td b{font-weight:500;color:#111111}

/* ---------- G. states ---------- */
/* F24: empty states. In a list: a muted row inside the sheet. On a page or panel: the tint, at the left edge, top-aligned, at most 560 px, never a box in a box */
body.officelook :is(#view, .sheet-wrap) :is(.empty, .ui-empty, .card.empty){display:flex;flex-direction:column;gap:8px;align-items:flex-start;max-width:560px;margin:0;padding:28px;border:0;border-radius:8px;background:#f2f1ec;color:#4a4a4a;text-align:left;box-shadow:none}
body.officelook :is(#view, .sheet-wrap) :is(.empty, .ui-empty) :is(b, h3, strong){font-size:17px;font-weight:500;color:#111111}
body.officelook :is(#view, .sheet-wrap) :is(.empty, .ui-empty) svg{width:28px;height:28px;opacity:1}
body.officelook :is(#view, .sheet-wrap) .tablewrap > .empty{max-width:none;border-radius:0;background:none;padding:14px 10px}
body.officelook :is(#view, .sheet-wrap) :is(.card, .ui-card) :is(.empty, .ui-empty){background:none;padding:14px 0;max-width:none}
body.officelook :is(#view, .sheet-wrap) td.empty, body.officelook :is(#view, .sheet-wrap) tr.empty td{display:table-cell;padding:14px 10px;background:none;color:#4a4a4a}
/* F23: dialogs 480 px (560 when they compare or hold a list), title 20 px / 500; forms and side panels keep their widths
   (the docked Cropster roast panel .rcv-wrap and Compare roasts .rcd-cmp-wrap are side panels: app.css sizes them) */
@media (min-width:700px){
  body.officelook .sheet-wrap:not(.v3-side):not(.rcv-wrap):not(.rcd-cmp-wrap):not(.v3-form):not(.hs-wrap):not(.qa-wrap) > .sheet{width:min(480px,100%);border-radius:8px}
  body.officelook .sheet-wrap:not(.v3-side):not(.rcv-wrap):not(.rcd-cmp-wrap):not(.v3-form):not(.hs-wrap):not(.qa-wrap) > .sheet:has(table, .tablewrap, .g2, .grid, .row2, .fields, .pk-grid, canvas, svg.chart){width:min(560px,100%)}
  body.officelook .sheet-wrap:not(.v3-side):not(.rcv-wrap):not(.rcd-cmp-wrap):not(.v3-form):not(.hs-wrap):not(.qa-wrap) > .sheet:has(table, .tablewrap):has(th:nth-child(4)){width:min(880px,100%)}
  /* Ryan 23 Nov: Green bean prep keeps its earlier width (880 px), so the pallet details sit beside each origin */
  body.officelook .sheet-wrap:not(.v3-side):not(.rcv-wrap):not(.rcd-cmp-wrap):not(.v3-form):not(.hs-wrap):not(.qa-wrap) > .sheet:has(.prd-prep){width:min(880px,100%)}
}
/* Ryan 23 Nov 2026 (evening, Green moisture on a 2000 px screen and the iPad Pro 12.9): "for laptop and desktop should be bigger".
   From 1100 px a pop-out keeps the share of the screen it has on the iPad Pro (about 42 %) instead of F23's fixed 480 / 560 px:
   a dialog clamp(520, 42vw, 880); one that holds a list or compares clamp(600, 50vw, 1040); a form (.v3-form, 760 today) and a
   wide table / Green bean prep (880 today) never get narrower than they are today. Padding grows with it (24 → 36 px). Under
   1100 px nothing changes (iPad, phone). Side panels (.v3-side) and the search box (.hs-wrap) keep their sizes. At most 92 % of
   the window high; the body scrolls and the Save / Cancel bar stays pinned (pinPanel).
   Mouse / trackpad screens only: the iPad Pro in landscape (1366 px, touch) keeps today's sizes — "iPad and phone: no change". */
@media (min-width:1100px) and (hover:hover) and (pointer:fine){
  body.officelook .sheet-wrap:not(.v3-side):not(.rcv-wrap):not(.rcd-cmp-wrap):not(.hs-wrap) > .sheet{--sp:clamp(24px, 1.8vw, 36px);padding:var(--sp);max-height:92vh;max-height:92dvh}
  body.officelook .sheet-wrap:not(.v3-side):not(.rcv-wrap):not(.rcd-cmp-wrap):not(.v3-form):not(.hs-wrap):not(.qa-wrap) > .sheet{width:min(clamp(520px, 42vw, 880px), 100%)}
  body.officelook .sheet-wrap:not(.v3-side):not(.rcv-wrap):not(.rcd-cmp-wrap):not(.v3-form):not(.hs-wrap):not(.qa-wrap) > .sheet:has(table, .tablewrap, .g2, .grid, .row2, .fields, .pk-grid, canvas, svg.chart){width:min(clamp(600px, 50vw, 1040px), 100%)}
  body.officelook .sheet-wrap:not(.v3-side):not(.rcv-wrap):not(.rcd-cmp-wrap):not(.v3-form):not(.hs-wrap):not(.qa-wrap) > .sheet:is(:has(table, .tablewrap):has(th:nth-child(4)), :has(.prd-prep)){width:min(clamp(880px, 50vw, 1040px), 100%)}
  body.v3look .sheet-wrap.v3-form:not(.v3-side) > .sheet{width:min(clamp(760px, 50vw, 1040px), 100%)}
  /* Accept (#55, 600 px today) grows like a dialog, never narrower than it was */
  body.v3look .sheet-wrap.v3-form.qa-wrap:not(.v3-side) > .sheet{width:min(clamp(600px, 42vw, 880px), 100%)}
}
/* a big screen: the bigger panel gets a little more room per row, not just more empty space (type stays on the v2.4 tokens) */
@media (min-width:1500px) and (hover:hover) and (pointer:fine){
  body.officelook .sheet-wrap:not(.v3-side):not(.rcv-wrap):not(.rcd-cmp-wrap):not(.hs-wrap) > .sheet :is(td, th){padding-top:10px;padding-bottom:10px}
  body.officelook .sheet-wrap:not(.v3-side):not(.rcv-wrap):not(.rcd-cmp-wrap):not(.hs-wrap) > .sheet td input[type=number]{min-width:7em}
}
body.officelook .sheet-wrap .sheet :is(.sheet-head h2, > h2:first-child, > .row.spread:first-child h2){font-size:20px;font-weight:500;letter-spacing:0;text-transform:none;line-height:1.3}

/* ---------- H. fields ---------- */
/* F19: fields on the well, no border, 6 px, 16 px, a deep-blue ring; 38 px (44 on touch) */
body.officelook :is(#view, .sheet-wrap) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]), select, textarea, .v3-pk-btn, .gfind, .gbp-box){
  border:0;border-radius:6px;background:#f0f0ef;color:#111111;font-size:16px;box-shadow:none}
body.officelook :is(#view, .sheet-wrap) :is(input, select, textarea):focus-visible, body.officelook :is(#view, .sheet-wrap) .v3-pk-btn:focus-visible{outline:2px solid #4986a0;outline-offset:0;background:#ffffff}
body.officelook :is(#view, .sheet-wrap) :is(input, select, textarea):disabled{color:#4a4a4a;background:#f0f0ef;opacity:.7}
body.officelook :is(#view, .sheet-wrap) :is(input, select, textarea)[aria-invalid="true"], body.officelook :is(#view, .sheet-wrap) .v3-lc.v3-bad :is(input, .v3-pk-btn, .gbp-box){box-shadow:inset 0 0 0 1px #b3261e}
/* labels above the field, 14 px muted */
body.officelook :is(#view, .sheet-wrap) .field > label, body.officelook :is(#view, .sheet-wrap) label.field{font-size:14px;color:#4a4a4a}
/* F31: checkboxes 16 px in ink; the volume slider in ink */
body.officelook :is(#view, .sheet-wrap) input[type=checkbox]{width:16px;height:16px;accent-color:#000000}
body.officelook :is(#view, .sheet-wrap) input[type=radio], body.officelook :is(#view, .sheet-wrap) input[type=range]{accent-color:#000000}

/* ---------- J. motion ---------- */
/* G-15: reduced motion. The rail opens without the slide, placeholders without the fade, no smooth scroll, nothing slides in */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  body.office :not(.ph-page), body.office ::before, body.office ::after{animation-duration:0s!important;transition-duration:0s!important;transition-delay:0s!important}
}

/* ---------- K. phone (under 700 px) ---------- */
@media (max-width:699.98px){
  /* F29: the phone type scale. h1 22 / 500, tile value 22, labels 13, intro and helper 14, rows 15, fields 16 */
  body.officelook #view.v3 .v3-h{font-size:22px}
  body.officelook #view.v3 .v3-intro, body.officelook #view.v3 .v3-intro .v3-meta{font-size:14px}
  body.officelook #view.v3 .v3-lead{margin:16px 0 16px}
  body.officelook #view.v3-look :is(.v3-kpis, .stats) .stat > b{font-size:22px}
  body.officelook #view.v3-look :is(.v3-kpis, .stats) .stat > span{font-size:13px;letter-spacing:.06em}
  /* the title band: one row, no Updated pill (the intro line carries it); search, scan and bell as 44 px icon buttons */
  body.officelook #view.v3 .v3-top{flex-wrap:nowrap;border-bottom:1px solid #d9d9d6}
  body.officelook #view.v3 .v3-top h1{font-size:20px;font-weight:500}
  body.officelook #view.v3 .v3-top .tacts{flex-wrap:nowrap;gap:8px}
  body.officelook #view.v3 .v3-top .tact.tstamp, body.officelook #view.v3 .v3-top .ck{display:none!important}
  body.officelook #view.v3 .v3-top .tact{width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:6px;background:#f0f0ef;color:#111111;display:grid;place-items:center;box-shadow:none}
  body.officelook #view.v3 .v3-top .tact > span, body.officelook #view.v3 .v3-top .tact kbd{display:none}
  /* the pick bar in sentence case */
  body.officelook #view.v3 .v3-pnav{font-size:15px;border-radius:6px;background:#f0f0ef;border:0}
  /* tab bar: one-word labels on one line */
  body.office .tabbar a span{white-space:nowrap;overflow:hidden;text-overflow:clip}
  /* F22: the full-height sheet has a 1 px black edge, no shadow */
  body.officelook .sheet-wrap .sheet{box-shadow:none}
}

/* ---------- C. pieces the first pass missed (found by checking each screen) ---------- */
/* icon buttons, date pickers and the date stepper: on the well, no edge, 6 px (F9, F19) */
body.officelook :is(#view, .sheet-wrap) :is(.ui-iconbtn, .rt-d1){border:0;border-radius:6px;background:#f0f0ef;color:#111111;box-shadow:none}
body.officelook :is(#view, .sheet-wrap) :is(.ui-iconbtn, .rt-d1):hover{background:#d9d9d6}
body.officelook :is(#view, .sheet-wrap) .gfind{min-height:38px;height:auto}
@media (pointer:coarse){ body.officelook :is(#view, .sheet-wrap) .gfind{min-height:44px} }
/* T4: the toolbar over a sheet is one row of fields on the well, not cells between two black rules */
body.officelook :is(#view.v3-look, .sheet-wrap) .v3-tb{gap:8px;border:0;background:none}
body.officelook :is(#view.v3-look, .sheet-wrap) .v3-cell{min-height:38px;padding:0 12px;border:0;border-radius:6px;background:#f0f0ef}
body.officelook :is(#view.v3-look, .sheet-wrap) .v3-cell:is(.v3-cell--fit, .v3-cell--dots){background:none;padding:0}
body.officelook :is(#view.v3-look, .sheet-wrap) .v3-cell :is(input, select){background:none}
body.officelook :is(#view.v3-look, .sheet-wrap) .v3-cell:focus-within{outline:2px solid #4986a0;outline-offset:0}
@media (pointer:coarse){ body.officelook :is(#view.v3-look, .sheet-wrap) .v3-cell{min-height:44px} }
/* switches: Forecast's business switch and the Dashboard chart's table toggle (F8) */
body.officelook #view .fc-seg{border:0;border-radius:6px;background:#f0f0ef;padding:3px;gap:2px}
body.officelook #view .fc-seg .fc-segb{border-radius:4px;color:#111111}
body.officelook #view .fc-seg .fc-segb[aria-pressed="true"]{background:#000000;color:#ffffff;font-weight:500}
body.officelook #view .dv-tt{border:0;border-radius:6px;background:#f0f0ef;color:#111111}
body.officelook #view .dv-tt[aria-pressed="true"]{background:#000000;color:#ffffff}
/* T9: view tabs in sentence case (Dashboard Main / Roasting / Logistics, Forecast's views) */
body.officelook #view.v3-flat .dv-role button{font-size:15px;letter-spacing:0;text-transform:none}
body.officelook #view .fc-tab{font-size:15px;font-weight:400;letter-spacing:0;text-transform:none;color:#4a4a4a;box-shadow:inset 0 -2px 0 transparent}
body.officelook #view .fc-tab[aria-selected="true"]{color:#111111;font-weight:500;box-shadow:inset 0 -2px 0 #4986a0}
/* T7(d): two boxes deep at most: a list inside a panel has no edge of its own; a centred empty card sits at the left */
body.officelook #view.v3-look :is(.card, .ui-card) .tablewrap{box-shadow:none;border-radius:0}
body.officelook #view.v3-look .plan-empty{text-align:left}
/* F6: a neutral note is a muted line: no rule, no box */
body.officelook :is(#view, .sheet-wrap) :is(.note, .selbar58){padding:0;border:0;background:none;color:#4a4a4a;font-size:14px}
body.officelook #view .dv-seg{display:inline-flex;gap:2px;padding:3px;border:0;border-radius:6px;background:#f0f0ef}
body.officelook #view .dv-seg > button{min-height:30px;padding:4px 10px;border:0;border-radius:4px;background:none;color:#111111;font-size:14.5px;box-shadow:none}
body.officelook #view .dv-seg > button[aria-pressed="true"]{background:#000000;color:#ffffff;font-weight:500}
@media (pointer:coarse){ body.officelook #view .dv-seg > button{min-height:44px} }
/* F14: a wide sheet scrolls inside its edge with the first column pinned (700 px and up; phones keep their stacked rows) */
@media (min-width:700px){
  :where(body.officelook) :where(#view.v3-look) .tablewrap > table > :is(thead, tbody) > tr > :first-child{position:sticky;left:0;z-index:1;background:#ffffff}
  :where(body.officelook) :where(#view.v3-look) .tablewrap > table > thead > tr > :first-child{z-index:4}
}
/* F17: the Dashboard's go-to links in ink too */
body.officelook #view.v3-flat .dv-v3 :is(.dv-ch a.t, .dv-lk){color:#111111}
/* the pick bar reads in sentence case at every width */
body.officelook #view.v3 .v3-pnav b{font-size:15px;letter-spacing:0;text-transform:none}
/* review fixes: the PIN page's Sign out shows on phones only; one clear button in a search box; a screen with no visible
   headline keeps the Updated stamp (quiet, no pill) in the top bar or the phone title band, so stale and offline still show */
@media (min-width:700px){ body.office .o-phone-only{display:none!important} }
body.officelook .gfind input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}
body.office:has(#view .v3-lead[hidden]) :is(.obar, #view.v3 .v3-top) .tact.tstamp{display:inline-flex!important;align-items:center;gap:4px;width:auto;height:auto;min-height:0;padding:0 4px;border:0;border-radius:0;background:none;color:#4a4a4a;font-size:14px;box-shadow:none;text-decoration:underline;text-underline-offset:3px}

/* ---------- PR 3 (audit 22 Nov): wording and structure ---------- */
/* F6, G-7: one light-blue To do block per screen, at the top of the content, holding every needs-you line (template .next / .todo) */
body.officelook #view .dv-v3 .dv-act.next:not([hidden]){display:block;margin:0 0 24px;padding:12px 14px;border:0;border-radius:8px;background:#afcdd7;box-shadow:none}
body.officelook #view .dv-v3 .dv-act.next .dv-todo-h{padding:0 0 8px}
body.officelook #view .dv-v3 .dv-act.next .label{font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#111111}
body.officelook #view .dv-v3 .dv-act.next .todo{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
body.officelook #view .dv-v3 .dv-act.next .todo li{display:flex;align-items:center;gap:12px;padding:8px 0;font-size:15px;color:#111111;border-top:1px solid rgba(17,17,17,.12)}
body.officelook #view .dv-v3 .dv-act.next .todo li:first-child{border-top:0}
body.officelook #view .dv-v3 .dv-act.next .todo .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
body.officelook #view .dv-v3 .dv-act.next .todo li.bad .t{color:#b3261e;font-weight:500}
body.officelook #view .dv-v3 .dv-act.next .todo small{font-size:14px;color:#111111;opacity:.75}
body.officelook #view .dv-v3 .dv-act.next .dv-lk{flex:none;min-height:44px;display:inline-flex;align-items:center;color:#111111;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
/* F20: at most 4 figures, in rows that fill (4 across, 3 or 2 when fewer, 2 under 1024px) */
body.officelook #view .dv-v3 .dv-kpis.dv-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
body.officelook #view .dv-v3 .dv-kpis.dv-kpis:has(> .dv-kpi:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
body.officelook #view .dv-v3 .dv-kpis.dv-kpis:has(> .dv-kpi:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:1600px){ body.officelook #view .dv-v3 .dv-kpis.dv-kpis{grid-template-columns:repeat(4,minmax(0,1fr))} }
@media (max-width:1023.98px){ body.officelook #view .dv-v3 .dv-kpis.dv-kpis{grid-template-columns:repeat(2,minmax(0,1fr))} }
/* T8: a quiet day collapses the figures to one muted line */
body.officelook #view .dv-v3 .dv-kpis.dv-kpis.quiet{display:block;margin:0 0 24px}
body.officelook #view .dv-v3 .dv-quiet{margin:0;font-size:16px;color:#4a4a4a}
/* T8: Maintenance due on the Roaster board with nothing due is one muted line */
body.officelook #view .mt-quiet{margin:0 0 12px;color:#4a4a4a}
body.officelook #view .mt-quiet a{color:#111111;white-space:nowrap}
/* T7 (d): two boxes deep at most. The Roaster board's side panels hold rows split by a rule, not filled boxes */
body.officelook #view .board-side .jobs{display:flex;flex-direction:column;gap:0}
body.officelook #view .board-side .job{padding:8px 0;border-radius:0;background:none;border-top:1px solid #d9d9d6}
body.officelook #view .board-side .job:first-child{border-top:0}
body.officelook #view .board-side .job.done{color:#4a4a4a}
/* T3: a panel's label on the left, its go-to link on the right; a link never stands in for the heading */
body.officelook #view .board-side .prd-sh{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
body.officelook #view .board-side .prd-sh a{font-size:14px;color:#111111;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
body.officelook #view .mt-dh .mt-all{font-size:14px;color:#111111;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}

/* ---------- The page's tab row is a bar (Ryan 23 Nov 2026, evening: "spacing match to the top and the line stretch out") ----------
   From 700 px (the Office frame, no page head) the first tab row sits flush under the 56 px top bar as a 56 px bar; its line runs
   from the rail's edge to the window's edge like the top bar's, and its labels start 20 px in, under the top bar's own content.
   office.js measures #view and sets --o-bl / --o-br / --o-bt (how far the content box sits from the rail's edge, the window's edge
   and the top bar), so the bar reaches them whatever the page's width.
   • a module with one row of tabs (B2B + STG, Master Data, …): the tabs are the bar;
   • a module with two levels (Production, Green beans, Settings): row 1 = the sections (uppercase, letter-spaced), row 2 = the open
     section's sub-tabs flush under it, 48 px, sentence case (Ryan 24 Nov 2026, "change back to this"); both underlined in ink.
     Under 1024 px the "Section › page" pick bar instead;
   • a module with no tabs (Dashboard, Forecast, All apps): no bar, the page head keeps its spacing. */
@media (min-width:600px) and (max-width:1023.98px){
  body.office #view.v3:not(.v3-flat) > :is(.v3-tabs, .v3-subs){display:none}
  body.office #view.v3:not(.v3-flat) > .v3-pnav{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin:16px 0 0;padding:0 14px;
    border:0;border-radius:6px;background:#f0f0ef;color:#111111;font:inherit;font-size:15px;text-align:left;cursor:pointer}
}
@media (min-width:700px){
  /* the bar: edge to edge, white, one Bb Gray line; links 56 px, the chosen one with its 2 px deep-blue line sitting on it.
     No margin-top here (separate selectors, no :is): the flush rules below set it */
  body.officelook #view.v3.o-nohead > .v3-tabs, body.officelook #view.v3.o-nohead > .v3-subs:not(.none){display:flex;align-items:stretch;gap:24px;height:auto;
    margin-left:calc(-1 * var(--o-bl, 0px));margin-right:calc(-1 * var(--o-br, 0px));margin-bottom:0;padding:0 20px;border-bottom:1px solid #d9d9d6;background:#ffffff;box-sizing:border-box}
  body.officelook #view.v3.o-nohead > :is(.v3-tabs, .v3-subs) > a{height:56px;margin-bottom:-1px;font-size:15px;color:#4a4a4a;border-bottom:2px solid transparent}
  body.officelook #view.v3.o-nohead > :is(.v3-tabs, .v3-subs) > a.on{color:#111111;font-weight:500;border-bottom-color:#4986a0}
  /* two levels: row 1 uppercase 14 px with letter spacing, row 2 sentence case 14 px; the chosen one underlined in ink */
  body.officelook #view.v3.o-nohead:not(.v3-flat) > .v3-tabs > a{font-size:14px;letter-spacing:.14em;text-transform:uppercase}
  body.officelook #view.v3.o-nohead:not(.v3-flat) > .v3-subs > a{font-size:14px}
  body.officelook #view.v3.o-nohead:not(.v3-flat) > :is(.v3-tabs, .v3-subs) > a.on{border-bottom-color:#111111}
  body.officelook #view.v3.o-nohead:not(.v3-flat) > :is(.v3-tabs, .v3-subs) .v3-cnt{letter-spacing:0}
  /* flush under the top bar: the first bar takes back the page's top padding (v3.css already drops it when there is a tab row) */
  body.officelook #view.v3.o-nohead > .v3-tabs{margin-top:calc(-1 * var(--o-bt, 0px))}
  /* a one-row module (B2B + STG, Master Data, …): its tab row is the bar from 700 px; the page head starts 24 px under it */
  body.officelook #view.v3.v3-flat.o-nohead > .v3-tabs:has(+ .v3-subs.none){margin-bottom:24px}
  body.officelook #view.v3.v3-flat.o-nohead > .v3-tabs:has(+ .v3-subs.none) ~ .v3-lead{margin-top:0}
  body.officelook #view.v3.v3-flat.o-nohead > .v3-tabs:has(+ .v3-subs.none) ~ .v3-lead[hidden] + #modBody{margin-top:0}
}
@media (min-width:1024px){
  /* two-level modules: the bars show from 1024 px (under it the pick bar); the head starts 24 px under the last one */
  body.officelook #view.v3.o-nohead:not(.v3-flat) > .v3-tabs:has(+ .v3-subs.none){margin-bottom:24px}
  body.officelook #view.v3.o-nohead:not(.v3-flat) > .v3-tabs:has(+ .v3-subs.none) ~ .v3-lead{margin-top:0}
  body.officelook #view.v3.o-nohead:not(.v3-flat) > .v3-tabs:has(+ .v3-subs.none) ~ .v3-lead[hidden] + #modBody{margin-top:0}
  /* Ryan 24 Nov 2026 ("balance the gap … shorter"): row 1 50 px, row 2 40 px, the same 28 px between tabs in both rows */
  body.officelook #view.v3.o-nohead:not(.v3-flat) > .v3-tabs > a{height:50px}
  body.officelook #view.v3.o-nohead:not(.v3-flat) > .v3-subs:not(.none) > a{height:40px}
  body.officelook #view.v3.o-nohead:not(.v3-flat) > :is(.v3-tabs, .v3-subs){gap:28px}
  /* the last bar of a two-row page: the head starts 24 px under it */
  body.officelook #view.v3.o-nohead:not(.v3-flat) > .v3-subs:not(.none){margin-bottom:24px}
  body.officelook #view.v3.o-nohead:not(.v3-flat) > .v3-subs:not(.none) ~ .v3-lead{margin-top:0}
  body.officelook #view.v3.o-nohead:not(.v3-flat) > .v3-subs:not(.none) ~ .v3-lead[hidden] + #modBody{margin-top:0}
}

/* Dashboards · date range + Sold by product (23 Nov 2026, sold.js). Office values only: ink #111111, line #d9d9d6, well #f0f0ef,
   muted #4a4a4a, deep blue #4986a0 (focus / the chosen days' edge), chart series tokens for the 12 px group squares. */
.rp{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.rp-btn, body.officelook :is(#view, #view.v3-look) .rp-btn{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 12px;background:#f0f0ef;color:#111111;border:0;
  border-radius:6px;box-shadow:none;font-size:15px;font-weight:400;text-transform:none;letter-spacing:0}
body.officelook :is(#view, #view.v3-look) .rp-btn:hover{background:#d9d9d6}
.rp-btn b{font-weight:500}
/* the panel sits outside the screen (so a live refresh never closes it): its two buttons are set here */
:is(.rp-pop, .rp-wrap) .rp-foot .btn{min-height:38px;padding:0 16px;border:0;border-radius:6px;box-shadow:none;font-size:14px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}
:is(.rp-pop, .rp-wrap) .rp-cancel{background:#f0f0ef;color:#111111}
:is(.rp-pop, .rp-wrap) .rp-cancel:hover{background:#d9d9d6}
:is(.rp-pop, .rp-wrap) .rp-apply{background:#111111;color:#ffffff}
:is(.rp-pop, .rp-wrap) .rp-apply[disabled]{opacity:.45;cursor:not-allowed}
.rp-pop input[type=date]{min-height:38px;padding:0 10px;border:0;border-radius:6px;background:#f0f0ef;color:#111111;font:inherit;font-size:16px}
.rp-ic{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.rp-by{margin:0}
.rp-pop{position:absolute;z-index:60;max-width:calc(100vw - 32px);padding:16px;background:#ffffff;border-radius:8px;box-shadow:inset 0 0 0 1px #d9d9d6}
.rp-pan{display:flex;gap:24px;align-items:flex-start}
.rp-pres{display:flex;flex-direction:column;gap:2px;min-width:150px}
.rp-pres button{min-height:36px;padding:0 12px;border:0;border-radius:6px;background:none;color:#111111;font:inherit;text-align:left;cursor:pointer}
.rp-pres button:hover{background:#f0f0ef}
.rp-pres button.on{background:#111111;color:#ffffff}
.rp-cal{min-width:0}
.rp-fields{display:flex;gap:12px;margin-bottom:12px}
.rp-fields .field{display:flex;flex-direction:column;gap:4px;margin:0}
.rp-fields .field span{font-size:13px;color:#4a4a4a}
.rp-fields input{width:160px}
.rp-mon{display:flex;align-items:center;justify-content:space-between;margin:4px 0 8px}
.rp-mon b{font-weight:500}
.rp-grid{display:grid;grid-template-columns:repeat(7,36px);gap:2px;font-variant-numeric:tabular-nums}
.rp-grid i{font-style:normal;font-size:12px;color:#4a4a4a;text-align:center;padding:4px 0}
.rp-grid button{height:36px;border:0;border-radius:4px;background:none;color:#111111;font:inherit;font-size:14px;cursor:pointer}
.rp-grid button:hover{background:#f0f0ef}
.rp-grid button.in{background:#f0f0ef}
.rp-grid button.end{background:#111111;color:#ffffff}
.rp-grid button.now:not(.end){box-shadow:inset 0 0 0 1px #4a4a4a}
.rp-pop :focus-visible,.rp-wrap :focus-visible{outline:2px solid #4986a0;outline-offset:2px}
.rp-n{margin:10px 0 0}
.rp-foot{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
@media (max-width:699px){
  .rp-pan{flex-direction:column;gap:16px}
  .rp-pres{flex-direction:row;flex-wrap:wrap;min-width:0}
  .rp-pres button{background:#f0f0ef;min-height:44px}
  .rp-fields input{width:100%}
  .rp-fields .field{flex:1;min-width:0}
  .rp-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
  .rp-grid button{height:44px}
  .rp-foot .btn{flex:1;min-height:44px}
}
@media (prefers-reduced-motion:reduce){.rp-pop{transition:none}}

.sold{margin-top:32px}
.sold .sold-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.sold-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 16px}
.sold-bar .sold-views{margin-left:auto}
.sold-bar .seg{margin:0}
.sold-figs{margin-bottom:16px!important}
.sold-quiet,.sold-unm{margin:0 0 12px}
.sold-tw{overflow-x:auto}
.sold-tbl{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.sold-tbl th{font-weight:500;white-space:nowrap}
.sold-tbl td.num,.sold-tbl th.num{text-align:right;white-space:nowrap}
.sold-tbl tr.sold-cat td{background:#f0f0ef;font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#111111}
.sold-dot{display:inline-block;width:12px;height:12px;border-radius:2px;margin-right:8px;vertical-align:-1px}
.sold-tbl tr.sold-row{cursor:pointer}
.sold-tbl tr.sold-row:hover td{background:#f0f0ef}
.sold-tbl tr.sold-row:focus-visible{outline:2px solid #4986a0;outline-offset:-2px}
.sold-tbl tr.sold-tot td{border-top:1px solid #111111;font-weight:500}
.sold-tbl th:first-child,.sold-tbl td:first-child{position:sticky;left:0;background:#ffffff;z-index:1}
.sold-tbl tr.sold-cat td:first-child,.sold-tbl tr.sold-row:hover td:first-child{background:#f0f0ef}
.sold .chips{display:flex;flex-wrap:wrap;gap:4px}
.sold .chip,.sold-wrap .chip{font-size:13px;padding:2px 8px;border-radius:4px;background:#f0f0ef;color:#111111;white-space:nowrap}
.sold-sh{width:120px}
.sold-bar-s{display:block;height:6px;border-radius:3px;background:#111111}
.sold-note{margin:12px 0 0}
.sold .stat.sk,.sold .sk{background:#f0f0ef;min-height:96px;border-radius:8px;box-shadow:none}
.sold .sk-tbl{min-height:220px;margin-top:16px}
.sold-wrap .sold-tbl{margin-bottom:8px}
@media (max-width:699px){
  .sold-bar .sold-views{margin-left:0}
  .sold-bar .seg{max-width:100%;overflow-x:auto}
  .sold-bar .sold-xl{min-height:44px}
}
/* (sold) the Office rules for headings, table cells and sheet buttons are more specific: these win over them */
body.officelook #view .sold h2.sold-head{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 12px;padding:0 0 6px;border-bottom:1px solid #111111;
  font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#111111}
body.officelook #view .sold .sold-tbl tr.sold-cat td{font-size:12px;font-weight:500;letter-spacing:.12em;padding-top:8px;padding-bottom:8px}
body.officelook .sheet-wrap.rp-wrap .rp-foot .rp-cancel{background:#f0f0ef;color:#111111}
body.officelook .sheet-wrap.rp-wrap .rp-foot .rp-apply{background:#111111;color:#ffffff}
/* (sold) month arrows are line icons (no ‹ › glyphs); 44 px touch targets on phones */
.rp-mv{display:grid;place-items:center;width:44px;height:36px;border:0;border-radius:6px;background:none;color:#111111;cursor:pointer}
.rp-mv:hover{background:#f0f0ef}
@media (max-width:699px),(pointer:coarse){
  .rp-mv{height:44px}
  body.officelook :is(#view, #view.v3-look) .rp-btn, .rp-by button{min-height:44px}
}
/* (sold) calendar tidy (Ryan 23 Nov): the calendar is as wide as the From / To boxes, the month row and Cancel / Apply line up with it */
@media (min-width:700px){
  .rp-pop{padding:16px 20px}
  .rp-pan{gap:20px}
  .rp-cal{width:332px}
  .rp-fields{gap:12px}
  .rp-fields .field{flex:1;min-width:0}
  .rp-fields input{width:100%}
  .rp-mon{margin:8px 0 6px}
  .rp-mon .rp-mv{width:36px}
  .rp-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
  .rp-grid button{height:38px}
  .rp-n{margin:8px 0 0}
  .rp-foot{margin-top:12px}
}

/* Part 4 of Hub-Quality-Round-2 (Ryan 24 Nov 2026): page buttons at the right, on every screen, main button last.
   • the page head (BB.v3.acts): the h1 and the intro line at the left, the buttons at the right, bottom-aligned with the intro;
     when the head is too narrow they drop under it and stay right-aligned (a phone may let the main button fill the width, v2.4 §16.7);
   • a section head that holds buttons (.v3-sech): the title at the left, the buttons at the right;
   • a dialog's foot (.sheet-foot): its buttons at the right. Buttons inside a table row and filter controls are not touched. */
body.officelook #view.v3 .v3-lead.has-acts{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;row-gap:4px;align-items:end}
body.officelook #view.v3 .v3-lead.has-acts > .v3-h{grid-column:1;grid-row:1}
body.officelook #view.v3 .v3-lead.has-acts > .v3-intro{grid-column:1;grid-row:2}
body.officelook #view.v3 .v3-lead.has-acts > .v3-lacts{grid-column:2;grid-row:1 / span 2;align-self:end}
.v3-lacts{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px}
@media (max-width:899.98px){
  body.officelook #view.v3 .v3-lead.has-acts{grid-template-columns:minmax(0,1fr)}
  body.officelook #view.v3 .v3-lead.has-acts > .v3-lacts{grid-column:1;grid-row:3;justify-self:end;margin-top:8px}
}
@media (max-width:599.98px){
  body.officelook #view.v3 .v3-lead.has-acts > .v3-lacts{justify-self:stretch}
  body.officelook #view.v3 .v3-lead.has-acts > .v3-lacts > .v3-pri{flex:1 1 auto}
}
.v3-sech{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 16px}
.v3-sech > :last-child:not(:first-child){margin-left:auto}
body.officelook .sheet .sheet-foot:not(.spread){justify-content:flex-end}

/* Quality (Ryan 24 Nov 2026): the green bean's PG id as a tag in the Hub's light blue, before the name */
/* Ryan 24 Nov 2026 (2nd look): the same size as the product name beside it, and the same tag for the ID-Tag on Green beans › Stock
   (there it stays the link to Cropster, without the underline) */
.q-pg, body.officelook #view .gs7-tag a{display:inline-flex;align-items:center;height:28px;margin-right:8px;padding:0 10px;border-radius:6px;background:#afcdd7;color:#111111;
  font-size:15px;font-weight:500;letter-spacing:.06em;line-height:1;vertical-align:1px;white-space:nowrap;font-variant-numeric:tabular-nums;text-decoration:none}
body.officelook #view .gs7-tag a:hover{background:#9cbfcb;text-decoration:none}
/* Secondary buttons (e.g. "+ Add a coffee"): a visible hover, a shade darker than Bb Gray, with the ink edge (Ryan 24 Nov 2026) */
@media (hover:hover){
  body.officelook :is(#view, .sheet-wrap) :is(.btn.ghost, .btn.small, .ui-btn--secondary, .ui-btn--compact):not(.danger):not(.ui-btn--danger):not(.ui-btn--ghost):not(:disabled):hover,
  body.officelook #view.v3-flat :is(.btn:not(.v3-pri):not(.danger), .ui-btn:not(.v3-pri):not(.ui-btn--danger):not(.ui-btn--ghost)):not(:disabled):hover{background:#c4c4c0;border-color:#c4c4c0;box-shadow:inset 0 0 0 1px #111111}
}
/* File pickers (Ryan 24 Nov 2026, Import from Notion: "fix alignment, choose File part"): one 44 px row, the button and
   "No file chosen" centred in it; the button is the Office secondary button (well, no edge, 6 px), the text 14 px muted. */
body.officelook :is(#view, .sheet-wrap) input[type=file]{display:block;box-sizing:border-box;width:100%;height:44px;min-height:44px;margin:4px 0 0;padding:5px 12px 5px 5px;
  border:1px solid #d9d9d6;border-radius:6px;background:#ffffff;color:#4a4a4a;font:inherit;font-size:14px;line-height:32px;cursor:pointer}
body.officelook :is(#view, .sheet-wrap) input[type=file]::file-selector-button{height:32px;margin:0 12px 0 0;padding:0 14px;border:0;border-radius:6px;background:#f0f0ef;color:#111111;
  font:inherit;font-size:14px;font-weight:500;vertical-align:middle;cursor:pointer}
body.officelook :is(#view, .sheet-wrap) input[type=file]:hover::file-selector-button{background:#d9d9d6}
body.officelook :is(#view, .sheet-wrap) input[type=file]:focus-visible{outline:2px solid #4986a0;outline-offset:2px}

/* Green beans › Stock: the green bean count, compact, at the right of the page head (Ryan 24 Nov 2026) */
.gc-mini{display:grid;gap:6px;justify-items:end;text-align:right;max-width:440px}
.gc-mini .gc-h{display:flex;align-items:center;gap:8px}
.gc-mini .gc-t{font-size:13px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:#111111}
.gc-mini .gc-b{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.gc-mini .gc-n{font-size:13px;color:#4a4a4a}
.gc-mini .gc-n a{color:#111111}
@media (max-width:699px){ .gc-mini{justify-items:start;text-align:left;max-width:none} .gc-mini .gc-b{justify-content:flex-start} }
/* Tables' header row in the Hub's light blue (Ryan 24 Nov 2026: "table's header row put a colour that matches our Bb theme").
   Header rows only (thead), on screen; group rows (e.g. BRAZIL · 881 KG) keep the grey well, printouts stay plain. */
@media screen{
  body.officelook :is(#view, .sheet-wrap) table > thead > tr > :is(th, td){background:#e3eef2;color:#111111;border-bottom-color:#d9d9d6}   /* Ryan 24 Nov 2026 (final): very light blue header rows, the whole Hub */
  body.officelook :is(#view, .sheet-wrap) table > thead > tr > :is(th, td) :is(a, button, .hint, small){color:#111111}
}

/* Dashboard › Overview: the All / Roasting / Logistics row is a second tab row like the rest (Ryan 24 Nov 2026):
   flush under the tab row, edge to edge, 40 px, sentence case 14 px, the chosen one ink with a 2 px ink line */
@media (min-width:700px){
  body.officelook #view.v3-flat.o-nohead > .v3-tabs:has(~ .dv-role){margin-bottom:0}
  body.officelook #view.v3-flat.o-nohead > .dv-role{display:flex;align-items:stretch;gap:28px;margin:0 calc(-1 * var(--o-br, 0px)) 24px calc(-1 * var(--o-bl, 0px));padding:0 20px;
    border:0;border-bottom:1px solid #d9d9d6;border-radius:0;background:#ffffff;box-sizing:border-box}
  body.officelook #view.v3-flat.o-nohead > .dv-role button{height:40px;min-height:0;margin:0 0 -1px;padding:0;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;
    box-shadow:none;font-size:14px;font-weight:400;letter-spacing:0;text-transform:none;color:#4a4a4a}
  body.officelook #view.v3-flat.o-nohead > .dv-role button:hover{color:#111111}
  body.officelook #view.v3-flat.o-nohead > .dv-role button[aria-pressed="true"]{color:#111111;font-weight:500;border-bottom-color:#111111}
}

/* Dashboard (Ryan 24 Nov 2026, 2nd look: "match the same font size and spacing"): its two rows look like Production's —
   row 1 50 px, 14 px capitals with letter spacing; row 2 40 px, 14 px sentence case; 28 px between tabs; the chosen one ink-underlined;
   row 2 flush under row 1 (no gap) */
@media (min-width:700px){
  body.officelook #view.v3-flat.o-nohead:has(> .dv-role) > .v3-tabs{gap:28px;margin-bottom:0!important}
  body.officelook #view.v3-flat.o-nohead:has(> .dv-role) > .v3-tabs > a{height:50px;font-size:14px;letter-spacing:.14em;text-transform:uppercase}
  body.officelook #view.v3-flat.o-nohead:has(> .dv-role) > .v3-tabs > a.on{border-bottom-color:#111111}
  body.officelook #view.v3-flat.o-nohead:has(> .dv-role) > .v3-tabs .v3-cnt{letter-spacing:0}
  body.officelook #view.v3-flat.o-nohead > .v3-subs.none + .dv-role, body.officelook #view.v3-flat.o-nohead > .dv-role{margin-top:0}
}

/* Search pop-out sizes (Ryan 24 Nov 2026: "change the sizing of the pop out panel, applies to mobile, iPad, desktop and laptop").
   It drops from just under the 56 px top bar, so the top bar's search box and the panel line up:
   • desktop (1200 px +): 640 px wide, up to 70 % of the screen tall;
   • laptop (1024–1199): 600 px;
   • iPad (700–1023): 600 px or the screen less 32 px, up to 75 % tall;
   • phone (under 700): the whole screen, the box at the top, the keyboard below the results. */
body.office .sheet-wrap.hs-wrap{align-items:flex-start;padding-top:72px}
body.office .sheet-wrap.hs-wrap .sheet{width:min(640px, calc(100vw - 32px));max-width:none;max-height:70vh;max-height:70dvh}
@media (min-width:1024px) and (max-width:1199.98px){ body.office .sheet-wrap.hs-wrap .sheet{width:600px} }
@media (min-width:700px) and (max-width:1023.98px){ body.office .sheet-wrap.hs-wrap .sheet{width:min(600px, calc(100vw - 32px));max-height:75vh;max-height:75dvh} }
@media (max-width:699.98px){
  body.office .sheet-wrap.hs-wrap{padding:0}
  body.office .sheet-wrap.hs-wrap .sheet{width:100vw;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0}
  body.office .hs-foot{display:none}
}
/* Tabs in Title Case (Ryan 24 Nov 2026: "change to Title Case format, applies to all Tabs"): every tab row — row 1, row 2, the
   Dashboard's All / Roasting / Logistics row and the phone pick bar's menu — shows each word capitalised, no letter spacing */
body.officelook #view.v3 :is(.v3-tabs, .v3-subs) > a, body.officelook #view.v3 > .dv-role button, body.officelook .v3-menuwrap :is(.v3-mi, .v3-mt, .v3-mopen a){text-transform:capitalize!important;letter-spacing:0!important}

/* Roaster board: outside weather + clock (Ryan 24 Nov 2026) */
.wx{display:grid;grid-template-columns:auto auto;align-items:center;gap:0 20px;padding:10px 16px;border:1px solid #d9d9d6;border-radius:8px;background:#ffffff;color:#111111}
.wx.wx-only{grid-template-columns:auto}
.wx-now{display:flex;align-items:center;gap:12px}
.wx-ic{width:40px;height:40px;flex:none;fill:none;stroke:#111111;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wx-ic .wx-r{stroke:#4986a0}
.wx-t{font-size:34px;font-weight:400;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.wx-t small{font-size:15px;color:#4a4a4a;margin-left:2px;vertical-align:14px}
.wx-d{display:grid;gap:1px;font-size:13px;color:#4a4a4a;white-space:nowrap;font-variant-numeric:tabular-nums}
.wx-d b{color:#111111;font-weight:500}
.wx-when{text-align:right;border-left:1px solid #d9d9d6;padding-left:20px}
.wx.wx-only .wx-when{border-left:0;padding-left:0}
.wx-cl{display:flex;align-items:center;justify-content:flex-end}
.wx-tc{display:grid;justify-items:start;gap:6px}   /* the OUTSIDE tag under the temperature (Ryan 24 Nov 2026) */
.wx-tag{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;padding:2px 6px;border-radius:4px;background:#afcdd7;color:#111111}
.wx-clock{font-size:22px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:.02em;line-height:1.1}
.wx-day{font-size:13px;color:#4a4a4a}
.wx-sum{font-size:14px;color:#111111}
.wx.off .wx-now{opacity:.5}
.wx-off{font-size:13px;color:#4a4a4a;max-width:12rem}
@media (max-width:1023.98px){ .wx{width:100%;grid-template-columns:1fr auto} .wx-d{display:flex;gap:10px} }
@media (max-width:599.98px){ .wx{padding:8px 12px;gap:0 12px} .wx-ic{width:32px;height:32px} .wx-t{font-size:26px} .wx-wind, .wx-sum{display:none} .wx-cl{min-width:0} .wx-clock{font-size:18px} .wx-when{padding-left:12px} }
/* The standard (Ryan 24 Nov 2026, "change to 50px, standardize"): tab row 1 is 50 px on every module, one-row or two-row,
   from 700 px; row 2 stays 40 px; the top bar 56 px */
@media (min-width:700px){ body.officelook #view.v3.o-nohead > .v3-tabs > a{height:50px} }

/* Tab row 1 (Ryan 24 Nov 2026, latest): 40 px tall, 15 px text, on every module (replaces the 50 px standard); row 2 stays 40 px / 14 px */
@media (min-width:700px){
  body.officelook #view.v3.o-nohead > .v3-tabs > a{height:40px!important;font-size:15px!important}
}

/* PG tags (Ryan 24 Nov 2026, option E of _Proposal/1-Hub-Look-Dashboard/PG-Tag/): the light well with a 1 px grey edge, black text */
.q-pg, body.officelook #view .gs7-tag a{background:#f0f0ef;color:#111111;box-shadow:inset 0 0 0 1px #d9d9d6}
body.officelook #view .gs7-tag a:hover{background:#d9d9d6;color:#111111}

/* Green beans › Buying › Market (Ryan 24 Nov 2026, mock-up _Proposal/2-Production-Green/Market-Restructure/):
   Coffee C on the left (charts drawn at their real width, labels 12 px); RM / kg and exchange rates on the right */
.mk-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
.mk-grid .card{margin:0}
.mk-side{display:grid;gap:16px;align-content:start;min-width:0}
.mk-kc #mkKc, .mk-side #mkLine{overflow:hidden!important}
.mk-grid svg.chart{display:block;max-width:100%}
.mk-grid svg.chart .ax{font-size:12px}
.mk-grid .mk-price>b{font-size:32px}
.mk-grid .mk-rng{gap:0;margin-top:12px;border-top:1px solid #d9d9d6}
.mk-grid .mk-rng>div{border:0;border-right:1px solid #d9d9d6;border-radius:0;padding:8px 2px;font-size:12px}
.mk-grid .mk-rng>div:last-child{border-right:0}
.mk-fxl{display:grid}
.mk-fx{display:grid;grid-template-columns:1fr auto;gap:0 8px;padding:8px 0;border-bottom:1px solid #d9d9d6;font-size:14px}
.mk-fx:last-child{border-bottom:0}
.mk-fx b{font-weight:500;font-variant-numeric:tabular-nums}
.mk-fx small{grid-column:1 / -1;font-size:12px}
.mk-rc{display:grid;gap:10px}
@media (max-width:1279.98px){ .mk-grid{grid-template-columns:minmax(0,1fr) 300px} }
@media (max-width:1023.98px){ .mk-grid{grid-template-columns:1fr} .mk-side{grid-template-columns:1fr 1fr} }
@media (max-width:599.98px){ .mk-side{grid-template-columns:1fr} .mk-grid .mk-rng{grid-template-columns:repeat(4,1fr)} .mk-grid .mk-rng>div:nth-child(4){border-right:0} .mk-grid .mk-rng>div:nth-child(n+5){border-top:1px solid #d9d9d6} }

/* Group rows inside tables (Ryan 24 Nov 2026, option 4C of _Proposal/1-Hub-Look-Dashboard/Header-Titles/): a very light blue tint
   (BRAZIL · 881 KG, BLEND, DUE TODAY · 3, …); the header row above them is the light grey well (3B) */
@media screen{
  body.officelook :is(#view, .sheet-wrap) tbody tr:is(.v3-grp, .sold-cat, .g58, .grp, .mt-gr) > td{background:#f0f0ef!important}   /* (final) group rows: the light grey well */
}

/* Green Room: the search and its two buttons on the headline's row (Ryan 24 Nov 2026) */
body.officelook #view.v3 .v3-lacts > .gw-headbar{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin:0;width:100%}
body.officelook #view.v3 .v3-lacts > .gw-headbar .gfind{flex:1 1 320px;min-width:220px;max-width:460px;margin:0}
body.officelook #view.v3 .v3-lacts > .gw-headbar .prd-bar-r{display:flex;gap:8px;flex:none;margin:0}
body.officelook #view.v3 .v3-lead.has-acts:has(.gw-headbar){align-items:center}
body.officelook #view.v3 .v3-lead.has-acts:has(.gw-headbar) > .v3-lacts{align-self:center;min-width:0}
/* under 1100 (small laptop, iPad, phone) the headline gets the row; search + buttons go under it, full width */
@media (max-width:1099.98px){
  body.officelook #view.v3 .v3-lead.has-acts:has(.gw-headbar){grid-template-columns:minmax(0,1fr)}
  body.officelook #view.v3 .v3-lead.has-acts:has(.gw-headbar) > .v3-lacts{grid-column:1;grid-row:3;justify-self:stretch;margin-top:12px}
  body.officelook #view.v3 .v3-lacts > .gw-headbar .gfind{max-width:none}
}
@media (max-width:599.98px){
  body.officelook #view.v3 .v3-lacts > .gw-headbar{flex-wrap:wrap}
  body.officelook #view.v3 .v3-lacts > .gw-headbar .gfind{flex:1 1 100%}
  body.officelook #view.v3 .v3-lacts > .gw-headbar .prd-bar-r{flex:1 1 100%}
  body.officelook #view.v3 .v3-lacts > .gw-headbar .prd-bar-r > *{flex:1 1 0}
}

/* Green Room head bar, 2nd look (Ryan 24 Nov 2026, "bad structure and alignment"): one straight line — search 300 px (shortened), then the two
   buttons — vertically centred on the headline + intro block; nothing wraps from 1100 px */
@media (min-width:1100px){
  body.officelook #view.v3 .v3-lead.has-acts:has(.gw-headbar){grid-template-columns:minmax(0,1fr) max-content;align-items:center}
}
@media (min-width:600px){
  body.officelook #view.v3 .v3-lead.has-acts:has(.gw-headbar) > .v3-lacts{flex-wrap:nowrap!important;align-self:center!important;width:auto}
  body.officelook #view.v3 .v3-lacts > .gw-headbar{flex-wrap:nowrap!important;width:auto!important}
  body.officelook #view.v3 .v3-lacts > .gw-headbar .gfind{flex:0 1 300px!important;width:300px;max-width:300px;min-width:200px;height:44px}
  body.officelook #view.v3 .v3-lacts > .gw-headbar .prd-bar-r{flex-wrap:nowrap!important;margin:0!important}
  body.officelook #view.v3 .v3-lacts > .gw-headbar .prd-bar-r > *{height:44px;white-space:nowrap}
}

/* Weather block (Ryan 24 Nov 2026, 3rd look): [OUTSIDE] MY SA Roastery on its own line under the cloud, temperature and details */
.wx-left{display:grid;gap:8px}
.wx-loc{display:flex;align-items:center;gap:8px;font-size:13px;color:#4a4a4a;white-space:nowrap}
.wx.off .wx-loc{opacity:.5}

/* Weather block, wider (Ryan 24 Nov 2026, mock-up Weather-Wider): three columns — cloud + °C right-aligned over [OUTSIDE] MY SA Roastery ·
   Rain / Humidity / Wind (no line before it) · the clock after a thin line */
.wx:not(.wx-only){grid-template-columns:auto auto auto;gap:0 28px;padding:14px 22px}
.wx-main{display:grid;gap:10px}
.wx-main .wx-now{justify-content:flex-end;gap:14px}
.wx:not(.wx-only) .wx-d{gap:3px;font-size:14px}
.wx:not(.wx-only) .wx-when{padding-left:28px;align-self:stretch;display:grid;align-content:center}
.wx.off .wx-main{opacity:.5}
@media (max-width:1023.98px){ .wx:not(.wx-only){grid-template-columns:auto 1fr auto} }
@media (max-width:599.98px){ .wx:not(.wx-only){grid-template-columns:auto auto;gap:8px 16px;padding:10px 12px} .wx:not(.wx-only) .wx-d{grid-column:1;grid-row:2} .wx:not(.wx-only) .wx-when{grid-column:2;grid-row:1 / span 2;padding-left:12px} }

