/* ==========================================================================
   IDS CoSend — the browser edition.

   Every colour below is lifted from the desktop client's own token
   dictionaries, `Design/Colours.xaml` (light) and `Design/Colours.Dark.xaml`
   (dark), so the two products look like one product. The XAML values carry a
   leading alpha pair — #FF2D527C — which is dropped here; nothing in this file
   was picked by eye.

   One stylesheet. No framework, no build step, no CDN, and NO WEBFONT: the
   font stack names families the machine already has, so this file downloads
   nothing and `font-src 'self'` in the Content-Security-Policy is honest rather
   than aspirational.
   ========================================================================== */

:root {
  /* --- Brand (Colours.xaml) --------------------------------------------- */
  --brand:        #2D527C;   /* BrandColour — the button, the bar, card headers */
  --brand-line:   #3A6396;   /* BrandLineColour — hover */
  --brand-text:   #23415F;   /* BrandTextColour — headings */
  --accent:       #E8910C;   /* AccentColour — the focus ring, and little else */
  --on-brand:     #FFFFFF;   /* OnBrandColour */

  /* --- Surfaces --------------------------------------------------------- */
  --page:         #F4F6F9;   /* AppBackgroundColour */
  --card:         #FFFFFF;   /* SurfaceCardColour */
  --surface-alt:  #EEF2F7;   /* SurfaceAltColour */

  /* --- Text ------------------------------------------------------------- */
  --text:         #1C2733;   /* TextPrimaryColour */
  --text-2:       #5A6A7A;   /* TextSecondaryColour */
  --text-muted:   #8A97A5;   /* TextMutedColour */

  /* --- Lines and focus -------------------------------------------------- */
  --line:         #CBD3DD;   /* BorderSubtleColour */
  --line-strong:  #7E8C9B;   /* BorderStrongColour — the input outline */
  --focus:        #2D527C;   /* FocusRingColour */

  /* --- Rows and watermarks (web3 r05) ------------------------------------
     Two more of the desktop's own colours, needed by the search grid and
     wanted nowhere else yet. Both are lifted from Colours.xaml / Colours.Dark.xaml
     exactly like every token above; neither was picked by eye.
     ⚠️ `--row-picked` is InactiveSelectionColour and NOT DefaultSelectedBackground,
     and the distinction is the point. The desktop paints a search row with the
     bright #3A6396 selection ONLY while the grid has focus; the moment focus goes
     elsewhere the row drops to this muted wash (the MultiTrigger on
     Selector.IsSelectionActive, MainWindow.xaml :4037–:4044). A browser row that
     is "the one being viewed" is always in that unfocused state — you clicked
     View and the page reloaded — so the muted token is the honest twin, and it
     keeps the row's own text readable in both themes instead of forcing white. */
  --row-picked:       #CBD9E8;   /* InactiveSelectionColour */
  --text-placeholder: #808080;   /* TextPlaceholderColour */

  /* --- Status ----------------------------------------------------------- */
  /* web3 r06 — INFO, the fourth status pair, and it was missing. The desktop's
     status pill and its "Current" stage marker are both InfoTintBrush behind
     InfoBrush (TrackShipmentDialog.xaml :163/:165 and :236/:238) — a quiet TINT
     chip, exactly like the Success / Warning / Error trio already below. The
     browser had been painting them as a solid brand fill with white text, which
     is a different control. Lifted from Colours.xaml :61/:65 and
     Colours.Dark.xaml :64/:68 like every other token here. */
  --info:         #1B4F86;   /* InfoColour */
  --info-tint:    #E6F1FB;   /* InfoTintColour */
  --ok:           #1E7E34;   /* SuccessColour */
  --warn:         #9A6206;   /* WarningColour */
  --bad:          #C0392B;   /* ErrorColour */
  --ok-tint:      #E7F4EB;   /* SuccessTintColour */
  --warn-tint:    #FBF1DF;   /* WarningTintColour */
  --bad-tint:     #FCECEA;   /* ErrorTintColour */

  /* --- Paper (web3 r06) --------------------------------------------------
     ⚠️ THESE TWO ARE DELIBERATELY OUTSIDE THE DARK BLOCK AND DO NOT SWAP, and
     that is the desktop's own ruling rather than an oversight here. The
     signature frame is `Background="White"` and the sentence inside it is
     `Foreground="#FF6B6B6B"` — two literals in a file where everything else is
     a DynamicResource — because a signature is a PHOTOGRAPH OF DARK INK: black
     ink on a dark surface is an invisible signature. TrackShipmentDialog.xaml
     :438–:442 says so in words, :460 and :468 are the values.
     They are named here rather than typed into the rule so the screen's own
     section can stay hex-free like every other parity section. #6B6B6B on
     #FFFFFF is 5.35:1 and passes AA in both themes, because in both themes it
     is the same two colours. */
  --paper:        #FFFFFF;   /* TrackShipmentDialog.xaml:460 Background="White" */
  --paper-muted:  #6B6B6B;   /* TrackShipmentDialog.xaml:468 */
  --paper-ink:    #000000;   /* web20-r09 (Sign-in security): the QR code's modules, dark on --paper in BOTH themes so a phone reads it */
  /* rw3 r10 (Rowan: the Pickup Manifest unreadable in dark mode) — the rest of
     a printed sheet's palette, the LIGHT theme's own values, never overridden
     by a theme block: `.papersheet` re-points the page tokens at these. */
  --paper-bg:     var(--paper);
  --paper-ink-2:  #3D4A57;   /* secondary text on paper */
  --paper-faint:  #5F6B77;   /* muted text on paper */
  --paper-head:   #23415F;   /* headings on paper — the light BrandTextColour */
  --paper-line:   #CBD3DD;   /* rules on paper — the light BorderSubtleColour */
  --paper-line-strong: #7E8C9B;
  --paper-alt:    #EEF2F7;   /* the even-row band on paper — the light SurfaceAltColour */
  --paper-picked: #CBD9E8;

  /* --- Buttons (web3 r04) ------------------------------------------------
     ⚠️ BrandButton IS NOT Brand ON DARK, and the two had been conflated here.
     Colours.Dark.xaml lifts BrandColour to #6E9CD1 (a LINE/TEXT colour, meant to
     read ON the dark card) but holds BrandButtonColour at #3A6396, because a
     button is a FILL with white text on it: #FFFFFF on #6E9CD1 is 2.76:1 and
     fails AA, #FFFFFF on #3A6396 is 6.17:1 and passes — which is exactly why the
     desktop keeps two tokens. The button rules below now bind these, so dark-mode
     buttons stop being pale-blue-on-white across the whole site. Light values are
     bit-identical to what the `--brand` trio painted before, so nothing changes
     in the light theme. */
  --brand-button:       #2D527C;   /* BrandButtonColour */
  --brand-button-hover: #3A6396;   /* BrandButtonHoverColour */
  --brand-button-press: #23415F;   /* BrandButtonPressedColour */

  /* --- Chrome ----------------------------------------------------------- */
  --chrome:       #2D527C;   /* ChromeBarColour */
  --chrome-line:  #3A6396;   /* ChromeBarBorderColour */
  --tab-selected: rgba(255,255,255,.16);   /* TabPillSelectedColour #29FFFFFF */
  /* web3 r04. The two chrome states TabItemStyle1 / ChromeBarButton paint as
     LITERALS in Styles.xaml rather than as tokens — #14FFFFFF hover and
     #33FFFFFF pressed — so they are the same translucent white in BOTH themes
     and are declared once here, outside the dark block, for the same reason. */
  --tab-hover:    rgba(255,255,255,.08);   /* TabItemStyle1 hover  #14FFFFFF */
  --chrome-press: rgba(255,255,255,.20);   /* ChromeBarButton pressed #33FFFFFF */
  /* web3 r04. Card headers are BRAND blue in both themes; the chrome bar is not
     (r23 split them so the bar can go neutral on dark and let the brand pop). */
  --card-header:  #2D527C;   /* CardHeaderColour */
  /* web3 r04. Text sitting ON the chrome bar / tab strip / status bar. Distinct
     from --on-brand: OnBrandColour is pinned white in both themes, this one is
     DefaultTitleBarTextColour and softens to #EDEDED on dark like the desktop. */
  --on-chrome:    #FFFFFF;   /* DefaultTitleBarTextColour */

  /* --- Shape ------------------------------------------------------------ */
  /* 8px corners on the cards, as the brief specifies and the desktop's island
     cards use. Controls keep the tighter 4px the desktop's inputs have. */
  --radius:       8px;
  --radius-input: 4px;
  /* web3 r04: the tab pills, the chrome buttons and the hero chip are all
     CornerRadius="6" in Design/Styles.xaml — one number, named once. */
  --radius-pill:  6px;
  --shadow: 0 1px 2px rgba(28,39,51,.06), 0 8px 24px rgba(28,39,51,.05);

  /* Segoe UI first — it is the desktop client's face on Windows, which is
     where nearly every CoSend shipper is. The rest is a system fallback so a
     Mac or a phone gets its own native face rather than a download. */
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* 32px controls, 24px minimum touch target — the brief's numbers, and the
     desktop's. 24px is the accessible floor; nothing here goes under it. */
  --control-h: 32px;
  --target-min: 24px;
  /* web3 r05 — the search screen's two DESKTOP sizes, named rather than typed
     into a rule. 28px is the height of every control in the criteria band
     (MainWindow.xaml :4159, :4188, :4204, :4213, :4235 — the Search button
     alone is 30) and of every button in the results toolbar; 24px is the grid
     row's MinHeight (:4005) and is also the WCAG floor, which is why nothing
     here goes under it. */
  --control-h-compact: 28px;
  --grid-row-h: var(--target-min);
  /* web4 r03 — THE HEIGHT OF THE SEARCH GRID'S AREA, measured off the PC client
     rather than chosen: at a 1200px-tall window the grid occupies ~600px, half
     the window, and it occupies it whether it holds rows or not. `clamp` says
     exactly that and survives the 791px-tall browser in the same screenshot,
     where half a window is 395px and 600px would be the whole screen.
     ⚠️ A SIZE, NOT A COLOUR — it correctly has no dark-mode twin. */
  --grid-area-h: clamp(320px, 50vh, 600px);
}

/* ==========================================================================
   DARK MODE — the SAME tokens, swapped for Colours.Dark.xaml's values.

   ⚠️ This is a token swap and nothing else. Not one rule below the :root
   blocks mentions a colour literal, so dark mode is this block and the light
   block agreeing on names — exactly the mechanism ThemeManager uses on the
   desktop (every brush binds its Color by DynamicResource; appending the dark
   dictionary re-colours everything live).

   ⚠️ AND IT DIFFERS FROM THE SETTINGS SITE ON PURPOSE. That site pins
   `color-scheme: light` and stays light in a dark browser, on the reasoning
   that a courier's setting must read the same on every desk. This is not that
   site: it is the shipper's day, all day, and the desktop client ships a real
   dark theme that people use. So it follows the browser.
   ========================================================================== */
/* ★★★ web6 r08 — THE SELECTOR NARROWED, AND NOT ONE VALUE BELOW IT CHANGED.
   This block used to be `:root`, i.e. "whatever the browser asks for, always".
   The Settings screen now has the PC's three-way Theme picker (Light / Dark /
   Follow your device), and "Follow your device" is what this block IS — so it
   is now scoped to that choice. `:root:not([data-theme])` is the belt-and-
   braces arm: every page renders through shell_head(), which always emits the
   attribute, so it should never match — and if some future page does not, dark
   mode keeps working instead of silently going light.
   ⛔ The explicit `[data-theme="dark"]` block a few lines down carries THE SAME
   VALUES. Change one, change both. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]),
  :root[data-theme="system"] {
    --brand:        #6E9CD1;
    --brand-line:   #7FA9DB;
    --brand-text:   #A9C6E8;
    --accent:       #F0A63C;
    --on-brand:     #FFFFFF;

    --page:         #14181D;
    --card:         #22272E;
    --surface-alt:  #2A3139;

    --text:         #EDEDED;
    --text-2:       #B4BEC9;
    --text-muted:   #8A96A2;

    --line:         #3A424C;
    --line-strong:  #616D7A;
    --focus:        #7FB0E8;

    /* web3 r05 — Colours.Dark.xaml :87 and :39. */
    --row-picked:       #31435A;
    --text-placeholder: #8A96A2;

    /* web3 r06 — Colours.Dark.xaml :64 and :68. The XAML measures them for us:
       #64A6E8 is 5.84:1 on the dark card and the tint pair is 5.96:1. */
    --info:         #64A6E8;
    --info-tint:    #14263B;
    --ok:           #57B26B;
    --warn:         #D89A3E;
    --bad:          #E5716A;
    --ok-tint:      #17301F;
    --warn-tint:    #33270F;
    --bad-tint:     #371A17;

    /* web3 r04: the button trio, which is NOT the --brand trio on dark. */
    --brand-button:       #3A6396;
    --brand-button-hover: #4A76AC;
    --brand-button-press: #2F5480;

    /* r23: on dark the bar goes NEUTRAL so the brand-blue pieces can pop, and
       the ACTIVE tab pill takes the dark BrandButton blue. */
    --chrome:       #2A3139;
    --chrome-line:  #3A424C;
    --tab-selected: #3A6396;
    /* web3 r04: card headers keep the BRAND blue while the bar above goes
       neutral — the r23 split, carried across. #EDEDED on it = 5.27:1. */
    --card-header:  #3A6396;
    --on-chrome:    #EDEDED;

    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.25);
  }
}

/* ==========================================================================
   ★★★ web6 r08 — THE THEME PICKER'S TWO EXPLICIT CHOICES.

   🔒 Gord, 2026-09-12: *"dark mode, light mode… all of it."* The PC's Settings
   page has three radios — Light, Dark, Follow Windows (spec §1.7, row 2) — and
   this is the browser's half of them. `shell_head()` writes the chosen one onto
   `<html data-theme>`; these two blocks are what it selects.

   ⚠️ IT IS A TOKEN SWAP AND NOTHING ELSE, which is the same claim the dark
   block above makes and the reason this round was cheap. No rule anywhere in
   this file is duplicated per theme; only the ~33 custom properties move.

   ⚠️ LIGHT NEEDS NO VALUES. The base `:root` block at the top of this file IS
   the light theme, and narrowing the media query above to "system" means
   nothing overrides it any more. So `[data-theme="light"]` only has to pin
   `color-scheme`, which is what stops the BROWSER painting form controls,
   scrollbars and the canvas dark underneath a light page.

   ⛔ DARK'S VALUES ARE DUPLICATED FROM THE MEDIA BLOCK ABOVE, DELIBERATELY, and
   there is no way round it in plain CSS: one copy has to sit inside
   `@media (prefers-color-scheme: dark)` for the "follow your device" choice and
   one has to sit outside it for the explicit choice, and a selector list cannot
   straddle a media query. They are kept adjacent so a diff shows both.
   ========================================================================== */

:root[data-theme="light"] { color-scheme: light; }

:root[data-theme="dark"] {
  color-scheme: dark;

  --brand:        #6E9CD1;
  --brand-line:   #7FA9DB;
  --brand-text:   #A9C6E8;
  --accent:       #F0A63C;
  --on-brand:     #FFFFFF;

  --page:         #14181D;
  --card:         #22272E;
  --surface-alt:  #2A3139;

  --text:         #EDEDED;
  --text-2:       #B4BEC9;
  --text-muted:   #8A96A2;

  --line:         #3A424C;
  --line-strong:  #616D7A;
  --focus:        #7FB0E8;

  --row-picked:       #31435A;
  --text-placeholder: #8A96A2;

  --info:         #64A6E8;
  --info-tint:    #14263B;
  --ok:           #57B26B;
  --warn:         #D89A3E;
  --bad:          #E5716A;
  --ok-tint:      #17301F;
  --warn-tint:    #33270F;
  --bad-tint:     #371A17;

  --brand-button:       #3A6396;
  --brand-button-hover: #4A76AC;
  --brand-button-press: #2F5480;

  --chrome:       #2A3139;
  --chrome-line:  #3A424C;
  --tab-selected: #3A6396;
  --card-header:  #3A6396;
  --on-chrome:    #EDEDED;

  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.25);
}

/* `system` is the default and needs no overrides of its own — the media block
   above already speaks for it. This line is what it inherits. */
:root, :root[data-theme="system"] { color-scheme: light dark; }

*, *::before, *::after { box-sizing: border-box; }

/* ⚠️ web3 r04 — THE BODY IS A COLUMN, so the STATUS BAR sits on the floor.
   The desktop's window is a three-row Grid: chrome, content, then a 40px
   StatusBar pinned to the bottom (MainWindow.xaml:6407). Its browser twin is the
   <footer>, and a footer that floats halfway up a short page is not that bar. A
   column flex body with a growing <main> puts it at the bottom of the viewport
   when the page is short and at the bottom of the document when it is long,
   which is what the desktop looks like in both cases. ⛔ Not `position: fixed`:
   that would cover the last line of a long screen on a phone. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--page);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

/* ---------- the bar ---------- */
/* ★★★ web4 r01 — ONE ROW, WHICH IS WHAT THE PC CLIENT HAS.
   Measured off the client at 2000x1200 beside the site at 1512x791: the client
   draws a SINGLE ~40px navy bar with the ten tabs packed to the left and, on the
   right, the IDS chip, "Shipping with <courier>", then Settings, Help and Log
   Out. The site drew TWO bars — a title bar and a tab bar under it — and side by
   side that is the first thing that looks wrong, before a field is compared.
   So the <nav> moved INSIDE the <header> and the seam went with it. There is
   still no rule under the bar, for the same reason there never was:
   ChromeBarBorderBrush is used on exactly one edge in the whole client, the top
   of the StatusBar, and on exactly one edge here.
   ⚠️ `flex-wrap` is kept and load-bearing: a phone cannot fit ten tabs and a
   courier name on one line, and a bar that wraps is honest where a bar that
   scrolls sideways or clips its own Sign out link is not. */

.topbar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 40px;
  padding: 2px 12px;
  background: var(--chrome);
  color: var(--on-chrome);
}
/* 🔒 Gord, 2026-09-08: "click cosend top left doesnt go to home screen". The
   wordmark is a real link on every signed-in page and a plain <span> on the
   sign-in page, where there is nowhere yet to go. Both selectors below are
   `a.brand`, so the span gets the type and none of the link's affordances. */
.topbar .brand {
  font-weight: 700; font-size: 16px; letter-spacing: .2px;
  color: var(--on-chrome); text-decoration: none;
  display: inline-flex; align-items: center;
  min-height: 28px; padding: 4px 6px;
  border-radius: var(--radius-pill);
  flex: 0 0 auto;
}
.topbar a.brand:hover { background: var(--tab-hover); }
.topbar a.brand:active { background: var(--chrome-press); }
.topbar a.brand:focus-visible { outline: 2px solid var(--on-chrome); outline-offset: -2px; }
.topbar .spacer { margin-left: auto; }
/* The client's IDS chip. It is an image there; ⛔ this site ships no image
   assets, so it is the same bold "IDS" the sign-in hero stands the chip in with,
   cut to the fragment that fits beside ten tabs. Outlined rather than filled, so
   it reads as a mark and not as a third run of chrome text. */
.topbar .chip {
  display: inline-flex; align-items: center;
  flex: 0 0 auto;
  min-height: 22px; padding: 1px 7px;
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius-pill);
  font-size: 12px; letter-spacing: .6px;
}
.topbar .chip b { font-weight: 700; }
/* "Shipping with <courier>" — the client's own line, courier name bold. It never
   wraps mid-phrase; if the bar runs out of room the whole line moves down. */
.topbar .shipwith { flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
.topbar .shipwith b { font-weight: 700; }
/* ★ web3 r04 — Settings, Help and Sign out are the desktop's ChromeBarButton,
   not links in a paragraph. Design/Styles.xaml:176 — flat, transparent on the
   navy, white text, NO border, CornerRadius 6, MinHeight 28, with a faint
   translucent-white pill on hover and a stronger one when pressed.
   ⛔ The underline goes because the desktop has none and because these are
   standalone chrome controls rather than links inside running text — and the
   pill, the pointer and a real focus ring all remain, so nothing depended on
   colour alone.
   ⚠️ web4 r01 took the type from 15px to 13px and the side padding from 12 to 9.
   That is not a taste change: sharing ONE row with ten tabs and a courier name
   is a width budget, and at 1512px the old numbers put Sign out on a second
   line. 28px of height — the click target — did not move. */
.topbar a.plain {
  color: var(--on-chrome); font-size: 13px; text-decoration: none;
  padding: 5px 9px 4px; min-height: 28px;
  border-radius: var(--radius-pill);
  display: inline-flex; align-items: center;
  flex: 0 0 auto;
}
.topbar a.plain:hover { background: var(--tab-hover); }
.topbar a.plain:active { background: var(--chrome-press); }
.topbar a.plain:focus-visible { outline: 2px solid var(--on-chrome); outline-offset: -2px; }
/* ⚠️ web4 r01 — Settings was a TAB and wore the selected pill when you were on
   it. It is a chrome item now and still wears it, from the same token, so the
   move cost nothing: the screen you are on is still the one that looks it, and
   `aria-current` is still what announces it. */
.topbar a.plain[aria-current="page"] { background: var(--tab-selected); }

/* ---------- the tab strip ---------- */
/* The desktop's flat pill strip (TabItemStyle1, Design/Styles.xaml:249),
   carried across: FULLY rounded 6px pills — ⛔ not top-only, the desktop
   dropped that silhouette in r10 — transparent on the navy so the strip reads
   through, white text, and ONLY the background changes on selection so a
   selected pill keeps the exact footprint of its unselected self.
   ⚠️ web4 r01 changed WHERE this lives, not what it is: it is a flex item in the
   bar now, so it carries no navy of its own (the bar's shows through, which is
   what "one surface" means) and no padding of its own. It is the item allowed to
   absorb the pressure — `flex: 1 1 auto; min-width: 0` — so when a window is too
   narrow the TABS take a second line and the chrome on the right stays put. */

.tabstrip {
  display: flex; flex-wrap: wrap; align-items: center;
  flex: 1 1 auto; min-width: 0;
  padding: 0;
  background: transparent;
}
.tab {
  display: inline-flex; align-items: center;
  min-height: 28px;
  margin: 2px 3px 2px 0;             /* the XAML's Margin="0,2,4,2", tightened */
  padding: 5px 7px 4px;              /* the XAML's per-tab Padding="8,5,8,4" */
  font-size: 13px;                   /* FontSizeBody 12, on this sheet's ramp */
  color: var(--on-chrome);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-pill);
}
/* Hover on an UNSELECTED tab is the fainter 8%-white pill; the selected one
   is the stronger one (TabPillSelectedBrush). ⛔ No weight change on select:
   r11 dropped the SemiBold setter on purpose so the strip never shifts
   sideways when you move between tabs. `aria-current` is what announces it. */
.tab:hover, .tab:focus-visible { background: var(--tab-hover); }
.tab[aria-current="page"] { background: var(--tab-selected); }
.tab:focus-visible { outline: 2px solid var(--on-chrome); outline-offset: -2px; }

/* A tab whose screen is not built yet: PRESENT, dimmed, with a tooltip.
   ⛔ Never a 404, and never silently missing.
   ⚠️ .55 rather than ChromeBarButton's disabled 0.45: the desktop has no
   disabled tab at all, so there is nothing to match, and these tabs exist to be
   READ — "coming in a later update" is the message. Dimmer would be more
   faithful to a control that does not exist. */
.tab.disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ---------- the page column ---------- */
/* ★★★ web4 r01 — THE ONE RULE THAT WIDENS EVERY SCREEN AT ONCE.
   Measured, not guessed: on the PC client at a 2000px window the islands span
   x=222…1788 — 1566px, or **78% of the window**. The site capped its column at
   1100px, which on the 1512px browser Gord had open beside it is 62% and is why
   every screen was squeezed and wrapping. `shell_head()` emits exactly one
   wrapper, this bare `<main>`, so 78vw here is 78vw on all nine screens and no
   later round has to remember to widen its own.
   ⚠️ THE CEILING IS REAL. 78vw on a 2560px monitor is 2000px of running text,
   which nobody can read across; 1600px is the widest the client itself gets to
   at the window sizes it is used at, so it is the widest we go.
   ⚠️ AND BELOW 1200px THE PERCENTAGE STOPS MAKING SENSE — 78% of a phone is a
   column with two useless gutters — so it becomes the full viewport less a 16px
   gutter each side. `100vw` is safe here: `box-sizing: border-box` is global, so
   the 18px padding is inside the width, and 32px is wider than any classic
   scrollbar, so a column that has already excluded it cannot overflow.
   ⛔ The sign-in card is NOT affected and must not be: `.loginscreen` carries its
   own 641px ceiling, which is the client's own centred card. */
main {
  flex: 1 0 auto;
  width: 78vw;
  max-width: 1600px;
  margin: 26px auto 40px;
  padding: 0 18px;
}
@media (max-width: 1199px) {
  main { width: calc(100vw - 32px); }
}

/* ---------- the status bar ---------- */
/* web3 r04: the desktop's StatusBar — Height 40, ChromeBar fill, a single
   ChromeBarBorder rule along its top, title-bar text on it.
   ⚠️ web4 r01 changed only the WORDS on it (shell_foot()), never the box. The
   client's floor reads `IDS CoSend (v.58) Coral Courier Company --- logged in on
   oz`; ours reads the same sentence without a version number this site does not
   have. The three literal declarations below are asserted verbatim by the
   harness — a later round that reformats them fails the r04 frame checks. */
footer {
  flex: 0 0 auto;
  display: flex; align-items: center;
  min-height: 40px; padding: 0 18px;
  background: var(--chrome);
  border-top: 1px solid var(--chrome-line);
  color: var(--on-chrome); font-size: 13px;
}

/* ---------- the shared kit ---------- */
/* ★★★ web4 r01 — THE PAGE TITLE THE PC CLIENT DOES NOT DRAW.
   The client shows no page heading anywhere: the SELECTED TAB is the title, and
   a big "Search Shipments" above a screen you reached by pressing a tab marked
   Search Shipments is a browser habit, not a parity feature. But an <h1> is not
   decoration — it is what a screen-reader user lands on, and what the harness's
   one-h1-per-page checks count. So the heading stays in the markup on every
   screen and stops being drawn, which is the only arrangement that serves both.
   ⛔ NOT the display property's `none` value, and NOT the visibility property's
   `hidden` value: both remove the element from the accessibility tree, which is
   the opposite of the point. This is the clip-rect pattern, and it keeps the text
   in the tree, in the reading order and in a find-on-page.
   ⚠️ web4 r09 REWORDED THOSE TWO NAMES AND CHANGED NO RULE. The check that bans
   them reads a fixed slice of this FILE starting at the rule below, and a comment
   that spells a banned declaration out is a needle the search cannot tell from a
   real one. Name it in words here; the test names it in code.
   `clip` is the deprecated property every current browser still honours; the
   `clip-path` beside it is the modern one. Both, on purpose. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
}

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.card h1 { margin: 0 0 4px; font-size: 20px; color: var(--brand-text); }
.card h2 { margin: 0 0 4px; font-size: 17px; color: var(--brand-text); }
.card p.lede { margin: 0 0 18px; color: var(--text-2); }

/* web3 r04: `.card.signin` (a 420px-wide generic card) lived here and is GONE —
   the sign-in screen is now the desktop's own three-island hero / card /
   endorsement stack and is built out of its own rules at the foot of this file.
   `grep -rn "signin" browser/` → the CHANGELOG and this comment only. */

/* ---------- fields ---------- */

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field .help { display: block; color: var(--text-2); font-size: 13px; margin-bottom: 6px; }

/* ⚠️⚠️ web4 r11 — `input[type=number]` JOINED THIS LIST, AND IT IS A BUG FIX,
   NOT A TIDY-UP. Gord, 2026-09-08: *"Not all the fields are the same size."*
   Cowork's screenshot shows the Pieces box on Enter New Shipment shorter than
   every box beside it and wearing a different edge — because it is the ONE
   `type=number` on the site and this rule named five input types and not that
   one, so it fell through to the browser's own default paint. ⛔ The fix belongs
   HERE and not in the ship section: a second `type=number` added on any screen
   would have inherited the same defect. */
input[type=text], input[type=password], input[type=search], input[type=number],
select, textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 6px 10px;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

/* ⛔⛔ web9 r03 — THE NUMBER SPINNER IS GONE FROM EVERY QUANTITY BOX ON THE SITE,
   AND THE BOX IS STILL A NUMBER.

   🔒 Gord, 2026-09-13: *"Return pieces section has a number picker, get rid of
   it, let people type."* The same spinner was on **Pieces** on Enter New
   Shipment and on **Pieces / delivery** on Batch Shipment, because all three are
   the same `input[type=number]`; the PC draws a plain typed box on all three and
   the PC is the spec. ⛔ ONE RULE, THREE SCREENS, and any `type=number` added
   tomorrow is right without anyone remembering this note — the same reasoning
   web4 r11 wrote directly above for the paint.

   ⛔⛔ WHAT DID **NOT** CHANGE, AND THIS IS THE POINT. The markup is untouched:
   every one of those boxes is still `type="number"` with its own `min`, `max`,
   `step` and `required`, so the browser still refuses a letter, the server-side
   check that was already there is still the one that decides, and a phone still
   opens the numeric keypad. ⛔ Turning these into `type="text"` would have let a
   letter through and is exactly what the ruling forbids. Only the two arrows the
   browser paints inside the box are removed.

   ⚠️ `appearance: textfield` on the input is what Firefox reads; the two
   `::-webkit-*-spin-button` pseudo-elements are what Chromium and Safari read.
   Both halves are needed and neither is a fallback for the other. */
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* ⚠️ web3 r04 — THE FILL IS `--brand-button`, NOT `--brand`. See the token
   block: on dark those are different colours on purpose, and white text on the
   one this used to name fails AA. Light is unchanged to the byte. */
button {
  min-height: var(--control-h);
  padding: 6px 18px;
  font: inherit; font-weight: 600;
  color: var(--on-brand); background: var(--brand-button);
  border: 1px solid var(--brand-button); border-radius: var(--radius-input);
  cursor: pointer;
}
button:hover { background: var(--brand-button-hover); border-color: var(--brand-button-hover); }
button:active { background: var(--brand-button-press); border-color: var(--brand-button-press); }
/* The accent earns its keep here and nowhere else: a focus ring that is not
   the same colour as the thing it surrounds. */
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* A link that has to sit in a row of buttons and look like one.
   ⚠️ web3 r05 MOVED THIS BLOCK UP FROM THE SEARCH SECTION, unchanged to the
   byte. It was never search-specific — the shipment, address book and users
   screens all use it — and leaving it inside a section headed with one screen's
   name is how a later round deletes it by accident. Order relative to every
   rule that follows is unchanged, so nothing re-cascades. */
.btnlink {
  display: inline-flex; align-items: center;
  min-height: var(--control-h); padding: 6px 16px;
  font-weight: 600; text-decoration: none;
  color: var(--brand); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--radius-input);
}
.btnlink:hover { border-color: var(--brand); }
.btnlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* web1 r05: the confirmation page's leading action, painted like a real button.
   ⚠️ It is still an <a>: it navigates, it changes nothing, and it must stay
   reachable and announceable as a link. */
.btnlink.primary {
  color: var(--on-brand); background: var(--brand); border-color: var(--brand);
}
.btnlink.primary:hover { background: var(--brand-line); border-color: var(--brand-line); }
/* ⛔ A disabled control is a <span>, never a disabled <a> — HTML has no such
   thing and every fake version of one is reachable by keyboard. */
.btnlink.disabled {
  color: var(--text-2); background: var(--surface-alt);
  border-style: dashed; cursor: default;
}
/* ★ rw4 Cowork — a real <button> in the toolbar's look (Search's Clone): the same
   face as the links beside it, and its own `disabled` drawn like theirs. */
button.btnlink { font: inherit; font-weight: 600; cursor: pointer; }
button.btnlink:hover, button.btnlink:active { color: var(--brand); background: var(--card); border-color: var(--brand); }
button.btnlink:disabled {
  color: var(--text-2); background: var(--surface-alt);
  border-style: dashed; cursor: default;
}

/* ---------- notices ---------- */

.notice {
  margin: 0 0 16px; padding: 10px 12px;
  border-radius: 6px; border: 1px solid;
  font-size: 14px;
}
.notice.ok   { background: var(--ok-tint);   border-color: var(--ok);   color: var(--ok); }
.notice.warn { background: var(--warn-tint); border-color: var(--warn); color: var(--warn); }
.notice.bad  { background: var(--bad-tint);  border-color: var(--bad);  color: var(--bad); }

/* ---------- small print ---------- */

.rule { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.smallprint { color: var(--text-2); font-size: 13px; }
a { color: var(--brand); }

/* ==========================================================================
   web1 r02 — THE RESULTS-SCREEN KIT (SHARED)

   Every colour below is one of the tokens declared at the top of this file, so
   the dark-mode block already has it covered and nothing here was picked by
   eye. Same rule as the rest of the sheet: no webfont, no image, no download.

   ⚠️ web3 r05 RENAMED THIS SECTION, and the rename is the whole point. It was
   headed "THE SEARCH SCREEN", but four screens grew into it — grepping the site
   for `gridwrap` answers search.php, addresses.php, users.php and track.php,
   and `resultsbar`, `.pill`, `.emptynote`, `table.grid` and `.detailcard` are
   the same story. Every rule below is therefore SHARED and a change to it lands
   on screens this round did not read. The Search screen's OWN rules live in
   their own section a little further down, scoped to the markup only Search
   emits (`.island`, `.critrow`, `#trips`, `.detailblock`).
   ⛔ Do not put a screen-specific rule up here again.

   ⛔ AND A NOTE ON THAT GREP: it is spelled out in words rather than written as
   a shell glob, and this paragraph names no comment delimiter literally. A
   slash-star inside a CSS comment does not nest, so it cannot break the parse —
   but it skews the open-vs-close balance count this project uses as its cheap
   syntax check. A star-slash is far worse: it CLOSES the comment on the spot
   and spills the rest of the prose into the parser. Both were written by
   accident in this very block while it was being drafted, and caught here.
   ========================================================================== */

/* ---------- the results toolbar ---------- */

.resultsbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.resultsbar .spacer { margin-left: auto; }
.pill {
  padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--on-brand); background: var(--brand);
}
.filterbox { display: flex; align-items: center; gap: 6px; }
/* ⚠️ web4 r11 — `max-width: 100%` AND `min-width: 0` ARE THE FIX FOR THE ONE
   DEFECT COWORK PHOTOGRAPHED ON TWO SCREENS AT ONCE: the filter box running off
   the right edge of its island and being cut off by `.card.island`'s own
   `overflow: hidden`. A bare `width: 15em` on an <input> is a FLOOR as well as a
   width — an input's `min-width: auto` resolves to its intrinsic `size` — so the
   box could not give ground when the toolbar around it ran out of room, and what
   was over the edge was simply clipped away. With these two the box can shrink
   inside whatever slot its screen's toolbar gives it, and each screen's own
   section below says how wide that slot is. */
.filterbox input { width: 15em; max-width: 100%; min-width: 0; }
/* ⛔ web3 r05 — A DEFECT, FOUND WHILE RE-SCOPING THIS SECTION AND FIXED HERE.
   Both filter boxes ship with the `hidden` attribute and both files say in
   words why: "HIDDEN in the markup and revealed by search.js, because it does
   nothing without it — a control that is visibly there and silently dead is
   worse than one that is honestly absent" (search.php; addresses.php says the
   same). ⚠️ But `hidden` is only a UA-stylesheet `display:none`, and ANY author
   rule beats the UA sheet — so the `display:flex` on the line above has been
   quietly overriding it since web1 r02. A shipper with scripting off has been
   shown a filter box that cannot filter, on the Search screen AND in the
   Address Book. One line, no `!important` (the attribute selector is enough to
   win), and it restores exactly what both pages already intended. */
.filterbox[hidden] { display: none; }

.chooser summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center;
  min-height: var(--control-h); padding: 6px 16px;
  font-weight: 600; color: var(--brand); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--radius-input);
}
.chooser summary::-webkit-details-marker { display: none; }
.chooser summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.colform {
  margin-top: 8px; padding: 12px;
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-input);
}
.collist {
  list-style: none; margin: 0 0 10px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: 2px 14px;
}
.collist label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.collist input[type=checkbox] { width: auto; min-height: 0; }

/* ---------- the grid ---------- */

/* 25 columns will not fit on any screen anyone owns, so the TABLE scrolls
   sideways inside its card rather than the page doing it. The desktop's grid
   scrolls horizontally for exactly the same reason (MainWindow.xaml :4353). */
.gridwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-input); }
table.grid { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
/* rw3 r07 - a Settings table wider than its band scrolls sideways, with a
   scrollbar that is always visible (Rowan 2026-10-30: wide tables were cut off). */
.tablescroll { overflow-x: auto; max-width: 100%; padding-bottom: 4px;
  scrollbar-width: auto; scrollbar-color: var(--line-strong) var(--line); }
.tablescroll::-webkit-scrollbar { height: 12px; }
.tablescroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.tablescroll::-webkit-scrollbar-track { background: var(--line); }
table.grid th, table.grid td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.grid thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface-alt); color: var(--text-2);
  font-size: 12px; letter-spacing: .02em;
  border-bottom: 2px solid var(--line);
}
/* ⛔⛔⛔ web9 r03 — THE LAST ROW DRAWS NO RULE UNDER ITSELF, AND THIS IS THE
   "artifact across the screen" DEFECT.

   🔒 Gord, 2026-09-13, on Edit Active Shipments: *"There is an artifact across
   the screen. Its a long thin line."* — running across the shipment list just
   under the last row.

   THE CAUSE, NAMED, AND IT IS NOT AN ARTIFACT AT ALL — it is a real border being
   drawn exactly where it was told to. The rule above gives EVERY `td` a
   `border-bottom`, which is right between two rows and wrong under the last one.
   On most grids you never see it, because the table ends where its `.gridwrap`
   ends and the two hairlines land on the same pixel. Edit Active's list is
   `.gridwrap.tallgrid`, whose `min-height` PINS the area at `--grid-area-h`
   (320–600px) whether or not there are enough shipments to fill it — so with a
   handful of rows the last row's own bottom border is left stranded in the
   middle of an empty white area, a full-width 1px line with nothing under it.
   That is the long thin line, and it was on every `.tallgrid` on the site, not
   just this one.

   ⭐ SO THE CAUSE GOES, NOT THE PIXEL. The wrap's own 1px frame is the bottom of
   the list and always was; the last row simply stops drawing a second one.
   ⚠️ It reaches every grid on the site — Edit Active, Search results, the Address
   Book, Users and Access, Track, Reports, My Products and the batch previews —
   and on the ones whose table fills its wrap it removes a doubled hairline that
   nobody had named. ⛔ `tbody`-scoped and `:last-child`-scoped: the header rule's
   heavier 2px divider and every border BETWEEN two rows are untouched. */
table.grid tbody tr:last-child > td,
table.grid tbody tr:last-child > th { border-bottom: 0; }

table.grid th.sortable { cursor: pointer; }
table.grid th.sortable:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* The sort arrow is CSS content on the aria-sort attribute, so the thing a
   screen reader announces and the thing a sighted reader sees are the same
   fact and cannot disagree. */
table.grid th[aria-sort="ascending"]::after  { content: " \2191"; }
table.grid th[aria-sort="descending"]::after { content: " \2193"; }
/* The desktop's AlternationCount="2" zebra. */
table.grid tbody tr:nth-child(even) { background: var(--surface-alt); }
table.grid tbody tr.picked { outline: 2px solid var(--brand); outline-offset: -2px; }
table.grid td.rowacts { white-space: nowrap; }
table.grid td.rowacts a { margin-right: 10px; }
table.grid td.rowacts .disabled { color: var(--text-muted); cursor: not-allowed; margin-right: 10px; }

/* The r41 Return indicator — a small outlined badge on return rows, nothing on
   outbound ones. Ported shape: border, not a fill, so it reads as a note
   rather than as a status. */
.badge {
  display: inline-block; padding: 0 6px 1px;
  font-size: 11px; font-weight: 700;
  border: 1px solid var(--line-strong); border-radius: 3px; color: var(--text);
}

/* The honest empty result — words IN the results area, never a blank card. */
.emptynote { margin: 18px 0; text-align: center; color: var(--text-2); font-size: 16px; }

/* ---------- the read-only detail panel ---------- */

.detailcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(19em, 1fr)); gap: 14px; }
.detailcard { border: 1px solid var(--line); border-radius: var(--radius-input); overflow: hidden; }
/* ⚠️ h3 AND h4. The Track and Address Book screens open their detail cards at
   h3; the Search screen's panel now sits INSIDE the Results island (web3 r05),
   so its cards start one level deeper and are h4. Same painted strip either
   way — the heading LEVEL is document structure and must follow the nesting,
   which is exactly why it is not hard-coded into the look. */
.detailcard h3, .detailcard h4 {
  margin: 0; padding: 6px 10px; font-size: 14px;
  color: var(--on-brand); background: var(--brand);
}
.detailcard dl { margin: 0; }
.detailcard .dfield {
  display: grid; grid-template-columns: 10em 1fr;
  gap: 8px; padding: 5px 10px; border-bottom: 1px solid var(--line);
}
.detailcard .dfield:last-child { border-bottom: 0; }
.detailcard dt { color: var(--text-2); font-size: 12px; }
.detailcard dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }

/* A plain label/value list, the same shape the Search detail cards use but
   without the card around it.
   ⚠️ web3 r06 MOVED THIS BLOCK UP OUT OF THE TRACK SECTION, unchanged to the
   byte, for the reason r05 moved `.btnlink` out of the Search section: it was
   never Track-specific. `grep -rn 'class="fields"' browser/site` answers
   track.php AND users.php, and leaving a shared rule inside a section headed
   with one screen's name is how a later round deletes it by accident. Order
   relative to every rule that follows is unchanged, so nothing re-cascades.
   ⛔ Track's OWN metrics for these four selectors are the desktop's and now
   live scoped to `.trackisland` in the r06 section; the Users screen keeps
   exactly what it has had since web1 r03. */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(17em, 1fr)); gap: 2px 18px; margin: 0; }
.fields .dfield { display: grid; grid-template-columns: 9em 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.fields dt { color: var(--text-2); font-size: 12px; }
.fields dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }

/* ══════════════════════════════════════════════════════════════════════════
   web4 r03 — SEARCH SHIPMENTS, LAID OUT LIKE THE PC CLIENT

   (This section was headed "web3 r05 — SEARCH SHIPMENTS, LAID OUT LIKE THE PC
   CLIENT" and is the same block, rebuilt against SIDE-BY-SIDE SCREENSHOTS of
   the two products rather than against the XAML alone. ⚠️ The harness extracts
   it BY THIS BANNER TEXT; the needle at run-tests.php's search section is
   re-pointed in the same commit. Rename a banner, re-point its needle — the
   lesson r06, r07, r08 and r09 each had to learn in turn.)

   Source: MainWindow.xaml :3982–:4722 (tabItemSearchTrips), read in full, plus
   Cowork's 2026-09-08 screenshots — PC client at 2000×1200, browser at
   1512×791. Gord, looking at the live site: "I really would like the screens in
   the browser version to look exactly like whats in the PC Client version… Then
   when someone jumps from one to the other, they dont get confused."

   ⭐ WHAT web3 GOT RIGHT AND WHAT IT MISSED. It matched the WORDS and the ORDER
   of the XAML — every caption on this screen is the desktop's own resource key
   and has been since web1 r02. It missed the SHAPE, and the screenshots say so
   in four places:

     1. THE CRITERIA BAND WRAPPED. On the client it is ONE line ending in Search
        and Clear hard right. In the browser at 1512px it broke over two rows and
        pushed the buttons onto the second. `flex-wrap: wrap` was the culprit and
        it is gone above 860px; the boxes SHRINK instead, which is what the
        client's own Grid does when its window narrows.
     2. THE TOOLBAR WRAPPED TOO, and it was missing controls. Held Shipments fell
        to a second row, Export and the Filter box were only drawn once a search
        had returned rows, and Detailed Tracking was not drawn at all. All three
        are permanent slots on the client, so all three are permanent here.
     3. THE GRID WAS NOT THERE UNTIL IT HAD ROWS. The client's grid occupies the
        same ~600px of a 1200px-tall window whether it holds three shipments or
        none — an empty grid with its header row is the screen's resting state,
        and a one-line sentence in a short card is not. `--grid-area-h` below is
        that height, expressed so it still makes sense on a 791px browser.
     4. THE DETAIL PANE WAS CONDITIONAL AND ITS CARDS WERE LABEL-BESIDE-VALUE.
        The client shows Pickup Info · Delivery Info · the shipment summary under
        the grid at all times, each under a NAVY CENTRED header, each a small
        multi-column table of caption-ABOVE-value pairs. That is the brief's
        "labels above inputs in the desktop's grey caption weight", and it is the
        shape this section now builds.

   The desktop tab is TWO islands stacked in one centred column (:4109–:4114):

     ISLAND 1  Find shipments  (:4125)  a headed card holding ONE tight control
                                        row — Dates pair │ Status From→To │
                                        Find-by │ spring │ Search, Clear.
     ISLAND 2  Results         (:4242)  a headed card holding, top to bottom,
                                        the one-line toolbar (:4262), the held-
                                        shipments note (:4323), the tall grid
                                        (:4349) and the read-only detail panels
                                        (:4533) as its LAST ROW.

   ⛔ EVERY COLOUR BELOW IS A `var(--…)`. Not one hex literal appears in this
   section; the test suite asserts it with a pattern that hunts a hash followed
   by three or more hex characters, which is why the id selectors below were
   checked one by one — none of them spells one.
   ⛔ Every size below is the DESKTOP's own number, quoted with its XAML line or
   with the screenshot measurement it came from.
   ⛔ Nothing here goes under the 24px WCAG target floor.
   ══════════════════════════════════════════════════════════════════════════ */

/* ---------- the island card and its header strip ---------- */

/* The desktop's SearchSectionCard (:4055–:4061): SurfaceCard fill,
   BorderSubtle hairline, CornerRadiusCard = 8 = `--radius`. `.card` already
   paints all three; the island variant only moves the padding OFF the card and
   INTO the body, so the header strip can run edge to edge the way
   CornerRadiusCardHeader ("8,8,0,0", Styles.xaml :29) requires. */
.card.island { padding: 0; overflow: hidden; }

/* ★★★ web8 r01 — AN ISLAND THAT HOLDS AN ADDRESS CARD DOES NOT CLIP.
   ⛔⛔ THIS IS THE REGRESSION FIX FOR "THE ADDRESS PICKER DOES NOTHING", and it
   is the ONE line in this file this round adds.

   🔒 Gord, 2026-09-13, on five screens: *"When I start to type a name into the
   company field … nothing appears."*

   THE CAUSE, NAMED. The rule directly above arrived in web6; at web5's tip —
   where Gord smoked the picker working on 2026-09-12 — `.card.island` did not
   exist in this file at all. The suggestion list is a `position: absolute`
   `<ul class="addrpop">` anchored to the field's own `.fld`, and every address
   card lives inside one of those sections. `overflow: hidden` did two things to
   it, both fatal and neither visible in a code review of the SCRIPT:
     1. it CLIPPED the list to the island's padding box, so any part of it below
        the card was simply not painted; and
     2. it made the section a SCROLL CONTAINER, so opening the list or focusing
        a box scrolled it a pixel, which fired `scroll`, which `ship.js`'s
        `window` capture listener answered by closing the list — in the same
        frame it opened.

   ⛔ THE SITE-WIDE RULE IS NOT UNDONE. It exists so the header strip's fill
   meets the card radius, and it keeps doing that for every other island. This
   opts out exactly the four sections that render `fieldset.addrcard`, which ask
   for it by name in their own markup, and `.islandhead` below carries its own
   top corners so nothing about the strip changes on them either.

   ⚠️ A POPUP MUST NEVER DEPEND ON AN ANCESTOR'S `overflow` AGAIN. `ship.js`'s
   scroll listener now also ignores a scroll on any element that CONTAINS the
   popup, so even an island that did clip could no longer close the list. Belt
   and braces, deliberately: this defect cost a whole smoke. */
.card.island.addrisland { overflow: visible; }

/* ★ web8 r01 — A TICKED PICKER ENTRY THE FILTER NO LONGER MATCHES STAYS ON
   SCREEN, and says why it is still there. 🔒 Gord: *"rows ticked before the
   filter got added anyway"* — so what a person can SEE ticked is now always the
   whole set Add will add. ⛔ Tokens only, and no `display` change: the entry is
   a normal row that has been marked, not a special one. */
.picklist li.pickkept { border-left: 2px solid var(--brand); padding-left: 6px; }
.card.island.addrisland > .islandhead {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
/* ⛔⛔⛔ web9 r03 — `color` ON THE BAND, NOT ON THE HEADING. THIS IS THE
   "hint text in the top bars are not visible" DEFECT, and it is one fault seen
   on a dozen screens, exactly the shape web8's two phantom tokens had.

   🔒 Gord, 2026-09-13, three times: *"The hint text in the top bars are not
   visible as their font is same colour."* · *"Hint Text in the pick up and
   delivery address section still the wrong font colour, should be white, cant
   read it."* · *"Hint text, like the other screens, in the headers in the wrong
   font colour."*

   THE CAUSE, NAMED. This rule painted the strip `--card-header` (the brand
   blue) and then set NO foreground at all. Only the `h1`/`h2` rule below it
   named `--on-brand`, so the heading words were white and EVERY OTHER CHILD of
   the band inherited the page's `--text` (#1C2733) or was handed a muted grey
   by a rule of its own — dark text on dark blue, which is what Gord could not
   read. The band's children are `.headsub` (nine of them), `.totalweight`,
   `.previewhead`'s date captions, `.pill` and `.num`.
   ⭐ THE FIX IS ONE DECLARATION AND IT IS ON THE BAND, so a child added to a
   band tomorrow is legible without anyone remembering this note. The two
   children that carry their OWN fill — `.pill` (SurfaceAlt) and `.num` (a white
   disc) — declare their own colour and are untouched by an inherited one.
   ⛔ NOT A NEW GREY. `--on-brand` is the band's own foreground, the same token
   the heading beside the hint already uses. */
.card.island > .islandhead {
  padding: 6px 14px;
  background: var(--card-header);
  color: var(--on-brand);
  border-bottom: 1px solid var(--line);
}
/* CardHeaderBrush + OnBrandBrush + FontSizeSubtitle(14) + SemiBold — the
   desktop's header TextBlock, :4128 and :4252. The h1/h2 distinction is
   document structure; both look identical, because on the desktop they are
   the same painted strip. */
.card.island > .islandhead > h1,
.card.island > .islandhead > h2 {
  margin: 0; font-size: 14px; font-weight: 600;
  color: var(--on-brand);
}
.card.island > .islandbody { padding: 14px 16px 16px; }

/* ---------- island 1: the criteria band ---------- */

/* :4131 is ONE Grid row, left-packed, with `Width="Auto"` groups, 1px dividers
   between them and a single `Width="*"` spring before the buttons.
   ★★★ web4 r03 — `flex-wrap: wrap` IS GONE ABOVE 860px, AND THAT IS THE FIX.
   The screenshot shows the browser breaking this band over two lines and
   dropping Search and Clear onto the second, while the client keeps one line
   ending in those two buttons hard right. Wrapping was the wrong concession:
   a WPF Grid whose window narrows does not re-flow its columns onto a new row,
   it squeezes them. So the row no longer wraps and the boxes shrink instead —
   see the `min-width: 0` note on the control widths below, which is what makes
   shrinking possible. The phone case still stacks, at the media query at the
   foot of this section, where stacking is the only honest answer.

   ⚠️⚠️ web4 r11 — AND THE NO-WRAP IS NOW SCOPED TO THE WIDTH IT IS TRUE AT,
   BECAUSE r03'S OWN FIX IS WHAT CLIPPED THE BOXES. Gord, 2026-09-08, with the
   two products side by side: *"Not all the fields are the same size, some
   clipping of buttons etc."* Cowork's screenshot shows the From box reading
   `2026-09-0` with its picker arrow eating the last digit and the Find-by combo
   reading `Client Referenc`. That is r03's shrink doing exactly what r03 asked
   it to do, and it is worse than the wrap it replaced: a wrapped row still says
   what it says, a shrunk one destroys the value in the box.

   ⛔ AND THE ARITHMETIC SAYS ONE LINE IS NOT AVAILABLE AT 1512px. Added up out
   of the declarations below at the widths a value actually needs — the two
   pickers 150 each, the two status combos 157, the find-by combo 160, its value
   box 172, three captions, two hairlines, Search and Clear — the band wants
   about 1290px. web4 r01's page column is 78vw, so an island body is
   `0.78 × window − 68`: 1111px at Gord's 1512 and 1024px at 1400. It fits at the
   2000px window the PC client is used at (1492px of island) and it does not fit
   at 1512. So the band holds the client's one line WHERE THE CLIENT'S WINDOW IS
   and wraps below that, with each group kept whole — `.grp` is still `nowrap`,
   so Dates never splits from its two boxes. ⛔ Wrapping is ugly; a date a shipper
   cannot read is broken. */
.critrow {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: 8px 0;
}
.critrow .grp {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  min-width: 0;
}

/* The group caption — a plain TextBlock in TextSecondary with a 6px right
   margin on the desktop (:4157, :4187, :4203). The `gap` above supplies the 6.
   ⛔ `flex: 0 0 auto` and `white-space: nowrap`: now that the row cannot wrap,
   the three captions are the one thing on it that must never be squeezed —
   "Find by" broken across two lines inside a one-line band is worse than a
   slightly narrower box beside it. */
.critrow .grplabel {
  color: var(--text-2);
  flex: 0 0 auto; white-space: nowrap;
}

/* The en dash between the two date boxes (:4165) and the arrow between the two
   status boxes (:4192). Same colour, same 5–6px of air, on the desktop. */
.critrow .sep { color: var(--text-2); padding: 0 2px; }

/* `<Border Width="1" Background="{DynamicResource BorderSubtleBrush}"
    Margin="10,2,10,2"/>` — :4174 and :4198, to the pixel. */
.critrow .vdiv {
  width: 1px; align-self: stretch; min-height: var(--control-h-compact);
  margin: 2px 10px; background: var(--line);
}

/* `<ColumnDefinition Width="*"/>`, :4138. */
.critrow .critspring { flex: 1 1 0; min-width: 0; }

.critrow .critactions { display: flex; align-items: center; gap: 8px; }

/* THE DESKTOP'S CONTROL WIDTHS AND HEIGHTS, one for one:
     from/to pickers  Width 120  Height 28   :4159 :4167
     status combos    Width 146  Height 28   :4188 :4193
     find-by combo    Width 132  Height 28   :4204
     find-by value    Width 160  Height 28   :4213
   `em` rather than `px` because the browser must survive a shipper who has
   turned their base font up, and because the FR and ES status words are longer
   than the EN ones. The RATIO is the desktop's; the floor is the WCAG one.

   ★★★ web4 r03 — THESE ARE `width` + `min-width: 0`, NOT `min-width`.
   They were `min-width`, and a flex item whose min-width is set cannot shrink
   below it — so the moment the eight controls, three captions, two dividers and
   two buttons added up to more than the column, the row had nowhere to go but
   a second line. That is exactly what the screenshot caught. Written as a
   `width` FLEX BASIS with the shrink floor released, the band keeps the
   desktop's proportions while there is room and gives the proportional amount
   back when there is not — which is what the client's own star-sized Grid does.
   ⛔ The HEIGHT floor is untouched and is not negotiable: 28px is the client's
   own control height and is above the 24px target minimum. */
.critrow input[type=date],
.critrow select,
.critrow input[type=text] {
  min-height: var(--control-h-compact);
  padding: 3px 8px;
  flex: 0 1 auto; min-width: 0;
}
/* ⚠️ web4 r11 — THE TWO PICKERS AND THE FIND-BY COMBO GREW, AND EACH NEW NUMBER
   IS THE WIDTH OF WHAT THE BOX HAS TO SHOW.
     · a date picker holds `YYYY-MM-DD` — ten characters — AND the browser's own
       calendar affordance, which is drawn INSIDE the box and is not free. 8.5em
       held the ten characters and nothing else, so the arrow ate the last one
       and the box read `2026-09-0`. 10em is the ten characters, the box padding
       and the affordance.
     · the Find-by combo's longest option is `Client Reference`, and 9.5em cut it
       to `Client Referenc` in the screenshot. 11em holds the word and the arrow.
   ⛔ THESE ARE STILL `width` + `min-width: 0` AND NOT `min-width`, which is r03's
   rule and is untouched: they are a flex BASIS, so above the wrap breakpoint the
   band still gives ground proportionally rather than breaking. What changed is
   how much there is to give, and that the band is allowed to wrap when there is
   not enough — see the block at the head of `.critrow`. */
.critrow input[type=date] { width: 10em; }
.critrow #f-sfrom, .critrow #f-sto { width: 10.5em; }
.critrow #f-mode { width: 11em; }
.critrow #f-find { width: 11.5em; }
/* The watermark inside the Find-by box (:4218) — TextPlaceholderBrush. */
.critrow #f-find::placeholder { color: var(--text-placeholder); opacity: 1; }

/* Search is Height 30 and MinWidth 96; Clear is Height 28 and MinWidth 84
   (:4234, :4235). Both are above the 24px floor, which is why the desktop's
   own numbers can be used unchanged.

   ⛔ AND THESE TWO NEVER SHRINK. `flex: 0 0 auto` on the pair is the whole
   point of the fix above: the screenshot's defect was Search and Clear pushed
   onto a second row, so the two buttons are the fixed end of the band and the
   boxes to their left are what gives. */
.critrow .critactions { flex: 0 0 auto; }
.critrow .critactions button {
  min-height: 30px; min-width: 96px; padding: 4px 14px;
}
.critrow .critactions .btnlink {
  min-height: var(--control-h-compact); min-width: 84px;
  padding: 4px 14px; justify-content: center;
}

/* ★ The clamped date box, unchanged from web1 r02 and only re-scoped off the
   DELETED CRITERIA BAND that web3 r05 replaced with the row below (web4 r09
   names it in words rather than in code: the suite proves that band's rules are
   gone by searching this whole file, so a comment spelling the selector out would
   satisfy the search on its own).
   From may not be later than To; when the server has had
   to drag To up, the box that moved SAYS SO — an outline a colour-blind reader
   can see the shape of, beside an aria-invalid the screen reader announces,
   beside the sentence above the form. Never a popup. */
/* ⚠️ web4 r11b — AN INSET RING, NOT A SECOND BORDER PIXEL, for the reason r11
   gives at length on `.shipform [required]`: `border-box` sizing absorbs a border
   only while the box has slack, and a compact box has none, so a 2px border makes
   the clamped box stand proud of every box beside it. A criteria band that grows
   two pixels taller on the one box the server complained about is a band that
   jumps under the shipper's eye. Same two visible pixels, same token, no layout.
   ⛔ The border-COLOUR still changes, so the mark survives for anybody browsing
   with shadows suppressed — a colour alone is not a mark, and neither is a shadow
   alone. */
.critrow input.clamped {
  border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn);
  background: var(--warn-tint);
}

/* ⚠️ THE SCREEN-READER-ONLY LABEL. The desktop gives each criteria box an
   AutomationProperties.Name and a ToolTip and shows ONE caption for the group
   (:4190, :4195, :4206, :4215); this is that, in a browser. The words stay in
   the DOM, every control still has a real `<label for=…>`, and a sighted
   shipper still gets the same wording from the box's `title`, exactly as they
   get it from the desktop's tooltip.
   ⛔ NOT `display:none` and NOT `visibility:hidden` — both take the text away
   from the screen reader as well, which is the opposite of the point. The
   clip idiom keeps it in the accessibility tree.
   ⛔ And there is deliberately no "reveal on focus" rule: a <label> with the
   control as a SIBLING can never match `:focus-within`, so such a rule would
   be a comforting line that never fires. */
.srlabel {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- island 2: the results toolbar ---------- */

/* ★★★ web4 r03 — ONE ROW, WHICH IS WHAT THE CLIENT HAS, AND THE SAME FIX AS
   THE CRITERIA BAND. The screenshot shows Held Shipments — the last of the
   greyed slots — dropped onto a second line while the client keeps the whole
   toolbar on one. `.resultsbar` in the shared kit above wraps; this screen's
   copy must not, so the no-wrap is scoped to the island and the shared rule is
   left exactly as it is for whoever else grows into it.
   ⛔ AND IT IS NOT A SCROLLING ROW, WHICH WAS THE FIRST THING TRIED AND IS A
   TRAP: `overflow-x: auto` on a flex row makes `overflow-y` compute to `auto`
   as well, and the Columns disclosure opens its checkbox panel DOWNWARDS out of
   this row — so the whole chooser would have been clipped to the height of a
   button and reachable only by scrolling inside it. A control that is present
   and unusable is the thing this site refuses everywhere else; it does not get
   to be introduced by a layout rule. The row therefore stays `visible` and the
   two ELASTIC items below give up the pixels instead.
   ⛔ The ORDER is fixed in the markup and never changes with width. */
.card.island .resultsbar {
  flex-wrap: nowrap;
  gap: 8px;
}
/* Nothing that is a CLICK TARGET may be squeezed to make the row fit. */
.card.island .resultsbar > * { flex: 0 0 auto; }
/* ⭐ THE TWO THAT MAY. The saved-search caption is a muted informational string
   with nothing to click, and the filter box is a text field that stays usable
   at two thirds the width. Between them they are the ~120px that decides
   whether this row holds one line on the 1512px browser in the screenshot. */
/* ⚠️⚠️ web4 r11b — THE SAVED-SEARCH LINE DOES NOT SHRINK ANY MORE, AND THE
   ELLIPSIS THAT WENT WITH THE SHRINKING WENT TOO. Gord, 2026-09-08: the line read
   `No saved sear…` in Cowork's side-by-side. It was `flex: 0 1 auto` with
   `min-width: 0` and an ellipsis — a caption that had been given PERMISSION to
   destroy itself so eleven controls could stay on one line. ⛔ And the ellipsis
   made the damage worse than a wrap: a truncated `No saved searches` reads as a
   value that has been cut off, not as the empty state it is, and there is no
   hover to recover it because it is not a control.
   ⭐ `flex: 0 0 auto` — it is FIVE WORDS of muted 11px caption, about 100px, and
   it is now the fixed thing the elastic filter box beside it gives ground to.
   That is affordable because r11 moved the toolbar's wrap breakpoint to 1799px:
   below the width the row genuinely fits at, the row WRAPS, and a wrapped caption
   still says what it says. Above it there is room for both. */
.card.island .resultsbar .savedslot { flex: 0 0 auto; white-space: nowrap; }

/* The count pill, :4283–:4285 — and it is NOT the brand-filled `.pill` the
   other screens use. The desktop paints it SurfaceAlt behind a BorderSubtle
   hairline at CornerRadius 12, with FontSizeCaption(11) TextSecondary text: a
   quiet count, not a status badge. Scoped as a modifier so the Address Book's
   and Users' brand pills are untouched. */
.resultsbar .pill.countpill {
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
  color: var(--text-2);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

/* The saved-search chip strip in its permanent empty state, :4287 —
   FontSizeCaption(11) in TextMuted. */
.resultsbar .savedslot { font-size: 11px; color: var(--text-muted); }

/* The toolbar's own divider, :4293 — the same hairline as the criteria band's. */
.resultsbar .vdiv {
  width: 1px; align-self: stretch; min-height: var(--control-h-compact);
  margin: 2px 4px; background: var(--line);
}

/* Every button in this row is Height 28 on the desktop (:4289 … :4322). The
   Columns disclosure has to be told, because `.chooser summary` is shared with
   the Address Book and keeps the full 32.
   ⚠️ web4 r03 tightened the horizontal padding from 12 to 10 and the type from
   13 to 12 — the client's own FontSizeCaption for this row (:4289) — because
   there are now ELEVEN controls on it rather than ten and they have to hold one
   line. ⛔ THE 28px HEIGHT IS UNTOUCHED and is what keeps every one of them
   above the 24px click-target floor; only the width was ever negotiable. */
.resultsbar .btnlink,
.resultsbar .chooser summary {
  min-height: var(--control-h-compact); padding: 4px 10px; font-size: 12px;
}
/* ★★ web4 r11 — THE FILTER BOX ENDS INSIDE THE ISLAND, WHICH IS THE DEFECT
   COWORK PHOTOGRAPHED. It was `width: 8em` on the input with `flex: 0 1 auto` on
   the span around it: the span could give ground and the input could not, so
   once the eleven controls to its left had used the row up the box hung over the
   island's right edge and `.card.island`'s `overflow: hidden` cut it in half.
   Now the SLOT is the elastic thing (basis 200, floor 140 — still six or seven
   characters of typing at this type size) and the input simply fills it. */
.card.island .resultsbar .filterbox { flex: 0 1 200px; min-width: 140px; }
.resultsbar .filterbox input {
  width: 100%; min-width: 0;
  min-height: var(--control-h-compact); padding: 3px 8px;
}
/* `<Label Content="{DynamicResource TabEditTripLabelFilter}"/>`, :4324. */
.resultsbar .lbl { font-size: 12px; color: var(--text-2); }

/* ⛔ web4 r11 — `.toolbarnote` IS GONE, WITH THE PARAGRAPH IT PAINTED. It set
   the right-aligned grey line under the greyed Held Shipments door — the
   desktop's own :4323 caption — and Gord's side-by-side put it on the list of
   helper prose the PC screens do not print. The SENTENCE was not deleted: it is
   the `title` on the Held Shipments marker itself, which it already was before
   this round, so the words are now in exactly one place instead of two. ⛔ The
   rule went WITH the markup rather than being left orphaned — a rule with no
   element is how deleted prose comes back. Its phone-case override at the foot
   of this section went with it for the same reason. */

/* ---------- island 2: the grid ---------- */

/* ⚠️ SCOPED TO `#trips`, DELIBERATELY. `table.grid` is the Address Book's, the
   Users access matrix's and the tracking audit list's table too; the row
   metrics below are the SEARCH grid's desktop numbers and have no business
   landing on those screens. */
table.grid#trips tbody td {
  /* ListViewItem MinHeight 24, Padding "4,2" (:4005, :4006). `height` on a
     table cell is a MINIMUM in CSS, which is exactly what MinHeight means. */
  height: var(--grid-row-h);
  padding: 2px 10px;
}
/* The desktop's IsMouseOver trigger paints the row SurfaceAlt (:4022–:4024).
   Ordered AFTER the shared zebra rule so hover wins on both stripes, which is
   the desktop's trigger order (hover, alternation, selection) read as cascade. */
table.grid#trips tbody tr:hover { background: var(--surface-alt); }
/* The row the detail panel is showing. See `--row-picked` in the token block
   for why this is the INACTIVE selection colour and not the bright one. The
   brand outline is kept beside the fill on purpose: a fill alone is a
   colour-only cue, and the outline is the shape a colour-blind reader sees. */
table.grid#trips tbody tr.picked,
table.grid#trips tbody tr.picked:hover {
  background: var(--row-picked);
  outline: 2px solid var(--brand); outline-offset: -2px;
}
/* The RETURN badge cell sets its own line box; keep it off the 24px floor. */
table.grid#trips tbody td .badge { vertical-align: middle; }

/* The empty sentence is CENTRED IN THE GRID AREA on the desktop (:4499–:4504),
   not tucked under it — a zero-row result still occupies the space a result
   would have. FontSizeSubtitle(14) in TextSecondary.
   ⚠️ THIS RULE IS NOT SEARCH-ONLY and never was: the Address Book's list and
   the Users list are `card island` too and have taken it since web3 r05. Left
   exactly as it is for that reason; the Search screen's own tall-area version
   is the rule below it and wins by being later and more specific. */
.card.island .emptynote {
  display: flex; align-items: center; justify-content: center;
  min-height: 7em; margin: 0; padding: 0 24px;
  font-size: 14px;
}
.card.island .emptynote[hidden] { display: none; }

/* ★★★ web4 r03 — THE GRID AREA IS ALWAYS THERE AND IT IS ALWAYS TALL.
   The screenshot's fourth defect: the client's grid holds the same ~600px of a
   1200px window whether it has found three shipments or none, and the browser
   drew no grid at all until a search returned rows, then a one-line sentence in
   a card two inches high. A screen that changes height as you use it is a screen
   you have to re-find your place in every time.
   So `search.php` now paints the header row unconditionally and this gives that
   header row the client's own space to sit in. The muted empty sentence sits
   INSIDE the area, under the headers, exactly where the client's own
   "no results" text goes (:4499–:4504).
   ⚠️ `overflow: auto`, not `overflow-x`: the area now has a height to overflow
   vertically as well, and the sticky `thead` in the shared kit needs a scroll
   container of its own to stick to — which is precisely what this is. */
.gridwrap.tallgrid {
  min-height: var(--grid-area-h);
  max-height: var(--grid-area-h);
  overflow: auto;
}
/* The sentence is a row of the area, not a caption under it — so it takes the
   space left under the header row rather than adding to it. */
.gridwrap.tallgrid .emptynote {
  display: flex; align-items: center; justify-content: center;
  min-height: 6em; margin: 0; padding: 24px;
  font-size: 14px; color: var(--text-2);
  white-space: normal;
}
.gridwrap.tallgrid .emptynote[hidden] { display: none; }

/* ---------- island 2: the three read-only panels under the grid ---------- */

/* :4533 — the panels are the island's LAST ROW, separated from the grid by the
   same hairline the desktop's cards use, not floated off into a card of their
   own. `scroll-margin-top` keeps the `#detail` jump from landing under the
   sticky grid header. */
.detailblock {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 12px;
}

/* ★★★ web4 r03 — 5 : 5 : 3, NOT `auto-fit`. The desktop's three columns are
   49* / 50* / 278px of a 1338px island (:4536–:4540) — Pickup and Delivery
   equal, the shipment summary about three fifths of one of them. `auto-fit`
   with a minmax was an approximation that gave all three the same width at
   every size the browser actually renders at, and the screenshot shows the
   client's third column visibly narrower. This states the ratio outright.
   The stack below 860px is unchanged and is still the only honest thing three
   columns can do on a phone. */
.detailblock .detailcards { grid-template-columns: 5fr 5fr 3fr; align-items: start; }

/* ★★★ web4 r03 — THE HEADER IS CENTRED, which is the client's own alignment on
   these three and on these three only. (The island headers at the top of each
   card stay LEFT-aligned with their numeral disc; Users, the Address Book and
   Settings centre theirs. Both facts came off the same screenshots.) */
.detailblock .detailcard > h4 { text-align: center; }

/* ★★★ web4 r03 — CAPTION ABOVE VALUE, NOT CAPTION BESIDE VALUE.
   The brief's rule for the whole train — "labels above inputs in the desktop's
   grey caption weight" — and the client's own detail pane, which is a grid of
   small boxes each with its caption sitting on top of it. The shared kit's
   `.dfield` is a two-column label/value split (it is Track's and the Address
   Book's shape too), so this un-does the columns for THIS panel only. */
.detailblock .detailcard .dfield {
  display: block;
  min-height: 30px;
  padding: 4px 8px;
}
.detailblock .detailcard dt {
  display: block; margin-bottom: 1px;
  font-size: 11px; color: var(--text-2);
}
/* An EMPTY value still holds its line, so the panel does not change height as
   rows are picked and the three columns stay in step with one another. ⛔ Not a
   dash and not a placeholder — ids.php's rule: an unstamped date renders BLANK. */
.detailblock .detailcard dd { min-height: 1.2em; }

/* Pickup Info and Delivery Info are each a small MULTI-COLUMN table on the
   client, not a tall single-column list: name/street/suite, then
   city/province/postal, then country/contact/phone, with the long one last.
   Three columns while there is room; one below 860px, with everything else. */
.detailblock .addrpanel dl {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.detailblock .addrpanel .dfield { border-bottom: 1px solid var(--line); }
/* ⚠️ `.dfield:last-child { border-bottom: 0 }` in the shared kit only clears the
   LAST cell; in a three-column grid the whole bottom ROW is the last row, and
   leaving the other two ruled draws a line that stops two thirds of the way
   across. The wide cell below is always last, so clearing its rule is enough. */
.detailblock .addrpanel .dfield.wide { grid-column: 1 / -1; border-bottom: 0; }

/* The third column: caption + box pairs in one column, then the wide notes box
   at its foot. ⚠️ THE NOTES ARE THE SHIPMENT'S TWO SPECIAL-INSTRUCTIONS FIELDS
   AND NOTHING WAS INVENTED TO FILL THE BOX — see search.php's note beside the
   markup for why they moved here out of the two address panels. */
.detailblock .sumpanel .dfield.wide {
  min-height: 3.4em;
  border-top: 1px solid var(--line);
}
.detailblock .sumpanel .dfield.wide dd { white-space: pre-line; }

/* ---------- narrow ---------- */

/* ⭐ web4 r03 — THE ONE HONEST CONCESSION, AND IT IS STATED RATHER THAN HIDDEN.
   Eleven controls plus a filter box is about 1130px of toolbar at the type size
   above. A no-wrap row that does not fit does not scroll (see the note at the
   top of the toolbar block) — it SPILLS OUT OF THE ISLAND. So below the width it
   fits at, the wrap comes back. ⛔ Wrapping is ugly; spilling is broken, and a
   control that has slid off the side of its card cannot be clicked at all.

   ⚠️⚠️ web4 r11 MOVED THE BREAKPOINT FROM 1280 TO 1800, AND THE OLD NUMBER WAS
   ARITHMETIC THAT HAD NOT BEEN DONE. r03 wrote "about 1130px of toolbar … at
   1512px the 78% column is ~1147px", and both halves were optimistic: the eleven
   markers, the count pill, the saved-search line, the two hairlines and their
   twelve 8px gaps measure about 1150 on their own, the Filter caption and its box
   add ~200 more, and an ISLAND BODY is not the page column — it is
   `0.78 × window − 68` once main's 18px padding and the island's 16px are taken
   off, which is 1111px at 1512 and 1024px at 1400. So the row did NOT hold one
   line at Gord's own window: it spilled, and the Filter box was the thing hanging
   over the edge in Cowork's screenshot. 1350px of content needs
   `0.78 × window − 68 ≥ 1350`, i.e. a window of about 1818 — so the row keeps the
   client's single line on the wide monitors the PC client is used at and wraps
   below, where the alternative is not "one tidy line" but "a control you cannot
   click". ⛔ Do not lower this number again without re-adding up the row. */
@media (max-width: 1799px) {
  .card.island .resultsbar { flex-wrap: wrap; }
  .critrow { flex-wrap: wrap; gap: 8px 10px; }
}

/* Below the desktop island's own width there is no way to keep one tight row,
   so the groups stack and the dividers stop pretending. ⛔ The ORDER never
   changes — a shipper on a phone still meets Dates, Status, Find by, Search. */
@media (max-width: 860px) {
  .critrow { flex-direction: column; align-items: stretch; gap: 10px; }
  .critrow .grp { flex-wrap: wrap; }
  .critrow input[type=date],
  .critrow select,
  .critrow input[type=text] { width: auto; flex: 1 1 8em; }
  .critrow .vdiv, .critrow .critspring { display: none; }
  .critrow .critactions { justify-content: flex-start; }
  /* Three columns of caption+box pairs inside a 360px phone is four characters
     a cell. One column, and the panels stack under each other. */
  .detailblock .detailcards { grid-template-columns: 1fr; }
  .detailblock .addrpanel dl { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────────────
   ★★★ web6 r04 — THE REBUILT SEARCH TOOLBAR, THE CHECKBOX COLUMN AND THE
   RESTORED HELD-SHIPMENTS CAPTION.

   Every colour below is one of the tokens declared at the head of this sheet,
   so the dark-mode block already covers it and nothing here was picked by eye.
   ⛔ No hex literal, no image, no webfont, no download — the section's own rule.

   ⚠️⚠️ THE ONE CLASS OF BUG THIS BLOCK EXISTS TO AVOID, RE-LEARNED FROM THE
   `.filterbox` DEFECT web3 r05 FOUND: an AUTHOR rule with a `display` value
   BEATS the user-agent sheet's `[hidden] { display: none; }`. Every control on
   this screen that ships `hidden` and is revealed by search.js therefore needs
   its own `[hidden]` companion, or it is visible-but-dead for anybody with
   scripting off — which is the exact thing the markup beside it promises never
   to do. There are FIVE of them and all five are written out below.
   ────────────────────────────────────────────────────────────────────────── */

/* ⛔ #1 of the five. `.btnlink` is `display: inline-flex`, so Save search… and
   Manage… would have been visible-but-dead without this line. */
.btnlink[hidden] { display: none; }

/* ⭐⭐ THE HELD-SHIPMENTS CAPTION IS BACK, AND `.toolbarnote` WITH IT.
   web4 r11 deleted both on the reading that it was helper prose the PC screens
   do not print. 🔒 Gord's ruling on the side-by-side: the PC DOES print it —
   spec1 r07 §1 puts `textSearchHeldShipmentsComingNote` in row 1 of the toolbar
   grid, "spanning cols 1–13, right-aligned, caption size, TextSecondary" — and
   Held Shipments is the ONE control in the whole product allowed to be greyed,
   so it is allowed to say why. The three properties below are that sentence,
   read straight off the spec line. */
.toolbarnote {
  margin: 2px 0 6px; text-align: right;
  font-size: 12px; color: var(--text-2);
}

/* ---------- the checkbox column, spec §1 grid column 0 ---------- */

/* `Width="30"`, and the header cell is untagged — never sorted, never hidden,
   never exported. `data-sort="none"` is what tells search.js to skip it, which
   is the PC's own "untagged column returns immediately". */
table.grid#trips th.selcol,
table.grid#trips td.selcol {
  width: 30px; padding-left: 8px; padding-right: 4px;
  text-align: center;
}
table.grid#trips td.selcol input { margin: 0; }
/* ⛔ #2 of the five. The select-all needs a script (HTML has no mechanism for
   it), so it ships hidden; the PER-ROW boxes are real GET controls and are
   never hidden. */
.selall[hidden] { display: none; }

/* ---------- the filter's no-script Apply button ---------- */

/* ⛔ #3 of the five, and it is the reverse of the usual direction: this button
   ships VISIBLE and search.js hides it, because the script is what makes it
   unnecessary. A submit button beside an already-narrowed grid implies the
   typing did not take. ⛔ The markup does not ship a control it cannot back. */
.filterapply {
  min-height: var(--control-h-compact); padding: 3px 8px; font-size: 12px;
}
.filterapply[hidden] { display: none; }

/* ---------- Export ▾, spec §3.6's menu ---------- */

/* The PC rebuilds a ContextMenu on every open and places it Bottom on the
   button. A <details> does the same job with no script; `.chooser` already
   carries the summary and the panel, so this is only the menu's own list. */
.chooser .menulist {
  list-style: none; margin: 0; padding: 4px 0;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 15em;
}
.chooser .menulist li { margin: 0; }
.chooser .menulist a,
.chooser .menulist button {
  display: block; width: 100%; text-align: left;
  padding: 5px 10px; font-size: 13px;
  color: var(--brand); background: none; border: 0; border-radius: 4px;
  text-decoration: none; cursor: pointer;
}
.chooser .menulist a:hover,
.chooser .menulist button:hover { background: var(--surface-alt); }
/* ⛔ NOT A MENU ITEM AND NOT STYLED LIKE ONE. It is the honest sentence about
   the two formats this edition does not write, so it must not look clickable. */
.chooser .menulist .menunote {
  padding: 6px 10px 2px; font-size: 12px; color: var(--text-2);
  border-top: 1px solid var(--line); margin-top: 2px;
}

/* ---------- saved searches, spec §1 col 1 and §3.7 ---------- */

/* The PC's `panelSavedSearchChips` is a WrapPanel of chip Buttons; the empty
   state is one muted line in the same slot. Both live here. */
.savedslot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-2);
  flex: 0 1 auto; min-width: 0;
}
.savedslot .chip {
  padding: 2px 9px; font-size: 12px;
  color: var(--brand); background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: 11px;
  cursor: pointer;
}
.savedslot .chip:hover { border-color: var(--brand); }

/* spec §1, ISLAND 2 row 2 — `panelSaveSearchName`, right-aligned, collapsed.
   ⛔ #4 of the five: `display: flex` here would beat `[hidden]` without the
   companion rule on the next line. */
.savenamerow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 6px; margin: 0 0 8px;
}
.savenamerow[hidden] { display: none; }
.savenamerow input[type=text] { width: 14em; max-width: 100%; }
.savenamerow .lbl { font-size: 12px; color: var(--text-2); }
.savenamerow .savenote {
  flex: 1 0 100%; margin: 2px 0 0; text-align: right;
  font-size: 12px; color: var(--warn);
}
.savenamerow .savenote[hidden] { display: none; }

/* The Manage panel. ⛔ #5 of the five. */
.managepanel {
  display: block; margin: 0 0 10px; padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: var(--radius-input);
}
.managepanel[hidden] { display: none; }
.managepanel > h3 { margin: 0 0 8px; font-size: 14px; }
.managepanel .savedlist { list-style: none; margin: 0 0 8px; padding: 0; }
.managepanel .savedlist li {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.managepanel .savedlist .savedname { flex: 1 1 auto; min-width: 0; }

/* ---------- the signature in the summary panel, spec §1 row 5 ---------- */

/* `imgSignature` sits inside the same bordered box as the rest of the column,
   Height 62 on the PC. `.sigimg` itself is the Track screen's rule and is
   shared deliberately: one signature picture, one set of metrics. */
.detailblock .sumpanel .sigbox {
  margin: 6px 0 0; padding: 4px;
  background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 4px;
}

/* ---------- rw3 r03: the shipment's photos and documents ---------- */

/* From the IDS file service (files.php). Thumbnails are a FIXED size so a
   phone photo cannot push the page about; the full picture opens in a new tab. */
.detailblock .filesblock {
  margin: 10px 0 0; padding: 8px;
  background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 4px;
}
.detailblock .filesblock h4 { margin: 0 0 6px; }
.filelist {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.fileitem { display: flex; flex-direction: column; gap: 4px; width: 132px; }
.filethumb {
  display: block; width: 128px; height: 96px; object-fit: cover;
  border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--card);
}
.filecap { font-size: 0.85em; }

/* The phone case. The caption goes back to reading order — a right-aligned line
   under a stacked toolbar is a line hanging off nothing. */
@media (max-width: 860px) {
  .toolbarnote { text-align: left; }
  .savenamerow { justify-content: flex-start; }
  .savenamerow .savenote { text-align: left; }
}

/* ==========================================================================
   ★★ web3 r06 — TRACK SHIPMENT, LAID OUT LIKE THE PC CLIENT

   Source read in full: Dialogues/TrackShipmentDialog.xaml :1–:737, with
   Design/Styles.xaml :14–:30 for the type scale and the corner tokens and
   Design/Colours.xaml / Colours.Dark.xaml for every colour.
   Gord, looking at the live site: "I really would like the screens in the
   browser version to look exactly like whats in the PC Client version… Then
   when someone jumps from one to the other, they dont get confused."

   The desktop window is ONE COLUMN OF ISLANDS on AppBackgroundBrush, and the
   browser now stacks the same islands in the same order:

     ISLAND 1   the header      (:147)  waybill large + status pill, then
                                        Your reference │ Service level and
                                        Placed on │ Delivered on.
     ISLAND 2   Progress        (:218)  six stamp rows, 18 │ * │ Auto │ Auto.
     ISLAND 2b  Driver's position(:375) the sentence that is ALWAYS there, and
                                        the space the map will take.
     ISLAND 3   Proof           (:443)  PICKUP LEFT, DELIVERY RIGHT — * │14│ *.
     ISLAND 4   the two legs    (:499)  TWO islands side by side, * │10│ *.
     ISLAND 5   What was sent   (:532)  150 │ * │ 150 │ * , two rows.
     ISLAND 6   Service         (:565)  the same grid, three rows.
     ISLAND 7   the actions     (:728)  right-aligned, Height 28.

   ⛔ EVERY COLOUR BELOW IS A `var(--…)`. Not one hex literal appears in this
   section; a grep for a hash followed by three-to-six hex digits, between this
   banner and the next one, answers 0, and the test suite asserts it. Dark mode
   therefore needs no rule of its own — the token block at the top of the file
   already swapped it, including the two Info tokens this round added and the
   two Paper ones it deliberately did NOT put in the dark block.
   ⛔ Every size below is the DESKTOP's own number, quoted with its XAML line.
   The type tokens it names are Styles.xaml's: Caption 11, Body 12,
   Subtitle 14, Display 20. They are written out raw, exactly as web3 r05 wrote
   the Search island's, so a shipper reading the two products side by side reads
   the same words at the same size.
   ⛔ Nothing here goes under the 24px WCAG target floor: the only interactive
   things on this screen are the three action controls, and they are 28.
   ⛔ BEHAVIOUR IS UNCHANGED. Same GETs, same field names, same `t()` keys, same
   `data-stage` / `data-leg` / `id=` hooks the harness reads.
   ========================================================================== */

/* ---------- the window caption ---------- */

/* The desktop puts "Track Shipment" in the NATIVE TITLE BAR (Title=, :7, with
   TitleBarTheme.Track) and nothing else, so the biggest thing on that window is
   the waybill. The browser needs a real `h1` for the document outline, so it
   gets one — sized and coloured like a title bar caption rather than like a
   page headline, which is what keeps the waybill the loudest thing here too.
   ⛔ Not `.card h1`: it sits ABOVE island 1, where a title bar sits. */
.tracktitle {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
}

/* ---------- the island ---------- */

/* Every island on this window is the same Border: BorderSubtle hairline,
   SurfaceCard fill, `CornerRadius="4"`, `Padding="12"`, `Margin="0,0,0,10"`
   (:147, :218, :375, :443, :505, :532, :565). `.card` already brings the fill,
   the hairline and the margin idea; this modifier brings the desktop's own
   four numbers — including FLAT, because the desktop client has no shadow
   anywhere and `.card`'s default has one.
   ⚠️ 4 is `--radius-input`, not `--radius`: the desktop's ISLANDS on this
   window are the tighter control radius, not CornerRadiusCard(8). That is the
   dialogue's own choice and it is why this is a modifier and not a change to
   `.card`. */
.card.trackisland {
  border-radius: var(--radius-input);
  box-shadow: none;
  padding: 12px;
  margin-bottom: 10px;
}
/* TrackIslandHeading, :74–:79 — Bold, FontSizeSubtitle(14), TextPrimary,
   `Margin="0,0,0,8"`. ⛔ NOT `--brand-text` at 17px, which is what `.card h2`
   paints and what this screen wore before: on the desktop these headings are
   the same ink as the values under them, and only the weight separates them. */
.card.trackisland > h2 {
  margin: 0 0 8px;
  font-size: 14px; font-weight: 700; color: var(--text);
}

/* TrackLabel (:80–:84) and TrackValue (:85–:89), for the places that are a
   caption over a value rather than a two-column field: TextSecondary over
   TextPrimary, both at FontSizeBody, both wrapping, `Margin` 0,0,10,4 / 0,0,0,4.
   ⛔ The two are told apart by COLOUR AND POSITION, never by size — that is the
   desktop's shape and it is why neither of these sets a weight. */
.trackisland .tracklabel { margin: 0 0 4px; font-size: 12px; color: var(--text-2); }
.trackisland .trackvalue { margin: 0 0 4px; font-size: 12px; color: var(--text); overflow-wrap: anywhere; }

/* ---------- island 1: the header ---------- */

/* :155 — one horizontal StackPanel: the caption, the number, the pill.
   The desktop's margins ARE the gaps: caption `Margin="0,0,8,0"` (:158) and
   pill `Margin="12,0,0,0"` (:161), so this row does not use one flat `gap`. */
.trackhead {
  display: flex; flex-wrap: wrap; align-items: center;
  margin-bottom: 8px;
}
.trackhead .shipno { display: inline-flex; align-items: baseline; }
/* DialoguesTrackShipmentNumber, :156 — TextSecondary at FontSizeBody. */
.trackhead .shipno .lbl { margin-right: 8px; font-size: 12px; color: var(--text-2); }
/* txtTripId, :159 — FontSizeDisplay(20) Bold TextPrimary. This is the largest
   thing on the desktop window and it is now the largest thing on this page.
   ⛔ The `letter-spacing` this rule used to carry was picked by eye and is
   gone: the desktop tracks the face normally. */
.trackhead .shipno strong { font-size: 20px; font-weight: 700; color: var(--text); }
.trackhead .pill { margin-left: 12px; }

/* borderStatusPill, :161–:166 — `CornerRadius="10"`, `Padding="10,3,10,3"`,
   FontSizeCaption(11) SemiBold, and it is a TINT CHIP: InfoTintBrush behind
   InfoBrush, or the Success pair once map r4's trip_is_delivered() says so.
   ⛔ This screen had been painting both states as a solid fill with white text,
   which is the Address Book's brand badge and a different control.
   ⛔ The WORD is the pill's text and the colour only agrees with it — both come
   from trip_is_delivered(), so they cannot disagree, and a reader who cannot
   tell the two colours apart still reads DELIVERED. */
.pill.ok, .pill.info {
  padding: 3px 10px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}
.pill.info { background: var(--info-tint); color: var(--info); }
.pill.ok   { background: var(--ok-tint);   color: var(--ok); }

/* The label/value grid the header, What was sent and Service islands all share:
   `150 │ * │ 150 │ *` with `Auto` rows (:169–:179, :537–:547, :570–:581).
   150 desktop pixels is 9.4em at this sheet's 16px root, and `em` rather than
   `px` for the reason r05 gives — a shipper who has turned their base font up,
   and FR/ES captions that are longer than the EN ones. The RATIO is the
   desktop's. `minmax(21em,…)` is what makes it fall to ONE pair per row on a
   phone instead of squeezing two 150px captions into 360px.
   ⛔ NO RULES BETWEEN THE ROWS. The desktop grid has no separators at all; the
   hairlines this screen used to draw are a browser-ism and they are gone. The
   4px of air under each row is TrackLabel/TrackValue's own bottom margin. */
.trackisland .fields { grid-template-columns: repeat(auto-fit, minmax(21em, 1fr)); gap: 0 18px; }
.trackisland .fields .dfield {
  grid-template-columns: 9.4em 1fr; gap: 10px;
  padding: 0 0 4px; border-bottom: 0;
}
.trackisland .fields dt { font-size: 12px; color: var(--text-2); }
.trackisland .fields dd { font-size: 12px; color: var(--text); }

/* ---------- island 2: the six progress rows ---------- */

/* A table and not a list, because each row is a pair of facts — the stage and
   when it happened — and a screen reader should read them as such. The desktop
   declares each row as its own four-column Grid (:224–:242 and its five twins):
       18  │  *  │  Auto  │  Auto
       dot   name   Current  time
   with `Margin="0,0,0,7"` under each. Reproduced column for column below —
   including the ORDER, which is name, then the marker, then the stamp.
   ⛔ NO ROW RULES. The desktop stack has none; 7px of air is the separation. */
table.stages { border-collapse: collapse; width: 100%; }
table.stages th, table.stages td {
  padding: 0 0 7px; text-align: left; font-weight: normal; vertical-align: middle;
  font-size: 12px;
}
/* COLUMN 0, `<ColumnDefinition Width="18"/>` (:226) holding a 10px Ellipse
   (:231). An inline-block of exactly 18px reproduces that column without
   spending a table cell on decoration — which also keeps `<th scope="row">`
   first in the row, where a screen reader wants it.
   ⛔ A reached stage is marked in THREE ways and never by colour alone: the
   dot, the weight of the words, and (for the current one) the word "Current"
   in a pill. --text-muted for the two unreached states is the desktop's
   TextMutedBrush, which is exactly what ApplyStage sets. */
table.stages tr.stage th::before {
  content: "\25CF"; display: inline-block; width: 18px;
  color: var(--line-strong); font-size: 11px;
}
table.stages tr.reached th::before { color: var(--ok); }
/* COLUMN 1 is `*` (:227): the caption takes whatever the other three leave. */
table.stages th { width: auto; }
/* COLUMN 2, `Auto` with the pill's own `Margin="8,0,8,0"` (:234). */
table.stages td.stagenow { width: 1%; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
table.stages td.stagenow .pill.info { border-radius: 9px; padding: 2px 9px; }
/* COLUMN 3, `Auto` with `MinWidth="130"` and `TextAlignment="Right"` (:240),
   so the six stamps hug one edge whether or not a zone resolved. 130 desktop
   pixels is 8.2em here. `tabular-nums` is the browser's way of getting the
   digit grid a WPF TextBlock gets from the face. */
table.stages td.stagetime {
  width: 1%; min-width: 8.2em; text-align: right;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
table.stages tr.not-recorded th, table.stages tr.not-recorded td,
table.stages tr.not-yet th,      table.stages tr.not-yet td { color: var(--text-muted); }
table.stages tr.current th { font-weight: 600; }

/* ---------- island 2b: the driver's position ---------- */

/* ⛔ A LABELLED SPACE, NOT A HIDDEN FEATURE — and the sentence in it is the
   desktop's own txtPositionState (:380), which on that window is ALWAYS there:
   busy, no driver yet, not on its way, could not be fetched, never reported,
   reported recently, reported long ago. It is a left-aligned wrapping line in
   TextSecondary with `Margin="0,0,0,6"`, and that is what this paints.
   ⛔ NOT the shared `.emptynote`'s centred 16px "no results" treatment: this is
   not an empty result, it is an island whose one element is a sentence.
   ⛔ The driver is never named here — see track.php and tracking.php. */
#driver-position .emptynote {
  margin: 0 0 6px; text-align: left;
  font-size: 12px; color: var(--text-2);
}

/* ---------- island 3: the two signature blocks ---------- */

/* :448–:453 — `* │ 14 │ *`, PICKUP LEFT and DELIVERY RIGHT. Two equal columns
   and fourteen pixels, not the shared `.detailcards` auto-fit: the desktop's
   two legs are always side by side and always the same width. They stack only
   when there is genuinely no room for two, which a 680-wide desktop window
   never has to do and a phone always does. */
.siglegs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ⛔ THE LEGS ARE NOT THE SEARCH SCREEN'S BLUE-HEADED DETAIL CARDS. They keep
   `class="detailcard sigblock"` because that is the hook the harness reads, but
   on the desktop a leg is a plain caption over a framed picture over a name —
   no border, no fill, and certainly no brand header strip. So `.detailcard`'s
   chrome is undone here, deliberately and in one place. */
.sigblock { border: 0; border-radius: 0; overflow: visible; }
/* :457 — the caption is a TrackLabel, not a header strip. */
.sigblock h3 {
  margin: 0 0 4px; padding: 0; background: none;
  font-size: 12px; font-weight: normal; color: var(--text-2);
}
.sigblock .sigbody { padding: 0; }

/* :459–:470 — the frame: BorderSubtle hairline, `CornerRadius="3"`,
   `Height="96"`, `Background="White"`, with the picture inset by
   `Margin="6"` (so 96 − 12 = 84 of picture) and the sentence centred in it.
   ⚠️ `min-height` rather than `height`, and that is the ONE place this frame
   parts company with the desktop's: the desktop's fallback is a short phrase,
   the browser's includes a whole sentence about a non-https signature host, and
   a fixed 96 would CLIP words. It still cannot jump between a shipment with
   pictures and one without, because 96 is the floor for both.
   ⚠️ `--paper`, not `--card`: see the token block for the desktop's ruling. */
.sigframe {
  display: flex; align-items: center; justify-content: center;
  min-height: 96px; padding: 6px; margin: 0 0 6px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 3px;
}
.sigimg { display: block; max-width: 100%; max-height: 84px; }
/* :465–:468 — italic, centred, wrapping, and in the paper's OWN muted ink
   rather than the card's, because it is sitting on the paper.
   ⚠️ The XAML writes that ink as a literal; this section names no literal, in a
   value OR in a sentence, because the parity test greps the whole section text
   and a hex string quoted in prose would fail it just as loudly as a real one.
   The value, its line and its contrast ratio are recorded on `--paper-muted` in
   the token block at the top of this file. */
.sigblock .signone {
  margin: 0; font-size: 12px; font-style: italic;
  text-align: center; color: var(--paper-muted);
}
/* The link under the frame — the browser's own, and the only thing left if the
   picture fails to decode. Kept, and dressed as the desktop would dress it. */
.sigblock .sigbody .smallprint { margin: 0 0 2px; font-size: 12px; }
/* txtPodName, :492 — a plain TrackValue. */
.sigblock .signame { margin: 4px 0 0; font-size: 12px; color: var(--text); }
/* txtPopName, :471–:473 — the PICKUP leg's name line is the odd one out:
   italic in TextMuted, because it is not a name, it is the standing sentence
   that says the server never hands one back for this leg. */
.sigblock[data-leg="pickup"] .signame { font-style: italic; color: var(--text-muted); }

/* ---------- island 4: the two legs, side by side ---------- */

/* :499–:504 — `* │ 10 │ *`, and each side is its OWN island Border (:505,
   :516), not two sub-cards inside one. The 10px margin under the pair is the
   outer Grid's `Margin="0,0,0,10"`; the islands inside it therefore drop
   theirs, or the column would carry 20. */
.tracklegs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.tracklegs > .card.trackisland { margin-bottom: 0; }
/* txtPickupAddress / txtDeliveryAddress, :510 and :521 — a TrackValue with
   `Margin="0,0,0,8"`, i.e. the one value on this window that gets more air
   under it, because the caption for the next field follows immediately. */
.trackisland .trackaddr {
  margin: 0 0 8px; font-size: 12px; color: var(--text); overflow-wrap: anywhere;
}

/* ---------- island 7: the actions ---------- */

/* :728–:735 — a horizontal StackPanel, `HorizontalAlignment="Right"`,
   `Margin="0,10,0,0"`, holding Print (MinWidth 110), Refresh (MinWidth 110) and
   Close (MinWidth 88), all `Height="28"` with 8px between them.
   ★ THE PRINT CONTROL IS NOT BUILT AND ITS SPACE IS KEPT. A Print button would
   need `window.print()`, i.e. a script, on a page whose CSP is
   `script-src 'none'` — and a control that is visibly there and silently dead
   is worse than an honest sentence. So the sentence sits exactly where btnPrint
   sits, leftmost of the three, and the browser's own Print command does the job
   (the `@media print` block near the foot of this file drops the chrome).
   ⛔ Close has no browser twin either — a page does not close — so its slot
   holds the link back to Search, at Close's own MinWidth of 88. */
.trackacts {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 8px; margin: 10px 0 0;
}
.trackacts .dim {
  flex: 1 1 20em; min-width: 0; text-align: right;
  font-size: 11px; color: var(--text-2);
}
.trackacts .btnlink {
  min-height: var(--control-h-compact); min-width: 110px;
  padding: 4px 14px; justify-content: center; font-size: 12px;
}
.trackacts .btnlink.back { min-width: 88px; }

/* ---------- the audit list ---------- */

/* :680–:708 — When 180, Who 150, and What takes the rest (SizeAuditWhatColumn
   does that arithmetic on the desktop; `width:auto` on a table does it here).
   Every cell wraps and every cell aligns TOP LEFT, which is r3's finding: once
   one cell can be four lines tall, a one-line When floating in the middle of
   the row reads as a different row. The Search grid's cells deliberately do
   neither, which is why this is scoped to `.audit`. */
table.grid.audit th, table.grid.audit td { white-space: normal; vertical-align: top; }
table.grid.audit th:first-child,  table.grid.audit td:first-child  { width: 11.2em; }
table.grid.audit th:nth-child(2), table.grid.audit td:nth-child(2) { width: 9.4em; }
table.grid.audit td.auditwhat { min-width: 18em; }

/* ---------- narrow ---------- */

/* Below the desktop window's own 620px minimum (`MinWidth="620"`, :7) there is
   no way to keep two columns side by side, so the pairs stack. ⛔ The ORDER
   never changes: pickup is still first in both pairs, which is the order the
   shipment itself happens in. */
@media (max-width: 620px) {
  .siglegs, .tracklegs { grid-template-columns: 1fr; }
  .trackacts .dim { flex: 1 1 100%; text-align: left; }
}

/* ══════════════════════════════════════════════════════════════════════════
   web4 r02 — ENTER NEW SHIPMENT, LAID OUT LIKE THE PC CLIENT

   (This section was headed "web3 r07 — ENTER NEW SHIPMENT, LAID OUT LIKE THE PC
   CLIENT" and is the same block of the sheet, rebuilt against SCREENSHOTS of the
   two products rather than against the XAML alone. Anything that greps for the
   old heading has been re-pointed — the r06 section's END needle and the r07
   test block's own START needle, both in run-tests.php — the way r07 re-pointed
   r06's when it renamed this section in its turn. ⛔ Rename a banner, re-point
   its neighbour.)

   Source read in full: Dialogues/NewShipmentView.xaml :1–:1425 (the whole
   UserControl), plus Design/Styles.xaml :14–:29 for the type ramp and the
   corner radii, and Design/Colours.xaml / Colours.Dark.xaml for every colour.
   It covers ONE page — ship.php — because on the desktop this is ONE screen and
   its post-create state, and web5 r03 brought the browser back to that shape:
   the confirmation is an island on this same page, not a landing page of its
   own. (Until r03 these rules dressed two files.)

   Gord, looking at the live site: "I really would like the screens in the
   browser version to look exactly like whats in the PC Client version… Then
   when someone jumps from one to the other, they dont get confused."
   And, 2026-09-08, with both open side by side: "Enter Shipment Entry screen is
   completely different."

   ★★★ WHAT web4 r02 CHANGED, AND WHY IT IS NOT A MATTER OF TASTE. web3 r07
   matched the WORDS and the ORDER of the XAML and got the SHAPE wrong. The
   numbers below came off Cowork's side-by-side screenshots — PC client at
   2000x1200, site at 1512x791 — and every one of them is a MEASUREMENT:

     · form column x=225…1405 (1180px) and rail x=1425…1792 (367px), 20px apart;
       the rail STAYED PUT while the form scrolled under it
     · Templates and Quote mode above island 1, right-aligned to the rail's edge
     · no page title and no paragraph anywhere on the screen
     · the swap is a ~32x32 icon button ON the seam, at the Street row
     · island 3 is ONE row of seven near-equal boxes with Pieces on its own in
       the BOTTOM-RIGHT corner, and a grey Contents panel under the row
     · the rail's button stack is SIX buttons, 8px apart, Ship Now ~44px and bold
     · a fifth island, "Your scheduled shipments"

   ⚠️ THE RAIL'S 367px IS THE SCREENSHOT'S NUMBER, NOT THE XAML'S 316 (:310). At
   the same window width the two products should draw the same box, so the
   measured width wins over the declared one.

   THE CLIENT IS FIVE ISLANDS DOWN A SCROLLING LEFT COLUMN, PLUS THE STICKY RAIL
   BESIDE THEM (:307–:311):

     ISLAND 1  Customer            :321   Customer* │ Phone │ Email │ Client
                                          reference, on a 2*,*,*,* row (:341)
     ISLAND 2  Pickup & Delivery   :385   two address cards either side of a
                                          1px seam carrying the swap control
                                          (:520); each card runs Address book →
                                          Find online → Company* → Suite/Street*
                                          on a 1:3 split → City* · Province ·
                                          Country · Postal on a 2:1:1:1 split →
                                          Contact/Phone/Email → Instructions
                                          ⚠️ THE SPLITS ARE WRITTEN AS RATIOS
                                          HERE, NOT AS THE XAML'S STARS. A star
                                          set hard against a slash is the CSS
                                          comment TERMINATOR, so a starred
                                          "City" typed with no space before
                                          "Province" ends this banner on the
                                          spot. ⛔ web3 r12b: it DID. That pair
                                          sat four lines above here and closed
                                          the banner early, so everything from
                                          it to the next brace was read as a
                                          selector and the h2 rule below was
                                          dropped on the floor. ⛔ Never let a
                                          star touch a slash in a comment in
                                          this file — write the ratio in words,
                                          as the rows above do.
     ISLAND 3  Packages            :656   ONE package card — type* │ weight │
                                          L │ W │ H │ declared value — then the
                                          grey Contents panel (:860), then Pieces
                                          in the bottom-right corner, then the
                                          amber multi-package note (:985)
     ISLAND 4  Custom Charges      :1009  the courier's list inside a SurfaceAlt
                                          inset panel (:1024)
     ISLAND 5  Your scheduled      :1041  the dispatcher's held list. This site
               shipments                  cannot hold a shipment, so the island
                                          carries one honest sentence and no
                                          Refresh link — there is no list to
                                          reload, and a marker for a control
                                          whose subject is missing is the thing
                                          index.php:108–111 forbids.
     THE RAIL  Schedule & summary  :1114  service* / ready / due → when to ship →
                                          rule → Summary → rule → estimated
                                          charge and its hint → six buttons

   ★★★ THE RAIL IS A STICKY RIGHT-HAND COLUMN NOW, AND THAT OVERTURNS web1 r04's
   RULING ON EVIDENCE. r04 wrote: "a 316-pixel rail beside a form is a desktop
   layout; on a phone it becomes a column two words wide", and parked the rail at
   the bottom of the page at EVERY width. The reasoning was right and the scope
   was wrong: it threw away the client's shape everywhere in order to be right on
   a phone. ⛔ SO THE PHONE CASE IS ANSWERED WHERE IT ARISES AND NOWHERE ELSE —
   below 1100px the grid collapses to one column and the rail lands under the
   form, which is exactly where r04 put it. Nothing about r04's argument was
   discarded; it was scoped to the widths it is true at.
   ⚠️ AND THE RAIL IS STILL LAST IN THE DOCUMENT. Only the painting moved, so the
   tab order, the reading order and the implicit-submit button are all untouched.

   ⛔ EVERY COLOUR BELOW IS A `var(--…)`. Not one hex literal appears in this
   section, in a rule or in prose; the suite greps between this banner and the
   next and expects 0. Dark mode therefore needs no rule of its own — the token
   block at the top of the file already swapped it.
   ⛔ Every size below is the DESKTOP's own number, quoted with its XAML line,
   except the two type sizes explained at `.fld label`.
   ⛔ Nothing here goes under the 24px WCAG target floor.
   ══════════════════════════════════════════════════════════════════════════ */

/* ---------- the top row, and the two columns ---------- */

/* ★★★ web4 r02 — TEMPLATES AND QUOTE MODE, TOP-RIGHT, ABOVE ISLAND 1.
   The client right-aligns them to the OUTER edge of the rail, which is the right
   edge of the whole two-column block — so this row is a sibling of `.shipcols`
   and not a child of the form column, and `flex-end` puts it exactly there.
   ⚠️ THE CLIENT PAINTS TEMPLATES SOLID NAVY AND QUOTE MODE OUTLINED, AND THIS
   SHEET PAINTS BOTH AS `.btnlink.disabled` — dashed, muted, not-allowed. That is
   deliberate and it is the ONE place this section departs from the measurement:
   neither control exists here, and a dead control that is painted like a live one
   is worse than a dead control that looks dead. The POSITION and the SIZE are the
   client's; the paint is the site's own honest-gap paint. */
.shipform .shiptop {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 8px; margin-bottom: 12px;
}
/* ~34px is the client's measured button height on this screen and clears the
   24px target floor with room to spare. */
.shipform .shiptop .btnlink { min-height: 34px; }

/* ★★★ THE TWO COLUMNS. Measured: form 1180 + gap 20 + rail 367. The form column
   takes what is left so it tracks the window; the rail is the client's own fixed
   width, because at the SAME window width the two products should draw the same
   box.
   ⚠️ `align-items: start` is what makes the rail sticky-able: the grid AREA in
   column two is as tall as the form column beside it, and the rail sits at the
   top of that area with room to travel down it. Without it the item stretches to
   fill the area and `position: sticky` has nowhere to go. */
.shipform .shipcols {
  display: grid; gap: 0 20px;
  grid-template-columns: minmax(0, 1fr) 367px;
  align-items: start;
}
/* 12px of air above it so it does not sit hard against the chrome bar. */
.shipform .rail { position: sticky; top: 12px; }

/* ⛔ AND HERE IS web1 r04's RULING, KEPT, AT THE WIDTH IT IS TRUE AT. Below
   1100px a 367px rail beside a form is a column two words wide, so the grid
   becomes one column and the rail lands under the form — which is exactly the
   layout r04 shipped. `static` because a sticky element in a single-column flow
   would pin itself over the page as you scrolled past it. */
@media (max-width: 1099px) {
  .shipform .shipcols { grid-template-columns: minmax(0, 1fr); }
  .shipform .rail { position: static; }
}

/* ---------- the island chrome ---------- */

/* ⚠️ THERE IS NO `.shipform .island { padding }` RULE ANY MORE, AND THAT IS THE
   POINT OF THE ROUND. The desktop's SectionCard (:131–:138) is a SurfaceCard
   border whose FIRST child is a painted CardHeaderBrush strip running edge to
   edge (:323–:335). web3 r05 already built that as
   `.card.island > .islandhead > .islandbody` for the Search screen; this screen
   now uses the same three rules rather than a second set of its own, so the two
   screens cannot drift. Everything below only adds what the SHIP islands need
   on top of it. */

/* The numeral disc, :326–:330. ⛔ WHITE DISC, NAVY DIGIT — `Background` is
   OnBrandBrush and `Foreground` is CardHeaderBrush, which is the opposite of
   what this sheet used to paint. It had been a navy disc with a white digit,
   which was legible only because it sat on a white card; on the painted navy
   header strip the desktop puts it on, that version would vanish. */
.shipform .island > .islandhead > h2 {
  display: flex; align-items: center; gap: 8px;
}
.shipform .island .num {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--on-brand); color: var(--card-header);
  font-size: 13px; font-weight: 700; line-height: 1;
}

/* ---------- fields and rows ---------- */

/* One field. `.fld` rather than the sheet's existing `.field` because these sit
   inside grid rows and must not carry that rule's 18px bottom margin. */
.shipform .fld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }

/* ⚠️ THE TWO SIZES THAT ARE NOT THE DESKTOP'S, AND WHY. FieldCaption is
   FontSizeCaption = 11 and MutedCaption is the same (Styles.xaml :14,
   NewShipmentView.xaml :60–:64 and :153–:156). Eleven CSS pixels under a 15px
   body is a caption a shipper reads a shipment address into on a phone, and the
   desktop's 11 is measured against a 12px body — the RATIO is what carries, not
   the number. So captions keep this sheet's existing 13px and help lines their
   12px, both unchanged from r04, and both comfortably above anything the WCAG
   text rules ask for. Every OTHER number in this section is the desktop's own. */
.shipform .fld label { font-weight: 600; font-size: 13px; }
/* ⚠️ web4 r02 — `.help` NOW HAS EXACTLY ONE USER ON THIS SCREEN, the sentence
   under an EMPTY address-book picker ("There are no saved addresses on this
   account yet."). Every other help line on this page became a `title` on the
   control it was about, because the client prints no prose here at all. The rule
   is kept for the one that is left, and that one stays a visible line rather than
   a tooltip because it explains an EMPTY CONTROL — a shipper who cannot see why
   a list is blank cannot know there is anything to hover. */
.shipform .fld .help { color: var(--text-2); font-size: 12px; }
/* ⭐ `.shipform .fld.narrow` WAS DELETED WITH ITS LAST USER. It capped a box at
   12em and its only remaining users were the rail's Ready time and Due by; in a
   367px rail a 12em select is a box with a gutter beside it, and the client's are
   the full width of its rail. ⛔ `.narrow` elsewhere on the site is a DIFFERENT
   rule for a different screen and is untouched — hence the `.shipform` prefix
   that used to be here. */

/* ★★ THE DESKTOP'S OWN COLUMN SPLITS. `auto-fit`/`minmax` collapses each of
   these to one column on a narrow screen with no breakpoint to keep in sync;
   above the collapse width the proportions are the XAML's, to the star.

     .row2111  `2*,*,*,*`  — island 1's Customer row (:341–:346) AND the address
                             cards' City/Province/Country/Postal row (:446–:452,
                             :568–:574). ⚠️ The SAME split serves both because
                             the desktop uses the same split for both.
     .row13    `*,3*`      — Suite / Street (:430–:434, :552–:556)
     .row3     `*,*,*`     — Contact / Phone / Email (:483–:488, :600–:605), and
                             the rail's service / ready / due
   ⛔ `minmax(0, …)` on every track: without the 0 floor a long option string in
   a <select> forces the column wider than its share and the split silently
   stops being the desktop's. */
.shipform .row2111 {
  display: grid; gap: 0 16px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

/* ★★★ web4 r11 — AND INSIDE AN ADDRESS CARD THAT ROW IS TWO ACROSS, TWICE OVER.
   Gord, 2026-09-08: *"Not all the fields are the same size, some clipping."*
   Cowork's screenshot of the live site shows the Province box reading `Sas…` and
   the Country box reading `Car…` where the PC client shows `Saskatchewan` and
   `Canada` whole.
   ⛔ AND FOUR ACROSS CANNOT BE MADE TO FIT, WHICH IS WHY THE SPLIT CHANGED AND
   NOT JUST THE NUMBERS. Add it up out of this sheet's own declarations at Gord's
   1512px window: main is 78vw less 18 of padding each side (1143), the form
   column is that less the 20 gap and the 367 rail (756), the island body less
   its 16s (724), each address card is `(724 − 44 seam − 28 gap) ÷ 2` (326) less
   its own 14s (296). Four tracks and three 16px gaps leave 248px for FIVE shares
   — fifty pixels a box. `Saskatchewan` needs ~150 with its padding and its
   dropdown arrow and `United States` ~130, so 150 + 130 + 90 for Postal + 48 of
   gap is 418px of demand against 296px of card. It does not fit at ANY window
   width the two products are used at: even a 2560px monitor (main capped at
   1600) gives the card 526 and five shares of 90.
   ⭐ SO THE ROW BECOMES TWO COLUMNS AND TWO LINES — City · Province, then
   Country · Postal — which is the SAME four controls in the SAME document order,
   read left to right and then down. Nothing moved and nothing was renamed; the
   row it sits on wrapped, exactly as a WPF Grid's own columns would have to at
   this width. The two minima are the two words Cowork measured: 150 for a
   province name and 130 for a country, and they are on the columns those two
   boxes land in.
   ⚠️ SCOPED TO `.addrcard`, so island 1's Customer row — which lives in the FULL
   756px form column and has always had room — keeps the desktop's 2:1:1:1. */
.shipform .addrcard .row2111 {
  grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr);
}
.shipform .row13 {
  display: grid; gap: 0 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}
.shipform .row3 {
  display: grid; gap: 0 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ⛔⛔⛔ web9 r03 — THE ONE BASELINE EVERY FIELD ROW ON THIS SITE SHARES, AND IT
   IS DECLARED HERE ONCE RATHER THAN ON THE TWO BOXES THAT WERE REPORTED.

   🔒 Gord, 2026-09-13: *"Weight field is still missaligned"* (Batch Shipment) ·
   *"Service level 'Return PU' still misaligned"* (Enter New Return).

   THE CAUSE, NAMED, AND IT IS ONE CAUSE. A `.fld` is a flex COLUMN — caption on
   top, control under it — and these rows are grids whose items align at their
   TOPS. So a row's controls only line up while every caption in it is exactly
   one line tall. On Batch Shipment "Weight (kg) / delivery *" wraps to two lines
   in its third of a `.row3` while "Package type" and "Pieces / delivery" do not,
   so the Weight BOX alone was pushed one line down — which is precisely the low
   box Gord photographed. ⛔ The two boxes are not the bug; aligning the wrong
   edge is.

   ⭐ SO THE ROWS ALIGN THEIR **END**. A caption that needs a second line now
   grows UPWARD into the air above the row instead of shoving its own control
   down, and every control in the row sits on one line whatever its caption did.
   `.shipform .fld`'s own `margin-bottom: 12px` is identical on every field, so
   "end" and "the bottom of the control" are the same edge for all of them.

   ⚠️ WHAT ELSE THIS REACHES, named because a shared rule is the point:
     · `.row2111` — Enter New Shipment / Edit Active / Enter New Return island 1's
       Customer row, and the City / Province / Country / Postal rows inside EVERY
       address card on the site (two per screen, four screens).
     · `.row13`   — the Suite / Street row in those same address cards.
     · `.row3`    — Contact / Phone / Email in every address card, the rail's
       service / ready / due, and Batch Shipment's packaging row.
     · `.row-pkg` — Enter New Shipment's six-column package card. This rule
       REPLACES the `align-items: start` that block used to declare; see the note
       there.
     · `.row-pkg8` — Edit Active's eight-column package card, same replacement.
     · `.retpkgrow` — Enter New Return's package row (a flex row; `flex-end` is
       the same edge by another name).
   ⛔ `.retrow1` already declared `align-items: flex-end` and is NOT listed: it
   was misaligned for a DIFFERENT reason inside the Service cell, fixed at the
   chip. ⛔ The 28px control-height floor is untouched — nothing here changes a
   height, only which edge of a row the heights are measured from. */
.shipform .row2111,
.shipform .row13,
.shipform .row3,
.shipform .row-pkg,
.shipform .retpkgrow,
.editform .row-pkg8 { align-items: end; }
@media (max-width: 900px) {
  .shipform .row2111, .shipform .row13, .shipform .row3 {
    grid-template-columns: minmax(0, 1fr);
  }
  /* ⛔ web4 r11 — the address card's two-across override HAS to be undone by
     name here, and this is not tidiness. `.shipform .addrcard .row2111` is three
     classes and beats the two-class rule above it whatever the cascade order, so
     without this line a 360px phone would keep two 150px minimum columns inside a
     ~270px card and the row would hang off the side. */
  .shipform .addrcard .row2111 { grid-template-columns: minmax(0, 1fr); }
}

/* Every input on this screen is Height 32 on the desktop — FieldBox :72–:75 and
   FieldCombo :87–:89 — which is `--control-h`, which the sheet's site-wide
   control rule already applies. Nothing to restate. The ONE exception the
   desktop makes is the instructions box (:506, Height 56, TextWrapping) and it
   is the one restated here. */
.shipform textarea { min-height: 56px; }

/* ★ THE REQUIRED MARK — the desktop's r51 treatment, :348 and :422. Every
   required caption there ends in a `<Run Text=" *" FontWeight="Bold"
   Foreground="{DynamicResource AccentBrush}"/>`: a BOLD ACCENT asterisk, not an
   error-red one. ⚠️ web3 r07 corrects the colour. Red says "this is wrong";
   amber accent says "this one is needed", which is what an untouched required
   field actually is — and it keeps `--bad` meaning exactly one thing on this
   screen, the refusal beside a box that was left empty.
   The asterisk is `aria-hidden` in the markup — a screen reader gets
   `aria-required="true"` on the control itself, which is the thing it is
   designed to announce, rather than hearing "star" after every caption.
   ⛔ The colour is NOT the only signal: the character is there either way. */
.shipform .req { color: var(--accent); font-weight: 700; }

/* ★ AND THE BOX ITSELF WEARS THE MARK TOO — RequiredBox / RequiredCombo,
   :77–:93: a 1.5px BrandBrush border at rest where an optional box gets a 1px
   BorderStrong one. ⚠️ 1.5px is not a width a browser hairline renders
   predictably, so this is 2px, the nearest device pixel up; the desktop's own
   focus ring (its AccentBrush trigger, :81–:83) is already what the sheet's
   site-wide `:focus` rule paints, so focus needs no rule of its own here.

   ★★★ web4 r11 — AND IT IS AN INSET SHADOW NOW, NOT A THICKER BORDER, BECAUSE A
   THICKER BORDER MADE THE BOX TALLER. Gord, 2026-09-08: *"Not all the fields are
   the same size."* Cowork's screenshot shows every REQUIRED box on this screen
   standing about two pixels proud of the optional one beside it, and this rule
   was why. `box-sizing: border-box` is global, so a border eats into the box
   before it grows it — but only until the box runs out of slack: 15px of line
   box + 12 of padding + 4 of border is 34, which is over the 32px `min-height`,
   while the same sum with a 1px border is 32. So the required boxes were 34 and
   the optional ones 32, on every form on the site.
   ⭐ `box-shadow: inset` PAINTS A SECOND RING INSIDE THE 1px BORDER AND OCCUPIES
   NO LAYOUT AT ALL — same two visible pixels of brand edge, same colour, same
   token, and `height` and `min-height` now compute identically for a required
   box and an optional one. ⛔ Not `outline`: an outline is drawn OUTSIDE the
   border box and would collide with the focus ring `:focus` already paints
   there. ⛔ And the border-COLOUR still changes, so the mark survives for anyone
   browsing with shadows suppressed. */
.shipform [required] {
  border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand);
}

/* ★★ THE INLINE PROBLEM. Beside the field, never a popup. The box carries a
   two-pixel error edge AND `aria-invalid="true"` AND the sentence is tied to it
   with `aria-describedby` — ⛔ a colour alone is not a mark, which is the same
   rule r02's clamped date box follows. */
.shipform .problem {
  color: var(--bad); font-size: 12px; font-weight: 600;
  background: var(--bad-tint);
  border-left: 3px solid var(--bad);
  padding: 3px 8px; border-radius: 0 3px 3px 0;
}
/* ⚠️ web4 r11 — THE REFUSED BOX TAKES THE SAME TREATMENT, AND IT HAD TO. It is
   the LATER rule, so its `box-shadow` overrides the required ring above and a
   field the server just rejected cannot end up wearing a calm brand edge inside
   a red border. It also keeps the same height as every box beside it, which is
   the whole point of the change: a form that grows two pixels taller on the row
   the server complained about is a form that jumps under the shipper's eye. */
.shipform input.wrong, .shipform select.wrong {
  border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad);
  background: var(--bad-tint);
}

/* ---------- island 2: the two address cards and the seam ---------- */

/* :400–:405 is a three-column Grid — `*`, `Auto`, `*` — with a 12px margin on
   each side panel (:408, :532) and the seam column between them.
   ★★ rw1 r11 — `minmax(0, 1fr)`, not `1fr`. Rowan, on 2026.09.25.1: the Pickup
   and Delivery boxes ran UNDER the right-hand rail at mid widths. A bare `1fr`
   track cannot go below its content's minimum, so the two cards pushed the grid
   wider than the form column. The zero floor lets the tracks shrink; the stack
   rule further down decides where they stop being side by side. */
.shipform .twocard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 14px; align-items: start; }

/* ⚠️ The desktop's two sides are BARE StackPanels, not bordered cards — the
   seam between them is the whole separator. The browser keeps a real
   <fieldset>, because a fieldset with a legend is what tells a screen reader
   that "Company" belongs to Pickup and the identically-named box below it
   belongs to Delivery. Painted as quietly as possible so it reads like the
   desktop's open panel rather than a second card inside a card. */
.shipform .addrcard {
  border: 1px solid var(--line); border-radius: var(--radius-input);
  margin: 0; padding: 10px 14px 4px;
  /* rw1 r11 — a fieldset's default minimum width is its content's; zero lets
     it follow its grid track instead of holding the track open. */
  min-width: 0;
}

/* :409–:410 and :533–:534: "Pickup from" / "Deliver to" is FontSizeBody,
   SemiBold, TextPrimary, with 8px under it. ⛔ NOT the small uppercase
   letter-spaced legend this sheet used to paint — the desktop shouts nothing
   here, and the uppercase version read as a form section rather than as the
   name of an address. */
.shipform .addrcard legend {
  font-size: 14px; font-weight: 600; color: var(--text);
  text-transform: none; letter-spacing: normal;
  padding: 0 4px; margin-bottom: 4px;
}
/* ⚠️ web5 r01 — the row lost its button and the `button` rule with it. The combo
   is now the whole width of the row, which is what the client draws
   (`cbRetCollectAddresses`, full width, H 30). The flex box is kept rather than
   unwound: it is the popup's positioning context and it is where r02's
   "Find address online" affordance lands. */
.shipform .bookrow { display: flex; gap: 8px; align-items: center; }
.shipform .bookrow select { flex: 1 1 auto; min-width: 0; }

/* ★★★ web11 r01 — the shipment cards' standalone "Find address online" row
   (`.shipform .findonline`, the button then "powered by Google") is GONE with
   the button. Gord, 2026-09-15: "get rid of the 'Find address online' button
   on all screens." `.btnlink.small` stays: the Address Book's own form still
   draws its button with it (`.abform .abfindonline`, further down). */
.btnlink.small { min-height: var(--target-min); padding: 2px 10px; font-size: 12px; }

/* ★★ THE SEAM, :520–:529. The desktop draws a 1px BorderSubtle rule the full
   height of the card column and puts the swap control ON it.
   ⛔ The rule is a `::before`, so it costs no element and no `style=`; the
   button on top of it is still a real submit that works with scripting off.

   ★★★ web4 r02 — AND THE CONTROL IS THE CLIENT'S ICON, NOT A WORDED BUTTON.
   Measured: a small SQUARE navy button, about 32x32, carrying a ⇄ and no text,
   sitting on the seam LEVEL WITH THE STREET ROW. The site had an 11em button
   captioned "Swap pickup and delivery" with a second sentence under it, centred
   vertically — a paragraph in the middle of an address card.

   ⚠️ THE 223px IS ARITHMETIC, NOT A GUESS, AND IT IS THE ONE MAGIC NUMBER IN
   THIS SECTION. It is the distance from the top of an address card to the middle
   of its Street box, added up out of this sheet's own declarations:
       10  the card's own padding-top
     + 23  the legend, at its line height, plus its 4px margin
     + 64  the Address book field (caption 16 + gap 4 + control 32 + margin 12)
     + 42  the Find-address-online row (24 tall + 6 above + 12 below)
     + 64  the Company field, on the same 16/4/32/12
     + 20  the Suite/Street caption and its gap
     = 223, and the 32px button then straddles the box's own top half.
   ⛔ IF ANY OF THOSE SIX NUMBERS CHANGES, THIS ONE CHANGES WITH IT. There is no
   way to express "level with the fourth field down in the box next door" in CSS
   without a script, and this round adds none. */
.shipform .swapcol {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  align-self: stretch;
  width: 44px;
  padding-top: 223px;
}
.shipform .swapcol::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--line);
}
.shipform .swapcol > * { position: relative; }
/* The square icon. ⚠️ 32x32 is the client's measured size AND is well over the
   24px WCAG target floor, so the desktop's number needs no adjustment. It wears
   the sheet's ordinary `button` paint — solid navy, white glyph — because on the
   client it is a solid navy icon button and because it is a real, live control:
   ⛔ nothing on this screen may be painted like a disabled marker unless it is
   one. */
.shipform .swapbtn {
  width: 32px; height: 32px; min-height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1;
  border-radius: var(--radius-input);
}

/* One column on a phone: the swap control lands between the two cards, which
   is exactly where it belongs in reading order too, and the vertical seam
   becomes a horizontal one. ⛔ The 223px offset goes with it — there is no
   column beside it to be level with any more.
   ★★★ rw1 r11 — AND THE SAME STACK BETWEEN 1100 AND 1519 PX, because there the
   cards do not fit side by side. One card needs 130 + 16 + 150 (the City /
   Province and Country / Postal floors, kept on purpose, see web4 r11 above)
   + 28 padding + 2 border = 326 px. Out of this sheet's own numbers, with the
   367 rail and its 20 gap, the 32 of island padding and the 72 of seam (44 swap
   column + two 14 gaps):
     · 1200 px and up, main is 78vw less 36: card = (0.78W − 527) ÷ 2, which is
       326 at W = 1511.5, so 1512 is the first width that fits;
     · 1100–1199, main is 100vw − 32 less 36: card = (W − 559) ÷ 2, which never
       reaches 326 in that band;
     · 901–1099 the rail has dropped under the form (the 1099 rule above):
       card = (W − 172) ÷ 2, 364 at 900 and 463 at 1099, so side by side fits.
   ⛔ The top of the range is 1519, not 1511: eight pixels of slack so a
   scrollbar or a rounding pixel cannot put the cards back under the rail at the
   edge. Between 1512 and 1519 a shipper sees the cards stacked, which is safe. */
@media (max-width: 900px), (min-width: 1100px) and (max-width: 1519px) {
  .shipform .twocard { grid-template-columns: minmax(0, 1fr); }
  .shipform .swapcol { width: auto; margin-bottom: 12px; padding-top: 10px; }
  .shipform .swapcol::before {
    top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px;
  }
}

/* ---------- island 3: the one package, in the desktop's card ---------- */

/* :676–:679 — each package is a SurfaceCard border with the control radius and
   a 10px body. There is exactly ONE of them here and there always will be until
   `remoteTripDetailed` stops being flat; see the markup and the amber note. */
.shipform .pkgcard {
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--card); padding: 10px; margin-bottom: 12px;
}

/* ★★★ web4 r02 — SIX NEAR-EQUAL BOXES ON ONE ROW, WHICH IS WHAT THE CLIENT
   DRAWS. Measured: Package type about 220 wide, then Weight, Length, Width,
   Height, Original and Q-H sharing the rest. This site does not send Q-H, so it
   draws five sharing cells and puts its own Declared value box in the slot the
   client gives to Original — same row, same size, same caption weight.
   ⛔ PIECES IS NOT ON THIS ROW ANY MORE. It was the second cell; the client puts
   it on its own in the bottom-right corner of the island, because it is a count
   for the whole shipment and not a dimension of the package. See `.piecesrow`.
   ⛔ DIM IS STILL DEAD — gtin1-r02 deleted it from the client's own row on Gord's
   instruction and this screen never had one. */
/* ⚠️⚠️ web4 r11 — THE WEIGHT CELL IS NOT ONE OF THE FIVE EQUAL SHARES ANY MORE,
   AND THE SCREENSHOT IS WHY. Gord, 2026-09-08: *"Not all the fields are the same
   size."* Cowork measured the Weight box on the live site at about TWENTY PIXELS
   — a sliver you cannot type a number into — while every box beside it was 84.
   The arithmetic: a package card is the 724px island body less its own 20 of
   padding (702); 220 of Package type and five 12px gaps leave 422 for five equal
   cells, so 84 each. The Weight CELL holds a box AND the kg/lb pair, and that
   pair is `white-space: nowrap` and cannot give ground — two radios, two words
   and their gaps are about 84 on their own. 84 − 84 − the 10px gap is less than
   nothing, so the box was squeezed to whatever the flex minimum left it.
   ⭐ SO WEIGHT GETS A TRACK OF ITS OWN with a floor big enough for both halves:
   90 of box (the brief's minimum, and four digits and a decimal point) + 10 of
   gap + ~74 of radios = 174. Above that floor it takes 1.6 shares so it grows
   with the window like everything else. ⛔ The radios did NOT move: they are
   still AFTER the box, on the same line, exactly where the client keeps them and
   where they were before. What changed is that there is now room for both. */
/* ⛔ web9 r03 — `align-items: start` IS GONE FROM THIS DECLARATION and is NOT
   simply deleted: it is replaced by the one baseline the shared field-row rule
   above now declares for every row on the site. It had to come out HERE rather
   than be overridden there, because this selector sits LATER in the sheet at the
   same specificity and would have won. Nothing else in this block moved. */
.shipform .row-pkg {
  display: grid; gap: 0 12px;
  grid-template-columns: 220px minmax(174px, 1.6fr) repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .shipform .row-pkg { grid-template-columns: minmax(0, 1fr); }
  .shipform .row-pkg .pkgtype { max-width: none; }
}
/* ⭐ `.shipform .dimshelp` AND `.shipform .declared` WERE DELETED WITH THEIR
   MARKUP. The first painted the "length, width and height have no units"
   paragraph, which is a `title` on all three boxes now; the second capped the
   Declared value box at 14em when it stood on a line of its own, and it is a
   grid cell on the package row now. ⛔ Both rules AND both class attributes went
   together — a rule with no markup is the next round's load-bearing mystery. */

/* ★★★ web4 r02 — THE CONTENTS PANEL, :860–:940. The client puts a grey inset
   under the package row holding one product line and an "add another" button.
   Painted as the SurfaceAlt inset the client uses for exactly this (:1024 is the
   same treatment on the charges card), so the two blocks on this screen that are
   "a panel inside a card" read alike.
   ⚠️⚠️ web6 r07 — THE PANEL IS LIVE. r02's note here said "EVERY CONTROL IN IT
   IS DISABLED — the `<fieldset disabled>` in the markup — so the browser greys
   the boxes for us". 🔒 Gord ruled the greyed controls on this screen real on
   2026-09-12; the `disabled` attribute is gone and so is the paint that went with
   it. The inset itself is unchanged — same border, same radius, same fill. */
.shipform .contents {
  margin: 0 0 12px; padding: 6px 12px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface-alt);
}
.shipform .contents legend {
  padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--text-2);
}
/* ★★★ web6 r07 — THE TABLE IS LIVE AND IT IS THE CREATE RETURN SCREEN'S TABLE.
   The `.row-content` single-row grid, the `input:disabled` paint and the
   `.rmproduct` marker went WITH the markup they described: the fieldset carries
   no `disabled` any more, there is no greyed span left to paint, and a rule with
   no element is the next round's load-bearing mystery.

   What replaces them is the SAME shape `.shipform.retform .prodrow` already
   uses, with the Net wt column this screen has and that one does not:
   GTIN · Product (wide) · Qty · Net wt · the remove cross. ⛔ The selectors are
   scoped to `.contents` so the return screen's own table is untouched — the two
   have different column counts and one rule cannot serve both. */
.shipform .contents .prodhead,
.shipform .contents .prodrow {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 70px 90px 34px;
  gap: 0 8px;
  align-items: center;
}
.shipform .contents .prodhead {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
}
.shipform .contents .prodhead .qty { text-align: right; }
.shipform .contents .prodrow { margin-bottom: 6px; }
.shipform .contents .prodrow input { height: var(--control-h); }
.shipform .contents .prodrow input.qty { text-align: right; }

/* The per-row cross. 28px is the PC's size and is above this sheet's 24px click
   floor; `--target-min` is asserted anyway so a token change cannot silently
   shrink it below the floor. */
.shipform .contents .prodrow .rowdel {
  width: 28px;
  height: 28px;
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-2);
  border-radius: var(--radius-input);
  cursor: pointer;
  line-height: 1;
}
/* ⛔ web9 r03 — `--bad` → `--brand` ON THE HOVER, under the same site-wide "no
   red buttons" ruling as `button.danger` above. The row ✕ is a button and it
   went red under the pointer; it now goes brand blue like every other button
   this site paints. ⛔ Paint only: the ✕ still removes the row it is on. */
.shipform .contents .prodrow .rowdel:hover { background: var(--surface-alt); color: var(--brand); }
.shipform .contents .prodrow .rowdel:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.shipform .contents .addprod { margin-top: 2px; }

/* ★★ THE "estimated" FLAG under the Weight box — the PC's muted right-aligned
   caption, bound to `WeightIsEstimate`. ⛔ Muted and small on purpose: it is a
   qualifier on the number above it, not a warning about it. */
.shipform .estflag {
  display: block;
  margin: 2px 1px 0 0;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
}

/* One column below the width the five tracks stop fitting in an island. */
@media (max-width: 700px) {
  .shipform .contents .prodhead { display: none; }
  .shipform .contents .prodrow {
    grid-template-columns: minmax(0, 1fr) 70px 34px;
  }
  .shipform .contents .prodrow input:not(.qty) { grid-column: 1 / span 3; }
  .shipform .contents .prodrow input.qty { grid-column: auto; }
}

/* ★★ PIECES, BOTTOM-RIGHT OF THE ISLAND — the client's own corner for it.
   ⚠️⚠️ web4 r11 — AND IT IS THE SAME BOX AS ITS NEIGHBOURS NOW. Cowork's
   screenshot shows it shorter than every other control on the screen and wearing
   a different edge, and the cause was not here: `input[type=number]` was missing
   from the shared control rule at the top of this sheet, so this ONE box on the
   site fell through to the browser's own default paint — no `--control-h`, no
   `--line-strong` border, no shared padding. The fix is in the shared kit, where
   a second `type=number` on any screen would have hit the same wall.
   ⛔ AND `text-align: right` WENT WITH IT. It was the second half of what Gord
   saw ("short, right-aligned number"): every other box on this island reads from
   the left, and a lone right-aligned one reads as a different KIND of control.
   The POSITION is untouched — still alone in the client's bottom-right corner. */
.shipform .piecesrow { display: flex; justify-content: flex-end; }
.shipform .piecesrow .pkgpieces { width: 9em; margin-bottom: 12px; }

/* ⛔⛔ web4 r11 — `.shipform .pkgnote` IS GONE, WITH THE PARAGRAPH IT PAINTED,
   AND r02's OWN JUDGEMENT CALL IS THE THING THAT WAS OVERTURNED.
   r02 kept the desktop's amber multi-package note but clipped it to one line
   with an ellipsis, and wrote: "🔒 If Gord would rather read the whole sentence
   on the page than hover for it, delete the three clipping declarations." Gord
   looked at it on 2026-09-08 and ruled the OTHER way — the line was on his list
   of *"minor clean ups"* twice over: it was clipped (`Multi-package note: …`)
   AND it was a paragraph of helper prose the PC client does not print in that
   place. A sentence that has to be truncated to fit is a sentence that is in the
   wrong container.
   ⭐ SO THE WHOLE SENTENCE MOVED TO THE PACKAGES ISLAND HEAD'S `title`, which is
   where the rest of this screen's prose went in r02 — same key, same words, all
   three string tables untouched, and now legible in full instead of legible for
   four words. ⛔ The RULE went with the markup rather than being left orphaned:
   a rule with no element is how deleted prose comes back. */

/* ---------- island 5: the scheduled list this site does not have ---------- */

/* One honest sentence where the client draws a list. ⛔ Deliberately NOT a
   `.notice`: a notice is a page-level banner about THIS request, and this is a
   permanent statement about an island. */
.shipform .schednote { margin: 0; color: var(--text-2); font-size: 13px; }

/* ---------- island 4: the courier's charges ---------- */

/* :1024–:1026 wraps the WrapPanel in an InsetPanel: a SurfaceAlt fill at the
   control radius with 10,8 of padding. The list itself is the server's order,
   wrapping freely (:1025 is a WrapPanel). */
.shipform .chargewrap {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  background: var(--surface-alt); border-radius: var(--radius-pill);
  padding: 10px 8px;
}
.shipform .chargewrap:empty { display: none; }
.shipform .charge { display: flex; align-items: center; gap: 6px; }
.shipform .charge label { font-weight: 400; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.shipform .charge input[type=checkbox] { width: auto; min-height: 0; }
.shipform .charge input[type=text] { width: 7em; }

/* Island 3 — the weight box and its unit switch on one line. The unit radios
   are the browser's own control (the desktop keeps the kg/lb choice in an
   app-wide preference on that person's PC, MainWindow.xaml:5699), so they are
   styled the way the desktop styles a row of small options: plain weight,
   caption size, no chrome of their own. */
.shipform .unitrow { display: flex; gap: 10px; align-items: center; }
/* ⚠️ web4 r11 — `flex: 1 1 90px` WITH A REAL FLOOR, NOT `1 1 auto; min-width: 0`.
   The old pair said "this box may shrink to nothing", and beside a `nowrap` pair
   of radios in an 84px cell that is exactly what it did — see the note on
   `.row-pkg` for the arithmetic. 90px is the brief's own minimum and holds four
   digits and a decimal point at this type size; the 9em ceiling is unchanged, so
   on a wide window the box still stops growing where it always did. */
.shipform .unitrow input[type=text] { flex: 1 1 90px; min-width: 90px; max-width: 9em; }
.shipform .units { display: flex; gap: 10px; white-space: nowrap; }
.shipform .units .unit { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; font-size: 13px; }
.shipform .units input[type=radio] { width: auto; min-height: 0; }

/* ---------- the rail ---------- */

/* The rail's POSITION is set at the top of this section (`.shipform .rail`, a
   sticky column in `.shipcols`). What follows is its INTERNAL shape, which is
   the client's row for row.

   ★ web4 r02 — the three fields STACK. They were a three-across `.row3`, which
   is the client's arrangement on a 1180px form column and is not its arrangement
   in a 367px rail: there, and here, they sit one under another at full width.
   The rule is one line because `.fld` is already a block that fills its parent —
   it exists to be findable and to say so. */
.shipform .railfields { display: block; }

/* The two hairlines, :1251 and :1285 — a 1px BorderSubtle Border with 12px of
   air either side of the first and 8/12 around the second. */
.shipform .railrule {
  border: 0; border-top: 1px solid var(--line); margin: 12px 0;
}

/* ★★★ web4 r02 — THE "WHEN TO SHIP" ROW, :1180–:1215. The client puts the
   `Schedule for later` button at the left of the row and the On/Off readout hard
   against the right, which is what `space-between` says. The readout is
   TextSecondary at caption size — it is a state, not a control. */

/* ★★★ web4 r11 — AND THE BUTTON IS THE FULL WIDTH OF THE RAIL LIKE ITS FIVE
   NEIGHBOURS, WITH THE READOUT INSIDE IT. Cowork's screenshot: *"a narrow greyed
   pill with 'Off' floating at the far right"* — the marker was sized to its own
   caption in a 367px rail while every other control in that rail fills it, so it
   read as a stray chip and the word beside it read as unattached. `Off` is now a
   right-aligned label INSIDE the same row, on the same 34px, which is exactly
   the shape `.clonebtn` below already uses for the client's own split button.
   ⛔ The readout is still a plain `<span>` and still says the only true thing —
   this site cannot hold a shipment — and the marker is still a `<span>` and not
   a disabled button. Nothing about either changed but its box. */
.shipform .whenrow {
  display: flex; align-items: center;
  gap: 8px; margin-bottom: 4px;
}
.shipform .whenrow > .btnlink {
  flex: 1 1 auto; min-height: 34px;
  justify-content: space-between; gap: 10px;
}
.shipform .whenrow .whenstate { color: var(--text-2); font-size: 13px; }

/* SubSectionTitle, :66–:70 and :1257: FontSizeBody, SemiBold, TextSecondary,
   with 8px under it. */
.shipform .railtitle {
  margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text-2);
}

/* The summary pairs, :1258–:1283. RailLabel is TextSecondary with 10px to its
   right and 6px under (:158–:162); RailValue is TextPrimary, RIGHT-ALIGNED and
   ellipsised (:163–:169). ⚠️ The right alignment is not decoration — it is what
   makes a column of weights and counts scannable, and it is why the desktop
   sets HorizontalAlignment="Right" on the value and not on the label. */
.shipform .rail .summary { margin: 0 0 4px; }
.shipform .rail .summary .dfield {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 0 10px; margin-bottom: 6px;
}
.shipform .rail .summary dt { color: var(--text-2); font-size: 14px; }
.shipform .rail .summary dd {
  margin: 0; color: var(--text); font-size: 14px;
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* The estimated charge, :1287–:1298. ⛔ NO BOX. The desktop is a bare
   two-column Grid: caption left in TextSecondary at FontSizeBody, amount right
   in TextPrimary at FontSizeTitle and SemiBold. This sheet used to wrap it in a
   SurfaceAlt panel and paint the amount brand-blue, which reads as a price tag
   on a screen whose whole promise is that an estimate is not a price. */
.shipform .estimate {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 0 12px; align-items: center;
}
.shipform .estimate .lbl { color: var(--text-2); font-size: 14px; }
.shipform .estimate .amount {
  font-size: 16px; font-weight: 600; color: var(--text);
  text-align: right; overflow-wrap: anywhere;
}
/* MutedCaption, :153–:156 and :1299–:1300 — TextMuted, 4px under the row. */
.shipform .estimatehint {
  margin: 4px 0 0; color: var(--text-muted); font-size: 12px;
}

/* ★★★ web4 r02 — THE ACTION STACK, AT THE FULL WIDTH OF THE RAIL. FIVE OF IT
   SINCE web4 r10. Measured on the client: SIX full-width buttons 8px apart at
   the foot of the rail, Ship Now about 44px and bold, the others about 34px.
   Five of the six are drawn here; the client's printer picker at :1346 is not,
   because a browser has no printer driver to pick from and a control that
   cannot exist gets no placeholder (Gord, 2026-09-08 — see ship.php):
     Ship Now        ~44, bold   :1321   live
     Estimate        ~34         :1334   live
     Clear           ~34         :1337   live      (web4 r02 — see ship.php)
     Clone shipment  ~34, split  :1352   disabled  (web4 r02)
     Batch Ship…     ~34         :1360   disabled  (web4 r02)

   ⚠️ THE 292px CAP IS GONE. web3 r07 capped the stack at 292 — the width the
   buttons have inside the XAML's declared 316px rail — because the stack was
   sitting at the bottom of a full-width page and needed a ceiling. It is inside
   the measured 367px rail now, so it simply fills it, which is what the client's
   own buttons do.
   ⚠️ 44 and 34 are both far above the 24px floor, so the client's own numbers are
   used unchanged. */
.shipform .actions {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 8px; margin-top: 14px;
}
.shipform .actions button,
.shipform .actions .btnlink {
  width: 100%; justify-content: center; min-height: 34px;
}
.shipform .actions .shipnow {
  min-height: 44px; font-size: 15px; font-weight: 700;
}

/* ★★★ web4 r11 — THE THREE LIVE RAIL BUTTONS ARE ALL SOLID NAVY, WHICH IS WHAT
   THE CLIENT DRAWS. r02 measured them and wrote it down at the head of this
   block — "Buttons: solid navy, white text, ~34px; Ship Now taller and bold" —
   and then painted Estimate as the sheet's white outlined `.secondary` and Clear
   as a white outlined `.btnlink`, so Cowork's side-by-side shows one navy button
   above two white ones where the client has three navy. Ship Now keeps its 44px
   and its bold: it is taller on the client too, which is how the client
   distinguishes the action that books a courier from the two that do not.
   ⛔ SCOPED TO `a.btnlink`, AND THAT IS THE WHOLE POINT OF THE SELECTOR. Clone
   shipment and Batch Ship… are `<span class="btnlink disabled">` markers in this
   same stack and MUST keep the muted dashed not-allowed paint — greying is how
   this site says "coming", and painting a dead control like a live one is the
   thing every screen here refuses. A span is not an `a`, so they cannot be
   caught by this rule even by accident.
   ⛔ And nothing about what either control DOES changed: Estimate is the same
   submit with the same name and value, Clear the same anchor to /ship.php. */
.shipform .actions button.secondary,
.shipform .actions a.btnlink {
  color: var(--on-brand); background: var(--brand-button);
  border-color: var(--brand-button); font-weight: 600;
}
.shipform .actions button.secondary:hover,
.shipform .actions a.btnlink:hover {
  background: var(--brand-button-hover); border-color: var(--brand-button-hover);
}
/* ★ The client's split button: caption left, a `▾` at the right behind a
   hairline. ⛔ ONE control, not two — there is no menu to open here, and a second
   dead affordance beside a dead affordance is a screen filling up with lies. The
   arrow is `aria-hidden` in the markup, so a screen reader hears the caption and
   nothing else. */
.shipform .actions .clonebtn { justify-content: space-between; }
.shipform .actions .clonebtn .split {
  padding-left: 10px; border-left: 1px solid var(--line);
}

/* ★★★ web6 r07 — AND THE SAME SHAPE AGAIN, ALIVE. r02's note above is still true
   of the GREYED state, which is unchanged: before the first shipment of a session
   there is no menu to open and the marker stays one dead control. Once a snapshot
   exists the PC's split button really does have two halves — the primary IS Full
   clone and only the caret opens the list — so both are drawn, with the same
   hairline in the same place, and nothing in the rail moves.
   ⛔ `<details>`/`<summary>` and no script: the browser owns the open state, it
   survives scripting being off, and `summary` is focusable and announces itself.
   ⛔ The list is `position: absolute` so opening it cannot push Batch Ship… down
   the rail — a control that moves under the pointer is how the wrong item gets
   picked. */
.shipform .actions .clonesplit { display: flex; width: 100%; }
.shipform .actions .clonesplit .clonemain {
  flex: 1 1 auto;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.shipform .actions .clonemenu { position: relative; flex: 0 0 auto; }
.shipform .actions .clonemenu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-top-right-radius: var(--radius-pill);
  border-bottom-right-radius: var(--radius-pill);
  background: var(--card);
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
}
.shipform .actions .clonemenu > summary::-webkit-details-marker { display: none; }
.shipform .actions .clonemenu > summary:hover { background: var(--surface-alt); }
.shipform .actions .clonemenu > summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.shipform .actions .clonemenu > ul {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 4px);
  min-width: 250px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  background: var(--card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.shipform .actions .clonemenu > ul > li > a {
  display: block;
  padding: 7px 14px;
  min-height: var(--target-min);
  color: var(--text-1);
  text-decoration: none;
  font-size: 14px;
}
.shipform .actions .clonemenu > ul > li > a:hover { background: var(--surface-alt); }
.shipform .actions .clonemenu > ul > li > a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}

/* A submit that is not the primary action of its island — Estimate, which Ship
   Now demoted in web1 r05, and the batch screens' Add / Remove row buttons.
   ⚠️ web4 r02 took Swap off this list: it is a solid navy icon button on the
   client and is painted like one here.
   ⚠️ web5 r01 took the address-book fill button off it as well, by deleting the
   button: the desktop's combo fills the card as you pick and has no second
   control. The RULES stay — four other buttons on these screens wear them. */
.shipform button.secondary {
  color: var(--brand); background: var(--card);
  border-color: var(--line-strong); font-weight: 600;
}
.shipform button.secondary:hover { border-color: var(--brand); background: var(--surface-alt); }
/* ★ web4 r02 — the small outlined variant. 28px is `--control-h-compact`, the
   client's own compact button height, and it clears the 24px floor.
   ⚠️ web5 r01 — its first wearer, the address-book fill beside the picker, is
   gone; the batch screens' Add group / Add addresses / Remove / Clear rows
   buttons still wear it, so the rule stays. */
.shipform button.small {
  min-height: var(--control-h-compact); padding: 4px 10px; font-size: 13px;
}

/* web1 r05: the button while the courier is being asked. ⚠️ The colour is not
   the whole message — the CAPTION changes too, so this reads for somebody who
   cannot see the difference between two blues. */
.shipform button[disabled] {
  opacity: 0.65; cursor: default; background: var(--line-strong); border-color: var(--line-strong);
}

/* ⭐ `.shipform .fld .help.warn` WAS DELETED WITH ITS LAST USER. It painted one
   line — the declared-value "changes the estimate only" note — and web4 r02 put
   that sentence on the declared-value box's own `title`, beside its plain one,
   because the client prints no prose on this screen. ⛔ The SENTENCE was not
   deleted and is still in all three string tables; only the rule that painted it
   as a line under a field went, and it went because nothing asks for it any
   more. */

/* ---------- the confirmation page ---------- */

/* web3 r07: it is a `.card.island` now, so the header strip, the radius and the
   body padding all come from the three shared rules above — nothing about the
   card itself is restated here. `.card.shipped` is KEPT as the second class
   because the print stylesheet at the foot of this file hides
   `.card.shipped .actions` by name.

   ★ One number matters on this page and it is the one the shipper is about to
   read down a telephone, so it is set large, in a monospaced face (so 0/O and
   1/l cannot be confused) and with generous letter-spacing. The desktop puts
   the waybill on its status bar in eleven-point grey; a browser has a page to
   spend and this is what it spends it on. */
.card.shipped .waybill-label {
  margin: 14px 0 2px; color: var(--text-2); font-size: 13px;
}
.card.shipped .waybill {
  margin: 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 32px; letter-spacing: 0.06em; color: var(--brand-text);
  overflow-wrap: anywhere;
}
/* Track · Ship another · Clone, in the desktop's post-create order. A ROW here
   rather than the rail's column: these are three navigations of equal weight,
   not one action with alternatives under it. */
.card.shipped .actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 10px; }
.card.shipped .help { color: var(--text-2); font-size: 13px; }
.card.shipped .summary { margin-top: 16px; }
.card.shipped .summary .dfield {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 0 10px; margin-bottom: 6px;
}
.card.shipped .summary dt { color: var(--text-2); font-size: 14px; }
.card.shipped .summary dd {
  margin: 0; color: var(--text); font-size: 14px; text-align: right;
  overflow-wrap: anywhere;
}

/* ══════════════════════════════════════════════════════════════════════════
   web4 r05 — ADDRESS BOOK, LAID OUT LIKE THE PC CLIENT

   (This section was headed "web3 r08 — ADDRESS BOOK, LAID OUT LIKE THE PC
   CLIENT" — and before that "web1 r06 — THE ADDRESS BOOK" — and is the same
   block of the sheet, rebuilt against SCREENSHOTS of the two products rather
   than moved.
   ⚠️ TWO NEEDLES POINT AT THIS BANNER AND BOTH HAVE BEEN RE-POINTED in
   run-tests.php: the Enter New Shipment section's END needle, which stops its
   extract here, and this section's own START needle. That is the same trap r06,
   r07, r08 and r09 each sprang and repaired in turn. Rename this banner again
   and go and re-point both, or one extract becomes empty and passes vacuously
   while the other swallows half the sheet.)

   ★★★ WHAT web4 r05 CHANGED, AND WHY IT IS NOT A MATTER OF TASTE. web3 r08 read
   the XAML and got the WORDS and the ORDER right; it never saw the two screens
   side by side, so it got the SHAPE wrong in five ways that Cowork's screenshots
   of 2026-09-08 measure:
     · the client's two islands are SIDE BY SIDE — Addresses at x=218…1187
       (~970px) and Create/Edit Addresses at x=1193…1777 (~584px) on a 2000px
       window, a 62/38 split with a 6px seam. This edition STACKED them, so a
       shipper jumping between the two products met a tall single column against
       a wide pair.
     · the client's Create/Edit Addresses island is ALWAYS THERE, blank,
       captioned "New address". Ours drew nothing at all until you clicked Add or
       a row's Edit — the same failure web4 r04 measured and fixed on Users.
     · the client's grid has ONE combined `Address` column (`120 street, Surrey,
       British Columbia`). Ours split it into Street, Suite, City and Prov/State,
       which pushed Postal, Country and all three contact fields off the right of
       a grid that then scrolled sideways.
     · the client's row 2 is ONE line — an `All` chip, a muted sentence, and a
       right-aligned Manage-groups button. Ours was four: a chip row, a panel, a
       caption-box-and-two-buttons, and a two-clause paragraph.
     · both island headers are CENTRED on this screen (as they are on Users and
       on Settings; the Enter New Shipment headers are left-aligned with their
       numeral disc), and both islands run the FULL PAGE HEIGHT.
   ⛔ NOT ONE BEHAVIOUR MOVED. Every rule below is layout; addresses.php's
   handler, its two gates, its CSRF check, its write brake, its two-tier dedupe
   and its 303s are untouched, and `addresses.js` was not opened at all.

   Source read in full: MainWindow.xaml :4893–:5504 — the whole tabItemAddressBook
   TabItem, its Grid.Resources row kit and chip styles included — plus
   Dialogues/ThemedDialogWindow.xaml :1–:45 and Dialogues/IdsDialog.cs for the
   delete confirmation, Design/Styles.xaml :14–:29 for the type ramp and the
   corner radii, and Design/Colours.xaml with Colours.Dark.xaml for every colour.

   Gord, looking at the live site: "I really would like the screens in the
   browser version to look exactly like whats in the PC Client version… Then
   when someone jumps from one to the other, they dont get confused."

   THE DESKTOP IS TWO ISLANDS SIDE BY SIDE IN ONE GRID (:5041–:5048) — 828 units
   of list in column 0, 510 of create/edit form in column 1 — so its reading
   order is LIST, THEN FORM.
   ⚠️ AND THE SCREENSHOT AGREES WITH THE XAML, WHICH IS WHY BOTH NUMBERS APPEAR
   BELOW. Measured on the client: 970px of list against 584px of form, which is
   62/38; the XAML's 828:510 is 62/38 as well. So the 970 is the SAME COLUMN as
   the 828 units, at the scale the client is actually used at, and the two are one
   fact and not two. `.abwrap` spends the measured pixels where there is room for
   them and falls back to the ratio where there is not.
   ⚠️ r08's REASON FOR STACKING IS KEPT, AT THE WIDTH IT IS TRUE AT. It wrote: "a
   62/38 split beside a form is a desktop shape that becomes two columns two words
   wide on a phone in a van". That is right about a phone and wrong about a
   laptop, and the browser was applying it at every width. `.abwrap` stacks below
   900px, which is where r08 was reasoning, and splits above it, which is where
   the client is.

   ISLAND 1  Addresses  :5058, six rows top to bottom (:5063–:5070):
       row 0  :5071  brand header band, island name at the left and the count
                     pill at the right (:5075)
       row 1  :5087  the toolbar: Add, Edit, Delete, a hairline, Refresh now, a
                     hairline, Import, Export, Clean up, Columns, a spring, and
                     the search box, which takes the width that is left (:5100)
       row 2  :5164  the group chip filter bar: the All chip, the honest empty
                     sentence beside it (:5185), and — measured off the
                     screenshot — a right-aligned Manage groups button at the
                     island's edge. web4 r05 puts the group-name box and its two
                     buttons in that button's place, because they ARE the act it
                     opens a window to perform: the server has no create-, rename-
                     or delete-group operation at all.
       row 3  :5203  the ticked-rows action bar — which is that same box and pair,
                     so rows 2 and 3 are now the one line the client draws
       row 4  :5257  the grid: tick, Company, ADDRESS (ONE combined column),
                     Postal, Country, Contact, Phone, Email, Source, Groups,
                     actions (:5280–:5347), rows ~34 tall on the screenshot
       row 5  :5421  a footer caption

   ISLAND 2  Create/Edit Addresses  :5424, a two-column field grid (:5457–:5460):
       labels 150 wide in column 0, boxes 310 wide in column 1, one field per
       row, rows 30 tall (:5443–:5455), a muted caption line above them all
       (:5461), and a right-aligned button pair sharing the boxes' right edge
       (:5493): Add / Update 110 wide then Clear 75 wide, 10 apart, both 28 tall.

   WHAT THE DESKTOP HAS AND THIS SCREEN DOES NOT, AND HOW EACH IS TREATED:
     · Import (:5115), Clean up (:5127) and Columns (:5130) are genuinely absent
       here, so they keep their SPACE and their desktop caption and are greyed
       with the site's existing honest tooltip. The markup does that; there is no
       rule for it below, because a greyed door already has one.
     · Edit (:5104), Delete (:5106) and Refresh now (:5109) are NOT greyed. All
       three are BUILT in this edition — Edit and Delete are the two links in
       every row's actions cell, which is where the desktop's OWN actions column
       (:5336) also puts them, and every GET of the page re-reads the book, so the
       browser's reload IS Refresh now. r05's ruling, applied again: a greyed
       not-built copy of a feature that IS built is a lie, and honesty outranks
       shape.
     · The Source column (:5311) is not carried. It is an em dash on EVERY desktop
       row — remoteCommonAddress has no origin field and the XAML says so in
       words — so a fourteenth permanently-empty column on a grid that already
       scrolls sideways would add noise and no fact.
     · The footer caption (:5421) says "auto-refreshed N minutes ago". There is no
       background timer here, so its row is left empty rather than filled.
     · The Manage-groups overlay (:5369) has no door either: View is a chip click
       and Empty group is "Remove from group" over the ticked rows, so both of
       its acts already exist on this island in a flatter shape — and web4 r05
       moves them into the PLACE the client's button occupies, which is the
       closest an honest browser gets to that control.
     · The `All` chip is in the markup and wears the client's own word, but the
       chip ROW is revealed by addresses.js and only once there is more than the
       All chip to choose between. ⚠️ THAT IS LEFT EXACTLY AS r08 BUILT IT: a
       chip does nothing without the script, and `addresses.js` is frozen this
       round. So an account with no groups at all sees the muted sentence without
       the chip beside it. Named rather than quietly "fixed", because fixing it
       means opening the one script file this round is not allowed to change.

   ⛔ EVERY COLOUR BELOW IS A `var(--…)`. Not one hex literal appears in this
   section, in a rule or in prose; the suite greps between this banner and the
   next and expects 0. Dark mode therefore needs no rule of its own — the token
   block at the top of the file already swapped it.
   ⛔ AND NOT ONE SELECTOR BELOW IS AN ID, WHICH IS NOT A STYLE PREFERENCE. This
   screen's ids all begin with the letters a-d-d, and a hash followed by three hex
   letters is exactly what that grep hunts for — so scoping a rule to the table by
   its id would fail this section's own colour check on a selector that contains
   no colour at all. Everything is scoped to the island classes instead.
   ⛔ Every size below is the DESKTOP's own number, quoted with its XAML line, and
   nothing goes under the 24-pixel target floor. Where the desktop is 26 (its
   chips and its action bar) this is 26, and where it is 28 (its toolbar and its
   form buttons) this is 28; both clear the floor, so neither was rounded.
   ⛔ Never type a star next to a slash anywhere in this comment: it closes it.
   ══════════════════════════════════════════════════════════════════════════ */

/* ---------- shared rules that happen to live in this section ---------- */

/* ⚠️ THE FOUR RULES IMMEDIATELY BELOW ARE NOT THE ADDRESS BOOK'S ALONE, and web3
   r08 deliberately LEFT THEM WHERE THEY ARE. `.fielderr`, `.field .clamped` and
   `button.danger` are all also worn by the Users and Access screen, and the
   email/tel repair is a base-kit control rule. r05 and r06 hoisted rules like
   these up into the shared kit when they rebuilt a section — but a hoist moves a
   rule's position in the cascade, and this round changes how a screen LOOKS, not
   what order the sheet resolves in. They are named here instead so the next
   round that touches them knows they are shared before it edits one. */

/* ⚠️ THE REPAIR, AND IT IS NOT COSMETIC. The site-wide control rule at the top
   of this sheet lists `text`, `password` and `search` and stops there — because
   until this round no screen had an `email` or a `tel` box. The Address Book's
   contact card has both, and without this line they would render as the
   browser's default 20-character inputs beside full-width neighbours. ⛔ They
   are added to the EXISTING rule's effect rather than given a competing one, so
   there is still one description of what a control looks like. */
input[type=email], input[type=tel] {
  width: 100%;
  min-height: var(--control-h);
  padding: 6px 10px;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
}

/* ★ THE INLINE FIELD SENTENCE — never a popup, and never colour alone. It sits
   beside the box that is wrong, and the box itself also carries `.clamped` and
   `aria-invalid`, so the fact reaches a sighted reader, a screen-reader user
   and somebody who cannot tell the two tints apart. */
.fielderr { display: block; margin-top: 4px; color: var(--bad); font-size: 13px; font-weight: 600; }
/* ⚠️ web4 r11b — THE SHARED KIT'S COPY, AND IT IS AN INSET RING NOW TOO. This is
   the rule EVERY stacked form on the site inherits, so it is the one that decides
   whether "all the fields are the same size" is true off this screen as well as
   on it. Same reasoning as `.critrow input.clamped` above and
   `.shipform [required]` below: a border costs layout the moment the box runs out
   of slack, an inset shadow never does. */
.field input.clamped, .field select.clamped {
  border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn);
  background: var(--warn-tint);
}

/* ⛔⛔⛔ web9 r03 — THE TWO RULES THAT PAINTED A BUTTON RED ARE DELETED, AND
   THIS IS A SITE-WIDE RULING RATHER THAN THREE SCREEN FIXES.

   🔒 Gord, 2026-09-13, three times over: *"The Delete Shipment button is red,
   make it blue like the other buttons."* (Edit Active) · *"put the Delete
   button back to blue like the other buttons, I dont like the red."* (Address
   Book clean-up) · *"Again, make the Red Delete button, blue like the other
   buttons."* (Reports)

   They stood here and read `background: var(--bad)` and a hover twin. Deleting
   them is the whole fix: every `button.danger` on the site now falls through to
   the shared `button` rule at the top of this sheet and is the ordinary
   `--brand-button` blue, with the ordinary hover and press. ONE deletion, eight
   screens — Edit Active, Address Book (three buttons), My Products, Reports,
   Users, Settings, Report Builder and Templates.

   ⛔⛔ THE BEHAVIOUR DID NOT CHANGE AND MAY NOT. Not one handler was read into or
   written out of; there is still no `confirm()`, `alert()` or `prompt()` on this
   site; and every one of those buttons that ASKED before it wrote still asks, on
   a real page or as an inline in-page question. Only the paint changed.
   ⚠️ ONE OF THEM NEVER ASKED. Reports' saved-view Delete (`action=deleteview`)
   removes the view on the first click and always did. That is a behaviour gap,
   not a paint one, so this round NAMED IT AND LEFT IT — see reports.php's own
   note at the button. It matters more now that the red is gone, and the round
   that owns that screen's behaviour should close it.

   ⚠️ `.fielderr`, `.notice.bad`, `.problem` and `.editform .editconfirm` still
   use `--bad`, and they are NOT buttons — a red sentence and a red frame around
   a question are how this site says "read this", and the ruling was about
   buttons. `--bad` itself is untouched in `:root`. */

/* The tick column: as narrow as a checkbox and no wider. */
table.grid td input[type=checkbox], table.grid th input[type=checkbox] { width: auto; min-height: 0; }

/* ---------- the two islands, side by side ---------- */

/* ★★★ web4 r05 — 584 MEASURED PIXELS OF FORM, THEN EVERYTHING ELSE TO THE LIST.
   The client's list is x=218…1187 and its form is x=1193…1777. It is the FORM
   that gets the fixed track and the LIST that takes the slack, which is the
   mirror of what web4 r04 does on Users — and it is the right way round for this
   screen for a reason that is in the markup: the form's own field grid is a
   fixed 150 of label beside 310 of box (:5457–:5460), so 584 is the width at
   which it stops needing to reflow, while the list is a GRID whose eight columns
   will spend every pixel they are given. A share would shrink the list again on
   the narrower window a browser usually has, which is the failure this round
   exists to fix.
   ⚠️ AND THE TWO NUMBERS MEET. web4 r01's page column is `78vw`, so on the
   client's own 2000px window this page is 1560 wide: 584 to the form leaves 970
   to the list, which is the screenshot's 970 to the pixel. The measured length
   and the measured ratio are the same fact seen twice.
   ⚠️ `minmax(0, 584px)` AND NOT A BARE 584px, so the track can still give ground
   rather than overflow the page column on a window nobody anticipated.
   ⚠️ AND BELOW 1200px THE MEASURED LENGTH STOPS BEING THE RIGHT ANSWER. That is
   where r01's page column leaves percentages behind and becomes the whole
   viewport less a gutter; 584 fixed pixels out of it would leave the list with
   less room than the form, which the client never does. So underneath it the
   measured 970:584 comes back as a RATIO, which is what a ratio is for.
   Below 900px it stacks — which is web3 r08's own argument ("two columns two
   words wide on a phone in a van"), kept, at the width where it is true.
   ⚠️ THE GAP IS 6, the measured seam between the two islands (1187 to 1193).
   ★★★ AND `align-items` IS ABSENT, WHICH MEANS STRETCH. Both of the client's
   islands run the full height of the page; `start` would leave the form card
   ending wherever its last field happened to end, floating in white space beside
   a much taller list. */
.abwrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 584px);
  gap: 0 6px;
}
.abwrap > .card { margin-bottom: 18px; }
@media (max-width: 1199px) {
  .abwrap { grid-template-columns: minmax(0, 970fr) minmax(0, 584fr); }
}
@media (max-width: 899px) {
  .abwrap { grid-template-columns: 1fr; }
}

/* ★★★ web4 r05 — AND THE ISLANDS THEMSELVES HAVE TO BE COLUMNS FOR STRETCH TO
   MEAN ANYTHING. A stretched grid item is a tall BOX; without this its body
   still stops at its content and the painted header band would sit on top of a
   tall empty card. The body takes the slack. */
.abwrap > .card.island { display: flex; flex-direction: column; }
.abwrap > .card.island > .islandbody { flex: 1 1 auto; }

/* ---------- island 1, row 0: the header band and the count pill ---------- */

/* :5071 is a Border in CardHeaderBrush with the island's name and a pill floated
   Right, both centred on the band. `.card.island > .islandhead` in the shared kit
   already paints the band; this adds the second child.
   ★★★ web4 r05 — THE TITLE IS CENTRED, WHICH IS THE CLIENT'S OWN ALIGNMENT ON
   THIS SCREEN. Measured, not guessed: "Addresses", "Create/Edit Addresses",
   "People", "Create/Edit Users" and "Settings" are all centred on their bands,
   while Enter New Shipment's headers are left-aligned with their numeral disc.
   Both facts came off the same pair of screenshots, and this screen had both of
   its headings packed left. The rule is web4 r04's, to the declaration. */
.ablist > .islandhead,
.abform > .islandhead {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative;
}
.ablist > .islandhead > h2,
.abform > .islandhead > h2 { flex: 0 1 auto; min-width: 0; text-align: center; }

/* :5075 — SurfaceAltBrush fill, a BorderSubtle hairline, CornerRadius 12,
   Padding 10,2, and FontSizeCaption(11) in TextSecondary. ⚠️ It deliberately
   does NOT inherit the brand-filled `.pill`: on the desktop this pill is a quiet
   count sitting ON the brand band, not a status badge, and the Search screen's
   own count pill (which is the same control) already reads that way.
   ⚠️ web4 r05 TAKES IT OUT OF THE FLOW and parks it against the band's right
   padding edge, for the reason web4 r04 gives on Users: a pill that is still a
   flex item pushes the title off centre by half its own width, and a title that
   is nearly centred is worse than one that is honestly packed left. The client's
   own Addresses band carries its count in exactly this place. */
.ablist > .islandhead .pill {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
  color: var(--text-2); background: var(--surface-alt);
  border: 1px solid var(--line);
}

/* ---------- island 1, row 1: the toolbar ---------- */

/* :5087 is ONE Grid row of Auto columns with a single star column before the
   search box, left-packed. `flex-wrap` is the browser's honest concession: at
   the desktop's 828 units the row never wraps and on a phone it has to. */
.abtoolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; margin-bottom: 6px;
}

/* Every control in this row is Height 28 on the desktop (:5102 … :5140), which
   is `--control-h-compact`, and each button has its own MinWidth: Add 60
   (:5102), Import and Export 72 (:5115, :5121), Clean up 84 (:5127), Columns 90
   (:5130). They are set in `em` rather than raw pixels for the reason the Search
   toolbar sets its widths that way — a shipper who has turned their base font up
   still gets a button their word fits inside, and the FR and ES captions are
   longer than the EN ones. */
.abtoolbar .btnlink {
  min-height: var(--control-h-compact); padding: 4px 12px;
  font-size: 13px; justify-content: center;
}
.abtoolbar .abadd     { min-width: 4em; }
.abtoolbar .abimport,
.abtoolbar .abexport  { min-width: 5em; }
.abtoolbar .abcleanup { min-width: 6em; }
.abtoolbar .abcolumns { min-width: 6.5em; }

/* `<Border Width="1" Background="{DynamicResource BorderSubtleBrush}"
    Margin="10,2,10,2"/>` — :5108, to the pixel, and the same hairline the Search
   criteria band uses. */
.abtoolbar .vdiv {
  width: 1px; align-self: stretch; min-height: var(--control-h-compact);
  margin: 2px 10px; background: var(--line);
}

/* `<ColumnDefinition Width="*"/>`, :5100 — the one spring in the row. */
.abtoolbar .abspring { flex: 1 1 0; min-width: 0; }

/* :5137–:5140 — the search box has no fixed width; it fills the star column so
   it always ends INSIDE the island, and it is 28 tall like everything beside it.
   The desktop paints its caption as a placeholder INSIDE the box (:5144); here
   the caption is a real label, because a placeholder that vanishes when you type
   is not a label — so it is given the same quiet treatment the Search toolbar's
   filter caption has. */
.abtoolbar .filterbox { flex: 1 1 12em; min-width: 10em; }
.abtoolbar .filterbox input {
  flex: 1 1 auto; width: auto;
  min-height: var(--control-h-compact); padding: 3px 8px;
}
.abtoolbar .lbl { flex: 0 0 auto; font-size: 12px; color: var(--text-2); }

/* ---------- island 1, row 2: the group chips ---------- */

/* :5169 — the chips and the honest "you have no groups" sentence (:5185) are
   siblings in ONE horizontal panel, both centred.
   ★★★ web4 r05 — AND THE GROUP CONTROLS ARE THE THIRD SIBLING, ON THE RIGHT.
   The client's row 2 is one line: chips, sentence, then a Manage groups button
   right-aligned at the island's edge. `.abspring` is the same one-spring idiom
   row 1 uses before its search box (:5100), so the group box and its two buttons
   end where the client's button ends.
   ⚠️ `flex-wrap: wrap` STAYS. It is the browser's honest concession, exactly as
   it is on the toolbar above: at the client's 970 units this line never wraps,
   and on a phone it has to. */
.abchiprow {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 6px; margin-bottom: 6px;
}
.abchiprow .smallprint { margin: 0; color: var(--text-muted); font-size: 11px; }
/* `<ColumnDefinition Width="*"/>` again — the one spring in this row. */
.abchiprow .abspring { flex: 1 1 0; min-width: 0; }

/* The chips themselves — `AddressBookGroupChipStyle`, :5002–:5033, ported number
   for number: Height 26, MinWidth 44, Padding 10,0, Margin 0,0,6,4 (which is the
   4-by-6 gap above), CornerRadius 13, SurfaceAlt fill, TextPrimary text and a
   BorderSubtle hairline. They are real `button type=button` elements: reachable
   by Tab, fired by Enter or Space, and announced with aria-pressed. ⚠️ The row
   is `hidden` in the markup and revealed by addresses.js, because a chip does
   nothing without it. */
.chips { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; }
.chips .chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 26px; min-width: 44px; padding: 0 10px;
  font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: 13px;
}
/* :5024 — the desktop's chip takes an ACCENT outline under the pointer, which is
   the one place besides a focus ring that the accent is used at all. */
.chips .chip:hover { border-color: var(--accent); }
/* :5027 — the active chip flips to the brand pill so the current filter reads at
   a glance in both themes. ⚠️ It is not colour alone: aria-pressed carries the
   same fact to a screen reader, and the chip's own text names the group. */
.chips .chip[aria-pressed="true"] {
  color: var(--on-brand); background: var(--brand); border-color: var(--brand);
}

/* ---------- island 1, row 3: the ticked-rows action bar, now on row 2 ------- */

/* :5203 — a SurfaceAlt panel with a BorderSubtle hairline, CornerRadius 6 and
   Padding 8,4. Its buttons are Height 26 with MinWidth 110 for Add to group
   (:5215) and 130 for Remove from group (:5218); 26 clears the 24 floor, so the
   desktop's number is used unchanged.
   ★★★ web4 r05 — IT IS A FLEX ITEM ON THE CHIP ROW NOW, not a band of its own.
   `margin-bottom` goes, because it no longer has a line to itself; the panel,
   the hairline, the radius and every control height are unchanged, so the bar
   still reads as the client's inset panel and every target still clears 24. It
   is still ABOVE the grid it acts on — one line higher than it was, not one
   lower — and still inside the same form as the tick boxes. */
.groupbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; margin: 0; padding: 4px 8px;
  background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: 6px;
}
/* :5213 — the bar opens with a TextSecondary caption and 10 units of air. */
.groupbar .lbl { margin-right: 4px; font-size: 13px; color: var(--text-2); }
/* ⚠️ web4 r05 — 16em of box was a bar that owned a whole line. Sharing one with
   the chips, it is 10 and may shrink to 7; a group name is a word or two, and
   the client's own new-name box in the Add-to-group popup (:5244) is 160 units,
   which is what 10em is at this type size. */
.groupbar input[type=text] {
  width: 10em; min-width: 7em; min-height: 26px; padding: 3px 8px;
}
.groupbar button {
  min-height: 26px; min-width: 7em; padding: 3px 12px; font-size: 13px;
}
.groupbar button + button { min-width: 8em; }

/* ---------- island 1, row 4: the grid ---------- */

/* ⚠️ SCOPED TO `.ablist`, DELIBERATELY, and NOT to the table's id — see the
   banner: this screen's ids start with three hex letters and would fail this
   section's own colour grep. `table.grid` is shared with Search, Track and
   Users, so an unscoped change here lands on three screens that were not read.

   The desktop's row is MinHeight 26 with Padding 4,2 (:4907–:4908). The shared
   kit's 6-pixel cell padding makes a taller row than that, so the vertical half
   is trimmed and the height asked for explicitly; the horizontal 10 stays,
   because the desktop's 4 was measured against a 1-unit grid line and this one
   has a full hairline.
   ⚠️ web4 r05 TAKES THE ROW FROM 26 TO 34, and the screenshot is why. `MinHeight`
   is a floor, not a height: the client's rows MEASURE ~34 on screen because the
   cell's own padding sits inside a taller line box than the XAML's bare minimum.
   26 was the XAML read correctly and the screen read not at all, and beside the
   client the browser's grid looked cramped where the client's looks even. ⛔ The
   zebra is unchanged and is the shared kit's — `table.grid tbody tr:nth-child(even)`
   is the client's own `AlternationCount="2"` and needed no rule here. */
.ablist table.grid td { padding: 3px 10px; }
.ablist table.grid tbody td { height: 34px; }

/* ★★★ web4 r11 — THE TWO WIDEST DATA COLUMNS ARE CAPPED, SO POSTAL AND COUNTRY
   COME BACK INTO VIEW. Cowork's screenshot: *"the grid clips on the right —
   Country shows as `Co…`"* — and the two columns doing the eating were the
   combined Address cell (`120 street, Surrey, British Columbia` is fifty
   characters on a wide row) and Company, both of which the browser's automatic
   table layout hands as much room as their longest row asks for.
   ⛔ THE CAP IS ON A BLOCK SPAN INSIDE THE CELL AND NOT ON THE CELL, AND THAT IS
   NOT A STYLE PREFERENCE. `max-width` on a `<td>` is undefined in automatic table
   layout and browsers ignore it; a block-level child inside the cell is a normal
   box that honours it, and capping the child is what stops the COLUMN growing,
   because the column can be no wider than its widest cell's content wants to be.
   `table.grid` already sets `white-space: nowrap`, which is what makes the
   ellipsis appear rather than the text wrapping to a second line.
   ⚠️⚠️ AND IT DOES NOT ABOLISH THE SCROLLER AT 1512px, WHICH IS SAID OUT LOUD
   RATHER THAN QUIETLY MISSED. Add it up: this island is the page column less the
   6px seam and the form's 584 (553 at Gord's window), less its own 32 of padding
   — 521px. Ten columns live in it: the tick box, Company, Address, Postal,
   Country, Contact, Phone, Email, Groups and the two row chips. Capped as hard as
   they can be capped without clipping the values inside them they still want
   about 1200. So `.gridwrap`'s horizontal scroller STAYS — deleting it would not
   make the columns fit, it would cut them off, which is the defect and not the
   cure. What the caps buy is real and measurable: Postal and Country move from
   about 900px along the row to about 480, so they are on screen at the window the
   client is used at and one short nudge away at 1512.
   🔒 THE REAL FIX IS A RULING GORD OWES: the client's own Addresses grid gets 970
   of 2000 and this one gets 553 of 1512, because this screen keeps the create/edit
   form open BESIDE the list at all times where the client opens it as a dialogue.
   A round that puts the form behind a disclosure gives the list the whole 1143
   and every column fits with room over. That is behaviour, and this round is
   frozen. */
.ablist table.grid td.c-oneline > span,
.ablist table.grid td.c-description > span {
  display: block; overflow: hidden; text-overflow: ellipsis;
}
.ablist table.grid td.c-oneline > span     { max-width: 260px; }
.ablist table.grid td.c-description > span { max-width: 160px; }

/* ⛔ AND THE COMBINED `Address` COLUMN IS GIVEN NO WIDTH OF ITS OWN, WHICH IS A
   DECISION AND NOT AN OMISSION. The client's grid makes Address its widest data
   column (:5291); a browser table on the default `auto` layout already spends
   its width on the column with the longest content, so it lands there by itself.
   ⚠️ THE RULE THAT WAS ALMOST WRITTEN HERE WAS AN `nth-child(3)`, AND IT WOULD
   HAVE BEEN WRONG — the tick column only exists for somebody who may write, so
   the same ordinal is Address for an administrator and Postal for a read-only
   shipper. A rule that paints a different column depending on who is looking is
   the kind of thing that survives review and fails in the field. */

/* :5336–:5347 — the actions column is two 24-by-24 chips (`AddressBookRowChip`,
   :4973–:4997): SurfaceAlt fill, BorderSubtle hairline, CornerRadius 4, and an
   ACCENT outline under the pointer (:4993).
   ⚠️ THE DESKTOP'S CHIPS CARRY A GLYPH AND THIS EDITION'S CARRY THE WORD, and
   that is on purpose. A pencil and a cross are a desktop convention that a
   browser row does not have to borrow, the words are the desktop's own captions
   for the same two acts, and a link whose accessible name is its visible text
   needs no second name to keep them in step. So: the desktop's chip, wearing its
   word. 24 is the WCAG target floor exactly, which is why the padding grows the
   chip sideways and never shrinks it downwards. */
.ablist table.grid td.rowacts a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--target-min); padding: 0 8px; margin-right: 4px;
  text-decoration: none;
  color: var(--text); background: var(--surface-alt);
  border: 1px solid var(--line); border-radius: var(--radius-input);
}
.ablist table.grid td.rowacts a:hover { border-color: var(--accent); }

/* ★★★ web7 r03 — THE SELECTED ROW, AND IT HAS TO BE VISIBLE.
   🔒 "Selection must be visible." The PC's `lvAddressBook` paints its selected
   row with the accent; here a tinted background plus an accent bar down the
   leading edge, because a background tint alone is the one cue a person with a
   colour-vision difference may not get. ⛔ `box-shadow: inset` for the bar
   rather than a border, so the row does not grow by a pixel when it is picked
   and the grid does not shift under the pointer.
   ⚠️ `:focus-visible` is given the SAME treatment, because the rows are
   `tabIndex = 0` now and a keyboard user must see where they are. */
.ablist table.grid tbody tr[data-edit] { cursor: pointer; }
.ablist table.grid tbody tr.picked > td {
  background: var(--surface-alt);
}
.ablist table.grid tbody tr.picked > td:first-child {
  box-shadow: inset 3px 0 0 0 var(--accent);
}
.ablist table.grid tbody tr:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}

/* ★ THE FOUR PANELS — Manage groups, Columns, Import and Clean up.
   `borderAddressBookGroupsManage` is `Opacity 0.98` over a `SurfaceCard` fill
   with an `18px` margin and a `MaxWidth 620` inner grid; the other three are
   modal dialogues on the PC and share that card's metrics. Here they are
   ordinary sections in the page flow — a browser has no need of the PC's
   overlay trick, which exists there only so no Popup can float above a modal
   confirm. ⛔ Manage groups is drawn INSIDE `.ablist`, which is what the PC
   does; the other three are page-level, which is where every other question on
   this site is asked. */
.subpanel {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--surface-alt); padding: 18px; margin-bottom: 18px;
}
.ablist .subpanel { margin: 0 0 10px; padding: 12px; }
.subpanel > .panelhead {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.subpanel > .panelhead > h2,
.subpanel > .panelhead > h3 { margin: 0; flex: 1 1 auto; font-size: 15px; }
.subpanel .closechip {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--target-min); min-height: var(--target-min);
  text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-input);
}
.subpanel .closechip:hover { border-color: var(--accent); }
.subpanel table.grid { width: 100%; }
.subpanel table.grid td { padding: 4px 8px; vertical-align: top; }
/* rw2 r08b W1 — ADDRESS BOOK → IMPORT, STEP 3: THE REVIEW TABLE WRAPS.
   Gord's 2026-10-25 smoke: the Actions notes ("Already in your book as … —
   ticking this will update that entry. Street … looks like a whole address …")
   ran past the right edge of the import box and off the window, because
   `table.grid` sets `white-space: nowrap` for every grid on the site. This
   table is prose, not a list of short values, so its Actions cell wraps, and a
   long run with no spaces (a pasted URL, a street with no gaps) may break
   anywhere rather than push the table wide. The min-width keeps the column
   from being squeezed to one word a line. The Description and Address cells
   may wrap too, so a long address cannot push the table out of the card
   either. Scoped to `.importreview`: no other grid changes. */
table.grid.importreview td.c-notes {
  white-space: normal; overflow-wrap: anywhere; min-width: 18em;
}
table.grid.importreview td.c-description,
table.grid.importreview td.c-oneline {
  white-space: normal; overflow-wrap: anywhere;
}
.subpanel textarea { width: 100%; max-width: 100%; }
.subpanel .collist { list-style: none; margin: 0 0 8px; padding: 0; }
.subpanel .collist li { padding: 2px 0; }

/* ---------- island 2: the create/edit form ---------- */

/* :5461 — `textAddressBookFormMode`, the line that says "New address" or
   "Editing 'X'". FontSizeCaption(11) in TextMuted, on its own row above every
   field. ⛔ It is NOT the island's heading: the heading names the island and
   this names the state, and the desktop keeps them apart for the same reason. */
.abform .formmode { margin: 0 0 12px; font-size: 11px; color: var(--text-muted); }

/* THE FIELD GRID. :5457–:5460 is two columns — a fixed 150 of label and 310 of
   box — with one field per row, ten rows of 30 (:5444–:5454). The old browser
   card was two fields SIDE BY SIDE with the label above each box, which is a web
   form and not this screen. Each `.field` is now one row of that grid.
   ⚠️ The boxes keep the site's 32-tall control height rather than the desktop's
   23: 23 is under the 24 floor, and the floor wins over the number. */

/* ⚠️⚠️ web4 r11 — THE BOX TRACK IS `1fr` NOW, NOT A 310px CEILING. Cowork's
   screenshot: the form's boxes stop about 130px short of the island's right edge
   and the card reads as a narrow form floating in a wide card. 310 is the XAML's
   declared unit width, and this island is 584 measured pixels less its own 32 of
   padding — 552 — so 150 + 310 left 92 of dead white against the edge before the
   grid's own gap. ⛔ Users is the screen that had this right already
   (`.userform .field`, `240px minmax(0, 1fr)`), and this is now the same
   declaration with this card's own caption column: one shape, two screens, and
   they cannot drift. The 150px CAPTION column is unchanged and is still the
   desktop's own :5457. */
.addrform .field {
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  align-items: center; row-gap: 4px;
  margin: 0 0 4px;
}
/* The desktop's `<Label>` is plain weight, TextPrimary, left-aligned and centred
   on its row (:5463 and its nine siblings) — not the bold block-label the base
   kit gives a stacked field. */
.addrform .field > .lbl {
  grid-column: 1; display: block; margin: 0; padding-right: 10px;
  font-weight: 400; color: var(--text);
}
.addrform .field > input,
.addrform .field > select,
.addrform .field > .fielderr { grid-column: 2; }
/* ⛔ web4 r05 — THE TWO `.smallprint` RULES THAT USED TO BE HERE WENT WITH THE
   MARKUP THEY POSITIONED. This card had exactly one of them, the help line under
   Prov/State, and it is a `title` on that control now — "the PC screens have no
   paragraphs under fields". A rule left behind for an element that is no longer
   emitted is how deleted prose comes back, so it is deleted rather than orphaned.
   Same treatment web4 r04 gave the Users editor's five. */

/* ★ web4 r05 — THE REQUIRED FIELDS WEAR A STRONGER OUTLINE, which is what the
   client draws on Company, Street and City: a heavier brand-coloured edge on the
   box rather than the ordinary hairline.
   ⛔ AND NO ASTERISK WAS ADDED. The preamble's measurement of the client's forms
   describes an orange asterisk after the caption; on THIS card the client's own
   captions already read "Company (Required)", "Street (Required)" and "City
   (Required)" (:5463, :5465, :5474), which are the desktop's verbatim strings and
   are already what these labels say. An asterisk beside them would say the same
   thing twice and would be a word this site invented.
   ⚠️ It is scoped to `:required`, so it follows the `required` attribute the
   markup already sets — one description of what "required" means, not two.
   ⛔⛔ AND `:not(.clamped)` IS LOAD-BEARING, NOT TIDINESS. `.field input.clamped`
   a few hundred lines up is what paints a box the shipper got WRONG, and it is
   the LESS specific of the two selectors and the EARLIER in the file — so
   without this exclusion the calm brand outline would win over the warning one
   and a field the server just rejected would look exactly like a field that is
   merely required. A styling rule that hides an error is a correctness bug.
   ★★★ web4 r11 — AND IT IS AN INSET SHADOW RATHER THAN A 2px BORDER, for the
   reason the ship form's copy of this rule now gives at length: `border-box`
   sizing absorbs a border only while the box has slack, and 15 of line box + 12
   of padding + 4 of border is 34 against a 32px floor — so every REQUIRED box on
   this card stood two pixels taller than the optional one under it. Gord,
   2026-09-08: *"Not all the fields are the same size."* An inset shadow paints
   the identical two visible pixels of brand edge and occupies no layout at all,
   so `height` and `min-height` now compute the same for both. ⛔ Not `outline`,
   which is drawn outside the border box and would collide with the focus ring. */
.addrform .field > input:required:not(.clamped) {
  border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand);
}

/* :5493 — the button row is a 310-wide frame in the FIELD column with the pair
   right-aligned inside it, so it shares the boxes' right edge and tracks it.
   Add / Update is Width 110 and Clear is 75, both Height 28, 10 apart (:5495). */
.addrform .actions {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 10px; max-width: 310px; margin: 12px 0 0 150px;
}
.addrform .actions button,
.addrform .actions .btnlink {
  min-height: var(--control-h-compact); padding: 4px 12px; justify-content: center;
}
.addrform .actions button   { min-width: 110px; }
.addrform .actions .btnlink { min-width: 75px; }

/* ---------- island 2: narrow ---------- */
/* A 150-pixel label column beside a 310-pixel box is a desktop shape. Below the
   card's own width the rows become label-over-field and the button pair loses
   its indent — the same islands in the same order, still one column.
   ⚠️ web4 r05 KEPT THE BREAKPOINT AT 700 AND CHECKED THE ARITHMETIC RATHER THAN
   ASSUMING IT. Between 900 and 1199 the wrapper is still two columns at the
   measured ratio, so the form island is about 438 wide and its body about 410 —
   less than 150 + 310. It does not overflow, because the BOX track was never a
   bare 310: it gives ground and the row still fits. The label column is what must
   not shrink, and it does not. Below 900 the wrapper stacks and the island is
   full width again, so 700 is still the width at which a two-column FIELD stops
   being readable.
   ⚠️ web4 r11b CORRECTED THIS PARAGRAPH, WHICH r11 LEFT DESCRIBING A CEILING IT
   HAD JUST DELETED. r11 changed the box track from `minmax(0, 310px)` to
   `minmax(0, 1fr)` — the 310 was the XAML's declared unit width taken literally
   and it left ~92px of dead white against the island's right edge — and did not
   come back here. The conclusion is unchanged and now stronger: `1fr` gives
   ground all the way to zero, so this row cannot overflow at any width, and 700
   is still a READABILITY breakpoint rather than an overflow one. ⛔ A comment
   that describes a deleted declaration is how a later round re-adds it. */
@media (max-width: 700px) {
  .addrform .field { grid-template-columns: 1fr; }
  .addrform .field > .lbl { padding-right: 0; }
  .addrform .field > input,
  .addrform .field > select,
  .addrform .field > .fielderr { grid-column: 1; }
  .addrform .actions { margin-left: 0; max-width: none; }
}

/* ---------- the delete confirmation, shaped like the dialog it replaces ------ */

/* The desktop asks with `IdsDialog.Show(message, AddressBookDeleteTitle, YesNo,
   Question)` (MainWindow.xaml.cs:8233), which draws through ThemedDialogWindow:
   MaxWidth 480 (:7), body inset 20,18,20,14 (:23), a 32-by-32 status glyph in its
   own left column with 14 of air (:32), the wrapping message beside it (:33), and
   the buttons in ONE right-aligned row with 18 above them (:34) and 8 between
   them (:40), each MinWidth 88 (:38). Every one of those numbers is below.
   ⚠️ The BUTTON WORDS are not the dialog's — see the block above this island in
   addresses.php. The order, the alignment and the metrics are. */
.card.abconfirm {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 0 14px; max-width: 480px; padding: 18px 20px 14px;
}
.card.abconfirm > :not(.glyph) { grid-column: 2; }

/* MessageBoxImage.Question. Drawn rather than downloaded — no image file and no
   icon font — and outlined rather than filled, so the one token it uses reads at
   full contrast in BOTH themes without a second colour for the glyph itself.
   It is aria-hidden in the markup: every word it stands for is in the sentence
   beside it, so it is decoration and is announced as nothing. */
.card.abconfirm .glyph {
  /* ⚠️ Row 1 EXPLICITLY, not a span to the last line. This grid has no declared
     rows, so a negative end line has no explicit track to count back from and
     resolves differently between engines; the dialog puts the glyph beside the
     FIRST line of the message anyway (:32 is Grid.Row 0), which is what this is. */
  grid-column: 1; grid-row: 1; align-self: start;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; font-weight: 700; line-height: 1;
  color: var(--info); border: 2px solid var(--info);
}
.card.abconfirm h2 { margin: 0 0 8px; }
.card.abconfirm p { margin: 0 0 8px; }
/* The desktop's message indents the address under the sentence with a tab
   (MainWindow.xaml.cs:8228). This is that tab. */
.card.abconfirm .dfield { margin: 0 0 10px 20px; }
.card.abconfirm .dfield dt { color: var(--text-2); font-size: 12px; }
.card.abconfirm .dfield dd { margin: 0 0 6px; }
.card.abconfirm form {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: 8px; margin-top: 18px;
}
.card.abconfirm form button,
.card.abconfirm form .btnlink { min-width: 88px; justify-content: center; }

/* rw1 r05 — THE ADDRESS BOOK'S THREE QUESTIONS ARE POP-UPS NOW, as the PC's
   are. Each card is a `<dialog open>`: with no script it sits in the page where
   the card always sat (static, the card's own paint, not the browser's default
   dialog box); addresses.js re-opens it modal, and then it is fixed and centred
   over a dimmed page — the address-confirm dialogue's approach (`.addrconfirm`
   and its backdrop, below). ⚠️ The card's `display: grid` would otherwise beat
   the browser's own "a closed dialog is not drawn" rule, hence the first line. */
dialog.card.abconfirm:not([open]) { display: none; }
dialog.card.abconfirm {
  position: static; margin: 0 0 12px;
  color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
dialog.card.abconfirm:modal {
  position: fixed; margin: auto;
  width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  box-shadow: var(--shadow);
}
.card.abconfirm .abconfirmlist { margin: 0 0 8px; padding-left: 20px; }

/* ==========================================================================
   web4 r04 — USERS AND ACCESS, LAID OUT LIKE THE PC CLIENT

   (This section was headed "web3 r09 — USERS AND ACCESS, LAID OUT LIKE THE PC
   CLIENT" — and before that "web1 r07 — THE USERS AND ACCESS SCREEN" — and is
   the same block of the sheet, rebuilt against SCREENSHOTS of the two products
   rather than moved.
   ⚠️ THE r08 SECTION'S END NEEDLE POINTS AT THIS BANNER and has been re-pointed
   again in run-tests.php, along with this section's own start needle — the same
   trap r06, r07, r08 and r09 each sprang and repaired in turn. If you rename
   this banner, go and re-point both, or r08's extract silently becomes the whole
   rest of the file.)

   ★★★ WHAT web4 r04 CHANGED, AND WHY IT IS NOT A MATTER OF TASTE. web3 r09 read
   the XAML and got the WORDS and the ORDER right; it never saw the two screens
   side by side, so it got the SHAPE wrong in four ways that Cowork's screenshots
   of 2026-09-08 measure:
     · the client's People island is 610 CSS pixels wide (x=63…673) and all five
       of its columns are visible at once. Ours was a third of a 1100px page —
       about 320 — with a horizontal scrollbar hiding Role and Status, which are
       the two columns an administrator actually scans.
     · the client's Create/Edit Users island is ALWAYS THERE (x=683…1830), blank,
       with Authorization on User. Ours drew nothing at all until you clicked a
       person, so the tab opened as a narrow list against an empty page.
     · both of the client's islands run the FULL PAGE HEIGHT, and its button row
       sits on the FLOOR of the People island, not tucked under the last row.
     · both island headers are CENTRED on this screen (as they are on the Address
       Book and on Settings; the Enter New Shipment headers are left-aligned with
       their numeral disc). Both facts came off the same screenshots.
   ⛔ NOT ONE BEHAVIOUR MOVED. Every rule below is layout; users.php's handler,
   its gate, its CSRF check and its write brake are untouched.

   Source read in full: MainWindow.xaml :4723–:4892 — the whole tabItemUsers
   TabItem — plus PermissionService.cs :16–:30 and :266–:284 for the twelve
   capabilities' declaration order and their display keys, CoSendViewModels.cs
   :255–:306 for `CapabilityOverrideVm.IsLocked` and its two lock reasons,
   Design/Colours.xaml :155–:156 with Colours.Dark.xaml :83–:84 for the Access
   band's pair, and Design/Styles.xaml for the radii and the focus ring.

   Gord, looking at the live site: "I really would like the screens in the
   browser version to look exactly like whats in the PC Client version… Then
   when someone jumps from one to the other, they dont get confused."

   THE DESKTOP IS TWO ISLANDS SIDE BY SIDE IN ONE GRID (:4728–:4731) — 461 units
   of People in column 0 and 877 of Create/Edit Users in column 1 — so its
   reading order is LIST, THEN EDITOR, and the split is 34/66 rather than the
   40/60 this sheet used to guess before web3 r09.
   ⚠️ AND THE SCREENSHOT AGREES WITH THE XAML, WHICH IS WHY BOTH NUMBERS APPEAR
   BELOW. Measured on the client: People 610px against 1147px of editor, which is
   35/65. So the 610 is the SAME COLUMN as the 461 units, at the scale the client
   is actually used at, and the two are one fact and not two. The rule below
   spends the measured pixels where there is room for them and falls back to the
   XAML's ratio where there is not.

   ISLAND 1  People  :4736, four rows top to bottom (:4737–:4742):
       row 0  :4743  the card header, island name at the left (the count pill at
                     the right is the browser's own, given r08's quiet treatment)
       row 1  :4746  the live search box, Height 28
       row 2  :4760  the list: ID 78, Name 128, Email 128, Role 52, Status 58
                     (:4764–:4778) — five columns, and this list had four
       row 3  :4783  the action strip: + Add user 96 wide, Edit 75, Delete 75,
                     all Height 28

   ISLAND 2  Create/Edit Users  :4790, five rows top to bottom (:4791–:4797):
       row 0  :4798  the card header
       row 1  :4799  the field grid — 240 of label in column 0 (:4813), the
                     control in column 1, ten rows in the order the XAML names
                     them (:4801–:4810): role, login id, first, last, password,
                     confirmation, phone, email, cell, enabled
       row 2  :4845  the Access band (a 30-tall bold SecondaryTitleBar strip)
                     and its wrapping note in TextSecondary (:4847)
       row 3  :4849  the twelve override rows: capability 232 (:4855), the
                     Inherit/Allow/Deny group, the override pill (:4876), and
                     the effective answer right-aligned in TextSecondary (:4879)
       row 4  :4885  Add / Update 110 wide then Clear 75, 10 apart, both 28 tall,
                     LEFT-packed at the card's own edge — which is the one thing
                     this island does differently from the Address Book's

   WHAT THE DESKTOP HAS AND THIS SCREEN DOES NOT, AND HOW IT IS TREATED:
     · The live search box (:4746) is genuinely absent. It keeps its SPACE, its
       box shape and the desktop's own watermark, greyed, over the site's
       existing not-built sentence — because a filter is a script and this is
       the one screen that runs under `script-src 'none'` on purpose. The rule
       for it is `.peoplesearch .searchslot` below and it borrows every value
       from `.btnlink.disabled`, so the site's greyed doors all read alike.
     · Edit (:4785) and Delete (:4786) are NOT greyed. Both are BUILT here, as
       the two links in every row's actions cell. r05's ruling, applied again:
       a greyed not-built copy of a feature that IS built is a lie, and honesty
       outranks shape. The desktop needs a toolbar pair because its ListView has
       a selection; this list has a row per person and needs none.

   ⛔ EVERY COLOUR BELOW IS A `var(--…)`. Not one hex literal appears in this
   section, in a rule or in prose; the suite greps between this banner and the
   next and expects 0. Dark mode therefore needs no rule of its own — the token
   block at the top of the file already swapped it. ⚠️ That includes the Access
   band: the desktop paints it `SecondaryTitleBarBrush` on `…TextBrush`, and
   Colours.xaml makes that pair identical to `--surface-alt` on `--brand-text`
   in BOTH themes, so it is spelled with the names it already has rather than
   given two tokens of its own.
   ⛔ AND NOT ONE SELECTOR BELOW IS AN ID, for the reason r08 gives: a hash
   followed by hex letters is exactly what that grep hunts for, so this screen's
   ids stay in the markup and the rules are scoped to the island classes.
   ⛔ Every size below is the DESKTOP's own number. Nothing goes under the
   24-pixel target floor — see the radio rule, which RAISES the desktop's bare
   13-pixel browser default rather than lowering the desktop's 28.
   ⛔ Never type a star next to a slash anywhere in this comment: it closes it.
   ══════════════════════════════════════════════════════════════════════════ */

/* ---------- the two islands, side by side ---------- */

/* ★★★ web4 r04 — 610 MEASURED PIXELS OF PEOPLE, THEN EVERYTHING ELSE.
   The client's list island is x=63…673 and its editor is x=683…1830. 610 is not
   a proportion, it is the width at which the five columns of the GridView stop
   needing a scrollbar, so it is spent as a length and not as a share: a share
   would shrink it again on the narrower window a browser usually has, which is
   exactly the failure this round exists to fix.
   ⚠️ `minmax(0, 610px)` AND NOT A BARE 610px, so the track can still give ground
   rather than overflow the page column on a window nobody anticipated.
   ⚠️ AND BELOW 1200px THE MEASURED LENGTH STOPS BEING THE RIGHT ANSWER. That is
   where r01's page column leaves percentages behind and becomes the whole
   viewport less a gutter; 610 fixed pixels out of it would leave the editor with
   less room than the list, which the client never does. So underneath it the
   XAML's own 461:877 comes back — the same split, expressed as a ratio, which is
   what a ratio is for.
   Below 900px it stacks, because a twelve-row permission grid in a third of the
   width is unreadable and a phone is where an administrator is most likely to be
   doing this in a hurry.
   ⚠️ THE GAP IS 10, the measured seam between the two islands (673 to 683); the
   XAML's `Margin 6,0,6,0` on the right-hand card (:4790) says twelve, and the
   screenshot is the tie-breaker this round.
   ★★★ AND `align-items` IS GONE, WHICH MEANS STRETCH. Both of the client's
   islands run the full height of the page. `start` left the People card ending
   wherever its last row happened to end, floating in white space beside a much
   taller editor — the single most visible difference between the two screens
   after the width. */
.peoplewrap {
  display: grid; grid-template-columns: minmax(0, 610px) minmax(0, 1fr);
  gap: 0 10px;
}
.peoplewrap > .card { margin-bottom: 18px; }
@media (max-width: 1199px) {
  .peoplewrap { grid-template-columns: minmax(0, 461fr) minmax(0, 877fr); }
}
@media (max-width: 900px) {
  .peoplewrap { grid-template-columns: 1fr; }
}

/* ★★★ web4 r04 — AND THE ISLANDS THEMSELVES HAVE TO BE COLUMNS FOR STRETCH TO
   MEAN ANYTHING. A stretched grid item is a tall BOX; without this its body
   still stops at its content and the header band would sit on top of a tall
   empty card. The body takes the slack, and inside the People body the action
   strip is pushed to the floor by `margin-top: auto` further down — which is
   where the client puts it and is the whole reason this pair of rules exists. */
.peoplewrap > .card.island { display: flex; flex-direction: column; }
.peoplewrap > .card.island > .islandbody { flex: 1 1 auto; }
.people > .islandbody { display: flex; flex-direction: column; }

/* ---------- island 1, row 0: the header band and the count pill ---------- */

/* :4743 and :4798 are both `CardHeaderLabel`, which is the same painted strip
   `.card.island > .islandhead` already draws for Search and the Address Book.
   Only the second child needs describing. */
/* ★★★ web4 r04 — CENTRED, WHICH IS THE CLIENT'S OWN ALIGNMENT ON THIS SCREEN.
   Measured, not guessed: "People", "Create/Edit Users", "Addresses",
   "Create/Edit Addresses" and "Settings" are all centred on their bands, while
   Enter New Shipment's headers are left-aligned with their numeral disc. Both
   facts came off the same pair of screenshots, and this screen had all of its
   headings packed left. */
.people > .islandhead,
.editor > .islandhead {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative;
}
.people > .islandhead > h2,
.editor > .islandhead > h2 { flex: 0 1 auto; min-width: 0; text-align: center; }

/* The count pill is the BROWSER's own — the desktop has no such control on this
   island — so it is styled the way the desktop styles a quiet count sitting ON a
   brand band, which is r08's `.ablist > .islandhead .pill` exactly. ⛔ Not the
   brand-filled `.pill`: this is a caption, not a status.
   ⚠️ web4 r04 TAKES IT OUT OF THE FLOW and parks it against the band's right
   padding edge. A pill that is still a flex item pushes the title off centre by
   half its own width, and a title that is nearly centred is worse than one that
   is honestly packed left. The client's Addresses band carries its count in
   exactly this place. */
.people > .islandhead .pill {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
  color: var(--text-2); background: var(--surface-alt);
  border: 1px solid var(--line);
}

/* ---------- island 1, row 1: the search box, as a greyed door ---------- */

/* :4746 is a Height 28 TextBox with a hit-test-transparent watermark over it
   (:4747). There is no browser twin, so the row keeps the box's SPACE and its
   28 of height and says so. ⚠️ EVERY VALUE HERE IS BORROWED: the fill, the
   dashed edge and the cursor come from `.btnlink.disabled` and the height,
   padding and radius from the site's own control rule, so the dead box reads as
   the same kind of door as the Address Book's dead buttons. */
.peoplesearch { margin: 0 0 8px; }
.peoplesearch .searchslot {
  display: block;
  min-height: var(--control-h-compact); padding: 5px 10px;
  font-size: 13px; color: var(--text-2);
  background: var(--surface-alt);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-input);
  cursor: default;
}

/* ---------- island 1, row 2: the list ---------- */

/* ★★★ web4 r04 — THE SCROLLBAR IS THE DEFECT, AND THESE ARE `width`, NOT
   `min-width`. Gord's screenshot shows the client's list with ID, Name, Email,
   Role and Status all visible at once; the browser's showed ID, Name and Email
   with a horizontal scrollbar hiding the two columns that say what a person may
   do and whether they can sign in at all. Role and Status behind a scrollbar on
   the screen that hands out access is not a cosmetic problem.
   ⚠️ web3 r09 made these FLOORS ("the wrapper already scrolls sideways"), which
   is precisely what guaranteed the scrollbar: five floors plus an actions column
   plus six lots of cell padding came to more than the island had, at any width.
   As `width` they are the same five desktop numbers (:4764–:4778) offered as
   HINTS — the browser honours them when the 610 is there, hands the slack to the
   actions column, and compresses them when it is not.
   ⚠️ AND THE CELLS MAY WRAP. `table.grid` is `white-space: nowrap`, which is
   right for a shipment number and wrong for a person's name: nowrap is the other
   half of what forced the scroll. An email has no space in it, so it never wraps
   mid-address; a two-word name takes a second line rather than a scrollbar.
   ⚠️ The padding drops from 6/10 to 5/8, which is the Address Book's own
   treatment of the same shared grid (`.ablist table.grid td`) and buys back the
   width six columns of padding costs. */
.people table.grid { white-space: normal; }
.people table.grid th,
.people table.grid td { padding: 5px 8px; }
.people table.grid th.colid     { width: 78px; }
.people table.grid th.colname   { width: 128px; }
.people table.grid th.colemail  { width: 128px; }
.people table.grid th.colrole   { width: 52px; }
.people table.grid th.colstatus { width: 58px; }

/* ⚠️ web4 r04 — A PICKED ROW IS TINTED AS WELL AS OUTLINED. The client tints the
   selected row of this list; the shared kit's outline reads as a focus ring more
   than as a selection, and on the even rows (which already carry SurfaceAlt) it
   was the only thing distinguishing the person being edited. `--row-picked` is
   the client's own InactiveSelectionColour and is already the tint the Search
   screen's grid uses for the same state. */
.people table.grid tbody tr.picked { background: var(--row-picked); }

/* ---------- island 1, row 3: the action strip ---------- */

/* :4783 is a horizontal StackPanel with 8 of air to its left and 4 above. The
   one live button is `+ Add user`, MinWidth 96 and Height 28 (:4784).
   ★★★ web4 r04 — `margin-top: auto` PUTS IT ON THE FLOOR OF THE ISLAND, which is
   where the client's button row is: bottom-left, under the full height of the
   list, not tucked against the last row of people. It works because the island
   is a stretched flex column and its body takes the slack — see the pair of
   rules under `.peoplewrap`. The 10 above it survives as the minimum gap for the
   case where the list is long enough to fill the card by itself. */
.peopleacts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 10px;
}
.peopleacts .btnlink {
  min-height: var(--control-h-compact); padding: 4px 12px;
  font-size: 13px; justify-content: center;
}
.peopleacts .usadd { min-width: 96px; }

/* ---------- island 2, row 1: the field grid ---------- */

/* :4798's header names the island; this line names the state. The desktop keeps
   them apart and so does the Address Book's `.abform .formmode`, which this is. */
.editor .formmode { margin: 0 0 12px; font-size: 11px; color: var(--text-muted); }

/* :4812–:4815 is two columns — a fixed 240 of label, then the control taking
   what is left — with one field per row. The card used to stack the label ABOVE
   each box, which is a web form and not this screen.
   ⚠️ web4 r04 CHECKED THIS AGAINST THE SCREENSHOT AND LEFT IT ALONE, WHICH IS
   worth writing down because the measurement and the XAML look like they
   disagree. The caption column measures about 300 pixels on a client window
   whose two islands measure 1566 pixels for 1338 declared units — a scale of
   about 1.17, which turns 240 units into roughly 281 and puts the two numbers on
   top of one another inside the error of reading a screenshot. They are one
   column, not two facts, so it stays spelled as the XAML's own 240: a hard 300
   would eat more than half of the editor at the width a browser actually has. */
.userform .field {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  align-items: center; row-gap: 4px;
  margin: 0 0 4px;
}
/* The desktop's `<Label>` is plain weight, TextPrimary, left-aligned and centred
   on its row (:4816 and its nine siblings) — not the bold block-label the base
   kit gives a stacked field. */
.userform .field > .lbl {
  grid-column: 1; display: block; margin: 0; padding-right: 8px;
  font-weight: 400; color: var(--text);
}
/* ⛔ web4 r04 — `.userform .field > .smallprint` IS GONE FROM BOTH OF THESE
   LISTS, DELETED WITH THE MARKUP RATHER THAN LEFT ORPHANED IN THE SHEET. The
   client puts no paragraph under any field on this card, so the five browser
   sentences that sat under Login ID, Password Confirmation, Is Enabled and the
   two self-edit rows are now `title` tooltips on their own captions. Not one of
   the five keys was reworded and none was deleted; only the element they were
   printed in. (web17 r08: the greyed password slot that took the column for a
   while is gone with its markup; the password pair's own wrappers hold it.) */
.userform .field > input,
.userform .field > select,
.userform .field > strong,
.userform .field > .fielderr,
.userform .field > .pwbox,
.userform .field > .pwaside { grid-column: 2; }

/* :4818 — the role combo is Width 182 and does NOT stretch, unlike every text
   box beside it. Two role names never need more. */
.userform .field > select { max-width: 182px; }

/* ★★ web17 r08 — THE PASSWORD PAIR, ON BOTH BRANCHES. The client draws a
   caption and a box on rows 4 and 5 whatever the editor is doing (:4831,
   :4833), and since web17 r08 so does this site. What stood here from web4
   r04: a greyed slot holding the row's space on an UPDATE, "because IDSWS has
   no reset operation at all" — gone with the markup it positioned, because
   the thing behind the door is built. Each box sits in a flex row with its
   show/hide button (the NIST SHOULD) so the two read as one control; the
   button takes the compact control height and never wraps its label, and a
   pressed one (password showing) wears the quiet SurfaceAlt ground so the
   state is visible as well as announced. Below the pair, in the control
   column, the generator and its sentences stack: the one-time note, the
   advice, and (update only) the warning that a new password signs the person
   out everywhere — the warning wears the site's warning colour because it is
   the one sentence here that names a consequence. ⛔ No colour literal here. */
.userform .pwbox { display: flex; align-items: center; gap: 6px; min-width: 0; }
.userform .pwbox > input { flex: 1 1 auto; min-width: 0; }
.userform .pwtoggle {
  flex: 0 0 auto; min-height: var(--control-h-compact); padding: 4px 10px;
  white-space: nowrap; font-size: 13px;
}
.userform .pwtoggle[aria-pressed="true"] { background: var(--surface-alt); }
.userform .pwaside {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px; margin: 0 0 4px;
}
.userform .pwaside .pwgen { min-height: var(--control-h-compact); padding: 4px 12px; }
.userform .pwaside .smallprint { margin: 0; }
.userform .pwwarn { color: var(--warn); }

/* :4842 — `cbUsersIsEnabled` is MinHeight 28 and left-packed in its column.
   ⚠️ The tick is sized UP to the target floor rather than left at the browser's
   bare default: it is the only control on this card with no box around it, so
   the control IS the target. */
.userform .field > input[type=checkbox] {
  width: var(--target-min); height: var(--target-min);
  min-height: var(--target-min); justify-self: start; margin: 0;
}

/* The editor's own error list — the desktop's "Errors:" dialog, rendered in
   the page. ⛔ It is `role="alert"` in the markup so a screen reader hears it
   when the page comes back, which is the part a modal used to do for free. */
.userform .problem, .editor .problem {
  color: var(--bad); background: var(--bad-tint);
  border-left: 3px solid var(--bad);
  padding: 8px 12px; border-radius: 0 3px 3px 0; margin: 0 0 16px;
}
.editor .problem p { margin: 0 0 4px; }
.editor .problem ul { margin: 0; padding-left: 20px; font-size: 13px; }

/* ---------- island 2, row 2: the Access band ---------- */

/* :4846 is a Label 30 tall, Bold, filled `SecondaryTitleBarBrush` with
   `SecondaryTitleBarTextBrush` on it, running the full width of the card — a
   band, not a caption. It stays a <legend> inside a <fieldset> because the
   twelve rows below really are one control group and that is how the group's
   name reaches a screen reader with them; `display: block` at full width is what
   turns a legend into the desktop's strip. The fieldset's own border and padding
   go, because the desktop draws no box around the rows. */
fieldset.access { border: 0; margin: 16px 0 0; padding: 0; }
fieldset.access > legend {
  display: block; width: 100%; box-sizing: border-box;
  min-height: 30px; padding: 6px 10px; margin: 0;
  font-size: 13px; font-weight: 700;
  color: var(--brand-text); background: var(--surface-alt);
  border-radius: var(--radius-input);
}
/* :4847 — TextSecondary, wrapping, 4 above and 2 below. */
fieldset.access > .smallprint { display: block; margin: 6px 0 8px; color: var(--text-2); }

/* ---------- island 2, row 3: the twelve override rows ---------- */

/* ⚠️ `white-space: normal` overrides the shared grid's `nowrap`: a capability
   label is a phrase ("Batch / Recall Returns"), not a data cell, and forcing
   twelve of them onto one line each is what makes this table need a scrollbar
   it should not have. */
table.grid.access { white-space: normal; }
/* :4855 — the capability column is 232 wide, and :4860 paints its text plain
   weight in TextPrimary, not as a heading. */
table.grid.access th[scope="row"] {
  width: 232px; font-weight: 400; text-align: left; color: var(--text);
}
/* :4853 — every row is MinHeight 30. */
table.grid.access tbody th,
table.grid.access tbody td { height: 30px; }
table.grid.access td { text-align: center; }
/* :4879 — the effective answer is RIGHT-aligned in TextSecondary. It used to sit
   left, which put it nowhere near where the desktop puts it. */
table.grid.access td:last-child { text-align: right; color: var(--text-2); font-size: 12px; }
/* :4871–:4873 — each RadioButton is MinHeight 28 on the desktop. Here the radio
   stands alone in its cell with only an `aria-label`, so the control itself is
   the whole target and it is sized to the floor rather than left at the browser's
   bare default. ⛔ It does NOT take the site's full 32-tall control treatment,
   which would stretch a round control into an oval. */
table.grid.access input[type=radio] {
  width: var(--target-min); height: var(--target-min);
  min-height: var(--target-min); margin: 0;
}
/* A locked row is dimmed AND carries its reason as a tooltip AND is disabled —
   ⛔ never greyed with no explanation. The reason lives on the radio and on the
   effective-answer cell, so a pointer finds it in either place. */
table.grid.access input[type=radio]:disabled { cursor: not-allowed; }
table.grid.access tr:has(input[type=radio]:disabled) th[scope="row"] { color: var(--text-muted); }

/* :4876 — the override flag is a FILLED pill: SecondaryTitleBar ground,
   CornerRadius 8, Padding 8,2, caption type on it. ⛔ It no longer borrows the
   outlined `.badge`, because on the desktop this one marker is deliberately
   solid — it is the thing an administrator scans the column for. */
table.grid.access .badge {
  margin-left: 6px; padding: 2px 8px;
  border: 0; border-radius: var(--radius);
  font-size: 11px; font-weight: 600;
  color: var(--brand-text); background: var(--surface-alt);
}
/* The "you" marker in the People list keeps the outlined `.badge` it has always
   worn: it is a note about a row, not a flag on a control. */
.people .badge { margin-left: 6px; font-size: 10px; }

/* ---------- island 2, row 4: the button pair ---------- */

/* :4885 — a horizontal StackPanel at the card's own left edge. Add / Update is
   MinWidth 110 and Height 28 (:4886); Clear is MinWidth 75, 10 to its right
   (:4887). ⚠️ LEFT-packed, and not indented to the field column: this is where
   the desktop puts them, and it is the one place the Users editor and the
   Address Book editor disagree. */
.userform .actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; margin: 16px 0 0;
}
.userform .actions button,
.userform .actions .btnlink {
  min-height: var(--control-h-compact); padding: 4px 12px; justify-content: center;
}
.userform .actions button   { min-width: 110px; }
.userform .actions .btnlink { min-width: 75px; }

/* ---------- island 2: narrow ---------- */
/* A 240-pixel label column is a desktop shape. Below the card's own width the
   rows become label-over-control — the same islands, the same order, the same
   words, still one column. */
@media (max-width: 700px) {
  .userform .field { grid-template-columns: 1fr; }
  .userform .field > .lbl { padding-right: 0; }
  .userform .field > input,
  .userform .field > select,
  .userform .field > strong,
  .userform .field > .fielderr,
  .userform .field > .pwbox,
  .userform .field > .pwaside { grid-column: 1; }
}

/* ==========================================================================
   ★ PRINT — the whole of this round's "print" feature, and deliberately so.

   The desktop has a Print BUTTON that renders the existing shipment sheet
   through an RDLC report. ⛔ There is no RDLC here and no report writer: a
   browser already has a print engine, and the honest browser version of that
   button is a stylesheet that makes the page print properly. There is also no
   button, because a button would need `window.print()` — a script, on a page
   whose CSP is `script-src 'none'`.

   WHAT IT DROPS: the chrome (the bar, the tab strip, the footer), the links,
   and the print hint itself — none of which mean anything on paper.
   WHAT IT KEEPS: every fact on the page, including the signatures.
   ⚠️ `print-color-adjust` is asked for on the two coloured pills ONLY: a status
   word whose background does not print still reads, because the word is there.
   ========================================================================== */
/* ==========================================================================
   web5 r03 — THE WAYBILL (Weigh Bill), AND THE PAGE IT PRINTS ON

   Source: spec1-r01-shared-machinery-result.md §2 (the WPF shell) and §2b/§C.2
   (the RDLC, item by item, in Z order). The PC renders a 4.00in x 6.00in label
   inside a 461 x 782 dialog and prints it at 4.00in x 5.90in with zero margins.

   ⛔ THE SIZES BELOW ARE THE RDLC'S OWN POINT SIZES, NOT DECORATION:
     · PuAddress / DelNotes / the From block   10pt
     · ShipmentDetails (Ref# / Weight/ Waybill) 12pt
     · the date cell (`ResellerName`, misnamed) 16pt centred
     · DelAddress                               16pt BOLD
     · the service cell                         26pt BOLD (the Phoenix variant)
   A browser's `pt` is a real typographic point, so they are written as `pt` and
   not converted — which is what keeps the printed label the same size as the
   PC's, on paper, where it matters.

   ⛔ NO HEX ANYWHERE IN THIS SECTION. Every colour is a :root token.
   ========================================================================== */
.waybill-sheet {
  max-width: 4in;
  margin: 0 auto;
  background: var(--paper);
  color: var(--text);
}
/* The label's lines are addresses: never collapsed, never re-wrapped away. */
.waybill-sheet .wb-line { margin: 0; font-size: 10pt; line-height: 1.25; }

/* 1 + 2 — the From block, and the courier block top-right. */
.wb-top { display: flex; justify-content: space-between; gap: 8px; }
.wb-fromhead { margin: 0; font-size: 10pt; font-weight: 600; }
.wb-courier { text-align: center; }
.wb-carrier { margin: 0; font-size: 10pt; }

/* 3 — the two-cell box. The PC draws a real bordered box with two cells. */
.wb-box {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--text); margin: 8px 0; padding: 4px 6px;
}
.wb-service { font-size: 26pt; font-weight: 700; line-height: 1.05; }
.wb-date    { font-size: 16pt; text-align: center; }

/* 4 — the delivery address. ⛔ 16pt BOLD and NO heading line: the PC prints no
   "To:" here, and adding one would be a line the label does not have. */
.wb-to { margin: 8px 0; }
.wb-to .wb-line { font-size: 16pt; font-weight: 700; line-height: 1.15; }

/* 5 — the Delivery Instructions band. */
.wb-instr { margin: 8px 0; }
.wb-instrhead { margin: 0; font-size: 10pt; font-weight: 700; }

/* 6 — Ref# / Weight / Waybill. */
.wb-details { margin: 8px 0; }
.wb-details .wb-line { font-size: 12pt; }

/* 7 — the barcode. `Sizing=Fit` on the PC, so the image is scaled and never
   cropped; `height:auto` is the browser's version of the same promise. */
.wb-barcode { margin: 8px 0; }
.wb-barcode img { display: block; max-width: 100%; height: auto; }

/* ⚠️⚠️ web5 r05 (THE AUDIT) DELETED A DUPLICATE RULE THAT STOOD HERE. r03 added
   a second `[hidden] { display: none !important; }` at this spot for the
   pop-up-blocked sentence — but the sheet already carries exactly that rule,
   once, at the foot of the file, and the comment block there says in as many
   words that it is "the only one OUTSIDE the two @media blocks". Two copies made
   that comment a lie and made the sheet's own no-redundant-declarations
   discipline unmeasurable. The rule at the foot covers `.notice[hidden]` on this
   screen exactly as well; nothing about the pop-up-blocked sentence changes. */

@media print {
  /* web1 r05 adds `.card.shipped .actions`: a row of navigation links is noise
     on a printed confirmation, and the waybill is the reason anyone prints it.
     ⚠️ web5 r03 — that class now lives on the Enter New Shipment screen's
     post-create block rather than on a page of its own, and the rule is still
     the right one for the same reason.
     ★★ AND `.wb-actions` JOINS IT — the waybill window's own Print and Close
     buttons. `window.print()` prints the document that contains the button that
     was just pressed, so without this line every printed waybill carries a
     picture of the button used to print it. */
  .topbar, .tabstrip, footer, .trackacts,
  .card.shipped .actions, .wb-actions { display: none !important; }
  body { background: #FFFFFF; }
  main { max-width: none; margin: 0; padding: 0; }
  .card {
    box-shadow: none; border: 1px solid #999; break-inside: avoid;
    margin: 0 0 10px; padding: 10px;
  }
  /* A URL printed after every link is noise on a page whose links are all
     navigation back into the site. */
  a[href]::after { content: none !important; }
  .pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.stages tr.stage th::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* ★★ web5 r03 — THE WAYBILL'S OWN PAGE. `BtnPrint_Click` sets
     `PaperSize( "CustomType", 400, 590 )` in hundredths of an inch and
     `Margins( 0, 0, 0, 0 )`, portrait — 4.00in x 5.90in, zero margins.
     ⛔ rw1 r10 — THE LABEL-SIZED PAGE RULE IS GONE FROM THIS FILE. A page-size
     rule cannot be scoped to a selector: it applied to EVERY page that loads
     this stylesheet, so a recovery-codes print, a report or a manifest came
     out on 4in x 5.9in label stock (Rowan: 6 to 17 pages). The waybill window
     does not load this file at all — waybill.php hand-rolls its head with
     waybill.css alone — and waybill.css carries its own copy of the label
     size, which is the only one now. Every other printable page gets the
     browser's default A4/Letter page. */
  .waybill-sheet { max-width: none; width: 4in; box-shadow: none; border: 0;
                   margin: 0; padding: 5px; break-inside: avoid; }
}

/* Somebody who has asked their machine for less movement gets less movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   web3 r10 — SETTINGS AND THE HOME SCREEN, LAID OUT LIKE THE PC CLIENT

   (This block of the sheet WAS three sections — "web2 r01 — THE SETTINGS TAB",
   "web3 r02 — THE SETTINGS TAB'S MY DEFAULTS BAND" and "web3 r03 — THE ACCOUNT
   NOTICE BOARD on the home screen". It is ONE section now, rebuilt against the
   desktop rather than moved, and it runs from this banner to the r04 sign-in
   banner below — which is the needle the suite extracts it by.
   ⚠️ THE r07 SUITE CARRIED A NEEDLE AT `.mydefaults .row2`, a rule this round
   retired with the markup that used it; it is re-pointed at
   `.mydefaults .addrrow`, the rule that replaced it, and it guards the same
   accident. That is the fifth time in this series a round has had to re-point a
   needle it renamed — r06, r07, r08 and r09 each did it in turn.)

   Source read in full, in the WORKTREE and not on origin:
     MainWindow.xaml :5614–:6068   the whole tabItemSettings TabItem — the grey
                                   viewport panel, the page ScrollViewer, the
                                   centred 1338 island card and its ten bands
     MainWindow.xaml :5656–:5659   THE GRID: 420 units of description column,
                                   the control column taking what is left
     MainWindow.xaml :5660         lblSettingsHeader, CardHeaderLabel, Height 40,
                                   ColumnSpan 2, content CENTRED
     MainWindow.xaml :5922–:5999   the Shipping defaults band, address rows and
                                   all — web3 r01 put the six address defaults
                                   inside it, which is where this browser page's
                                   two bands both come from
     Design/Styles.xaml :406–:430  CardHeaderLabel — CardHeader fill, TitleBar
                                   text, FontSizeTitle 16, SemiBold, centred
     Design/Colours.xaml :155–:156 the SecondaryTitleBar pair every band strip
                                   is painted with, and Colours.Dark.xaml beside
                                   it — via the tokens at the top of this file

   Gord, 2026-09-08, looking at the live site: "I really would like the screens
   in the browser version to look exactly like whats in the PC Client version…
   Then when someone jumps from one to the other, they dont get confused."

   THE DESKTOP IS ONE ISLAND CARD OF STACKED BANDS, and every band is the same
   two things: a full-width strip carrying the band's name (Height 34, Bold,
   SecondaryTitleBar on SecondaryTitleBarText, Margin 10,12,12,0 — :5662, :5686,
   :5768, :5772, :5835, :5878, :5946, :6016 and :6038 are that one Label nine
   times over), then rows on the page's ONE 420-unit grid.

   ⛔ THE BROWSER BUILDS ONLY THE BANDS IT HAS, AND LEAVES NO HOLE FOR THE REST.
   Appearance, Units, Products, Role policy, Diagnostics, Keyboard shortcuts,
   Server and Hold for approval are all desktop-local or unbuilt here; a greyed
   strip for each would be eight doors to nowhere on a screen a truck driver
   opens to set their pickup city. The two bands this page HAS are both halves
   of the desktop's Shipping defaults band (:5922) and they are laid out in it:
   the account's service level and package type first, the person's own address
   defaults second, which is the desktop's own order down that band.

   ⚠️ TWO BANDS, TWO SAVE BUTTONS, BECAUSE THEY ARE TWO WRITES. The account band
   writes the account's SQLite store for every colleague; My defaults writes six
   preference rows on ONE person's own record. The desktop's rule is one Save
   where a value is entered (demo1-r03) and that is what each band has.

   ⛔ EVERY COLOUR BELOW IS A `var(--…)`. Not one hex literal appears in this
   section, in a rule or in prose; the suite greps between this banner and the
   next and expects 0. Dark mode therefore needs no rule of its own — the token
   block at the top of the file already swapped it. ⚠️ That includes the band
   strips: Colours.xaml makes SecondaryTitleBar on SecondaryTitleBarText
   identical to `--surface-alt` on `--brand-text` in BOTH themes, so they are
   spelled with the names they already have rather than given two of their own.
   ⛔ AND NOT ONE SELECTOR BELOW IS AN ID, for r08's reason: a hash followed by
   hex letters is exactly what that grep hunts for, so this screen's ids stay in
   the markup and the rules are scoped to the band classes.
   ⛔ Nothing here goes under the 24-pixel WCAG target floor.
   ⛔ Never type a star next to a slash anywhere in this comment: it closes it.

   `.source` is the line under each account box that says what is ACTUALLY in
   force and where it came from. It earns its own rule because it is the one
   sentence on the page a shipper reads when their default "stopped working",
   and it has to be legible without competing with the control above it.

   ── ★★★ web4 r06 AMENDS THIS SECTION IN THREE PLACES ──────────────────────
   Measured off Cowork's 2026-09-08 side-by-side screenshots rather than off the
   XAML, which is this train's standing rule where the two disagree.
     1. THE MY-DEFAULTS CAPTIONS MOVED INTO THE LEFT COLUMN. r10 read the XAML
        comment at :5959 ("the left description column is deliberately
        untouched") and left that column EMPTY for both address rows; the
        screenshot shows the client putting "Default pickup address" and
        "Default delivery address" in it, which is also what the resource keys
        are called — TabSettingsShipDefaultsPickupDescription, and every other
        *Description* on this page is a left-column caption. So the band's rows
        are ordinary `.setrow`s now and `.addrcap` is their caption.
     2. THE THREE BOXES READ CITY, PROVINCE, COUNTRY. Gord, 2026-09-08: "It
        should go, City, Prov, Country." The `.addrrow` template swapped its
        last two tracks to suit; the widths did not change, they moved with
        their boxes.
     3. `.mydefaults .addrgrp`, ITS `+` SIBLING RULE AND ITS `> legend` RULE ARE
        DELETED, with the `<fieldset>`/`<legend>` markup that was their only
        user. The grouping fact they carried is now `role="group"` +
        `aria-labelledby` on the row, which is the SAME accessibility-tree node
        with the SAME accessible name — a `<fieldset>`'s implicit role is
        `group`. ⛔ Both halves went, so nothing is orphaned in either file.
   ⚠️ THE BANNER LINE ABOVE IS DELIBERATELY NOT RENAMED. Two suite needles cut
   this section out by that exact sentence, and a third (r07's) points into it;
   this round changed rules inside the section, not the section's identity, and
   a rename would have moved three needles to record a fact this paragraph
   records better. ⛔ A later round that DOES rename it must re-point all three.
   ========================================================================== */
.source { margin: 6px 0 0; color: var(--text-2); font-size: 13px; }

/* ⚠️ THE TWO SOURCES ARE DISTINGUISHED BY WEIGHT, NOT BY COLOUR ALONE. A
   shipper who cannot tell the two colours apart still sees which value is
   theirs, because the sentence beside it says so in words either way — the
   emphasis is a convenience, never the information. ⛔ Do not "improve" this
   into a red/green pair carrying the meaning on its own. */
.source .from-account { font-weight: 600; color: var(--text); }
.source .from-courier { font-weight: 600; color: var(--brand); }

/* web23 r02 — a greyed Role policy box says WHO set it in words on screen
   (the same words as its tooltip), after Allowed or Denied. Muted and small,
   but --text-2, not --text-muted: this is information, not decoration. */
.grid.rolepolicy .rpsetby { color: var(--text-2); font-size: 12px; }

/* ---------- the page: the desktop's ONE island card ---------- */

/* :5629 — gridSettingsMain is a single centred island card on the grey viewport
   panel, exactly like Reports and like every other screen in this series.
   `.card.island` already paints SurfaceCard, the BorderSubtle hairline and
   CornerRadiusCard, and already moves the padding off the card and into the
   body so the header strip can run edge to edge. ⚠️ The desktop's card is 1338
   units wide; `main` on this site is capped at 1100, so the card takes the
   viewport it is given rather than being told a width it cannot have. */

/* :5660 — lblSettingsHeader is CardHeaderLabel, Height 40, ColumnSpan 2, and
   its content is CENTRED. The shared island head is 14 and left-packed because
   everywhere else it names a SECTION; this one names the PAGE, so it takes
   CardHeaderLabel's own FontSizeTitle 16, the XAML's centring and its 40. */
.settingspage > .islandhead {
  display: flex; align-items: center; justify-content: center;
  min-height: 40px;
}
/* ⚠️ web4 r06 — `h2`, NOT `h1`. The page's `<h1>` is still in the markup and is
   still exactly one, but it is `.visually-hidden` above the card now (the client
   draws no page heading; the chrome item you pressed is the title). The island's
   OWN header is a section heading under it, which is what every other island on
   this site uses an `<h2>` for, and the client really does paint this strip. */
.settingspage > .islandhead > h2 { font-size: 16px; }

/* ---------- a band: the strip, and the rows under it ---------- */

/* The band strip, nine times over on the desktop and identical every time
   (:5662 first, :6038 last): Height 34, ColumnSpan 2, Margin 10,12,12,0, Bold,
   SecondaryTitleBar fill, SecondaryTitleBarText ink. ⚠️ It is a `<h2>` here
   because it really is this band's heading and a screen reader should be able
   to jump to it; the desktop says the same thing with a Label and an
   AutomationProperties.Name on the panel beneath. */
.setband > .bandhead {
  display: flex; align-items: center;
  min-height: 34px;
  margin: 12px 12px 0 10px; padding: 0 8px;
  font-size: 14px; font-weight: 700;
  color: var(--brand-text); background: var(--surface-alt);
}

/* THE PAGE'S ONE GRID, :5656–:5659: a fixed 420 of description column, then the
   control column taking what is left. The left column carries 10 of air and the
   right one 8 (:5667 against :5673, :5693 against :5698), and every row on the
   desktop page starts 12 below the one above it. Below 900 it stacks, because a
   420-unit label column on a phone leaves nothing for the control.

   ⚠️ web4 r06 — THE BRIEF MEASURED THIS COLUMN AT ~480px AND IT STAYS 420, WHICH
   IS A JUDGEMENT CALL AND IS STATED RATHER THAN QUIETLY MADE (`ask_human` is
   broken this round). The 480 was measured on the client's islands at x=222…1788
   — 1566px wide — so it is 31% of the page. r01's column is `78vw`, which on the
   1512px browser in the same screenshot is about 1180px; 31% of that is ~362px,
   and 420 is already the more generous of the two. Spending the brief's raw 480
   here would hand this page a caption column WIDER in share than the client's
   and push six address boxes into the last 700px of a page the client gives
   1086. ⛔ 420 is also the XAML's own number, so it needs no second source. */
.setrow {
  display: grid; grid-template-columns: 420px minmax(0, 1fr);
  align-items: start; column-gap: 8px;
  margin: 12px 10px 0;
}

/* :5667, :5693–:5695, :5948–:5949 — the description is a plain `<Label>`: normal
   weight, TextPrimary, left-aligned, sitting on a 28-tall row beside its
   control. ⛔ NOT the bold block-label the base `.field` kit gives a stacked web
   form; this page is not a stacked web form on the desktop and is not one here.
   ⛔⛔ web4 r11b — `.setrow > .setdesc > .help` IS GONE, WITH THE SUB-CAPTION IT
   PAINTED. It set the muted sentence UNDER every label in the account band, and
   Gord's 2026-09-08 side-by-side put that on the list: the PC screens print no
   paragraph under a field, and the desktop's own :5656 row is a caption beside a
   control and nothing else. Every one of those sentences is now the `title` on
   the label it describes — same registry `help_key`, same literal `t()` call,
   all three string tables untouched, not one word dropped.
   ⛔ THE RULE WENT WITH THE MARKUP RATHER THAN BEING LEFT ORPHANED: a rule with
   no element is how deleted prose comes back, which is this sheet's standing
   rule and the thing the suite checks for.
   ⚠️ `.setrow > .setctl > .help` BELOW IS A DIFFERENT `.help` AND STAYS. It is
   `SettingsListUnavailable` — the sentence that tells a shipper why their
   dropdown is a plain box today — which is a STATE of the screen and not helper
   prose, and it sits in the CONTROL cell, not under a label. */
.setrow > .setdesc { min-height: var(--control-h-compact); }
.setrow > .setdesc > label {
  display: block; margin: 0;
  font-weight: 400; color: var(--text);
}

/* :5952–:5953 — cmbSettingsDefaultService and its twin are MinWidth 260 and
   LEFT-packed, not stretched. The base rule stretches a select to its whole
   column, which on this page is a dropdown three times wider than its longest
   item. ⚠️ THE HEIGHT IS DELIBERATELY NOT RESTATED: the desktop's Height 28 is
   a floor the site's own 32-pixel control height already clears, a browser at
   this body size cannot draw a usable 28-pixel box, and 32 is the desktop's OWN
   input height on Enter New Shipment. Nothing on this page is under 24. */
.setrow > .setctl > select,
.setrow > .setctl > input[type=text] { width: 260px; max-width: 100%; }

/* The account notice board's box is the browser's own — the desktop has no such
   control — so it takes the width the desktop gives its own wrapping text:
   MaxWidth 860 (:5998, :6023, :6062). */
.setrow > .setctl > textarea { max-width: 860px; }

/* ⚠️ THE SECOND `.help` ON THE ROW, AND IT IS NOT DECORATION. When the courier's
   lists could not be read, the account band falls back to a plain text box and
   prints `SettingsListUnavailable` UNDER it — the one sentence that tells a
   shipper why their dropdown is a box today. It used to inherit `.field .help`;
   the row is no longer a `.field`, so it says so itself rather than quietly
   rendering as unstyled body text the day a fetch fails. */
.setrow > .setctl > .help {
  display: block; margin: 4px 0 0; max-width: 860px;
  color: var(--text-2); font-size: 13px;
}

/* :5997 and :5858 — a band's Save is MinWidth 170, left-packed at the control
   column's own edge, at the FOOT of the band. One band, one Save. */
.setband .bandsave { min-width: 170px; }

/* :5998 — the sentence under a band is a wrapping TextBlock, MaxWidth 860.
   ⚠️ THE DESKTOP PAINTS IT `TextMutedBrush` AND THIS USES `--text-2`, WHICH IS
   TextSecondary, ON PURPOSE. TextMuted is a 12-unit WPF caption colour; at this
   sheet's body size the same value does not clear AA against the card, and
   every equivalent line on this site has been TextSecondary since r01. The
   parity rule buys us the desktop's layout, not a contrast failure. */
.setband .bandnote {
  margin: 6px 0 0; max-width: 860px;
  color: var(--text-2); font-size: 13px;
}

/* ==========================================================================
   ★★★ web6 r08 — THE SEGMENTED PICKER: the browser's radio group.

   The PC draws Theme and Language as three RadioButtons whose Checked handler
   applies the change on the spot. A browser radio does not post itself, so each
   choice here is its own submit button and the click that picks it IS the click
   that applies it — one press, exactly as on the PC, and no Save button on a
   band the spec forbids one on. settings.php's band-0 block has the reasoning.

   ⚠️ THEY ARE STILL BUTTONS, so they keep every button affordance: tab order,
   Space and Enter, and a real focus ring. `aria-pressed` carries the chosen
   state to a screen reader; `.picked` carries it to everybody else. ⛔ The
   chosen one is NOT disabled — that would drop it out of the tab order, so the
   one option that says "you are here" would be the one a keyboard user cannot
   reach.

   ⚠️ TOKENS ONLY, so the picker themes itself along with everything else. Not
   one colour literal below.
   ========================================================================== */
.setband .seg {
  display: inline-flex; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius-input);
  overflow: hidden; background: var(--card);
}
.setband .segbtn {
  appearance: none; -webkit-appearance: none;
  min-height: var(--control-h); padding: 0 16px;
  border: 0; border-left: 1px solid var(--line);
  background: var(--card); color: var(--text);
  font: inherit; cursor: pointer;
}
.setband .seg > .segbtn:first-child { border-left: 0; }
.setband .segbtn:hover { background: var(--surface-alt); }

/* The choice in force. ⛔ COLOUR IS NOT THE ONLY SIGNAL: the weight goes bold
   too, so the picker still reads correctly for somebody who cannot separate the
   two backgrounds. WCAG 1.4.1, and it is also just clearer. */
.setband .segbtn.picked {
  background: var(--brand-button); color: var(--on-brand); font-weight: 600;
}
.setband .segbtn.picked:hover { background: var(--brand-button-hover); }
.setband .segbtn:focus-visible {
  outline: 2px solid var(--focus); outline-offset: -2px;
}

/* A greyed "coming" checkbox row, and the sentence that makes the greying
   honest. ⚠️ The label is `--text-2` rather than `--text-muted` for the same
   contrast reason the band-note rule above gives. */
.setband .chk { margin: 0 0 6px; }
.setband .chk > label {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: var(--control-h-compact); color: var(--text-2);
}
.setband .chk > label > input[disabled] { cursor: not-allowed; }
.setband .bandnote.coming { color: var(--text); }
/* ⛔ web4 r06 — THE DIRECT-CHILD BAND-NOTE RULE IS DELETED, and it is deleted
   rather than left because it could no longer take effect. It gave the band's own
   left/right air to a note that was a DIRECT child of the section, which is where
   each band's opening lede sat; both ledes are gone now (the client draws ONE
   muted line per band and draws it at the foot, under Save — :5998), so every
   surviving band note on this page is inside a control block, where the rule
   above already places it. A rule with no possible user is a rule that goes; the
   suite greps for its absence by name, exactly as r10 did for the old
   notice-board heading rule.
   ⚠️ web4 r09 REWORDED THIS COMMENT AND CHANGED NO RULE. Both deleted selectors
   were spelled out here in prose, and a suite that proves a selector is gone by
   searching the WHOLE FILE is tripped by a comment exactly as hard as by a rule —
   which is what the notice-board grep had started doing. The rule is named in
   words here; the test names it in code, and only there. */

/* A band's own strips — "Saved. One setting changed.", a refusal, the expired
   form — line up with the band strip above them and with the 10 of air every
   row on the desktop grid starts at (:5667). The desktop has no such strip
   because it has a modal dialog instead; this is the browser's own, given the
   band's own margins so it reads as part of the band and not as page furniture
   that happens to be sitting there. */
.setband > .notice { margin: 8px 10px 12px; }

/* ---------- the My-defaults band: the desktop's two address rows ---------- */

/* ★★★ web4 r06 — :5967 and :5982, TabSettingsShipDefaults{Pickup,Delivery}-
   Description: a BOLD caption for the whole address row, and it sits in the
   page's LEFT description column beside its three boxes, not above them.
   ⚠️ r10's rule here read "INSIDE the control column and not in the left
   description column", quoting the XAML at :5959; the screenshot says otherwise
   and the screenshot is what this train builds to — see the section banner for
   the whole argument and for why the resource key's own name agrees with it.
   So the band's two address rows are plain `.setrow`s now: `.setdesc` carries
   this caption, `.setctl` carries the `.addrrow` of three, and the grid, the
   column widths, the 12 of air above each row and the stacking breakpoint all
   come from the rules above for free, exactly as they do for the account band.
   ⛔ IT IS BOLD AND THE ACCOUNT BAND'S CAPTIONS ARE NOT, which is not an
   inconsistency: :5948 and :5949 are plain `<Label>`s and :5967 and :5982 carry
   `FontWeight="Bold"`, because one names a single control and the other names a
   group of three. ⛔ And it is a `<span>`, not a `<label>` — a label names ONE
   control; the grouping is said by `role="group"` + `aria-labelledby` on the row,
   which is the same accessibility node the retired `<fieldset>`/`<legend>` made.
   ⚠️ `.mydefaults .addrgrp`, `.addrgrp + .addrgrp` and `.addrgrp > legend` are
   DELETED, with the only markup that used them. */
.mydefaults .setdesc > .addrcap {
  display: block; margin: 0;
  font-weight: 700; color: var(--text);
}

/* :5968–:5981 — ONE horizontal row of three, in the desktop's own widths, ten
   apart (:5969, :5973): City 200, Province 220, Country 180.
   🔒 web4 r06 — CITY, PROVINCE, COUNTRY. Gord, 2026-09-08: "It should go, City,
   Prov, Country." The XAML draws City, Country, Province; the ruling is newer
   than the XAML and this is the order both products are moving to. ⛔ The widths
   did NOT change — each one travelled with its own box, so Province is still the
   widest of the three (a Canadian province name is the longest thing this row
   holds) and Country is still the narrowest.
   ⚠️ THIS RULE REPLACES `.mydefaults .row2`, which stacked City above a
   two-across Country / Province pair — a web form, and not this screen. The r07
   suite's needle has been re-pointed here; see the banner.
   The widths are `fr` rather than pixels so the three shrink together on a
   narrow window instead of one of them falling off the end. */
.mydefaults .addrrow {
  display: grid;
  grid-template-columns: minmax(0, 200fr) minmax(0, 220fr) minmax(0, 180fr);
  gap: 0 10px; align-items: start;
}
.mydefaults .fld { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }

/* :5970, :5974, :5978 — the caption over each box is a plain TextBlock in the
   desktop's muted ink, NOT a bold field label. Same contrast reasoning as
   `.bandnote` above: TextSecondary, because this one is small. */
.mydefaults .fld > label { font-weight: 400; font-size: 13px; color: var(--text-2); }

/* ★★ THE INLINE PROBLEM, and the same three-signal rule the shipment form
   follows: a 2px error border AND `aria-invalid="true"` AND a sentence tied to
   the control with `aria-describedby`. ⛔ A colour alone is not a mark. */
.mydefaults .problem {
  color: var(--bad); font-size: 12px; font-weight: 600;
  background: var(--bad-tint);
  border-left: 3px solid var(--bad);
  padding: 3px 8px; border-radius: 0 3px 3px 0;
}
/* ⚠️ web4 r11b — the last of the four 2px rings, converted with the other three.
   Settings' My-defaults rows are the same 32-tall boxes as every other screen's,
   and a rejected one was 34. See `.shipform [required]` for the arithmetic. */
.mydefaults input.wrong, .mydefaults select.wrong {
  border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad);
  background: var(--bad-tint);
}

/* One column on a phone. The desktop never has to do this — it is 1338 units
   wide and its window has a MinWidth — so this is the browser's own honest
   concession and it is the same one every island in this sheet makes. */
@media (max-width: 900px) {
  .setrow { grid-template-columns: 1fr; row-gap: 4px; }
  .mydefaults .addrrow { grid-template-columns: 1fr; }
}

/* ⛔ THE CAPTION TOGGLE'S ONE STYLING REQUIREMENT, AND IT IS DEFENSIVE.
   Browsers hide `[hidden]` by default, but ANY rule in this file that sets a
   `display` on a matching selector would beat that default and put BOTH the
   word "Province" and the word "State" on the screen at once. This is the
   `!important` that keeps the pair honest. ⚠️ It is the only one OUTSIDE the
   two `@media` blocks (print, and reduced-motion), where the other four live
   and where an override is the whole point. `[hidden]` means hidden. */
[hidden] { display: none !important; }

/* ---------- THE HOME SCREEN ----------

   ⛔ THE DESKTOP HAS NO HOME SCREEN. It opens on Enter New Shipment, so there is
   nothing here to be faithful TO and nothing to leave a space for. What the
   brief asks for is the welcome card and web3 r03's notice card, "styled as
   cards on the desktop's page background, nothing more" — so both are now the
   same island card every other screen in this series wears: a CardHeaderLabel
   strip over a SurfaceCard body, which is the desktop's own card grammar. The
   two unbuilt boards get NO placeholder; home.php says at length why.

   ⚠️ `overflow-wrap: anywhere` IS NOT COSMETIC. The message is free text and a
   shipper can paste a 900-character tracking URL into it with no space in it at
   all; without this, that one word widens the card past the viewport and takes
   the tab strip with it on a phone. `.fields dd` above already carries the same
   property for the same reason.

   ⛔ NO `white-space: pre-wrap`. The line breaks are real `<br>` elements that
   home.php put there itself, on already-escaped text — see the block above that
   card. A CSS property that preserved whitespace instead would be a second,
   silent way for layout to depend on the stored bytes.

   ⚠️ THE BOARD'S OLD HEADING-MARGIN RULE IS GONE, NOT MISLAID. That heading now
   lives in the island's header strip, where the shared
   `.card.island > .islandhead > h2` rule already sets its margin to 0 and beats
   it on specificity — a rule that can no longer take effect is a rule that goes,
   and the suite greps for its absence by name.
   `grep -rn "noticeboard" browser/` answers this file and home.php only. */
.card.noticeboard { border-left: 3px solid var(--brand); }
.card.noticeboard .notice-text { margin: 0; overflow-wrap: anywhere; }

/* ════════════════════════════════════════════════════════════════════════════
   ★★ web3 r04 — THE SIGN-IN SCREEN, laid out as MainWindow.xaml's tabItemLogin.

   SOURCE, read in full before a line of this was written:
     MainWindow.xaml:69-185   tabItemLogin — the six-row centred stack
     MainWindow.xaml:81-90    gridLoginHero, Height 192; borderLoginCourierChip
                              280x126, CornerRadius 6, Padding 8
     MainWindow.xaml:93-141   the card: Border 641x454, CornerRadius 8,
                              BorderSubtle 1px, SurfaceCard; inside it a 420px
                              Grid of six proportional rows (62/43/76/87/69/83)
                              over two columns (213/428)
     MainWindow.xaml:107-108  the header band, CardHeaderBrush, radius 8,8,0,0
     MainWindow.xaml:177-183  spIdsEndorsement — emblem + "Powered by IDS CoSend"
     Design/Styles.xaml:249   TabItemStyle1, for the strip above it
     Design/Colours*.xaml     every colour, via the tokens at the top of this file

   THE THREE ISLANDS, IN THE DESKTOP'S ORDER: hero, card, endorsement.

   ⛔ WHAT IS DELIBERATELY NOT HERE, AND WHY — all three are stated in index.php
   beside the markup as well, so neither file can quietly grow one back:
     · spLoginServerChoice (MainWindow.xaml:170) — the live/testing radios. The
       brief is explicit: the browser has no server choice, so it gets no space
       for one. It is a desktop-local setting about which machine to talk to.
     · btnClose (:137) — quits the application. A web page cannot close a tab it
       did not open, and the browser already draws that control on the tab.
     · imageRevealPassword (:124) — hold-the-mouse-down to reveal. It needs a
       mousedown/mouseup handler and this page's CSP is `script-src 'none'`;
       browsers ship their own reveal control inside a password field, so the
       capability is present, just drawn by the browser rather than by us.
   ⛔ NONE of the three is a missing FEATURE with a hole where it should be, so
   none gets a "not built" placeholder — those are for things a shipper would go
   looking for. See the CHANGELOG entry.

   ⛔ AND THE HERO DOES NOT RESOLVE THE COURIER FROM WHAT IS TYPED. The desktop
   re-reads a LOCAL per-account courier cache on every keystroke in tbAccount
   (:113) and swaps its hero to that courier's banner. Doing that here would be
   an ACCOUNT ENUMERATION ORACLE on an unauthenticated page: type a company
   name, watch whether a courier appears, and you have a list of our customers —
   which is the exact attack the one-error-message rule at the top of index.php
   exists to defeat. So the browser shows the desktop's OTHER hero state, the
   one it draws for an unknown or first-ever account: the IDS CoSend lockup.

   ⛔ NO HEX ANYWHERE BELOW. Every colour is a token from the head of this file,
   so the dark block already covers this screen. The test asserts it.
   ════════════════════════════════════════════════════════════════════════════ */

/* The stack. 641px is the desktop card's own width and the three islands are
   centred on it, exactly as the XAML's HorizontalAlignment="Center" does. */
.loginscreen { max-width: 641px; margin: 0 auto; }

/* ---------- island 1: the hero (gridLoginHero, Height 192) ---------- */
/* Fixed height for the desktop's stated reason: "flipping states while typing
   never shoves the card around". Nothing flips here, but the card sits where
   the desktop's card sits, which is the point of the round. */
.loginscreen .hero {
  height: 192px;
  display: flex; align-items: center; justify-content: center;
}

/* borderLoginCourierChip, to the pixel: 280x126, CornerRadius 6, Padding 8.
   ⚠️ THE DESKTOP PINS THIS PURE WHITE IN BOTH THEMES AND WE DO NOT, ON PURPOSE.
   Its reason (:80, :6383) is that the chip holds an UNCONTROLLED WHITE-MATTE
   BITMAP — a courier's banner — which would read as a broken swatch on a token
   background. Ours holds TEXT. A pinned-white chip would put dark-theme text on
   white inside a dark page, so it takes the card surface and follows the theme.
   Same size, same radius, same place; only the fill has a reason to differ. */
.loginscreen .chip {
  width: 280px; height: 126px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
/* The wordmark that stands in for imageShipWithLockup. Weights and colour are
   the endorsement's own (:180) — Run "IDS" Bold, Run " CoSend" SemiBold, both
   BrandTextBrush — at the courier name's 25px, on this sheet's 1.25x ramp. */
.loginscreen .wordmark {
  font-size: 31px; line-height: 1.1; color: var(--brand-text);
  font-weight: 600; letter-spacing: .2px;
}
.loginscreen .wordmark b { font-weight: 700; }

/* ---------- island 2: the card (Border 641x454, Margin 0,16,0,0) ---------- */
/* ⚠️ NO BOX-SHADOW, unlike this sheet's generic `.card`. `grep -n "DropShadow"
   Design/Styles.xaml` → nothing: the desktop client is flat everywhere, and the
   login Border is a 1px BorderSubtle line and a CornerRadius of 8. */
.loginscreen .logincard {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;                  /* so the header band's fill meets the radius */
}

/* The header band: CardHeaderBrush, 62px (row 1 of 420), FontSizeTitle 16 on
   the 1.25x ramp, centred, title-bar text. Content is the desktop's own
   MainWindowLoginButtonLogin — the same key the button below uses. */
.loginscreen .logincard h1 {
  margin: 0;
  min-height: 62px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-header);
  color: var(--on-chrome);
  font-size: 20px; font-weight: 400;
}
.loginscreen .cardbody { padding: 22px 24px 24px; }

/* labelError (:139): centred and Bold, directly under the band, spanning the
   whole card. ⛔ The element stays `<p class="notice bad">` — the one-error-
   message rule and the test that pins it are untouched; this only paints it. */
.loginscreen .cardbody .notice { text-align: center; font-weight: 700; }

/* The lede and the small print are the BROWSER's, not the desktop's: a shipper
   at a strange machine needs telling this is the same account. Kept, and
   styled as the desktop styles a quiet secondary line. */
.loginscreen .lede { margin: 0 0 18px; color: var(--text-2); text-align: center; }

/* The three field rows, in the desktop's order and grouping: Account,
   Username, Password — one two-column row each, label RIGHT-aligned in a 213px
   column against a 428px control column, which is the card Grid's own
   213-to-428 star split. 53px row pitch = the desktop's rhythm after r13's fix
   (32px control + 21px gap). */
.loginscreen .loginrow {
  display: grid; grid-template-columns: 213px 1fr;
  align-items: center; column-gap: 10px; margin-bottom: 21px;
}
.loginscreen .loginrow label {
  text-align: right; font-weight: 600; margin: 0;
}
/* tbAccount / tbUserId / pbPassword are Width 290 on the desktop. The height is
   this sheet's --control-h 32, not the XAML's legacy 26: 32 is the brief's
   number and the WCAG floor is 24. */
.loginscreen .loginrow input { width: 290px; max-width: 100%; }

/* The button row (:131-138). One button, left-aligned in the control column so
   it lines up under the fields — the desktop puts btnLogin at x=212 of the
   card, which is exactly where its control column starts. */
.loginscreen .actions {
  display: grid; grid-template-columns: 213px 1fr;
  column-gap: 10px; margin: 0;
}
.loginscreen .actions button { grid-column: 2; justify-self: start; min-width: 99px; }

/* ---------- island 3: the endorsement (spIdsEndorsement, Margin 0,20,0,0) --- */
/* ⚠️ THE EMBLEM IS ABSENT AND NOTHING STANDS IN FOR IT. IdsCoSendEmblem is a
   22px vector in Icons.xaml; this site ships no image assets by design and an
   emoji or a box-drawn triangle would be inventing a substitute. The words are
   the whole of the endorsement's meaning and they are all here. */
/* ⚠️ THE ONE PLACE THIS SCREEN DOES NOT COPY THE CLIENT'S COLOUR, AND WHY.
   The desktop paints both of these lines TextMutedBrush (:171, :180, :182).
   Measured against AppBackground, TextMuted is 2.75:1 in the LIGHT theme —
   under the 4.5:1 AA floor for text this size, and these are 19px and 13px
   normal weight, so neither qualifies as large text. Matching the client to the
   byte here would mean shipping a contrast failure on the front door. They take
   the next token up instead, TextSecondary: 5.19:1 light, 9.31:1 dark, and the
   same job — a quiet line subordinate to the card above it.
   ⛔ Not a redesign and not a new colour: it is a token that already exists,
   chosen because the one the desktop uses does not pass here. */
.loginscreen .endorsement { margin-top: 20px; text-align: center; }
.loginscreen .endorsement .line {
  margin: 0; font-size: 19px;                 /* XAML 15, on the 1.25x ramp */
  color: var(--text-2);
}
.loginscreen .endorsement .line .mark { color: var(--brand-text); font-weight: 600; }
.loginscreen .endorsement .line .mark b { font-weight: 700; }
.loginscreen .endorsement .site { margin: 6px 0 0; font-size: 13px; }
.loginscreen .endorsement .site a { color: var(--text-2); }

/* ---------- narrow ---------- */
/* A 213px right-aligned label column is a desktop shape. Below the card's own
   width the rows become label-over-field, left-aligned, and the button follows
   — the same three islands in the same order, still one column. */
@media (max-width: 680px) {
  .loginscreen .loginrow,
  .loginscreen .actions { grid-template-columns: 1fr; }
  .loginscreen .loginrow label { text-align: left; margin-bottom: 4px; }
  .loginscreen .loginrow input { width: 100%; }
  .loginscreen .actions button { grid-column: 1; }
  .loginscreen .chip { width: 100%; max-width: 280px; }
  .loginscreen .wordmark { font-size: 26px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ★★ web4 r12 — ENTER NEW RETURN

   FOUR RULES AND NOT ONE MORE, AND THE SMALLNESS IS THE POINT. return.php is
   ship.php's skeleton: it wears `.shipform`, `.shipcols`, `.formcol`, `.card
   .island`, `.islandhead`, `.islandbody`, `.twocard`, `.addrcard`, `.swapcol`,
   `.rail`, `.railfields`, `.railtitle`, `.railrule`, `.summary`, `.estimate`,
   `.actions`, `.btnlink`, `.row2111`, `.row13`, `.row3`, `.unitrow`,
   `.chargewrap` and `.problem` — every one of them already defined above,
   already responsive, already correct in dark mode. ⛔ Not one of those rules
   is redefined here, and a fifth rule in this block should be treated as a
   sign that the screen has drifted from the kit rather than as a fix.

   ⛔ TOKENS ONLY. No hex outside :root, no new colour, no new spacing scale.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. The Return-details island's two-across pairs — the RMA beside the recall
      reference, and the two instruction boxes beside each other. The desktop
      pairs them the same way. It collapses with its neighbours below. */
.shipform .retrow2 {
  display: grid; gap: 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 2. The sub-caption inside an address card's legend — "· where the goods are
      now" and "· destination — where the goods go back to", which the client
      prints beside each card header in a caption size at 0.85 opacity
      (MainWindow.xaml:1123, :1380). ⛔ It is the one place on this screen a
      reader learns which card is the customer's, so it is a real element in the
      legend and never a title attribute. */
.shipform .addrcard legend .legendsub {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-2);
}

/* 3. The rail's FIXED service level. The value is a constant, so it is text and
      not a control — see return.php's note. It is painted at the weight of a
      chosen value in a select, so the rail reads as a row of settings rather
      than as a paragraph, and its caption above it is a plain span rather than
      a <label>, because there is no control for a label to be for. */
.shipform .railfields .fld > .lbl {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-2);
}
.shipform .servicefixed {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text-1);
}

/* 4. Narrow: the pairs go one under another with everything else. ⚠️ 900px is
      the breakpoint the three sibling row rules above already use — matching it
      is what keeps the whole form collapsing on ONE line rather than in two
      steps at two widths. */
@media (max-width: 900px) {
  .shipform .retrow2 { grid-template-columns: minmax(0, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   ★★ web4 r13 — BATCH SHIPMENT

   FIVE RULES AND NOT ONE MORE. batch.php is ship.php's skeleton wearing the
   Address Book's grid: `.shipform`, `.shipcols`, `.formcol`, `.card .island`,
   `.islandhead`, `.islandbody`, `.addrcard`, `.bookrow`, `.findonline`,
   `.rail`, `.railfields`, `.railtitle`, `.railrule`, `.summary`, `.actions`,
   `.btnlink`, `.row2111`, `.row13`, `.row3`, `.retrow2`, `.unitrow`,
   `.problem`, `.gridwrap` and `.grid` are all already defined above, already
   responsive and already correct in dark mode. ⛔ Not one of them is redefined
   here, and a sixth rule in this block should be read as a sign that the screen
   has drifted from the kit rather than as a fix.

   ⛔ TOKENS ONLY. No hex outside :root, no new colour, no new spacing scale.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. The delivery toolbar — the group picker and the multi-select side by side
      above the grid, with the three plain buttons under them. It is the
      client's own row of controls (Add group · Add Address · Go to Address
      book) laid out for a column that is narrower than a 1338px tab. */
.shipform .batchtools {
  display: grid; gap: 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}
.shipform .batchtoolbtns {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 4px;
}

/* 2. The two editable cells. They are inputs inside grid rows, so they are
      capped narrow and set at the compact control height the rest of the grid
      furniture already uses — never below the 24px click floor. */
.shipform .grid input.cellnum {
  width: 72px; max-width: 100%;
  height: var(--control-h-compact);
  min-height: var(--target-min);
}

/* 3. The client-reference column. A machine string read character by character
      when somebody is checking a waybill against a manifest, so it is set in
      the monospace stack the rest of the site already uses for ids. */
.shipform .batchref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
}

/* 4. The status cell. Three states: neutral (never run), landed, and needs
      attention. ⛔ COLOUR IS NEVER THE ONLY SIGNAL — every one of them spells
      the state out in words, which is why there is no icon rule here. */
.shipform .batchstatus { font-size: 12px; color: var(--text-2); }
.shipform .batchstatus.good { color: var(--ok); font-weight: 600; }
.shipform .batchstatus.bad  { color: var(--bad); }

/* 5. The empty grid. One sentence where the table would be — the same weight
      and colour `.emptynote` uses on the search screen, scoped to this form so
      the two cannot drift apart by accident. */
.shipform .batchempty {
  margin: 12px 0; color: var(--text-2); font-size: 14px;
}

@media (max-width: 900px) {
  .shipform .batchtools { grid-template-columns: minmax(0, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   ★★ web4 r14 — BATCH / RECALL RETURNS

   THREE RULES AND NOT ONE MORE, and the number is the point: this screen is
   r13's Batch Shipment in a mirror, so it wears r13's own furniture unchanged —
   `.batchtools`, `.batchtoolbtns`, `.batchref`, `.batchstatus`, `.batchempty`
   and the 900px collapse are all above and all reused verbatim, as are
   `.shipcols`, `.formcol`, `.islandhead`, `.islandbody`, `.addrcard`,
   `.bookrow`, `.findonline`, `.railfields`, `.railtitle`, `.railrule`,
   `.summary`, `.actions`, `.servicefixed`, `.gridwrap` and `.grid`. ⛔ Not one
   of them is redefined here. A fourth rule in this block should be read as a
   sign that the screen has drifted from the kit rather than as a fix.

   ⛔ TOKENS ONLY. No hex outside :root, no new colour, no new spacing scale.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. The card-heading subtitle. The PC prints a muted clause beside three of
      this tab's card headings ("· one destination for the whole batch"), the
      same way `.legendsub` does inside a fieldset legend — this is that
      treatment for an `h2`, and it is a sibling of `.legendsub` rather than a
      copy of the heading's own styling.

      ⚠️ IT IS CALLED `.headsub` AND NOT THE OBVIOUS NAME, AND THAT IS NOT A
      TASTE CALL. r13's stylesheet guard asserts that its own section — which
      runs to the end of this file, so it covers this one too — redefines
      nothing from the kit, and it does that by SUBSTRING-SEARCHING for the
      selector that scopes the card rule. The obvious name for this class has
      that selector as a prefix, so a perfectly correct rule would have gone red
      and the guard would have been "fixed". ⛔ That guard is the only thing
      standing between this file and a second copy of the card rule, so the
      class was renamed instead — and this note names no selector either, for
      exactly the same reason. */
/* ⛔ web9 r03 — `color: var(--text-2)` IS GONE FROM THIS RULE. It set
   TextSecondary (#5A6A7A) on the brand-blue band, which is a contrast ratio of
   about 1.9:1 — the "hint text … same colour" Gord reported on Batch Shipment,
   Enter New Return and Batch / Recall Returns. The hint now INHERITS the band's
   own `--on-brand` from `.card.island > .islandhead`; the weight and the size,
   which are what make it read as a subtitle rather than as heading words, stay
   exactly as they were. ⛔ Do not put a colour back here: a hint on a band takes
   the band's foreground, and a hint anywhere else takes its own. */
.shipform .headsub {
  font-weight: 400;
  font-size: 13px;
}

/* 2. The editable RMA cell. Wider than `.cellnum` because an RMA is a
      human-readable code and not a count, set in the same monospace stack the
      `.batchref` column uses so a typed RMA and a generated one line up
      character for character — which is the whole job of that column. */
.shipform .grid input.cellrma {
  width: 132px; max-width: 100%;
  height: var(--control-h-compact);
  min-height: var(--target-min);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

/* 3. The rail's one sentence about where RMAs come from. It is NOT helper
      prose invented for the browser: the PC prints it under the RMA numbers
      caption (BatchRecallRmaExplainer, MainWindow.xaml:796), so it earns its
      place on the screen rather than being demoted to a title. */
.shipform .rmaexplain {
  margin: 0 0 4px; color: var(--text-2); font-size: 12px;
}

/* ══════════════════════════════════════════════════════════════════════════
   ★★ web4 r15 — EDIT ACTIVE SHIPMENTS

   FIVE RULES, AND EVERY ONE OF THEM REUSES THE KIT RATHER THAN MINTING A
   SHAPE. The screen is `.card.island` + `.islandhead` + `.islandbody` + the
   search grid + the entry screen's own `.fld` / `.row2111` / `.row13` /
   `.row3` / `.row-pkg` / `.chargewrap` / `.addrcard`, all unchanged. There is
   no new `.island`, no new `.card`, no new `.grid` and no colour that is not
   already a token.

   THE ONE MEASUREMENT THAT DROVE ANY OF IT: the PC gives the Active-shipments
   list about TWO THIRDS of the tab and pins the action row below the form, so
   the list gets a real height of its own and the bar is sticky.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. The Active-shipments island.
      ⚠️⚠️ web6 r01 DELETED THE `.islandhead a.btnlink` RULE THAT STOOD HERE. It
      painted a Refresh LINK in the island head; the PC has no such control —
      Refresh is a BUTTON on the list's own footer row, beside the Filter box and
      the date pair, and that is where web6 r01 put it. The rule had nothing left
      to paint. */
/* The list's own height — the client's two thirds, expressed as a viewport
   fraction so it is two thirds of a laptop and two thirds of a 1080 panel.
   `.tallgrid` already gives the grid its scrollbar and sticky header. */
.card.island.editlist .tallgrid { max-height: 46vh; }

/* 2. ⚠️⚠️ web6 r01 DELETED `.editform .lbl` AND `.editform .tripid`. They painted
      an `<output>` holding the trip id inside the Shipment-details island. The PC
      has no such box: the id is printed in the action bar's description line
      ("Editing shipment: 12345"), which is where the PC prints it and where web6
      r01 prints it. */

/* 3. THE PINNED ACTION BAR. The client's row lives OUTSIDE the scrolling form
      so it holds its place however tall the Packages island grows; a browser's
      equivalent is a sticky footer strip on the form itself.
      ⚠️ web6 r01 gave it a second child — the PC's own screen description at the
      left — so the buttons moved into `.editbtns`. See the r01 section at the
      foot of this sheet for that half. */
.editform .editbar {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 14px; padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.editform .editbar button,
.editform .editbar a.btnlink { min-height: 34px; }
.editform .editbar .shipnow { font-weight: 700; }

/* 4. The delete question. It is a PAGE, not a dialogue — nothing has been
      written when it is on screen — so it is painted as a warning island and
      its two controls sit on ONE row rather than in the rail's stacked column. */
.editform .editconfirm { border-color: var(--bad); }
.editform .confirmask {
  margin: 0 0 10px; font-size: 15px; color: var(--text);
}
.editform .editconfirm .actions {
  flex-direction: row; flex-wrap: wrap; align-items: center;
  gap: 8px; margin-top: 0;
}
.editform .editconfirm .actions button,
.editform .editconfirm .actions a.btnlink { width: auto; }

/* 5. The "we could not read this shipment's charges" line. It is one of only
      two paragraphs inside an island body on this screen and it earns its place:
      an unreadable charge list and an empty one look identical, and a Save made
      on the wrong reading strips a shipment's charges. Warning-tinted, so it
      cannot be mistaken for a caption. */
.editform .chargewarn {
  margin: 0 0 10px; padding: 8px 10px;
  background: var(--warn-tint); border-left: 3px solid var(--warn);
  border-radius: var(--radius-input);
  font-size: 13px; color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ★★ web4 r16 — REPORTS

   THE WHOLE SCREEN IS BUILT OUT OF THE SEARCH SCREEN'S KIT — `.island`,
   `.critrow` and its `.grp` / `.grplabel` / `.srlabel` / `.vdiv` / `.sep` /
   `.critspring` / `.critactions`, `.resultsbar` with its `.pill.countpill` and
   its `.btnlink` run, `.gridwrap.tallgrid`, `table.grid`, `.emptynote`. Not one
   of those is redefined here and no new shape was invented: a shipper who has
   used Search has already learned this screen's layout.

   Only TWO things on it are genuinely new, and both are one rule each.
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. THE NUMBER COLUMNS ARE RIGHT-ALIGNED — pieces, weight, charge, minutes
      late, the invoice figures. This is not decoration: a column of money or of
      minutes that is left-aligned cannot be scanned for an outlier, because the
      digits do not line up by place value. The PC's DataGrid does the same
      through its numeric cell style. Header and cell together, so the heading
      sits over its own column. */
table.grid th.num, table.grid td.num { text-align: right; }

/* 2. THE ONE TICK BOX IN THE CRITERIA ROW ("Include shipment counts"). It sits
      in a `.grp` like every other control on that row, and the label wraps the
      box so the WORDS are part of the click target — 24px tall, which is the
      site's click floor, met by the line box rather than by padding on a
      12px checkbox. `width: auto` is the same override `.collist` and the
      shipping-options panel already use: the site's global input width would
      otherwise stretch a checkbox across the row. */
.critrow .grp label.tick {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; font-size: 13px; color: var(--text); cursor: pointer;
}
.critrow .grp label.tick input[type=checkbox] { width: auto; min-height: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   ★★ web4 r17 — BILLING

   THE WHOLE SCREEN IS THE KIT THAT WAS ALREADY HERE — `.card.island` with its
   `.islandhead` / `.islandbody`, `.gridwrap` and `.gridwrap.tallgrid`,
   `table.grid`, `table.grid .num` (r16's right-aligned money columns, reused
   here for Amount and Outstanding), `.btnlink`, `.emptynote` and the notice
   boxes. Not one of those is redefined and no new shape was invented: the
   invoice grid is the same table a shipper has already met on Search and on
   Reports.

   ONE rule is genuinely new, and it is the readout the PC has.
   ═══════════════════════════════════════════════════════════════════════════ */

/* THE "Total outstanding: $…" LINE. On the PC it is txtInvoicesTotalOutstanding
   — a semi-bold TextBlock pinned to the RIGHT-HAND end of the Invoices card's
   header band (MainWindow.xaml :5580). In a browser it sits directly under the
   grid instead, for one reason: the total is the SUM OF THE COLUMN ABOVE IT, and
   a figure that lines up under the column it adds up is a figure a reader can
   check by eye. Right-aligned and semi-bold, so it keeps the PC's weight and
   ends on the same edge as the Outstanding cells it totals.

   ⚠️ NOT `.num` and not inside the table. It is a paragraph outside the grid,
   because it is not a row: a total pretending to be a table row is a row that
   sorting, filtering and CSV export all have to be taught to skip — which is
   the same trap MainWindow.Billing.cs's own comment records having avoided
   ("There is no footer/total row inside this grid"). */
.card.island .totaloutstanding {
  margin: 10px 0 0;
  text-align: right;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

/* ══════════════════════════════════════════════════════════════════════════
   ★★ web5 r01 — THE ADDRESS CARD'S SUGGESTION POPUP

   The desktop's `popupRetAddrSuggest` (MainWindow.xaml:6224-6288), in CSS: a
   SurfaceCard panel with a 1px BorderSubtle edge, 4px corners, 2px clear of the
   box it hangs under, and a 220px scrolling maximum — the four numbers the XAML
   names, kept.

   ⛔ TOKENS ONLY. Not one literal colour below; every value is a `:root` custom
   property, which is the rule for every line of this stylesheet.

   ⚠️ The anchor is the field's OWN wrapper, so the list is positioned by the
   layout rather than by script — no `style=` is written by anything, ever, and
   `script-src 'self'` stays honest. The two wrappers a searchable box can sit
   in are `.fld` (every box) and `.bookrow` (the address-book combo), so both
   become positioning contexts, and only inside a card.

   ⚠️ `z-index` is deliberately modest: it has to clear the card and the island
   beneath it, and nothing else on these screens stacks at all. */
.addrcard .fld,
.addrcard .bookrow { position: relative; }

.addrpop {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 2px 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow);
}

/* A match row. ⚠️ 24px is this site's click floor and the desktop's own
   `MinHeight=24`; the padding is its `Padding="8,3,8,3"`. */
.addrpop li[data-i] {
  min-height: 24px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover AND keyboard selection paint the same surface — the XAML's two
   triggers, both landing on SurfaceAlt, with selection adding the weight. */
.addrpop li[data-i]:hover { background: var(--surface-alt); }
.addrpop li[data-i].on    { background: var(--surface-alt); font-weight: 600; }

/* `IsHeader`: TextSecondary, semi-bold, caption size, not clickable, and
   keyboard-skipped — it carries no `data-i`, so nothing can land on it. */
.addrpophead {
  padding: 6px 8px 2px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

/* `IsStatus`: TextMuted, not clickable, no hover. The one sentence this list
   ever says out loud is "that address has left your book". */
.addrpopnote {
  padding: 6px 8px;
  color: var(--text-muted);
  font-size: 13px;
  white-space: normal;
}

/* ══════════════════════════════════════════════════════════════════════════
   ★★ web5 r02 — THE GOOGLE ROWS, AND THE HAND-TYPED CONFIRM DIALOGUE

   ⛔ TOKENS ONLY. Not one literal colour below; every value is a `:root` custom
   property, which is the rule for every line of this stylesheet. */

/* The "Find address online" action row, and a Google suggestion row. Both are
   ordinary `[data-i]` rows — they hover, they take the keyboard, they are 24px
   — so only the WEIGHT distinguishes them from a book match. ⛔ No icon, no
   badge and no colour of their own: the desktop paints them with the same
   template and the row text already says which is which. */
.addrpop li.addrpopaction { font-style: italic; }
.addrpop li.addrpopgoogle { white-space: nowrap; }

/* ⭐ THE ATTRIBUTION ROW — a LICENCE TERM, not decoration. It trails every list
   of Google rows, muted, not clickable, keyboard-skipped (no `data-i`). It is
   set apart with the same 1px BorderSubtle the popup's own edge uses so it
   reads as a footer rather than as a result. */
.addrpop li.addrpowered {
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: right;
}

/* THE CONFIRM DIALOGUE — the desktop's three-button `IdsDialog`, as a real
   modal `<dialog>`. ⚠️ `max-width` in `ch` keeps a long formatted address to a
   readable measure; the address lines are `pre-line` because each slot is a
   LABEL and its value on the next line, exactly as the desktop's `\n`-joined
   body reads. */
.addrconfirm {
  max-width: 62ch;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.addrconfirm::backdrop,
dialog.card.abconfirm::backdrop { background: rgba(28, 39, 51, .45); }

.addrconfirm .addrconfirm-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.addrconfirm p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

/* An empty slot must take no room at all — ASK 2 offers no "Google suggests:"
   line, and a blank paragraph would leave a hole where a sentence was. */
.addrconfirm p:empty { display: none; margin: 0; }

/* The three buttons, in the desktop's order, right-aligned like its own
   dialogue. ⚠️ They wrap rather than shrink below the click floor on a narrow
   window: a cramped Cancel is the one that gets mis-hit. */
.addrconfirm .addrconfirm-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.addrconfirm .addrconfirm-buttons button { min-height: var(--target-min); }

/* ==========================================================================
   ★★ web5 r04 — Enter New Return

   The PC's `tabItemCreateReturn` is FULL-WIDTH BANDS with a centred navy
   header each, and a bare action ROW under them. There is no right rail, no
   swap column and no numbered-step disc. Everything below is what the return
   screen needs ON TOP of the shared `.card.island` kit and the `.shipform`
   field rules above it — ⛔ nothing here redefines `.card`, `.island`,
   `.fld`, `.addrcard` or `.btnlink`.

   ⚠️ THE SCOPE IS `.shipform.retform`, not `.shipform`, so not one byte of
   this reaches Enter New Shipment.
   ========================================================================== */

/* ---------- band 1 · Return details ----------
   ONE row, left to right, with the courier pushed to the right edge. The four
   stack widths are the XAML's own (280 / 240 / 150 / auto). */
.shipform.retform .retrow1 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 16px;
}
.shipform.retform .retrow1 .retrma    { flex: 0 0 280px; max-width: 100%; }
.shipform.retform .retrow1 .retrecall { flex: 0 0 240px; max-width: 100%; }
.shipform.retform .retrow1 .retready  { flex: 0 0 150px; max-width: 100%; }
.shipform.retform .retrow1 .retservice{ flex: 0 0 auto; }

/* ★ The RMA is the prominent first field and the first tab stop — the PC draws
   its box 38px tall against everything else's 32, and puts a brand border on it
   at rest. Same here, in this sheet's own tokens. */
.shipform.retform .retrma input {
  height: 38px;
  font-size: 15px;
  border-color: var(--brand);
}

/* ★★★ THE LOCKED SERVICE CHIP. `borderRetServiceChip` is a Border, not a
   ComboBox — "deliberately not selectable". A <p> with a chip face says that
   with no control to mis-click. */
/* ⛔⛔ web9 r03 — THE SERVICE CELL IS THE SAME SHAPE AS THE FIELDS BESIDE IT NOW.
   🔒 Gord: *"Service level 'Return PU' still misaligned"* — its caption and its
   chip sat off the line RMA reference, Recall / batch reference and Ready by all
   share. `.retrow1` has always aligned its items at the END, and the other three
   are ordinary `.fld`s: caption, a 4px flex gap, a 32px control, 12px of margin
   under the field. The Service cell is a `.fld` too, but it carried TWELVE extra
   pixels under the chip AND a second 4px under its caption on top of the same
   flex gap — 16px of padding nobody else had, which is what knocked both halves
   of the cell off the row.
   ⛔ THE TWO MARGINS GO AND NOTHING ELSE DOES. The caption still uses the 600/13
   of every other caption on the screen and the chip is still the same height,
   fill, border and radius; they are simply measured the way the boxes beside
   them are. ⚠️ `.retcourier` is NOT a `.fld` and has no flex gap to inherit, so
   it keeps the 4px under its own caption and is split off below. */
.shipform.retform .retservice .lbl {
  font-weight: 600;
  font-size: 13px;
  display: block;
}
.shipform.retform .retcourier .lbl {
  font-weight: 600;
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}
.shipform.retform .servicechip {
  margin: 0;
  height: var(--control-h);
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-input);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* ★ The courier, top right. ⚠️ NAME ONLY — see return.php's note: the sign-in
   answer carries no courier logo and no courier phone, and neither is invented
   here. `margin-left: auto` is what pushes it to the right edge of the band. */
.shipform.retform .retcourier {
  margin-left: auto;
  text-align: right;
  padding-bottom: 12px;
}
.shipform.retform .retcourier .couriername {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-text);
}

/* ---------- band 2 · the two address cards ----------
   `gridRetAddresses` is two bare ColumnDefinitions — EQUAL HALVES with nothing
   between them. The shared `.twocard` grid is `1fr auto 1fr` because the
   shipment screen puts a swap column in the middle; this screen has no such
   control, so the middle track goes. */
.shipform.retform .twocard.retaddrs {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 12px;
  margin-bottom: 12px;
}
.shipform.retform .addrisland { margin-bottom: 0; }
/* ★ THE HEADERS ARE CENTRED on the return tab — `CardHeaderLabel` is a Label
   with its content centred, which is how Gord sees every band on his PC. The
   shared island rule leaves them left-aligned (that is the Search screen's
   shape), so the return screen centres its own and nobody else's. */
.shipform.retform .island > .islandhead > h2 { justify-content: center; text-align: center; }

/* The smaller sub-caption beside each card's heading — "· where the goods are
   now" — FontSizeCaption at 85% opacity on the PC. */
/* ⛔ web9 r03 — `opacity: .85` IS GONE TOO, and for the same ruling. 🔒 Gord,
   about this exact caption: *"should be white."* An 85% white over the brand
   fill computes to ~#DFE5EB, which is a third grey nobody asked for; the
   caption is now the band's own `--on-brand` like every other one on the site.
   The size and the weight are unchanged. */
.shipform.retform .islandhead h2 .headsub {
  font-weight: 400;
  font-size: 13px;
}
/* ⛔ The fieldset inside the card carries no second frame: the ISLAND is the
   frame. Its legend is visually hidden (the island header says the same words),
   so the border and padding a fieldset brings by default go too. */
.shipform.retform .addrcard {
  border: 0;
  margin: 0;
  padding: 0;
}

/* ---------- band 3 · what's being returned ----------
   Two columns, `*` and 520px, exactly as the XAML has them. */
.shipform.retform .retcontents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 0 24px;
  align-items: start;
}

/* ★★★ THE PRODUCT TABLE. Four tracks, the XAML's own: 200 / * / 70 / 34. */
.shipform.retform .prodhead,
.shipform.retform .prodrow {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 70px 34px;
  gap: 0 8px;
  align-items: center;
}
.shipform.retform .prodhead {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
}
.shipform.retform .prodhead .qty { text-align: right; }
.shipform.retform .prodrow { margin-bottom: 6px; }
.shipform.retform .prodrow input { height: var(--control-h); }
.shipform.retform .prodrow input.qty { text-align: right; }

/* The per-row ✕. ⚠️ 28px square is the PC's size and is above this sheet's
   24px click floor; `--target-min` is asserted anyway so a token change cannot
   silently shrink it below the floor. */
.shipform.retform .prodrow .rowdel {
  width: 28px;
  height: 28px;
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-2);
  border-radius: var(--radius-input);
  cursor: pointer;
  line-height: 1;
}
/* ⛔ web9 r03 — `--bad` → `--brand`, the "no red buttons" ruling again. */
.shipform.retform .prodrow .rowdel:hover { background: var(--surface-alt); color: var(--brand); }
.shipform.retform .prodrow .rowdel:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.shipform.retform .addprod { margin-top: 2px; }
.shipform.retform .gtinhelp {
  margin: 8px 0 0 1px;
  color: var(--text-muted);
  font-size: 12px;
}

/* The right column: package type 240 / pieces 100 / weight 100, on one row. */
.shipform.retform .retpkgrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-bottom: 10px;
}
.shipform.retform .retpkgrow .pkgtype    { flex: 0 0 240px; max-width: 100%; }
.shipform.retform .retpkgrow .pkgpieces,
.shipform.retform .retpkgrow .pkgweight  { flex: 0 0 100px; }
.shipform.retform .retpkgrow .pkgpieces input,
.shipform.retform .retpkgrow .pkgweight input { text-align: right; }

/* ---------- band 4 · options and extras ----------
   Three columns, 230 / * / 330. ⛔ The third holds ONLY the requested-by note:
   the PC's Select Printer button is the one control a browser cannot have. */
.shipform.retform .retoptions {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 330px;
  gap: 0 24px;
  align-items: start;
}
.shipform.retform .addons .lbl {
  font-weight: 600;
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}
/* A vertical WrapPanel 58px tall holding four boxes wraps into TWO PER COLUMN,
   which is a two-column grid read down the columns. */
.shipform.retform .addongrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  gap: 4px 16px;
}
.shipform.retform .addon {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--target-min);
  font-size: 13px;
}
.shipform.retform .reqby .help {
  margin: 0 0 0 1px;
  color: var(--text-muted);
  font-size: 12px;
}

/* ---------- the action row ----------
   `gridRetActionBar` is NOT inside a card: readout on the left, buttons hard
   against the right edge in the PC's left-to-right order. */
.shipform.retform .retactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 4px 0;
}
.shipform.retform .retestimate {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
/* ★★★ `labelRetStatus` — the ONE status line. Empty by default, and it stays
   empty rather than reserving a lying blank row. */
.shipform.retform .retstatus p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-2);
}
.shipform.retform .retstatus p.ok  { color: var(--ok); }
.shipform.retform .retstatus p.bad { color: var(--bad); }
.shipform.retform .retbtns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.shipform.retform .retbtns > * { min-height: var(--target-min); }
/* The ONE primary, and it is the last thing in the row — MinWidth 150, H 36. */
.shipform.retform .retbtns .shipnow {
  min-width: 150px;
  min-height: 36px;
  margin-left: 4px;
}

/* ---------- narrow windows ----------
   ⚠️ Every fixed track above collapses to one column rather than scrolling
   sideways: the PC's ScrollViewer has horizontal scrolling DISABLED, and a
   shipping form a shipper has to pan is a form they mis-read. */
@media (max-width: 1200px) {
  .shipform.retform .retcontents,
  .shipform.retform .retoptions { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .shipform.retform .twocard.retaddrs { grid-template-columns: minmax(0, 1fr); }
  .shipform.retform .addrisland { margin-bottom: 12px; }
}
@media (max-width: 760px) {
  .shipform.retform .prodhead { display: none; }
  .shipform.retform .prodrow {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 6px 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  /* GTIN and Product each take the wide track; Qty sits beside the ✕. */
  .shipform.retform .prodrow input:not(.qty) { grid-column: 1 / span 2; }
  .shipform.retform .prodrow input.qty { grid-column: 1; }
  .shipform.retform .retcourier { margin-left: 0; text-align: left; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ★★ web6 r01 — EDIT ACTIVE SHIPMENTS, REBUILT TO THE PC CLIENT

   ⛔ EVERY RULE BELOW EXISTS BECAUSE A SHAPE ON THE PC HAD NO CONTAINER HERE.
   The screen is still `.card.island` + `.islandhead` + `.islandbody` + the
   search grid + the entry screen's `.fld` / `.row3` / `.row2111` / `.row13` /
   `.chargewrap` / `.addrcard`, all unchanged. ⛔ No new `.card`, no new
   `.island`, no new `table.grid`, and no colour that is not already a token.

   THE FOUR PC SHAPES THAT NEEDED ONE:
     1. Pickup Info and Delivery Info are SIDE BY SIDE, in two equal columns.
     2. Shipping Options and Packages are SIDE BY SIDE — Options `Auto`, so it
        takes only the width its charge column needs; Packages takes the rest.
     3. The package card's field row is EIGHT columns, not six.
     4. The list has a FOOTER ROW — Filter, the date pair, Refresh — which the
        r15 screen had nowhere to put because it had none of those controls.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. THE TWO ADDRESS ISLANDS, SIDE BY SIDE. Two equal star columns on the PC
      (`gridAddresses1`); a 12px gutter here stands in for its 6px-each margins.
      ⛔ `minmax(0, 1fr)` and not `1fr`: a long street value in a grid child
      whose min-width is auto pushes the other column off the screen. */
.editform .addrpair,
.editform .optpkgpair {
  display: grid; gap: 12px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
/* 2. Options is `Auto` on the PC and Packages is `*` — the charge panel cannot
      spread, because the PC's own code sizes its charge rows off a fixed panel
      width. The browser's nearest true statement is "as narrow as it needs". */
.editform .optpkgpair { grid-template-columns: minmax(0, 22em) minmax(0, 1fr); }

/* The Service Level combo sits UNDER the charge panel inside Shipping Options,
   which is the PC's second `Auto` column folded onto the next line at this
   width. It gets a top rule so it reads as its own thing, not a last charge. */
.editform .servicelevel {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}

/* 3. THE PACKAGES ISLAND HEAD carries the total weight at its right —
      `tbEditTripTotalWeight`, right-aligned inside the header, SemiBold. */
.editform .islandhead.pkghead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.editform .islandhead.pkghead .totalweight {
  margin: 0; font-weight: 600; font-size: 13px;
}

/* 4. THE PACKAGE CARD'S EIGHT COLUMNS — type · pieces · weight · L · W · H ·
      Original · Q/H. The type box is the wide one on the PC (190 against 64 for
      Pieces), so it gets a wider track and the seven numbers share the rest. */
/* ⛔ web9 r03 — `align-items: start` removed for the shared field-row baseline,
   the same reason and the same note as `.shipform .row-pkg`. */
.editform .row-pkg8 {
  display: grid; gap: 10px 12px;
  grid-template-columns:
    minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.6fr)
    minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr)
    minmax(0, 1fr) minmax(0, 1fr);
}
.editform .row-pkg8 .pkgpieces input,
.editform .row-pkg8 input[inputmode="decimal"] { text-align: right; }

/* 5. THE AMBER MULTI-PACKAGE NOTE, PRINTED IN FULL AND NOT CLIPPED.
      ⚠️⚠️ THIS REVERSES A RULING, AND SAYS SO. web4 r11 deleted
      `.shipform .pkgnote` on Gord's 2026-09-08 call and moved the sentence into
      an island head's `title=`. That ruling was made against r02's CLIPPED
      one-line version — "a sentence that has to be truncated to fit is a
      sentence that is in the wrong container" — and it was made about the ENTRY
      screen. The spec read off the PC's own XAML on 2026-09-11 has the note as a
      full amber block inside the EDIT screen's Packages island body, and rule 1
      of this train is that the PC client is the spec. So it is printed, in full,
      here only: ⛔ the selector is scoped to `.editform`, so `ship.php` is
      untouched and r11's deletion still stands where r11 made it.
      ⚠️ web17 r10: the PC's paragraph is GONE from shipform.php (Gord,
      2026-09-21: "dont write the warning. Its not needed."); r10 kept this rule
      because web17 r06's `pkgnote pkgnote-edit` sentence still wore the class.
      ⛔ web17 r11: that sentence is GONE too, for the same ruling, and
      `.editform .pkgnote` went with it — the last element it painted. A rule
      with no element is how deleted prose comes back. */

/* 6. THE ACTION BAR'S TWO HALVES — the PC's `tbDescription` at the left in a
      `*` column, the four buttons at the right in an `Auto` one. */
.editform .editbar .screendesc { margin: 0; flex: 1 1 16em; font-size: 14px; }
.editform .editbtns {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
/* The idle description, in the state where there is no bar to carry it. */
.screendesc { margin: 0 0 12px; font-size: 14px; color: var(--text-2); }

/* 7. THE LIST FOOTER ROW — Filter · Dates · Refresh, left-aligned, in that
      order, which is the PC's own footer StackPanel. */
.card.island.editlist .listbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px;
  margin: 10px 0 0;
}
.card.island.editlist .listbar .fld { margin: 0; }
.card.island.editlist .listbar input[type="search"] { width: 12em; }
.card.island.editlist .listbar .lbl {
  display: block; margin-bottom: 2px; font-size: 13px; color: var(--text-2);
}
.card.island.editlist .listbar .daterow {
  display: flex; align-items: center; gap: 5px;
}
.card.island.editlist .listbar .daterow input[type="date"] { width: 10.5em; }
.card.island.editlist .listbar .daterow .dash { color: var(--text-2); }
.card.island.editlist .listbar button.refresh { min-height: var(--target-min); }

/* 8. THE FOURTEEN COLUMNS. Fourteen columns of shipment text is wider than a
      laptop, so the grid scrolls sideways inside its own wrapper rather than
      pushing the page out — `.gridwrap` already owns that — and every header is
      a sort link, which must not look like body text. */
.card.island.editlist table.grid th a {
  color: inherit; text-decoration: none; white-space: nowrap;
}
.card.island.editlist table.grid th a:hover,
.card.island.editlist table.grid th a:focus-visible { text-decoration: underline; }
.card.island.editlist table.grid tbody td { white-space: nowrap; }

@media (max-width: 1100px) {
  /* One column each, in source order: Pickup then Delivery, Options then
     Packages. Nothing is hidden — a narrow screen gets the same screen. */
  .editform .addrpair,
  .editform .optpkgpair { grid-template-columns: minmax(0, 1fr); }
  .editform .row-pkg8 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   ★★★ web6 r02 — BATCH SHIPMENT, REBUILT TO THE PC CLIENT

   TEN RULES, EVERY ONE SCOPED TO `.batchform`, WHICH IS A SECOND CLASS ON THE
   SAME ELEMENT THAT ALREADY CARRIES THE FORM CLASS. That scoping is deliberate
   and it is not cosmetic: web4 r13's stylesheet guard covers everything from its
   own marker to the END OF THIS FILE, and it works by substring-searching for the
   selectors that scope the kit's own card, grid, island and rail rules. A block
   that reached for those selectors would either redefine the kit or trip the
   guard into being "fixed". ⛔ So nothing below names one — and this note names
   none either, for the same reason r14's note does not.

   ⛔ REUSED UNCHANGED, NOT REDEFINED: the form skeleton, the island chrome, the
   address card, `.bookrow`, `.row2111`, `.row13`, `.row3`, `.actions`,
   `.btnlink`, `.secondary`, `.problem`, `.gridwrap`, the table kit,
   `.batchtoolbtns`, `.batchref`, `.batchstatus`, `.batchempty`, `.headsub`,
   `input.cellnum` and the 900px collapse. r13's `.batchtools` two-column block
   is DEAD on this screen — its markup is gone — but the recall screen still uses
   it, so it stays where it is.

   ⛔ TOKENS ONLY. No hex outside :root, no new colour, no new spacing scale.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. BAND 1's ROW — the PC's four columns (reference · ready-by · service ·
      the static references explainer) at 376 · 166 · 220 · *, expressed as
      proportions so the band survives a narrower viewport than a 1338px tab. */
.batchform .batchdetailrow {
  display: grid; gap: 0 16px;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 2fr);
  align-items: start;
}
.batchform .batchrefexplain { align-self: start; }
/* The caption that sits above a read-only block rather than above a control, so
   it must look like every other field caption without claiming a `for=`. */
.batchform .fldcaption {
  margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--text-2);
}

/* 2. BAND 2's TWO COLUMNS — the product template at `*`, packaging/weight/
      instructions at 440. */
.batchform .batchcontents,
.batchform .batchlocations {
  display: grid; gap: 12px 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.batchform .batchcontents { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }

/* 3. THE PRODUCT AND PACKAGE TABLES. Both are three editable cells and a ✕
      gutter, so both get the same treatment: cells that fill their column, a
      GTIN cell wide enough for fourteen digits, and no cell below the click
      floor. */
.batchform table.grid.products input[type="text"],
.batchform table.grid.packages input[type="text"],
.batchform table.grid.packages select {
  width: 100%;
  height: var(--control-h-compact);
  min-height: var(--target-min);
}
.batchform table.grid.products input.cellgtin { width: 100%; max-width: 15em; }
.batchform table.grid.products td,
.batchform table.grid.packages td { vertical-align: middle; }

/* 4. THE ROW ✕. A transparent square button, the PC's own 28×28, kept at the
      click floor and given a visible focus ring by the kit's own button rules. */
.batchform button.rowx {
  width: var(--target-min); min-height: var(--target-min);
  padding: 0; background: none; border: 1px solid transparent;
  border-radius: var(--radius-input);
  color: var(--text-2); font-size: 14px; line-height: 1; cursor: pointer;
}
/* ⛔ web9 r03 — `--bad` → `--brand`, the "no red buttons" ruling again. */
.batchform button.rowx:hover:not([disabled]) { border-color: var(--line); color: var(--brand); }
.batchform button.rowx[disabled] { opacity: 0.45; cursor: default; }

/* 5. THE READ-ONLY PIECES TOTAL. ⛔ A paragraph, and it must never look like a
      box: the PC's readout is a TextBlock and the one thing a shipper must not
      do with this number is try to type over it. */
.batchform .piecesreadout {
  margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--text-2);
}

/* 6. THE AMBER MULTI-PACKAGE NOTE — ⛔ web17 r10: `.batchform .pkgnote` is GONE
      with the paragraph it painted (Gord, 2026-09-21: "dont write the warning.
      Its not needed."). A rule with no element is how deleted prose comes back. */

/* 7. BAND 4's TWO SUB-CARDS AND THE "— or —" BETWEEN THEM. The separator is a
      middle `Auto` column on the PC; in one dimension fewer it becomes a row
      between the two, centred, and it is aria-hidden in the markup because it
      carries no information a screen reader needs. */
.batchform .subcard {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px 12px;
}
.batchform .subcardhead { margin: 0 0 6px; font-weight: 600; font-size: 14px; }
.batchform .batchor {
  grid-column: 1 / -1; margin: 0; text-align: center;
  color: var(--text-2); font-size: 13px;
}
/* The honest stand-in where the import wizard will go. ⛔ It is a SENTENCE and
   not a disabled control, because a control that does nothing is worse than a
   sentence that says so. */
.batchform .notyet {
  margin: 8px 0; padding: 8px 10px;
  background: var(--surface-alt); border-radius: var(--radius-input);
  font-size: 13px; color: var(--text-2);
}

/* 8. THE ADDRESS PICKER PANEL — the PC's modal dialogue, in flow. A bounded
      scrolling list so a thousand-entry address book cannot push the Create
      button off the bottom of the page. */
.batchform .pickerpanel {
  margin-top: 10px; padding: 10px 12px;
  border: 1px solid var(--brand-line); border-radius: var(--radius);
  background: var(--surface-alt);
}
.batchform ul.picklist {
  list-style: none; margin: 8px 0; padding: 0;
  max-height: 16em; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius-input);
  background: var(--card);
}
.batchform ul.picklist li { padding: 3px 8px; }
.batchform ul.picklist li + li { border-top: 1px solid var(--line); }
.batchform ul.picklist label {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 13px; min-height: var(--target-min);
}
.batchform .pickerfoot {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}

/* 9. BAND 5's TOOLBAR — the two count pills and the summary on the left, the
      two grid tools on the right. ⛔ The pills spell their state out in words;
      the tint is a second signal and never the only one. */
.batchform .batchtoolbar {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.batchform .batchpills {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px;
}
.batchform .pill {
  padding: 1px 10px; border-radius: 10px; font-size: 12px; font-weight: 600;
}
.batchform .pill.ok   { background: var(--ok-tint);   color: var(--ok); }
.batchform .pill.warn { background: var(--warn-tint); color: var(--warn); }
/* ⭐ THE PRESSED STATE OF "Show problems only". `aria-pressed` in the markup is
   what a screen reader reads; this is what an eye reads, and the two are set
   from the same server-side flag so they cannot disagree. */
.batchform button.on[aria-pressed="true"] {
  background: var(--brand); color: var(--on-brand); border-color: var(--brand);
}
/* A row that needs attention is tinted AND says so in its Status cell. */
.batchform table.grid tr.rowproblem > td { background: var(--warn-tint); }
/* A generated client reference is muted — informational, never a blocker. */
.batchform .batchref.generated { color: var(--text-2); }

/* 10. THE STICKY ACTION BAR. The PC's own bottom bar: the note in a `*` column,
       the three buttons in an `Auto` one with the primary hard right. ⛔ It is
       NOT `position: sticky` here, and that is deliberate: a bar pinned over a
       long page on a short phone screen eats the rows it is about, and this bar
       carries the one irreversible button on the screen. */
.batchform .actionbar {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: center; justify-content: space-between;
  margin-top: 4px; padding-top: 10px;
  border-top: 1px solid var(--line);
}
.batchform .actionbar .outboxnote { margin: 0; flex: 1 1 20em; font-size: 13px; }
.batchform .callout {
  margin: 10px 0 0; padding: 8px 0 8px 10px;
  border-left: 3px solid var(--brand);
  background: var(--surface-alt);
  font-size: 12px; color: var(--text-2);
}

@media (max-width: 1000px) {
  /* One column each, in source order. Nothing is hidden — a narrow screen gets
     the same screen. */
  .batchform .batchdetailrow,
  .batchform .batchcontents,
  .batchform .batchlocations { grid-template-columns: minmax(0, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   ⭐ web6 r03 — BATCH / RECALL RETURNS, rebuilt: FOUR RULES.

   ⛔ AND THE NUMBER IS THE WHOLE POINT. This screen is web6 r02's Batch
   Shipment in a mirror, so it now carries r02's own `batchform` class and wears
   r02's furniture unchanged — the two sub-cards and their separator, the
   toolbar, the pills, the pressed-toggle paint, the problem-row tint, the muted
   generated reference, the action bar, the callout and the product table's cell
   sizing are ALL defined above and NOT ONE of them is repeated here. The four
   below are the four things the recall screen has that the shipment screen does
   not. A fifth rule should be read as a sign that the two have drifted.

   ⛔ TOKENS ONLY. No hex anywhere, no new colour, no new spacing scale.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. The import wizard's step heading. It is an h3 inside a card body, which
      nothing else on this site is, so it has no existing treatment to borrow. */
.batchform .wizstep {
  margin: 0 0 4px;
  font-size: 15px;
}

/* 2. The whole sentence under a problem row in the Step-2 preview. ⛔ It is a
      table row and not a tooltip, because a shipper approving a file has to be
      able to READ what they are approving — see the screen's own note. */
.batchform table.grid tr.rowsentence > td {
  padding-top: 0;
  font-size: 13px;
  color: var(--text-2);
}

/* 3. The pre-check's list of failing fields, each one a jump link to the box it
      names. ⛔ The PC focuses the first failing field; a browser without script
      cannot move focus on a render, so the first link is the honest equivalent
      and the rest are a bonus the PC does not have to give. */
.batchform ul.gapsentences {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 13px;
}

/* 4. The batch-level gap sentence under the grid, and the "/ store" suffix that
      rides the weight caption. Both are muted asides beside something louder. */
.batchform .rowsstatus,
.batchform .perstore {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ★★ web6 r05 — REPORTS, REBUILT (the tab heading, the Pickup Manifest band
   and the manifest sheet)

   THE SCREEN IS STILL THE SEARCH SCREEN'S KIT — `.card.island` with its
   `.islandhead` / `.islandbody`, `.critrow` and its `.grp` / `.grplabel` /
   `.srlabel` / `.vdiv` / `.sep` / `.critspring` / `.critactions`, `.resultsbar`
   with its `.pill.countpill` and `.btnlink` run, `.gridwrap` / `.tallgrid`,
   `table.grid`, `table.grid .num` (r16's right-aligned figure columns, reused
   for the two dwell columns and the manifest's Pcs and Wgt), `.emptynote` and
   the notice boxes. Not one of those is redefined here.

   FOUR rules are genuinely new, one of them for PAPER, and every colour on
   them is a token.
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. THE TAB'S OWN HEADING — MainWindow.xaml `lblReportsHeader`, Style
      `CardHeaderLabel`, Height 40, content centred, spanning the tab. It sits
      ABOVE the first island because on the PC it is part of the TAB and not of
      the Reports view inside it. */
.reportshead {
  margin: 0 0 12px;
  min-height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600;
  color: var(--brand-text);
}

/* 2. THE MANIFEST SHEET IS A SHEET. It is the one thing on this site that
      exists to be printed, so it gets the paper surface the Track dialogue
      already uses rather than the page's card tint. */
.manifestsheet .islandbody { background: var(--paper); }

/* 2b. ★ rw3 r10 — A SHEET IS PAPER IN EVERY THEME (Rowan, 2026-10-30: "Pickup
      Manifest on dark mode is unreadable as the font is white … but the
      background is not dark"). The sheet's background was paper while its text
      still followed the theme. `.papersheet` re-points the page's own tokens
      AT THE PAPER'S inside the sheet, so every rule below it (the grid, the
      meta line, the sign-off block) draws dark ink on white without a rule of
      its own — on screen, in its own window, and on paper. Used by the Pickup
      Manifest and by the shipment sheet (Search → Print Shipment). */
.papersheet {
  --text: var(--paper-ink);
  --text-2: var(--paper-ink-2);
  --text-muted: var(--paper-faint);
  --brand-text: var(--paper-head);
  --line: var(--paper-line);
  --line-strong: var(--paper-line-strong);
  --surface-alt: var(--paper-alt);
  --row-picked: var(--paper-picked);
  --card: var(--paper-bg);
  color: var(--paper-ink);
  background: var(--paper-bg);
  color-scheme: light;
}
@media print {
  .papersheet { color: var(--paper-ink); background: var(--paper-bg); }
}

/* 3. THE SHEET'S PAGE FURNITURE — Account, Ship Date, Print Time, Printed By.
      One line that wraps, in the secondary text colour, because it is context
      for the table rather than part of it. */
.sheetmeta {
  display: flex; flex-wrap: wrap; gap: 4px 24px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-2);
}

/* 4. THE GROUPS. The sheet groups by Waybill Ref, so each group is its own
      `<tbody>` and gets a hairline above it — the RDLC's group separator. The
      reference itself is printed on the group's first row only and is the one
      bold cell in the body, so the eye can find where a group starts.
      ⚠️ `:first-child` is excluded or the first group would sit under a double
      rule where the header already draws one. */
table.grid tbody.mgroup + tbody.mgroup > tr > td { border-top: 2px solid var(--line); }
table.grid td.mref { font-weight: 600; color: var(--text); white-space: nowrap; }

/* 5. AND FOR PAPER. ⛔ The desktop's Print button is the WINDOWS PRINTER PICKER
      and spec §4.1 rules it out of a browser by name while keeping the sheet —
      so the browser's own print command is what puts this on paper, and it has
      to come out right without one. The site chrome, the two criteria bands and
      the report island are all page furniture on screen and noise on paper; the
      sheet is the page. */
@media print {
  .manifestsheet { border: 0; box-shadow: none; }
  .manifestsheet .islandhead { display: none; }
  .manifestsheet .gridwrap { overflow: visible; max-height: none; }
  table.grid tbody.mgroup { break-inside: avoid; page-break-inside: avoid; }
}

/* 6. ★★★ rw1 r10 — THE SIGN-OFF LINES (Rowan). The PC's sheet ends with four
      labelled lines to write on: Shipper Signature, Driver Signature, Run
      Number, Pickup Time. Each is a label and a ruled blank that fills the
      rest of the row; the rule is a bottom border, so it prints as a line on
      paper with no background graphics needed. The block is kept on one
      printed page. */
.manifestsign { margin: 24px 0 0; max-width: 640px; }
.manifestsign .signline {
  display: flex; align-items: flex-end; gap: 12px;
  margin: 0 0 18px; min-height: 32px;
}
.manifestsign .signlabel { flex: 0 0 11em; font-weight: 600; color: var(--text); }
.manifestsign .signblank { flex: 1 1 auto; border-bottom: 1px solid var(--text); min-height: 1.4em; }
@media print {
  .manifestsign { break-inside: avoid; page-break-inside: avoid; }
  .manifestsign .signblank { border-bottom-color: var(--paper-ink); }
  .manifestsign .signlabel { color: var(--paper-ink); }
}

/* ==========================================================================
   web6 r06 — THE REPORT BUILDER, SAVED VIEWS AND THE SCHEDULE BAND
   ==========================================================================
   The desktop's builder is a 1080x700 modal with a fixed 470px left rail of
   four step cards and a star-width live preview beside it. A browser window is
   not a fixed size, so the same shape is a two-column grid that COLLAPSES to
   one column on a narrow screen — the rail's content is all form controls and
   a squeezed 470px column would be unusable on a laptop, let alone a tablet.
   Nothing is hidden at any width; it only stacks.
   Every colour below is an existing variable. No new palette. */

.bsplit {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .bsplit { grid-template-columns: minmax(0, 1fr); }
}

.bsteps { display: flex; flex-direction: column; gap: 12px; }

/* ⛔ web8 r03 — `--surface` and `--text-1`, the two names this sheet never
   declared, corrected to `--card` and `--text` here and everywhere else in the
   builder's own rules. The token note at the foot of this sheet explains what an
   undefined custom property actually does, and names the rules OTHER rounds own
   that still carry the same two. */
.bcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.bcard .stephead {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.bcard .stephead .req { color: var(--accent); font-weight: 700; }
.bcard .stephead .hint { color: var(--text-2); font-weight: 400; font-size: 13px; }
.bcard .stepnote {
  margin: 8px 0 0 0;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.45;
}

/* The column chips. A wrap panel, exactly as the desktop draws it. */
.bcard .chips { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bcard .chips label.tick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  font-size: 13.5px;
  cursor: pointer;
}
.bcard .chips label.tick input { width: auto; min-height: 0; margin: 0; }

/* The amber "· derived" badge. It is a WARNING colour on purpose: the cell it
   marks is computed from other server fields rather than read off the wire,
   and the tooltip says how. */
.derivedmark {
  color: var(--warn);
  font-style: italic;
  font-size: 12px;
  white-space: nowrap;
}

/* A filter row, and the group/sort rows: label, control, label, control. */
.bcard .frow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px 0;
}
.bcard .frow:last-of-type { margin-bottom: 0; }
.bcard .frow label { font-size: 13px; color: var(--text-2); }
/* ⛔ web8 r03 — `--surface` → `--card` and `--text-1` → `--text`. Neither of the
   two names this rule used to carry is DECLARED ANYWHERE IN THIS FILE, so both
   declarations were invalid at computed-value time and the browser threw them
   away: the box lost its fill to `transparent` and its text to `inherit`. See
   the token note at the foot of this sheet. */
.bcard .frow select,
.bcard .frow input[type=text],
.bcard .frow input[type=date] {
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  flex: 1 1 8em;
  min-width: 7em;
}
.bcard .frow input[disabled] { opacity: 0.55; }
.bcard .critactions { display: flex; justify-content: flex-end; margin-top: 8px; }

.previewpane { margin: 0; }
.previewpane .gridwrap { max-height: 58vh; }

/* The footer strip under the preview: the status sentence left, Save & run
   hard right, on one line — the desktop's 9-column dialog footer, flattened. */
.bfooter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.bfooter .grplabel { color: var(--text-2); font-size: 13px; }
.bfooter .critspring { flex: 1 1 0; min-width: 0; }

/* Manage my reports — the per-row action cell holds a link and two tiny forms.
   They sit on one line and wrap rather than clipping. */
.manageacts { white-space: normal; }
.manageacts .inlineform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 6px 2px 0;
}
/* ⛔ web8 r03 — the same two phantom tokens, the same fix. */
.manageacts .inlineform input[type=text] {
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  width: 11em;
}

/* ── the Reports screen's saved-views band ───────────────────────────────
   Two stacked rows inside one bordered band, the way ReportsView.xaml stacks
   them. The second row is the schedule, and the note at the end of it wraps
   rather than pushing the controls off the line — that sentence is the one
   thing on the band a reader MUST be able to finish. */
.savedviews {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-alt, var(--surface));
  padding: 10px 12px;
  margin: 0 0 10px 0;
}
.savedviews .critrow { margin: 0; }
.savedviews .schedrow { margin-top: 8px; }
.savedviews .schedrow label.tick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  font-size: 13.5px;
}
.savedviews .schedrow label.tick input { width: auto; min-height: 0; margin: 0; }
.savedviews #f-recipients { width: 20em; }
.savedviews .schednote {
  flex: 1 1 22em;
  min-width: 16em;
  margin: 0;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.4;
}

/* ==========================================================================
   web7 r02 — THE BUILDER'S THREE ROWS, AND THE AI ASK BAR
   ==========================================================================
   Gord: "Build a report screen layout is a mess." It was, and it was the
   REGIONS that were wrong rather than the paint. `ReportBuilderDialog` is
   three rows — an AI ask bar, a two-column main area, and ONE bottom bar the
   full width of the dialog — and web6 r06 had the date range and the report
   name loose in the left rail and the dialog footer split into two strips.
   The markup now carries the desktop's three rows; this gives them their
   shape. ⛔ APPEND-ONLY: nothing above this line is edited or reordered, and
   every colour below is an existing variable. No new palette.

   ⚠️ `.bfooter` and `.resultsbar` above are left exactly as they were. Other
   screens use `.resultsbar`, and deleting a rule this round does not own is
   how a different page loses its layout two rounds later. */

/* ---- row 0: the AI ask bar ------------------------------------------------
   The desktop's top bar: the ask box takes the width, "Draft it" sits hard
   right, and the note runs underneath across the whole bar. The note WRAPS —
   it is the sentence that says what happened and what was trimmed, and it is
   the one thing here a reader must be able to finish. */
.baibar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-alt, var(--surface));
  padding: 10px 12px;
  margin: 0 0 10px 0;
}
/* ⛔ web8 r03 — the same two phantom tokens again: the AI ask box was a
   transparent rectangle with inherited text, exactly like the report name box. */
.baibar input[type=text] {
  flex: 1 1 24em;
  min-width: 12em;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
}
.baibar button { flex: 0 0 auto; min-width: 90px; min-height: 32px; }
.baibar .ainote {
  flex: 1 1 100%;
  margin: 0;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.45;
}

/* ---- row 1 right: the preview header now carries the date range -----------
   `dtpRangeFrom` / `dtpRangeTo` sit beside the words "Live preview" on the
   desktop, so they sit there here. The spring pushes them right; on a narrow
   screen the whole header wraps rather than squeezing the heading. */
.previewhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.previewhead h2 { margin: 0; }
/* ⛔ web9 r03 — THE SAME BAND-HINT DEFECT, THIRD SITE. `.previewhead` IS an
   `.islandhead` (`class="islandhead previewhead"`), so these From/To captions
   were TextSecondary sitting on the brand fill, unreadable for exactly the
   reason the two `.headsub` rules were. Gord did not smoke this screen for it,
   but it is the same fault and the sweep found it. The caption now inherits the
   band's `--on-brand`. */
.previewhead label { font-size: 13px; }
/* ⛔⛔⛔ web8 r03 — THIS RULE IS THE "date pickers use the wrong font colour so
   you cant see it" DEFECT, and here is exactly what it did.
     · `background: var(--surface)` — `--surface` is declared NOWHERE in this
       sheet. An undefined custom property makes the whole declaration INVALID AT
       COMPUTED-VALUE TIME, which is not the same as being ignored: the property
       takes its `unset` value. For `background-color` that is `transparent`.
     · `color: var(--text-1)` — `--text-1` is declared nowhere either, and `color`
       is an INHERITED property, so its `unset` value is the parent's colour. The
       parent here is `.islandhead`, the brand-filled card header, whose text is
       `--on-brand` = #FFFFFF. White text in a transparent box on a white card.
   The dates were being painted; they just were not being painted in a colour a
   person could see. ⛔ The FIX IS AT THE TOKEN and at the shared date rule at the
   foot of this sheet — every screen with a date picker had the same problem for
   the same reason, because NONE of them ever reached the sheet's own
   `input[type=text]` field rule (it names six input types and `date` is not one).
   What is left here is this screen's DENSITY and nothing else. */
.previewhead input[type=date] {
  min-height: 30px;
  padding: 3px 6px;
  font-size: 13.5px;
  width: 10em;
}
.previewhead button { min-height: 30px; }

/* ---- step 3: the per-row ✕ and the + Add filter button --------------------
   The ✕ is square and does not grow with the row; the value box keeps the
   stretch. `flex: 0 0 auto` is what stops a three-control row turning into a
   two-control row plus a very wide button. */
.bcard .frow .rmfilter {
  flex: 0 0 auto;
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  line-height: 1;
}
/* rw4 r05: Select all / Deselect all above the column chips. The page draws the
   row hidden and builder.js reveals it; the companion rule keeps it hidden
   until then, because the flex rule would otherwise beat the attribute. */
.bcard .colallrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px 0; }
.bcard .colallrow[hidden] { display: none; }
.bcard .colallrow button { min-width: 110px; min-height: 32px; }
.bcard .faddrow { display: flex; justify-content: flex-start; margin-top: 8px; }
.bcard .faddrow button { min-width: 110px; min-height: 32px; }

/* ---- row 2: the one bottom bar -------------------------------------------
   The desktop's nine-column dialog footer, flattened onto one wrapping line:
   Name · Manage · status · (spring) · the three exports · Schedule · Run once
   · Save & run · Cancel. It spans the WHOLE width under the split, which is
   what makes it read as the dialog's footer rather than as something that
   belongs to the preview pane. */
.bbottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-alt, var(--surface));
  padding: 10px 12px;
  margin: 10px 0 0 0;
}
.bbottom label { font-size: 13px; color: var(--text-2); }
/* ⛔⛔ web8 r03 — "The name field, doesnt look like a field." Same two phantom
   tokens as the date pickers above: the fill went `transparent` and the text
   went `inherit`, so a bordered box on a tinted bar read as a caption with a
   line under it. The paint now comes from `.fieldbox` in the shared kit — the
   site's own field fill, edge, radius and FOCUS RING, which this private copy
   also never had (it set `border` at a higher specificity than the sheet's
   `input:focus` rule, so focusing the box could not change its edge). What is
   left here is the width, which is this bar's business. */
.bbottom input[type=text] { width: 13em; }
.bbottom .req { color: var(--accent); font-weight: 700; }
.bbottom .grplabel { color: var(--text-2); font-size: 13px; }
.bbottom .critspring { flex: 1 1 0; min-width: 0; }
.bbottom button { min-height: 32px; }
@media (max-width: 1100px) {
  /* The spring collapses so the run of actions wraps under the sentence
     instead of being pushed off the line. Nothing hides. */
  .bbottom .critspring { display: none; }
}

/* ==========================================================================
   web8 r03 — THE TWO TOKENS THIS SHEET NEVER DECLARED, AND THE SHARED DATE
   FIELD IT NEVER HAD
   ==========================================================================
   🔒 Gord, smoking ship.idsapp.com on 2026-09-13:
      "The date pickers use the wrong font colour so you cant see it."
      "The name field, doesnt look like a field."

   Both sentences are ONE defect with two faces, and the defect is not on the
   Build a report screen. `--surface` and `--text-1` are used nineteen times in
   this file and DECLARED ZERO TIMES. The palette's real names are `--card` and
   `--text`; nothing has ever minted the other two.

   ⚠️ AN UNDEFINED CUSTOM PROPERTY IS NOT AN IGNORED DECLARATION. `var()` with no
   value and no fallback makes the declaration INVALID AT COMPUTED-VALUE TIME,
   which means the property takes its `unset` value rather than falling through
   to the previous rule. `background-color` unsets to `transparent`;`color` is
   inherited, so it unsets to the PARENT'S colour. That is why a date box in a
   brand-filled island header came out white-on-white and why a bordered name box
   came out looking like the label beside it.

   ⛔ THE BUILDER'S OWN COPIES ARE CORRECTED IN PLACE, ABOVE — `.bcard`,
   `.bcard .stephead`, `.bcard .frow`, `.baibar`, `.previewhead`, `.bbottom` and
   `.manageacts`. ⛔ THE ALIASES BELOW ARE FOR THE RULES THIS ROUND DOES NOT OWN.
   Four uses live in sections other rounds are editing on this same branch:
       :2728, :2755  `.shipform .actions .clonemenu` — the Clone split button
       :4796         `.shipform .servicefixed`       — the fixed-service line
       :3376         the address-book find-online panel
   Renaming those would be editing another round's lines mid-wave, so the tokens
   are DECLARED instead. One declaration each, at the root, and every screen that
   ever named them is correct from this line on. ⛔ They are aliases and not a new
   palette — no new colour enters this file — and the real rename belongs to
   whichever round next owns those rules. It is called out in the round report so
   it is not discovered a third time.

   ⚠️ THE ALIAS NEEDS NO DARK COPY, and that is a property of how `var()` resolves
   rather than an oversight. `--text-1: var(--text)` is declared ON `:root`, and
   `var(--text)` is substituted using the WINNING computed value of `--text` on
   that same element — which is the dark one whenever the dark block applies.
   One declaration covers light, dark and follow-your-device.

   ⭐ AND A THIRD ONE FELL OUT OF LOOKING PROPERLY. `--radius-card` is used once,
   by `.subpanel` at :3363 — the address book's Manage groups / import / export
   panels — and is declared nowhere either. The card radius in this palette is
   plain `--radius`, 8px. Because the phantom sat in a `border-radius`, the
   declaration was dropped and those panels have been drawing SQUARE CORNERS
   inside a sheet where every other card is rounded. Nobody reported it; it is the
   same defect as the invisible date text, one property along. It is aliased here
   with the other two and named in the round report, and `.subpanel` is r01's rule
   this wave so the rename is theirs to make.
   ========================================================================== */

:root {
  --text-1: var(--text);          /* alias — see above. The real name is --text.   */
  --surface: var(--card);         /* alias — see above. The real name is --card.   */
  --radius-card: var(--radius);   /* alias — see above. The real name is --radius. */
}

/* ---- the shared date field ------------------------------------------------
   ⛔⛔ `input[type=date]` HAS NEVER BEEN IN THIS SHEET'S FIELD RULE. The rule at
   the top of the file names text, password, search, number, select and textarea —
   web4 r11 added `number` to it for exactly this reason, Gord's "Not all the
   fields are the same size" — and `date` was never added. So EVERY date picker on
   this site has been falling through to the browser's own paint, on Search, on
   Reports, on the shipment list's date row and here. In a light page on a machine
   set to dark that is light-grey-on-dark; in the builder's island header it was
   invisible outright.

   ⛔ THE FIX IS HERE AND NOT ON ONE SCREEN. This rule gives every date box on the
   site the same fill, edge, radius, height and explicit readable COLOUR as every
   text box beside it, in both themes, because both values are palette tokens.

   ⚠️ IT DECLARES NO `width`, ON PURPOSE. Four screens already size their own
   pickers (`.critrow input[type=date]` at 10em, `.card.island.editlist .listbar
   .daterow`, `.bcard .frow`, `.previewhead`), every one of those selectors is more
   specific than this one, and a shared `width: 100%` would blow all four apart.
   Density and width stay each screen's business; COLOUR stops being.

   ⚠️ THE CALENDAR'S OWN NUMBERS ARE NOT STYLED HERE AND CANNOT BE — the drop-down
   is browser chrome and no site CSS reaches inside it. It follows `color-scheme`,
   which `:root[data-theme="light"]`, `:root[data-theme="dark"]` and
   `:root, :root[data-theme="system"]` already pin at the top of this file, and
   `color-scheme` is an INHERITED property so the input picks it up without help.
   That is why the popup is legible in both themes and why there is nothing to add
   for it: the pinning was already right, only the box's own text was wrong.

   ⚠️ The `::-webkit-datetime-edit-*` pseudo-elements are named individually
   because a `color` on the input alone does not always reach the segment spinners
   in Chromium; the `::placeholder` line is for the browsers that show a mask.
   Unknown pseudo-elements are dropped per-selector in a selector LIST, so each
   sits on its own line rather than in one list that a single unsupported name
   would take down with it.

   rw1 r09: the time box (New Shipment's schedule time) shares this paint. It
   leads each list so the date line still starts its own line; its Chromium
   parts are hour, minute and am/pm, each on its own line below. */
input[type=time],
input[type=date] {
  min-height: var(--control-h);
  padding: 6px 10px;
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
}
input[type=time]:focus,
input[type=date]:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
input[type=date]::-webkit-datetime-edit { color: var(--text); }
input[type=date]::-webkit-datetime-edit-text { color: var(--text); }
input[type=date]::-webkit-datetime-edit-year-field { color: var(--text); }
input[type=date]::-webkit-datetime-edit-month-field { color: var(--text); }
input[type=date]::-webkit-datetime-edit-day-field { color: var(--text); }
input[type=date]::placeholder { color: var(--text-placeholder); opacity: 1; }
input[type=time]::-webkit-datetime-edit { color: var(--text); }
input[type=time]::-webkit-datetime-edit-text { color: var(--text); }
input[type=time]::-webkit-datetime-edit-hour-field { color: var(--text); }
input[type=time]::-webkit-datetime-edit-minute-field { color: var(--text); }
input[type=time]::-webkit-datetime-edit-ampm-field { color: var(--text); }
/* The affordance is drawn by the browser in the `color-scheme` colour; it is only
   ever dimmed by a UA default, so it is pinned back to full and made obviously
   clickable. */
input[type=date]::-webkit-calendar-picker-indicator { opacity: 1; cursor: pointer; }

/* ---- `.fieldbox`: "paint this like every other field on the site" ----------
   The sheet styles fields by ELEMENT SELECTOR, which is right for the ordinary
   case and useless the moment a screen needs one box to look like a field while a
   more specific rule beside it is setting geometry. That is how the report name
   box ended up with a private, broken copy of the field paint. This class is the
   named way to ask for the real thing, and it carries the FOCUS RING as well —
   the half a private copy always forgets. */
.fieldbox {
  font: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  min-height: var(--control-h);
  padding: 6px 10px;
}
.fieldbox:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.fieldbox::placeholder { color: var(--text-placeholder); opacity: 1; }

/* ---- the bottom bar's three groups ---------------------------------------
   🔒 Gord: "the bottom of the screen is a bit of a mess."

   The bar was already ONE bar in the desktop's order — web7 r02 fixed that — but
   it held TEN loose children in a `flex-wrap` row, and a wrapping flex row breaks
   between ANY two children. Below the width of the whole run it broke wherever it
   happened to run out: the name box on one line and its own `*` on the next, one
   export link orphaned from the other two, `Save & run` alone under `Run once`.

   ⛔ THE UNIT OF WRAPPING IS NOW THE GROUP. Three `.bgroup` wrappers — naming,
   exports, actions — each `nowrap` inside and each one unbreakable item of the
   bar. The bar still wraps and nothing hides; it can only wrap BETWEEN groups, so
   a narrow window gets three tidy lines instead of ten ragged ones.

   ⚠️ And the DENSITY is pinned to the rest of the screen: every control on the
   bar, link or button, is the same 32px tall with the same padding. A run of
   `.btnlink`s at the shared 6px/16px beside 32px buttons was the other half of
   what read as a mess — two heights on one line. */
.bbottom .bgroup {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bbottom .bgroup-exports { flex: 0 0 auto; }
.bbottom .bgroup-actions { flex: 0 0 auto; }
.bbottom .bgroup-name { flex: 0 1 auto; }
.bbottom .btnlink,
.bbottom button {
  min-height: var(--control-h);
  padding: 6px 12px;
  font-size: 13.5px;
  white-space: nowrap;
}
/* The export set reads as a set: a caption, then its three doors, on a quiet
   divider so the eye takes them as one control the way the PC's split button is
   one control. */
.bbottom .bgroup-exports {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.bbottom .bgroup-actions {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
@media (max-width: 1100px) {
  /* ⛔ The groups keep their shape when the bar stacks; only the rules between
     them go, because a vertical divider on the first item of a new line is a
     line pointing at nothing. Nothing hides. */
  .bbottom .bgroup-exports,
  .bbottom .bgroup-actions { padding-left: 0; border-left: 0; }
  .bbottom .bgroup { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web8 r04 — THE SEARCH TOOLBAR'S TWO DROPDOWNS BECOME OVERLAYS, AND THE
   FIND-BY COMBO STOPS BEING WIDER THAN WHAT IS IN IT.

   🔒 Gord, 2026-09-13, on ship.idsapp.com:
     *"When I click the columns button to alter buttons, the dropdown stretches
       the entire screen, looks really bad."*
     *"Export dropdown does the samething as columns."*
     *"We can also reduce the width of the 'find by' dropdown."*

   ⛔⛔ THE CAUSE WAS ENTIRELY HERE, IN THIS FILE, AND IT IS WORTH NAMING PRECISELY
   BECAUSE NOTHING IN search.php's MARKUP WAS WRONG.

   `.colform` and `.chooser .menulist` were ORDINARY IN-FLOW BLOCKS inside their
   `<details>`. A `<details>` in the results toolbar is a FLEX ITEM of a
   `flex-wrap: nowrap` row that gives every child `flex: 0 0 auto` — so an open
   panel's width became the ITEM's width, and the toolbar grew to hold it. And the
   Columns panel's own `.collist` is
   `grid-template-columns: repeat(auto-fill, minmax(11em, 1fr))` over TWENTY-FIVE
   columns, whose max-content width is twenty-five 11em tracks. So opening Columns
   asked the toolbar for about 3000px, `.card.island`'s `overflow: hidden` cut off
   whatever hung past the edge, and the grid underneath was shoved about. Export's
   `min-width: 15em` did the same thing on a smaller scale, which is exactly what
   Gord saw: "Export dropdown does the samething".

   ⭐ THE FIX IS THE PATTERN THIS SITE ALREADY USES, NOT A SECOND ONE.
   web6 r07's clone split-button (`.shipform .actions .clonemenu > ul`, ~:2716
   above) is a `<details>`/`<summary>` whose panel is `position: absolute` with a
   `z-index`, and its own comment says why: "The list is `position: absolute` so
   opening it cannot push Batch Ship… down the rail — a control that moves under
   the pointer is how the wrong item gets picked." That is the same sentence as
   this defect. web5 r01's `.addrpop` is the same shape again.
   ⛔ SO NOTHING NEW WAS INVENTED. What is below is that pattern applied to the two
   panels that needed it. It is written as its own rules rather than by widening
   `.clonemenu`'s selector because those three classes belong to the ship form,
   which another round owns this wave.

   ⛔ AND IT IS SCOPED TO `.resultsbar`, DELIBERATELY. `.chooser` is shared with
   the Address Book's own column chooser, which sits in an ordinary card where an
   in-flow panel is right. Not one Address Book pixel moves.
   ══════════════════════════════════════════════════════════════════════════════ */

/* The anchor. ⚠️ On the `<details>` itself and not on the toolbar: a panel
   positioned against the ROW would hang off the left edge of the island, and a
   menu is anchored to the button that opened it or it is not anchored at all. */
.resultsbar .chooser { position: relative; }

/* The two panels. `position: absolute` takes them OUT OF FLOW, so the open state
   costs the toolbar nothing at all: the row cannot stretch and the grid cannot
   move. ⛔ `width: max-content` with a `min-width` floor and a `max-width`
   ceiling — the menu is the width of its own longest line and nothing else, which
   is what "at the width of their own content" means.
   ⚠️ `max-height` + `overflow-y` are not decoration: twenty-five column names in
   one list is taller than the island, and `.card.island`'s `overflow: hidden`
   would clip the bottom of an unbounded panel. A panel that scrolls inside itself
   is reachable; a clipped one is not. 320px is well inside the island's own
   ~600px grid area at every state of this screen, including the empty one. */
.resultsbar .chooser > .menulist,
.resultsbar .chooser > .colform {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  width: max-content;
  min-width: 14em;
  max-width: 32em;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow);
}

/* ⛔ THE COLUMN LIST STOPS BEING A GRID THAT WANTS 3000px. `auto-fill` over
   twenty-five 11em tracks is the whole of the blow-out; a single column of
   checkbox rows inside a bounded, scrolling panel is what a menu is. */
.resultsbar .chooser > .colform .collist {
  display: block;
  margin: 0 0 10px;
}
.resultsbar .chooser > .colform { padding: 10px 12px; }

/* ⚠️ The Export menu's panel is the thing being positioned now, so the border and
   the surface it used to inherit from `.colform` are on it above. Its ITEMS are
   untouched — `.chooser .menulist a/button` still paints them. */
.resultsbar .chooser > .menulist { padding: 4px 0; }

/* ⛔ AND THE ROW ITSELF MAY NOT CLIP THEM. `.card.island .resultsbar` is
   `overflow: visible` by omission and the note at the head of that block says
   why it must stay that way ("`overflow-x: auto` on a flex row makes `overflow-y`
   compute to `auto` as well… the whole chooser would have been clipped to the
   height of a button"). This line is that promise written down where the overlay
   depends on it, so a later round cannot take it away by accident. */
.card.island .resultsbar { overflow: visible; }

/* ---------- the Find-by combo is the width of its own longest option ---------- */

/* 🔒 *"We can also reduce the width of the 'find by' dropdown."*
   ⛔ r11's `.critrow #f-mode { width: 11em; }` above is NOT deleted and is NOT
   dead — it stays as the CEILING. r11 measured 11em as what `Client Reference`
   plus the box padding plus the browser's arrow needs, and that measurement is
   still the right upper bound; what was wrong is that it was also the LOWER bound,
   so the control was 11em wide in every language whether its longest word wanted
   it or not. `max-content` is the box sized to its own longest <option>, and
   `max-width` keeps r11's number as the cap so a longer FR or ES word cannot
   widen the criteria band past what it already fits in.
   ⚠️ The PC's own number is `Width="132"` (MainWindow.xaml :4204), which at this
   type size is what 11em is. So the cap is the desktop's width and the box is
   narrower than it whenever the words allow. */
.critrow #f-mode { width: max-content; max-width: 11em; }

/* ---------- the toolbar, with Filter first ---------- */

/* ⭐ web8 r04 — 🔒 *"Lets move the filter button to the left."* The box is the
   first child of the row now, so the two rules that used to push it right are
   re-aimed rather than dropped: the SLOT keeps r11's elastic basis and its 140px
   floor (that rule is above and is untouched — it is what stops the box hanging
   over a clipped island edge), and this adds the trailing margin the divider used
   to supply on the other side. */
.card.island .resultsbar > .filterbox:first-child { margin-right: 4px; }

/* ⛔ AND THE SPRING STILL PACKS EVERYTHING LEFT. With the filter gone from the
   right-hand end the spring is the LAST item, so `margin-left: auto` on it now
   collects the row's leftover width at the end instead of splitting the row in
   two. `flex: 1 1 auto` would have let it eat the gaps; `0 0 auto` plus the auto
   margin is the same `Width="*"` behaviour with nothing to give away. */
.card.island .resultsbar > .spacer { flex: 0 0 auto; margin-left: auto; }

/* ⭐ THE ROW HAS TO FIT, AND THESE ARE THE PIXELS IT GETS BACK.
   🔒 *"Layout issues. It tried to fix the issue of making things fit, but it
   still didnt work."* The single biggest thing that did not fit was the dropdown
   above, and that is gone. The rest is the eleven controls themselves: the gap
   comes down from 8 to 6 and the two disclosure summaries lose the 6px of
   horizontal padding they were inheriting from the Address Book's copy of
   `.chooser summary`, which is ~40px between them.
   ⛔ THE 28px HEIGHT FLOOR IS UNTOUCHED — it is the PC's own control height and
   is above the 24px click-target minimum. Only width was ever negotiable, which
   is web4 r03's rule and still holds. */
.card.island .resultsbar { column-gap: 6px; }
.card.island .resultsbar .chooser > summary { padding: 4px 8px; }

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web8 r04 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ⚠️ This banner is not decoration: the harness slices a round's stylesheet with
   css_section(), which runs from a round's marker to the NEXT `═` banner or to
   the end of the file. web6 r10 lost six checks to exactly that — every slice ran
   to EOF, so the newest CSS in the sheet decided the oldest round's verdicts. A
   closing banner makes this section's own absence needles ("no unscoped
   `.chooser .menulist` rule here", "no full-width declaration on the overlay")
   mean what they say however many rounds append after it.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web9 r01 — BATCH / RECALL RETURNS: THE THREE LAYOUT DEFECTS GORD HAS
   REPORTED MORE THAN ONCE.

   ⛔ THIS IS ITS OWN SECTION AT THE END OF THE SHEET AND IT EDITS NOTHING ABOVE
   IT. Every rule below is scoped by a class that ONLY batchreturns.php renders
   (`.recallocations`, `.recallactions`, `.unitfixed`), so `batch.php`, the
   shared `.batchform` furniture and every other round's section are untouched.
   ⛔ TOKENS ONLY. No hex, no new colour, no new spacing scale.

   🔒 Gord, 2026-09-13, on the live site:
     · *"Pick Up Locations still vertically stacks the elements, leaving a big
       white space to the right side of the screen."*
     · *"Buttons across the bottom of the screen still vertically stacked. Fix.
       As per my instructions and screenshot for this morning and last night."*
       ⚠️ THE THIRD TIME OF ASKING. It is not a preference; it is a defect.
   ══════════════════════════════════════════════════════════════════════════════ */

/* 1. THE PICKUP-LOCATIONS BAND, SIDE BY SIDE — AND WHY IT WAS NOT.
      ⛔ A two-column rule was ALREADY THERE: `.batchform .batchlocations` above
      declares two `minmax(0, 1fr)` tracks. What defeated it was the separator
      between the two sub-cards — `.batchform .batchor` carries
      `grid-column: 1 / -1`, which makes the "— or —" span the whole row. Grid
      therefore placed the address-book card in row 1 column 1, the separator
      alone across row 2, and the CSV card in row 3 column 1. Two cards stacked
      down the left, column two empty from top to bottom: Gord's "big white space
      to the right side of the screen", exactly.
      ⭐ THE FIX IS THE PC's OWN SHAPE, which is also `.twocard`'s (used by the
      single-return screen's two address cards): card · separator · card, as
      THREE tracks on ONE row, with the separator sized to its own text. */
.batchform .batchlocations.recallocations {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: stretch;
}
/* ⛔ AND THE SPAN IS CANCELLED. Without this the rule above buys nothing: a
      `1 / -1` separator would still claim all three tracks and still break the
      row. It becomes an ordinary middle cell, centred on its own column. */
.batchform .batchlocations.recallocations > .batchor {
  grid-column: auto;
  align-self: center;
  padding: 0 2px;
}
/* Both halves fill their column top to bottom, so the band has one baseline and
   one bottom edge rather than a short card beside a tall one. */
.batchform .batchlocations.recallocations > .subcard {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 2. THE BOTTOM BAR — ONE ROW, RIGHT-ALIGNED, IN THE PC's ORDER.
      ⛔ AND THE CAUSE WAS A CASCADE COLLISION, NOT A MISSING RULE.
      `.shipform .actions` (the single-shipment RAIL, far above) declares
      `flex-direction: column` and gives every `button` and `.btnlink` inside it
      `width: 100%`. `.batchform .actionbar` declares `display: flex` and
      `justify-content: space-between` but resets NEITHER of those two, and both
      selectors are one class plus one class — identical specificity — so the
      rail's column direction and its full-bleed children simply won on source
      order. Three controls, one above the other, each the width of the card.
      ⭐ `.recallactions` is two classes deep on the container and three on the
      children, so it outranks the rail without weakening it for the screen the
      rail belongs to. */
.batchform .actions.actionbar.recallactions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  /* ⭐ RIGHT-ALIGNED, which `space-between` is not: with three controls and no
     note beside them, `space-between` would push Clear to the far left and leave
     a gap the eye reads as a missing control. */
  justify-content: flex-end;
  gap: 8px 10px;
}
/* ⛔ THE FULL-WIDTH CHILDREN, UNDONE. This is the half that actually stops the
      stacking: a row of three `width: 100%` items wraps to three lines whatever
      the container's `flex-direction` says. `auto` width, the kit's own control
      height, and never below the click floor. */
.batchform .actions.actionbar.recallactions > button,
.batchform .actions.actionbar.recallactions > .btnlink {
  width: auto;
  min-height: var(--control-h);
  padding-inline: 14px;
  justify-content: center;
  white-space: nowrap;
}
/* Create Returns keeps the weight the PC gives the one irreversible button on
   the screen, and stays last in the row because it is last in the markup. */
.batchform .actions.actionbar.recallactions > .shipnow {
  min-height: var(--control-h);
  font-weight: 700;
}
/* A note, if one is ever put back in this bar, takes the free space at the left
   rather than forcing a wrap. */
.batchform .actions.actionbar.recallactions > .outboxnote {
  margin: 0; margin-right: auto; flex: 0 1 auto;
}

/* 3. THE WEIGHT UNIT, AS A LABEL RATHER THAN A CHOICE.
      🔒 Gord: *"Weight measurement unit override on screen, remove it."* The
      kg / lb radio pair is gone from the markup; what stands where it stood is
      the unit in force, read out of Settings and printed. ⛔ It is plain text
      and deliberately NOT painted like a control — nothing here is clickable,
      and a chip that looks pressable would be the override coming back. */
.batchform .unitrow .unitfixed {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

/* 4. NARROW SCREENS. The band goes to one column and the separator goes back to
      spanning it, because on one column that is what a separator is for. The
      bottom bar stays a row and simply wraps — it never returns to a stack. */
@media (max-width: 1000px) {
  .batchform .batchlocations.recallocations { grid-template-columns: minmax(0, 1fr); }
  .batchform .batchlocations.recallocations > .batchor { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF web9 r01's SECTION. Nothing below this line belongs to it, and a
   needle that bounds a slice by this banner is reading only the rules above it.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web9 r02 — THE SEARCH SCREEN: THE FIND-SHIPMENTS BAND GOES BACK TO ONE
   LINE, AND THE SIGNATURE BOX LEARNS TO STAND DOWN.

   ⛔ THIS IS ITS OWN SECTION AT THE END OF THE SHEET AND IT EDITS NOTHING ABOVE
   IT. Every rule below is an OVERRIDE written at higher specificity, scoped to
   `#critform` — the Find-shipments form, which exists on search.php and nowhere
   else. ⚠️ `.critrow` is ALSO reports.php's criteria band and `.savedviews`'s;
   the id prefix is what keeps this round's density off both of them.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────────
   1. 🔒 Gord, 2026-09-13: *"Layout is still not fixed across the top."*

   His screenshot: Dates · two date boxes · Status · two status dropdowns ·
   Find by · a dropdown · a text box — and then SEARCH AND CLEAR DROPPED ONTO A
   SECOND LINE UNDERNEATH WITH EMPTY SPACE TO THEIR RIGHT.

   ⛔ THE MECHANISM, AND IT IS TWO NUMBERS IN THIS SHEET, NOT A MISSING RULE.
     · web4 r11 put `flex-wrap: wrap` back below 1799px, having added the band
       up at 1350px of content against an island body of `0.78 × window − 68` —
       1111px at Gord's 1512px window. The band did not fit, so it wrapped.
     · `.critspring` is `flex: 1 1 0`. In a WRAPPING flex row the spring sits at
       the end of line one and eats every spare pixel, so `.critactions` is
       pushed onto line two and packs LEFT — which is exactly the empty space to
       the right of Search and Clear in the screenshot.

   ★ AND THE 1350 WAS MEASURED AT THE WRONG DENSITY, WHICH IS THE REAL DEFECT.
   The desktop draws this band at 120px date pickers, 146px status combos, a
   132px find-by combo and a 160px value box. This sheet reproduces those in `em`
   — 10em, 10.5em, 11em, 11.5em — which at the 16px page font are 160 / 168 / 176
   / 184px: every control a THIRD wider than the client's, for the same ten
   characters. The proportions were the PC's; the DENSITY was not, and a band
   built a third too wide is a band that cannot fit on one line.

   ⭐ THE FIX IS THE PC'S DENSITY, NOT A SMALLER BOX. The `em` widths are
   untouched — they are still r11's numbers and still what a value needs — and
   the TYPE SIZE of this one band drops to the 13px the rest of this sheet's
   compact bars use (`.bfooter .grplabel`, `.bbottom .grplabel`). Ten characters
   still fit, with the picker's affordance beside them, because the box is still
   ten characters WIDE — it is measured in a smaller em. That is what a WPF Grid
   at the client's own font metrics does, and it takes the band from ~1350px to
   about 1015px, which fits the 1111px island at 1512 with room to spare.

   ⛔ `input[type=date]` IS NOT IN THE BASE SHEET'S `font: inherit` LIST — it
   names `input[type=text]`, `select` and `textarea` — so the two pickers would
   have kept the user-agent font and their `10em` would have been measured
   against it. Every control in the band is given the size explicitly.

   ⛔ AND THE HEIGHT FLOOR IS NOT TOUCHED. `--control-h-compact` is 28px, the
   client's own control height and above the 24px target minimum; nothing below
   makes a control shorter or a hit target smaller.
   ────────────────────────────────────────────────────────────────────────── */
@media (min-width: 861px) {
  #critform .critrow,
  #critform .critrow input[type=date],
  #critform .critrow input[type=text],
  #critform .critrow select,
  #critform .critrow button,
  #critform .critrow .btnlink { font-size: 13px; }

  /* The desktop's `MinWidth 96` / `MinWidth 84` at the desktop's own type size.
     ⛔ The pair still never shrinks — web4 r03's `flex: 0 0 auto` above is
     untouched, and it is the whole reason the boxes to their left are what give
     when the band is squeezed. */
  #critform .critrow .critactions button { min-width: 78px; padding: 4px 12px; }
  #critform .critrow .critactions .btnlink { min-width: 68px; padding: 4px 12px; }

  /* `Margin="10,2,10,2"` at the client's type size is six side pixels, not ten. */
  #critform .critrow .vdiv { margin: 2px 6px; }

  /* ⛔⛔ THE SHRINK FLOORS ARE BACK, AND THEY ARE WHY web4 r11's CLIPPING CANNOT
     RETURN. r03 released `min-width` to 0 so the row could squeeze; r11 found
     the squeeze reading `2026-09-0` and `Client Referenc` and answered it by
     letting the row WRAP instead. Both halves are wrong together: a floor set at
     what the VALUE needs lets the band give ground down to the point where it
     would start lying, and no further. Below that the band wraps — see the
     media query under this one — rather than clipping a date nobody can read. */
  #critform .critrow input[type=date] { min-width: 8.3em; }
  #critform .critrow #f-sfrom,
  #critform .critrow #f-sto { min-width: 7.4em; }
  #critform .critrow #f-find { min-width: 6.5em; }
}

/* ⭐ ONE LINE, IN THE CLIENT'S ORDER, FROM THE WIDTH IT GENUINELY FITS AT.
   1015px of content inside `0.78 × window − 68` wants a window of about 1388px,
   so that is the number and it is arithmetic rather than a guess. It covers the
   1512px window Gord reported on and the ~2000px the PC client is used at.
   ⛔ This OVERRIDES web4 r11's `@media (max-width: 1799px)` wrap in the overlap
   and does not touch it: r11's rule is still the rule below 1388. */
@media (min-width: 1388px) {
  #critform .critrow { flex-wrap: nowrap; gap: 8px 0; }
}

/* ⭐ AND WHERE IT TRULY CANNOT FIT, IT COLLAPSES THE WAY THE CLIENT DOES —
   the STRETCHING COLUMN goes first. `<ColumnDefinition Width="*"/>` is the one
   part of the band with nothing in it, and a star column in a WPF Grid that is
   out of room collapses to zero before a fixed column gives up a pixel. Hiding
   the spring is exactly that, and it is what stops the wrap producing the line
   in the screenshot: with no spring to eat line one, Search and Clear flow
   immediately after the Find-by box instead of being pushed onto a line of their
   own with empty space beside them.
   ⛔ THE ORDER NEVER CHANGES. Dates, Status, Find by, Search, Clear — in that
   order at every width, which is the client's own and the brief's rule. */
@media (min-width: 861px) and (max-width: 1387px) {
  #critform .critrow .critspring { display: none; }
}

/* ──────────────────────────────────────────────────────────────────────────
   2. THE SIGNATURE BOX STANDS DOWN WHEN THE PANELS MOVE OFF THE LOADED ROW.

   ⚠️ `imgSignature` needs the per-page `img-src` grant search.php only makes on
   a request that LOADED a shipment, and the unloaded screen's tight
   `img-src 'self' data:;` is pinned by the suite. So when search.js fills the
   panels from a row the shipper TICKED — which is not a navigation and cannot
   change a response header — the picture the server drew belongs to a different
   shipment, and one shipment's signature under another shipment's details is the
   worst lie this screen could tell. The script sets `hidden` on the box; this is
   the rule that makes `hidden` mean it, per the note at `.btnlink[hidden]`
   above about the UA sheet being beaten by any `display` this file sets.
   ────────────────────────────────────────────────────────────────────────── */
.detailblock .sigbox[hidden] { display: none; }

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF web9 r02's SECTION. Nothing below this line belongs to it, and a
   needle that bounds a slice by this banner is reading only the rules above it.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web9 r04's SECTION — THE BLOCKED-POP-UP MESSAGE MOVES TO WHERE A PERSON
   LOOKS. Two rules and one media query, all of them scoped to ONE id.

   🔒 Gord, 2026-09-13, on the live site, after reporting the waybill four
   separate times as broken: *"Oh I just noticed this on the bottom. So thats
   the issue, but, then I didnt notice it."*

   ⛔⛔ THE SITE WAS RIGHT AND STILL FAILED HIM. `#ship-waybill-blocked` says
   "Your browser blocked the waybill window" and it is TRUE — but on ship.php it
   is the last element of the confirmation card, and on edit.php it is the last
   element of a form that runs several screens deep. A person whose window did
   not open is staring at the TOP of a screen that just changed under them. The
   message was never read, so as far as the shipper was concerned the site said
   nothing and the waybill simply did not work.

   ★ SO WHEN IT IS REVEALED IT GOES TO THE TOP OF THE VIEWPORT AND STAYS THERE.
   Not the top of the document — the top of the SCREEN, `position: fixed`, above
   whatever the person happens to be looking at, on every one of the three
   screens that render it. It cannot be scrolled away from.

   ⛔ WHY IT IS DONE HERE AND NOT IN THE MARKUP, SAID PLAINLY: the element is
   rendered by `ship.php`, `edit.php` and `search.php`, and NONE OF THE THREE
   BELONGS TO THIS ROUND — they are open on other worktrees this minute. A rule
   in the shared sheet reaches all three without touching a byte of any of them.
   ⚠️ What it CANNOT do is change the DOM: the element stays where it is in the
   source order and the link that opens the waybill stays in the card above it.
   Moving the paragraph up beside its own control, and putting the `<a>` INSIDE
   it, is owed on those three files and is named in the r04 report.

   ⛔ ONLY WHEN UNHIDDEN. `[hidden]` is the whole switch — the three pages all
   render the paragraph with the attribute on and `assets/ship.js` /
   `assets/search.js` remove it only when `window.open` actually handed back
   null. `:not([hidden])` means a screen where nothing was refused is untouched,
   and a rule that painted a fixed band on every shipping screen would be a
   worse bug than the one being fixed.

   ⛔ NOTHING SHARED IS EDITED. No `:root` token, no `.notice` rule, no button
   paint — those belong to web9 r03 and are untouched. Every selector below
   names `#ship-waybill-blocked`.
   ══════════════════════════════════════════════════════════════════════════════ */
#ship-waybill-blocked:not([hidden]) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Above the navy top bar and its tab strip, which is the only other fixed or
     sticky furniture on this site. A warning that renders UNDER the chrome is
     the same warning at the bottom of the page. */
  z-index: 2000;
  margin: 0;
  border-radius: 0;
  /* The band runs the full width of the window, so it reads as a bar the
     browser put there rather than as a stray sentence inside a card. */
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  text-align: center;
  font-weight: 600;
}

/* ⛔ AND IT DOES NOT PRINT. It is a fixed band about a window that failed to
   open; on paper it is a fixed band over the top of somebody's shipment. */
@media print {
  #ship-waybill-blocked { display: none !important; }
}

/* ──────────────────────────────────────────────────────────────────────────
   web9 r04 · THE POP-UP BAND ON THE WELCOME SCREEN — four rules, every one of
   them inside `.popupband`, none of them shared.

   ⛔ IT IS A BAND INSIDE THE WELCOME CARD, NOT A CARD OF ITS OWN, and that is
   not a layout preference: web3 r10's check pins the home screen at exactly two
   cards and that check is right and was not weakened. So this borrows the
   card's body padding and the site's `.notice` and `.btnlink` paint — all of
   which are web9 r03's to own and are untouched here — and adds only the rule
   above the band, the honest-limit sentence, and the instruction list.
   ────────────────────────────────────────────────────────────────────────── */

/* The band is separated from the welcome lede by a rule rather than by a card
   edge, so the welcome card still reads as one card. */
.popupband {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.popupband .popup-heading { margin: 0 0 6px; font-size: 1.05rem; }
.popupband .popup-lede    { margin: 0 0 10px; }

/* ⛔ THE SENTENCE THAT SAYS A WEBSITE CANNOT GRANT ITSELF PERMISSION. It is
   quieter than the lede and heavier than a footnote, on purpose: it is the
   caveat, and a caveat nobody reads is the beginning of a promise nobody
   kept. */
.popupband .popup-limit {
  margin: 0 0 12px;
  color: var(--text-2);
  border-left: 3px solid var(--line);
  padding-left: 10px;
}

.popupband .popup-howhead {
  margin: 16px 0 6px;
  font-size: 1rem;
}

/* One browser per row, its name in bold at the head of the row, so a shipper
   finds their own in one glance instead of reading three sets of steps. */
.popupband .popup-how {
  margin: 0;
  padding-left: 20px;
}
.popupband .popup-how li { margin: 0 0 8px; line-height: 1.45; }
.popupband .popup-how li:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF web9 r04's SECTION. Nothing below this line belongs to it.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ⭐ web9 r05 — STOP STACKING THINGS VERTICALLY: BATCH SHIPMENT + BUILD A REPORT

   🔒 Gord, 2026-09-13, smoking the live site:
     · Batch Shipment: *"The top section still has too much white space."*
     · Batch Shipment: *"Delivery Address section is still vertically stacked,
       leaving a massive white space."*
     · Batch Shipment: *"buttons across the buttom are still vertically aligned,
       not horizontal. Looks bad."*  ⚠️ THE THIRD TIME OF ASKING.
     · Build a report: *"Build a report still veritically stacks the elements
       wasting space, please fix."*

   ⚠️⚠️ WHY THE BOTTOM-BUTTON ROW SURVIVED THREE ROUNDS — READ THIS BEFORE EDITING.
   Every previous attempt fixed the WRAPPER and never the CHILD. batch.php's bar is
   TWO nested elements:

       <div class="actionbar">            ← styled, correctly, at :5993
         <p class="outboxnote">…
         <div class="actions">            ← NEVER STYLED FOR THIS SCREEN
           button · a.btnlink · button.shipnow

   `.batchform .actionbar` (:5993) makes the OUTER div a flex row with
   `space-between`, which is right and which every round could see working — the
   note went left, the button block went right. But the three controls live one
   level deeper, and the only rule in this sheet that ever matched that inner
   `.actions` is `.shipform .actions` (:2789), written for the SINGLE-SHIPMENT
   RAIL far above. batch.php's form element carries BOTH classes
   (`class="shipform batchform"`), so the rail's
   `flex-direction: column; align-items: stretch` and its
   `.shipform .actions button { width: 100% }` landed on the batch bar unopposed —
   no collision to notice, no rule to out-rank, nothing red in the harness.
   Fixing `.actionbar` therefore changed NOTHING about the three buttons, three
   times running, and each round reported the bar as done because the bar it
   looked at genuinely was.
   ⭐ web8 DID diagnose this — see `.batchform .actions.actionbar.recallactions`
   at :6863 — but that fix was scoped to the RECALL screen's class names, which
   batch.php does not carry. The diagnosis existed; the Batch Shipment screen
   never received it. It does now, by SPECIFICITY rather than by source order:
   `.batchform .actionbar .actions` is 0,3,0 against the rail's 0,2,0, so it wins
   wherever it sits in the file and cannot be undone by a later append.

   ⛔ MINE ONLY: `.batchform .batchdetailrow`/`.batchlocations`/`.actionbar`
   descendants on Batch SHIPMENT, and `.bsplit`/`.bsteps`/`.previewpane` on the
   report builder. Nothing here touches :root, a shared rule, another round's
   section, the hint colour, the red buttons, the spinners or the Weight field.
   ⛔ THE 28px CONTROL-HEIGHT FLOOR (`--control-h-compact`) IS UNTOUCHED. Width is
   reclaimed below; height never is — every min-height here is 32px or more.
   ⛔ NO `overflow-x` IS DECLARED ANYWHERE IN THIS SECTION. web4 r03's trap,
   re-proved in web8: `overflow-x: auto` on a flex row makes `overflow-y` compute
   to `auto` too and clips an open overlay to the height of a button. Everything
   below that could run out of room WRAPS.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── 1. BATCH SHIPMENT · BAND 1, THE TOP STRIP CLOSED UP ──────────────────────
      🔒 *"The top section still has too much white space."*
      The band is already the PC's four columns, so the arrangement was not the
      fault — the PROPORTIONS were. The PC's grid is 376 · 166 · 220 · * inside a
      1338px tab with 16px page margins, so the explainer's `*` track resolves to
      1306 − 376 − 166 − 220 = 544px: it is the WIDEST column on the band, not the
      narrowest. This sheet had it at `2fr` against 2.2/1/1.3 — roughly 31% of the
      band where the PC gives it 42% — so the explainer wrapped to four or five
      lines, became the tallest cell, and set a band height the three controls
      beside it could not fill. That surplus under the controls IS the white
      strip. ⭐ Restoring the PC's own ratio (376 : 166 : 220 : 544 =
      2.26 : 1 : 1.33 : 3.28) gives the explainer its column back and the band
      closes to the height of a field. The text is content, not padding; it is
      given room rather than trimmed. */
.batchform .islandbody > .batchdetailrow {
  grid-template-columns:
    minmax(0, 2.26fr) minmax(0, 1fr) minmax(0, 1.33fr) minmax(0, 3.28fr);
  align-items: start;
}
/* The second half of the strip. `.shipform .fld` (:2153) hangs `margin-bottom:
   12px` off every field so fields can stack down the single-shipment rail. On a
   ONE-ROW grid band there is no next row for that margin to separate from, so all
   four cells donate 12px of dead space to the bottom of the card, on top of the
   islandbody's own 16px pad. It is removed for this band only. */
.batchform .islandbody > .batchdetailrow > .fld { margin-bottom: 0; }
/* And the explainer's own paragraphs. `p.help` (:2171) sets colour and size but
   never resets the user-agent's `margin: 1em 0`, so the explainer arrived with
   ~13px above it and ~13px below it that no rule in this sheet had asked for —
   about 26px of the strip by itself. The caption-to-body gap the PC draws
   (`Margin="1,10,0,0"`) is restated explicitly so the relationship is kept. */
.batchform .batchrefexplain > .help {
  margin: 6px 0 0;
  line-height: 1.45;
}

/* ── 2. BATCH SHIPMENT · BAND 4, THE TWO HALVES SIDE BY SIDE ──────────────────
      🔒 *"Delivery Address section is still vertically stacked, leaving a massive
      white space."* — and he is describing a grid that ALREADY declared two
      columns. `.batchform .batchlocations` (:5864) asks for
      `minmax(0,1fr) minmax(0,1fr)`; what defeats it is the separator BETWEEN the
      two halves. `.batchform .batchor` (:5924) carries `grid-column: 1 / -1`, so
      the "— or —" claims the entire row. Grid then places the address-book card
      in row 1 column 1, the separator alone across row 2, and the CSV card in
      row 3 column 1 — two cards down the left, column two empty top to bottom,
      and an "or" floating in the gap. That is the screenshot, exactly.
      ⭐ THE FIX IS THE PC's OWN SHAPE: `* · Auto · *`, three tracks on ONE row,
      the separator sized to its own text. Identical to what web8 gave the recall
      screen at :6830 — this is the same defect, on the screen that never got it.
      ⚠️ Specificity, not source order: `.islandbody.batchlocations` is 0,3,0 and
      the child rules are 0,4,0, so the base rule and its `1 / -1` are out-ranked
      no matter what is appended after this section. */
.batchform .islandbody.batchlocations {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: stretch;
}
/* ⛔ AND THE SPAN IS CANCELLED. Without this the rule above buys nothing: a
      `1 / -1` separator still claims all three tracks and still breaks the row.
      It becomes an ordinary middle cell, centred on its own column. */
.batchform .islandbody.batchlocations > .batchor {
  grid-column: auto;
  align-self: center;
  padding: 0 2px;
}
/* Both halves fill their track top to bottom, so the band has one bottom edge
   rather than a short card beside a tall one. */
.batchform .islandbody.batchlocations > .subcard {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── 3. BATCH SHIPMENT · THE BOTTOM BAR, ONE HORIZONTAL ROW ───────────────────
      🔒 *"buttons across the buttom are still vertically aligned, not
      horizontal. Looks bad."* — the third asking. The cause is the nested
      `.actions` explained in this section's header: the rail rule at :2789 is the
      only thing that has ever matched it.
      ⭐ ORDER IS THE MARKUP's AND IS NOT TOUCHED — Clear · Export manifest (CSV) ·
      Create N Shipments — because `#shipnow` must stay the LAST submit in the
      form so Enter in a text box never fires the irreversible button.
      ⛔ NO CONTROL GAINS OR LOSES AN ACTION HERE. Nothing acquires an Apply
      button; nothing becomes a link or stops being one. Arrangement only. */
.batchform .actionbar .actions {
  display: flex;
  flex-direction: row;
  /* ⛔ WRAP, NEVER SCROLL. If the three captions cannot fit — a long FR/ES
     "Créer 24 expéditions" on a narrow laptop — the row breaks to a second line.
     It does not become a sideways scroller, because `overflow-x: auto` here would
     force `overflow-y: auto` too and clip anything that opens above a button. */
  flex-wrap: wrap;
  align-items: center;
  /* ⭐ RIGHT-ALIGNED, which is the PC's `Auto` column hard against the right edge.
     `space-between` is what the OUTER bar uses to push this block away from the
     outbox note; inside the block the three controls sit together. */
  justify-content: flex-end;
  gap: 8px 10px;
  margin-top: 0;
}
/* ⛔ THE FULL-WIDTH CHILDREN, UNDONE — and this is the half that actually stops
      the stacking. A row of three `width: 100%` items wraps to three lines
      whatever the container's `flex-direction` says, so cancelling the direction
      alone would have fixed nothing visible. `auto` width, the PC's own 32px for
      the two secondaries, and never a hair below the 28px floor. */
.batchform .actionbar .actions > button,
.batchform .actionbar .actions > .btnlink {
  width: auto;
  min-height: var(--control-h);
  padding-inline: 14px;
  justify-content: center;
  white-space: nowrap;
}
/* Create N Shipments keeps the extra weight and height the PC gives the one
   irreversible button on the screen (`btnBatchShipCreate`: Height 36,
   MinWidth 150, SemiBold). 36 is above the 28px floor and above the 32px the
   other two carry, so the floor is respected and the hierarchy is the PC's. */
.batchform .actionbar .actions > .shipnow {
  min-height: 36px;
  min-width: 150px;
  font-weight: 700;
}

/* ── 4. BATCH SHIPMENT · NARROW SCREENS ───────────────────────────────────────
      The bands go to one column and the separator goes back to spanning it,
      because on one column that is what a separator is for. ⭐ THE BOTTOM BAR
      STAYS A ROW AND SIMPLY WRAPS — it never returns to a stack, at any width.
      ⚠️ This query has to exist: the sheet's own collapse at :6007 is 0,2,0 and
      would lose to the 0,3,0 rules above, so without it a phone would be handed
      three 1fr tracks and a horizontal scroll on the page body. */
@media (max-width: 1000px) {
  .batchform .islandbody > .batchdetailrow,
  .batchform .islandbody.batchlocations { grid-template-columns: minmax(0, 1fr); }
  .batchform .islandbody.batchlocations > .batchor { grid-column: 1 / -1; }
}

/* ── 5. BUILD A REPORT · USE THE WIDTH ────────────────────────────────────────
      🔒 *"Build a report still veritically stacks the elements wasting space."*
      ⭐ WHAT THE PC STACKS, STAYS STACKED, AND HERE IS THE EVIDENCE.
      ReportBuilderDialog.xaml's middle row is TWO columns — `470` and `*` — and
      column 0 is a ScrollViewer holding ONE StackPanel with Steps 1 · 2 · 3 · 4
      as four Borders one above the other. The column picker, `3 · Filters` and
      `4 · Group & sort` running down a left rail IS the desktop's arrangement,
      so the rail keeps its stack and no panel is moved out of it.
      ⛔ What was wrong is the rail's WIDTH and the preview's HEIGHT, and between
      them they are the whole of the wasted space:
        (a) `.bsplit` capped the rail at `minmax(320px, 440px)`. The PC gives it
            470 of 1080 — 43.5% — and a browser is routinely 1500px+, where 440px
            is 29%. A rail a third too narrow wraps Step 2's column chips over
            twice as many lines and stretches every filter row, which is the
            "narrow left column" he is looking at. Expressed as the PC's OWN
            PROPORTION it tracks the viewport instead of pinning to a number, so
            the extra width a browser has over a 1080px modal goes to the chips.
        (b) `align-items: start` let each column stop at its own content. The rail
            is tall, the preview is capped at 58vh, so the preview ended short and
            everything under it was dead — his "large dead area below". The PC's
            row is `*`: BOTH columns are the height of the row and the DataGrid
            fills it. `stretch` is that, in one dimension fewer.
      ⛔ NOTHING BELOW CHANGES A BEHAVIOUR. The preview still redraws on a tick
      (`data-redraw="live"`), no control gains an Apply button, the Name field and
      the three export doors in `.bbottom` are not selected by one rule here. */
.bsplit {
  grid-template-columns: minmax(320px, 43.5%) minmax(0, 1fr);
  align-items: stretch;
}
/* The preview becomes a column that can hand its spare height downwards. */
.bsplit > .previewpane {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.bsplit > .previewpane > .islandbody {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
/* …and the table takes it. ⛔ The 58vh ceiling at :6234 is deliberately LEFT
   STANDING as the ceiling it is — this only supplies a floor and the licence to
   grow between the two, so the preview fills the rail's height instead of
   stranding it. No `overflow` is declared here; `.gridwrap`'s own scrolling is
   the sheet's and is untouched. */
.bsplit > .previewpane .gridwrap.tallgrid {
  flex: 1 1 auto;
  min-height: 18em;
}
/* Step 2's column palette is the tallest thing in the rail. With the rail at the
   PC's width the chips get real columns to wrap into; a sane minimum keeps a long
   header like "Delivery postal code" from being the only chip on its line.
   ⛔ It is still the PC's WrapPanel — `flex-wrap`, not a fixed column count. */
.bsteps > .bcard > .chips {
  align-content: flex-start;
  column-gap: 18px;
}
.bsteps > .bcard > .chips > label.tick { flex: 0 1 auto; }
/* ⚠️ MUST MATCH the sheet's own collapse at :1100px, which is 0,1,0 and would
   otherwise lose the template to the 0,1,0 rule above on source order alone.
   One column, everything in source order, nothing hidden. */
@media (max-width: 1100px) {
  .bsplit { grid-template-columns: minmax(0, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF web9 r05's SECTION. Nothing below this line belongs to it.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web9 r06 — ENTER NEW SHIPMENT'S TWO DROPDOWNS BECOME THE SEARCH TOOLBAR'S
   DROPDOWNS. THE SAME MACHINERY, RE-AIMED — NOT A SECOND ONE.

   🔒 Gord, 2026-09-13, on the Search toolbar:
     *"The pop up menus work great. So all the buttons across to top work
       perfectly. Thats the standard I want to use across the browser based cosend
       version. Well done."*

   🔒 Gord, 2026-09-13, on Enter New Shipment:
     *"Opening up the Templates screen does the same as other dropdown menus which
       I dont like, that is it scretches the element to fit. I would prefer a
       proper dropdown and a pop up window."*
     *"when you do use the existing GUI layout, and close templates, the template
       box still populates the top of the screen."*
     *"Quote has the same issue as templates in how it take over the top of the
       screen and not a pop up."*

   ⛔⛔ THE CAUSE, NAMED PRECISELY, BECAUSE IT IS NOT WHAT IT LOOKS LIKE.
   web7 r07 shipped the Templates menu's whole class vocabulary — `.tplmenu`,
   `.tplbody`, `.tpllist`, `.tplnote`, `.tplrule`, `.tplsave`, `.tplmanage` — and
   wrote NOT ONE RULE for any of them anywhere in this stylesheet. So `.tplbody`
   was a plain in-flow block inside a `<details>` that is a flex item of
   `.shipform .shiptop` (`display: flex; flex-wrap: wrap`). An open panel's
   width became the ITEM's width; the item then exceeded the row and WRAPPED to a
   line of its own; and that line is the top of the screen, with island 1 pushed
   down under it. "It scretches the element to fit" is that sentence exactly.

   ⭐ AND THE FIX IS web8 r04's, WHICH IS web6 r07's, WHICH IS web5 r01's.
   web8 r04 (`.resultsbar .chooser > .menulist`, ~:6702 above) took the Search
   toolbar's Columns and Export panels out of flow for the same reason and with
   the same five declarations: `position: absolute` + `z-index`, `width:
   max-content` between a `min-width` floor and a `max-width` ceiling,
   `max-height` + `overflow-y: auto`, and the card surface on the panel itself.
   That block in turn says it is web6 r07's `.shipform .actions .clonemenu > ul`
   — a `<details>` split button ON THIS VERY SCREEN — and web5 r01's `.addrpop`.
   ⛔ SO NOTHING IS INVENTED HERE. What is below is the same shape, written
   against this screen's two selectors.

   ⛔ WHY IT IS NOT ONE SHARED SELECTOR *YET*. The obvious move is to widen web8
   r04's rule to `.resultsbar .chooser, .shipform .shiptop .tplmenu`. That rule
   lives in r02's read-only Search section this wave and this round may not edit
   it, so the declarations are repeated here and the report says so and describes
   the move. ⚠️ `.chooser` is ALSO the Address Book's column chooser, where an
   in-flow panel is correct — so any future shared rule must be a NEW class the
   three screens opt into, never a widened `.chooser`.

   ⛔ AND IT IS SCOPED TO `.shipform .shiptop`, DELIBERATELY. The `<details>` in
   the manage panel below the form (`.tpldel`, the inline delete question) is NOT
   `.tplmenu` and is NOT in `.shiptop`, so it keeps its in-flow disclosure — a
   question that floats over the row it is about is a question you cannot read.
   ══════════════════════════════════════════════════════════════════════════════ */

/* THE ANCHOR, AND IT IS ON THE `<details>` AND NOT ON THE ROW. A panel positioned
   against `.shiptop` would be anchored to a right-aligned row rather than to the
   button that opened it, and web8 r04's note says why that is wrong: "a menu is
   anchored to the button that opened it or it is not anchored at all." */
.shipform .shiptop .tplmenu { position: relative; }

/* ⛔ THE SUMMARY IS THE WHOLE OF THE ITEM'S WIDTH, OPEN OR CLOSED, and that is the
   residue fix. With the body out of flow the `<details>` measures its summary and
   nothing else, so closing it returns the row to the width it had before it was
   ever opened — no box at the top of the screen and no gap where one was. */
/* ⚠️ NO PAINT IS MINTED HERE. The summary carries `.btnlink` (and `.primary` on
   Templates, which is the desktop's solid-navy `btnShipTemplates` against the
   outlined control beside it), so the colour, the border, the radius and the
   `--control-h` floor are the kit's existing ones, unchanged. This rule adds only
   the three things a `<summary>` needs that a `<button>` does not: the pointer,
   no wrapping, and no browser disclosure triangle — which is exactly what
   `.chooser summary` does for the Search toolbar. */
.shipform .shiptop .tplmenu > summary {
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
}
.shipform .shiptop .tplmenu > summary::-webkit-details-marker { display: none; }

/* THE PANEL. `position: absolute` takes it OUT OF FLOW, so an open menu costs the
   page nothing at all: `.shiptop` cannot stretch and island 1 cannot move.
   ⛔ `width: max-content` between a floor and a ceiling — the menu is the width of
   its own longest line and nothing else, which is what a proper dropdown is.
   ⚠️ `right: 0` and NOT web8 r04's `left: 0`: this row is `justify-content:
   flex-end`, so its controls sit against the RIGHT edge of the two-column block
   and a left-anchored panel would hang off the window. Same machinery, the edge
   the anchor actually has.
   ⚠️ `max-height` + `overflow-y` are not decoration. An account may keep up to
   SHIP_TPL_MAX (200) names of each kind and the menu is rendered in full on every
   view of this screen; a panel that scrolls inside itself is reachable, a panel
   taller than the window is not. */
.shipform .shiptop .tplmenu > .tplbody {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  width: max-content;
  min-width: 18em;
  max-width: 32em;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 8px 10px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow);
}

/* ⛔ AND NO ANCESTOR MAY CLIP IT. `.shiptop` is a flex row with no overflow of its
   own; this line is that promise written down where the overlay depends on it, so
   a later round cannot take it away by accident. web8 r04 wrote the same line for
   `.card.island .resultsbar` and for the same reason. */
.shipform .shiptop { overflow: visible; }

/* ---------- what is inside the panel ---------- */

/* The saved names. A single column of rows inside a bounded, scrolling panel is
   what a menu is; nothing here asks for a grid or a track list. */
.shipform .shiptop .tplmenu .tpllist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shipform .shiptop .tplmenu .tpllist > li { margin: 0; }
.shipform .shiptop .tplmenu .tpllist > li > a {
  display: block;
  padding: 5px 8px;
  min-height: 24px;
  border-radius: var(--radius-input);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.shipform .shiptop .tplmenu .tpllist > li > a:hover,
.shipform .shiptop .tplmenu .tpllist > li > a:focus-visible {
  background: var(--surface-alt);
  color: var(--brand-text);
}

/* The empty state and the store-unavailable line — a sentence, not an item. */
.shipform .shiptop .tplmenu .tplnote {
  margin: 4px 6px 6px;
  color: var(--text-2);
  font-size: 12px;
}

.shipform .shiptop .tplmenu .tplrule {
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ⛔ THE NAME BOX AND ITS SAVE, AND THIS IS NOT AN APPLY BUTTON. 🔒 *"I prefer my
   clients not to have to always click buttons unless its something live Save."* —
   Save is exactly the exception he names, and this is `panelTemplateName`'s own
   Save, which the PC has. A column so the caption sits above the box, which is
   what the desktop's `FieldCaption` + `FieldBox` pair does. */
.shipform .shiptop .tplmenu .tplsave {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0 8px;
}
.shipform .shiptop .tplmenu .tplsave > input { width: 100%; }
.shipform .shiptop .tplmenu .tplsave > button { align-self: flex-start; min-height: 28px; }

/* Manage… is a link to a real page, and it looks like one. */
.shipform .shiptop .tplmenu .tplmanage {
  display: inline-block;
  padding: 4px 6px;
  min-height: 24px;
}

/* ⚠️ ON A NARROW WINDOW THE PANEL MAY NOT BE WIDER THAN THE WINDOW. The ceiling
   above is 32em, which at a raised base font is more than a phone has. This is the
   same collapse every other block on this screen makes at the width where the two
   columns become one. */
@media (max-width: 560px) {
  .shipform .shiptop .tplmenu > .tplbody { max-width: 92vw; min-width: 0; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web9 r06 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ⚠️ The harness slices this round's stylesheet with css_section(), which runs
   from the marker to the NEXT `═` banner. Without a closing banner every slice
   runs to EOF and the newest CSS in the sheet decides this round's verdicts —
   web6 r10 lost six checks to exactly that. This round's own ABSENCE needles
   ("no `.chooser` rule here", "no `position: static` on the panel") depend on it.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web9 r07 — THE PRODUCT LOOKUP LIST, AND THE BARCODE COLUMN'S OWN SWITCH.

   🔒 Gord, 2026-09-13: "GTIN and Product doesnt update when you type something
   into those fields." · "Show GTIN doesnt do anything."

   TWO THINGS AND NOTHING ELSE LIVE HERE:
     1. `.prodpop` — the suggestion list that drops under a Product box. It is
        this round's OWN element and its own class. The address card's list is
        `.addrpop`, it belongs to web5 r01, it answers a different door with a
        different row shape, and not one of its rules is touched, reused or
        renamed here.
     2. `.nogtin` — what the shared block adds to a shipment form when the person
        has turned Show GTIN off. The boxes themselves are hidden by the `hidden`
        ATTRIBUTE, which takes them out of the tab order and out of the
        accessibility tree; the only thing left for a stylesheet to do is drop
        the grid TRACK they were sitting in, so the remaining columns do not
        slide sideways into a caption that no longer matches them.

   ⛔ NOTHING SHARED IS TOUCHED. No token, no `:root` block, no `.btnlink`, no
   button paint anywhere — button paint on edit / reports / addresses / products
   / return is web9 r03's this wave and this round stayed off it entirely. Every
   colour below is a token this sheet already defines.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ---------- the suggestion list under a Product box ---------- */
.prodpop {
  position: absolute;
  /* ★ web12 r02 — THE ANCHOR. Without these three the list had no offsets and
     fell to its static position, which for an absolutely-positioned child of
     a grid row is the row's top-left: under the GTIN column, over the Product
     box. They resolve against the Product box's own grid area on the two grid
     screens and its own cell on the two batch screens — the section at the
     foot of this sheet makes those the containing block. */
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  margin: 2px 0 0;
  padding: 4px 0;
  list-style: none;
  min-width: 16em;
  max-width: 34em;
  max-height: 17em;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.3;
}
.prodpop > li {
  padding: 5px 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  /* ⚠️ 24px is this site's click floor and the desktop's own `MinHeight=24`. */
  min-height: 24px;
}
/* Hover AND keyboard selection paint the same surface, with selection adding
   the weight — the same pair of triggers the address list already answers. */
.prodpop > li:hover { background: var(--surface-alt); }
.prodpop > li.on    { background: var(--surface-alt); font-weight: 600; }

/* ★★ web11 r02 — the two rows the PC's product popup adds. The ACTION row
   ("Search online for '…'") is an ordinary pick that hovers and takes the
   keyboard, set apart by weight alone — the address list's own rule. The
   STATUS row ("Searching…", "Nothing found online for …", "Couldn't reach the
   internet") is display, not a menu item: muted, no hover, no pointer, and it
   carries no data-i so the keyboard walks past it. An ONLINE row is painted
   like a local one — the text already says which is which. */
.prodpop > li.prodpopaction { font-style: italic; }
.prodpop > li.prodpopnote {
  color: var(--text-muted);
  font-size: 13px;
  white-space: normal;
  cursor: default;
}
.prodpop > li.prodpopnote:hover { background: transparent; cursor: default; }

/* ---------- Show GTIN, turned off ----------
   ⛔ THE TWO SHIPMENT SCREENS ONLY. The return screens never carry this class
   because the shared block never puts it on them, and My Products does not load
   that script at all. */
.shipform.nogtin .contents .prodhead,
.shipform.nogtin .contents .prodrow {
  grid-template-columns: minmax(0, 1fr) 70px 90px 34px;
}

/* The same collapse the five-track rule already makes at the width where the
   columns stop fitting, minus the track that is no longer there. */
@media (max-width: 700px) {
  .shipform.nogtin .contents .prodrow {
    grid-template-columns: minmax(0, 1fr) 70px 34px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web9 r07 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ⚠️ The harness slices this round's stylesheet with css_section(), which runs
   from the marker to the NEXT banner. Without a closing banner every slice runs
   to EOF and the newest CSS in the sheet decides this round's verdicts.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web9 r08 SECTION — THE ADDRESS BOOK'S OWN GOOGLE LOOKUP, AND THE
   CLEAN-UP LIST'S TWO DOORS. ⛔ APPEND BELOW THIS ROUND'S CLOSING BANNER.
   ⚠️ Nothing here touches the sheet's design tokens or another round's section.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ---------- the Find-address-online row on the Create/Edit form ----------
   The shipment cards' `.findonline` row is scoped `.shipform .findonline`, so
   the Address Book's copy needs its own geometry. Same shape, same gap, same
   muted attribution beside it. */
.abform .abfindonline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 2px 0 6px;
  position: relative;
}
.abform .abfindonline .muted { color: var(--text-muted); font-size: 12px; }

/* ⚠️ The sentence that says a suggestion only fills empty boxes. It is prose a
   person must be able to read before they press, so it is NOT hidden on narrow
   screens and it is not a tooltip. */
.abform .abfindnote { margin: 0 0 10px; }

/* ---------- the suggestion list ----------
   It is anchored IN THE FLOW under the control rather than positioned over the
   form: the Create/Edit island scrolls with the page, and a list pinned to a
   box that has moved is worse than no list. */
/* ⚠️ COWORK, web9 integration — THIS RULE NAMED A TOKEN THAT DOES NOT EXIST,
   AND THE LIST HAD NO BORDER AT ALL. The correct token is `--line`; the one
   written here was declared nowhere in this sheet.
   ⚠️ The wrong name is deliberately NOT spelled out in this note, and that is
   not squeamishness: the phantom sweep in the harness reads this file, and one
   of its two passes does not strip comments — so a comment that spells the bad
   token inside a var() call re-creates the very phantom it is describing. It
   cost a red the first time this note was written.
   An undefined custom property is invalid at computed-value time,
   so the whole `border` declaration was thrown away and the suggestion list
   floated over the form with no edge. ⛔ This is the SAME defect that made every
   date picker's text unreadable in web8 — `--surface` and `--text-1`, used all
   over the sheet and declared nowhere — which is precisely why that round left
   a permanent used-vs-declared sweep in the harness, and why this one went red
   the day it was written. Corrected to the real token. */
.abform .abfindpop {
  margin: 4px 0 0; padding: 0; list-style: none; width: 100%;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); max-height: 260px; overflow-y: auto;
}
.abform .abfindpop > li {
  padding: 6px 10px; font-size: 13px; min-height: 24px;
}
.abform .abfindpop > li.addrpopgoogle { cursor: pointer; }
.abform .abfindpop > li.addrpopgoogle:hover { background: var(--surface-alt); }
/* ⛔ The header, the status sentence and the attribution row are NOT choices:
   they never take the pointer and they never paint as one. */
.abform .abfindpop > li.addrpophead,
.abform .abfindpop > li.addrpopnote {
  color: var(--text-muted); font-size: 12px; cursor: default;
}

/* ---------- the clean-up list's Actions cell ----------
   Edit first, then Find address online, on one line where there is room and
   stacked where there is not. ⛔ No colour of its own: these are the site's
   ordinary link buttons, and the Delete button beside them keeps the paint
   another round of this wave gave it. */
.cleanuplist td.c-actions {
  white-space: nowrap; text-align: right;
}
.cleanuplist td.c-actions .btnlink { margin-left: 8px; }

@media (max-width: 700px) {
  .cleanuplist td.c-actions { white-space: normal; }
  .cleanuplist td.c-actions .btnlink { margin-left: 0; margin-right: 8px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web9 r08 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ⚠️ The harness slices this round's stylesheet with css_section(), which runs
   from the marker to the NEXT banner. Without a closing banner every slice runs
   to EOF and the newest CSS in the sheet decides this round's verdicts.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   web9 r09 — THE SHIPMENT SCREEN KEEPS UP WITH THE PERSON USING IT
   ⚠️ APPEND-ONLY SECTION. Nothing above this banner was edited, no token was
   touched, and the closing banner at the foot is what keeps css_section() from
   running to EOF.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ---------- the fixed weight unit on Enter New Shipment ----------
   The kg / lb radio pair is gone from the markup and the unit in force stands
   where it stood, read out of Settings and printed. Identical to the chip
   web9 r01 put on Batch / Recall Returns, because it is the same removal on a
   second screen and two shapes for one idea is how screens drift apart.
   The two rules are kept separate rather than merged into one selector list:
   that list lives in another round's section and would be an edit to it. */
.shipform .unitrow .unitfixed {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

/* The sentence under the Weight box naming Settings as the only place the unit
   can be changed. It is the site's ordinary field help, pinned tight under the
   row so it reads as belonging to that box and not to the island. */
.shipform #f-weight-unitnote {
  margin: 4px 0 0;
}

/* ---------- why a greyed rail control is greyed ----------
   The rail's two disabled markers (Schedule for later, Clone shipment) now print
   their reason instead of hiding it in a `title` nobody can hover on a phone.
   Muted, small, and hard under the control it explains — this is a caption on a
   dead control, never a notice and never a warning: nothing has gone wrong. */
.shipform .railwhy {
  margin: 4px 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.shipform .actions .railwhy {
  margin-bottom: 0;
}

/* ---------- the live summary figures ----------
   ⛔ NO ANIMATION, NO FLASH, NO COLOUR CHANGE ON UPDATE. These three values
   change on every keystroke; anything that moved or blinked would be a strobe
   beside a form somebody is typing into. They are the rail's ordinary values and
   they simply read differently a moment later.
   ⭐ `tabular-nums` only, so a figure going from 9 to 10 does not shove the row
   about while the eye is on it. */
.shipform .summary [data-sumlive] {
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web9 r09 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ⚠️ The harness slices this round's stylesheet with css_section(), which runs
   from the marker to the NEXT banner. Without a closing banner every slice runs
   to EOF and the newest CSS in the sheet decides this round's verdicts.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web9 r10's SECTION — THE PICKUP MANIFEST OPENS AS ITS OWN WINDOW.
   Three rules and one media query. Every selector names an id or a class this
   round introduced; nothing shared is touched.

   🔒 Gord, 2026-09-13, on the live site: *"Pick up manifest still doesnt show
   the pick up manifest report like the PC Client. Just shows it on the bottom of
   the screen, please fix."*

   ⛔ NOTHING SHARED IS EDITED. No `:root` token, no `.notice` paint, no
   `.manifestsheet` rule (web6 r05's, at :6096, untouched), no `#ship-waybill-
   blocked` rule (web9 r04's, at :7094, untouched). This section only adds.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ---------- the refused window, said where a person is actually looking ----------
   ⛔⛔ THE MISTAKE BEING AVOIDED, NAMED. web9 r04 found Gord had reported the
   waybill broken four separate times while the site was telling him the truth at
   the bottom of the card: *"Oh I just noticed this on the bottom. So thats the
   issue, but, then I didnt notice it."* A true sentence nobody reads is
   indistinguishable from silence.

   ★ SO THIS ONE IS AT THE TOP OF THE VIEWPORT, not the top of the document —
   `position: fixed`, above whatever the person happens to be looking at, and it
   cannot be scrolled away from. In source order it already sits FIRST in the
   manifest band, beside the control that was pressed, so with this rule absent
   (a stylesheet that failed to load) the sentence is still in the right place
   rather than at the foot of the page.

   ⛔ ONLY WHEN UNHIDDEN. `[hidden]` is the whole switch: `reports.php` renders
   the strip with the attribute on and `assets/manifest.js` removes it only when
   `window.open` actually handed back nothing. `:not([hidden])` means a screen
   where the window opened is untouched by every line below.

   ⚠️ THE SAME GEOMETRY AS r04's `#ship-waybill-blocked`, DELIBERATELY, so a
   shipper meets one bar and not two dialects of one. ⛔ It is written out here
   rather than added to r04's selector list: that rule is in r04's section and
   `ship.php` / `edit.php` / `search.php` are open on other worktrees. */
#manifest-blocked:not([hidden]) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Above the navy top bar and its tab strip, the only other fixed or sticky
     furniture on this site. A warning UNDER the chrome is a warning nobody
     sees, which is the defect this round is not repeating. */
  z-index: 2000;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  text-align: center;
  font-weight: 600;
}

/* The two links inside it are the whole point of the strip — the first is the
   manifest itself, in this tab, and the second is the welcome screen's pop-up
   check. They are set apart from the sentence so neither is read as part of it. */
#manifest-blocked:not([hidden]) a {
  margin-left: 12px;
  white-space: nowrap;
}

/* ---------- the sheet's own Close button ----------
   `Dialogues/PickupManifest.xaml:84`'s `btnClose`, which sits on the dialog's
   bottom bar. Here it sits on the sheet's nav line beside "Back to Reports",
   which is above the document rather than below it — a navigation control INSIDE
   the sheet would print on the paper a driver signs.

   ⚠️ `hidden` MEANS IT. `assets/manifest.js` reveals this button only when the
   page really is its own window; the UA sheet's `display: none` for `[hidden]`
   is beaten by any `display` a stylesheet sets, so nothing below sets one. */
.sheetnav .sheetclose {
  margin-left: 12px;
}

/* ⛔ AND NEITHER OF THEM PRINTS. The strip is a fixed band about a window that
   failed to open; the Close button is a control. On paper both are furniture
   over the top of a document somebody has to sign. ⚠️ `.sheetnav` itself is
   already dropped for print by the rules at :6124; this covers the two elements
   this round added. */
@media print {
  #manifest-blocked { display: none !important; }
  .sheetnav .sheetclose { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web9 r10 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ⚠️ css_section() runs from a marker to the NEXT banner; without this one every
   later slice would run to EOF.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web11 r03 — BATCH SHIPMENT: THE PACKAGING ROW TAKES THE PC WIDTHS
   ══════════════════════════════════════════════════════════════════════════════
   🔒 Gord, 2026-09-15: *"The Weight Field wraps such that it looks ugly."*

   THE CAUSE. `.row3` splits the island into three EQUAL columns, and the third
   caption — "Weight (kg) / delivery *" — is the longest of the three by a wide
   margin, so at any width where the other two fit it folds onto two lines and
   the row grows a second caption line for one box.

   THE PC does not share the width out at all: `MainWindow.xaml` gives the batch
   packaging band a 200-wide Package type panel, a 94-wide Pieces panel and a
   98-wide Weight panel, and the caption is one line on all three. So this row
   takes those first two widths as they are, and lets the third column be as
   wide as its own caption — the caption is wider than 98 in this typeface and
   a clipped caption is worse than a box a little wider than the PC draws.

   ⚠️ SCOPED BY A CLASS `batch.php` PUTS ON THIS ONE ROW, not on `.row3`: the
   pickup card on the same screen has its own `.row3` (Contact / Phone / Email)
   and every other screen has several, and none of them is this row.
   ⚠️ THE NARROW BREAK IS RE-DECLARED HERE because the two-class rule below
   ties `.shipform .row3` on specificity and comes later in the file, so
   without it the row would stay three-across on a phone. No colour, no hex. */
.batchform .batchpkgrow {
  grid-template-columns: 200px 94px max-content;
}
.batchform .batchpkgrow .fld label {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .batchform .batchpkgrow { grid-template-columns: minmax(0, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web11 r03 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web11 r04 — THE LISTS: ONE CLICK SELECTS, TWO CLICKS OPENS
   ══════════════════════════════════════════════════════════════════════════════

   1. THE LINE THAT SHOWS AT FIRST PAINT AND VANISHES A FEW SECONDS LATER.
      🔒 Gord, Edit Active: "The line across the bottom shows at first, then a
      few seconds later dissappears." The Active list lives in `.gridwrap.tallgrid`
      (:1351): a bounded, scrolling box (`overflow: auto`, min-height pinned at
      `--grid-area-h`) around a `table.grid` that is `white-space: nowrap` (:765)
      with fourteen columns — so it overflows sideways, and a HORIZONTAL scrollbar
      sits along the bottom of the box, directly under the last row on screen and
      above the Filter · Dates · Refresh bar. Windows 11 Edge and Chrome draw that
      bar as an OVERLAY scrollbar: shown for a moment on first paint, faded out a
      few seconds later, back on hover. That is the line, and its vanishing is
      the browser's fade, not anything this site does. The PC's ListView uses a
      classic WPF ScrollViewer whose bars are drawn whenever there is overflow
      and never fade (HorizontalScrollBarVisibility="Auto", :2626 / :4353).
      A scrollbar with author styling is never an overlay bar in Chromium, and
      `scrollbar-width` / `scrollbar-color` are the standard properties Firefox
      and Chromium 121+ honour — so the two rules below make the bars classic
      and always drawn, matching the desktop and stable from first paint. Both
      tokens exist in every theme, so dark mode keeps its own colours.

   2. `#activetrips` gets the same picked FILL the Search grid has (:1316), not
      only the shared outline (:811): a click now selects a row on this list
      too, and the PC's InactiveSelectionColour is the look of a selected row.

   3. The Return Shipment toggle's PRESSED look — the same idea as the batch
      screens' "Show problems only" (:5976): `aria-pressed` in the markup is the
      truth, the class only paints it. Not colour alone: the weight changes too.

   ⛔ No colour that is not a token. No hex outside :root. */
.gridwrap.tallgrid {
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) var(--surface-alt);
}
.gridwrap.tallgrid::-webkit-scrollbar { width: 10px; height: 10px; }
.gridwrap.tallgrid::-webkit-scrollbar-track { background: var(--surface-alt); }
.gridwrap.tallgrid::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 5px;
  border: 2px solid var(--surface-alt);
}

table.grid#activetrips tbody tr.picked,
table.grid#activetrips tbody tr.picked:hover {
  background: var(--row-picked);
}
table.grid#activetrips tbody tr[data-edit] { cursor: default; }

.resultsbar .btnlink.on[aria-pressed="true"] {
  background: var(--row-picked);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web11 r04 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web11 r05 — ENTER NEW SHIPMENT LEFTOVERS: THE CLONE MENU SHOWS WHOLE,
   AND SCHEDULE FOR LATER IS THE PC'S TOGGLE
   ══════════════════════════════════════════════════════════════════════════════

   ⛔ NO HEX AND NO ID SELECTOR IN THIS SECTION — the harness reads it back.

   1. THE CLONE MENU WAS CLIPPED, AND HERE IS WHY. 🔒 Gord: "I cant access the
      other forms of cloning as the dropdown is cut off." The rail is
      `<section class="card island rail">`, and `.card.island` (the island
      chrome, ~:935) is `overflow: hidden` so the header strip's fill meets the
      card radius. The Clone split button is the LAST control in the rail, and
      its four-entry list is `position: absolute` BELOW it — so the island's own
      bottom edge cut the list off after the first entry or two. web8 r01 met
      the identical fault on the address islands ("the address picker does
      nothing") and opted them out by class; this is the same opt-out for the
      rail. `.islandhead` carries its own top corners, so the strip is unchanged. */
.card.island.rail { overflow: visible; }

/* 2. SCHEDULE FOR LATER — NewShipmentView.xaml :1153-:1249, `tglScheduleLater`
      + `panelScheduleWhen`, and `RefreshShipActionButtons()` :264-:265.
      ⛔ NO SCRIPT DECIDES THE STATE. The toggle is a real checkbox (visually
      hidden, still focusable) and its label is the button in the row; every
      rule below hangs off `:checked`:
        · the readout — `Off` at rest, `On` when checked, hard right;
        · the label's fill — the PC's IsChecked trigger (BrandBrush + OnBrand);
        · the panel — Collapsed at rest, shown when checked;
        · the rail's action — Ship Now collapses and Schedule shipment takes its
          slot, exactly the swap the PC makes.
      ⚠️ `:has()` carries the button swap because the buttons are four blocks
      below the toggle; in a browser without it BOTH buttons show and the
      server's guards still decide, which is honest rather than broken. */
.shipform .whenrow { flex-wrap: wrap; }
.shipform .whenrow > .whenbtn { cursor: pointer; }
.shipform .whenrow .whenon { display: none; }
.shipform .whenrow .whentoggle:checked ~ .whenbtn .whenoff { display: none; }
.shipform .whenrow .whentoggle:checked ~ .whenbtn .whenon { display: inline; color: var(--on-brand); }
.shipform .whenrow .whentoggle:checked ~ .whenbtn {
  color: var(--on-brand); background: var(--brand-button); border-color: var(--brand-button);
}
.shipform .whenrow .whentoggle:focus-visible ~ .whenbtn {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.shipform .whenrow .schedpanel { display: none; flex: 1 1 100%; margin-top: 10px; }
.whentoggle:checked ~ .schedpanel { display: block; }
.shipform .schedpanel .fld { margin-bottom: 10px; }
.shipform .schedpanel input[type="date"],
.shipform .schedpanel input[type="time"],
.shipform .schedpanel select { width: 100%; }
/* The quick-pick pills, WrapPanel :1209 / :1229: 26px tall, 6px apart, wrapping. */
.shipform .schedpills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.shipform .schedpills .schedpill { min-height: 26px; padding: 0 10px; font-size: 13px; }
/* MutedCaption :1247 — the resting summary line under the zone. */
.shipform .schedsummary { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-muted); }
/* `RefreshShipActionButtons()`: one action button at a time. */
.shipform .actions .schedbtn { display: none; }
.shipform .rail:has(.whentoggle:checked) .createbtn { display: none; }
.shipform .rail:has(.whentoggle:checked) .schedbtn { display: inline-flex; }

/* 3. ISLAND 5, THE LIST — :1043-:1105. The count pill beside the heading
      (`borderSchedCount`: SurfaceCard on the brand strip, radius 10, 8/2
      padding, caption size), Refresh at the strip's right, and InsetPanel rows
      with the id semibold and the "Dispatches …" caption under it. */
.islandhead .schedcount {
  display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 10px;
  background: var(--card); color: var(--text); font-size: 12px; font-weight: 600;
  vertical-align: middle;
}
.islandhead .schedrefresh { min-height: 24px; padding: 0 10px; font-size: 13px; }
.schedlist { list-style: none; margin: 0; padding: 0; }
.schedlist .schedrow {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--surface-alt);
}
.schedlist .schedtrip { font-size: 14px; font-weight: 600; color: var(--text); }
.schedlist .schedwhen { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web11 r05 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web12 r02 — THE PRODUCT SUGGESTION LIST ANCHORS TO ITS OWN BOX.

   🔒 Gord, 2026-09-15: "The GTIN Product online search is working, but its
   putting the dropdown to the lefthand side of the screen … this is happening
   on all the screens that have GTIN Product."

   THE CAUSE, MEASURED. `.prodpop` was `position: absolute` with no offsets, and
   `ship.js` appends it to the Product box's PARENT. On Enter New Shipment and
   Enter New Return that parent is the `.prodrow` grid row, and nothing in this
   sheet positioned it — so the list had no containing block but the page and
   fell to its STATIC position, which for an absolutely-positioned child of a
   grid container is the top-left of the grid's content box: under the GTIN
   column, over the Product box. The address list never had this fault because
   it was built the other way round: `.addrcard .fld` is `position: relative`
   and its list says `top: 100%; left: 0; right: 0`. That pair is the house
   shape, and this section gives the product list the same one. The three
   offsets themselves now sit on the `.prodpop` rule in web9 r07's section
   above (the one rule that list owns); what lives here is the CONTEXT.

   ⭐ WHAT THE LIST IS ANCHORED TO, AND WHY IT IS NOT A NEW WRAPPER. The Product
   box has no wrapper of its own on any of the four screens: on the two grid
   screens its parent IS the row, on the two batch screens its parent IS the
   cell. Wrapping it from script would make the wrapper the grid item and take
   every column rule off the box; wrapping it in markup is four page files this
   round does not own. So the ROW is the positioning context, and the list is
   placed on the BOX'S OWN GRID AREA: an absolutely-positioned child of a
   positioned grid container takes its containing block from `grid-column` /
   `grid-row`, so `top: 100%; left: 0; right: 0` resolve against the Product
   track and nothing else. The list starts at the box's left edge and is as
   wide as the box (up to its 34em ceiling), which is what the PC's popup does,
   and no pixel from the track lists is repeated here — a track change moves
   the list with it. On the two batch screens the CELL is the context and the
   same three offsets resolve against the Product cell.

   ⛔ NOTHING ABOUT THE LIST'S ROWS, WORDS, DOOR OR PICK CHANGES, and `z-index`
   stays 40. No token, no colour of any kind, and not one rule of the address
   card's list is touched, reused or renamed.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ---------- 1. the two grid screens: the row is the context ---------- */
.shipform .contents .prodrow,
.shipform.retform .prodrow { position: relative; }

/* The list is a child of the row, placed on the Product box's own grid area:
   column 2 of the row's one line on both screens (GTIN · Product · …). */
.shipform .contents .prodrow > .prodpop,
.shipform.retform .prodrow > .prodpop {
  grid-column: 2;
  grid-row: 1;
}

/* Show GTIN off (Enter New Shipment only carries `.nogtin`): the barcode track
   is gone and Product is the first column, so the list is too. */
.shipform.nogtin .contents .prodrow > .prodpop { grid-column: 1; }

/* The narrow collapse, at each family's own breakpoint. When the tracks stack,
   the Product box becomes the second LINE of the row (GTIN above it, Qty and
   the cross below) and spans it — so the list spans it too and sits under THAT
   line, not under the whole row. With Show GTIN off there is no line above it. */
@media (max-width: 700px) {
  .shipform .contents .prodrow > .prodpop { grid-column: 1 / span 3; grid-row: 2; }
  .shipform.nogtin .contents .prodrow > .prodpop { grid-column: 1 / span 3; grid-row: 1; }
}
@media (max-width: 760px) {
  .shipform.retform .prodrow > .prodpop { grid-column: 1 / span 2; grid-row: 2; }
}

/* ---------- 2. the two batch screens: the cell is the context ---------- */
/* Batch Shipment and Batch / Recall Returns draw the rows in `table.grid
   .products` and put the Product box straight inside its cell. A relative cell
   is a containing block in every current browser, so the same three offsets
   land the list under the Product cell, as wide as the cell. */
.batchform table.grid.products td { position: relative; }

/* ---------- 3. the contents islands do not clip it ---------- */
/* `.card.island` is `overflow: hidden` so the header strip meets the card's
   corners; the address islands (web8 r01) and the rail (web11 r05) already opt
   out for their own drop-downs. A list drawn at the top of the row was never
   clipped; a list anchored UNDER the last row would be cut at the island's
   edge — and the island's own scroll would close it, web8 r01's exact finding.
   The opt-out is by what the island HOLDS, because the section tags live in
   page files this round does not own; the site rule is not undone, and the
   strip keeps the card's top corners exactly as the address islands' does. */
.card.island:has(.prodrow),
.card.island:has(table.grid.products) { overflow: visible; }
.card.island:has(.prodrow) > .islandhead,
.card.island:has(table.grid.products) > .islandhead {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web12 r02 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ⚠️ The harness slices this round's stylesheet with css_section(), which runs
   from the marker to the NEXT banner. Without a closing banner every slice
   runs to EOF and the newest CSS in the sheet decides this round's verdicts.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web12 r04 — OPENING A SHIPMENT SAYS LOADING WHILE IT WAITS.

   🔒 Gord, 2026-09-15, Edit Active Shipments: "When you double click a
   shipment to open it, it takes a few seconds … a time graph across the
   middle of the screen saying loading, or whatever is considered good UI UX
   and Design in 2026."

   WHAT THIS IS. `#openwait` is a status strip edit.php renders on every view
   of the screen with the `hidden` attribute on it, and listrows.js un-hides
   about 180 ms after the double-click, just before it navigates. It is an
   INDETERMINATE bar — the duration is not known, so a filling bar would be a
   lie — running along the very top of the viewport, with the sentence in a
   small card under it. `position: fixed`, because when a shipment is open
   the Active list is at the BOTTOM of a long page and a strip at the top of
   the content would be scrolled out of sight at the exact moment it matters.

   ⛔ NOTHING HERE SHOWS THE STRIP. The only rule with `display` is scoped to
   `:not([hidden])`, so the user agent's `[hidden] { display: none }` stands
   and a page that arrives with the attribute is a page that says nothing.
   ⛔ Tokens only — the bar is the brand colour, the card is a card, the words
   are the text colour — so both themes are served by the same eight lines.
   ⛔ REDUCED MOTION: the site-wide rule above already zeroes every animation;
   this section says it again on its own bar AND fills the track so the strip
   still reads as "busy" without moving, and the sentence still says it.
   ══════════════════════════════════════════════════════════════════════════════ */

/* Shown only once the script has taken `hidden` off. Pointer events pass
   through — the strip must never catch the click that follows a fast open. */
.openwait:not([hidden]) {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

/* The track: full width, the height of a hairline, on the page's own line
   colour, so the moving fill has something to move along. */
.openwait-bar {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: var(--line);
}

/* The fill: a third of the track, sliding left to right and starting again —
   the indeterminate shape every 2026 browser and design system uses for "we
   do not know how long". */
.openwait-fill {
  display: block;
  width: 33%;
  height: 100%;
  background: var(--brand);
  animation: openwait-run 1.2s ease-in-out infinite;
}

@keyframes openwait-run {
  from { transform: translateX(-100%); }
  to   { transform: translateX(303%); }
}

/* The sentence: REAL text in a small card just under the track, in the page's
   type, so it is read by a screen reader (the wrapper is role="status") and
   seen in both themes. */
.openwait-text {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--text);
  font: 600 14px/1.3 var(--sans);
  box-shadow: var(--shadow);
}

/* Somebody who has asked their machine for less movement gets a still bar
   that fills the track, and the same sentence. */
@media (prefers-reduced-motion: reduce) {
  .openwait-fill { animation: none; width: 100%; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web12 r04 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ⚠️ css_section() runs from a marker to the NEXT double-line banner; this one
   closes the slice so the next round's rules cannot decide this round's verdicts.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   web12 r06 — BATCH SHIPMENT: "WHAT'S BEING SHIPPED" FITS THE SCREEN
   Gord, session 66 smoke: the band ran off the right edge (Weight cut off) and
   "Qty / delivery" was far wider than the 4–5 characters it ever holds.
   Cause: the packaging column was capped at 440px, while its row needs
   200 + 94 + the weight caption's own width + two 16px gaps (~500px).
   Fix: the packaging column takes its own content width; the product table's
   Qty column is ~5 characters and the Product column takes what is left.
   Scoped to Batch Shipment's island (`.islandbody.batchcontents`) only.
   ══════════════════════════════════════════════════════════════════════════════ */
.batchform .islandbody.batchcontents {
  grid-template-columns: minmax(0, 1fr) max-content;
}
.batchform .islandbody.batchcontents .batchpkgrow input#f-weight {
  width: 100%;
}
.batchform .islandbody.batchcontents table.grid.products th:nth-child(1),
.batchform .islandbody.batchcontents table.grid.products td:nth-child(1) {
  width: 15.5em;
}
.batchform .islandbody.batchcontents table.grid.products th:nth-child(3),
.batchform .islandbody.batchcontents table.grid.products td:nth-child(3) {
  width: 6.5em;
}
.batchform .islandbody.batchcontents table.grid.products input.cellnum {
  width: 6em; max-width: 100%;
}
@media (max-width: 900px) {
  .batchform .islandbody.batchcontents { grid-template-columns: minmax(0, 1fr); }
}
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web12 r06 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   web17 r01 — BATCH SHIPMENT: THE PACKAGE CARDS SIT BESIDE THE PRODUCTS, NOT ON THEM
   Gord, 2026-09-21, live: with the courier's "Enter each package separately" ON,
   the package-card table was drawn on top of the product table, "+ Add another
   package" over "+ Add product", and the qty helper sentence ran one word per
   line down a ~60px strip at the left edge.
   Cause, measured: web12 r06 (directly above) sizes this island's packaging
   column `max-content` — right for per-package OFF, whose one row (type 200 +
   pieces 94 + the weight caption + two gaps) the earlier 440px cut short. With
   per-package ON that column holds `table.grid.packages` instead: a package-type
   select sized by the WIDEST name the courier serves, a pieces box at 100% and
   the ✕ gutter — and `max-content` of THAT has no ceiling, so column 2 took
   nearly the whole island, column 1 (`minmax(0, 1fr)`) collapsed toward zero,
   and the cards overflowed the collapsed products column. The 60px sentence IS
   column 1's remaining width. One value cannot serve both modes.
   Fix: the ON mode gets its own tracks, chosen by what the island HOLDS
   (`:has(table.grid.packages)` — the technique web12 r02 already uses on this
   island). With no card table in the DOM the selector cannot match, so web12
   r06's `max-content` still governs the OFF mode, untouched. 480px: the widest
   text the select ever shows is the FR/ES placeholder ("-- Sélectionnez le type
   de colis --", 35 characters — wider than any package-type name the stub
   serves: Envelope, Box), ~22em at the table's 13px, so 22em + the cell's 20px
   + the ✕ cell's 48px leaves ~125px for the pieces box inside 480. The select
   is capped the way the products table caps `input.cellgtin`, so a courier
   with a longer name shows an ellipsis in the closed box (the open list is
   never clipped) instead of pushing its cell — and the track — wide.
   ⛔ Wrapped in (min-width: 901px), and this is not optional: `:has()` carries
   its ARGUMENT's specificity, so this selector is (0,5,1) against the 900px
   rule's (0,3,0) — bare, it would out-rank web12 r06's single-column rule at
   every width and the ON mode would never stack. Under 901px this rule does
   not exist and the 900px rule keeps both modes.
   ══════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 901px) {
  .batchform .islandbody.batchcontents:has(table.grid.packages) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  }
}
.batchform .islandbody.batchcontents table.grid.packages select {
  width: 100%; max-width: 22em;
}
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web17 r01 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web17 r04 — THE COURIER BAND'S ADDRESS ROW: the My-defaults band's
   three-across address row, one level up. 🔒 Gord, 2026-09-08: "at a courier
   and user level, we should add City, Country and Provience/state level
   defaults, for both pick up, delivery addresses." The courier band's greyed
   "Address defaults" row is LIVE: six boxes under one caption, City · Province
   · Country twice, each triple under its own small bold sub-caption (the
   My-defaults band's own pickup / delivery words).

   THESE ARE `.mydefaults .addrrow`, `.mydefaults .fld` AND `.mydefaults .fld >
   label` RE-STATED FOR `.couriersettings` — the same desktop widths (City 200,
   Province 220, Country 180, ten apart, as `fr`s so the three shrink together),
   the same column stack, the same muted caption over each box. ⛔ NOT a change
   to the My-defaults rules: the standing rule of this train is that an earlier
   section is not edited, so the selector list up there was left alone and the
   three rules are said again here for the one other band that draws the row.
   `.addrsub` is new: the sub-caption above each triple, bold like `.addrcap`
   (it names a group of three), with 8 of air between the two triples.
   ══════════════════════════════════════════════════════════════════════════════ */
.couriersettings .addrrow {
  display: grid;
  grid-template-columns: minmax(0, 200fr) minmax(0, 220fr) minmax(0, 180fr);
  gap: 0 10px; align-items: start;
}
.couriersettings .fld { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.couriersettings .fld > label { font-weight: 400; font-size: 13px; color: var(--text-2); }
.couriersettings .addrsub { display: block; margin: 0 0 4px; font-weight: 700; color: var(--text); }
.couriersettings .addrrow + .addrsub { margin-top: 8px; }
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web17 r04 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   web17 r05 — ENTER NEW SHIPMENT: PER-PACKAGE ENTRY, THE CARD LIST IN ISLAND 3
   Gord, 2026-09-21: build per-package entry on every screen that has a package
   type, screen-only, ahead of the multi-package webservice. With the courier's
   "Enter each package separately" ON, island 3's package card holds Batch
   Shipment's `table.grid.packages` (one row per package: type select, pieces
   box, ✕), "+ Add another package", the read-only total, then the weight row
   WITHOUT its Package type cell, then the amber note. With the switch OFF none
   of this markup exists, so none of these rules can match: every selector below
   hangs off `.pkgcards` (the ON-only class on the card wrapper) or `.notype`
   (the ON-only class on the row) or the card table itself.

   THE ROW: web4 r02's six tracks are `220px minmax(174px, 1.6fr) repeat(4,
   minmax(0, 1fr))` — the 220 is the Package type cell. With that cell gone the
   row is Weight · L · W · H, so the same tracks minus the 220. ⛔ Wrapped in
   (min-width: 901px), and this is not optional — the web17 r01 lesson: the
   900px stack at `.shipform .row-pkg` is (0,2,0) and this selector is (0,3,0);
   bare, it would out-rank the stack at every width and the ON row would never
   collapse to one column on a phone. Under 901px this rule does not exist.

   THE TABLE: `table.grid` is 100% wide and nowrap by the kit's own rule; the
   select is capped at 22em the way web17 r01 capped Batch's (the FR/ES
   placeholder is the widest text it ever shows), so a courier with a long
   package name shows an ellipsis in the closed box instead of pushing the
   table past the card. The pieces box is a `type=number` (the shared control
   rule already sizes it and web9 r03 already suppresses its spinner); 6em
   holds four digits. `.rowx`, the readout and the note are batch.php's own
   three rules re-stated for `.shipform`, NOT the `.batchform` rules widened —
   an earlier section is not edited on this train. ⛔ `.shipform .pkgnote` is
   deliberately NOT the selector: web4 r11 deleted that rule with the paragraph
   it painted and the harness holds it absent; the ON-only paragraph is scoped
   under `.pkgcards`, where it exists only while the cards do.
   ══════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 901px) {
  .shipform .row-pkg.notype {
    grid-template-columns: minmax(174px, 1.6fr) repeat(4, minmax(0, 1fr));
  }
}
.shipform .pkgcards table.grid.packages { margin: 0 0 6px; }
.shipform table.grid.packages select {
  width: 100%; max-width: 22em;
  height: var(--control-h-compact); min-height: var(--target-min);
}
.shipform table.grid.packages input[type="number"] {
  width: 6em;
  height: var(--control-h-compact); min-height: var(--target-min);
}
.shipform table.grid.packages td { vertical-align: middle; }
.shipform button.rowx {
  width: var(--target-min); min-height: var(--target-min);
  padding: 0; background: none; border: 1px solid transparent;
  border-radius: var(--radius-input);
  color: var(--text-2); font-size: 14px; line-height: 1; cursor: pointer;
}
.shipform button.rowx:hover:not([disabled]) { border-color: var(--line); color: var(--brand); }
.shipform button.rowx[disabled] { opacity: 0.45; cursor: default; }
/* The read-only total: a paragraph, and it must never look like a box. */
.shipform .pkgcards .piecesreadout {
  margin: 6px 0 12px; font-size: 13px; font-weight: 600; color: var(--text-2);
}
/* ⛔ web17 r10: `.shipform .pkgcards .pkgnote` — the amber note under the cards —
   is GONE with the ON-only paragraph it painted (Gord, 2026-09-21: "dont write
   the warning. Its not needed."). A rule with no element is how deleted prose
   comes back. */
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web17 r05 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★ web17 r06 — EDIT ACTIVE SHIPMENTS: THE PER-PACKAGE CARD LIST, r05's SHAPE
   ONE SCREEN ALONG. 🔒 Gord, 2026-09-21: "Including Edit Active Shipments as a
   use may need to add or remove a package type." With the courier's "Enter each
   package separately" ON, the Packages island's card holds r05's
   `table.grid.packages` (one row per package: type select, pieces box, ✕),
   "+ Add another package", the read-only total, then web6 r01's eight-column
   row WITHOUT its Package type and Pieces cells, then the two amber notes. With
   the switch OFF none of this markup exists, so none of these rules can match.

   TWO RULES ONLY, AND WHY NOT MORE: edit.php's form wears BOTH classes
   (`class="shipform editform"`), so r05's `.shipform` rules for the card
   table, the select, the number box, the ✕, the readout and the amber
   paragraph under `.pkgcards` already paint this screen's table — re-stating
   them for `.editform` would be duplication, not scoping. What r05 could not
   know about is this screen's own row and its own second sentence.

   THE ROW: `.editform .row-pkg8` is eight tracks — `2.2fr 1fr 1.6fr 1fr 1fr 1fr
   1fr 1fr`, the first two the type and pieces cells. With those two gone the row
   is Weight · L · W · H · Original · Q/H, so the same tracks minus the first
   two. ⛔ Wrapped in (min-width: 901px) for r05's reason: the sub-901 stack at
   `.editform .row-pkg8` is (0,2,0) and this selector is (0,3,0); bare, it would
   out-rank the stack at every width and the ON row would never collapse on a
   phone. Under 901px this rule does not exist and the three-column stack rules.
   ══════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 901px) {
  .editform .row-pkg8.notype {
    grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr));
  }
}
/* ⛔ web17 r11: `.editform .pkgcards .pkgnote-edit` — the second amber sentence's
   spacing under the first — is GONE with the sentence it spaced (Gord,
   2026-09-21: "dont write the warning. Its not needed."). A rule with no element
   is how deleted prose comes back. */
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web17 r06 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   web18 r01 — ENTER NEW SHIPMENT: THE PACKAGE CARD IS THE PC'S CARD
   Gord, 2026-09-21: "We drifted so hard. We lost the DIM section for each
   package type." With per-package ON, island 3 holds `div.pkgcards` of
   `div.pkgcard.pkgrow` cards — the PC's SurfaceCard (NewShipmentView.xaml
   :676-:679): an InsetPanel header (the numbered disc, "Package N", the ✕),
   then a 10px body holding ONE row — Package type · Pieces · Weight · Length ·
   Width · Height · Original · Q/H — and the card's own Contents inset. With the
   switch OFF none of this markup exists (`.pkgcards` is ON-only), so none of
   these rules can match, and the r05 `.row-pkg.notype` rule above matches
   nothing any more: the row lives INSIDE each card WITH its type cell.

   THE ROW: eight tracks at ≥901px — 200 for the type (the PC's Width="200"),
   `auto` for the Pieces cell (nothing while the count is hidden, the PC's Auto
   column), then Weight at 1.6 shares and five equal shares. ⛔ Wrapped in
   (min-width: 901px) for the web17 r01/r05 reason: the 900px stack at
   `.shipform .row-pkg` is (0,2,0) and this selector is (0,3,0); bare, it would
   out-rank the stack at every width. Under 901px the one-column stack rules.

   THE GTIN COLUMN: the server draws a card's Contents WITHOUT its GTIN cells
   when Show GTIN is off (`fieldset.contents.nogtin`) — the four-track grid the
   web9 r07 `.shipform.nogtin .contents` rule paints when the SCRIPT hides the
   column, re-stated on the fieldset's own class so the first painted frame is
   right with no script at all. Same tracks, same 700px collapse.
   ══════════════════════════════════════════════════════════════════════════════ */
.shipform .pkgcards .pkgcard { padding: 0; overflow: hidden; }
.shipform .pkgcards .cardhead {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px;
  background: var(--surface-alt); border-bottom: 1px solid var(--line);
}
.shipform .pkgcards .cardnum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 11px; flex: 0 0 auto;
  background: var(--brand); color: var(--on-brand);
  font-weight: 700; font-size: 13px; line-height: 1;
}
.shipform .pkgcards .cardtitle { flex: 1 1 auto; font-weight: 600; }
.shipform .pkgcards .cardbody { padding: 10px; }
@media (min-width: 901px) {
  .shipform .pkgcards .row-pkg {
    grid-template-columns: 200px auto minmax(0, 1.6fr) repeat(5, minmax(0, 1fr));
  }
  /* r01b correction: with Show piece count OFF the Pieces cell is not drawn, so
     the row is SEVEN cells and the `auto` track must go with it — otherwise
     Weight lands in the content-sized second track and every cell after it
     shifts one track left. `.nopieces` is set by ship.php with the cell. */
  .shipform .pkgcards .row-pkg.nopieces {
    grid-template-columns: 200px minmax(0, 1.6fr) repeat(5, minmax(0, 1fr));
  }
}
.shipform .pkgcards .pkgpieces input[type="number"] { width: 5em; }
.shipform .pkgcards .cardbody .contents { margin-bottom: 0; }
.shipform .contents.nogtin .prodhead,
.shipform .contents.nogtin .prodrow {
  grid-template-columns: minmax(0, 1fr) 70px 90px 34px;
}
@media (max-width: 700px) {
  .shipform .contents.nogtin .prodrow { grid-template-columns: minmax(0, 1fr) 70px 34px; }
}
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web18 r01 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   web18 r03 — BATCH SHIPMENT: THE SAME CARD, DEFINED ONCE FOR THE BATCH
   Gord, 2026-09-21: "We drifted so hard. We lost the DIM section for each
   package type." With the courier's "Enter each package separately" ON, island
   2 ("What's being shipped") holds `div.pkgcards` of r01's `div.pkgcard.pkgrow`
   cards — the batch form wears `shipform`, so r01's card rules above paint them
   unchanged — and the shared product table is NOT drawn: each card carries its
   own "Contents of this package". With the switch OFF none of this markup
   exists, so this rule cannot match and web12 r06's `max-content` column still
   governs the OFF row exactly as web17 r01 left it.
   THE TRACK, MEASURED: a full card row is EIGHT tracks at ≥901px (200px for the
   type, the Pieces cell, Weight at 1.6 shares, five equal shares — r01's rule)
   and is wider than any two-column island can hold beside a product table, so
   with the cards in the DOM the island is ONE track, `minmax(0, 1fr)`: the
   cards stack full-width UNDER the island head, nothing beside them, nothing
   overlapping. web17 r01's `:has(table.grid.packages)` rule (480px beside the
   products) is left in its own section and now matches nothing — no card
   TABLE is drawn on this screen any more.
   ⛔ Wrapped in (min-width: 901px) for web17 r01's reason: `:has()` carries its
   argument's specificity, so this selector is (0,4,0) against the 900px rule's
   (0,3,0) and bare would out-rank web12 r06's stack at every width. Under
   901px the 900px rule keeps both modes in one column.
   ══════════════════════════════════════════════════════════════════════════════ */
@media (min-width: 901px) {
  .batchform .islandbody.batchcontents:has(.pkgcards) {
    grid-template-columns: minmax(0, 1fr);
  }
}
.batchform .pkgcards { margin-bottom: 8px; }
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web18 r03 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web20 r05 — KEYBOARD SHORTCUTS: THE RE-MAP CELL.
   Each row's Change button, the capture's live sentence beside it, and the
   server's refusal under it. Colours are variables only.
   ══════════════════════════════════════════════════════════════════════════════ */
.hkform .hkedit { white-space: normal; }
.hkform .hkchange[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.hkform .hkmsg { color: var(--text-muted); font-size: 13px; }
.hkform .hkedit .problem {
  display: block; margin-top: 4px;
  color: var(--bad); background: var(--bad-tint);
  border-left: 3px solid var(--bad); padding: 4px 8px; border-radius: 0 3px 3px 0;
}
.hkform .formactions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web20 r05 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web20 r07 — THE SECOND STEP AT SIGN-IN (verify.php).
   The page wears the sign-in screen's own islands (.loginscreen, .hero,
   .logincard, .loginrow, .actions); these rules are only its three new
   pieces: the recovery-code disclosure (a native details, no script — the
   page's CSP is script-src none), the set-up link line, and Cancel, drawn as
   a quiet text button because it is a POST (it carries the CSRF token).
   Colours are variables only.
   ══════════════════════════════════════════════════════════════════════════════ */
.loginscreen .verifyrecovery { margin: 18px 0 0; }
.loginscreen .verifyrecovery summary {
  cursor: pointer; text-align: center; color: var(--brand);
  min-height: var(--target-min); line-height: var(--target-min);
}
.loginscreen .verifyrecovery summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.loginscreen .verifyrecovery form { margin-top: 18px; }
.loginscreen .verifysetup { text-align: center; margin: 0 0 18px; }
.loginscreen .verifycancel { text-align: center; margin: 0; }
.loginscreen .verifycancel button {
  background: none; border: 0; box-shadow: none;
  color: var(--brand); text-decoration: underline;
  min-height: var(--target-min); padding: 0 8px; cursor: pointer;
}
.loginscreen .verifycancel button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web20 r07 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web20 r09 — SETTINGS → SIGN-IN SECURITY (and the forced set-up page).
   The QR code sits in a paper-white box with paper-ink modules in BOTH themes,
   so a phone scans it in the dark theme too. The print rule prints the
   recovery codes box alone while security.js has marked the body.
   ────────────────────────────────────────────────────────────────────────────── */
.setband.security .mfalist { border-collapse: collapse; margin: 8px 0; }
.setband.security .mfalist th,
.setband.security .mfalist td { text-align: left; padding: 4px 12px 4px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.setband.security .mfarequired { color: var(--warn); }
.setband.security .mfaqr { display: inline-block; background: var(--paper); color: var(--paper-ink); padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-input); }
.setband.security .mfaqr svg { display: block; width: 200px; height: 200px; }
.setband.security .mfakey { font-size: 1.1em; letter-spacing: .05em; user-select: all; }
.setband.security .mfainline { display: inline; }
.setband.security .mfaask { background: var(--warn-tint); border: 1px solid var(--line); border-radius: var(--radius-input); padding: 8px; }
.setband.security .mfacodesbox { background: var(--surface-alt); border: 1px solid var(--line-strong); border-radius: var(--radius-input); padding: 12px; margin: 8px 0; }
.setband.security .mfacodes { columns: 2; font-size: 1.1em; }
.setband.security .mfacopied { color: var(--ok); }
.mfaforced .mfasignout { margin-top: 12px; }
/* ★★★ rw1 r10 — THE CODES PRINT ON ONE PAGE (Rowan: 6 pages to PDF, 17 to a
   printer, nearly all blank). The old rule hid the page with visibility, which
   still lays out and paginates every inch of Settings. security.js now appends
   a small copy of the codes box to the end of <body> as `.mfaprintsheet`, and
   while <body> carries `mfaprinting` every OTHER child of <body> is out of the
   layout, so only the sheet is paginated. The copy is never shown on screen.
   It loses the band's two-column styling (that rule is scoped to the band), so
   it carries its own here. */
.mfaprintsheet { display: none; }
@media print {
  body.mfaprinting > :not(.mfaprintsheet) { display: none !important; }
  body.mfaprinting > .mfaprintsheet {
    display: block;
    background: var(--paper); color: var(--paper-ink);
    margin: 0; padding: 12px; border: 0;
  }
  body.mfaprinting > .mfaprintsheet .mfacodes {
    columns: 2; font-size: 1.2em; margin: 8px 0; padding-left: 2em;
  }
  body.mfaprinting > .mfaprintsheet .mfacodes li { break-inside: avoid; margin: 0 0 6px; }
  body.mfaprinting > .mfaprintsheet .mfacodesctl { display: none; }
}
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web20 r09 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web20 r12 — USE THIS COMPUTER'S PIN (a passkey), on Settings and verify.php.
   The box is drawn with the hidden attribute and passkey.js reveals it, so no rule
   here sets display on it (a display rule would beat the attribute).
   ────────────────────────────────────────────────────────────────────────────── */
.passkeybox[hidden],
.passkeyunsupported[hidden] { display: none; }
.passkeystatus { min-height: 1.4em; margin: 6px 0 0; }
.passkeystatus.bad { color: var(--bad); }
.passkeyunsupported { color: var(--warn); }
.setband.security .mfapasskey { margin: 8px 0; }
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web20 r12 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web21 r01 — SETTINGS → SIGN-IN SECURITY IN THE HOUSE SHAPE.
   The band is now one `.setrow` like every other band: the caption and its
   sentences in the 420 column, the status sentence and the buttons in the
   control column. Measured the way the page measures: a `.setrow` starts 10 in
   from the band (the same left edge as Hold for approval's captions), so the
   set-up panels drawn under the row take the same 10 on both sides and their
   text lines up with it instead of starting left of the heading.
   The button row reuses `.formactions` and the house gap between buttons — 8,
   the same number `.hkform .formactions` and `.setrow`'s column gap use. Each
   button is its own small form, so the forms are the flex items.
   ────────────────────────────────────────────────────────────────────────────── */
.setband.security .formactions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 0; }
.setband.security .formactions > form { margin: 0; }
.setband.security .setrow > .setctl > :first-child { margin-top: 0; }
.setband.security .setrow > .setctl > p { margin: 0 0 6px; }
.setband.security > .mfasetup,
.setband.security > .mfacodesbox { margin: 8px 10px; }
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web21 r01 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web21 r06 — SHIPMENT ALERT CARDS (the PC's spShipmentAlerts, MainWindow.xaml).
   Top right, 48 px below the top, 12 px from the right edge, 320 px wide, above
   everything. The host never catches a click itself (pointer-events: none) so
   it can never block the chrome bar or the page; only a card does, to dismiss.
   Tokens only, so both themes follow. Built by assets/alerts.js.
   ══════════════════════════════════════════════════════════════════════════════ */
.alerts {
  position: fixed;
  top: 48px;
  right: 12px;
  width: 320px;
  max-width: calc(100vw - 24px);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.alerts:empty { display: none; }
.alertcard {
  pointer-events: auto;
  cursor: pointer;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-left: 4px solid var(--info);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 12px;
  opacity: 1;
  transition: opacity .6s ease;
}
.alertcard.fading { opacity: 0; }
.alertcard .alerthead { font-weight: 600; }
.alertcard .alertwhat { margin-top: 2px; }
.alertcard .alertwhen { margin-top: 2px; color: var(--text-2); font-size: 12px; }
/* Narrow windows: the chrome bar wraps onto more than one row and grows taller
   than 48 px, so the stack moves to the bottom-right gutter where it can never
   sit over Sign out. */
@media (max-width: 900px) {
  .alerts { top: auto; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .alertcard { transition: none; }
}
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web21 r06 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★★★ web22 r02 — THE TWO BUTTON GAPS (Gord's web21 smoke) and the Service login.
   1. Every Settings band's button row. The Outgoing mail server groups (Courier
      and Account cards) draw their Save / Send a test email / Remove buttons in a
      `.formactions` row inside `.setctl`, and nothing gave that row a gap — only
      the Hotkeys form and the Sign-in security band had one. ONE rule for every
      band's control column: the house gap, 8, the same number those two use. The
      Service login group and every in-page Yes / Cancel question inherit it.
      Margins are left alone, so the security band's own top margin still holds.
   2. The second-step page (verify.php). "Continue" ends one form and "Send a new
      code" is the next form, and the grid rows gave the second nothing above it.
      10 is this screen's own gap (the label and field column gap). CSS only.
   ══════════════════════════════════════════════════════════════════════════════ */
.setband .setctl .formactions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.loginscreen .verifyemailsend { margin-top: 10px; }
.setband.servicelogin .svcstatus { margin: 0; }
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web22 r02 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ★ web22 r05 — RENAME A SIGN-IN METHOD. A method's row now carries TWO small
   forms (Rename, Remove) side by side, and the inline rename row holds the text
   box, Save and Cancel. Gord's web21 smoke: buttons must never touch — the house
   gap, 8, the same number the button rows above use.
   ══════════════════════════════════════════════════════════════════════════════ */
.setband.security .mfaacts,
.setband.security .mfarename,
.setband.security .mfarenameform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.setband.security .mfarenameform input[type="text"] { min-width: 14em; }
/* ══════════════════════════════════════════════════════════════════════════════
   ⛔ END OF THE web22 r05 SECTION — APPEND BELOW THIS BANNER, NEVER INSIDE IT.
   ══════════════════════════════════════════════════════════════════════════════ */

/* rw1 r12 — the scheduled list's row buttons (Edit shipment, Cancel), the
   PC's small buttons under the row; and Edit Active's note where Delete was. */
.schedlist .schedacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.schedlist .schedacts .btnlink { min-height: 26px; padding: 0 10px; font-size: 13px; }
.editschednote { margin: 0; color: var(--text-2); font-size: 13px; flex-basis: 100%; }

/* rw4 r11 — the zone mark beside a time box: the stop's own label ("MT"), and
   under it the grey second clock in the courier's zone, shown only when the
   two differ. Text only; no colour of its own beyond the two text variables. */
.tzmark { display: block; margin-top: 2px; line-height: 1.3; }
.tzmark .tzlabel { display: inline-block; font-size: 13px; font-weight: 600; color: var(--text); cursor: help; }
.tzmark .tzsecond { display: block; font-size: 12px; color: var(--text-2); }
.tzmark .tzsecond[hidden] { display: none; }
