  @font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('/menu/fonts/work-sans/WorkSans-Variable.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url('/menu/fonts/spline-sans-mono/SplineSansMono-Variable.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/menu/fonts/anton/Anton-Regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

  :root {
    color-scheme: light;
    --tx-limestone: #F4F1EA;
    --tx-limestone-hi: #F7F4EE;
    --tx-limestone-lo: #F1EDE3;
    --tx-basalt: #17181A;
    --tx-basalt-hi: #1C1D21;
    --tx-basalt-lo: #121316;
    --tx-bench: #DDD8CC;
    --tx-card: #FFFFFF;
    --tx-field: #EAE5D9;
    --tx-panel-soft: #F7F4EC;
    --tx-wait-panel: #F7F0DD;
    --tx-tender-cash: #EDE9DF;
    --tx-tender-cash-lo: #E4DFD1;
    --tx-salish: #2E5F6B;
    --tx-salish-btn-hi: #336976;
    --tx-salish-btn-lo: #2A5761;
    --tx-brass: #B08D3C;
    --tx-ink: var(--tx-basalt);
    --tx-ink-muted: #6B6658;
    --tx-ink-label: #55564F;
    --tx-basalt-ink: #F4F1EA;
    --tx-basalt-ink-soft: #B9B4A6;
    --tx-ok: #436C64;
    --tx-ok-ink: #3A5E57;
    --tx-wait-ink: #7A612B;
    --tx-stop: #B3261E;
    --tx-font-display: Anton, 'Arial Narrow', sans-serif;
    --tx-font-text: 'Work Sans', Arial, sans-serif;
    --tx-font-mono: 'Spline Sans Mono', Consolas, monospace;
    --tx-radius: 16px;
    --tx-radius-chip: 10px;
    --tx-touch-min: 44px;
    --tx-shadow-card: 0 1px 2px rgba(23,24,26,0.07), 0 8px 22px rgba(23,24,26,0.06);
    --tx-press: inset 0 1.5px 0 rgba(255,255,255,0.22), inset 0 -3px 0 rgba(0,0,0,0.22);
    --tx-recess: inset 0 2px 5px rgba(23,24,26,0.10), inset 0 -1px 0 rgba(255,255,255,0.7);
    --tx-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --tx-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-16 -16 32 32'%3E%3Cg fill='%23F6F3EC'%3E%3Crect x='-1.5' y='-15' width='3' height='15' rx='1.5'/%3E%3Crect x='-1.1' y='-9.5' width='2.2' height='9.5' rx='1.1' transform='rotate(31)'/%3E%3Crect x='-1.5' y='-13.5' width='3' height='13.5' rx='1.5' transform='rotate(62)'/%3E%3Crect x='-1.1' y='-8.5' width='2.2' height='8.5' rx='1.1' transform='rotate(94)'/%3E%3Crect x='-1.5' y='-14.5' width='3' height='14.5' rx='1.5' transform='rotate(127)'/%3E%3Crect x='-1.1' y='-9.5' width='2.2' height='9.5' rx='1.1' transform='rotate(158)'/%3E%3Crect x='-1.5' y='-13' width='3' height='13' rx='1.5' transform='rotate(190)'/%3E%3Crect x='-1.1' y='-8' width='2.2' height='8' rx='1.1' transform='rotate(222)'/%3E%3Crect x='-1.5' y='-14' width='3' height='14' rx='1.5' transform='rotate(253)'/%3E%3Crect x='-1.1' y='-9' width='2.2' height='9' rx='1.1' transform='rotate(285)'/%3E%3Crect x='-1.5' y='-12.5' width='3' height='12.5' rx='1.5' transform='rotate(316)'/%3E%3Crect x='-1.1' y='-8.5' width='2.2' height='8.5' rx='1.1' transform='rotate(347)'/%3E%3C/g%3E%3C/svg%3E");
  }

  html { scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
  body { margin: 0; padding: 0 0 3rem; min-height: 100vh; box-sizing: border-box; font: 400 16px/1.55 var(--tx-font-text); color: var(--tx-ink);
    background-color: var(--tx-limestone);
    background-image: var(--tx-grain), linear-gradient(165deg, var(--tx-limestone-hi) 0%, var(--tx-limestone-lo) 100%); }
  .office-wrap { max-width: 46rem; margin-inline: auto; padding: 1rem 1.25rem 0; }
  .office-wrap.wide { max-width: 58rem; }
  .office-wrap.narrow { max-width: 30rem; }
  .office-wrap.full { max-width: 78rem; }
  h1 { font-size: 1.65rem; line-height: 1.15; font-weight: 700; margin: 0 0 .5rem; letter-spacing: -.015em; text-wrap: balance; }
  h2 { font-size: 1.1rem; line-height: 1.25; font-weight: 700; margin: 0 0 .6rem; }
  p { margin: 0 0 .6rem; }
  a { color: var(--tx-salish); }
  a:hover { color: var(--tx-ink); }
  .quiet { color: var(--tx-ink-muted); }
  .mono { font-family: var(--tx-font-mono); font-variant-numeric: tabular-nums; font-weight: 500; }

  /* the sticky top bar (TE-0111): where you are, one tap Home, Sign out where it exists. A basalt
     horizon band (DNA section 5: page-scale bands are the one straight line) that stays on screen
     at 375px, so the way back is never scrolled away. 56px tall, every target inside it 44px. */
  :root { --office-bar-h: 56px; }
  .topbar { position: sticky; top: 0; z-index: 30; color: var(--tx-basalt-ink);
    background-color: var(--tx-basalt);
    background-image: var(--tx-grain), linear-gradient(170deg, var(--tx-basalt-hi) 0%, var(--tx-basalt-lo) 90%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.5), 0 6px 18px rgba(23,24,26,0.16); }
  .topbar-in { display: flex; align-items: center; justify-content: space-between; gap: .75rem; box-sizing: border-box; min-height: var(--office-bar-h);
    max-width: 46rem; margin-inline: auto; padding: 0 1.25rem; }
  /* the bar's content lines up with the page's own column */
  body:has(.office-wrap.wide) .topbar-in { max-width: 58rem; }
  body:has(.office-wrap.narrow) .topbar-in { max-width: 30rem; }
  body:has(.office-wrap.full) .topbar-in { max-width: 78rem; }
  .crumb { display: flex; flex-wrap: wrap; align-items: center; column-gap: .45rem; margin: 0; font-size: .95rem; line-height: 1.25; color: var(--tx-basalt-ink-soft); min-width: 0; }
  .crumb a { display: inline-flex; align-items: center; min-height: var(--tx-touch-min); color: var(--tx-basalt-ink); font-weight: 700; text-decoration: none; }
  .crumb a:hover { color: var(--tx-brass); }
  .crumb [aria-current="page"] { color: var(--tx-basalt-ink); font-weight: 600; overflow-wrap: anywhere; }
  .topbar form { margin: 0; flex: none; }
  .topbar .btn { min-height: var(--tx-touch-min); padding: .4rem 1rem; color: var(--tx-basalt-ink); font-size: .9rem; box-shadow: none;
    background: rgba(244,241,234,0.12); }
  .topbar .btn:hover { color: var(--tx-basalt-ink); background: rgba(244,241,234,0.2); filter: none; }
  .topbar a:focus-visible, .topbar .btn:focus-visible { outline-color: var(--tx-basalt-ink); }
  /* the Apps menu in the top bar (TE-0135): a plain <details>, no script; only drawn when an app has an address */
  .topbar-in { position: relative; }
  .appsmenu { margin-left: auto; flex: none; }
  .topbar .helplink { flex: none; }
  .topbar .helplink.push { margin-left: auto; }
  .appsmenu summary { display: inline-flex; align-items: center; gap: .5rem; box-sizing: border-box; min-height: var(--tx-touch-min); padding: .4rem 1rem; border-radius: var(--tx-radius);
    font: 700 .9rem/1.2 var(--tx-font-text); letter-spacing: .02em; color: var(--tx-basalt-ink); background: rgba(244,241,234,0.12); cursor: pointer; list-style: none; }
  .appsmenu summary::-webkit-details-marker { display: none; }
  .appsmenu summary::after { content: ""; width: .45rem; height: .45rem; margin-top: -.2rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .appsmenu[open] summary::after { margin-top: .15rem; transform: rotate(225deg); }
  .appsmenu summary:hover { background: rgba(244,241,234,0.2); }
  .appsmenu summary:focus-visible { outline: 3px solid var(--tx-basalt-ink); outline-offset: 2px; }
  .appsmenu-pop a:focus-visible { outline: 3px solid var(--tx-ink); outline-offset: 2px; }
  .appsmenu-pop { position: absolute; top: calc(100% + .4rem); right: 1.25rem; z-index: 40; box-sizing: border-box; width: min(19rem, calc(100vw - 2.5rem)); padding: .75rem .9rem .9rem;
    border-radius: var(--tx-radius); background: var(--tx-card); color: var(--tx-ink); box-shadow: var(--tx-shadow-card); }
  .appsmenu-note { margin: 0 0 .4rem; font-size: .85rem; color: var(--tx-ink-muted); }
  .appsmenu-pop ul { list-style: none; margin: 0; padding: 0; }
  .appsmenu-pop li { border-top: 1px solid var(--tx-bench); }
  .appsmenu-pop a { display: flex; align-items: center; min-height: var(--tx-touch-min); padding: .3rem .2rem; font-weight: 700; color: var(--tx-ink); text-decoration: none; }
  .appsmenu-pop a:hover { color: var(--tx-salish); }
  .appsmenu-new { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topbar .appsmenu + form { margin-left: .5rem; }

  /* the basalt header band: the page title (the masthead horizon, DNA section 5/8) */
  .masthead, .fee-block { position: relative; overflow: hidden; color: var(--tx-basalt-ink);
    background-image: var(--tx-grain), linear-gradient(170deg, var(--tx-basalt-hi) 0%, var(--tx-basalt-lo) 90%); background-color: var(--tx-basalt); border-radius: var(--tx-radius); }
  .masthead::after, .fee-block::after { content: ""; position: absolute; right: -22px; top: -18px; width: 124px; height: 124px;
    background: var(--tx-star) center / contain no-repeat; opacity: .09; pointer-events: none; }
  .masthead > *, .fee-block > * { position: relative; z-index: 1; }
  .masthead { padding: 1.1rem 1.25rem 1.15rem; margin-bottom: 1.25rem; }
  .masthead h1 { color: var(--tx-basalt-ink); margin-bottom: .35rem; }
  .masthead h1:last-child { margin-bottom: 0; }
  .masthead .lede, .masthead .sub { color: var(--tx-basalt-ink-soft); margin: 0; max-width: 34rem; }

  .card { background: var(--tx-card); border-radius: var(--tx-radius); box-shadow: var(--tx-shadow-card); padding: 1.1rem 1.25rem 1.25rem; margin: 0 0 1.25rem; }
  .card.soft { background: var(--tx-panel-soft); box-shadow: none; }
  .label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-ink-label); margin: 0 0 .5rem; }

  .storepick { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 0 0 1.25rem; }
  .storepick label { font-weight: 600; }
  select, textarea, input[type=text], input[type=date], input[type=password], input[type=number], input[type=email], input[type=search], input[type=tel], input[type=time], input[type=month], input[type=url], input[type=datetime-local] {
    box-sizing: border-box; min-height: var(--tx-touch-min); max-width: 100%; padding: .55rem .9rem; border: 0; border-radius: var(--tx-radius);
    background: var(--tx-field); box-shadow: var(--tx-recess); color: var(--tx-ink); font: 500 1rem/1.3 var(--tx-font-text); }
  textarea { resize: vertical; min-height: 6rem; }
  input[type=file] { max-width: 100%; font: 500 .95rem/1.3 var(--tx-font-text); color: var(--tx-ink); }
  input[type=checkbox] { accent-color: var(--tx-salish); width: 1.25rem; height: 1.25rem; margin: 0; flex: none; }
  input.money { font-family: var(--tx-font-mono); width: 9rem; max-width: 100%; }
  input[type=radio] { accent-color: var(--tx-salish); width: 1.25rem; height: 1.25rem; margin: 0; flex: none; }
  select:focus-visible, textarea:focus-visible, input:focus-visible, .btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--tx-salish); outline-offset: 2px; }

  .btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: var(--tx-touch-min); padding: .55rem 1.3rem;
    border: 0; border-radius: var(--tx-radius); font: 700 .95rem/1.2 var(--tx-font-text); letter-spacing: .02em; text-align: center; text-decoration: none; cursor: pointer;
    color: var(--tx-ink); background: var(--tx-tender-cash) linear-gradient(180deg, var(--tx-tender-cash) 0%, var(--tx-tender-cash-lo) 100%); box-shadow: var(--tx-press); }
  .btn:hover { color: var(--tx-ink); filter: brightness(1.05); }
  .btn:active { box-shadow: var(--tx-recess); }
  .btn-primary { color: var(--tx-card); background: var(--tx-salish) linear-gradient(180deg, var(--tx-salish-btn-hi) 0%, var(--tx-salish-btn-lo) 100%); }
  .btn-primary:hover { color: var(--tx-card); }

  /* the basalt totals block, reused for the fee in force (DNA section 8) */
  .fee-block { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1rem 1.25rem; margin: 0 0 1rem; }
  .fee-block .tag { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-brass); padding-bottom: .3rem; }
  .fee-block strong { font: 400 2.75rem/1 var(--tx-font-display); letter-spacing: .02em; color: var(--tx-basalt-ink); text-shadow: 0 2px 0 rgba(0,0,0,0.4); }
  .fee-block .sub { display: block; font-size: .8rem; letter-spacing: .02em; text-transform: none; font-weight: 500; color: var(--tx-basalt-ink-soft); padding-top: .25rem; }
  .plain { font-size: 1.05rem; font-weight: 600; margin: 0 0 .5rem; }
  .examples { margin: 0 0 .5rem; padding: 0; list-style: none; }
  .examples li { padding: .35rem 0; border-top: 1px solid var(--tx-bench); }

  .notice { padding: .9rem 1.1rem; border-radius: var(--tx-radius); background: var(--tx-wait-panel); color: var(--tx-ink); margin: 0 0 1.25rem; }
  .notice strong { color: var(--tx-wait-ink); }
  .notice.off strong { color: var(--tx-stop); }
  .notice.ok { background: var(--tx-ok); color: var(--tx-basalt-ink); box-shadow: var(--tx-shadow-card); }
  .notice.ok strong { color: var(--tx-basalt-ink); }
  .notice.bad { background: var(--tx-wait-panel); }
  .notice.bad strong { color: var(--tx-stop); }
  .notice p:last-child { margin-bottom: 0; }

  .field { margin: 0 0 1.1rem; }
  .field > label, .field > .legend { display: block; font-weight: 700; margin: 0 0 .35rem; }
  .field .hint { display: block; font-size: .875rem; color: var(--tx-ink-muted); margin: .3rem 0 0; }
  .field .err { display: block; font-size: .95rem; font-weight: 600; color: var(--tx-stop); margin: .35rem 0 0; }
  .dollar { display: inline-flex; align-items: center; gap: .4rem; }
  .dollar .sign { font: 500 1rem/1 var(--tx-font-mono); color: var(--tx-ink-muted); }
  fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
  .choice-line { display: flex; align-items: center; gap: .6rem; min-height: var(--tx-touch-min); padding: .2rem 0; font-weight: 600; }
  .choice-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .9rem; }
  .choice-row .dollar, .choice-row input[type=date] { margin-bottom: .2rem; }
  .actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
  .readonly { padding: .9rem 1.1rem; border-radius: var(--tx-radius); background: var(--tx-panel-soft); }

  .history { list-style: none; margin: 0; padding: 0; }
  .history li { padding: .7rem 0; border-top: 1px solid var(--tx-bench); }
  .history li:first-child { border-top: 0; padding-top: .1rem; }
  .history .what { font-weight: 600; margin: 0 0 .15rem; }
  .history .when { margin: 0; font-size: .9rem; color: var(--tx-ink-muted); }
  .chip { display: inline-block; margin-left: .4rem; padding: .05rem .6rem; border-radius: var(--tx-radius-chip); font-size: .75rem; font-weight: 700; letter-spacing: .04em; vertical-align: middle;
    background: var(--tx-bench); color: var(--tx-ink-label); }
  .chip.now { background: var(--tx-ok-ink); color: var(--tx-card); }
  .chip.hold { background: var(--tx-wait-panel); color: var(--tx-wait-ink); }

  .footer-band, .office-wrap > footer { margin-top: 1.5rem; padding: .8rem 1.25rem; border-radius: var(--tx-radius); background: var(--tx-bench); color: var(--tx-ink-label); font-size: .875rem; }
  /* a link inside the footer sentence keeps its place in the line but is still a 44px thumb target (vertical padding on an inline box adds hit area, not line height) */
  .office-wrap > footer a, .handrail a, p.quiet a, .sub a { padding: 14px 0; }
  .footer-band p { margin: 0; }
  .footer-band a { display: inline-flex; align-items: center; min-height: var(--tx-touch-min); font-weight: 600; }
  /* ---- the shared vocabulary every office page uses (TE-0111). Class names are the ones the
     pages already carried, so the markup keeps its hooks; only the look moves here. ---- */
  .sub { color: var(--tx-ink-muted); margin: 0 0 1.25rem; }
  .empty { color: var(--tx-ink-muted); font-style: italic; font-size: .95rem; padding: .3rem 0; }
  .handrail { padding: 1rem 1.25rem; margin: 0 0 1.25rem; border-radius: var(--tx-radius); background: var(--tx-panel-soft); font-size: .95rem; }
  .handrail p { margin: .3rem 0; }
  .screen { background: var(--tx-card); border-radius: var(--tx-radius); box-shadow: var(--tx-shadow-card); padding: 1.25rem; margin: 0 0 1.25rem; }
  label { display: block; font-size: .9rem; font-weight: 650; margin: .9rem 0 .35rem; }
  .storepick label, .choice-line, .checkline { margin: 0; }
  .storepick label { font-size: 1rem; }
  form.search, form.report, form.inline-row, .row3 { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.25rem; }
  form.search label, form.report label { margin: 0; }
  .btn.small { padding: .4rem 1rem; font-size: .9rem; min-height: var(--tx-touch-min); }
  /* a white focus ring on every dark (basalt) band: the teal ring is too faint on basalt (>= 3:1 needs white) */
  .topbar a:focus-visible, .topbar .btn:focus-visible, .topbar summary:focus-visible, .masthead a:focus-visible, .masthead .btn:focus-visible, .fee-block a:focus-visible, .tabs a.on:focus-visible, .statustabs a[aria-current="page"]:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
  .btn.danger, .btn.warn { color: var(--tx-card); background: var(--tx-stop); }
  .btn.danger:hover, .btn.warn:hover { color: var(--tx-card); }
  .btn[disabled] { opacity: .55; cursor: not-allowed; }
  div.bad, div.good, div.good-banner, div.warn { padding: .9rem 1.1rem; border-radius: var(--tx-radius); margin: 0 0 1.25rem; color: var(--tx-ink); background: var(--tx-wait-panel); }
  div.bad { box-shadow: inset 0 0 0 2px var(--tx-stop); }
  div.good, div.good-banner { background: var(--tx-ok); color: var(--tx-basalt-ink); box-shadow: var(--tx-shadow-card); }
  div.good a, div.good-banner a { color: inherit; }
  div.bad p, div.good p, div.good-banner p, div.warn p { margin: .25rem 0; }
  .tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
  .tabs a { display: inline-flex; align-items: center; min-height: var(--tx-touch-min); padding: .4rem 1.1rem; border-radius: var(--tx-radius); font-size: .92rem; font-weight: 700; text-decoration: none;
    color: var(--tx-ink); background: var(--tx-tender-cash) linear-gradient(180deg, var(--tx-tender-cash) 0%, var(--tx-tender-cash-lo) 100%); box-shadow: var(--tx-press); }
  .tabs a:hover { color: var(--tx-ink); filter: brightness(1.05); }
  .tabs a.on { color: var(--tx-basalt-ink); background: var(--tx-basalt) linear-gradient(180deg, var(--tx-basalt-hi) 0%, var(--tx-basalt-lo) 100%); }
  .pill, .badge, .paytag { display: inline-block; padding: .05rem .6rem; border-radius: var(--tx-radius-chip); font-size: .75rem; font-weight: 700; letter-spacing: .04em; vertical-align: middle;
    background: var(--tx-bench); color: var(--tx-ink-label); }
  .paytag, .badge { margin-left: .4rem; }
  .pill.good, .paytag.paid { background: var(--tx-ok-ink); color: var(--tx-card); }
  .pill.mid, .paytag.refunded, .badge { background: var(--tx-wait-panel); color: var(--tx-wait-ink); }
  .pill.bad { background: var(--tx-stop); color: var(--tx-card); }
  table { width: 100%; border-collapse: collapse; font-size: .93rem; }
  th, td { text-align: left; padding: .55rem .4rem; vertical-align: top; }
  thead th { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-ink-label); }
  tbody td, tbody th { border-top: 1px solid var(--tx-bench); }
  td.num, th.num { text-align: right; font-family: var(--tx-font-mono); font-variant-numeric: tabular-nums; font-weight: 500; }
  .totals td { border-top: 2px solid var(--tx-bench); font-weight: 700; }
  /* [sds-order-flow-C] a stock order's lines grouped by category: one quiet bench-coloured heading row per group */
  tbody.cat-group .cat-head th { padding-top: .8rem; background: var(--tx-bench); color: var(--tx-ink); font-size: 1rem; font-weight: 700; border-top: 0; }
  tbody.cat-group .cat-head .quiet { font-size: .85rem; font-weight: 500; margin-left: .4rem; }
  /* a link that lives inside a table cell is still a thumb target (Batch B) */
  a.editlink, a.tracelink { display: inline-flex; align-items: center; min-height: var(--tx-touch-min); }
  a.card { display: block; color: inherit; text-decoration: none; margin: 0; }
  a.card:hover { background: var(--tx-limestone-hi); color: inherit; }
  a.card strong { display: block; margin-bottom: .15rem; }
  a.card span { color: var(--tx-ink-muted); font-size: .95rem; }
  .cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem; margin: 0 0 1.25rem; }
  .cardgrid a.card { padding: 1rem 1.15rem; }
  /* ---- [sds-office-design] the Shopify-admin page model, in this DNA's stone ----
     the grouped Menu (top bar), the page head (title left, the ONE teal next action right),
     the to-do list (one linked row per job), status tabs + index table, and the detail page's
     main column + side cards. */
  .navmenu { flex: none; position: static; }
  .navmenu summary { display: inline-flex; align-items: center; gap: .5rem; box-sizing: border-box; min-height: var(--tx-touch-min); padding: .4rem 1rem; border-radius: var(--tx-radius);
    font: 700 .9rem/1.2 var(--tx-font-text); letter-spacing: .02em; color: var(--tx-basalt-ink); background: rgba(244,241,234,0.12); cursor: pointer; list-style: none; }
  .navmenu summary::-webkit-details-marker { display: none; }
  .navmenu summary::after { content: ""; width: .45rem; height: .45rem; margin-top: -.2rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .navmenu[open] summary::after { margin-top: .15rem; transform: rotate(225deg); }
  .navmenu summary:hover { background: rgba(244,241,234,0.2); }
  .navmenu summary:focus-visible { outline: 3px solid var(--tx-basalt-ink); outline-offset: 2px; }
  .navmenu-pop { position: absolute; top: calc(100% + .4rem); left: 1.25rem; right: 1.25rem; z-index: 40; box-sizing: border-box; max-height: calc(100vh - var(--office-bar-h) - 1.5rem); overflow-y: auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .25rem 1.25rem; padding: 1rem 1.25rem;
    border-radius: var(--tx-radius); background: var(--tx-card); color: var(--tx-ink); box-shadow: var(--tx-shadow-card), 0 18px 40px rgba(23,24,26,0.18); }
  .navgroup-name { margin: .2rem 0 .1rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-ink-label); }
  .navgroup ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
  .navgroup a { display: flex; align-items: center; min-height: var(--tx-touch-min); font-weight: 600; color: var(--tx-ink); text-decoration: none; }
  .navgroup a:hover { color: var(--tx-salish); }
  .navgroup a[aria-current="page"] { color: var(--tx-salish); font-weight: 700; }
  .navgroup a:focus-visible { outline: 3px solid var(--tx-ink); outline-offset: 2px; }

  .pagehead { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; flex-wrap: wrap; }
  .pagehead > div { min-width: 0; flex: 1 1 18rem; }
  .pagehead .pill { font-size: .8rem; margin-left: .35rem; vertical-align: .2em; }
  .pagehead .sub { margin: 0; }
  .pagehead .btn-primary { flex: none; }
  .pagehead form { margin: 0; flex: none; }

  .next { padding: 1.1rem 1.25rem .6rem; margin: 0 0 1.25rem; border-radius: var(--tx-radius); background: var(--tx-card); box-shadow: var(--tx-shadow-card); }
  .tasks { list-style: none; margin: 0; padding: 0; }
  .tasks li { border-top: 1px solid var(--tx-bench); }
  .tasks li:first-child { border-top: 0; }
  .tasks a.task { display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-sizing: border-box; min-height: 52px; padding: .55rem .25rem; color: var(--tx-ink); text-decoration: none; }
  .tasks a.task:hover { background: var(--tx-limestone-hi); color: var(--tx-ink); }
  .tasks .what { flex: 1 1 auto; min-width: 0; }
  .tasks .go { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700; color: var(--tx-ink-label); white-space: nowrap; }
  .tasks a.task:hover .go { color: var(--tx-salish); }
  .tasks .go::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }


  .statustabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
  .statustabs a { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tx-touch-min); box-sizing: border-box; padding: .35rem .95rem; border-radius: var(--tx-radius);
    font-size: .9rem; font-weight: 700; text-decoration: none; color: var(--tx-ink); background: var(--tx-panel-soft); }
  .statustabs a:hover { background: var(--tx-card); color: var(--tx-ink); }
  .statustabs a[aria-current="page"] { color: var(--tx-basalt-ink); background: var(--tx-basalt); }
  .statustabs .n { font: 500 .8rem/1 var(--tx-font-mono); opacity: .8; }
  .indextable .card, .card.flush { padding: .4rem .75rem .6rem; }
  table.index td, table.index th { vertical-align: middle; padding: .7rem .5rem; }
  table.index td a.rowlink { font-weight: 700; color: var(--tx-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tx-touch-min); }
  table.index td a.rowlink:hover { color: var(--tx-salish); }
  .pill.wait { background: var(--tx-wait-panel); color: var(--tx-wait-ink); }
  .pill.done { background: var(--tx-bench); color: var(--tx-ink-label); }

  .detail { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.25rem; align-items: start; }
  .detail-main, .detail-side { min-width: 0; }
  .detail-side .card { padding: 1rem 1.1rem 1.1rem; }
  .detail-side h2 { font-size: 1rem; }
  .facts { margin: 0; }
  .facts div { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-top: 1px solid var(--tx-bench); }
  .facts div:first-child { border-top: 0; }
  .facts dt { color: var(--tx-ink-label); font-size: .9rem; }
  .facts dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
  details.fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--tx-touch-min); cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1rem; }
  details.fold > summary::-webkit-details-marker { display: none; }
  details.fold > summary::after { content: ""; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  details.fold[open] > summary::after { transform: rotate(225deg); }
  details.fold[open] > summary { margin-bottom: .6rem; }
  .strip { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .7rem 1rem; }
  .strip p { margin: 0; }
  .strip form { margin: 0; }
  @media (max-width: 62rem) {
    .detail { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 40rem) {
    .tasks a.task { flex-direction: column; align-items: flex-start; gap: .3rem; }
    .pagehead .btn-primary, .pagehead form, .pagehead form .btn { width: 100%; }
    /* the Menu panel on a phone: one column under the bar */
    .navmenu-pop { left: .75rem; right: .75rem; grid-template-columns: 1fr 1fr; }
    /* the whole stock-order row is one tap target: the order number's link stretches over the row */
    table.index tbody tr { position: relative; }
    table.index td a.rowlink::after { content: ""; position: absolute; inset: 0; }
    table.index td a.editlink { position: relative; z-index: 1; }
  }
  @media (max-width: 40rem) {
    /* a wide table scrolls inside itself instead of pushing the whole page sideways */
    .office-wrap table { display: block; max-width: 100%; overflow-x: auto; }
  }
  @media (max-width: 30rem) {
    .fee-block strong { font-size: 2.25rem; }
    .actions .btn, .storepick .btn { flex: 1 1 100%; }
    /* on a phone the save button rides the bottom of the screen while the form is on screen (thumb zone) */
    .actions { position: sticky; bottom: .5rem; z-index: 2; padding: .5rem; background: var(--tx-card); border-radius: var(--tx-radius); box-shadow: var(--tx-shadow-card); }
    .actions .quiet { display: none; }
    .storepick select { flex: 1 1 100%; }
  }