/* ==========================================================================
   Supplygoods — design system
   One stylesheet for every surface. Two grounds and one menu: by default the
   content is light, a grey canvas with white cards, and the menu beside it is
   dark; all dark is the choice behind the button at the foot of the menu.
   Hairline borders, tabular numerals, restraint over decoration.
   The colour tokens are scoped by `data-theme`, so `data-theme="dark"` on an
   element gives everything inside it the dark tokens whatever the page is.
   Source of truth for tokens: design.md
   ========================================================================== */

/* --- tokens: layout ------------------------------------------------------- */
/* On the root alone, never in a colour block. A colour block is re-declared on
   every element that carries `data-theme`, so a layout token in it would be
   re-declared too: the dark menu inside a light console took the comfortable
   244px and 13px back over the compact density's 218px and 10px. */
:root {
  --radius-lg: 18px;
  --radius: 13px;
  --radius-sm: 9px;
  --radius-pill: 980px;

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-accent: 'Montserrat', 'Poppins', -apple-system, 'Helvetica Neue', sans-serif;
  /* The label face. Not a monospace any more: the same family, set in capitals
     and tracked out, which is what carries a reference number here. */
  --font-mono: 'Poppins', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --sidebar-w: 244px;
  /* The bar across the top of the content exists only where the menu is a
     drawer, because it holds the one button that opens it. On a desk it is
     not drawn and is nought tall, so everything that measures itself against
     it (a sticky column, a jump target) measures nothing. */
  --topbar-h: 0px;
  --gutter: 34px;

  /* Apple-ish easing: quick out, settled in. Never bounce. */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --fast: 140ms var(--ease);
  --med: 260ms var(--ease);
}

/* The frame the content panel sits in. In the light content it is the menu's
   own black, so the menu and the frame are one surface; in all dark there is
   no frame and nothing moves. On the root only and in neither colour block:
   a scoped dark element must inherit the page's values, not declare its own. */
:root {
  --frame: var(--canvas);
  --inset: 0px;
  --inset-r: 0px;
  /* The phone menu's shadow while it is shut off the left edge, and the page
     behind it while it is open. */
  --drawer-shut: var(--shadow-pop);
  --scrim: transparent;
  /* The red light drifting behind the menu. All dark keeps it; beside light
     content the menu is flat black, the way Shopify's is, because a glow
     beside a calm white page is the one thing on the screen that moves and
     means nothing. A token on the root rather than a rule keyed on the page's
     look, because the menu carries the dark scope itself and a rule written
     against the light ancestor would reach into it. */
  --menu-glow: block;
}
:root[data-theme="light"] {
  /* The menu's charcoal, written out, so the page's rubber band pulls the
     menu's colour. No inset band: the content meets the menu edge to edge,
     the way the owner's reference draws it (November 2026). */
  --frame: #1c1c1e;
  --inset: 0px;
  --inset-r: var(--radius-lg); /* 18px, 14px in the compact density */
  --drawer-shut: none;
  --scrim: rgba(0, 0, 0, .62);
  --menu-glow: none;
}
@media (max-width: 900px) {
  :root[data-theme="light"] { --inset: 0px; --inset-r: 0px; }
}
/* What shows when the page is pulled past its top or its foot, the rubber
   band of a trackpad: the frame, so the black menu and band do not come away
   from a strip of light grey. Only where there is a frame, which on a phone
   there is not, and only on a page with the shell, because on the sign-in
   pages the body is the page and its own ground has to reach the canvas. In
   all dark the root stays clear and the body's black reaches it as before. */
@media (min-width: 901px) {
  :root[data-theme="light"] { --root-ground: var(--frame); }
}
:root:has(> body > .shell) { background-color: var(--root-ground, transparent); }

/* --- tokens: dark --------------------------------------------------------- */
:root,
[data-theme="dark"] {
  /* Said to the browser, not only to the stylesheet. Without it every native
     control is drawn light: an unticked checkbox on a black card is a solid
     white block, which on a panel of nine of them is the loudest thing on the
     screen and the one thing on it that means nothing. The ticked one, which
     is the whole answer, was the quiet one. Scrollbars, selects and date
     pickers come with it. */
  color-scheme: dark;
  --canvas: #000000;
  --shell: #050506;
  --surface-1: #0e0e10;
  --surface-2: #16161a;
  --card: #0a0a0b;
  --card-hover: #101012;
  --grid: rgba(255, 255, 255, .022);

  --text: #f5f5f7;
  /* Measured rather than eyeballed, in a real browser over ten screens in both
     themes: the dim tone was 2.96:1 against the canvas and 3.08:1 against a
     card, on nine and ten pixel type. That is what a SKU, a timestamp, a table
     heading and a breadcrumb were being drawn in, which is information rather
     than decoration, and it is a screen people read all day.

     WCAG AA asks 4.5:1 of ordinary text. Dim clears it now and muted moves
     with it so the ladder is still a ladder: quiet is a relationship between
     three tones rather than one of them being nearly invisible. */
  --text-muted: rgba(245, 245, 247, .66);
  --text-dim: rgba(245, 245, 247, .5);

  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .14);
  --border-focus: rgba(226, 64, 47, .55);

  /* the mark has its own colour, so it does not move when the interface
     accent does */
  --brand-mark: #e2402f;

  --accent: #e2402f;
  /* The red does two jobs and only one of them is read. A dot, a line, a bar
     in a chart and the mark itself carry no words, so they are the brand and
     stay exactly this. A panel with white on it is text, and text has a floor:
     white on #E2402F measures 4.19:1 and misses AA. `--accent-fill` is what
     goes under white, and the light theme has been carrying it since it was
     written, because on white the red had to darken anyway. So this is the
     light theme's own answer brought across rather than a colour invented
     here, and nothing about the mark moves. */
  --accent-fill: #cf3a29;
  --accent-ink: #ffffff;
  --accent-soft: rgba(226, 64, 47, .13);
  --accent-line: rgba(226, 64, 47, .32);

  /* the ink the temple on the auth panel is drawn in: the accent red taken
     down to a bordeaux that only just separates from the panel */
  --art-ink: #e2402f;
  --art-op: .1;

  /* a pane of glass: the light along its top edge, the sheen across its
     shoulder, the rim around it, and the fill a control on it takes */
  --glass-lip: rgba(255, 255, 255, .1);
  --glass-sheen: rgba(255, 255, 255, .16);
  --glass-rim: rgba(255, 255, 255, .13);
  --glass-fill: rgba(255, 255, 255, .07);
  --glass-fill-hover: rgba(255, 255, 255, .13);
  --glass-base: rgba(0, 0, 0, .35);
  --glass-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);

  /* the four steps a density cell can sit at before it turns red */
  --viz-cell-0: rgba(255, 255, 255, .035);
  --viz-cell-1: rgba(255, 255, 255, .075);
  --viz-cell-2: rgba(255, 255, 255, .14);
  --viz-cell-3: rgba(255, 255, 255, .22);

  /* The tone a status is drawn in, and the tone its word is written in, are
     two different jobs. A dot, a line or a fill is a mark and the tone does
     it; a chip is text on a tint of that same tone, and on a light background
     that lands around 3.4:1, which is under what ordinary text needs. Dark
     does not have the problem for the four status tones, so those inks are the
     tone here and are darkened only in the light theme. */
  --good-ink: var(--good);
  --warn-ink: var(--warn);
  --info-ink: var(--info);
  --bad-ink: var(--bad);
  /* The accent is the exception, and it fails in the opposite direction from
     the light theme. The brand red on its own tint over the card measures
     4.28:1 here, so the word is lifted rather than darkened: the mirror of the
     `#ad2d1d` the light content carries. 5.32:1. Only the word on a
     tint reads it, which is the accent badge, the hot menu count and the hot
     pill. */
  --accent-ink-on-soft: #ef5a48;

  --good: #22c07a;
  --good-soft: rgba(34, 192, 122, .12);
  /* Chosen. Darker than the good green, because this is a state a whole
     grid can be in at once and the good green at that count is a lot. */
  --picked: #2f8f63;
  --picked-line: #2b6f50;
  --picked-soft: rgba(47, 143, 99, .13);
  --warn: #f5a623;
  --warn-soft: rgba(245, 166, 35, .13);
  /* the accent is red now, so danger has to be told apart by lightness
     rather than hue, or every warning reads as a button */
  --bad: #ff9d8a;
  --bad-soft: rgba(255, 157, 138, .13);
  --info: #7ea1ff;
  --info-soft: rgba(126, 161, 255, .13);
  --shopify: #95bf47;

  /* A word in red. Here it is the accent itself; the light content takes it
     darker, because the brand red as a word is 4.33:1 on the grey canvas. */
  --accent-text: var(--accent);

  /* What a field is drawn on and edged with. Its own token rather than a
     surface, because the light content wants Shopify's white field with a
     grey edge on a grey dialog and on a white card alike. */
  --field-bg: var(--surface-1);
  --field-bg-focus: var(--surface-2);
  --field-border: var(--border-strong);

  /* How much of its own tone an avatar's initials and ground take, and how
     much of its tint a product drawing takes. On white the full tone is too
     pale to read, so the light content mixes in more of the text. */
  --av-ink-mix: 70%;
  --av-bg-mix: 22%;
  --thumb-tint: 100%;

  /* The ground of anything that pops over the page: a tip, a person card, the
     outbox, the proof preview, the tour card. */
  --pop: var(--surface-2);

  /* The product row of a grouped table, which on a collapsible catalogue is
     every row there is. */
  --group-row: var(--surface-2);

  /* The wash under an accent line in a chart. On white a red wash is a red
     panel, so the light content draws the line and the peak dot only. */
  --accent-wash: .3;

  /* The parcel figures: the shadow under each, and the doormat a delivered
     box sits on. */
  --parcel-shadow-op: .5;
  --parcel-mat: #1a1a1e;
  --parcel-mat-line: #26262b;

  --shadow-card: none;
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, .6), 0 24px 64px rgba(0, 0, 0, .7);
  /* A ring that can be seen: the ground's own colour, then the red. The wash
     this replaced measured 1.48:1 on white and 1.32:1 on the dark menu, where
     the bar for a mark is 3:1. This one is 4.86:1 on the menu. */
  --ring: 0 0 0 2px var(--card), 0 0 0 4px var(--accent);

  /* --- what only the light content draws ---------------------------------
     All dark is the look the dashboard had before the light content existed,
     and it stays that look to the pixel. Where the light content needs
     something all dark never drew (a hairline round a tip, a white ground
     under a banner, Shopify's soft shadow instead of a black one), the rule
     reads one of these, and each is unset here on purpose.

     Unset is `initial`, which for a custom property is "no value", so a rule
     written `box-shadow: var(--lc-shadow, 0 8px 24px rgba(0, 0, 0, .45))`
     draws the fallback beside it in all dark, which is what it always drew,
     and Shopify's shadow in the light content. A rule written with no
     fallback, `border: 1px solid var(--lc-line)`, is no border at all in all
     dark: that is what those rules drew for a year, because they read a token
     nobody had defined. The light block below gives each one its value, and
     the dark menu inside a light page gets them unset again from here. */
  --lc-line: initial;
  --lc-line-strong: initial;
  --lc-dim: initial;
  --lc-muted: initial;
  --lc-text: initial;
  --lc-canvas: initial;
  --lc-card: initial;
  --lc-card-hover: initial;
  --lc-surface-2: initial;
  --lc-pop: initial;
  --lc-shadow: initial;
  --lc-glass-shadow: initial;
  --lc-none: initial;
  --lc-glass: initial;
  --lc-glass-thick: initial;
  --lc-wash: initial;
  --lc-alarm: initial;
  --lc-bar-left: initial;

  /* The busiest cells of the density grid and the two red swatches of its
     key, as a share of the red. All dark keeps the wash it always had; the
     light content takes the red at no less than 80%, because on white the
     old .55 swatch was 2.23:1 and a mark needs 3:1. */
  --heat-lo: 75%;
  --heat-hi: 82%;
  --heat-key-a: 55%;
  --heat-key-b: 82%;

  /* The globes' own inks. They were black whatever the theme, with white dots,
     which on the light content was a black hole in a grey page. In the light
     theme they are what the Shopify admin's own globe is: a white sphere on a
     pale ground with the land in grey dots, so the merchant reads the same kind
     of picture in both places. The canvas reads these off the box it draws in
     (`--globe-*`, rgb triples where a script mixes in its own alpha) and draws
     again on `ecom:theme`; the notes over it read the same tokens. Every dark
     value is what the dark globe has always drawn. */

  --ow-globe-polish: 0;
  --ow-globe-light: #fffefe;
  --ow-globe-middle: #fbf8f8;
  --ow-globe-edge: #e1d4d7;
  --ow-globe-shadow: rgba(102,35,50,.15);
  --ow-ground: #000;
  --ow-ink: 245, 245, 247;
  --ow-dot-lo: .16;
  --ow-dot-hi: .76;
  --ow-route-k: 1;
  --ow-rim: rgba(255,255,255,.09);
  --ow-good: 34, 192, 122;
  --ow-note-line: rgba(255,255,255,.13);
  --ow-note-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 34px -18px rgba(0,0,0,.95);
  --ow-ic-bg: rgba(255,255,255,.06);
  --ow-ic-line: rgba(255,255,255,.14);
  --globe-ground: #000;
  --globe-ink: 245, 245, 247;
  --globe-dot-lo: .16;
  --globe-dot-hi: .76;
  --globe-dot-k: 1;
  --globe-route-k: 1;
  --globe-sphere: 255, 255, 255;
  --globe-sphere-a: .075, .02, .035;
  --globe-rim: rgba(255, 255, 255, .09);
  --globe-good: 34, 192, 122;
  --globe-warn: 245, 166, 35;
  --globe-chip-bg: var(--surface-1);
  --globe-chip-line: var(--border);
  --globe-note-bg: rgba(18, 18, 21, .92);
  --globe-note-ink: #f5f5f7;
  --globe-note-sub: rgba(245, 245, 247, .5);
  --globe-note-soft: rgba(245, 245, 247, .66);
  --globe-note-line: rgba(255, 255, 255, .13);
  --globe-note-hover: rgba(255, 255, 255, .3);
  --globe-note-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 34px -18px rgba(0, 0, 0, .95);
  --globe-ic-bg: rgba(255, 255, 255, .06);
  --globe-ic-line: rgba(255, 255, 255, .14);
  --globe-tip-bg: #151517;
  --globe-tip-shadow: 0 12px 30px rgba(0, 0, 0, .55);
  --globe-flag-bg: rgba(0, 0, 0, .5);
  --globe-pack-edge: rgba(0, 0, 0, .12);
  --globe-spark: #ffffff;
}

/* Anything on the label face is uppercase and slightly tracked, so a code
   reads as a code. Set once here rather than on forty selectors. */
[class*="mono"],
.eyebrow, .ngroup, .brandblock .bs, .userrow .ur, .kpi .klabel,
thead th, .pager .meta, .sla, .badge, .pill, .chip, .tcount,
.msg .mrole, .msg .mchan, .msg .mtime, .throw .ttime, .feedrow .ftime,
.feedrow .fname, .feedrow .fmeta, .prodcell .ps, .store-id .sdomain,
.leg .lrole, .parcel .pmeta, .lastmile,
.mpill .mno, .rolerow .rtxt span,
.defrow .dt, .barcol .blabel, .rrow .rl, .filerow .fname, .msg .att,
.qhead b.mono, .codebox {
  text-transform: uppercase;
  letter-spacing: .04em;
}
/* an address someone has to type back is not a label, and neither is an
   email address somebody has to read out or copy.

   `.is-email` rather than `.ps.is-email`, because the exemption belongs to the
   thing rather than to the one place it was first noticed: the console's order
   drawer printed a customer's address as CUSTOMER13@EXAMPLE.COM, in capitals,
   under a heading that says Email, on the screen somebody uses to write to
   them. Anything on the label face carrying an address opts out with this one
   class. */
.addr, .mpill b, .prodcell .pt, .composer textarea, .msg .mbody,
.is-email, .pcmail { text-transform: none; letter-spacing: 0; }

/* a face on every name: photo when there is one, initials on a tone from the
   id when there is not */
.avat {
  display: inline-grid; place-items: center; flex: none;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .01em;
  color: color-mix(in srgb, var(--av, var(--text-muted)) var(--av-ink-mix), var(--text));
  background: color-mix(in srgb, var(--av, var(--text-dim)) var(--av-bg-mix), var(--surface-2));
  background-size: cover; background-position: center;
  overflow: hidden; user-select: none;
}
.avat.is-photo { color: transparent; background-color: var(--surface-2); }
.avat.is-ring { box-shadow: 0 0 0 1px var(--border-strong); }
.avstack { display: inline-flex; align-items: center; }
.avstack .avat + .avat { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }
.avname { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.avname b { font-weight: 500; }
.avname > span { min-width: 0; }
.avname .ps { margin-top: 1px; }

.photopick { display: flex; align-items: flex-start; gap: 16px; }
.photopick .ppview { flex: none; }

/* The crop surface. What is inside the square is what gets stored, and the
   circle over it is where the avatar will actually cut: a square preview of a
   round hole is a preview of the wrong thing. */
.ppcrop {
  position: relative; width: 176px; height: 176px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong); background: #0a0a0b;
}
.ppcrop canvas {
  display: block; width: 176px; height: 176px;
  cursor: grab; touch-action: none;
}
.ppcrop canvas.is-dragging { cursor: grabbing; }
.ppcrop canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Drawn over the canvas, and never in the way of a drag. */
.ppcrop .ppmask {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: 50%;
  /* Dark enough to show where the cut is, light enough that what is about to
     be cut off is still visible: aiming at something you cannot see is not
     aiming. The hairline is the edge itself. */
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.ppcrop.is-square .ppmask { border-radius: var(--radius-sm); }

.ppzoom { display: flex; align-items: center; gap: 8px; margin-top: 10px; width: 176px; }
.ppzoom input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); }
.ppzoom .btn { padding: 2px 9px; }
.ppzoom .btn:last-child { margin-left: auto; }
@media (max-width: 520px) {
  .photopick { flex-direction: column; }
}
.photopick .ppside { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.photopick .ppside .hint { font-size: 12px; max-width: 34ch; }

/* --- reset --------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: var(--accent-soft); color: var(--text); }

/* keyboard focus only. Never kill the ring, never show it on mouse clicks. */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

/* thin, unobtrusive scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* The hidden attribute means hidden. Any class carrying a display of its own
   beats the browser's own rule for it, which is how a row of buttons went on
   being drawn after the code that hid it said so. */
[hidden] { display: none !important; }

/* --- shell --------------------------------------------------------------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--shell);
  border-right: 1px solid var(--border);
  padding: 20px 12px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  /* Both axes, named. Setting only overflow-y turns the other one to auto by
     itself, so the glow that is meant to bleed past the edge became four
     pixels of sideways swipe on a menu that has nothing to scroll to. */
  overflow: hidden auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

/* the gap between the work and the account block, which the beams show through */
.sidespace {
  flex: 1;
  min-height: 40px;
  position: relative;
  overflow: hidden;
}
/* Beams of light drifting up behind the menu, in the one red this product
   already uses. The blur lives here rather than on the canvas: a canvas
   filter is the sort of thing a browser can be late to, and a missing blur
   would read as a mistake rather than as a plain page.

   Faded at both ends, hardest in the middle, so it is ground under the menu
   and never a thing competing with it. */
/* --- the light behind the menu --------------------------------------------
   Two soft masses of the one red this product already uses, crossing each
   other at a fiftieth of lava lamp speed. Twenty seven seconds and thirty
   nine: they share no factor worth noticing, so they never quite line up and
   the column is never the same twice.

   Masked away at both ends, because a wash that runs into the brand at the
   top or the account block at the foot stops being weather and starts being
   a panel with a tint on it.
   -------------------------------------------------------------------------- */
.sidedrift {
  display: var(--menu-glow);
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 91%, transparent 100%);
}
.sidedrift i {
  position: absolute;
  display: block;
  left: -35%;
  width: 170%;
  height: 40%;
  border-radius: 50%;
  filter: blur(58px);
}
.sidedrift i:first-child {
  background: radial-gradient(closest-side, rgba(226, 64, 47, .22), transparent 100%);
  animation: sidedrift-a 27s ease-in-out infinite;
}
.sidedrift i:last-child {
  background: radial-gradient(closest-side, rgba(143, 31, 22, .30), transparent 100%);
  animation: sidedrift-b 39s ease-in-out infinite;
}
/* Travelling the same way rather than past each other. Two masses starting
   at opposite ends spent most of the cycle at opposite ends, which read as
   two separate lights. Overlapping ranges and different periods keep them
   near one another: they slide together into one larger mass, come apart by
   half a column, and go back, without ever repeating. */
@keyframes sidedrift-a {
  0%, 100% { top: 2%;  transform: translateX(-6%); }
  50%      { top: 48%; transform: translateX(7%); }
}
@keyframes sidedrift-b {
  0%, 100% { top: 18%; transform: translateX(8%); }
  50%      { top: 62%; transform: translateX(-6%); }
}
/* Everything in the menu sits above it. Without this the light would be
   drawn over the nav rather than behind it. */
.sidebar > *:not(.sidedrift) { position: relative; z-index: 1; }

/* Somebody who asked their machine to stop moving things gets the wash and
   none of the travel. Two masses standing still still read as light. */
@media (prefers-reduced-motion: reduce) {
  .sidedrift i { animation: none; }
  .sidedrift i:first-child { top: 6%; }
  .sidedrift i:last-child { top: 58%; }
}

.sidebottom { flex-shrink: 0; }
.sidebottom .ngroup { padding-top: 10px; }

.brandblock {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 2px;
  /* It is a button in the sidebar so the mark can draw itself when somebody
     presses it, and nothing else about it changes. */
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
button.brandblock:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.brandblock .mark { overflow: visible; }

/* A store wears its own mark wherever it is listed. */
.rolerow .av .storelogo {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.brandblock .mark { width: 26px; height: 26px; color: var(--brand-mark); flex: none; }
.authside .brandblock .mark { width: 30px; height: 30px; }
.brandblock .bn {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
}

/* The name is the logo, so it is drawn rather than typed: Space Grotesk with
   one capital S, "Supply" in 700 and "goods" in 400, as outlines, on the
   owner's word (November 2026). Two masks in one box, so "Supply" takes the
   colour of the text around it and "goods" a quieter share of the same
   colour, on any ground. Typed, it would need a second font on every page for
   one word. assets/brand/word-*.svg are made by tools/build-brand.js. */
.wordmark {
  display: block;
  position: relative;
  height: 16px;
  aspect-ratio: 590 / 92;
}
.wordmark::before, .wordmark::after {
  content: ""; position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: url(brand/word-supply.svg) no-repeat center / contain;
          mask: url(brand/word-supply.svg) no-repeat center / contain;
}
.wordmark::after {
  background: color-mix(in srgb, currentColor 52%, transparent);
  -webkit-mask-image: url(brand/word-goods.svg);
          mask-image: url(brand/word-goods.svg);
}
.authside .brandblock .wordmark { height: 18.5px; }
/* Match the brand lockup: a 26px mark beside a 24px word box. Align the
   mark with the name, rather than centring it across the name and subtitle. */
.sidebar .brandblock { align-items: flex-start; gap: 5px; }
.sidebar .brandblock .wordmark { height: 22px; margin-top: 2.5px; }
.brandblock .bs {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* connected store identity card */
.store-id {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin: 0 2px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color var(--fast), background var(--fast);
}
.store-id:hover { border-color: var(--border-strong); background: var(--card-hover); }
.store-id .sg {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
/* No logo of its own yet, so it wears ours rather than Shopify's green */
.sg { background: var(--accent-fill); color: #fff; overflow: hidden; }
.sg.has-logo { background: var(--card-hover); border: 1px solid var(--border); }
.sg img { width: 100%; height: 100%; object-fit: cover; }
.store-id .sname {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}
.store-id .snm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the connection, said in one dot rather than a chip of its own */
.sdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--good);
  animation: pulse 2.4s var(--ease) infinite;
}
.sdot.is-wait { background: var(--warn); animation: none; }
.sdot.is-bad { background: var(--bad); animation: none; }
.store-id .sdomain {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-id.is-disconnected { border-color: var(--warn-soft); }
.store-id.is-disconnected .sg { background: var(--surface-2); }

/* nav */
.ngroup {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 12px 7px;
}
.navitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-muted);
  margin-bottom: 1px;
  position: relative;
  transition: background var(--fast), color var(--fast);
}
.navitem svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.navitem:hover { background: var(--surface-1); color: var(--text); }
.navitem:hover svg { opacity: 1; }
.navitem.active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}
.navitem.active svg { color: var(--accent); opacity: 1; }
.navitem.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 17px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
/* --- one level of nesting ------------------------------------------------
   A child row is the same row, stepped in, with a hairline running down the
   branch so the indent reads as belonging rather than as a mistake in the
   padding. The thread stops short at the bottom so it points at the last
   child rather than running past it into the next group.

   The icon is smaller and the text is a step quieter: the parent is where
   somebody goes by default and the child is the way to the other half.
   The active marker is the same accent bar at the same distance, because a
   child that is on has to look as on as a parent that is. */
.navbranch {
  position: relative;
  margin: 1px 0 1px 11px;
  padding-left: 13px;
}
.navbranch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 14px;
  width: 1px;
  background: var(--border);
}
.navitem.navsub {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
  color: var(--text-dim);
}
.navitem.navsub svg { width: 14px; height: 14px; }
.navitem.navsub:hover { color: var(--text-muted); }
.navitem.navsub.active { color: var(--text); }
.navitem.navsub.active::before { left: -25px; }

.navitem .nvalue {
  margin-left: auto;
  display: inline-flex; align-items: baseline; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .01em;
  color: var(--text-muted); white-space: nowrap;
}
.navitem.active .nvalue { color: var(--text); }
/* a top-up still being checked: nearly yours, so it sits a step back */
.navitem .nvalue i { font-style: normal; color: var(--text-dim); }
.navitem .nvalue + .nbadge { margin-left: 6px; }

/* Not built yet, said in the menu rather than found on the screen. Grey and
   quiet on purpose: it is a note about the roadmap, not a thing to press. The
   row keeps its full weight, because a menu item at half opacity reads as
   disabled and this one still opens. */
.navitem .nsoon {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
/* Not a link, and it has to look like one it is not worth trying to press.
   It stays in the menu so a merchant knows it is coming, and it does nothing:
   no pointer, no hover, no selection. */
.navitem.soon {
  color: var(--text-dim);
  cursor: default;
  user-select: none;
}
.navitem.soon:hover { background: none; color: var(--text-dim); }
.navitem.soon svg,
.navitem.soon:hover svg { opacity: .4; }

.navitem .nbadge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}
/* The word on a tint, so it takes the ink rather than the tone, the way the
   accent badge beside it already does. It read `--accent` and measured
   4.44:1 in the dark and 3.94:1 in the light over the sidebar, which is
   lower than the same badge on a card because the sidebar is the lighter
   surface of the two. It is the one badge on the menu that says work is
   waiting, so it is the last string on this app that should be hard to
   read. */
.navitem .nbadge.hot { color: var(--accent-ink-on-soft); border-color: var(--accent-line); background: var(--accent-soft); }

.sidefoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 11px 0;
  border-top: 1px solid var(--border);
}
.sidefoot .userrow { flex: 1; min-width: 0; }
/* When Shopify was last read, on a line of its own over the person, which is
   where it moved when the bar across the top of the content went: one quiet
   line rather than a chip, because it is a fact about the screen and not a
   thing to press. Empty, and taking no room, while signed out. */
.sidefoot .sidesync {
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 11.5px;
}

.sidefoot .iconbtn { width: 28px; height: 28px; flex: none; }
.userrow { display: flex; align-items: center; gap: 9px; min-width: 0; }
/* overflow:hidden is what makes min-width:0 mean anything here. Without it a
   name too long for the column does not shrink and does not ellipsise: it
   simply draws past the edge, under the two buttons beside it. */
.userrow .uname {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-width: 0; max-width: 100%; overflow: hidden;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font: inherit; text-align: left;
}
/* Both lines clip the same way. The role line was free to wrap, and the one
   thing it holds is the merchant number, so it broke at the hyphen in
   ECS-0001 and put four digits on a line of their own. */
.userrow .un, .userrow .ur {
  display: block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.userrow .un { font-size: 12.5px; font-weight: 500; }
.userrow .ur { font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }

/* the face doubles as the way to change it */
.facebtn {
  position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer;
  line-height: 0; border-radius: 11px;
}
.facebtn .fcam {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: inherit; color: #fff; background: rgba(0, 0, 0, .55);
  opacity: 0; transition: opacity var(--fast);
}
.facebtn:hover .fcam, .facebtn:focus-visible .fcam { opacity: 1; }
.facebtn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
/* --- the content is a panel inset in a dark frame -------------------------
   In the light content the menu and a band across the top are one black
   frame, and the page sits in it as a panel with a rounded corner at its top
   left, the way Shopify's admin does. In all dark every token below is nought
   or the canvas, so nothing moves.

   The window still scrolls, not the panel. Making `.main` the scroll
   container would move `scrollIntoView`, the observers, pull to refresh from
   a standstill at the top and every sticky offset onto a new root. A fixed
   band with the corner drawn into it keeps the inset while scrolled without
   any of that, and there is no `overflow: clip` on the panel, because the
   band draws the corner and a clip would cut a pop-up that hangs over its
   edge. */
/* On .shell rather than body: the four sign-in pages have no shell, and body
   is their page. */
.shell { background: var(--frame); }

.main {
  flex: 1;
  min-width: 0;
  background: var(--canvas);
  margin-top: var(--inset);
  border-top-left-radius: var(--inset-r);
  min-height: calc(100vh - var(--inset));
}

/* The strip above the panel, and the outside of the panel's corner under it.
   Fixed, because the page scrolls the window and the content would otherwise
   scroll up through both: the strip as a band of the frame, the corner as the
   frame with a quarter circle cut out of it, so whatever scrolls behind the
   corner is hidden past the curve. The corner used to be drawn by the bar
   across the top of the content, and on a desk that bar is gone. Nought tall
   in all dark and on a phone. Under every overlay (90 and up). */
.shell::before {
  content: "";
  position: fixed;
  top: 0; left: var(--sidebar-w); right: 0;
  height: calc(var(--inset) + var(--inset-r));
  background:
    linear-gradient(var(--frame), var(--frame)) 0 0 / 100% var(--inset) no-repeat,
    radial-gradient(circle at 100% 100%,
      transparent calc(var(--inset-r) - .5px), var(--frame) var(--inset-r))
      0 var(--inset) / var(--inset-r) var(--inset-r) no-repeat;
  z-index: 41;
  pointer-events: none;
}

/* --- the bar across the top, only where the menu is a drawer --------------
   On a desk it was an empty strip with a face in it: the face is at the foot
   of the menu already, with the name beside it, and the sync stamp is there
   now too. Where the menu is a drawer the bar stays, because it holds the one
   button that opens it, and it is as short as a thumb allows: the menu button
   and the sync dot, nothing else. */
.topbar { display: none; }
@media (max-width: 900px) {
  .topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--topbar-h);
    /* The button's own room is the margin: its glyph lines up with the
       content's edge rather than the box around it. */
    padding: 0 var(--gutter) 0 calc(var(--gutter) - 7px);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--canvas) 72%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 40;
  }
  /* The only way into the menu: a thumb's width, and no box drawn round it,
     because a bordered square on a bar that holds nothing else is the
     loudest thing at the top of every screen. */
  .topbar .mobilebar {
    width: 42px; height: 42px;
    border-color: transparent; background: none;
    color: var(--text);
  }
  .topbar .mobilebar svg { width: 20px; height: 20px; }
  .topbar .tb-sync { margin-left: auto; }
}

/* Written by the shell, one per place rather than one per page: at the foot of
   the menu, and in the bar where the menu is a drawer. */
.syncstate {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
}
/* A phone has no room for a sentence beside the menu button, and the dot
   carries the state on its own: green is synced, amber is not syncing, red is
   not answering. The words are still there for a screen reader and on the
   title attribute, and in full at the foot of the menu one press away. */
.tb-sync { overflow: hidden; }
@media (max-width: 720px) {
  .tb-sync { gap: 0; font-size: 0; }
  /* A dot on its own is a smaller mark than a dot in a sentence, so it is
     drawn a size up and given a thumb's room, centred. */
  .tb-sync { min-width: 42px; height: 42px; justify-content: center; }
  .tb-sync .dot { width: 9px; height: 9px; }
}

/* A heading and one short fact beside it, on the same baseline. Used by the
   console for a section heading with its count. */
.titlerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }

.iconbtn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}
.iconbtn.has-dot { position: relative; }
.iconbtn .qdot {
  position: absolute; top: -3px; right: -3px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--card);
}
.iconbtn:hover { color: var(--text); border-color: var(--border-strong); background: var(--card-hover); }
.iconbtn svg { width: 15px; height: 15px; }
.iconbtn.spinning svg { animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* content */
.content {
  padding: 28px var(--gutter) 72px;
  /* Wide enough to fill a large screen rather than leaving a third of it
     black. Not unlimited: prose is capped separately, but a table that runs
     to the edge of a 27 inch monitor is a table nobody can read across.
     1420 stopped short of a 1920 screen by three hundred pixels, which read
     as a page that had not finished loading. */
  max-width: 1680px;
}
.content.narrow { max-width: 880px; }

.crumb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.crumb b { color: var(--text-muted); font-weight: 400; }

.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.pagetitle {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0 0 10px;
}
.pagesub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
  line-height: 1.55;
}
.pagesub em { font-family: var(--font-accent); font-style: italic; color: var(--text); }
.statusline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.statusline .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--good-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.statusline .lbl::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.statusline em { font-family: var(--font-accent); font-style: italic; color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .right { margin-left: auto; text-transform: none; letter-spacing: .04em; }
.eyebrow .right b { color: var(--good-ink); font-weight: 500; }

/* --- layout helpers ------------------------------------------------------ */
.grid { display: grid; gap: 14px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 14px; }
/* Four figures that belong together: four across while there is room for them,
   then two by two, then one. Never three, which leaves one tile orphaned on a
   row of its own. */
.grid-fit { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1340px) {
  .grid-fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* minmax(0, 1fr) rather than 1fr, the way the two column rule above already
     writes it. A bare 1fr is as wide as its widest child, so the one column
     the thread lands in on a phone was 383px inside a 358px screen and took
     the whole page sideways with it. Measured at 390px on the gallery, which
     is the one screen that draws every component at once. */
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid-5, .grid-4, .grid-3, .grid-2, .grid-fit { grid-template-columns: 1fr; }
}

/* --- cards --------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.card.pad-0 { padding: 0; overflow: hidden; }
/* A table drawn inside a card that already has a head is part of that card,
   not a second one: `U.table` brings its own card, and nested it drew a
   hairline a pixel inside the outer one, rounded corners inside square ones
   and, in the light content, a second shadow inside the white. */
.card .card.pad-0 { border: 0; border-radius: 0; box-shadow: none; }
.card.tall { display: flex; flex-direction: column; }
a.card { transition: border-color var(--fast), background var(--fast), transform var(--fast); }
a.card:hover { border-color: var(--border-strong); background: var(--card-hover); }
a.card:active { transform: scale(.995); }

.cardhead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  /* The controls drop to their own line rather than crushing the title. A
     period picker of seven segments in the head of a narrow card turned
     "Sales by country" into three words on three lines, each one word wide.
     Wrapping costs a row of height on a narrow card and nothing at all on a
     wide one, and a title nobody can read costs the card. */
  flex-wrap: wrap;
}
.cardhead h3 {
  margin: 0; font-size: 13.5px; font-weight: 600;
  /* Never narrower than its own words, which is what makes the row wrap
     instead of squeezing. */
  flex: 0 1 auto; min-width: max-content;
}
/* The buttons keep their width and the name gives way, rather than a long
   shop name pushing them off and wrapping itself over two lines. */
.cardhead .right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.cardhead > .teamstrip { min-width: 0; }

.scroller { overflow-y: auto; overscroll-behavior: contain; }
.scroller.h-560 { max-height: 560px; }

/* --- KPI ----------------------------------------------------------------- */
.kpi { padding: 18px; }
.kpi .klabel {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.kpi .knum {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.kpi .knum .unit { font-size: .55em; font-weight: 600; letter-spacing: -.02em; color: var(--text-muted); }
.kpi .knum.is-empty { color: var(--text-dim); font-weight: 500; }
.kpi .kfoot {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.kpi .kfoot b { color: var(--text-muted); font-weight: 500; }

/* --- pills, badges, chips ------------------------------------------------ */
.pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
/* What a price did between two answers. Up is the one worth a colour, because
   it is the one that changes what a merchant can sell the thing for; down is
   good news and reads as good news without spending one. The percentage is
   beside the amount rather than instead of it: two euros on twelve and two on
   two hundred are the same figure and not the same news. */
.pricestep { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.pricestep em { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.pricestep.is-up { color: var(--bad); }
.pricestep.is-down { color: var(--good-ink); }
.pill.up { background: var(--good-soft); color: var(--good-ink); }
.pill.down { background: var(--bad-soft); color: var(--bad); }
.pill.flat { background: var(--surface-1); color: var(--text-dim); }
/* Money in flight: neither good news nor bad, but not something to read past. */
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }

/* --- what happened, in order ---------------------------------------------
   The step that has not happened yet is drawn as still to come rather than
   left off, because a timeline that stops at today does not say what today is
   waiting for.
   -------------------------------------------------------------------------- */
.tline { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.tstep {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 14px;
  position: relative;
}
.tstep:last-child { padding-bottom: 0; }
/* The line between the dots, drawn from each step down to the next. */
.tstep:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tdot {
  width: 9px; height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--card);
}
.tstep.is-done .tdot { background: var(--good); border-color: var(--good); }
/* The middle of a long history, folded into one line. It really happened, so
   it keeps the line running through it, and it is not an event anybody acts
   on, so the dot is hollow and the words are the quiet ones. */
.tstep.is-dim .tdot { background: var(--border); border-color: var(--border); }
.tstep.is-dim .ttxt b { font-weight: 400; color: var(--text-dim); }
.ttxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ttxt b { font-size: 12.5px; font-weight: 500; }
.tstep:not(.is-done) .ttxt b { color: var(--text-muted); }
.ttxt span { font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }
.ttxt em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* The transfer slip, in the row. It was a button saying Open proof, which is
   a receipt for a picture: what anybody wants from this column is to see
   whether the amount and the reference are on the screenshot, and a word
   cannot answer that.

   Kept small on purpose. Row height is what decides how much of a queue fits
   on a screen, and this column sits in a list the floor works all day; 34px
   is the height of the two lines of text beside it, so the row does not grow
   at all. The picture is cropped to fill rather than fitted, because a
   screenshot of a banking app is portrait and fitting one leaves a tile that
   is mostly frame. */
.proofthumb {
  width: 78px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-1);
  overflow: hidden;
  position: relative;
  display: block;
  cursor: pointer;
  transition: border-color var(--fast), transform var(--fast);
}
.proofthumb:hover, .proofthumb:focus-visible { border-color: var(--border-strong); transform: translateY(-1px); }
.proofthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The frame before the bytes arrive, and what is left of it for a PDF, which
   has no picture to show. */
.proofthumb .pth-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  padding: 3px;
}
.proofthumb.is-error { border-color: var(--border-strong); }
.payment-pdf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.payment-pdf-toolbar [role="status"] { font-size: 12px; }
.payment-pdf canvas { display: block; max-width: 100%; height: auto; margin: auto; background: #fff; }
.proofthumb.is-on .pth-mark { display: none; }
.proofthumb.is-pdf .pth-mark { color: var(--text-muted); }
/* A slip on its way after a press: the mark breathes until it opens. */
.proofthumb.is-loading .pth-mark { animation: pthwait 900ms var(--ease) infinite alternate; }
@keyframes pthwait { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .proofthumb.is-loading .pth-mark { animation: none; } }

/* Proof of payment on hover. Below the overlay layer and above everything
   else: it appears over a table row and has to go away the moment a real
   sheet opens on top of it. */
.proofpop {
  position: fixed;
  z-index: 90;
  padding: 6px;
  background: var(--lc-pop, var(--surface-1));
  border: 1px solid var(--lc-line);
  border-radius: 10px;
  box-shadow: var(--lc-shadow, 0 18px 40px rgba(0, 0, 0, .55));
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}
.proofpop.is-on { opacity: 1; transform: translateY(0); }
.proofpop img {
  display: block;
  max-width: 300px;
  max-height: 220px;
  border-radius: 6px;
}
.proofpop .pfile {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* --- evidence, as photographs ---------------------------------------------
   A dispute is the photograph. It was a filename in a grey box, which is a
   receipt for a photo nobody on the deciding side could look at. Tiles the
   width of the panel they sit in, a lift on hover so it is clear they open,
   and a lightbox behind the press with zoom and a download, because the one
   thing somebody does with damage is look closely at it.
   -------------------------------------------------------------------------- */
.evshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  margin: 8px 0 4px;
}
.evshot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--lc-line);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: zoom-in;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.evshot:hover, .evshot:focus-visible {
  transform: scale(1.04);
  border-color: var(--border-strong);
  box-shadow: var(--lc-shadow, 0 14px 30px rgba(0, 0, 0, .5));
  z-index: 2;
}
.evshot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.evshot .evname {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 8px 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: #fff;
  text-align: left;
  /* At least .62 black under every glyph and only then fading out, so white
     on it is 4.5:1 or better on the light tile, on a white photograph and on
     the dark tile alike. Faded from the bottom edge it was a mid grey behind
     the top half of each letter, 2.6:1 on the light tile. */
  background: linear-gradient(to top, rgba(0, 0, 0, .74), rgba(0, 0, 0, .62) 22px, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Nothing to show yet, or nothing to show at all. Said in the tile rather
   than left as a broken image, because the two are different facts. */
.evshot .evwait {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-size: 10.5px;
  color: var(--text-dim);
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .evshot, .evshot:hover, .evshot:focus-visible { transition: none; transform: none; }
}

/* --- the lightbox --------------------------------------------------------- */
.lbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  /* Content, so the light content gives it the page's grey canvas, opaque,
     because at 97% the page behind still read through. All dark keeps the
     black at 92% it always had. */
  background: var(--lc-canvas, rgba(0, 0, 0, .92));
  color: var(--text);
  animation: fade var(--fast) both;
}
.lbox .lbbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lc-line, rgba(255, 255, 255, .12));
  color: var(--lc-text, #fff);
}
.lbox .lbname {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lbox .lbcount { font-size: 11px; color: var(--lc-dim, rgba(255, 255, 255, .58)); }
.lbox .lbtools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lbox .lbstage {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}
.lbox .lbstage.is-drag { cursor: grabbing; }
.lbox .lbstage img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.lbox .lbstage embed { width: 100%; height: 100%; border: 0; }
.lbox-fit-image .lbstage { min-height: 0; }
.lbox-fit-image .lbstage img { width: 100%; height: 100%; object-fit: contain; }
.lbox .lbnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--lc-line-strong, rgba(255, 255, 255, .18));
  background: var(--lc-card, rgba(0, 0, 0, .5));
  color: var(--lc-text, #fff);
  cursor: pointer;
}
.lbox .lbnav.prev { left: 14px; }
.lbox .lbnav.next { right: 14px; }
.lbox .lbnav:hover { background: var(--lc-card-hover, rgba(255, 255, 255, .14)); }
/* The set along the foot of the lightbox. One line that scrolls rather than
   a grid that wraps: a wrapping rail takes height off the picture, which is
   the one thing anybody opened this for. */
.lbox .lbfilm {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-top: 1px solid var(--lc-line, rgba(255, 255, 255, .12));
}
.lbox .lbfilm button {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--lc-line-strong, rgba(255, 255, 255, .18));
  border-radius: var(--radius-sm);
  background: var(--lc-surface-2, rgba(255, 255, 255, .06));
  color: var(--lc-dim, rgba(255, 255, 255, .6));
  font-family: var(--font-mono); font-size: 10px;
  cursor: pointer;
  opacity: .55;
  transition: opacity var(--fast), border-color var(--fast);
}
.lbox .lbfilm button img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.lbox .lbfilm button:hover { opacity: .85; }
.lbox .lbfilm button.is-on { opacity: 1; border-color: var(--lc-text, #fff); }

.lbcompare-status:not(:empty) { padding: 10px 14px; color: var(--lc-text, #fff); }
.lbox.is-comparing { background: var(--lc-canvas, #0b0b0b); }
.lbox.is-comparing > .lbstage,
.lbox.is-comparing > .lbnav,
.lbox.is-comparing > .lbfilm,
.lbox.is-comparing .lbbar [data-lb="in"],
.lbox.is-comparing .lbbar [data-lb="out"],
.lbox.is-comparing .lbbar [data-lb="reset"],
.lbox.is-comparing .lbbar [data-lb="down"],
.lbox.is-comparing .lbbar .lbcount { display: none; }
.lbcompare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; min-height: 0; }
.lbcompare[hidden] { display: none; }
.lbcompare-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; color: var(--lc-text, #fff); }
.lbcompare-pane + .lbcompare-pane { border-left: 1px solid var(--lc-line, rgba(255,255,255,.12)); }
.lbcompare-pane header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.lbcompare-pane header strong { font-size: 13px; }
.lbcompare-count { font-size: 12px; color: var(--lc-dim, rgba(255,255,255,.6)); }
.lbcompare-pane header button { margin-left: auto; }
.lbcompare-image { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 16px; }
.lbcompare-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lbcompare-image.is-zoomed { display: block; }
.lbcompare-image.is-zoomed img { width: 200%; max-width: none; height: auto; }
.lbcompare-image p { font-size: 13px; color: var(--lc-dim, rgba(255,255,255,.6)); }
.lbcompare-navigation { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.lbcompare-caption { flex: 1; min-width: 0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbcompare .lbfilm { min-height: 77px; }
.lbconversation { flex: 0 0 auto; min-width: 0; padding: 8px 16px; border-top: 1px solid var(--lc-line, rgba(255,255,255,.12)); color: var(--lc-text, #fff); font-size: 12px; }
.lbconversation summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.lbconversation-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; color: var(--lc-dim, rgba(255,255,255,.65)); }
.lbconversation-tools button { flex-shrink: 0; }
.lbconversation .msglist { max-height: min(20vh, 180px); overscroll-behavior: contain; }
.lbconversation .msgempty { padding: 8px 0; }
.lbconversation-status:not(:empty) { margin-bottom: 8px; }
.lbconversation-status.is-error { color: var(--bad); }
.lbcomment { flex: 0 0 auto; padding: 12px 16px; border-top: 1px solid var(--lc-line, rgba(255,255,255,.12)); color: var(--lc-text, #fff); }
.lbcomment label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
.lbcomment textarea { width: 100%; min-height: 54px; max-height: 120px; resize: vertical; padding: 9px 12px; border: 1px solid var(--lc-line-strong, rgba(255,255,255,.22)); border-radius: 8px; background: var(--lc-card, #191919); color: inherit; font: inherit; font-weight: 400; }
.lbcomment textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lbcomment-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.lbcomment-actions > span { flex: 1; min-width: 0; font-size: 11px; color: var(--lc-dim, rgba(255,255,255,.65)); overflow-wrap: anywhere; }
.lbcomment-actions button { flex-shrink: 0; }
.lbcomment-status { font-size: 12px; margin-top: 6px; }
.lbcomment-status:empty { display: none; }
.lbcomment-status.is-error { color: var(--bad); }
@media (max-width: 600px) {
  .lbox:has([data-lb="compare"]) > .lbbar { flex-wrap: wrap; }
  .lbox:has([data-lb="compare"]) > .lbbar > .lbname { width: 100%; }
  .lbox:has([data-lb="compare"]) .lbtools { flex-wrap: wrap; gap: 4px; }
  .lbcompare-pane header { padding: 10px 8px; gap: 6px; }
  .lbcompare-pane header button { margin-left: 0; }
  .lbcompare-image { padding: 8px; }
  .lbcompare-navigation { padding: 6px; gap: 4px; }
  .lbcompare .lbfilm { padding: 8px; min-height: 63px; }
  .lbcompare .lbfilm button { width: 44px; height: 44px; }
}

.badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge.good, .badge.paid, .badge.fulfilled, .badge.live { background: var(--good-soft); color: var(--good-ink); }
.badge.warn, .badge.unfulfilled, .badge.unpaid, .badge.waiting { background: var(--warn-soft); color: var(--warn-ink); }
.badge.bad, .badge.failed { background: var(--bad-soft); color: var(--bad); }
/* shipped is not in here any more: a parcel that has left is good news, and
   it used to wear the same blue as one still on the bench. */
.badge.info, .badge.process { background: var(--info-soft); color: var(--info-ink); }
.badge.neutral, .badge.soon { background: var(--surface-2); color: var(--text-dim); }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink-on-soft); }

.chip {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.chip.sample { color: var(--warn-ink); border-color: var(--warn-soft); background: var(--warn-soft); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.good { background: var(--good); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.dot.accent { background: var(--accent); }
.dot.dim { background: var(--text-dim); }
/* The two that were missing. `neutral` and `info` are answers the tone table
   has given since it was written, and a dot with no colour is a dot that is
   not there: on the parcels card In transit and Out for delivery drew an
   empty gap where every other row had a mark. Neutral is the ordinary case
   and reads as one; info is the blue that keeps Out for delivery off the red,
   because that is the good news at the end of the journey and two reds beside
   each other is neither of them standing out. */
.dot.neutral { background: var(--text-muted); }
.dot.info { background: var(--info); }


/* On the way: the globe on the merchant's overview, and the stages beside it.

   The globe is the marketing page's, drawn in white dots on black, and it
   stays black in the light theme too: it is an instrument with its own
   ground, the way a map in a car is, and white dots on a light card are a
   globe nobody can see. The notes that land on it are the site's notes.

   The stages are rows rather than a bar, for the reason the card before it
   gave: what a merchant asks is how many are in each state and which ones
   need them. A stage with nothing in it keeps its row, and its count goes
   quiet, so the rows that hold something carry the eye. */
/* Tracking: the list and one parcel followed beside it (assets/follow.js).
   Only where there is room for both: below 1200 the list is the screen and a
   press opens the parcel's own drawer, as it always did. The list is never
   drawn under the panel: it needs about 780 pixels with every column, so on a
   narrower window the columns the panel already says for the parcel picked
   come off first (Current location, then Expected), Status is narrower, and
   anything still too wide scrolls inside its own column. The 1200 here must
   agree with `split()` in portal-tracking.html. */
.trk-split { display: block; }
.trk-side { display: none; }
@media (min-width: 1200px) {
  .trk-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
  .trk-split > #table { min-width: 0; overflow-x: auto; }
  .trk-side { display: block; position: sticky; top: calc(var(--topbar-h) + var(--inset) + 16px); }
  .trk-split tr.is-picked td { background: var(--accent-soft, rgba(226, 64, 47, .08)); }
  .trk-split tr.is-picked td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
}
@media (min-width: 1200px) and (max-width: 1699px) {
  .trk-split .trk-loc { display: none; }
  .trk-split th.trk-status { width: 150px !important; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .trk-split .trk-exp { display: none; }
}
@media (min-width: 1440px) {
  .trk-split { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (min-width: 1700px) {
  .trk-split { grid-template-columns: minmax(0, 1fr) 360px; }
}
.fw-globe { position: relative; aspect-ratio: 6 / 5; overflow: hidden; background: var(--globe-ground); border-bottom: 1px solid var(--border); border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.fw-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fw-chip {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 8px; align-items: center;
  width: max-content; max-width: min(240px, calc(100% - 16px)); padding: 7px 10px; border-radius: 11px;
  font-size: 12px; line-height: 1.3; color: var(--globe-note-ink); background: var(--globe-note-bg); border: 1px solid var(--globe-note-line);
  box-shadow: var(--globe-note-shadow);
}
.fw-chip.is-on { opacity: 1; }
.fw-chip b { display: block; font-weight: 500; }
.fw-chip small { display: block; color: var(--globe-note-sub); font-size: 11px; overflow-wrap: anywhere; }
.fw-dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--globe-good)); }
.fw-dot.is-bad { background: rgb(var(--globe-warn)); }
.fw-zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; height: 26px; padding: 0 10px; border-radius: 13px; cursor: pointer;
  font: inherit; font-size: 11.5px; color: var(--globe-note-soft); background: var(--globe-note-bg); border: 1px solid var(--globe-note-line);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, border-color .15s ease;
}
.fw-zoom.is-on { opacity: 1; pointer-events: auto; }
.fw-zoom:hover { border-color: var(--globe-note-hover); color: var(--globe-note-ink); }
.fw-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fw-body { padding: 14px 16px 16px; }
.fw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.fw-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 12px 0 6px; }
.fw-steps i { height: 4px; border-radius: 2px; background: var(--border-strong, rgba(255, 255, 255, .14)); }
.fw-steps i.is-done { background: var(--good); }
.fw-steps i.is-bad { background: var(--warn); }
.fw-empty { padding: 18px 16px; color: var(--text-dim); font-size: 13px; }
.onway .ow-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); border-top: 1px solid var(--border); }
.onway.no-globe .ow-body { grid-template-columns: 1fr; }
.onway.no-globe .ow-globe { display: none; }
.ow-globe {
  position: relative; aspect-ratio: 1; max-height: 620px; overflow: hidden;
  background: var(--globe-ground); border-right: 1px solid var(--border);
  border-bottom-left-radius: inherit; touch-action: pan-y; cursor: grab;
}
.ow-globe:active { cursor: grabbing; }
.ow-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ow-globe .chip { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; width: max-content; max-width: min(300px, calc(100% - 12px)); opacity: 0; transition: opacity .35s ease; will-change: transform; }
.ow-globe .chip.on { opacity: 1; }
.ow-globe .chip { background: var(--globe-chip-bg); border-color: var(--globe-chip-line); }
.ow-globe .note {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 11px; border-radius: 13px; font-size: 12.5px; line-height: 1.3; color: var(--globe-note-ink);
  background: var(--globe-note-bg); border: 1px solid var(--globe-note-line);
  box-shadow: var(--globe-note-shadow);
}
.ow-globe .note.warn { border-color: rgba(var(--globe-warn), .35); }
.ow-globe .note .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--globe-ic-bg); border: 1px solid var(--globe-ic-line); }
.ow-globe .note .ic svg { width: 14px; height: 14px; }
.ow-globe .note .ic.good { background: rgba(var(--globe-good), .12); border-color: rgba(var(--globe-good), .28); color: rgb(var(--globe-good)); }
.ow-globe .note .ic.warn { background: rgba(var(--globe-warn), .13); border-color: rgba(var(--globe-warn), .32); color: rgb(var(--globe-warn)); }
.ow-globe .note b { font-weight: 500; display: block; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; }
.ow-globe .note small { display: block; text-transform: none; letter-spacing: 0; color: var(--globe-note-sub); font-size: 11px; overflow-wrap: anywhere; }
.ow-tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, -100%);
  background: var(--globe-tip-bg); color: var(--globe-note-ink); border: 1px solid var(--globe-ic-line); border-radius: 10px;
  padding: 9px 12px; font-size: 12px; line-height: 1.5; min-width: 200px; box-shadow: var(--globe-tip-shadow);
}
.ow-tip b { display: block; font-size: 13px; }
.ow-tip span { display: block; color: var(--globe-note-soft); }
.ow-tip span.w { color: rgb(var(--globe-warn)); }
.ow-tip em { display: block; font-style: normal; color: var(--globe-note-sub); font-size: 11px; margin-top: 4px; }
.ow-side { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ow-total { display: flex; align-items: baseline; gap: 8px; padding: 0 8px 10px; }
.ow-total b { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ow-total span { color: var(--text-muted); }
.ow-stage {
  display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px;
  padding: 7px 8px; border-radius: 10px; color: var(--text); transition: background var(--fast);
}
.ow-stage:hover { background: var(--surface-1); }
.ow-stage .d { width: 8px; height: 8px; border-radius: 50%; }
.ow-stage .l { font-size: 13px; min-width: 0; }
/* Wrapped rather than cut: what the carrier said is the one line on this
   card somebody reads to the end, and half a sentence is not an answer. */
.ow-stage small { display: block; color: var(--text-dim); font-size: 11px; overflow-wrap: anywhere; }
.ow-stage .badge { grid-column: 3; }
.ow-stage .n { grid-column: 4; font-weight: 600; font-variant-numeric: tabular-nums; }
.ow-stage .n.is-none { color: var(--text-dim); font-weight: 400; }
.ow-stage .bar { grid-column: 2 / 5; height: 3px; margin-top: 4px; border-radius: 2px; background: var(--surface-1); overflow: hidden; }
.ow-stage .bar i { display: block; height: 100%; border-radius: 2px; opacity: .6; }
.ow-stage.t-warn .d, .ow-stage.t-warn .bar i { background: var(--warn); }
.ow-stage.t-info .d, .ow-stage.t-info .bar i { background: var(--info); }
.ow-stage.t-plain .d, .ow-stage.t-plain .bar i { background: var(--text); }
.ow-stage.t-good .d, .ow-stage.t-good .bar i { background: var(--good); }
.ow-stage.t-bad .d, .ow-stage.t-bad .bar i { background: var(--warn); opacity: 1; }
.ow-stage.t-bad .n:not(.is-none) { color: var(--warn-ink); }
.ow-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 8px 0; font-size: 13px; color: var(--text-muted); }
.ow-foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.ow-side .ow-foot:first-of-type { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; }
/* The opening, once a session: a box is packed in the middle of the globe and
   closes into the red mark that is the warehouse. Drawn in the page on the
   tokens the rest of the card uses, and gone by the time the camera moves. */
.ow-pack { position: absolute; left: 50%; top: 50%; width: 124px; height: 124px; margin: -62px 0 0 -62px; z-index: 3; pointer-events: none; }
.ow-pack .pk-body { position: absolute; inset: 0; transform-origin: 50% 70%; animation: pkBody 1.7s linear forwards; }
.ow-pack svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ow-pack .pk-top { fill: #ffffff; }
.ow-pack .pk-left { fill: #e4e4e8; }
.ow-pack .pk-right { fill: #c6c6cc; }
.ow-pack .pk-edge { fill: none; stroke: var(--globe-pack-edge); stroke-width: .8; stroke-linejoin: round; }
.ow-pack .pk-tape-top { fill: #e2402f; }
.ow-pack .pk-tape-side { fill: #b3301f; }
.ow-pack .pk-sheen { fill: none; stroke: rgba(255, 255, 255, .32); stroke-width: .9; stroke-linecap: round; }
.ow-pack .pk-sheen-side { stroke: rgba(255, 255, 255, .16); }
.ow-pack .pk-reveal { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ow-pack .pk-reveal-top { animation: pkTapeTop 1.7s linear forwards; }
.ow-pack .pk-reveal-side { animation: pkTapeSide 1.7s linear forwards; }
.ow-pack .pk-spark { transform-origin: 50px 45px; fill: none; stroke: var(--globe-spark); stroke-width: 2.2; stroke-linecap: round; opacity: 0; animation: pkSpark 1.7s linear forwards; }
.ow-pack .pk-shadow { position: absolute; left: 22%; right: 22%; bottom: 8%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 64, 47, .35), transparent); opacity: 0; animation: pkShadow 1.7s linear forwards; }
.ow-pack .pk-dot { position: absolute; left: 50%; top: 50%; width: 8.4px; height: 8.4px; margin: -4.2px 0 0 -4.2px; border-radius: 50%; background: #e2402f; opacity: 0; transform: scale(3); animation: pkDot 1.7s ease forwards; }
@keyframes pkBody {
  0% { opacity: 0; transform: translateY(-46px) scale(.72); animation-timing-function: cubic-bezier(.3, 0, .6, 1); }
  12% { opacity: 1; transform: translateY(0) scale(1.07, .93); animation-timing-function: ease-out; }
  19% { transform: translateY(-5px) scale(.98, 1.02); animation-timing-function: ease-in; }
  25% { transform: translateY(0) scale(1); }
  58% { transform: scale(1); animation-timing-function: ease-in; }
  62% { transform: scale(1.06, .9); animation-timing-function: ease-out; }
  68% { transform: scale(1); }
  76% { opacity: 1; transform: scale(1) rotate(0deg); animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
  90% { opacity: 0; transform: scale(.07) rotate(18deg); }
  100% { opacity: 0; transform: scale(.07) rotate(18deg); }
}
@keyframes pkTapeTop { 0%, 30% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }
@keyframes pkTapeSide { 0%, 45% { stroke-dashoffset: 1; } 56%, 100% { stroke-dashoffset: 0; } }
@keyframes pkSpark { 0%, 60% { opacity: 0; transform: scale(.85); } 64% { opacity: 1; } 74%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes pkShadow { 0%, 8% { opacity: 0; } 14%, 74% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes pkDot { 0%, 82% { opacity: 0; transform: scale(3); } 92% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ow-pack { display: none; } }

/* Nothing on the way yet. The globe says it is an example in a corner rather
   than in a sentence over the picture, and the stages sit dimmed so what the
   card will count is readable before there is anything to count. */
.ow-flag {
  position: absolute; left: 14px; top: 14px; z-index: 3; display: none;
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--globe-note-soft); padding: 4px 9px; border-radius: 999px;
  border: 1px dashed rgba(var(--globe-ink), .28); background: var(--globe-flag-bg);
}
.onway.is-preview .ow-flag { display: inline-block; }
.ow-globe .note.example { border-style: dashed; }
.ow-intro { padding: 0 8px 12px; }
.ow-intro b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ow-intro p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; max-width: 42ch; }
.ow-stage.is-ghost { opacity: .55; transition: opacity var(--fast), background var(--fast); }
.ow-stage.is-ghost:hover { opacity: 1; }
.ow-stage.is-ghost .bar i { width: 0; }
.ow-cta .hint { font-size: 12px; color: var(--text-dim); margin: 0; }
.ow-cta { margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 8px 0; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .onway .ow-body { grid-template-columns: 1fr; }
  .ow-globe { border-right: 0; border-bottom: 1px solid var(--border); max-height: none; border-radius: 0; }
}
@media (max-width: 720px) {
  .ow-globe .chip { max-width: min(230px, calc(100% - 12px)); }
  .ow-globe .note { font-size: 11.5px; grid-template-columns: 24px minmax(0, 1fr); padding: 7px 9px; }
  .ow-globe .note .ic { width: 24px; height: 24px; }
  .ow-globe .chip.dyn:nth-of-type(n+4) { display: none; }
}

/* A row that arrived since the last read, on the console's balance log. It
   lights once where it landed rather than moving to the top: a row that jumps
   is a row somebody loses their place in. Once and then still, on the rule in
   design.md, because a list that keeps flashing is decoration and this one is
   watched all day. */
.just-in > td { animation: just-in 2.6s ease-out both; }
@keyframes just-in {
  0% { background-color: var(--accent-soft); }
  60% { background-color: var(--accent-soft); }
  100% { background-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .just-in > td { animation: none; background-color: var(--surface-1); }
}

/* --- buttons ------------------------------------------------------------- */
.btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px;
  height: 34px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: transform var(--fast), background var(--fast), border-color var(--fast), color var(--fast), opacity var(--fast);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 14px; height: 14px; }
.btn.accent { background: var(--accent-fill); color: var(--accent-ink); }
/* Darker under the pointer, never lighter: lightening toward white under
   white words took the hovered button to 4.12:1 light and 3.62:1 dark. */
.btn.accent:hover { background: color-mix(in srgb, var(--accent-fill) 88%, black); }
.btn.solid { background: var(--text); color: var(--canvas); }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--card-hover); border-color: var(--text-dim); }
.btn.quiet { background: transparent; color: var(--text-muted); }
.btn.quiet:hover { background: var(--surface-1); color: var(--text); }
.btn.danger { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.btn.sm { height: 28px; font-size: 12px; padding: 0 12px; }
.btn.lg { height: 42px; font-size: 14px; padding: 0 22px; }
.btn.block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .42; cursor: not-allowed; transform: none; }
.btn.is-loading { color: transparent; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  /* Centred on the button rather than left at its static position, which is
     where the label would have been and is not the middle of anything. */
  top: 50%; left: 50%;
  margin: -7px 0 0 -7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  /* The button's own ink in the light content, where white on every button
     made a pressed ghost or quiet button an empty white pill. All dark keeps
     the white it always drew. */
  color: var(--lc-muted, var(--accent-ink));
  animation: spin 600ms linear infinite;
}
.btn.accent.is-loading::after { color: var(--accent-ink); }
.btn.solid.is-loading::after { color: var(--canvas); }
.btn.danger.is-loading::after { color: var(--bad); }
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::after { animation-duration: 2s; }
}

/* What the sign-in is doing while it is doing it. Centred under the button
   because that is where the eye already is, and it takes no room when there
   is nothing to say. */
.loginstep { text-align: center; margin-top: 10px; }

.action-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}
.action-btn:hover { background: var(--surface-2); }
.action-btn.primary { background: var(--accent-fill); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.action-btn.done { background: transparent; color: var(--text-dim); border-color: var(--border); cursor: default; }

/* segmented control (1D / 7D / 30D / MTD) */
.segmented {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.segmented button {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.segmented button:hover { color: var(--text-muted); }
.segmented button[aria-selected="true"] { background: var(--accent-fill); color: var(--accent-ink); font-weight: 600; }

/* tabs */
.tabbar { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }
.tabb {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--text-muted);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background var(--fast), color var(--fast);
}
.tabb:hover { background: var(--surface-1); color: var(--text); }
.tabb[aria-selected="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; border-color: var(--border); }
.tcount {
  font-family: var(--font-mono);
  font-size: 9px;
  background: var(--surface-2);
  color: var(--text-dim);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}
.tabb[aria-selected="true"] .tcount { background: var(--accent-fill); color: var(--accent-ink); }
.tab-actions { margin-left: auto; display: flex; gap: 8px; }

/* --- forms --------------------------------------------------------------- */
label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
.field { margin-bottom: 14px; }
/* Two dates side by side, because a period is one thing with two ends and
   stacking them reads as two questions. One column on a phone, where two date
   inputs beside each other are two inputs nobody can tap. */
.pickrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* --- a product opened, when nothing about it is per variant --------------
   The names, because that is the only thing that differs before there is a
   price on them. Chips rather than rows: fifty four of these read as one
   product in fifty four sizes, and fifty four table rows read as a
   catalogue. */
.varsum { padding: 12px 2px 14px; }
.varsum .ps { margin: 0 0 10px; }
/* The head of a sourcing request: the picture, the name beside it, and the
   sizes as pills under the pair, which is how every list in this app draws a
   product. It was a heading with nothing but a title on it over a `<details>`
   of checkbox tiles three to a row, so which sizes were even in the request
   was behind a press. */
.srchead { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.srchead h3 { margin: 0; font-size: 16px; font-weight: 600; }
.srchead p { margin: 3px 0 0; }
/* The sizes on a request are one line that scrolls, not a block that wraps.
   Fifteen of them wrapped to two rows and pushed the category and the
   countries off the screen, and this strip is a reading rather than a thing
   to work through: what somebody does here is glance at it. The same shape
   the product drawer's own size strip has had since it was written. */
.varchips.is-flat {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  margin: 0 0 14px; padding-bottom: 2px;
}
.varchips.is-flat::-webkit-scrollbar { display: none; }
.varchips.is-flat .varchip {
  flex: none; padding: 3px 8px; font-size: 11.5px; cursor: default;
}
.varchips.is-flat .varchip:hover { color: var(--text-dim); border-color: var(--border); }

.varchips.is-pick { margin: 0 0 18px; }
.varchips.is-pick.is-rest { margin-top: -10px; }
/* The one that opens the rest rather than being one of them. */
.varpick.is-more input:checked + span,
.varpick.is-more span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; }
/* Everything else to choose from, behind one press rather than behind a fold
   per category: eleven shut rows read as a filing cabinet. The press itself
   is `.varpick.is-more`, the same pill the countries use, because it is the
   same question asked of a different set. */
.morewrap { margin-bottom: 10px; }
.morecat { margin: 10px 0 6px; }
/* A pill that is also a tick. The box is there for the keyboard and for
   anything reading the form; what anybody sees is the pill filling in. */
.varpick { display: inline-flex; position: relative; }
.varpick input {
  position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none;
}
.varpick span {
  display: inline-block; font-size: 12px; padding: 4px 9px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-dim); background: var(--surface-1); cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}
.varpick span:hover { color: var(--text); border-color: var(--border-strong); }
.varpick input:checked + span {
  color: var(--accent-ink-on-soft); border-color: var(--accent-line); background: var(--accent-soft);
}
.varpick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* A field straight after a fold. A summary is one line with nothing under it,
   so the next label landed on top of it and read as part of the fold. */
.sheetbody details + .field { margin-top: 16px; }

.varchips { display: flex; flex-wrap: wrap; gap: 6px; }
.varchip {
  display: inline-block;
  font-size: 12px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  background: var(--surface-1);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
}
.varchip:hover { color: var(--text); border-color: var(--border-strong); }
.varchip.is-gone { opacity: .55; text-decoration: line-through; }
/* The one that is not a variant. It says what it opens rather than wearing
   the same face as the things it opens. */
.varchip.is-more { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; }
/* The rest of the names are held in one element so a single press can reveal
   them. Shown, that element has to stop being a box: as a flex item its
   children are its content and they came out one per line, in a column down
   the middle of a row that wraps. `display: contents` makes them chips of the
   row they belong to. Guarded on [hidden], which has to keep winning. */
.varchips [data-morevars]:not([hidden]) { display: contents; }
tr.gsummary.is-shut { display: none; }
@media (max-width: 560px) { .pickrow { grid-template-columns: 1fr; } }
.field .hint { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; }

input, select, textarea {
  width: 100%;
  font-family: var(--font-display);
  font-size: 13.5px;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--text);
  transition: border-color var(--fast), background var(--fast);
}
textarea { height: auto; min-height: 76px; padding: 10px 11px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:hover, select:hover, textarea:hover { border-color: var(--text-dim); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--border-focus); background: var(--field-bg-focus); }
input[type="checkbox"], input[type="radio"] { width: auto; height: auto; accent-color: var(--accent); cursor: pointer; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 14px;
  padding-right: 30px;
}
.filterbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filterbar .search { flex: 1; min-width: 200px; }
.filterbar input[type="date"], .filterbar select { width: auto; min-width: 150px; }
.filterbar .fdates { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.filterbar .fdate { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.filterbar .fdate input[type="date"] { min-width: 140px; }

/* --- tables -------------------------------------------------------------- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-dim);
  font-weight: 400;
  padding: 11px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
/* Seven columns of money in the side of a drawer, where the panel beside it
   takes half the width. The ordinary fourteen is four and a half columns of
   padding across a table whose widest cell is six characters, and what it
   bought was the last column sitting behind the edge of the card. */
.pricegrid th, .pricegrid td { padding-left: 10px; padding-right: 10px; }
/* A column head that carries the fact every one of its rows would otherwise
   repeat. The handling is the product's, so it is the same on every row of a
   price table: saying it in front of each is one fact printed six times in the
   column with the least room. */
.pricegrid th em.sub {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lc-dim);
  margin-top: 1px;
  white-space: nowrap;
}
/* An amount is one thing, so it never breaks between the symbol and the
   number: "EUR" alone on a line over "10.53" is two readings of one figure,
   and it grows the row besides. The same for "2d + 5d". */
.pricegrid td.num { white-space: nowrap; }

/* A head of two rows: the unit is said once over the quantity columns and the
   numbers sit under it, because four heads each reading "2 sale units" spend a
   hundred pixels apiece on the same two words. Both rows stick, so the second
   is offset by the height of the first rather than landing on top of it. */
.pricegrid.grouped thead tr:first-child th { padding-bottom: 3px; }
.pricegrid.grouped thead tr:first-child th.colgroup {
  text-align: center;
  border-bottom: 0;
  color: var(--text-dim);
}
.pricegrid.grouped thead tr + tr th { top: 26px; padding-top: 0; }

thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { color: var(--text-muted); }
thead th[aria-sort] { color: var(--text); }
thead th .arrow { opacity: .5; margin-left: 4px; }
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}
td.num { text-align: right; }
th.num { text-align: right; }
tbody tr:last-child td { border-bottom: none; }

/* --- a table on a phone is a list of cards -------------------------------- */
/* A table needs width and a phone has none, so what was happening was a
   sideways swipe through columns: order, customer and item visible, and the
   status, the amount and the button you actually came for off the right-hand
   edge. Nobody swipes a queue.

   So each row becomes a card, each cell a line with its column name in front,
   and nothing is off screen. The markup is the same table: one place decides
   what a row says, and this only decides how it stacks. */
/* Drawn only on a phone, and only by a table that has one. */
.phonecell { display: none; }

@media (max-width: 720px) {
  .tablewrap { overflow-x: visible; }
  /* A table that says what its rows look like on a phone shows that and
     nothing else. Selection sits in the row rather than over it: floated top
     right it landed on top of the amount and took the last two digits off
     the price, which on a screen about money is the wrong thing to cover. */
  .tablewrap tbody tr:has(.phonecell) > td:not(.phonecell):not(.cbcell) { display: none; }
  .tablewrap tbody tr:has(.phonecell) { display: flex; align-items: center; padding: 0; }
  .tablewrap tbody tr:has(.phonecell) > td.cbcell {
    position: static; flex: none; width: 38px; padding: 0 0 0 12px;
  }
  .tablewrap tbody td.phonecell { display: block; flex: 1; min-width: 0; padding: 0; }
  /* A column that says it is not for a phone. The stack draws one labelled
     line per cell, so this is the difference between a list you scan and a
     list you read. */
  .tablewrap td.no-phone, .tablewrap th.no-phone { display: none; }
  .tablewrap table, .tablewrap tbody, .tablewrap tr, .tablewrap td { display: block; width: auto; }
  /* The header row has nothing to head once the columns are gone. */
  .tablewrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  .tablewrap tbody tr {
    position: relative;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--card); margin-bottom: 10px; padding: 4px 2px;
  }
  .tablewrap tbody tr.clickable:hover td { background: none; }
  .tablewrap tbody tr.is-open { border-color: var(--accent-line); }

  .tablewrap tbody td {
    display: flex; align-items: baseline; gap: 12px;
    border: 0; padding: 7px 14px; text-align: left;
    min-height: 0;
  }
  .tablewrap tbody td.num { justify-content: flex-start; }
  /* A value that is more than a word goes under its label rather than pushing
     the page sideways. The ledger's top-up row carries a badge, a chip naming
     the file and a button, all in one cell, and on a phone that row made the
     whole balance screen scroll left to right: the one screen where a number
     half off the edge is worst. */
  .tablewrap tbody td { flex-wrap: wrap; }
  .tablewrap tbody td > * { min-width: 0; max-width: 100%; }
  .tablewrap tbody td::before {
    content: attr(data-label);
    flex: none; width: 8.5em;
    font-family: var(--font-accent); font-size: 9.5px; letter-spacing: .09em;
    text-transform: uppercase; color: var(--text-dim);
  }
  /* A cell with no label is a cell that speaks for itself, usually the one
     holding the button. `attr()` on a missing attribute is the empty string
     rather than nothing, so a table written by hand rather than through
     `U.table` got an empty label box on every cell: eight and a half ems of
     indent in front of each line, which is what turned the price table in the
     product drawer into a column of amounts pushed to the right with nothing
     saying what any of them was. */
  .tablewrap tbody td[data-label=""]::before,
  .tablewrap tbody td:not([data-label])::before { display: none; }

  /* The first cell that carries anything is the one somebody scans for, so it
     reads as a heading rather than as another labelled line. Not
     :first-of-type: with selection on, the first td is the checkbox, and the
     heading treatment landed on that instead of on the order number. */
  .tablewrap tbody tr > td:not(.cbcell):first-child,
  .tablewrap tbody tr > td.cbcell + td {
    font-size: 15px; font-weight: 600; color: var(--text);
    padding: 12px 14px 4px;
  }
  .tablewrap tbody tr:not(.grouprow) > td:not(.cbcell):first-child::before,
  .tablewrap tbody tr:not(.grouprow) > td.cbcell + td::before { display: none; }

  /* Selection moves out of the flow, top right, where it does not push the
     first line off its own left edge. */
  .tablewrap tbody td.cbcell {
    position: absolute; top: 8px; right: 8px; width: auto; padding: 0;
  }
  .tablewrap tbody td.cbcell::before { display: none; }
  /* Out of the flow is not out of the way: the tick sits over the top right
     corner, which is where the first line ends, so a product whose name and
     shop fill the row ran underneath it. The line that shares that corner
     keeps clear of it, and only where there is a tick to keep clear of. */
  .tablewrap tbody tr:has(> td.cbcell) > td.cbcell + td { padding-right: 40px; }

  .tablewrap tbody tr.grouprow {
    border: 0; background: none; margin: 14px 0 4px; padding: 0;
  }
  /* In the light content a product on a phone is a card like every other
     phone list's row, white on a hairline, rather than a grey block between
     white strips. The row carries the card and the cell goes clear (see
     `--group-row` under the light block). All dark keeps its block. */
  .tablewrap tbody tr.grouprow {
    border: 1px solid var(--lc-line); background: var(--lc-card);
    border-radius: var(--radius);
  }
  .tablewrap tbody tr.grouprow > td { padding: 0 2px; }
  .tablewrap tbody tr.grouprow:has(> td.cbcell) > td.cbcell + td { padding-right: 34px; }
  .tablewrap tbody tr.grouprow > td::before { display: none; }
}
tbody tr.clickable { cursor: pointer; transition: background var(--fast); }
tbody tr.clickable:hover td { background: var(--surface-1); color: var(--text); }
/* Where the keyboard is standing. A row is not an element a browser draws a
   ring around usefully, so the mark is the row itself: the same lift as a
   hover plus a bar down the leading edge, which is what the sidebar already
   uses to say "here". Only for the keyboard, so a mouse never leaves one row
   looking picked out after a click. */
tbody tr[data-key]:focus { outline: none; }
tbody tr[data-key]:focus-visible td { background: var(--surface-1); color: var(--text); }
tbody tr[data-key]:focus-visible td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
tbody tr.is-open td { background: var(--surface-1); }
tr.detail td { background: var(--surface-1); padding: 0; }

.mono { font-family: var(--font-mono); font-size: 11.5px; }
.strong { color: var(--text); font-weight: 600; }
.thumb {
  width: 34px; height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
}
/* the drawn stand-in for a product photo, and the frame it sits in */
.pthumb {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--card-hover), var(--card));
  overflow: hidden;
}
.pthumb svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: color-mix(in srgb, var(--tint, var(--text-muted)) var(--thumb-tint), var(--text));
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb.is-lg { width: 64px; height: 64px; border-radius: 13px; }
.pthumb.is-lg svg { width: 46px; height: 46px; stroke-width: 1.2; }
html[data-density="compact"] .prodcell .pthumb:not(.is-lg) { width: 32px; height: 32px; border-radius: 8px; }
html[data-density="compact"] .prodcell .pthumb:not(.is-lg) svg { width: 23px; height: 23px; }

.prodcell { display: flex; align-items: center; gap: 11px; }
.prodcell .pt { color: var(--text); font-weight: 500; }
/* The sub line, wherever it is. It was only ever styled inside `.prodcell`,
   `.varcell` and two more, so the same class did nothing at all in an ordinary
   cell: on the console's tracking list the hour under a carrier's sentence was
   drawn at the sentence's own size and read as a third line of it, and the
   costs screen had already worked around this with a rule of its own. A class
   that means one thing in four places and nothing in the rest is a class
   nobody can use. */
.ps { font-size: 11px; color: var(--text-dim); }
.prodcell .ps { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-top: 2px; }
/* the same cell, sized for the top of a form rather than a row in a table */
.prodcell.is-lg { gap: 14px; margin-bottom: 12px; }
.prodhead { display: flex; align-items: center; gap: 15px; }
.prodcell.is-lg .pt { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.prodcell.is-lg .ps { font-size: 10.5px; margin-top: 4px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pager .meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); }
.pager .pages { display: flex; gap: 4px; }
.pager .pg {
  min-width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.pager .pg:hover { background: var(--surface-1); color: var(--text); }
.pager .pg[aria-current="page"] { background: var(--accent-fill); color: var(--accent-ink); border-color: transparent; font-weight: 600; }

/* --- activity feed ------------------------------------------------------- */
.feed { display: flex; flex-direction: column; }
.feedrow {
  display: grid;
  grid-template-columns: 62px 14px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--fast);
}
.feedrow:hover { background: var(--surface-1); }
.feedrow:last-child { border-bottom: none; }
.feedrow .ftime { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); padding-top: 2px; }
.feedrow .fdot { padding-top: 4px; min-width: 20px; }
.feedrow .fbody { min-width: 0; }
.feedrow .fname { font-family: var(--font-mono); font-size: 11.5px; color: var(--text); }
.feedrow .fmsg { font-size: 12.5px; color: var(--text-muted); }
.feedrow .fmeta { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-top: 3px; }

/* sparkline bars */
.spark { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.spark i {
  flex: 1;
  min-width: 2px;
  border-radius: 1px;
  background: var(--good);
  opacity: .55;
  transition: opacity var(--fast);
}
.spark i.hi { opacity: 1; }
.spark.accent i { background: var(--accent); }
.card:hover .spark i { opacity: .8; }
.card:hover .spark i.hi { opacity: 1; }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.barcol { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; align-items: center; }
.barcol .bar {
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
  transition: filter var(--fast);
}
.barcol:hover .bar { filter: brightness(1.25); }
.barcol .blabel { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-dim); }

/* progress */
.prog { height: 5px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width var(--med); }
.prog i.good { background: var(--good); }
.prog i.bad { background: var(--bad); }

/* rail (key/value column) */
.rail { border-left: 1px solid var(--border); padding: 4px 20px; display: flex; flex-direction: column; justify-content: center; }
.rrow { padding: 11px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rrow:last-child { border-bottom: none; }
.rrow .rl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.rrow .rv { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.linerow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.linerow:last-child { border-bottom: none; }
.linerow b { color: var(--text); font-weight: 600; }

/* --- Shopify connection states ------------------------------------------ */
.connbar {
  --bt: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  border-radius: 17px;
  border: 1px solid var(--lc-line, color-mix(in srgb, var(--bt) 17%, transparent));
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bt) 8%, transparent),
      color-mix(in srgb, var(--bt) 2%, transparent)),
    color-mix(in srgb, var(--card) 62%, transparent);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  /* A banner on the page, so on the light content a hairline and no shadow,
     like `.notice`; all dark keeps the lip and the shadow it always had. */
  box-shadow: var(--lc-none, inset 0 1px 0 var(--glass-lip),
    0 1px 2px rgba(0, 0, 0, .22), 0 10px 26px -16px rgba(0, 0, 0, .7));
}
.connbar .cicon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--bt);
  background: color-mix(in srgb, var(--bt) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bt) 20%, transparent);
}
.connbar .ctext { min-width: 0; flex: 1; }
.connbar .ct { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.connbar .cs { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; line-height: 1.45; }
.connbar .cact { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.connbar.state-connected { --bt: var(--good); }
.connbar.state-connected .cicon { color: var(--shopify); }
.connbar.state-syncing { --bt: var(--info); }
.connbar.state-syncing .cicon svg { animation: spin 900ms linear infinite; }
.connbar.state-disconnected { --bt: var(--warn); }
.connbar.state-error, .connbar.state-reauth { --bt: var(--bad); }
.connbar.state-scopes { --bt: var(--accent); }

/* scope list, shown before the merchant authorises */
.scopelist { display: flex; flex-direction: column; gap: 1px; }
.scoperow {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.scoperow:last-child { border-bottom: none; }
.scoperow .sk { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-text); flex-shrink: 0; min-width: 148px; }
.scoperow .sw { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.scoperow .sw b { color: var(--text); font-weight: 600; }

/* --- empty / skeleton / error states ------------------------------------ */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 54px 24px;
}
.empty .eicon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-dim);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.empty h3 { margin: 0; font-size: 15px; font-weight: 600; }
.empty p { margin: 0; font-size: 13px; color: var(--text-muted); max-width: 380px; line-height: 1.55; }
.empty .eact { margin-top: 12px; display: flex; gap: 8px; }
/* A guide where the way out takes more than one press: numbered, left
   aligned so the steps read as steps, and no wider than the sentence above. */
.empty .esteps { margin: 6px 0 0; padding-left: 20px; max-width: 380px; text-align: left;
  font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.empty .esteps li + li { margin-top: 3px; }
.empty .eact { flex-wrap: wrap; justify-content: center; }

/* --- waiting on a first answer: the mark threading itself ---------------
   What a list draws until it has been told what is in it, in place of an
   empty state that would be a claim. Hidden for its first 150ms, so an
   answer already in this browser never flashes it; then the two bars of One
   Thread draw through each other, the vertical a beat behind, over a faint
   copy of the whole mark so the shape is there from the first frame. It
   loops, because it is a wait, and under reduced motion nothing moves: the
   still mark and its line of text, shown after the same pause without a
   fade. The stroke length is the path's own, worked out in `ui.js`.
   ------------------------------------------------------------------------ */
.sgload {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 54px 16px;
  opacity: 0;
  animation: sgload-in 260ms ease-out 150ms forwards;
}
.sgload-mark, .readnote .rmark { overflow: visible; }
.sgload-mark { width: 44px; height: 44px; color: var(--accent); }
.sgload .sgl-ghost, .readnote .rmark .sgl-ghost { stroke: var(--text-dim); opacity: .22; }
.sgload .sgl-h, .sgload .sgl-v, .readnote .rmark .sgl-h, .readnote .rmark .sgl-v {
  /* The gap is longer than the path, and both ends of the loop stop 1.75
     short of where the next dash begins: a dash of no length at the seam of
     a closed path still draws its round cap, which was a red dot blinking at
     the end of every loop. */
  stroke-dasharray: 60.45 64;
  stroke-dashoffset: 62.2;
  animation: sgload-thread 1600ms cubic-bezier(.5, 0, .5, 1) infinite;
}
.sgload .sgl-v, .readnote .rmark .sgl-v { animation-delay: 240ms; }
.sgload.is-sm { padding: 22px 16px; }
/* Words for a screen reader alone: the table's live region. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sgload.is-sm .sgload-mark { width: 32px; height: 32px; margin-bottom: 4px; }
@keyframes sgload-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes sgload-show { to { opacity: 1; } }
@keyframes sgload-thread {
  0% { stroke-dashoffset: 62.2; }
  45%, 55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -62.2; }
}
/* A figure that loops is decoration to somebody who has asked for none. */
@media (prefers-reduced-motion: reduce) {
  .sgload { animation: sgload-show 0s linear 150ms forwards; }
  .sgload .sgl-h, .sgload .sgl-v, .readnote .rmark .sgl-h, .readnote .rmark .sgl-v {
    animation: none; stroke-dasharray: none; stroke-dashoffset: 0;
  }
}

/* The same state inside a card in a column, where the page version spends
   more room on its own padding than on what it says. */
.empty.is-sm { padding: 22px 16px; gap: 6px; }
.empty.is-sm .eicon { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 2px; }
.empty.is-sm h3 { font-size: 14px; }
.empty.is-sm p { font-size: 12.5px; }
.empty.is-sm .eact { margin-top: 8px; }

.skel {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 37%, var(--surface-1) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.skel.line { height: 11px; margin-bottom: 8px; }
.skel.num { height: 32px; width: 60%; }
.skel.w-40 { width: 40%; } .skel.w-60 { width: 60%; } .skel.w-80 { width: 80%; }

/* An order line whose product the catalogue has not brought yet. The bar is
   a title's width and a line's height, so the row keeps its height and
   nothing moves when the name lands. */
.pthumb.skel.is-reading { border: 0; }
.readline { display: inline-block; vertical-align: middle; width: 150px; max-width: 100%; }
.readline .skel { display: block; height: 10px; width: 100%; }
.readline.is-num { width: 54px; }
.readtag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim); white-space: nowrap;
}
.readtag .rmark { width: 15px; height: 15px; color: var(--accent); overflow: visible; }
.readtag .rmark .sgl-ghost { stroke: var(--text-dim); opacity: .22; }
.readtag .rmark .sgl-h, .readtag .rmark .sgl-v {
  stroke-dasharray: 60.45 64; stroke-dashoffset: 62.2;
  animation: sgload-thread 1600ms cubic-bezier(.5, 0, .5, 1) infinite;
}
.readtag .rmark .sgl-v { animation-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .pthumb.skel.is-reading, .readline .skel { animation: none; }
  .readtag .rmark .sgl-h, .readtag .rmark .sgl-v { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* --- overlays: every modal and drawer in the app ----------------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  z-index: 100;
  padding: 20px;
}
.overlay.open { display: flex; align-items: center; justify-content: center; animation: fade var(--fast) both; }
/* Just closed: invisible and still in front, so the second tap of a double
   tap lands here rather than on the dialog underneath (ui.js overlay()). */
.overlay.is-closing { display: block; opacity: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
/* Only the ground catches it: a button inside a closed dialog cannot be hit
   or focused, or the second tap presses the same button again. */
.overlay.is-closing > * { visibility: hidden; }
/* The posts at either end of a dialog: on the keyboard's path, never seen. */
.focuspost { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.lbox.is-closing { background: transparent; animation: none; }
.lbox.is-closing > * { visibility: hidden; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }


/* --- modal --------------------------------------------------------------- */
.modal {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pop);
  animation: rise var(--med) both;
}
.modal .mhead { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal .mhead h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.modal .mbody { padding: 22px; overflow-y: auto; }
.modal .mfoot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 9px; }
.mclose { margin-left: auto; }

/* --- the outbox ----------------------------------------------------------
   Work that has finished being typed and has not finished being sent. It sits
   in the corner the toaster is in, above the modal layer on purpose: the whole
   point is that somebody can open the next quote while this one goes, and a
   dock behind the dialog would be invisible at exactly that moment. */
.outbox {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 210;
  width: 340px;
  max-width: calc(100vw - 32px);
  display: none;
  flex-direction: column;
  background: var(--pop);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--lc-shadow, 0 18px 44px rgba(0, 0, 0, .55));
  overflow: hidden;
}
.outbox.is-on { display: flex; }
.obhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 9px 9px 9px 13px;
  border-bottom: 1px solid var(--border);
}
.obheadline { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.oblist { max-height: min(48vh, 420px); overflow-y: auto; }
/* Under .oblist, because .obcard is also the onboarding card's name, and a
   global rule made that card a flex row: every step squeezed into a narrow
   column on a desk, and a page twice the width of a phone. */
.oblist .obcard {
  position: relative;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--lc-line);
}
.oblist .obcard:last-child { border-bottom: 0; }
/* The one mark, on the right where the eye ends up after reading the row.
   Three states and no reading required: turning while it is out, a tick when
   it landed, a cross when it did not. */
.obmark {
  flex: 0 0 auto; align-self: center;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lc-dim);
}
.obmark.is-good { color: var(--good); }
.obmark.is-bad { color: var(--bad); }
.obnote {
  font-size: 11px; line-height: 1.4; color: var(--lc-dim);
  margin-top: 5px; padding-left: 8px;
  border-left: 2px solid var(--lc-line);
}
.obthumb { flex: 0 0 auto; }
.obthumb .pthumb, .obthumb img { width: 30px; height: 30px; border-radius: 6px; }
.obtext { min-width: 0; flex: 1 1 auto; }
.obtitle { font-size: 12.5px; font-weight: 600; }
.obsub { font-size: 11px; color: var(--lc-dim); }
.obstate { font-size: 11px; color: var(--lc-dim); margin-top: 2px; }
.oblist .obcard.is-bad .obstate { color: var(--bad); }
.obacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
/* A band that travels rather than a bar that fills. `fetch` cannot say how
   much of a body has gone, and a bar drawn from nothing is a number somebody
   would believe. */
.obbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; background: var(--lc-line); }
.obbar span {
  position: absolute; top: 0; bottom: 0; width: 40%;
  background: var(--accent);
  animation: obslide 1.25s ease-in-out infinite;
}
@keyframes obslide {
  0% { left: -40%; } 100% { left: 100%; }
}
/* Amber while it is going, because that is the honest colour for a thing that
   has not finished: green is a claim and red is a verdict, and neither is true
   yet. Dim and still while it is only waiting its turn. */
.obspin {
  display: inline-block; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--border-strong);
}
.obmark.is-live .obspin {
  border-color: color-mix(in srgb, var(--warn) 28%, transparent);
  border-top-color: var(--warn);
  animation: obspin .8s linear infinite;
}
@keyframes obspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .obbar span { animation: none; left: 0; width: 100%; opacity: .5; }
  .obspin { animation: none; }
}
@media (max-width: 720px) {
  .outbox { left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); width: auto; }
}

/* --- toast --------------------------------------------------------------- */
.toaster {
  position: fixed;
  /* Clear of the outbox when there is one, which sits in the same corner. */
  bottom: calc(22px + var(--outbox-h, 0px));
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  pointer-events: none;
}
/* On a phone the bottom right corner is where the browser puts its own
   toolbar and the home indicator, so an answer to something somebody just
   pressed landed under both of them. It goes to the top, full width, clear of
   the notch: the whole job of a toast is being seen without being looked
   for. */
@media (max-width: 720px) {
  .toaster {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    bottom: auto;
    left: 10px;
    right: 10px;
    align-items: stretch;
  }
  .toast { width: 100%; }
}
/* The notice anatomy carries the mark, the title and the line under it; what
   is a toast's own is that it floats, that it is darker than the page it
   covers, and that it leaves. */
/* Two classes rather than one, and on purpose: `.notice` is defined further
   down this file, so a single `.toast` would lose to it on order alone and the
   toast would take the page's own surface instead of the darker one it needs
   to sit over it. */
.notice.toast {
  padding: 12px 15px;
  /* The ground only. A shorthand here would reset the tint, which this
     element takes from the .notice rule. Glass on nothing in all dark, as it
     always was. */
  background-color: var(--lc-glass-thick, transparent);
  box-shadow: inset 0 1px 0 var(--glass-lip), var(--shadow-pop);
  animation: toastin var(--med) both;
  pointer-events: auto;
  max-width: 380px;
}
.toast.out { animation: toastout 180ms var(--ease) both; }
@keyframes toastin { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastout { to { opacity: 0; transform: translateY(6px) scale(.98); } }

/* --- reveal on scroll ----------------------------------------------------
   Content is visible by default. Only when the shell has confirmed a working
   observer (html.reveal-on) does it start hidden, so a dead observer can
   never leave the dashboard blank. */
.reveal { transition: opacity 460ms var(--ease), transform 460ms var(--ease); }
html.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(14px); }

/* --- mobile -------------------------------------------------------------- */
.mobilebar { display: none; }
@media (max-width: 900px) {
  /* The bar that holds the menu button: the button and a thumb's slop round
     it, and nothing to read, so nothing taller. */
  :root { --gutter: 18px; --topbar-h: 48px; }
  .sidebar {
    position: fixed;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform var(--med);
    /* No shadow while it is shut in the light content: off the left edge it
       still cast one, a grey smear down the side of the page. All dark keeps
       the one it always cast, which nobody can see on black. `--drawer-shut`
       is on the root alone, because the menu carries the dark tokens itself. */
    box-shadow: var(--drawer-shut);
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow-pop); }
  .mobilebar { display: grid; place-items: center; }
  /* The page behind the open drawer, dimmed in the light content, where a
     dark drawer over a light page needs the page pushed back; clear in all
     dark, which keeps its undimmed page. In both it is what a press outside
     lands on, so that press closes the drawer (the shell script) rather than
     also following whatever link was under it. A browser without :has gets
     neither. */
  .shell:has(.sidebar.open)::after {
    content: "";
    position: fixed; inset: 0;
    z-index: 59;
    background: var(--scrim);
  }
}

/* --- tokens: light content ---------------------------------------------- */
/* Shopify's admin, measured rather than copied: a grey canvas, white cards on
   a hairline and a very soft shadow, dark grey text. The default, and the
   ground of every page and dialog while the menu beside it stays dark. Every
   ink below was measured in a real browser against the darkest ground it
   lands on, which is `--surface-2` and the tints laid over it, not a card. */
[data-theme="light"] {
  color-scheme: light;
  --canvas: #f4f5f7;
  --shell: #f7f7f7;          /* the dialog foot (.sheetfoot); the menu reads the dark one */
  --surface-1: #f1f1f1;      /* dialog, drawer and sheet ground; row hover */
  --surface-2: #ebebeb;      /* group rows, neutral badge, avatar ground */
  --card: #ffffff;
  --card-hover: #f7f7f7;
  --grid: rgba(0, 0, 0, .028);

  /* Opaque, so a tint under a word cannot move it. 11.07, 7.43 and 5.20:1 on
     `--surface-2`, the darkest of the three grounds. */
  --text: #303030;
  --text-muted: #4a4a4a;
  --text-dim: #616161;

  /* Alpha, so a hairline stays a hairline on grey as well as on white:
     .11 is #e3e3e3 on a card, .2 is #cccccc. */
  --border: rgba(0, 0, 0, .11);
  --border-strong: rgba(0, 0, 0, .2);

  --accent: #cf3a29;
  /* Already the darker red, and already 4.89:1 under white, so here the two
     are one colour. */
  --accent-fill: var(--accent);
  --accent-ink: #ffffff;
  --accent-soft: rgba(207, 58, 41, .10);
  --accent-line: rgba(207, 58, 41, .32);
  /* Measured on the darkest ground this ink lands on, which is the badge on
     the active menu row in the old all light look: the accent tint over that
     row's own tint, not over the card. #b6301f was 4.43:1 there while reading
     6.12:1 on a card. The ground decides the ink, not the tint. */
  --accent-ink-on-soft: #ad2d1d;
  /* A word in red: 5.56:1 on `--surface-2`, 4.85:1 on its tint over it. The
     brand red as a word is 4.33:1 on the canvas, so the red stays the mark and
     the words take this. */
  --accent-text: #ad2d1d;

  --art-ink: #7d1f16;
  --art-op: .085;

  --glass-lip: rgba(255, 255, 255, .85);
  --glass-sheen: rgba(255, 255, 255, .75);
  --glass-rim: rgba(0, 0, 0, .09);
  --glass-fill: rgba(255, 255, 255, .55);
  --glass-fill-hover: rgba(255, 255, 255, .8);
  --glass-base: rgba(0, 0, 0, .05);
  --glass-shadow: 0 10px 26px -20px rgba(18, 18, 24, .5);

  --viz-cell-0: rgba(0, 0, 0, .04);
  --viz-cell-1: rgba(0, 0, 0, .09);
  --viz-cell-2: rgba(0, 0, 0, .16);
  --viz-cell-3: rgba(0, 0, 0, .26);

  /* Apple's system palette: the bright value for a mark, the accessible
     dark value for a word. */
  --good: #34c759;
  --good-soft: rgba(52, 199, 89, .14);
  --good-ink: #1f7a37;       /* was #0f7a4a: 4.0:1 on its tint over a group row */
  --warn: #ff9500;
  --warn-soft: rgba(255, 149, 0, .14);
  /* Deep enough to clear 4.5:1 on the group rows as well as on a card: a
     chip sits on whatever the row behind it is. 5.10:1 on its tint there. */
  --warn-ink: #7d5100;
  /* on white the accent red is dark, so danger goes cooler and deeper to
     stay a different signal. As a word on its own tint over a group row it is
     4.81:1, so it needs no ink of its own. */
  --bad: #b0203f;
  --bad-soft: rgba(176, 32, 63, .10);
  --info: #007aff;
  --info-ink: #0059c7;       /* was #3257c4: 4.68:1 on its tint over a group row */
  --info-soft: rgba(0, 122, 255, .11);
  --shopify: #5e8e3e;        /* #95bf47 is 2.1:1 on white as an icon */

  --field-bg: #ffffff;
  --field-bg-focus: #ffffff;
  --field-border: #8a8a8a;   /* 3.45:1 on white, Shopify's own field edge */
  --av-ink-mix: 40%;
  --av-bg-mix: 22%;
  --thumb-tint: 50%;
  --pop: var(--card);
  /* Barely off the card, as Shopify draws a section row. `--surface-2` made
     every product on a catalogue a grey slab the colour of the canvas, 1.06:1
     against it, and the white card they sit on disappeared. Hover goes darker
     than this, to `--surface-1`, never lighter. */
  --group-row: #f7f7f7;
  --accent-wash: 0;
  --parcel-shadow-op: .14;
  --parcel-mat: #e3e3e3;
  --parcel-mat-line: #cfcfcf;

  --shadow-card: 0 1px 0 rgba(26, 26, 26, .07), 0 1px 2px rgba(26, 26, 26, .04);
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 48px rgba(0, 0, 0, .12);
  --ring: 0 0 0 2px var(--card), 0 0 0 4px var(--accent);

  /* What only the light content draws: see the dark block, where each of
     these is unset so that all dark keeps the rendering it always had. */
  --lc-line: var(--border);
  --lc-line-strong: var(--border-strong);
  --lc-dim: var(--text-dim);
  --lc-muted: var(--text-muted);
  --lc-text: var(--text);
  --lc-canvas: var(--canvas);
  --lc-card: var(--card);
  --lc-card-hover: var(--card-hover);
  --lc-surface-2: var(--surface-2);
  --lc-pop: var(--pop);
  --lc-shadow: var(--shadow-pop);
  --lc-glass-shadow: var(--glass-shadow);
  --lc-none: none;
  /* A banner is a white card with its tone washed through it, Shopify's
     banner; a toast is the same a shade thicker, because it floats over
     whatever is under it. All dark draws both as glass on nothing. */
  --lc-glass: color-mix(in srgb, var(--card) 94%, transparent);
  --lc-glass-thick: color-mix(in srgb, var(--card) 96%, transparent);
  --lc-wash: 7%;
  /* The bar that says we are not answering: opaque, so the table behind it
     cannot read through its sentence on white. */
  --lc-alarm: color-mix(in srgb, var(--bad) 10%, var(--card));
  /* The two bars along the foot start where the content does, so neither
     covers the foot of the menu. */
  --lc-bar-left: var(--sidebar-w);

  --heat-lo: 80%;
  --heat-hi: 100%;
  --heat-key-a: 85%;
  --heat-key-b: 100%;

  /* The globes, light: see the dark block. */

  --ow-globe-polish: 1;
  --ow-ground: radial-gradient(120% 95% at 50% 40%, #f4f3f3 0%, #eeebec 62%, #e4dfe1 100%);
  --ow-ink: 132, 53, 62;
  --ow-dot-lo: .25;
  --ow-dot-hi: .82;
  --ow-route-k: 2.2;
  --ow-rim: rgba(105,42,55,.22);
  --ow-good: 207, 58, 41;
  --ow-note-line: rgba(112,44,57,.15);
  --ow-note-shadow: 0 2px 5px rgba(53,34,27,.03), 0 10px 25px -10px rgba(53,34,27,.17);
  --ow-ic-bg: #f8f0f1;
  --ow-ic-line: #eadbdf;
  --globe-ground: radial-gradient(120% 95% at 50% 40%, #f2f2f2 0%, #e9e9e9 62%, #dfdfdf 100%);
  --globe-ink: 48, 48, 48;
  --globe-dot-lo: .24;
  --globe-dot-hi: .74;
  --globe-dot-k: 1;
  --globe-route-k: 1.7;
  --globe-sphere: 255, 255, 255;
  --globe-sphere-a: 1, .97, .9;
  --globe-rim: rgba(0, 0, 0, .14);
  --globe-good: 23, 145, 90;
  --globe-warn: 181, 117, 0;
  --globe-chip-bg: transparent;
  --globe-chip-line: transparent;
  --globe-note-bg: rgba(255, 255, 255, .97);
  --globe-note-ink: #303030;
  --globe-note-sub: #616161;
  --globe-note-soft: #4a4a4a;
  --globe-note-line: rgba(0, 0, 0, .1);
  --globe-note-hover: rgba(0, 0, 0, .3);
  --globe-note-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 28px -16px rgba(0, 0, 0, .3);
  --globe-ic-bg: rgba(0, 0, 0, .04);
  --globe-ic-line: rgba(0, 0, 0, .1);
  --globe-tip-bg: #ffffff;
  --globe-tip-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 14px 32px -12px rgba(0, 0, 0, .28);
  --globe-flag-bg: rgba(255, 255, 255, .85);
  --globe-pack-edge: rgba(0, 0, 0, .28);
  --globe-spark: #303030;
}
/* On a phone a product row is a card of its own, so its cell is clear. */
@media (max-width: 720px) {
  [data-theme="light"] { --group-row: transparent; }
}

/* A scope re-declares the tokens, and `color` is not a token: it arrives
   already worked out from whatever is outside. Each scope starts from its own
   ink, or the menu draws the page's dark grey on its own black. */
[data-theme] { color: var(--text); }

/* ==========================================================================
   Components used by every screen. Rendered by assets/ui.js.
   ========================================================================== */

/* --- table extras: selection, bulk bar ------------------------------------ */
.cbcell { width: 38px; }
.cbcell input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}
/* A variant on its own row, with the product it belongs to on the header
   above it. Only what differs. */
.varcell .pt { font-size: 13px; font-weight: 600; text-transform: none; }
.varcell .ps { font-size: 11px; color: var(--text-dim); }
.varcell.is-gone .pt { color: var(--text-dim); text-decoration: line-through; }

/* The line between one product and the next, and on a collapsible table the
   product itself: shut, this row is the whole of what is on screen for it. */
.grouprow > td {
  padding: 14px 12px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--group-row);
}
tbody tr:first-child.grouprow > td { padding-top: 10px; }

/* Shut. Specific enough to hold on a phone, where a row is a card and every
   tr is display: block. */
.tablewrap tbody tr.is-shut { display: none; }

.ghead {
  display: flex; align-items: center; gap: 9px;
  cursor: pointer;
  border-radius: 8px;
  margin: -4px -6px;
  padding: 4px 6px;
  transition: background var(--fast);
}
.ghead:hover { background: var(--surface-1); }
.ghead:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ghead .prodcell { flex: 1 1 auto; min-width: 0; }
/* The one thing on the row that says it can be opened, so it turns rather
   than swapping for a different mark: a shape that moves is read as the same
   shape somewhere else, and a shape that is replaced is read as news. */
.gchev {
  flex: none;
  /* Said rather than taken from the glyph, because a group with nothing to
     open draws an empty one to hold the place: without a width it collapses
     and that one product sits thirteen pixels right of every other. */
  width: 13px; height: 13px;
  display: inline-flex;
  color: var(--text-dim);
  transition: transform var(--fast), color var(--fast);
}
.ghead:hover .gchev { color: var(--text); }
.ghead[aria-expanded="true"] .gchev,
.gchev[aria-expanded="true"] { transform: rotate(90deg); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .gchev { transition: none; } }
/* Where the row opens something of its own, the arrow is a control rather
   than a decoration on one: pressing the product opens the product, pressing
   the arrow beside it unfolds the sizes. It is given a little room around it
   so a finger can find it without hitting the row. */
button.gchev {
  appearance: none; background: none; border: 0; font: inherit;
  box-sizing: content-box;
  padding: 5px; margin: -5px -2px -5px -5px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
button.gchev:hover { color: var(--text); background: var(--surface-2); }
button.gchev:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
tr.grouprow.clickable { cursor: pointer; }
tr.grouprow.clickable:hover > td { background: var(--surface-1); }
/* The head is the row now, so it must not draw a second panel of its own
   under the pointer. */
tr.grouprow.clickable .ghead { margin: 0; padding: 0; border-radius: 0; }
tr.grouprow.clickable .ghead:hover { background: none; }

.bulkbar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--radius);
  animation: fade var(--fast) both;
}
.bulkbar b { font-size: 12.5px; color: var(--text); margin-right: 4px; }
/* What the buttons beside it can still do today. Pushed to the right of the
   count and left of the actions, quiet, because it is a fact rather than a
   warning. */
.bulknote { font-size: 12px; color: var(--text-muted); margin-right: auto; }
.bulkbar .btn:last-child { margin-left: auto; }
.pager .pg.is-gap { border: none; background: none; color: var(--text-dim); cursor: default; }

/* --- skeleton rows -------------------------------------------------------- */
/* --- a list filling up ---------------------------------------------------
   Rows land from the right, one after another, and then a pulse runs down
   them for as long as the reading takes. A sweep of light across a grey
   block says something is busy; this says rows are arriving, which is what
   is actually happening.
   ------------------------------------------------------------------------ */
.skelwrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.skelwrap .skelrow {
  animation: skel-land 420ms cubic-bezier(.2, .8, .2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 65ms);
}
@keyframes skel-land {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Then a band of light crosses the block, and each row comes up as it
   passes. One thing moving over the rows rather than every row pulsing on
   its own: a list where all of it throbs at once says nothing about order,
   and rows arrive in an order. */
.skelwrap { position: relative; }

.skelwrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0,
    var(--accent-soft) 45%,
    var(--accent-soft) 55%,
    transparent 100%);
  animation: skel-sweep 1500ms linear infinite;
}
@keyframes skel-sweep {
  from { transform: translateY(-100%); }
  to { transform: translateY(238%); }
}

.skelwrap .skel.line {
  /* The row itself warms as the band reaches it and cools behind it, which is
     what makes the band look like it is touching the rows rather than
     floating over them. The delay is the band's own arrival time at this row,
     handed down from the markup. */
  animation: skel-pass 1500ms ease-in-out infinite;
  animation-delay: var(--sweep, 0ms);
  background: var(--surface-1);
}
@keyframes skel-pass {
  0%, 100% { background-color: var(--surface-1); }
  12% { background-color: var(--surface-2); }
  22% { background-color: var(--accent-soft); }
  40% { background-color: var(--surface-2); }
}

/* Somebody who asked for less movement gets the rows and no sweep. */
@media (prefers-reduced-motion: reduce) {
  .skelwrap::after { display: none; }
  .skelwrap .skel.line { animation: none; }
  .skelwrap .skelrow { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .skelwrap .skelrow, .skelwrap .skel.line { animation: none; opacity: 1; transform: none; }
}
.skelrow {
  display: flex; gap: 18px; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.skelrow:last-child { border-bottom: none; }
.skelrow .skel.line { margin: 0; min-width: 0; }
.empty.is-error .eicon { color: var(--bad); background: var(--bad-soft); }

/* The price on a product row: the country it is quoted in, then the money.
   The flag never carries it alone, so `U.country` puts the code beside it and
   this only has to keep the three on one line and hard against the right. */
.qprice { display: inline-flex; align-items: baseline; gap: 7px; justify-content: flex-end; }
.qprice .ctry { font-size: 11px; color: var(--text-dim); letter-spacing: .04em; }
.qprice b { font-weight: 600; }
/* A product with nothing folded under it keeps the chevron's room so the
   thumbnails line up down the column, and gives up the pointer so it does not
   look like something that opens. */
.ghead.is-leaf { cursor: default; }
.ghead.is-leaf:hover { background: none; }

/* --- a notice ------------------------------------------------------------- */
/* One anatomy for everything that tells somebody something, wherever it
   appears: a small mark in the tone's colour on the first line, the sentence
   that names the thing beside it, and the explanation under that. `--bt` is
   the tone and the whole notice is mixed from it, so there is one variable to
   change and not five rules.

   The mark used to sit in a 30px disc of its own with a gradient fill, an
   inner ring and a glow around it, which is a slab: the loudest thing in the
   notice was a decoration, and the sentence it was about came second. The
   note above this block even claimed the type sat there "without a coloured
   slab behind the icon", which had not been true for some time.

   The glass is calmer than it was for the same reason. A banner carried a
   specular highlight, a 30px blur and three shadows; the toast, which says
   the same kind of thing, has always been plain tinted glass. They meet at
   the quieter of the two. */
.notice {
  --bt: var(--text-muted);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--radius);
  /* In the light content the edge is the hairline every card has and there is
     no shadow under it, the way Shopify draws a banner: it sits in the page
     rather than floating over it, and the soft drop shadow it had read as a
     heavy lid on a calm white page. All dark keeps its glass rim and its
     shadow, read from the fallbacks. */
  border: 1px solid var(--lc-line, var(--glass-rim));
  /* In the light content a white card with the tone washed through it,
     which is Shopify's banner. All dark draws it as glass on nothing, the
     way it always has: its old shorthand put a colour in the first layer,
     which only the last may hold, so the whole declaration was dropped, and
     that nothing is the all dark look. Two properties here, each reading a
     token that is unset in all dark, so neither is drawn there. */
  background-color: var(--lc-glass, transparent);
  background-image: linear-gradient(color-mix(in srgb, var(--bt) var(--lc-wash), transparent),
                                    color-mix(in srgb, var(--bt) var(--lc-wash), transparent));
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--lc-none, inset 0 1px 0 var(--glass-lip), var(--glass-shadow));
}
/* A box the height of one line rather than a disc: the mark centres itself on
   the title whatever the title wraps to, and it is 16px because at 14 it read
   as a smudge once the slab behind it was gone. */
.nico {
  flex: none;
  width: 16px; height: 19px;
  display: grid; place-items: center;
  color: var(--bt);
}
.ntxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ntxt b { font-size: 13.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.4; }
.ntxt span { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
/* A refusal said inside the dialog that asked, as plain text: without its own
   padding it sat flush against its border and read as a stray line. */
.notice.cfsaid {
  margin-top: 12px;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  border-color: color-mix(in srgb, var(--bt) 45%, var(--glass-rim));
}

.banner {
  padding: 13px 15px;
  margin-bottom: 12px;
}
/* a control on glass is glass too, not a solid pill sitting on top of it */
.banner .btn {
  margin-left: auto;
  /* The notice aligns its parts to the first line so the mark sits on the
     title. A button does not belong on that line: it answers the whole
     notice, so it centres against it. */
  align-self: center;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border-color: var(--glass-rim);
  background: var(--glass-fill);
  box-shadow: inset 0 1px 0 var(--glass-lip);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.banner .btn:hover { background: var(--glass-fill-hover); border-color: var(--glass-rim); }
.banner .btn.danger { background: color-mix(in srgb, var(--bad) 16%, transparent); }

/* On a phone the button goes under the sentence rather than beside it. Three
   things on one line at 390px is a column of text about a hundred pixels wide
   with a button taking the rest: the notice that offers to put two orders in
   one parcel broke its own title over three lines to make room for Send them
   in one parcel. It lines up with the text rather than with the mark, which is
   the 16px icon and the 10px gap it stands in. */
@media (max-width: 720px) {
  .notice { flex-wrap: wrap; }
  .notice .ntxt { flex: 1 1 calc(100% - 26px); }
  .banner .btn { margin-left: 26px; align-self: flex-start; }
}

/* --- waiting on somebody else ------------------------------------------- */
/* The same glass as a banner, because it sits in the same place and answers
   the same kind of question. What it is not is a warning: the tone stays the
   muted one while the promise is running, and only takes the amber when it
   has actually been missed. */
/* It said it was the same glass as a banner, so it moves when the banner
   does. Written as the banner rather than beside it, or the next change has
   to be made twice and one of the two gets forgotten. */
.waitcard {
  --bt: var(--text-muted);
  position: relative;
  padding: 13px 15px 12px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--lc-line, var(--glass-rim));
  background:
    color-mix(in srgb, var(--bt) 7%, transparent),
    color-mix(in srgb, var(--surface-2) 94%, transparent);
  box-shadow: var(--lc-none, inset 0 1px 0 var(--glass-lip), var(--glass-shadow));
}
.waitcard.is-over { --bt: var(--warn); }
.wc-head { display: flex; align-items: flex-start; gap: 10px; }
.wc-ico {
  flex: none;
  width: 16px; height: 19px;
  display: grid; place-items: center;
  color: var(--bt);
}
.wc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wc-txt b { font-size: 13.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.4; }
.wc-txt span { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.wc-act {
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border-color: var(--glass-rim);
  background: var(--glass-fill);
  box-shadow: inset 0 1px 0 var(--glass-lip);
}
.wc-clock { display: flex; align-items: center; gap: 12px; margin: 12px 0 7px; }
.wc-track {
  position: relative;
  flex: 1 1 auto;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 9%, transparent);
}
/* The fill moves on its own every half minute, so it is eased: a bar that
   jumps reads as a redraw rather than as time passing. */
.wc-track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--bt);
  transition: width .6s cubic-bezier(.22, .61, .36, 1);
}
/* Not the accent. The accent is status and one emphasis point, and a red bar
   filling on the one screen that says nothing is wrong reads as the alarm
   this card exists to stop drawing. It goes amber only when the promise has
   really been missed. */
.waitcard:not(.is-over) .wc-track i { background: color-mix(in srgb, var(--text) 58%, transparent); }
.wc-left {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--text);
}
.wc-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-dim);
}
@media (max-width: 560px) {
  .wc-act { margin-left: 0; }
  .wc-head { flex-wrap: wrap; }
  .wc-foot { flex-direction: column; gap: 2px; }
}

/* The tone, in one place for every notice there is. `info` is deliberately
   not a colour: most of what this app says is neither good news nor a
   problem, and a blue mark on all of it would spend the reader's attention on
   the ordinary case. */
.tone-warn { --bt: var(--warn); }
.tone-bad { --bt: var(--bad); }
.tone-good { --bt: var(--good); }
.tone-accent { --bt: var(--accent); }
.tone-info { --bt: var(--text-muted); }

/* --- SLA marker ----------------------------------------------------------- */
.sla {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-dim);
  white-space: nowrap;
}
.sla.is-close { background: var(--warn-soft); color: var(--warn-ink); }
.sla.is-late { background: var(--bad-soft); color: var(--bad); }
.sla.is-met { background: var(--good-soft); color: var(--good-ink); }

/* --- modal and drawer ----------------------------------------------------- */
.sheet {
  width: min(560px, calc(100vw - 32px));
  max-height: min(84vh, 860px);
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  animation: pop var(--med) both;
}
.sheet.is-wide { width: min(880px, calc(100vw - 32px)); }
.sheethead {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.sheethead h3 { margin: 0; font-size: 15px; font-weight: 600; }
.sheethead p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-muted); }
.sheethead .iconbtn { margin-left: auto; }
/* A control about the whole dialog sits beside the cross rather than at the
   top of the body, where it reads as the first thing in the form. */
.sheetacts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sheetacts ~ .iconbtn { margin-left: 0; }
/* The head of the price form: the product, and the four facts somebody
   prices on, in one strip beside the picture. All of it used to be in the
   body under a head that carried the title in a sentence and the merchant in
   another, so the first screenful of the one form this floor works all day
   was the same four things written twice. */
.qsheethead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.qsheetwho { min-width: 0; }
.qsheetwho h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.qsheetmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; min-width: 0; }
.qsheetmeta > span { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.qsheetmeta em {
  font-style: normal; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); flex: none;
}
.qsheetmeta b { font-size: 12.5px; font-weight: 600; }
.qsheetmeta b.mono { text-transform: uppercase; letter-spacing: .04em; }
.qsheetmeta .mpill { min-width: 0; }
.qsheetmeta .mpill b { font-size: 12.5px; }
@media (max-width: 720px) {
  .qsheethead { align-items: flex-start; gap: 10px; }
  .qsheetmeta { gap: 4px 12px; }
}

.sheetbody { padding: 16px 18px; overflow-y: auto; }
.sheetbody .ctext { margin: 0 0 4px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
/* --- the chat channel, on the settings screen ---------------------------- */

/* One offer, because one is built. */
.chanoffer {
  display: flex; align-items: center; gap: 13px;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius);
}
.chanoffer > div { flex: 1; min-width: 0; }
.chanoffer b { font-size: 13.5px; display: block; }
.chanoffer p { margin: 2px 0 0; }

.chanmark {
  flex: none; width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted);
}
.chanmark.is-on {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 45%, var(--border));
  background: var(--good-soft);
}

.chanlive { border-color: color-mix(in srgb, var(--good) 26%, var(--border)); }
.chanhead { display: flex; align-items: center; gap: 13px; }
.chanwho { flex: 1; min-width: 0; }
.chanwho b { font-size: 14.5px; display: block; }
.chanwho .hint { display: block; margin-top: 2px; }

/* The one thing worth seeing without reading: it is alive. Slow, because a
   fast blink is an alarm and this is the opposite of one. */
.livedot {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--good-ink);
}
.livedot i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 var(--good);
  animation: livepulse 2.4s ease-out infinite;
}
.livedot.is-off { color: var(--text-dim); }
.livedot.is-off i { background: var(--text-dim); animation: none; box-shadow: none; }
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--good) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .livedot i { animation: none; }
}

/* Two directions, two proofs, and a tick only over the one that happened. */
.chanproof { margin-top: 14px; display: grid; gap: 8px; }
.chanleg {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.chanleg > svg { flex: none; margin-top: 1px; color: var(--good); }
.chanleg b { font-size: 12.5px; display: block; }
.chanleg .hint { display: block; margin-top: 2px; }
.chanleg.is-done { border-color: color-mix(in srgb, var(--good) 34%, var(--border)); }

/* --- connecting a chat, and waiting for it to prove itself --------------- */

/* Two ways in, side by side rather than one under the other: they are the same
   step for two different rooms, not a first choice and a fallback. */
.cchoice { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }

.cwait, .cstep {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.cwait strong, .cstep strong { font-size: 13px; display: block; }
.cwait p, .cstep p { margin: 3px 0 0; }
.cstep code {
  font-family: var(--font-mono); font-size: 12px;
  padding: 1px 5px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--border);
}
/* Green only once it is true. A tick that is on the screen before the thing
   happened is the whole failure this flow exists to end. */
.cstep.is-done { border-color: color-mix(in srgb, var(--good) 40%, var(--border)); }
.cstep.is-done > svg { color: var(--good); flex: none; margin-top: 1px; }

/* White, always, and never a token: a phone camera reads black on white and
   an inverted code in dark mode is one it hunts for. The frame is what stops
   it looking like a hole cut in the sheet. */
.qrwrap {
  display: flex; justify-content: center;
  padding: 12px; margin: 4px 0 10px;
  background: #fff; border-radius: var(--radius-sm);
}
.qr { display: block; }

.spin {
  flex: none;
  width: 15px; height: 15px; margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 700ms linear infinite;
}

.sheetfoot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--shell);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* Three buttons do not fit across a phone, and in one row the first was
   pushed off the left edge of the screen: the price form's Close showed one
   letter. Wrapped, the last button, which is the one that sends, takes a line
   of its own at the right. */
@media (max-width: 720px) {
  .sheetfoot { flex-wrap: wrap; }
}
/* A drawer reaches the edge, which is what coming out of the side means. The
   overlay pads itself by twenty pixels for a dialog floating in the middle,
   and on a side panel that reads as a panel that missed: a dark strip down the
   outside, and on a phone forty pixels of the width gone to it. */
.overlay.is-side { align-items: stretch; justify-content: flex-end; padding: 0; }
.drawer {
  width: min(520px, 100vw);
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border-left: 1px solid var(--border-strong);
  animation: slidein var(--med) both;
}
/* A detail that is a screenful rather than a panel: a parcel carries its
   journey, its times, every scan and a map, and 520px is a column. Capped,
   because ninety percent of a 27 inch monitor is not a drawer any more, it is
   a page with a strip of list beside it, and a line of text that wide reads
   badly. */
.drawer.is-wide { width: min(90vw, 1200px); }
/* The panel takes focus when it opens so the keyboard starts inside it, and
   that is a cursor rather than a thing to draw a box around. */
.drawer:focus { outline: none; }
/* Nor a ring: the panel holds focus so the keyboard starts inside it, and a
   drawer opened after a read matched `:focus-visible` and drew the red ring
   round its whole edge, which also forced a corner onto a panel that has
   none. The controls inside it ring as ever. */
.drawer:focus-visible { box-shadow: none; border-radius: 0; }
.drawerbody { padding: 16px 18px; overflow-y: auto; flex: 1; }

/* --- one parcel ----------------------------------------------------------- */
/* The facts on the left and the journey on a map to the right. The map is the
   half that can be left out: on a phone it is a smudge the size of a thumbnail
   and the strip above it says the same thing in words. */
.psheet { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
/* A grid column will not shrink below what is in it unless it is told it may,
   and one wide thing then eats the other column. Seven sizes with names like
   "Grey / Green / Single" made the strip a thousand pixels of min-content, so
   the left column took everything and the right one was squeezed to a sliver
   with its cards running off the edge of the drawer. The strip scrolls; it was
   never asked to. */
.psheet > * { min-width: 0; }
/* A product is the other drawer on this grid, and its right column is
   reference rather than a picture: what it holds is read after the price
   rather than beside it, so it takes a little less width and keeps every row
   of it on a phone. */
.prodsheet { grid-template-columns: 1.1fr .9fr; }
.prodsheet .pside { position: static; display: flex; flex-direction: column; gap: 10px; }
.prodsheet .pmain { display: flex; flex-direction: column; gap: 10px; }

/* An order is the third drawer on this grid, and the one that came from a
   page laid out as a `.split` with two `.stack`s, which is the same shape by
   another name. What is new here is the head: the reference, what can be done
   and what is in the way are facts about the order rather than about a
   column, so they span the pair instead of sitting on top of the left one. */
.ordersheet { grid-template-columns: 1.15fr .85fr; }
.ordersheet .pside { position: static; display: flex; flex-direction: column; gap: 14px; }
.ordersheet .pmain { display: flex; flex-direction: column; gap: 14px; }
.odtop { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
/* The same line the page carried under its title: what to quote, who it is
   for and where it goes. It wraps rather than being cut, because every part
   of it is a fact somebody reads rather than a label. */
.odsub {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 12.5px; color: var(--text-muted);
}
.odtop .rowline:empty, .odtop > div:empty { display: none; }
/* What the merchant's own listing shows. Three, and a count over the third
   when there are more, rather than a strip that scrolls: the question this
   answers is what the thing looks like, and it is answered by the first
   picture. The rest are one press away.

   Square, because a listing mixes portraits and landscapes and a row of
   different heights reads as a row of different things. */
.pdshots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pdshot {
  position: relative; display: block; padding: 0; border: 0; background: none;
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; font: inherit;
}
.pdshot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-1);
}
.pdshot:hover img { border-color: var(--border-strong); }
.pdshot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The count sits over the third one rather than beside it, so the row stays
   three wide however many there are. */
.pdmore {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .55);
  color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  border-radius: var(--radius-sm);
}
.pdshot:hover .pdmore { background: rgba(0, 0, 0, .45); }

/* The product, the size in front and the one thing to do about it. */
.pdhead { display: flex; align-items: center; gap: 12px; }
.pdname { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* Cut rather than wrapped, both of them. The drawer head is one line of fact
   above the work, and a long title with a long SKU under it turned that into
   five lines on a phone before anything on the screen had been read. The whole
   title is in the drawer's own heading above it either way. */
.pdname b {
  font-size: 16px; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pdname span {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pdacts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
/* On a phone the actions go on a line of their own under the picture and the
   name: in one row the last button ran off the edge and was cut to "Ask for
   detail". */
@media (max-width: 720px) {
  .pdhead { flex-wrap: wrap; }
  .pdname { flex: 1 1 0; }
  .pdacts { flex: 1 1 100%; margin-left: 0; flex-wrap: wrap; }
}
/* The sizes stay reachable while the prices under them scroll: the drawer
   body is the scroller, so the strip pins to the top of it. */
.prodsheet .varstrip { position: sticky; top: -16px; z-index: 1; background: var(--surface-1); padding-top: 4px; margin-bottom: 0; }
.pkhead { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.pkhead > b { font-size: 17px; letter-spacing: -.02em; }
.prail { margin: 4px 0 18px; }
.ptimes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ptime { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ptime span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.ptime b { font-size: 13.5px; font-weight: 600; }
.psplit { height: 1px; background: var(--border); margin: 20px 0 16px; }
.pside { position: sticky; top: 0; }

/* The product drawer gives up its second column sooner than the other two on
   this grid, and the table is why. Seven columns of delivered price need 479
   pixels at their narrowest, and a window of a thousand hands the left column
   441 to 472 of them: the panel beside it is taking half of a width that is
   not wide. Squeezing the table further is the wrong direction, because the
   next thing to go is the amounts, and an amount that wraps between the
   symbol and the number is two readings of one figure. Stacking costs nothing
   here for the reason that column is laid out the way it is: it is reference
   read after the price rather than beside it.

   Measured at the widths the drawer is drawn at: below this the table has the
   whole of the drawer, above it the left column is already past 479. */
@media (max-width: 1100px) {
  .prodsheet { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 900px) {
  .psheet { grid-template-columns: 1fr; gap: 0; }
  .prodsheet { grid-template-columns: 1fr; gap: 14px; }
  /* Not drawn rather than shrunk: a world map at this width is a smudge, and
     the journey above it already says where the parcel is in words. */
  /* Only the map. The half of a drawer that a phone is better off without is
     a picture of the world at thumbnail size, not a column of facts: hiding
     `.pside` outright took the product's prices, its details and its whole
     right-hand column off every phone the moment a second drawer reused this
     grid. */
  .pside.is-map { display: none; }
  /* The order drawer keeps its right-hand column on a phone: the address, the
     QC check and the activity are the half somebody opens it for. What goes is
     the map alone, for the same reason the parcel's does. */
  .ordersheet .shipmap { display: none; }
  .ptimes { grid-template-columns: 1fr 1fr; }
}
/* It slides in from the edge it is attached to. It used to move 24px and
   fade, which at this width reads as a panel appearing rather than as
   something being pulled out. */
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  @keyframes slidein { from { opacity: 0; } to { opacity: 1; } }
}
@keyframes pop { from { transform: scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }

/* --- thread --------------------------------------------------------------- */
.threadwrap { display: flex; flex-direction: column; min-height: 0; }
/* How much of a conversation is on screen at once. It was 420px on every
   screen there is, which on a laptop is four messages and a scrollbar: the
   thing being read is the conversation, and reading one four lines at a time
   is what makes people scroll back up to check what was already said. It
   follows the window now, with a floor for a phone and a ceiling so a tall
   screen does not put the composer somewhere nobody can see it. */
.msglist {
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; padding-right: 4px;
  max-height: clamp(320px, 54vh, 720px);
}
/* The inbox is the conversation and nothing else on the page competes with
   it, so it gets more than a thread that sits under an order. */
.inboxgrid .msglist { max-height: clamp(360px, 68vh, 900px); }
.msgempty { padding: 24px; text-align: center; font-size: 12.5px; color: var(--text-dim); }
.msg {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 10px 12px;
}
.msg .mcol { min-width: 0; flex: 1; }
.msg.is-mine { background: var(--surface-2); border-color: var(--border-strong); }
.msg .mhead { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.msg .mhead b { font-size: 12.5px; }
.msg .mrole,
.msg .mchan,
.msg .mtime { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.msg .mchan { color: var(--info-ink); }
.msg .mtime { margin-left: auto; }
.msg .mbody { font-size: 13px; color: var(--text-muted); line-height: 1.55; white-space: pre-wrap; }
.msg .mquote {
  display: block; margin-bottom: 6px; padding: 4px 0 4px 10px;
  border-left: 2px solid var(--border-strong);
  color: var(--text-dim); font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Under the pointer, where the time is, so a bubble at rest is unchanged.
   Inside the bubble rather than on its edge: the list scrolls, and its edge
   cuts off anything hanging over the first message. */
.msg { position: relative; }
.msg .mreply {
  position: absolute; top: 7px; right: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--text-muted);
  font: inherit; font-size: 11px; cursor: pointer;
  opacity: 0; transition: opacity var(--fast), color var(--fast);
}
.msg .mreply svg { width: 12px; height: 12px; }
.msg:hover .mreply, .msg:focus-within .mreply, .msg .mreply:focus-visible { opacity: 1; }
.msg:has(.mreply):hover .mtime, .msg:has(.mreply):focus-within .mtime { visibility: hidden; }
.msg .mreply:hover { color: var(--text); border-color: var(--border-strong); }
@media (hover: none) { .msg .mreply { opacity: 1; } }
.composer .creplyslot {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; padding: 6px 8px 6px 10px;
  border-left: 2px solid var(--accent); border-radius: var(--radius-sm);
  background: var(--surface-1);
}
.composer .creplyslot[hidden] { display: none; }
.composer .creplyslot .crtxt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; font-size: 12px; }
.composer .creplyslot .crtxt span { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .matt { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.msg .att {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 3px 8px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-muted);
}
.msg .att svg { width: 12px; height: 12px; }
.msg button.att { border: 0; cursor: pointer; }
.msg button.att:hover { color: var(--text); background: var(--surface-3, var(--surface-2)); }
.msg button.att.is-loading { opacity: .6; pointer-events: none; }

/* A message you have just sent, before the server has it. It arrives rather
   than appears: the movement is what says something happened, and it is the
   whole reason this bubble exists. Held slightly back until it lands, so the
   difference between sent and sending is visible without being read. */
@keyframes msgin {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.msg.is-sending, .msg.is-failed { animation: msgin .18s ease-out both; }
.msg.is-sending { opacity: .62; }
.msg.is-sending .mstate { color: var(--text-dim); }
.msg.is-failed { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
.msg.is-failed .mstate {
  display: flex; align-items: center; gap: 8px; color: var(--bad);
}
.msg.is-failed .mstate .btn { padding: 2px 8px; }
@media (prefers-reduced-motion: reduce) {
  .msg.is-sending, .msg.is-failed { animation: none; }
}
.composer { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
/* A conversation inside a drawer or a dialog that has its own red button,
   Add tracking on an order or Send the offer on packaging, sends with a
   quiet button: one red per screen, and the one that moves the work on is
   the one that keeps it. Where the panel has no other, Send is the red. */
:is(.drawer, .sheet):has(.btn.accent:not([data-send])) .composer .btn.accent[data-send] {
  background: var(--card); color: var(--text); border-color: var(--border-strong);
}
:is(.drawer, .sheet):has(.btn.accent:not([data-send])) .composer .btn.accent[data-send]:hover {
  background: var(--card-hover); border-color: var(--text-dim);
}
:is(.drawer, .sheet):has(.btn.accent:not([data-send])) .composer .btn.accent[data-send].is-loading::after {
  color: var(--text-muted);
}
.composer textarea { width: 100%; resize: vertical; }
.composer .crow { display: flex; gap: 8px; margin-top: 8px; }
.composer .crow .btn:last-child { margin-left: auto; }
/* the top edge tints when the answer is yours to give */
.composer.is-owed { border-top-color: var(--accent-line); box-shadow: inset 0 2px 0 -1px var(--accent-line); }
.composer .cnotice { font-size: 11.5px; color: var(--text-dim); margin-top: 8px; }
.composer .crefslot { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.composer .cattslot { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.composer .cattslot[hidden] { display: none; }
.composer .catt {
  display: inline-flex; align-items: center; gap: 6px; max-width: 240px;
  padding: 3px 3px 3px 4px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-1); font-size: 12px;
}
.composer .catt img { width: 28px; height: 28px; object-fit: cover; border-radius: 3px; flex: none; }
.composer .catt .ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer .crefslot .mref { flex: 1; margin-top: 0; }

/* the offer to move this thread to a phone: the same glass as a notice, one
   step quieter, because it is an offer and not an instruction */
/* An offer, on one line, above the box somebody is about to type in. It used
   to be a card with a paragraph in it, which is a lot of furniture for a
   question that takes one word to answer. */
.cinvite {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 10px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: 999px;
  background: color-mix(in srgb, var(--info) 5%, transparent);
}
.cinvite .ciico {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent);
}
.cinvite .citxt {
  min-width: 0; flex: 1; font-size: 12.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Turning it down is a small mark, not a button competing with the offer. */
.cinvite .cino {
  flex: none; width: 22px; height: 22px; padding: 0; line-height: 1;
  border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--text-dim); font-size: 15px;
}
.cinvite .cino:hover { background: var(--surface-2); color: var(--text); }
.composer .csent {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); align-self: center;
}
@media (max-width: 720px) {
  /* The line stays a line. What goes at this width is the sentence, not the
     offer: the icon and the button still say what it is. */
  .cinvite .citxt { display: none; }
}

/* what a message points at: the object screen, one click away, without the
   conversation moving there */
.mref {
  display: flex; align-items: center; gap: 10px; margin-top: 9px;
  padding: 7px 9px; border-radius: 12px; text-decoration: none; color: inherit;
  border: 1px solid var(--border); background: var(--surface-1);
  transition: border-color var(--fast), background var(--fast);
}
a.mref:hover { border-color: var(--border-strong); background: var(--card-hover); }
.mref .thumb { width: 34px; height: 34px; flex: none; }
/* A quoted product with sizes the warehouse could not source: the ring is the
   one mark, and the sizes are under the pointer. */
.thumbring { display: inline-flex; flex: none; border-radius: 10px; padding: 2px; }
.thumbring.is-bad { box-shadow: 0 0 0 1.5px var(--bad); cursor: help; }
.mref .mrl { min-width: 0; display: block; }
.mref .mrl b { display: block; font-size: 12.5px; font-weight: 600; }
.mref .mrl span { font-size: 11px; color: var(--text-dim); }
.mref .mrgo { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
/* The same card as a choice in the picker, so what is picked is what the other
   side will see in the conversation. */
.mref.refpick { width: 100%; margin-top: 0; cursor: pointer; text-align: left; font: inherit; }
.mref.refpick:hover, .mref.refpick:focus-visible { border-color: var(--border-strong); background: var(--card-hover); }
.mref .pthumb { width: 34px; height: 34px; border-radius: 8px; }
.mref .pthumb svg { width: 24px; height: 24px; }
.refpicks { max-height: min(52vh, 420px); }

/* An ask for one price for a whole order, on the open line. A task rather
   than a line of chat, so it is a card with its state on it, and it keeps the
   warn edge for as long as the warehouse owes it. */
.mtask {
  margin-top: 9px; padding: 10px 11px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-1);
}
.mtask.is-open { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.mtask .mref { margin-top: 8px; background: var(--card); }
.mtaskhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mtaskrows { margin-top: 8px; display: grid; gap: 3px; font-size: 12px; }
.mtaskrows > div { display: flex; justify-content: space-between; gap: 12px; }
.mtaskact { margin-top: 9px; display: flex; justify-content: flex-end; }
.msg .mtable { margin-top: 8px; }

/* The order price form and the question before it goes. */
.opitems { display: grid; gap: 6px; margin-bottom: 12px; }
.opitem { display: flex; align-items: center; gap: 10px; min-width: 0; }
.opitem .stack { min-width: 0; flex: 1; gap: 0; line-height: 1.3; }
.opnote {
  margin: 4px 0 12px; padding: 8px 11px; border-left: 2px solid var(--accent-line);
  background: var(--surface-1); border-radius: 0 10px 10px 0; font-size: 13px; white-space: pre-wrap;
}
.opcompare { display: flex; align-items: stretch; gap: 10px; }
.opcol {
  flex: 1; display: grid; gap: 4px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-1);
}
.opcol b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.opcol.is-new { border-color: var(--border-strong); }
.oparrow { display: flex; align-items: center; color: var(--text-dim); }
.opdiff { margin: 10px 0 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.opdiff.is-up { color: var(--warn-ink); }
.opdiff.is-down { color: var(--text); }

/* What a price answer did: the old figure struck through beside the new. */
.pcgroup + .pcgroup { margin-top: 16px; }
.pcgroup .eyebrow { margin-bottom: 6px; }
.pcgrid td.num s { margin-right: 4px; }
.pcdelta { margin-left: 6px; font-family: var(--font-mono); font-size: 10.5px; }
.pcdelta.is-up { color: var(--warn-ink); }
.pcdelta.is-down { color: var(--text-dim); }
.pcoff { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.pcoffrow { display: flex; gap: 12px; padding: 5px 0; font-size: 12.5px; }
.pcoffrow b { flex: none; min-width: 90px; font-weight: 600; }

/* what happened to a message after Send */
.msg .mstate { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }
.msg .mstate.is-ok { color: color-mix(in srgb, var(--good) 78%, var(--text)); }

/* both clocks, and what they mean for an answer */
.mclocks {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 11px; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface-1);
  font-size: 11.5px; color: var(--text-dim);
}
/* One line each, cut rather than wrapped. Who somebody is can be a shop name
   of any length, and a name that wraps inside a strip of clocks turns three
   short facts into a paragraph. */
.mclock {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mclock b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.cdot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--text-dim); }
.cdot.on { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.csep { width: 1px; height: 12px; background: var(--border); }
.cnote { color: var(--text-muted); }

/* the room and who is in it. The line this replaces was a group chat, so the
   header says group rather than person. */
.teamstrip { display: flex; align-items: center; gap: 12px; min-width: 0; }
.teamstrip .avstack { gap: 4px; }
.teamstrip .avstack .avat + .avat { margin-left: 0; }
.teamstrip .tstxt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.teamstrip .tstxt b {
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.teamstrip .tstxt span { font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deskteam { padding: 0 16px 12px; }
.deskteam .teamstrip { padding-top: 2px; }

/* --- who that face belongs to -------------------------------------------- */
/* A row of faces says a team answers rather than one person. It does not say
   which of them sources and which of them packs, and that is the thing worth
   knowing before you write. A browser tooltip was doing it: a second late, no
   room for a photograph, and invisible to a keyboard.

   It hangs off the body rather than the strip, because a strip with overflow
   on it would clip the one thing this is for. */
.pcardwrap {
  position: fixed;
  z-index: 90;
  pointer-events: auto;
  animation: pcin var(--fast) ease-out;
}
@keyframes pcin { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pcardwrap { animation: none; } }

/* The short line `data-tip` puts on hover: the person card's surface, one
   sentence, never wider than a sentence wants to be. */
.tipcard {
  position: fixed;
  z-index: 95;
  max-width: 280px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--pop);
  border: 1px solid var(--lc-line);
  box-shadow: var(--lc-shadow, 0 8px 24px rgba(0, 0, 0, .45));
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  pointer-events: none;
  animation: pcin var(--fast) ease-out;
}
@media (prefers-reduced-motion: reduce) { .tipcard { animation: none; } }

.pcard {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 208px;
  max-width: 300px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--pop);
  border: 1px solid var(--lc-line);
  box-shadow: var(--lc-shadow, 0 12px 32px rgba(0, 0, 0, .5));
}
.pcard .avat { flex: none; }
.pcard .pctxt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pcard .pctxt > b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
/* What they do. The reason the card exists: sourcing and packing are two
   people to write to. */
.pcard .pcjob { font-size: 12.5px; color: var(--text); }
/* Where they are and what time it is there, which is the only line that
   changes between opening this in the morning and opening it at six. */
.pcard .pcwhere { font-size: 11.5px; color: var(--text-muted); }
.pcard .pcwhere b { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text); }
.pcard .pcnote { display: block; color: var(--text-dim); }
.pcard .pcmail { font-size: 11px; color: var(--text-dim); word-break: break-all; }

/* A face a card hangs off is reachable by keyboard, so it has to show it. */
.avat[data-person] { cursor: default; }
.avat[data-person]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- the desk ------------------------------------------------------------ */
/* The conversations, on the home screen. The rail is the same glass as the
   notices: a capsule with the light catching its top left, and the selected
   segment lifted out of it on a lozenge of its own. */
.deskhead {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px 12px;
}
.deskhead .btn { margin-left: auto; }
/* Two clocks and one state, on the row that is already there. What somebody
   glances at is the hours; the sentence behind them is the tooltip. */
.clockline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); white-space: nowrap;
  min-width: 0; overflow: hidden;
}
.clockline b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.clockline .clshort {
  margin-left: 4px; padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-dim); font-size: 11px;
}
/* Only two states are worth a word here, so only two are drawn. Amber for the
   hour before they shut, because that is a thing to act on; grey once they
   have, because by then there is nothing to do but write it anyway. */
.clockline .cltag {
  margin-left: 4px; padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent);
  background: var(--warn-soft); color: var(--warn-ink);
}
.clockline .cltag.is-shut {
  border-color: var(--border); background: var(--surface-2); color: var(--text-dim);
}
@media (max-width: 860px) { .deskhead .clockline { display: none; } }
.glassrail {
  display: inline-flex; gap: 3px; padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-rim);
  background:
    radial-gradient(130% 300% at 0% -60%, var(--glass-sheen), transparent 60%),
    color-mix(in srgb, var(--surface-2) 88%, transparent);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  box-shadow: inset 0 1px 0 var(--glass-lip), inset 0 -1px 0 var(--glass-base);
}
.grpill {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  padding: 6px 14px; border: 1px solid transparent; border-radius: var(--radius-pill);
  background: none;
  transition: color var(--fast), background var(--fast), border-color var(--fast);
}
.grpill:hover { color: var(--text); }
.grpill.is-on {
  color: var(--text);
  border-color: var(--glass-rim);
  background:
    radial-gradient(120% 240% at 0% -40%, var(--glass-sheen), transparent 62%),
    var(--glass-fill);
  box-shadow: inset 0 1px 0 var(--glass-lip), var(--lc-glass-shadow, 0 6px 14px -10px #000);
}
.grpill:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.grcount {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em;
  padding: 1px 6px; border-radius: var(--radius-pill);
  background: var(--glass-fill); color: var(--text-dim);
}
.grcount.hot { background: var(--accent-fill); color: var(--accent-ink); }

.deskthread { padding: 0 16px 16px; }
.deskempty { padding: 22px 18px 26px; font-size: 13px; color: var(--text-dim); max-width: 60ch; }
.deskback { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
.deskback .btn:last-child { margin-left: auto; }

.desklist { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.deskrow {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 16px; border: 0; border-bottom: 1px solid var(--border);
  background: none; color: var(--text); cursor: pointer;
  transition: background var(--fast);
}
.deskrow:last-child { border-bottom: 0; }
.deskrow:hover { background: var(--surface-1); }
.deskrow .thumb { width: 34px; height: 34px; flex: none; }
.deskrow .dtxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.deskrow .dtop { display: flex; align-items: baseline; gap: 10px; }
.deskrow .dtop b { font-size: 12.5px; font-weight: 600; }
.deskrow .dwhen { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-dim); flex: none; }
.deskrow .dprev { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deskrow .dflag {
  flex: none; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-pill);
  background: var(--accent-fill); color: var(--accent-ink);
}
@media (max-width: 720px) {
  .deskhead { padding: 12px 12px 10px; }
  .deskhead .btn { margin-left: 0; }
  .glassrail { width: 100%; justify-content: space-between; }
}

/* picking the order a message points at */
.picklist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 300px; overflow-y: auto; }
.pickrow {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: baseline;
  width: 100%; text-align: left; cursor: pointer;
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 11px;
  background: var(--card); color: var(--text); font: inherit; font-size: 13px;
  transition: border-color var(--fast), background var(--fast);
}
.pickrow:hover { border-color: var(--border-strong); background: var(--card-hover); }
.pickrow .pn { font-size: 11px; color: var(--text-muted); }
.pickrow .pt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickrow .pm { font-size: 11.5px; color: var(--text-dim); }

/* who owes a reply */
.mowed {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 0;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
}
.mowed i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent-line), transparent); }
.mowed i:first-child { background: linear-gradient(270deg, var(--accent-line), transparent); }

/* --- uploader ------------------------------------------------------------- */
/* A country and its flag, held together so a line never wraps between them.
   The flag sits a hair above the baseline of the text beside it, because an
   emoji's own box is taller than a letter's and lines up low without it. */
.ctry { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ctry i {
  font-style: normal;
  font-size: 1.08em;
  line-height: 1;
  position: relative;
  top: -.5px;
  /* Not the label face: a flag in a tracked, uppercased run gets spaced away
     from the word it belongs to. */
  letter-spacing: 0;
}

/* a file the warehouse sent, shown as a file */
/* The sizes of the product, above the price. Each says whether it has a
   price, because which sizes are sellable is the question it answers. Scrolls
   rather than wraps: seven sizes on a phone is one line to swipe, not three
   rows pushing the price off the screen.

   In the drawer it is `is-flat`: a reading rather than a control. Pressing
   one used to turn the whole screen into that size, which is how a drawer
   about a product came to be about a variant. */
.varstrip {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 0 4px;
  margin: 0 0 14px; scrollbar-width: none;
}
.varstrip::-webkit-scrollbar { display: none; }
.varchip {
  flex: none; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; border: 1px solid var(--lc-line); border-radius: 10px;
  background: var(--lc-card); text-decoration: none; color: var(--text);
  transition: border-color .15s ease, background .15s ease;
  /* Inside the drawer it is a button rather than a link, because it changes
     what is in front of you instead of taking you somewhere. A button draws
     itself in the browser's own font unless it is told otherwise. */
  font: inherit; text-align: left; cursor: pointer;
}
.varchip:hover { border-color: var(--lc-line-strong); background: var(--lc-card-hover); }
.varchip.is-on { border-color: var(--accent); background: var(--accent-soft); }
.varstrip.is-flat .varchip { cursor: default; }
.varstrip.is-flat .varchip:hover { border-color: var(--lc-line); background: var(--lc-card); }

/* Which size the price table is on. A picker rather than a stack of rows:
   what somebody does on this card is look up one size, and a row each meant
   twenty eight presses to learn that twenty seven of them are identical. It
   is drawn only where the sizes really differ on price; one price over the
   lot is one table and nothing to choose. */
.pdpick {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--lc-line);
}
.pdpick label {
  font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-dim); flex: none;
}
.pdpick select { flex: 1; min-width: 0; max-width: 340px; }
.pdpick .hint { margin: 0 0 0 auto; flex: none; white-space: nowrap; }
@media (max-width: 720px) {
  .pdpick { flex-wrap: wrap; }
  .pdpick select { max-width: none; }
  .pdpick .hint { margin: 0; width: 100%; }
}

/* A change in Shopify is per size, so the way to answer it is beside the size
   it happened to rather than on one button that cannot say which. */
.pdstale { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 14px; }
.pdstalerow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border: 1px solid var(--lc-line); border-radius: 10px;
  background: var(--lc-card);
}
.pdstalerow b { font-size: 12.5px; font-weight: 600; }
.varchip b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.varchip em {
  font-style: normal; font-size: 10px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-dim);
}
.varchip em.is-ok { color: var(--good-ink); }
.varchip em.is-wait { color: var(--warn-ink); }

/* What moved in Shopify after the price was given: what it was, an arrow, and
   what it is now. Struck through on the left rather than labelled, because a
   was-and-now that needs a legend is two columns nobody reads. The stop half
   takes the amber every other held thing wears; the recorded half is plain,
   since it changes nothing about the price. */
.sincelist { display: flex; flex-direction: column; gap: 8px; }
.sincerow { display: flex; flex-direction: column; gap: 3px; }
.sincerow .dt {
  font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-dim);
}
.sincerow .dd { display: flex; align-items: center; gap: 7px; font-size: 12.5px; flex-wrap: wrap; }
.sincerow .dd s { color: var(--text-dim); text-decoration-color: var(--lc-line-strong); }
.sincerow .dd i { color: var(--text-dim); display: flex; flex: none; }
.sincerow .dd b { font-weight: 600; }
.sincelist.is-stop {
  border-left: 2px solid var(--warn); padding-left: 10px;
}
.sincelist.is-stop .dd b { color: var(--warn-ink); }

/* A section heading that also carries the way to the other section. Two long
   lists on one screen and the second starts under however many rows the first
   happens to have, so on a busy morning it is a scroll past two hundred rows
   to reach it. `scroll-margin-top` is what stops the band over the content on
   a desk, or the bar holding the menu button on a phone, landing on the
   heading somebody just jumped to. */
.eyerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyerow[id] { scroll-margin-top: calc(var(--topbar-h) + var(--inset) + 16px); }
.jump {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  padding: 3px 8px; border: 1px solid var(--lc-line); border-radius: 999px;
  transition: color .15s ease, border-color .15s ease;
}
.jump:hover { color: var(--text); border-color: var(--lc-line-strong); }

/* How long a paid order has stood here, coloured on the ladder that already
   decides what to pick up first: four days, six, eight. Not a scale of its
   own, because two ladders on one row is two answers to how late this is.
   Under four days it stays plain: a mark on nearly every row is one nobody
   sees. */
.age.is-warm { color: var(--warn-ink); }
.age.is-hot { color: var(--accent-text); font-weight: 600; }

/* One press to a backlog. The count on each chip is inside the tab that is
   open, so it never says forty about a queue of six. */
.agerow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.agerow .agelabel {
  font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-dim); margin-right: 2px;
}
.agerow .chip em {
  font-style: normal; margin-left: 6px; padding: 1px 5px;
  border-radius: 999px; background: var(--lc-surface-2); font-size: 10px;
}
.agerow .chip.is-on em { background: rgba(0, 0, 0, .18); }
.agerow .chip.is-clear { color: var(--text-dim); }

/* The shop code beside an order number. Three merchants each having a #1002
   is normal rather than a fault, and the thing that tells them apart was in
   another column reading as a myshopify domain. Same badge as the one in the
   merchant pill, because it is the same fact; only the margin differs, since
   here it follows text rather than sitting in a flex row. */
.mono .mno, .mono + .mno {
  display: inline-block; margin-left: 6px;
  font-size: 9.5px; letter-spacing: .06em;
  color: var(--text-dim); background: var(--surface-2);
  padding: 1px 6px; border-radius: var(--radius-pill);
  vertical-align: 1px;
}

/* A short string somebody is about to paste somewhere else. Read character by
   character, so monospace and a little wider than the text around it, and
   pressed to be copied rather than selected with a trackpad. It says it
   worked on itself, where the eye already is, as well as in the toast. */
.copyable {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border: 1px solid var(--lc-line); border-radius: 7px;
  background: var(--surface-2); color: var(--text);
  font: inherit; cursor: pointer; vertical-align: middle;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.copyable .mono { font-size: 12px; letter-spacing: .04em; }
.copyable svg { color: var(--text-dim); flex: none; }
.copyable:hover { border-color: var(--lc-line-strong); }
.copyable:hover svg { color: var(--text); }
.copyable.is-done { border-color: var(--good); color: var(--good-ink); }
.copyable.is-done svg { color: var(--good); }

/* In a table row: no box, no padding, and the icon only once the row is under
   the pointer, so the column reads as numbers rather than as buttons. No
   border either, not a transparent one: two invisible pixels grew every row
   and phone card that holds one. */
.copyable.is-plain { padding: 0; border-width: 0; border-color: transparent; background: none; gap: 4px; }
.copyable.is-plain svg { opacity: 0; transition: opacity .15s ease; }
tr:hover .copyable.is-plain svg, .copyable.is-plain:focus-visible svg { opacity: 1; }
.copyable.is-plain.is-done svg { opacity: 1; }

.filechips { display: flex; flex-wrap: wrap; gap: 6px; }
/* --- the warehouse's working days -----------------------------------------
   A month drawn as a month: seven columns, Monday first, and the days they
   work picked out. The alternative was a field holding the ranges as text,
   which is a shape somebody can get subtly wrong without noticing, and a
   schedule that is wrong says something untrue every day for a month. */
.wdgrid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin-top: 12px; max-width: 420px;
}
.wd-head {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim); text-align: center; padding-bottom: 2px;
}
.wd-pad { visibility: hidden; }
.wd {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-1); color: var(--text-muted);
  font: 600 12.5px/1 var(--font-display); font-variant-numeric: tabular-nums;
  cursor: pointer; padding: 0;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.wd:hover { border-color: var(--border-strong); color: var(--text); }
.wd:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A day they work is filled rather than outlined. This grid is read at a
   glance to answer one question, are they in, and thirty outlines answer it
   more slowly than a fill does. Not the accent: that marks status and one
   emphasis point per screen, and a working day is neither. */
.wd.is-on {
  background: var(--text); border-color: var(--text); color: var(--canvas);
}
.wd.is-on:hover { border-color: var(--text); }

/* A pair of dates that says which is which. Two identical mm/dd/yyyy boxes
   beside each other is a guess, and the guess is wrong half the time. */
.datespan {
  display: inline-flex; align-items: center; gap: 6px;
}
/* From and to are two date fields with a word between them, and a date field
   in Chrome is 150px whatever you ask of it. Side by side that is 354px, so on
   a small phone the filter bar hung off the right of the screen and took the
   table with it. They wrap, and each takes what is left. */
@media (max-width: 720px) {
  .datespan { display: flex; flex-wrap: wrap; width: 100%; }
  .datespan input { flex: 1 1 120px; min-width: 0; }
}
.datespan em {
  font-style: normal; font-size: 11px; color: var(--text-dim);
  letter-spacing: .02em;
}

.filechip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card-hover);
  font-size: 11.5px;
  color: var(--text-muted);
}
.filechip svg { color: var(--text-dim); flex: none; }

/* Not found sits at the end of the label line, in the quietest grey the
   interface has, because it is an escape hatch and not an invitation. */
.fieldwrap { position: relative; }
/* The grid item is the wrap, not the field inside it, so a table that needs
   the row has to say so out here: `.field.is-wide` further down is spanning a
   column the wrap never gave it. A size chart in half a row is the picture it
   used to be, in another form. */
.fieldwrap.is-file, .fieldwrap.is-wide { grid-column: 1 / -1; }
.nfbtn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 2px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 10.5px;
  line-height: 1.5;
  /* The quietest grey there is, at full strength. Held at .7 opacity it was
     2.96:1 in all dark, under the 4.5:1 a word needs; this is 4.95:1 there
     and 5.48:1 on the light dialog. */
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--fast), opacity var(--fast);
}
.nfbtn:hover { color: var(--text-muted); }
.nfbtn:focus-visible { outline: 1px solid var(--border-strong); outline-offset: 2px; border-radius: 4px; }
.fieldwrap.is-nf .nfbtn { color: var(--text-muted); opacity: 1; }
.missing-reason[hidden] { display: none; }
.fieldwrap.is-nf .field input,
.fieldwrap.is-nf .field textarea,
.fieldwrap.is-nf .tprev,
.fieldwrap.is-nf .uploader { opacity: .4; pointer-events: none; }
.fieldwrap.is-nf .field > label::after {
  content: " · not found";
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* a file field in a form: the label above, the drop zone under it, and it
   takes the full width of the grid rather than half a column */
.field.is-file { grid-column: 1 / -1; }
.field.is-file > label { display: block; margin-bottom: 6px; }
.field.is-file .uploader { padding: 12px; }
.field.is-file .filelist { margin-top: 8px; }

.uploader {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}
.uploader:hover, .uploader.is-over { border-color: var(--accent-line); background: var(--accent-soft); }
.uploader .uico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-muted); }
.uploader .utxt { display: flex; flex-direction: column; gap: 2px; }
.uploader .utxt b { font-size: 13px; }
.uploader .utxt span { font-size: 12px; color: var(--text-dim); }
.filelist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.filerow {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.filerow .fname { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.filerow .iconbtn { margin-left: auto; width: 24px; height: 24px; }
.filepreview { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.filerow .filepreview { flex: 1; min-width: 0; padding: 4px 0; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.filepreview:hover { color: var(--text); }
.filepreview:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filepreview:disabled { cursor: wait; opacity: .6; }
.filetile .filepreview { display: block; width: 100%; height: 100%; }

/* What was dropped, as the thing itself. A filename is a receipt for a
   photograph, and a swatch of the blue is dropped precisely so somebody looks
   at the blue. */
.filelist.is-tiles { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.filetile {
  position: relative; width: 64px; height: 64px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-1);
}
.filetile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.filetile .iconbtn {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  background: rgba(0, 0, 0, .55); color: #fff; border-color: transparent;
}
.filetile .iconbtn:hover { background: rgba(0, 0, 0, .78); }

/* A field that is itself the drop target says so while something is over it,
   the same way the box with the button does. */
.fieldwrap.is-over, .field.is-over { border-radius: var(--radius-sm); outline: 1px dashed var(--accent-line); outline-offset: 3px; }

/* --- switch --------------------------------------------------------------- */
.switch { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; padding: 9px 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 38px; height: 22px; flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  transition: background var(--fast), border-color var(--fast);
}
.switch .track::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform var(--fast), background var(--fast);
}
.switch input:checked + .track { background: var(--accent-soft); border-color: var(--accent-line); }
.switch input:checked + .track::after { transform: translateX(16px); background: var(--accent); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }
.switch .slabel { display: flex; flex-direction: column; gap: 2px; }
.switch .slabel b { font-size: 13px; font-weight: 500; }
.switch .slabel span { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.is-plus { color: var(--good-ink); }

.checklist { display: flex; flex-direction: column; gap: 6px; }
.checklist .pick { align-items: center; }
.notebox {
  margin-top: 10px;
  padding: 9px 11px;
  border-left: 2px solid var(--warn);
  background: var(--warn-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.pkgcard .linerow { font-size: 12.5px; }

/* The logo on the packaging, drawn (assets/packmock.js). The stage keeps a
   dark ground in both themes, the same call the globe makes: a white bag on a
   white card is a bag nobody can see. */
.pm { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; margin-bottom: 22px; }
.pm-stage { position: relative; min-height: 330px; background: radial-gradient(120% 90% at 50% 20%, #1c1c20 0%, #0b0b0d 60%, #050506 100%); border-right: 1px solid var(--border); display: grid; place-items: center; }
.pm-art { width: 100%; max-width: 440px; padding: 18px 20px 8px; }
.pm-art svg { display: block; width: 100%; height: auto; }
.pm-art.is-in svg { animation: pmIn .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pmIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pm-tag { position: absolute; left: 14px; top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 245, 247, .55); border: 1px dashed rgba(255, 255, 255, .2); border-radius: 999px; padding: 3px 9px; }
.pm-side { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pm-head b { display: block; font-size: 15px; font-weight: 600; }
.pm-head span { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 3px; }
.pm-kinds { display: grid; gap: 6px; }
.pm-kind { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; font: inherit; transition: border-color var(--fast), background var(--fast); }
.pm-kind:hover { background: var(--card-hover); }
.pm-kind[aria-checked="true"] { border-color: var(--text-muted); background: var(--surface-1); }
.pm-kind b { display: block; font-size: 13px; font-weight: 500; }
.pm-kind em { display: block; font-style: normal; color: var(--text-dim); font-size: 11.5px; }
.pm-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-1); border: 1px solid var(--border); position: relative; }
.pm-ico::after { content: ''; position: absolute; inset: 8px; border: 1.5px solid var(--text-muted); border-radius: 3px; }
.pm-ico-sticker::after { border-radius: 50%; inset: 9px; }
.pm-ico-tape::after { inset: 13px 5px; border-radius: 2px; }
.pm-ico-card::after { inset: 10px 6px; border-radius: 2px; }
.pm-words { display: grid; gap: 6px; }
.pm-words .pm-lbl { width: auto; }
.pm-words textarea { width: 100%; resize: vertical; min-height: 54px; }
/* Sized by `U.autogrow` from its own line height; a drag handle and the
   generic floor would both fight the height it sets. */
textarea.is-grow { resize: none; min-height: 0; }
/* The same drawing on an approved item: no controls, a strip across the top
   of the card it belongs to. */
.pm-mini { margin: -2px 0 12px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.pm-mini .pm-stage { min-height: 0; border-right: 0; }
.pm-mini .pm-art { max-width: 300px; padding: 30px 16px 4px; }
.pm-proof { margin-top: 10px; }
#pkDraw.pm-mini { margin: 0 0 12px; }
#pkDraw .pm-art { max-width: 280px; padding: 26px 12px 0; }
.pm-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pm-lbl { width: 52px; color: var(--text-dim); font-size: 12px; }
.pm-sw { display: flex; gap: 8px; }
.pm-dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); cursor: pointer; padding: 0; box-shadow: 0 0 0 2px transparent; transition: box-shadow var(--fast); }
.pm-dot.is-clear { background: repeating-linear-gradient(45deg, #bdbdc2 0 4px, #f5f5f7 4px 8px); }
.pm-dot[aria-checked="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text-muted); }
.pm-inks { display: inline-flex; padding: 2px; gap: 2px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pm-ink { font: inherit; font-size: 12px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text-dim); cursor: pointer; }
.pm-ink[aria-checked="true"] { background: var(--card-hover); color: var(--text); }
.pm-file { margin: 0; color: var(--text-dim); font-size: 12px; }
.pm-file button { font: inherit; color: var(--text); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pm-foot { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .pm-art.is-in svg { animation: none; } }
@media (max-width: 720px) {
  .pm { grid-template-columns: 1fr; }
  .pm-stage { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .pm-dot { width: 32px; height: 32px; }
  .pm-ink { padding: 9px 12px; }
  .pm-foot .btn { width: 100%; }
}

/* --- impersonation bar ---------------------------------------------------- */
.imperbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px;
  background: var(--accent-fill);
  color: var(--accent-ink);
  font-size: 12.5px;
  box-shadow: var(--lc-none, 0 -8px 24px rgba(0, 0, 0, .4));
}
.imperbar .imico { display: inline-flex; align-items: center; }
.imperbar .imtxt { line-height: 1.4; }
.imperbar svg { width: 14px; height: 14px; }
.imperbar b { font-weight: 700; }
/* The button is the bar inverted. It was the page's text on white, which in
   all dark is near white on white, 1.09:1: Back to admin could not be seen in
   the one state that stays. 4.89:1 in both now. */
.imperbar .btn { margin-left: auto; background: var(--accent-ink); color: var(--accent-fill); border-color: transparent; }
body.has-imper .content { padding-bottom: 70px; }

/* --- when we are the ones not answering ----------------------------------- */
/* The same shape as the bar above it and a different tone on purpose: that one
   is a state somebody chose, this is one that happened to them. It sits at the
   foot rather than the head so it never pushes the screen somebody is reading,
   and it is a condition rather than an event, so it stays while it is true. */
.offlinebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 61;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 18px;
  /* Opaque in the light content: it is a condition that stays up, and on
     white a glass ground let the table behind it read through its sentence.
     All dark keeps the glass it always had. */
  background: var(--lc-alarm, var(--bad-soft));
  border-top: 1px solid var(--bad);
  color: var(--text);
  font-size: 12.5px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.offlinebar .ofico { display: inline-flex; align-items: center; color: var(--bad); }
.offlinebar .oftxt { line-height: 1.45; color: var(--text-muted); }
.offlinebar .oftxt b { color: var(--text); font-weight: 600; }
.offlinebar svg { width: 14px; height: 14px; }
.offlinebar .btn { margin-left: auto; flex: none; }
body.has-offline .content { padding-bottom: 76px; }
/* In the light content both bars start where the content does, so neither
   covers the foot of the menu, which is where the account, sign out and the
   theme button are. All dark keeps them the full width, as they always were. */
@media (min-width: 901px) {
  .offlinebar, .imperbar { left: var(--lc-bar-left, 0); }
}
@media (max-width: 720px) {
  .offlinebar { flex-wrap: wrap; gap: 8px 12px; }
  .offlinebar .btn { margin-left: 26px; }
}

/* --- a test store ---------------------------------------------------------- */
/* The mark on anything a test store made, beside the word it qualifies. The
   info tone comes from `.badge.info`; this only spaces it and keeps it small
   enough to sit in a row without making the row taller. */
.badge.testtag { padding: 2px 7px; margin-left: 6px; vertical-align: middle; flex: none; }
/* The bar on every screen of a test store. In the page rather than over it,
   under the topbar, so it never covers a button the way a fixed bar would on
   a phone; it stays for as long as the store is in test mode. */
.testbar {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--info);
  border-radius: var(--radius);
  background: var(--info-soft);
  color: var(--text);
  font-size: 12.5px; line-height: 1.45;
}
.testbar .tbico { display: inline-flex; color: var(--info-ink); padding-top: 1px; flex: none; }
.testbar svg { width: 14px; height: 14px; }
.testbar b { font-weight: 600; }

/* --- settings ------------------------------------------------------------- */
.storerow {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas: "ico txt badge" ". rail rail";
  gap: 10px 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.storerow:last-of-type { border-bottom: none; }
.storerow .sg {
  grid-area: ico;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
}
.storerow .stxt { grid-area: txt; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.storerow .stxt b { font-size: 13.5px; }
.storerow .stxt span { font-size: 10.5px; color: var(--text-dim); }
.storerow .badge { grid-area: badge; }
.storerow .srail { grid-area: rail; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.storerow .srail .field { max-width: 150px; }
/* A refusal from Shopify runs to five sentences and belongs on the row, but
   printed in full it makes one row four rows tall. Shut by default, and the
   summary is red because the thing it hides is that a customer was not told. */
/* Where a parcel is, drawn. Beside the chip, never instead of it. Drawn in
   the page by U.parcel(), so there is nothing to load and it inherits the
   theme. It lifts and fades in once, on the rule in design.md: fifteen to
   twenty five pixels, four to six hundred milliseconds, never a bounce. And
   then it is still, because a figure that loops for ever is decoration and
   this one is looked at every day. */
.parcelfig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  animation: parcelin .5s cubic-bezier(.22,.61,.36,1) both;
}
.parcelfig svg { overflow: visible; display: block; }
/* The shadow under each figure and the doormat a delivered box sits on, per
   theme: on white the black shadows were hard grey puddles and the mat the
   heaviest thing in a delivered row. The wheels stay near black on any
   ground. */
.parcelfig .pk-shadow { fill: #000; opacity: var(--parcel-shadow-op); }
.parcelfig .pk-mat { fill: var(--parcel-mat); }
.parcelfig .pk-matline { stroke: var(--parcel-mat-line); }
@keyframes parcelin { from { opacity: 0; transform: translateY(14px); } }

/* One detail answers a hover, and the detail is the state, so the movement
   carries the meaning the drawing already has rather than being laid on top. */
.parcelfig .pk-dash,
.parcelfig .pk-body,
.parcelfig .pk-stamp,
.parcelfig .pk-van,
.parcelfig .pk-wheel,
.parcelfig .pk-tick,
.parcelfig .pk-bang {
  transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .5s cubic-bezier(.22,.61,.36,1);
}
.parcelfig .pk-wheel, .parcelfig .pk-tick, .parcelfig .pk-bang, .parcelfig .pk-stamp {
  transform-box: fill-box;
  transform-origin: center;
}
tr:hover .parcelfig .pk-dash, .parcelrow:hover .pk-dash { transform: translateX(-5px); opacity: .85; }
tr:hover .parcelfig .pk-body, .parcelrow:hover .pk-body { transform: translateX(3px); }
tr:hover .parcelfig .pk-stamp, .parcelrow:hover .pk-stamp { transform: rotate(-4deg) translateY(-2px); }
tr:hover .parcelfig .pk-van, .parcelrow:hover .pk-van { transform: translateX(4px); }
tr:hover .parcelfig .pk-wheel, .parcelrow:hover .pk-wheel { transform: rotate(38deg); }
tr:hover .parcelfig .pk-tick, .parcelrow:hover .pk-tick { transform: scale(1.1); }
tr:hover .parcelfig .pk-bang, .parcelrow:hover .pk-bang { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .parcelfig { animation: none; }
  .parcelfig [class^="pk-"] { transition: none; }
}

/* The phone row for a parcel: the figure, then the four things somebody
   opened this screen for. */
.parcelrow { display: flex; gap: 12px; align-items: flex-start; padding: 2px 0; }
.parcelrow .pr-txt { min-width: 0; flex: 1; }
.parcelrow .pr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Two lines, then an ellipsis. For a carrier's own words on a row in a list
   long enough that row height is what decides how much fits on a screen. */
.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.whydetail { margin-top: 4px; }
.whydetail > summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--bad, #e2402f);
  list-style: none;
}
.whydetail > summary::-webkit-details-marker { display: none; }
.whydetail > summary::before { content: "\25B8 "; }
.whydetail[open] > summary::before { content: "\25BE "; }
.whydetail > div { margin-top: 3px; }

.pick.is-soon { opacity: .55; }
/* A country that already has a price. Ticked because the work is done, shut
   because there is nothing to ask for, and on the grid because taken off it
   the countries somebody set up were simply not there, which reads as a list
   that lost them. */
.pick.is-done {
  opacity: .58;
  cursor: default;
  border-color: var(--border);
  background: transparent;
}
.pick.is-done:hover { border-color: var(--border); }
.pick.is-done input { pointer-events: none; }
.pick.is-done em { color: var(--text-dim); }
.codebox {
  margin: 12px 0;
  padding: 14px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 18px;
  letter-spacing: .12em;
  text-align: center;
}

/* A label, not a status. This was drawn in the accent on a pill of accent, on
   nearly every row of a merchant's tracking list, beside the status chip that
   carries the actual news. The one row worth the red on that screen is the one
   that says Exception, and it was competing with twenty labels. */
.lastmile {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: 1px 5px; border-radius: var(--radius-pill);
}

/* --- parcel block --------------------------------------------------------- */
.parcel { padding: 14px 16px 16px; border-bottom: 1px solid var(--border); }
.parcel:last-child { border-bottom: none; }
.parcel .prow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.parcel .prow b { font-size: 13.5px; }
.parcel .pmeta { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); }
/* The date sits at the far end of the title row, which is where a date goes
   and is the one fact on this card the customer is actually asking about. */
.parcel .pwhen { margin-left: auto; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
/* Whether the customer knows. Its own line, because it is the one thing here
   that can be wrong, and a dot rather than a chip, because most of the time
   it is simply true and a green badge on every parcel is decoration. */
.parcel .ptold {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 8px; font-size: 12px; color: var(--warn-ink);
}
.parcel .ptold i {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--warn); transform: translateY(-1px);
}
.parcel .ptold.is-told { color: var(--text-dim); }
.parcel .ptold.is-told i { background: var(--good); }
.parcel .legs .leg:first-child { border-top: none; }

.flag { font-size: 15px; line-height: 1; margin-right: 2px; }

/* --- merchant pill -------------------------------------------------------- */
.mpill { display: inline-flex; align-items: baseline; gap: 7px; min-width: 0; }
/* The name gives way before the badge does: cut with an ellipsis rather
   than pushing the code out of a narrow column. */
.mpill b { font-weight: 500; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpill .mno {
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.mpill.is-block { flex-direction: column; align-items: flex-start; gap: 3px; }
/* Who to write to, under what the shop is called. */
.mpill .mwho {
  font-size: 11.5px; color: var(--text-muted);
  max-width: 100%; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* The domain is read rather than said, so it is quieter than the name and
   smaller than the person, and it never wraps: forty characters of myshopify
   over two lines is the paragraph this pill exists to avoid. */
.mpill .mwho.mono { font-size: 10.5px; color: var(--text-dim); text-transform: none; letter-spacing: 0; }

/* --- what a category adds ------------------------------------------------- */
/* This was nine cards in a grid, one per category, each carrying a switch in
   its head and its fields in its body. Picking what you sell is the same
   question as picking the countries you sell to, two panels up, so it is the
   same control: a row of `.pick tight` in `.pickgrid.is-choice`, green
   because being chosen is an answer rather than something to act on, and one
   Save at the end rather than a write on every press.

   What is left here is the other half of it: one line per category that is
   actually on, with what that category adds to every price and the way to
   change it. At most four of these, against nine cards of chips for the eight
   categories a shop does not sell. */
.catline {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.catline:last-of-type { border-bottom: 1px solid var(--border); }
.catline > b { font-size: 12.5px; min-width: 120px; }
.catline .fieldchips { margin-top: 0; flex: 1; }
.catline .btn { margin-left: auto; flex: none; }
.fieldchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.fchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 6px 3px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card);
  font-size: 11.5px;
  color: var(--text-muted);
}
/* Dashed because these five cannot be taken off, not because they are less
   true than the rest. At --text-dim they measured 3.08:1 on the card, which is
   a fact somebody has to lean in to read: the dashed border is what says they
   are fixed, and the colour goes back to the one every other chip uses. */
.fchip.is-base { color: var(--text-muted); border-style: dashed; }
.fchip button {
  border: none; background: none; cursor: pointer;
  color: var(--text-dim); font-size: 13px; line-height: 1;
  padding: 0 2px; border-radius: 50%;
}
.fchip button:hover { color: var(--bad); background: var(--bad-soft); }
.chip.is-pick { cursor: pointer; border-color: var(--border-strong); }
.chip.is-pick:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }

/* --- carrier chain -------------------------------------------------------- */
.legs { display: flex; flex-direction: column; margin-top: 10px; }
.leg {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
}
.leg .lrole {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); padding-top: 2px;
}
.leg.is-last .lrole { color: var(--accent-text); }
.leg .lbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.leg .lwho { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.leg .lname { font-weight: 500; }
.leg .lwho .copyable { font-size: 11.5px; color: var(--text-muted); }
/* What the carrier said, which is a sentence and was being cut to fit a
   column. It wraps to two lines and stops there. */
.leg .lwhen {
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-muted); min-width: 0;
}
.leg.is-pending .lname, .leg.is-pending .lwhen { font-style: normal; }
@media (max-width: 760px) {
  .leg { grid-template-columns: 1fr; gap: 4px; }
}

/* --- inbox ---------------------------------------------------------------- */
.inboxgrid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; align-items: start; }
/* The list follows the window the way the conversation beside it does. At a
   fixed 640px it stopped short on a big monitor while the pane next to it
   ran on to 900, which is the console's own queue ending early on the one
   screen with room for more of it. */
.thlist { display: flex; flex-direction: column; max-height: clamp(360px, 68vh, 900px); overflow-y: auto; }
.throw {
  display: flex; gap: 10px; align-items: flex-start;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background var(--fast);
}
.throw:hover { background: var(--surface-1); }
.throw.is-active { background: var(--surface-2); }
.throw.is-active::before {
  content: ''; position: absolute; left: 0; width: 2px; height: 34px; background: var(--accent);
}
.throw > .avat { margin-top: 1px; }
.throw > .pthumb { margin-top: 1px; }
.throw .ttxt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.throw .ttop { display: flex; align-items: baseline; gap: 8px; }
.throw .ttop b { font-size: 12.5px; }
/* The name wins the room. Flex shrinks both by their own width, so the
   longer of the two loses the most: a 340px list read "Lumiere…  ECS-…",
   with the one thing that identifies the row cut and a code nobody scans a
   chat list by cut beside it. The code gives up its width first. */
.throw .tmer { font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 6 auto; }
.throw .ttime { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-dim); flex-shrink: 0; }
.throw .tprev { font-size: 12px; color: var(--text-dim); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.throw .ttop b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
/* `.ttxt span` is the tour's rule and dims every span inside one, so the
   first line of every row here was drawn at half strength: the name, and on
   a question the product. Said again for this list. */
.throw .ttop { color: var(--text); }
.throw .tabout .tabn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 0 auto; max-width: 55%; color: var(--text-muted); }
/* Who asked wins the room over where the quote stands: the state gives way. */
.throw .tabout .tabn + em { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.throw .tabout .tmiss, .throw .tabout .badge { margin-left: auto; flex-shrink: 0; }
/* A grid child is as wide as its content unless it is told otherwise, so a
   conversation with a long unbroken line in it pushed the card past the
   screen and took the page sideways with it. Measured at 390px. */
.inboxgrid > * { min-width: 0; }
@media (max-width: 900px) { .inboxgrid { grid-template-columns: 1fr; } }
/* On a phone the merchant number goes. The name, what is waiting and when are
   what the row is scanned for, and four things on that width wrapped the name
   over two lines and cut the number to ECS- anyway. */
@media (max-width: 720px) { .throw .tmer { display: none; } }

/* What the row is about, under the name. The product first, because that is
   what is being asked about, and what the quote is doing after it in the
   quiet face: one is the subject and the other is its state. */
.throw .tabout {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
  min-width: 0;
}
.throw .tabout { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.throw .tabout em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* The same thing on the conversation itself, with the one press that opens it.
   A question about a product arrives with the thing it is about on another
   screen, and remembering the name and going to find it in the queue is the
   whole of what this removes. */
.ibabout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}
.ibabout .ibtxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ibabout .ibtxt b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibabout .ibtxt span { font-size: 11.5px; color: var(--text-dim); }
.ibabout .btn { flex-shrink: 0; }

/* --- dispute cards -------------------------------------------------------- */
.dcard { cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.dcard:hover { border-color: var(--border-strong); background: var(--card-hover); }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
.dmain .dtext { margin: 8px 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.dside { border-left: 1px solid var(--border); padding-left: 18px; }
.evgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.ev {
  display: flex; align-items: center; gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 11px;
}
.ev svg { color: var(--text-dim); flex-shrink: 0; }
/* A tile that opens the photo is a button, and has to feel like one. */
button.ev {
  width: 100%; text-align: left; color: inherit;
  font-family: inherit; font-size: 11px; cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}
button.ev:hover { border-color: var(--border-strong); background: var(--card-hover); }
@media (max-width: 900px) {
  .drow { grid-template-columns: 1fr; }
  .dside { border-left: none; border-top: 1px solid var(--border); padding: 12px 0 0; }
}
.proofbox {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 14px;
  text-align: center;
}
.proofbox svg { color: var(--text-dim); }
.proofbox b { font-family: var(--font-mono); font-size: 12px; }
.proofbox span { font-size: 11.5px; color: var(--text-dim); }

/* --- upload row ----------------------------------------------------------- */
.uploadrow { margin-bottom: 12px; }
.uploadrow input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text-muted);
  font-size: 12.5px;
}
.uploadrow input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

/* --- console bits --------------------------------------------------------- */
.metric { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; font-size: 12.5px; color: var(--text-muted); }
.metric b { font-size: 15px; color: var(--text); }
.qhead {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 12px;
}
.qhead .eyebrow { margin: 0 0 3px; }
/* Four columns of a fixed width, so anything in one of them has to give way
   rather than run into the next: a shop called by its myshopify domain sat on
   top of the variant list beside it. The name is cut with the whole of it on
   the title; a list of variants wraps, because a list is meant to be read to
   the end. */
.qhead > div { min-width: 0; }
.qhead b { font-size: 13px; display: block; min-width: 0; }
.qhead b.mono { overflow-wrap: anywhere; }
/* A flex item will not shrink below its own content unless it is told it may,
   which is why the name went on running into the column beside it with the
   ellipsis rule already on it: min-width is auto by default, and hiding the
   overflow of a box that never got narrower hides nothing. */
.qhead .mpill { display: flex; max-width: 100%; }
.qhead .mpill b, .qhead .mpill .mwho {
  min-width: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shiptable input { height: 30px; padding: 0 8px; text-align: right; max-width: 120px; }
/* Under a column head, what the number in that column is. A grid of money
   with no unit on it is a grid somebody has to be told about once and then
   remember. */
.shiptable .thsub {
  display: block; font-size: 9px; letter-spacing: .06em;
  color: var(--text-dim); font-weight: 400; margin-top: 2px;
}
.cellwrap { position: relative; display: inline-block; }
.cellwrap input.is-sel { border-color: var(--accent-line); background: var(--accent-soft); }
.cellwrap input.is-filled { animation: fillflash 500ms var(--ease); }
@keyframes fillflash {
  from { background: var(--accent-soft); border-color: var(--accent); }
  to { background: var(--surface-1); border-color: var(--border); }
}
/* The currency on the box the number goes in, rather than in a sentence over
   the grid: a line saying every price is in euros is read once and then not
   again, and the box is where somebody is looking. */
.cellwrap.is-money input { padding-left: 20px; }
.cellcur {
  position: absolute; left: 7px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--text-dim); pointer-events: none;
}

/* A size to tick, with the thing itself on it. A colourway is what a factory
   cannot supply, and "Navy / 2XL" is not what anybody recognises it by. */
/* The picture is in the pill rather than beside it: a colourway is what a
   factory cannot supply, and a thumbnail sitting outside the border reads as
   a stray image rather than as part of the thing being ticked. It grows under
   the pointer, because 30px says which of two navies this is and 60px says
   what the seam looks like. */
.varpick.has-thumb span {
  display: inline-flex; align-items: center; gap: 8px;
  padding-left: 5px;
}
.varpick.has-thumb .pthumb {
  width: 30px; height: 30px; border-radius: 5px; flex: 0 0 auto;
  transition: transform var(--fast), box-shadow var(--fast);
  /* Clear of the pill rather than over it: the name beside it is what says
     which variant this is, and a preview that covers the name is a preview
     of nothing. The lift is in the pill's own units, before the scale, so
     the square ends up entirely above the row it came out of. */
  transform-origin: left bottom;
}
.varpick.has-thumb .pthumb svg { width: 18px; height: 18px; }
.varpick.has-thumb:hover { z-index: 3; }
.varpick.has-thumb:hover .pthumb {
  transform: scale(2.4) translateY(-17px);
  box-shadow: var(--lc-shadow, 0 6px 18px rgba(0, 0, 0, .45));
}
@media (prefers-reduced-motion: reduce) {
  .varpick.has-thumb .pthumb { transition: none; }
}

/* A section on the price form, said once and plainly. It was an eyebrow with
   a paragraph under it explaining what the section was for, to a floor that
   is onboarded once and then works this form all day. */
.qsection {
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  margin: 18px 0 10px; color: var(--text);
}

/* Only there once somebody has said the requested thing cannot be made. */
.altoffer {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 12px 0; background: var(--surface-1);
}
.altoffer .field:last-child { margin-bottom: 0; }

/* What the merchant wrote, five lines of it, with the rest behind a press.
   These run to a screenful and more, above the grid somebody opened the form
   to fill in. The press is only drawn where something is actually hidden,
   which is measured after the card is on the screen. */
/* Cut by height rather than by `-webkit-line-clamp`, which clamps the inline
   content of one box and quietly does nothing to a note made of a paragraph
   and a list, which is what these are. Five lines of the card's own line
   height, plus the padding it draws, and the last of them fades so the cut
   reads as more text rather than as a sentence that stops. */
.notewrap.is-clamped .notecard {
  max-height: calc(5 * 1.65em + 26px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
}
.notemore { margin-top: 6px; }

.fillgrip {
  position: absolute;
  right: -3px; bottom: -3px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  cursor: crosshair;
  transition: opacity var(--fast);
}
.cellwrap:hover .fillgrip,
.cellwrap:focus-within .fillgrip { opacity: 1; }
.shiptable td { padding: 6px 10px; }
@media (max-width: 720px) { .qhead { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- definition list for product details ---------------------------------- */
.deflist { display: flex; flex-direction: column; }
.defrow {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.defrow:last-child { border-bottom: none; }
.defrow .dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding-top: 2px; }
.defrow .dd { color: var(--text); line-height: 1.55; }
/* The warehouse's reason beside a detail they could not supply. Under the pill
   rather than after it, because a reason is a sentence and a pill is two
   words: on one line the sentence pushes the value column into the label. */
.defrow .dwhy { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.45; color: var(--text-dim); }
@media (max-width: 720px) { .defrow { grid-template-columns: 1fr; gap: 4px; } }

.addr { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 6px 0 12px; }
/* The address and the map beside it. The map takes what is left rather than a
   share, because the address is a fixed number of short lines and everything
   past it was empty. Under that width the two stack and the map goes first,
   since on a phone it is the half that says where at a glance. */
.shipsplit { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: flex-start; }
/* Wrapped rather than a media query. What decides whether these two fit side
   by side is the width of the column they are in, and that column is a
   fraction of the page: a breakpoint on the window would put them side by
   side on a narrow card and stack them on a wide one. */
/* The map with the address under it, which is how an address is drawn
   everywhere somebody has seen one before. */
.shipwhere { flex: 2 1 13rem; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.shipwhere .addr { margin: 0; }
.shipmap { min-width: 0; }
/* The two things that are not the address. Label over value rather than a
   row: in a column this narrow a right aligned value leaves a tracking
   number three characters of room, and these are looked up rather than
   read. */
.shipfacts { flex: 1 1 9rem; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.shipfacts .sf { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* The label by its own class rather than by being the first span. `.sftrack`
   is a span in the same place, and as `> span` it was taking the label's
   uppercase with it: a carrier called Tongyou printed TONGYOU. */
.shipfacts .sfl {
  font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim);
}
.shipfacts .sf > b { font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.shipfacts .sf > b.dim { font-weight: 400; }
.shipfacts .copyable { font-size: 12px; max-width: 100%; }
.shipfacts .copyable .mono { overflow-wrap: anywhere; }
/* One parcel per line, with whose number it is under it. */
.sftrack { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sftrack + .sftrack { margin-top: 7px; }
.sftrack em { font-style: normal; font-size: 10.5px; color: var(--text-dim); }
.crumb a:hover { color: var(--accent-text); }

/* --- attention list ------------------------------------------------------- */
.attlist { display: flex; flex-direction: column; }
.attrow {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background var(--fast);
}
.attrow:last-child { border-bottom: none; }
.attrow:hover { background: var(--surface-1); }
.attrow .aico {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--warn-soft); color: var(--warn);
}
.attrow .atxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.attrow .atxt b { font-size: 13px; font-weight: 500; }
.attrow .atxt span { font-size: 12px; color: var(--text-dim); }
.attrow .acount {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.attrow svg:last-child { width: 14px; height: 14px; color: var(--text-dim); flex-shrink: 0; }

.bigmoney {
  font-size: 30px; font-weight: 700; letter-spacing: -.03em;
  margin: 4px 0 12px;
}
.bigmoney.is-bad { color: var(--bad); }
.btn.block { width: 100%; }

/* --- flow bits: mini order list, pick grids, comparison -------------------- */
.ordermini { display: flex; flex-direction: column; margin-bottom: 12px; }
.omrow {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.omrow:last-child { border-bottom: none; }
.omrow .muted { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omrow b { margin-left: auto; color: var(--text); }
.omrow.dim { color: var(--text-dim); }
/* One line, cut rather than wrapped. A cell that wraps changes the height of
   its row, and a table whose rows are all different heights is one nobody can
   scan: the console works three hundred parcels in one list. */
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linerow b.is-short { color: var(--bad); }

/* A line that does not match is the one worth looking at, so it is the only
   one that carries any colour. The rest of the comparison stays quiet. */
tr.is-off td { background: var(--bad-soft); }
td.is-short, .num.is-short { color: var(--bad); }
/* Money arriving on a balance, on the log the console watches. Green because
   it is the only good news in that column and the eye has to tell the two
   apart at a glance; red is already what leaves. */
.lgamt.is-short { color: var(--bad); }
.lgamt.is-in { color: var(--good-ink); }

/* A chip that opens the file is a button, and has to say so. */
button.filechip { cursor: pointer; font-family: inherit; }
button.filechip:hover { border-color: var(--border-strong); color: var(--text); }

/* what was quoted next to what was measured */
.qctable td { vertical-align: middle; }
.qctable input[type="text"] {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
}
.qctable input[type="text"]:focus { outline: none; border-color: var(--border-focus); }

/* the ladder as the merchant reads it: a step per quantity */
.tierrow { display: flex; gap: 8px; flex-wrap: wrap; }
.tiercell {
  display: flex; align-items: baseline; gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-hover);
}
.tiercell .tq { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.tiercell b { font-size: 14px; }
.tiercell .tu { font-size: 11px; color: var(--text-dim); }

/* the volume ladder, three short steps side by side */
.tiergrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* A step is two answers now, how many pieces and what they cost, so each one
   is a pair rather than a single box with the quantity written into its
   label. */
.tierstep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: end; }
@media (max-width: 640px) { .tiergrid { grid-template-columns: 1fr; } }

/* The merchant chips above the console inbox are gone, and their stylesheet
   with them: they were a filter over a list that is already one row per
   merchant, and pressing one hid every conversation but that one. */

/* the same count on the thread it belongs to */
/* How many messages are waiting on a reply, and it says so in as many words:
   a bare number here was read as unread, and unread is not what it counts. */
.tmiss {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .04em; white-space: nowrap;
  padding: 1px 7px; border-radius: var(--radius-pill);
  /* A tint rather than a filled red: it is on nearly every row of a busy
     queue, and the filled accent on every row is a column of alarm nobody
     reads. The words carry it. */
  background: var(--accent-soft); color: var(--accent-ink-on-soft);
}

/* --- waiting on a reply ---------------------------------------------------- */
/* Not a banner: a banner tells you something, this hands you the four people
   who are waiting and how long they have been. */
/* Not a banner, and built like one anyway: this had the whole recipe copied
   out by hand, so it drifted the moment the banner changed. Same glass, same
   radius, its own accent rim. */
.pingbar {
  --bt: var(--accent);
  padding: 13px 15px 15px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  background:
    color-mix(in srgb, var(--bt) 7%, transparent),
    color-mix(in srgb, var(--surface-2) 94%, transparent);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--lc-none, inset 0 1px 0 var(--glass-lip), var(--glass-shadow));
}
.pinghead { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.pinghead b { font-size: 13.5px; letter-spacing: -.012em; }
.pinghead .hint { margin: 0; }
.pinghead .btn { margin-left: auto; }
/* Where each of them is waiting, one link per place, because each kind of
   conversation lives where its object does. */
.pinghead .pingwhere { margin-left: auto; font-size: 12.5px; color: var(--text-dim); }
.pingwhere a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.pingwhere a:hover { color: var(--accent-text); border-bottom-color: var(--accent-line); }
.pingdot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.pingrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pingcard {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 3%, transparent);
  color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
  min-width: 0;
  transition: background var(--fast), border-color var(--fast), transform var(--fast);
}
.pingcard:hover { background: color-mix(in srgb, var(--text) 6%, transparent); border-color: var(--border-strong); transform: translateY(-2px); }
.pingcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pctop { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 600; }
.pcage { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; color: var(--accent-text); white-space: nowrap; }
.pcbody { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pckind { font-family: var(--font-mono); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; color: var(--text-dim); }
@media (prefers-reduced-motion: reduce) { .pingdot { animation: none; } }
@media (max-width: 900px) { .pingrow { grid-template-columns: 1fr; } }

/* --- the work board -------------------------------------------------------- */
/* The console opens on what is waiting, and a count on its own is a number to
   be believed rather than work to be recognised. So every card carries the
   things themselves: the products waiting for a price, the parcels waiting to
   be picked. A face on the pile is what makes somebody press it, and pressing
   one of the faces opens that one rather than the queue behind it. */
/* Five fixed columns rather than auto-fit: a queue that wraps on its own
   leaves one card alone on a second row, which reads as the odd one out
   rather than as the fifth of five. */
/* Six queues, and six divides into three and into two, so a narrower
   screen never leaves one card alone on a row reading as the odd one
   out. That is what the five was protecting, rather than the five. */
.workboard { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 1240px) { .workboard { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.workcard {
  display: flex; flex-direction: column; gap: 12px;
  padding: 15px 16px 14px;
  border-radius: 19px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card-hover), var(--card));
  box-shadow: var(--shadow-card);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
  min-width: 0;
  transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.workcard:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--glass-shadow); }
.workcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Nothing waiting is a state worth seeing at a glance rather than reading. */
.workcard.is-clear { background: var(--card); }
.workcard.is-clear .wc-n { color: var(--text-dim); }
.workcard.is-late { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.wc-top { display: flex; align-items: flex-start; gap: 10px; }
.wc-icon {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text-muted);
}
.wc-icon svg { width: 15px; height: 15px; }
.workcard.is-late .wc-icon { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 34%, transparent); }
.wc-n { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1; margin-left: auto; }
.wc-label { font-size: 12.5px; font-weight: 600; letter-spacing: -.012em; }
.wc-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

.wc-thumbs { display: flex; align-items: center; gap: 6px; min-height: 42px; overflow: hidden; }
.wc-thumb {
  display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 11px;
  transition: transform var(--fast);
}
.wc-thumb:hover { transform: translateY(-2px); }
.wc-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wc-thumb .pthumb { width: 40px; height: 40px; border-radius: 11px; }
.wc-thumb .pthumb svg { width: 28px; height: 28px; }
.wc-more {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  border: 1px dashed var(--border-strong);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}
.wc-none { font-size: 11.5px; color: var(--text-dim); align-self: center; }

.wc-foot { display: flex; align-items: center; gap: 8px; }
.wc-age { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--text-dim); }
.workcard.is-late .wc-age { color: var(--accent-text); }
/* Six days or more on the oldest thing in the queue, on the same ladder the
   orders list works to. Amber rather than the accent: the accent is for a
   promise that has actually been missed, which is what `is-late` says, and two
   reds beside each other is neither of them standing out. */
.wc-age.is-heavy { color: var(--warn-ink); }
.workcard.is-late .wc-age.is-heavy { color: var(--accent-text); }
.wc-go { margin-left: auto; font-size: 11.5px; color: var(--text-muted); }
.workcard:hover .wc-go { color: var(--text); }
/* Two cards to a phone screen, and a card that narrow holds two faces and the
   count of the rest. A third would be cut in half by the edge, which is worse
   than not drawing it. */
@media (max-width: 720px) {
  .workboard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wc-n { font-size: 24px; }
  .wc-thumbs:has(.wc-more) .wc-thumb:nth-of-type(3) { display: none; }
}

/* --- the fulfil sheet ------------------------------------------------------ */
/* What it costs and what it leaves, said once, before any of the detail. */
.payhead {
  padding: 16px 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-hover), var(--card));
  margin-bottom: 12px;
}
.payhead .ph-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.payhead .ph-num { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; margin-top: 6px; }
.payhead .ph-count {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.paybar { display: flex; height: 10px; margin-top: 16px; border-radius: 6px; overflow: hidden; background: var(--surface-1); }
.paybar > div { min-width: 3px; }
.pb-spent { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); }
.pb-left { background: color-mix(in srgb, var(--good) 42%, transparent); }
.pb-missing {
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--bad) 55%, transparent) 0 2px, transparent 2px 7px),
    color-mix(in srgb, var(--bad) 14%, transparent);
}
.pb-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 11px; font-size: 12px; color: var(--text-muted); }
.pb-legend span { display: flex; align-items: center; gap: 7px; }
.pb-legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.pb-legend i.spent { background: var(--accent); }
.pb-legend i.left { background: color-mix(in srgb, var(--good) 42%, transparent); }
.pb-legend i.missing { background: color-mix(in srgb, var(--bad) 55%, transparent); }

/* the split of the charge, kept apart from the list it came from */
.receipt { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.receipt > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.receipt > div:last-child { border-bottom: 0; }
.receipt span { color: var(--text-muted); }
.receipt b { font-variant-numeric: tabular-nums; }
.receipt .is-total { background: color-mix(in srgb, var(--text) 3%, transparent); }
.receipt .is-total span { color: var(--text); font-weight: 500; }
.receipt .is-total b { font-size: 15px; }

/* every order that is about to leave, with the thing itself beside it */
/* a list longer than the sheet scrolls, and says so by fading out */
.ordwrap { position: relative; }
.ordwrap.is-more::after {
  content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 42px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(180deg, transparent, var(--surface-1));
  pointer-events: none;
}
.ordlist { max-height: 236px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.ordrow {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
.ordrow:last-child { border-bottom: 0; }
.ordrow .or-txt { min-width: 0; flex: 1; }
.ordrow .or-who { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ordrow .or-meta { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.ordrow .or-amt { font-variant-numeric: tabular-nums; font-size: 13px; }
.ordlist .pthumb { width: 30px; height: 30px; border-radius: 8px; }
.ordlist .pthumb svg { width: 21px; height: 21px; }

/* Two states of one product, side by side. The card stays neutral: the amber
   belongs on the field that moved, not on the whole thing. */
.cmprow {
  padding: 12px 13px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-hover), var(--card));
  margin-bottom: 8px;
}
.cmprow .cmphead { display: flex; align-items: center; gap: 11px; }
.cmprow .cmptitle { font-size: 13px; font-weight: 600; }
.cmprow .cmpsub { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: .08em; margin-top: 2px; }
.cmprow .cmphead .vpill { margin-left: auto; }


/* --- a setting worth saying out loud ---------------------------------------- */
/* Not a banner: nothing is wrong. One line, on the merchant's own screen,
   saying that orders go out without them and what the ceiling is. */
.autoline {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--good) 6%, transparent);
}
.autoline b { font-size: 12.5px; letter-spacing: -.01em; }
.autoline .hint { margin: 0; }
.autoline .btn { margin-left: auto; }
@media (max-width: 720px) { .autoline .btn { margin-left: 0; } }

/* --- the split bar --------------------------------------------------------- */
/* One bar, cut into what it is made of, with the legend under it. The tones
   are the ones the chips already use for these states, so a parcel is the
   same colour on the bar as it is on its own row, and red is only ever the
   part somebody has to do something about. */
.viz-split { display: block; }
.vsp-bar {
  display: flex; gap: 3px; height: 14px;
  border-radius: var(--radius-pill); overflow: hidden;
}
.vsp-bar i {
  /* A floor, because the part somebody has to act on is usually the smallest
     one: two exceptions against two hundred deliveries is a hairline nobody
     sees, and the whole point of drawing it is that it is seen. The distortion
     is a few pixels on a bar a thousand wide, and the legend carries the exact
     number beside every part anyway. */
  display: block; height: 100%; min-width: 10px;
  border-radius: 3px;
  background: var(--vc, var(--text-dim));
  transform-origin: left center;
  animation: vspgrow .6s var(--ease) both;
}
.vsp-bar i[data-href] { cursor: pointer; }
.vsp-bar i[data-href]:hover { filter: brightness(1.25); }
@keyframes vspgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .vsp-bar i { animation: none; } }

.vsp-bar i.is-good, .vsp-dot.is-good { --vc: var(--good); }
.vsp-bar i.is-accent, .vsp-dot.is-accent { --vc: var(--accent); }
/* Out for delivery is the good news at the end of the journey, not an alarm.
   Red on this bar belongs to the one part somebody has to act on, and two
   reds beside each other is neither of them standing out. */
.vsp-bar i.is-info, .vsp-dot.is-info { --vc: var(--info); }
.vsp-bar i.is-warn, .vsp-dot.is-warn { --vc: var(--warn); }
.vsp-bar i.is-bad, .vsp-dot.is-bad { --vc: var(--bad); }
.vsp-bar i.is-neutral, .vsp-dot.is-neutral { --vc: color-mix(in srgb, var(--text) 34%, transparent); }
.vsp-bar i.is-none { --vc: color-mix(in srgb, var(--text) 8%, transparent); animation: none; }

.vsp-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; }
.vsp-item {
  display: flex; align-items: baseline; gap: 7px;
  color: var(--text); text-decoration: none;
  padding: 2px 0;
}
a.vsp-item:hover .vsp-l { color: var(--text); }
a.vsp-item:hover b { text-decoration: underline; text-underline-offset: 3px; }
.vsp-item.is-zero { opacity: .45; }
.vsp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--vc, var(--text-dim)); align-self: center; }
.vsp-item b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.vsp-l { font-size: 12px; color: var(--text-muted); }
.vsp-p { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); }
.vsp-none { font-size: 12px; color: var(--text-dim); }
@media (max-width: 720px) { .vsp-legend { gap: 6px 16px; } }

.cmprow .cmpcols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin-top: 11px;
}
.cmprow .cmpside {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--text) 3%, transparent);
  min-width: 0;
}
.cmprow .cmpside.is-now {
  border-color: color-mix(in srgb, var(--warn) 30%, transparent);
  background: color-mix(in srgb, var(--warn) 7%, transparent);
}
.cmprow .cmpside .dim { font-family: var(--font-mono); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.cmprow .cmpside b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.cmprow .cmpside.is-now b { color: var(--warn-ink); }
/* the arrow is drawn rather than typed, so it lines up with the two panes */
.cmprow .cmparrow { position: relative; height: 1px; background: var(--border-strong); }
.cmprow .cmparrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  transform: rotate(45deg);
}
@media (max-width: 640px) {
  .cmprow .cmpcols { grid-template-columns: 1fr; gap: 8px; }
  .cmprow .cmparrow { display: none; }
}

.pickgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pickgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}
.pick:hover { border-color: var(--border-strong); }
.pick.is-on { border-color: var(--accent-line); background: var(--accent-soft); }
/* A choice this account cannot make yet: drawn, so it is known to exist, and
   not pressable. */
.pick.is-off { opacity: .55; cursor: not-allowed; }
/* Picking a country is not an action, it is an answer, and red is the colour
   this product spends on the one thing worth doing something about. Green
   says chosen without asking to be looked at, and the ones left grey stay
   plainly unchosen rather than merely quieter. */
.pickgrid.is-choice .pick.is-on {
  border-color: var(--picked-line);
  background: var(--picked-soft);
}
.pickgrid.is-choice .pick.is-on input { accent-color: var(--picked); }
.pick input { accent-color: var(--accent); margin-top: 1px; }
.pick span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick b { font-weight: 600; }
.pick em { font-style: normal; font-size: 11.5px; color: var(--text-dim); line-height: 1.45; }
/* The listing, on the screen that prices it. A row that scrolls rather than a
   grid that wraps: how many pictures a merchant put on a product is their
   business, and twelve of them must not push the price grid off the screen on
   the one form somebody works all day. */
/* What the two answers are promised in, as two marks rather than a paragraph.
   Toned rather than neutral, because the pair is a comparison: the fast one is
   what ticking nothing gets you and the slower one is what each box costs, and
   a reader who takes only the colour has still taken the point. The ink is the
   theme-aware pair rather than the raw tone, on the rule that the ground
   decides the ink. */
.promise { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.promise .ptag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px; line-height: 1.3;
  white-space: nowrap;
}
.promise .ptag b { font-weight: 600; }
/* The line and the word, not a fill. Measured both ways in both themes: on
   its own tint the light green reads 4.21 against it, under AA, which is the
   failure this build already met once on the menu badge. The ink is tuned
   against the card, so the card is what it sits on, and the tone is carried
   by the border and the word. */
.promise .ptag.is-good { border-color: var(--good-soft); color: var(--good-ink); }
.promise .ptag.is-warn { border-color: var(--warn-soft); color: var(--warn-ink); }
.shots { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.shot {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px;
  width: 84px; text-decoration: none; color: var(--text-muted);
}
.shot img {
  width: 84px; height: 84px; object-fit: cover;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-1);
}
.shot:hover img { border-color: var(--border-strong); }
/* One picture standing for the set. Bigger than a strip tile, because it is
   now the only thing saying what the object is, and the count sits on it
   rather than beside it: a number in the corner of a photograph is read as
   "there are more of these", and the same number as a label beside it is
   read as a caption. */
/* A row of what the merchant is selling, as wide as the panel. Only what fits
   on one line is drawn, and the last of those carries how many are behind it,
   so the strip is always one line whatever the width. */
.shots.is-row { flex-wrap: wrap; gap: 8px; }
.shots.is-row .shot {
  position: relative;
  width: 108px; height: 108px;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.shots.is-row .shot img {
  width: 108px; height: 108px;
  transition: transform var(--fast), border-color var(--fast);
}
.shots.is-row .shot .shotmore {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .52);
  color: #fff;
  font-family: var(--font-mono); font-size: 15px; letter-spacing: .02em;
  transition: background var(--fast);
}
.shots.is-row .shot:hover .shotmore { background: rgba(0, 0, 0, .38); }
.shots.is-row .shot:focus-visible img { border-color: var(--accent); }
.chiprow { display: flex; gap: 6px; flex-wrap: wrap; }

/* What the merchant wrote, on the form that answers them. It was a grey line
   under the photographs, which is where a special request goes unread until
   the price has already been typed. */
.notecard { padding: 12px 14px; margin-top: 6px; border-left: 2px solid var(--accent); }
.notecard .ctext { margin: 0; }
/* What somebody typed on several lines is read on several lines: a price per
   country per quantity run together into one paragraph is the same note with
   its structure taken out. */
.ctext.is-lines { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Which sizes a re-quote is actually about.

   A product comes back when the merchant adds a colour or Shopify moves a size
   underneath a price, and the sheet in front of the warehouse is then mostly
   the one they filled in last time. Naming the rows that are new is the
   difference between reading thirty sizes and reading two.

   One line that wraps rather than a table: it is a set of names, and the
   marked ones have to stand out of the rest rather than be found by scanning a
   column. A priced one is quiet on purpose, because it is the background. */
.sizetags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.sizetag {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 10px; font-size: 12px; color: var(--text-muted);
}
.sizetag.is-priced { opacity: .55; }
.sizetag.is-new { border-color: color-mix(in srgb, var(--good) 40%, transparent); color: var(--text); }
.sizetag.is-changed { border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--text); }
.badge.sm { font-size: 9.5px; padding: 1px 6px; }

/* Which colour a photograph is of. Their quote sheet carries one per
   colourway and every file used to land in a heap on the first variant, so a
   merchant looking at the navy read the picture of the black one. One row per
   file, and the name is cut rather than wrapped: a list where every row is a
   different height is a list the eye cannot walk. */
.fvlist { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.fvrow { display: flex; align-items: center; gap: 10px; }
.fvrow .fvname { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.fvrow select { flex: 0 0 auto; max-width: 46%; }

/* A detail that is rows and columns. `size_table` was type `file`, so a size
   chart reached the merchant as a photograph: nothing they could copy a
   measurement out of, translate, or put in their own listing. It is a table
   now, on both sides, and it gets the width of the card rather than the value
   column of a definition row.

   The first column is the size and the rest are numbers, which is what every
   size chart is, so the first is left and the rest are right and monospaced:
   a column of figures that do not line up is a column nobody can compare. */
.dtblock { padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.dtblock .eyebrow { margin-bottom: 8px; }
.dtable { width: 100%; }
.dtable th, .dtable td { padding: 6px 10px; }
.dtable th:first-child, .dtable td:first-child { padding-left: 0; }

/* The preview under the paste box on the price form. It is the point of that
   control rather than decoration: a column that landed in the wrong place is
   invisible in a textarea and obvious in a table. */
.tprev { margin-top: 8px; }
.tprev:empty { display: none; }

/* Adding a detail nobody asked for: a category, and what is left in it. */
.addfields { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.addrow { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 6px 0 8px; }
.addrow .field { margin: 0; min-width: 200px; }
.addrow .chiprow { flex: 1; min-width: 220px; }
.cmpgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 720px) {
  .pickgrid, .pickgrid.two, .cmpgrid { grid-template-columns: 1fr; }
}


/* a parcel's line sits between its header and its carriers */
.parcel .prail { margin: 18px 2px 4px; }

/* --- instruments ---------------------------------------------------------- */
/* Charts share one ink: the series is drawn in the text colour at low opacity
   and red is kept for the one mark that is worth looking at. */
.viz-spark, .viz-area { color: var(--text); }
/* The hard guarantee, whatever the numbers turn out to be. An instrument
   drawing outside its own box is the one failure that makes a whole screen
   look broken, and no amount of care about scales is a substitute for the
   box actually holding. */
.viz-spark, .viz-area, .viz-dial { overflow: hidden; }
/* And the width has to come from the card rather than from the viewBox. An
   svg with a viewBox, a set height and no width takes its width from the
   aspect ratio, which is a fixed number of pixels: wider than its card it
   spills over the one beside it, narrower it stops short of the edge. */
.viz-spark, .viz-area { display: block; width: 100%; }
.vline { stroke: color-mix(in srgb, currentColor 72%, transparent); }
.vline.is-accent { stroke: var(--accent); }
.vdot { fill: currentColor; }
.vdot.is-faint { fill: color-mix(in srgb, currentColor 34%, transparent); }
.vdot.is-accent { fill: var(--accent); }
.vdot.is-peak { fill: var(--text); stroke: var(--accent); stroke-width: 1.5; }
.vring { fill: none; stroke: color-mix(in srgb, var(--accent) 48%, transparent); stroke-width: 1; }
.vhatch { stroke: color-mix(in srgb, currentColor 16%, transparent); }
.vgrid { stroke: color-mix(in srgb, currentColor 7%, transparent); stroke-width: 1; }
.vaxis { fill: var(--text-dim); font-size: 10.5px; font-family: var(--font-display); }

/* figure with its own shape behind it */
.viz-tile {
  display: flex; flex-direction: column;
  padding: 16px 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-hover), var(--card));
}
.viz-tile.is-link { cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.viz-tile.is-link:hover { border-color: var(--border-strong); }

.vt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vt-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim); }
.vt-num { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin-top: 10px; }
.vt-unit { font-size: 14px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; margin-left: 5px; }
.vt-spark { margin-top: 12px; }
.vt-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 11.5px; color: var(--text-muted); }
.vt-foot span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-foot span:last-child { color: var(--text-dim); flex: none; }
.vt-num { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpill {
  font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--vc, var(--text-muted)) 24%, transparent);
  background: color-mix(in srgb, var(--vc, var(--text-muted)) 12%, transparent);
  /* The mark is the tone and the word is the ink, which are the same colour
     in the dark theme and not on white. */
  color: var(--vc-ink, var(--vc, var(--text-muted)));
  white-space: nowrap;
}
.vpill.up { --vc: var(--good); --vc-ink: var(--good-ink); }
.vpill.down { --vc: var(--bad); --vc-ink: var(--bad-ink); }
.vpill.warn { --vc: var(--warn); --vc-ink: var(--warn-ink); }
.vpill.hot { --vc: var(--accent); --vc-ink: var(--accent-ink-on-soft); }

/* period chart */
.viz-plot { position: relative; }
.viz-note {
  position: absolute;
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 11px;
  border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--card) 74%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 var(--glass-lip), var(--lc-glass-shadow, 0 10px 26px -16px #000);
  pointer-events: none;
}
.viz-note b { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }
.viz-note span { font-size: 10.5px; color: var(--text-dim); }

/* Reading one day off the chart. The peak note is marked without being
   asked; this is the answer to a question somebody put, so it only exists
   while they are asking it. */
.viz-plot { position: relative; }
.viz-lens { opacity: 0; transition: opacity .12s var(--ease); pointer-events: none; }
.viz-plot.is-reading .viz-lens { opacity: 1; }
.vrule { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 4; }
.vdot.is-live { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
/* The wash under an accent line. A token rather than a literal, so a toggle
   follows without a redraw: on white a red wash is a red panel, so the light
   content keeps the line and the peak dot and leaves the hatch to the area. */
.vstop-accent { stop-color: var(--accent); stop-opacity: var(--accent-wash); }
.vstop-accent.is-end { stop-opacity: 0; }
/* The sparkline's wash was always a touch stronger than the area chart's. */
.vstop-accent.is-spark { stop-opacity: calc(var(--accent-wash) * 16 / 15); }

.viz-read {
  position: absolute; opacity: 0;
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--lc-glass-shadow, 0 10px 26px -16px #000);
  pointer-events: none; white-space: nowrap;
  transition: opacity .12s var(--ease), left .1s var(--ease), top .1s var(--ease);
}
.viz-plot.is-reading .viz-read { opacity: 1; }
.viz-read b { font-size: 13.5px; font-weight: 600; letter-spacing: -.02em; }
.viz-read span { font-size: 10px; color: var(--text-dim); font-family: var(--font-mono); }
/* While a day is being read, the note about the best one is in the way. */
.viz-plot.is-reading .viz-note { opacity: 0; }
.viz-note { transition: opacity .12s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .viz-lens, .viz-read, .viz-note { transition: none; }
}

/* pipeline */
.viz-flow { display: flex; gap: 4px; }
.viz-step {
  display: flex; flex-direction: column; gap: 2px;
  position: relative; min-width: 0;
  padding: 13px 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
  transition: background var(--fast), border-color var(--fast), transform var(--fast);
}
.viz-step:disabled { cursor: default; }
.viz-step:not(:disabled):hover { background: var(--card-hover); border-color: var(--border-strong); transform: translateY(-2px); }
.viz-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.viz-step::before {
  content: ""; position: absolute; left: 13px; right: 13px; top: 0; height: 2px;
  border-radius: 2px; background: color-mix(in srgb, var(--text) 16%, transparent);
}
.viz-step .vs-n { font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
/* Two lines of room whether the label needs them or not. One step whose name
   wraps made its own tile taller and pushed its amount below the others, so a
   row read across at a glance had one figure out of line for no reason the
   eye could explain. */
.viz-step .vs-l {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-dim); line-height: 1.3;
  min-height: 2.6em;
}
.viz-step .vs-v { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.viz-step.tone-bad { background: color-mix(in srgb, var(--accent) 9%, var(--card)); border-color: color-mix(in srgb, var(--accent) 26%, transparent); }
.viz-step.tone-bad::before { background: var(--accent); }
.viz-step.tone-warn::before { background: var(--warn); }
.viz-step.tone-good::before { background: var(--good); }
.viz-step.is-active { border-color: var(--accent); }

/* runway */
.viz-runway { display: flex; height: 24px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.vr-fill { background: linear-gradient(180deg, color-mix(in srgb, var(--good) 62%, transparent), color-mix(in srgb, var(--good) 34%, transparent)); }
.vr-short {
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 52%, transparent) 0 2px, transparent 2px 7px),
    color-mix(in srgb, var(--accent) 12%, transparent);
}
.viz-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 11px; font-size: 12px; color: var(--text-muted); }
.viz-legend span { display: flex; align-items: center; gap: 7px; }
.viz-legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.viz-legend i.ok { background: color-mix(in srgb, var(--good) 62%, transparent); }
.viz-legend i.bad { background: color-mix(in srgb, var(--accent) 55%, transparent); }

/* dial */
.viz-dial { width: 100%; max-width: 220px; margin: 0 auto; display: block; }
.viz-dial .vtrack { stroke: color-mix(in srgb, var(--text) 8%, transparent); }
.viz-dial .vglow { stroke: color-mix(in srgb, var(--accent) 20%, transparent); }
.viz-dial .varc { stroke: var(--accent); }
/* Quiet unless there is something to look at. A gauge that is red whatever it
   reads is a gauge nobody reads. */
.viz-dial.tone-neutral .vglow { stroke: color-mix(in srgb, var(--text) 10%, transparent); }
.viz-dial.tone-neutral .varc { stroke: var(--text); }
.viz-dial.tone-good .vglow { stroke: color-mix(in srgb, var(--good) 20%, transparent); }
.viz-dial.tone-good .varc { stroke: var(--good); }
.viz-dial .vd-num { fill: var(--text); font-size: 34px; font-weight: 600; font-family: var(--font-display); letter-spacing: -1.2px; }
.viz-dial .vd-cap { fill: var(--text-dim); font-size: 9.5px; font-family: var(--font-display); letter-spacing: 1.3px; }
.vd-foot { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* stall ladder */
.viz-ladder { display: flex; align-items: flex-end; gap: 5px; height: 112px; }
.vl-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.vl-bar { width: 100%; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--text) 14%, transparent); animation: vrise .7s var(--ease) both; }
.vl-col.p1 .vl-bar { background: color-mix(in srgb, var(--warn) 55%, transparent); }
.vl-col.p2 .vl-bar { background: color-mix(in srgb, var(--warn) 85%, transparent); }
.vl-col.p3 .vl-bar { background: var(--accent); }
.vl-d { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-dim); }
@keyframes vrise { from { transform: scaleY(0); transform-origin: bottom; } }
.viz-marks { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 13px; font-size: 11.5px; color: var(--text-muted); }
.viz-marks span { display: flex; align-items: center; gap: 6px; }
.viz-marks i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.viz-marks i.p1 { background: color-mix(in srgb, var(--warn) 55%, transparent); }
.viz-marks i.p2 { background: color-mix(in srgb, var(--warn) 85%, transparent); }
.viz-marks i.p3 { background: var(--accent); }

/* shipment rail */
.viz-rail { position: relative; padding-top: 2px; }
.viz-rail .vr-line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--border-strong); }
.viz-rail .vr-done { position: absolute; left: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent)); }
.viz-rail .vr-nodes { position: relative; display: flex; justify-content: space-between; }
.vr-node { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.vr-dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--card); display: grid; place-items: center; }
.vr-dot i { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--text) 20%, transparent); display: block; }
.vr-node.is-done .vr-dot { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.vr-node.is-done .vr-dot i { background: var(--accent); }
/* The one node worth looking at, and the only red on the rail. */
.vr-node.is-stuck .vr-dot { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 18%, transparent); }
.vr-node.is-stuck .vr-dot i { background: var(--bad); }
.vr-node.is-stuck .vr-l { color: var(--bad); }
.vr-node.is-stuck .vr-t { color: var(--text-muted); white-space: normal; }
.vr-node.is-now .vr-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent); }
.vr-l { font-size: 11.5px; text-align: center; color: var(--text-muted); line-height: 1.35; padding: 0 4px; }
.vr-t { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-dim); }
/* Where the parcel is now, in the one weight that is not muted. A timeline
   where every node reads the same is five labels somebody has to compare
   before finding the one that answers the question they came with. */
.vr-node.is-now .vr-l { color: var(--text); font-weight: 600; }
.vr-node.is-done .vr-l { color: var(--text-muted); }

/* --- where an order goes --------------------------------------------------- *
   The map on an order. The outline and the two points are drawn from
   assets/worldmap.js, so everything here is colour: land is a wash of the text
   colour rather than a fill of its own, because it is the ground and not the
   subject, and the only red on it is the one place this parcel is going. */
.vmap { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vmap svg {
  display: block; width: 100%; height: auto;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.vm-land { fill: color-mix(in srgb, var(--text) 14%, transparent); }
.vm-arc {
  fill: none; stroke: color-mix(in srgb, var(--accent) 50%, transparent);
  stroke-width: 1.2; stroke-linecap: round;
}
.vm-from { fill: color-mix(in srgb, var(--text) 42%, transparent); }
.vm-halo { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.vm-to { fill: var(--accent); stroke: var(--surface-1); stroke-width: 1.2; }
/* Where the parcel has got to, as one of three stands rather than a measured
   position. Green because it is the only good news on this card and the red
   is already spent on where the box is going; two reds beside each other is
   neither of them standing out. */
.vm-at { fill: var(--good); stroke: var(--surface-1); stroke-width: 1.1; }
/* Once, and then it is still. */
.vmap.is-drawing .vm-arc { animation: vmdraw 620ms var(--ease) forwards; }
@keyframes vmdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .vmap.is-drawing .vm-arc { animation: none; stroke-dashoffset: 0 !important; }
}
.vm-foot {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  font-size: 12px; color: var(--text-muted);
}
.vm-where { font-weight: 600; color: var(--text); }
.vm-km { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); }
.vm-note { margin: 0; font-size: 10.5px; color: var(--text-dim); }
/* The globe on an order: the same world as the marketing page, close up on
   the destination. The ground is the card's own surface with a little light
   where the pin is, so it reads as a sphere rather than a hole in the card. */
.vm-globe {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--border); border-radius: 10px;
  background: radial-gradient(120% 90% at 45% 45%, color-mix(in srgb, var(--text) 5%, var(--surface-1)), var(--surface-1));
}
.vm-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vm-chip {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 9px;
  max-width: calc(100% - 16px); padding: 7px 10px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface-1) 92%, transparent);
  border: 1px solid var(--border-strong, var(--border));
  box-shadow: var(--lc-glass-shadow, 0 12px 28px -14px rgba(0,0,0,.8));
  font-size: 12px; line-height: 1.3; opacity: 0; transition: opacity .35s var(--ease, ease); pointer-events: none;
}
.vm-chip.is-on { opacity: 1; }
.vm-chip b { display: block; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-chip small { display: block; color: var(--text-dim); font-size: 11px; overflow-wrap: anywhere; }
.vm-chip > span:last-child { min-width: 0; }
.vm-chip-ic { flex: none; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--text) 8%, transparent); position: relative; }
.vm-chip-ic::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.vm-chip-ic.is-good { background: color-mix(in srgb, var(--good) 16%, transparent); }
.vm-chip-ic.is-good::after { background: var(--good); }
@media (prefers-reduced-motion: reduce) { .vm-chip { transition: none; } }

/* density grid */
.viz-heat { display: grid; gap: 4px; }
.vh-day { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); display: flex; align-items: center; }
.vh-cell { aspect-ratio: 1; border-radius: 4px; }
.viz-heatfoot { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 11px; color: var(--text-dim); }
.vh-ramp { display: flex; gap: 3px; }
.vh-ramp i { width: 13px; height: 9px; border-radius: 3px; display: block; }
.vh-note { margin-left: auto; text-align: right; }

/* share list */
.viz-share { display: grid; grid-template-columns: 22px 1fr auto 46px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.viz-share:last-child { border-bottom: 0; }
.viz-share.is-link { cursor: pointer; }
.viz-share.is-link:hover .vsh-name { color: var(--accent-text); }
.vsh-icon { font-size: 15px; line-height: 1; }
.vsh-body { min-width: 0; }
.vsh-name { display: block; font-size: 13px; font-weight: 500; transition: color var(--fast); }
.vsh-track { display: block; height: 5px; border-radius: 4px; background: color-mix(in srgb, var(--text) 7%, transparent); overflow: hidden; margin-top: 6px; }
.vsh-track i { display: block; height: 100%; border-radius: 4px; background: color-mix(in srgb, var(--text) 34%, transparent); transform-origin: left; animation: vgrow .8s var(--ease) both; }
.viz-share.is-top .vsh-track i { background: var(--accent); }
.viz-share.is-top .vsh-pct { color: var(--accent-text); }
.vsh-meta { font-size: 12.5px; color: var(--text-muted); text-align: right; white-space: nowrap; }
.vsh-pct { font-size: 13px; font-weight: 600; text-align: right; }
/* A sparkline you can ask about. It carries thirty days behind one number,
   and until now none of those days could be named. */
.viz-sparkwrap { position: relative; }
.spark-read {
  position: absolute; top: -6px; left: 0;
  opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 3px 8px; border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 11px; font-weight: 600; letter-spacing: -.01em;
  transition: opacity .12s var(--ease), left .1s var(--ease);
  z-index: 2;
}
.viz-sparkwrap.is-reading .spark-read { opacity: 1; }
.viz-spark .vdot.is-live { transition: opacity .12s var(--ease); }

/* Which row the eye is on, in a list where the number is at the far right. */
.viz-share { border-radius: 10px; transition: background var(--fast); }
.viz-share:hover { background: var(--surface-1); }

@keyframes vgrow { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .vl-bar, .vsh-track i { animation: none; }
  .spark-read, .viz-spark .vdot.is-live, .viz-share { transition: none; }
}
@media (max-width: 720px) {
  .viz-flow { flex-wrap: wrap; }
  .viz-step { flex: 1 1 40% !important; }
}

/* --- auth pages ----------------------------------------------------------- */
.authwrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.authside {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(900px 500px at 20% 10%, var(--accent-soft), transparent 60%),
    var(--shell);
  padding: 44px;
  display: flex;
  flex-direction: column;
}
.authside > *:not(.authart) { position: relative; z-index: 1; }
.authside .brandblock { padding: 0; }
/* the line above the headline and the headline itself are set from one
   size, so they cannot drift apart as the panel narrows */
.authside .pitch { margin: auto 0; max-width: 620px; --pitch-type: clamp(23px, 2.25vw, 30px); }
/* the standfirst keeps a readable measure even though the line above it
   is allowed to run the full width of the panel */
.authside .pitch p:not(.pitchline) { max-width: 460px; }

/* The trade named back at the merchant, one word at a time. The selector
   carries the panel because .authside .pitch p sets the standfirst size, and
   this line is a paragraph too. */
.authside .pitch .pitchline {
  /* a hair under the headline at full width, and it gives way faster than the
     headline does as the panel narrows, because this line has to hold a
     country and a category on one row */
  font-size: clamp(16px, 1.92vw, 27.6px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -.02em;
  color: var(--text-muted);
  margin: 0 0 26px;
}
/* the promise always sits on its own line, whatever the panel is doing */
.authside .pitch .pitchline .pl { display: block; }
.authside .pitch .pitchline .fx { font-style: normal; }

/* Each changing word sits in a slot you can see: a pill with a rule under it
   that fills up to the moment it changes, so the line reads as something that
   is running rather than something that was printed. */
.authside .pitch .pitchline .tok {
  position: relative;
  display: inline-grid;
  /* the two words share one cell, and neither may stretch to it: a stretched
     word measures the slot it is already in, which is how a short word ended
     up in a pill cut for a long one */
  justify-items: start;
  overflow: hidden;
  vertical-align: middle;
  padding: .12em .28em .16em;
  margin: 0 .04em;
  border-radius: .42em;
  border: 1px solid var(--border);
  background: rgba(127, 127, 127, .06);
  color: var(--text);
  font-weight: 600;
  /* a touch of overshoot, so the slot springs to its new width instead of
     easing politely into it */
  transition: width .44s cubic-bezier(.34, 1.42, .38, 1), border-color .25s var(--ease),
    background .25s var(--ease), box-shadow .35s var(--ease);
}
.authside .pitch .pitchline .tok::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent);
  opacity: .55;
}
.authside .pitch .pitchline .tok.is-next {
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.authside .pitch .pitchline .tok.is-next::after { animation: tokfill var(--tokspan, 2000ms) linear both; }
.authside .pitch .pitchline .tok.is-swap {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}
@keyframes tokfill { from { width: 0; } to { width: 100%; } }

.authside .pitch .pitchline .tin {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: transform .42s cubic-bezier(.22, 1.2, .36, 1), opacity .26s ease, filter .26s ease;
}
.authside .pitch .pitchline .tin i {
  font-style: normal;
  margin-left: 4px;
  display: inline-block;
}
.authside .pitch .pitchline .tin:not(.is-next):not(.is-out) i { animation: tokpop .5s cubic-bezier(.22, 1.4, .36, 1) both; }
.authside .pitch .pitchline .tin.is-next { transform: translateY(120%) scale(.94); opacity: 0; }
.authside .pitch .pitchline .tin.is-out { transform: translateY(-120%) scale(.94); opacity: 0; filter: blur(2px); }
@keyframes tokpop {
  0% { transform: scale(.5) rotate(-14deg); opacity: 0; }
  60% { transform: scale(1.18) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pitchline .tok, .authside .pitch .pitchline .tin { transition: none; }
  .authside .pitch .pitchline .tok::after, .authside .pitch .pitchline .tin i { animation: none; }
}
.authside .pitch h2 {
  font-size: var(--pitch-type, 30px);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.authside .pitch h2 em { font-family: var(--font-accent); font-style: italic; color: var(--accent); }
.authside .pitch p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0 0 22px; }
.authside .points { display: flex; flex-direction: column; gap: 10px; }
.authside .point { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-muted); }
.authside .point svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
/* the temple, bottom left, running off both edges of the panel */
.authart {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  /* big enough to read as background rather than ornament: it sits on the
     bottom left corner of the panel with roughly half of it running off */
  width: clamp(460px, 82%, 820px);
  transform: translate(-27%, 21%);
  height: auto;
  fill: none;
  stroke: var(--art-ink);
  stroke-width: .7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: var(--art-op);
  pointer-events: none;
  /* let the base dissolve before it reaches the line of type at the bottom */
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 99%);
}
.authart .caps { stroke-width: .9; }
.authart .lantern { stroke-width: 1.15; }
@media (max-height: 760px) { .authart { width: clamp(380px, 66%, 560px); transform: translate(-38%, 30%); } }

.authside .foot { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; }
/* The name keeps its own spelling even inside a line set in capitals. */
.authside .foot .nm { text-transform: none; letter-spacing: .02em; }

.authmain { display: grid; place-items: center; padding: 44px 24px; }
.authcard { width: min(400px, 100%); }
.authcard h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
.authcard .sub { font-size: 13.5px; color: var(--text-muted); margin: 0 0 24px; line-height: 1.55; }
.authcard .altrow { margin-top: 18px; font-size: 12.5px; color: var(--text-muted); text-align: center; }
.authcard .altrow a { color: var(--accent-text); }
.authcard .divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 16px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim);
}
.authcard .divider::before, .authcard .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
/* on a narrow window the panel spends too much of itself on margin, which is
   what pushed the trade line onto a third row */
@media (max-width: 1040px) {
  .authside { padding: 34px 26px; }
}
/* The mark above the form, on a phone only. On a wide screen the panel
   beside it already says who this is. */
.authmark { display: none; }
@media (max-width: 880px) {
  .authwrap { grid-template-columns: 1fr; }
  .authside { display: none; }
  .authmark {
    display: flex; align-items: center; gap: 11px;
    margin-bottom: 26px; text-decoration: none; color: var(--text);
  }
  .authmark .mark { width: 30px; height: 30px; flex: none; color: var(--accent); overflow: visible; }
  .authmark span { display: block; line-height: 1.25; }
  .authmark b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
  .authmark i {
    display: block; font-style: normal;
    font-family: var(--font-accent); font-size: 9.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-dim);
  }
}

/* The pull to refresh tab. Fixed above the page rather than pushing it down:
   moving the whole document under a finger is a scroll fighting a gesture. */
.pulltab {
  position: fixed; top: 0; left: 50%; z-index: 55;
  width: 40px; height: 40px; margin-top: -46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--card); border: 1px solid var(--border-strong);
  box-shadow: var(--lc-shadow, 0 8px 24px rgba(0, 0, 0, .5));
  transform: translate(-50%, 0); opacity: 0;
  color: var(--text-dim);
  pointer-events: none;
}
.pulltab .tmark { width: 20px; height: 20px; display: block; }
/* Armed: past the point where letting go refreshes. The colour is the whole
   signal, so it does not need a word next to it. */
.pulltab.is-armed { color: var(--accent); border-color: var(--accent-line); }
.pulltab.is-springing { transition: transform .26s var(--ease), opacity .26s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .pulltab.is-springing { transition: none; }
}

/* An order as a phone shows it: the number, what it is, what it cost, where
   it stands, and the one thing to press. Everything else is on the order
   itself. Sized so eight or nine fit on a screen, because a queue is
   something to scan and a card that fills the viewport is a page. */
.ordercard {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
}
.ordercard .oc-media { position: relative; flex: none; width: 44px; height: 44px; }
.ordercard .oc-media .thumb,
.ordercard .oc-media > * { width: 44px; height: 44px; border-radius: 9px; }
/* More than one line on the order, said on the picture of the first rather
   than by drawing three more pictures. */
.ordercard .oc-more {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: rgba(0, 0, 0, .58);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #fff;
}
.ordercard .oc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ordercard .oc-no { font-size: 14.5px; font-weight: 600; }
.ordercard .oc-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ordercard .oc-total { font-size: 14px; font-weight: 600; white-space: nowrap; }
.ordercard .oc-right .btn { padding: 4px 12px; font-size: 12.5px; }

/* The lines on an order. A list, not a table: nobody sorts three items or
   selects them, and the same shape reads at every width instead of stacking
   into unlabelled cells on a phone. */
.orderitems { display: flex; flex-direction: column; }
.oi {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 16px; border-top: 1px solid var(--border);
  color: inherit; text-decoration: none;
}
.oi:first-child { border-top: 0; }
a.oi { transition: background var(--fast); }
a.oi:hover { background: var(--surface-1); }
.oi-media { flex: none; }
/* Twice what it was. This is the only thing on the row that says what was
   ordered, and at forty four pixels a lamp and a stool are the same grey
   square. */
.oi-media .thumb, .oi-media > * { width: 88px; height: 88px; border-radius: 11px; }
.oi-main { flex: 1; min-width: 8rem; display: flex; flex-direction: column; gap: 5px; }
.oi-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
/* The three facts that tell one line from another: which variant, the SKU a
   merchant reads off their own packing list, and how many. One line, and each
   cut rather than wrapped, or a long variant name turns the row into a
   paragraph. */
.oi-sub {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-dim); min-width: 0;
}
.oi-var { color: var(--text-muted); max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oi-sku { font-size: 10.5px; }
.oi-qty {
  padding: 1px 7px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface-1);
  color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: 11px;
}
.oi-right {
  flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  margin-left: auto; text-align: right;
}
.oi-price { font-size: 13px; white-space: nowrap; }
/* What the customer paid, and under it what this costs. Two figures, each
   with the half sentence that says which is which: a column of two amounts
   with no labels is two amounts nobody can tell apart. */
.oi-fig { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.oi-fig em {
  font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim);
}
.oi-fig b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* The one the merchant is accountable for is the one in full weight. Not the
   accent: three lines on an order would be three red numbers down a column,
   which is the accent used as a colour rather than as an instruction. */
.oi-fig:not(.is-cost) b { color: var(--text-muted); font-weight: 500; }
.oi-fig.is-cost .dim { font-size: 11.5px; font-weight: 400; }
/* The money on this card, under the lines it is about. */
.oi-costs { padding: 14px 16px 16px; border-top: 1px solid var(--border); }
@media (max-width: 520px) {
  .oi-media .thumb, .oi-media > * { width: 64px; height: 64px; }
  /* The numbers go under the name rather than squeezing it to two words. */
  .oi-right { margin-left: 78px; width: 100%; align-items: flex-start; text-align: left; }
}

/* An icon in a card head. Small, dim, and to the left of the title: it is
   there to make the card findable at a glance, not to be looked at. */
.cardhead h3 { display: flex; align-items: center; gap: 8px; }
.headicon { display: inline-flex; color: var(--text-dim); flex: none; }
.headicon svg { display: block; }

/* The span a figure is about, said above it rather than only in the picker
   across the card. A number with no period attached to it is not a number. */
.chartspan {
  font-family: var(--font-accent); font-size: 10px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-dim);
  margin: 0 0 2px;
}

/* Three figures under a chart, all about the same span. The tick in front of
   each is what lets them sit side by side without a legend. */
.figrow { display: flex; flex-wrap: wrap; gap: 26px; margin: 2px 0 14px; }
.fig { display: flex; flex-direction: column; gap: 3px; }
.fig-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-muted);
}
.fig-tick { width: 2px; height: 13px; border-radius: 2px; background: var(--text-dim); flex: none; }
.fig.is-accent .fig-tick { background: var(--accent); }
.fig.is-good .fig-tick { background: var(--good); }
.fig-val { font-size: 19px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fig-foot { font-size: 11px; color: var(--text-dim); }
@media (max-width: 520px) {
  .figrow { gap: 16px 22px; }
  .fig-val { font-size: 17px; }
}

/* --- role and store picker ------------------------------------------------ */
.rolelist { display: flex; flex-direction: column; gap: 6px; }
.rolerow {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--fast), background var(--fast);
}
.rolerow:hover { border-color: var(--border-strong); background: var(--card-hover); }
.rolerow.is-current { border-color: var(--accent-line); background: var(--accent-soft); }
.rolerow .av {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface-2);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  color: var(--text-muted);
}
.rolerow .rtxt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rolerow .rtxt b { font-size: 13px; font-weight: 500; }
.rolerow .rtxt span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); }
.userrow { border: none; background: none; padding: 0; cursor: pointer; width: 100%; text-align: left; color: var(--text); }
.userrow:hover .un { color: var(--accent-text); }
.store-id { border: 1px solid var(--border); width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer; }

/* --- misc ----------------------------------------------------------------- */
.field textarea.is-bad, .field input.is-bad { border-color: var(--bad); }
.field.is-wide { grid-column: 1 / -1; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.formgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.rowline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rowline.end { justify-content: flex-end; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.nowrap { white-space: nowrap; }

@media (max-width: 860px) {
  .formgrid, .formgrid.three { grid-template-columns: 1fr; }
  /* A wide one too. `.is-wide` is a ceiling for a desk, and on a phone it
     left a forty pixel sliver of the list down the side: not enough to read
     and enough to press by accident. */
  .drawer, .drawer.is-wide { width: 100vw; }
}

/* --- density: the warehouse console works in this all day ------------------ */
/* Same tokens, same black, tighter rhythm. Set html[data-density="compact"]. */
html[data-density="compact"] {
  --gutter: 22px;
  --sidebar-w: 218px;
  --radius-lg: 14px;
  --radius: 10px;
}
html[data-density="compact"] body { font-size: 13px; }
html[data-density="compact"] .content { padding: 18px var(--gutter) 40px; max-width: 1560px; }
html[data-density="compact"] .card { padding: 14px; }
html[data-density="compact"] .cardhead { padding: 11px 14px; }
html[data-density="compact"] .kpi { padding: 13px; }
html[data-density="compact"] .kpi .knum { font-size: 26px; }
html[data-density="compact"] .pagetitle { font-size: 21px; }
html[data-density="compact"] table { font-size: 12.5px; }
html[data-density="compact"] thead th { padding: 8px 11px; }
html[data-density="compact"] td { padding: 8px 11px; }
html[data-density="compact"] .grid { gap: 10px; }
html[data-density="compact"] .btn { height: 30px; padding: 0 12px; }
html[data-density="compact"] .btn.sm { height: 26px; }
html[data-density="compact"] .navitem { padding: 7px 10px; }
html[data-density="compact"] .pagehead { margin-bottom: 14px; }

/* --- a phone is a thumb, not a pointer ------------------------------------ */
/* Every control in this app was built at the size a mouse needs, and on a
   phone that is what a merchant actually holds. Measured rather than guessed:
   the period picker that drives the whole overview was 19px tall, the buttons
   28, the tabs 28, the menu rows 30, the avatar 30. A thumb is about nine
   millimetres across and lands with a couple of millimetres of slop, which is
   why every guideline asks for something in the low forties.

   Raised under 720px and nowhere else, so nothing about the desk changes.
   After the compact rules on purpose: the console sets that density, and a
   rule with a `html[data-density]` in front of it wins over a bare class
   however late it comes, so the same selector has to say it again here.

   Heights rather than padding wherever the control has one, or a taller
   target with the same text in it is a button whose label has drifted off
   centre. */
@media (max-width: 720px) {
  .btn { height: 40px; padding: 0 18px; }
  .btn.sm { height: 36px; font-size: 12.5px; padding: 0 14px; }
  .btn.lg { height: 46px; }
  html[data-density="compact"] .btn { height: 38px; padding: 0 15px; }
  html[data-density="compact"] .btn.sm { height: 34px; }

  /* The picker for the period every figure on the screen answers. Ten pixel
     type in a nineteen pixel box is the smallest thing anybody here has to
     hit, and it is on the first screen a merchant opens. */
  .segmented button { padding: 11px 10px; font-size: 10.5px; }
  /* Seven periods across a phone is what it holds and no more, so the bar
     scrolls rather than running off the edge: at 390 with the room a thumb
     needs they only just fit, and the last one is the one somebody reaches
     for when they want a span of their own. */
  /* A line of its own and the width of the screen, so what does not fit is
     scrolled to rather than hidden past the edge. As one item among the
     buttons it kept its content width and pushed the whole row off a 320px
     screen: it is the widest thing in that head and the only one that can be
     scrolled instead of wrapped. */
  /* A flex item will not shrink past its own content unless it is told it
     may, and these two hold the widest things on a screen: the head's row of
     controls, and the column a tab bar and a filter bar sit in. Without it the
     head hung 35px off the right of a 320px screen and the balance screen went
     533px wide the moment its tabs stopped wrapping. */
  .rowline, .stack { min-width: 0; }
  .rowline > .segmented { flex: 1 1 100%; }
  .segmented { max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .segmented::-webkit-scrollbar { display: none; }

  /* One line that scrolls rather than three that wrap. Eight tabs with their
     counts on them is three rows on a phone, which is eighty pixels of filter
     above a list that has not been reached yet: on the catalogue the first
     product sat below the fold on a screen a merchant opened to look at
     products. The bar keeps every tab and its count, and the one that is on is
     scrolled to. */
  .tabbar {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
    /* It only scrolls if it is allowed to be narrower than what is in it: as
       an item in a flex column it kept its content width and took the balance
       screen 551px wide instead. */
    max-width: 100%; min-width: 0;
  }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabb { padding: 10px 14px; font-size: 13px; flex: none; }
  .grpill { padding: 9px 14px; }
  .navitem { padding: 11px 11px; }
  html[data-density="compact"] .navitem { padding: 10px 10px; }

  /* Square controls: the avatar at the foot of the menu, and the sign out
     and theme switch beside it. */
  .iconbtn, .sidefoot .iconbtn { width: 38px; height: 38px; }
  /* The face itself is drawn at a size the script passes, so the room comes
     from around it rather than from the picture: the button is 38 and the
     avatar in it stays the 30 every other screen draws. The camera that
     appears over it on a press follows the picture rather than the padding. */
  .facebtn { padding: 4px; border-radius: 13px; }
  .facebtn .fcam { inset: 4px; border-radius: 11px; }

  /* Two lines of text is not a target. The name opens the seat switcher, so
     it gets the room the rows around it have. */
  .userrow .uname { padding: 7px 0; }

  /* Ticking a row. Fifteen pixels is the browser's own default and it is the
     one control here that is pressed in a run of ten, down a list, with a
     thumb. The cell already holds 38. */
  .cbcell input[type="checkbox"] { width: 21px; height: 21px; }

  /* The arrow that unfolds the sizes under a product. It is deliberately
     small so it does not shout beside the row it sits on, and it already
     carries padding for a finger: the padding is what grows, not the glyph. */
  button.gchev { padding: 9px; margin: -9px -5px -9px -9px; }

  /* Paging, and the two inline controls that look like text and are not: the
     reference somebody copies, and the link between the two halves of a
     tracking screen. Both are read at a glance and pressed rarely, so they
     get height rather than a box that shouts. */
  .pager .pg { min-width: 36px; height: 36px; }
  .copyable { padding: 7px 10px; }
  /* The one in a table has no box around it on purpose, because three hundred
     boxes down a column is a column of boxes. It still has to be pressable, so
     it takes the height and not the width: a reference that shifts sideways
     would stop lining up with the rows above it. */
  .copyable.is-plain { padding: 6px 0; }
  .jump { padding: 9px 12px; }

  /* The chips that filter a console queue by how long something has stood
     there. Nine pixel type in a nineteen pixel pill. */
  button.chip { padding: 8px 12px; font-size: 10px; }

  /* Each part of the bar that says where the parcels are is a way into that
     tab. A row of them at two pixels of padding is five links in the height
     of one. */
  a.vsp-item { padding: 8px 0; }
}

/* --- the way past the menu ------------------------------------------------- */
/* Off the screen until the keyboard reaches it, which is the first thing it
   reaches. A mouse never sees it and a screen reader reads it first, which is
   the whole point: the eleven menu rows in front of every queue are the same
   eleven on every screen. */
.skiplink {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  transform: translateY(-200%);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-line);
  background: var(--accent-fill);
  color: var(--accent-ink);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: transform var(--fast);
}
.skiplink:focus-visible { transform: none; outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* --- print --------------------------------------------------------------- */
@media print {
  .sidebar, .topbar, .toaster, .overlay { display: none !important; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; color: #000; }
}

/* The ground a screen stands on, said once in the sidebar. A demonstration
   that cannot be told from the real thing is one somebody will quote back
   at you. */
.samplemark {
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink-on-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}

/* --- connecting: the few things we need before anything works ------------
   Asked for while a merchant connects rather than left in a settings page,
   because neither the logo nor the countries is a preference. The logo goes
   on the box their customer opens; the countries are what the warehouse has
   to price before a first order can move.
   ------------------------------------------------------------------------ */

/* --- a catalogue still arriving ------------------------------------------
   Said where a missing product would be noticed, in our own colours rather
   than as a warning: nothing is wrong, something is on its way. The three
   marks breathe on the same rhythm as the card that waits for a session, so
   the two read as one idea rather than as two loading animations.
   ------------------------------------------------------------------------ */
.readnote {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(226, 64, 47, .34);
  background: linear-gradient(180deg, rgba(226, 64, 47, .09), rgba(226, 64, 47, .03));
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px;
}
/* The mark the lists wait with (`.sgload` above), small: the page says it
   is reading in one language rather than with two animations. */
.readnote .rmark { width: 26px; height: 26px; flex: none; color: var(--accent); overflow: visible; }
.readnote .rtxt { min-width: 0; }
.readnote .rtxt b { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.readnote .rtxt span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.obcard { width: min(560px, 100%); }

/* --- before the server has answered --------------------------------------
   This page draws nothing until it knows which step somebody is on, and the
   answer comes from the server. That left a card with nothing in it, which
   on a service that was waking up is indistinguishable from a page that is
   broken: no heading, no rail, no way to tell waiting from stuck.

   Three bars the shape of what is about to arrive, and a line that says what
   is happening. The bars breathe rather than sweep, because a sweep says
   rows are landing one after another and here one thing is coming: the whole
   step, at once, or a failure.
   ------------------------------------------------------------------------ */
.obwait .bars { display: grid; gap: 12px; margin: 26px 0 0; }
.obwait .bars i {
  display: block; height: 46px; border-radius: var(--radius-sm);
  background: var(--surface-2);
  animation: obwait-breathe 1600ms ease-in-out infinite;
}
.obwait .bars i:first-child { height: 62px; }
.obwait .bars i:nth-child(2) { animation-delay: 160ms; }
.obwait .bars i:nth-child(3) { animation-delay: 320ms; }
@keyframes obwait-breathe {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}
/* A figure that loops is decoration, and somebody who has asked not to see
   movement should not be shown any. The bars stay, because what they say is
   said by being there. */
@media (prefers-reduced-motion: reduce) {
  .obwait .bars i { animation: none; opacity: .7; }
}

/* The second answer on a card that could not start, under a rule, because it
   is a different thing to do rather than more of the sentence above it: try
   again is one press, and making the connection again is a trip to Shopify. */
.obfix {
  margin: 26px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--border);
}
.obfix h2 { margin: 0 0 6px; font-size: 15px; }
.obfix .btn { margin-top: 14px; }
/* And the way to a person, which is the last line rather than a step. */
.obhelp { margin-top: 22px; font-size: 12.5px; }

.obrail {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 26px; padding: 0; list-style: none;
}
.obrail li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-dim);
}
.obrail li + li::before {
  content: ""; width: 18px; height: 1px; background: var(--border-strong);
}
.obrail .dot {
  width: 20px; height: 20px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-size: 11px; font-variant-numeric: tabular-nums;
}
.obrail li.is-now { color: var(--text); }
.obrail li.is-now .dot { border-color: var(--accent); color: var(--accent-text); }
/* Done is a tick in the good green, the way the first-run steps draw it,
   not a red disc: the screen's one red is the button that moves it on. */
.obrail li.is-done .dot {
  border-color: var(--good); color: var(--good-ink);
}

.obchips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 6px; }
.obchip {
  font: inherit; font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: color .14s ease, background-color .14s ease, border-color .14s ease;
}
.obchip:hover { color: var(--text); border-color: var(--border-strong); }
/* Picked, in the green the country picker already uses for chosen: a
   country is an answer rather than an action, and three red chips beside
   the red Save and finish was four accents on one screen. */
.obchip[aria-pressed="true"] {
  color: var(--text); background: var(--picked-soft); border-color: var(--picked-line);
}
.obchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.obcount { font-size: 12.5px; color: var(--text-dim); margin: 10px 0 0; }

.obbox { display: grid; place-items: center; padding: 6px 0 14px; }
.obbox svg { width: 190px; height: 190px; overflow: visible; }

.obshop {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin: 0 0 18px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-1);
}
.obshop .tick {
  width: 22px; height: 22px; border-radius: 999px; flex: 0 0 auto;
  background: var(--accent-fill); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 12px;
}
.obshop .who { min-width: 0; }
.obshop .who b { display: block; font-size: 14px; font-weight: 600; }
.obshop .who span { font-size: 12.5px; color: var(--text-dim); word-break: break-all; }

/* A logo is previewed square, because that is the shape it is printed in. */
.ppsquare {
  width: 72px; height: 72px; border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.ppsquare img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ppempty { font-size: 20px; font-weight: 600; color: var(--text-dim); letter-spacing: .02em; }

/* The mark on a sync button. It draws itself for as long as the reading
   takes, and sits there whole when nothing is happening. */
.btn.has-tmark { display: inline-flex; align-items: center; gap: 7px; }
.tmark { width: 14px; height: 14px; flex: 0 0 auto; overflow: visible; }
.btn.has-tmark .tmark { color: var(--accent); }

/* Arriving from the Shopify admin with a hand off code. The page is about to
   navigate, so the sign in form is not something to look at on the way past.
   Hidden rather than removed, because the code can fail and then the form is
   the answer. */
.is-arriving .authcard, .is-arriving .authside { visibility: hidden; }
.arrivewait {
  position: fixed; inset: 0; display: grid; place-items: center;
  pointer-events: none;
}

/* A product that is gone from the merchant's own Shopify catalogue. Dimmed
   rather than struck through: it is not wrong, it is no longer for sale, and
   the price and the orders under it are still real.

   Sentence case and its own colour, because the label face beside it
   uppercases and that turned the one line worth reading into another
   attribute. */
.prodcell.is-gone .pt { color: var(--lc-dim); }
.prodcell.is-gone .thumb, .prodcell.is-gone img { opacity: .45; }
.gonenote {
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--warn, #d08770);
}

/* The button that unfolds the rest of the country list. A chip, because it
   sits in a row of chips, but plainly not a country: no flag, dimmed, and it
   does not toggle anything. */
.obchip.is-more, .pick.is-more {
  color: var(--lc-dim);
  border-style: dashed;
}
.obchip.is-more:hover, .pick.is-more:hover { color: var(--text); }

/* The first-run card on the overview. It sits above everything because it is
   the only thing on that screen worth reading until a first order has gone
   out, and it removes itself once one has. */
.firstrun { border-color: var(--accent-line); }
.frsteps {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--lc-line);
  display: grid;
  gap: 7px;
  counter-reset: fr;
}
.frsteps li {
  counter-increment: fr;
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--text-dim);
}
.frsteps li::before {
  content: counter(fr);
  flex: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1px solid var(--lc-line-strong);
  font-size: 10px;
  display: grid; place-items: center;
  color: var(--text-dim);
}
/* Done is a tick and not a struck-through line: these are things that
   happened, not things that were cancelled. */
.frsteps li.is-done::before { content: '\2713'; border-color: var(--good); color: var(--good); }
.frsteps li.is-now { color: var(--text); font-weight: 600; }
.frsteps li.is-now::before { border-color: var(--accent); color: var(--accent-text); }

/* The walk round the place. The dark is one enormous shadow cast by the
   spotlight rather than a mask, because a mask clips to its own box and this
   has to darken everything outside one. */
.tour { position: fixed; inset: 0; z-index: 900; }
.tour-hole {
  position: fixed;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .72);
  outline: 1px solid var(--accent);
  outline-offset: 0;
  transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease;
  pointer-events: none;
}
.tour-card {
  position: fixed;
  background: var(--lc-pop, var(--surface-1));
  border: 1px solid var(--lc-line-strong);
  border-radius: 12px;
  padding: 15px 16px 13px;
  box-shadow: var(--lc-shadow, 0 18px 50px rgba(0, 0, 0, .55));
}
.tour-of {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 7px;
}
.tour-card h4 { margin: 0 0 5px; font-size: 14.5px; letter-spacing: -.01em; }
.tour-card p { margin: 0 0 13px; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.tour-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-nav { display: flex; gap: 7px; }
/* Nothing here about where it sits on a phone. It was pinned to the bottom,
   which put it over the one stop that cannot move: the account group hangs at
   the foot of the menu, so Balance was spotlit underneath the card explaining
   it. ui.js places it against the spotlight instead, on every width. */

/* Countries. The general picker is built for a title and a hint on two lines,
   which turns a flag, a name and a two letter code into three, and thirty six
   of those is a wall rather than a list. One line each, and four across where
   there is room. */
.pickgrid.tight { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
@media (max-width: 1180px) { .pickgrid.tight { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .pickgrid.tight { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pick.tight {
  align-items: center;
  padding: 7px 10px;
  gap: 9px;
  font-size: 12.5px;
}
/* The general picker stacks its span, which is right for a title over a hint
   and wrong for a flag beside a name. Said out loud rather than inherited:
   overriding display without overriding the direction is how this ended up
   with the flag on its own line. */
.pick.tight > span {
  display: flex; flex-direction: row; align-items: center; gap: 7px;
  min-width: 0; flex: 1;
}
.pick.tight .ctry { display: inline-flex; flex-direction: row; gap: 7px; min-width: 0; }
.pick.tight .ctry span, .pick.tight .cname {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* The code earns its place by being scannable, not by being read. Quiet, and
   still read: --text-dim is 3.08:1 on a card, and `+5` is the one thing on
   that row that says what picking it costs. */
.pick.tight em {
  margin-left: auto; flex: none;
  font-size: 10px; letter-spacing: .06em;
  color: var(--text-muted);
  font-style: normal;
}
/* The two halves of the list, said out loud rather than left to be inferred
   from where the button is. */
.picksection {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-dim); margin: 16px 0 7px;
}
.picksection:first-child { margin-top: 0; }

/* The acceptance step. A card per agreement, so the tick belongs to the thing
   above it rather than to the page: one box at the bottom of everything is a
   box that was ticked to get past, and evidence that somebody ticked past a
   wall is not evidence they read the wall. */
/* The agreements themselves, in a box that has to be read to the end.

   Bounded rather than laid out down the page, because a step is a step: a
   page that scrolls for four thousand words has lost the rail, the ticks and
   the button off the bottom of the screen, and somebody has no idea how much
   is left. A panel keeps all three in sight and makes the amount visible. */
.tdoc {
  height: min(46vh, 420px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px;
  font-size: 13.5px; line-height: 1.6; color: var(--text-muted);
}
.tdoc:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.tdoc h1 { font-size: 17px; margin: 0 0 6px; }
.tdoc h2 { font-size: 14.5px; margin: 22px 0 8px; font-weight: 600; color: var(--text); }
.tdoc h3 { font-size: 13.5px; margin: 16px 0 4px; font-weight: 600; color: var(--text); }
.tdoc p { margin: 0 0 10px; }
.tdoc .lede, .tdoc .stamp, .tdoc .also { display: none; }
.tdoc ul { padding-left: 18px; margin: 0 0 12px; }
.tdoc li { margin-bottom: 6px; }
.tdoc .num { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-right: 7px; }
.tdoc .scope { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.tdoc .card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.tdoc .draft { display: none; }
.tsplit { border: 0; border-top: 1px solid var(--border-strong); margin: 26px 0; }
.tload { color: var(--text-dim); }

/* Whether the gate is passed, said rather than left to be worked out from a
   box that will not tick. */
.tgate { font-size: 12.5px; color: var(--text-dim); margin: 0 0 14px; }
.tgate.is-done { color: var(--good-ink); }

/* `label`, because `.tick` is also the round marker on the onboarding store
   card, and this rule's padding and rule above pushed that card's 1 below
   its own circle. */
label.tick {
  display: flex; gap: 10px; align-items: flex-start;
  border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 4px;
  font-size: 13.5px; cursor: pointer;
}
.tick input:disabled { opacity: .35; }
.tick input:disabled + span { color: var(--text-dim); }
.tick input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.tick span { color: var(--text); }
.fine { font-size: 12px; color: var(--text-dim); margin-top: 14px; }


/* --- two orders in one parcel ------------------------------------------- */
/* A row per order, the same height whether it can be ticked or not: the one
   that was pressed is already in the parcel and says so with a mark rather
   than with a checkbox nobody may use. */
.cbrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--lc-line);
  border-radius: 10px;
  background: var(--surface-2);
  margin-bottom: 6px;
  cursor: pointer;
}
.cbrow.is-fixed { cursor: default; }
.cbrow .thumb { width: 34px; height: 34px; flex: 0 0 34px; }
.cbtick {
  width: 15px; height: 15px; flex: 0 0 15px;
  border-radius: 4px;
  background: var(--accent);
}
.cbtxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.cbtxt .dim { font-size: 12px; }
.cbmoney { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbsum { margin-top: 10px; }
.cbsaved {
  margin: 8px 0 0;
  color: var(--accent-text);
  font-weight: 600;
}

/* --- a list that is only in the way until it is wanted -------------------- */
/* The channels on the tracking upload: needed while the carrier column is
   being filled in and noise the rest of the time. */
.upchannels { margin: 10px 0 0; }
.upchannels > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0;
}
.upchannels > summary:hover { color: var(--text); }
.upchannels p { margin: 4px 0 0; line-height: 1.9; }

/* --- what this platform pays for ----------------------------------------- */
/* Nine rows where the second line under a cell is half the answer: what a
   service is for, whether its fee moves with what goes through it, and the
   day somebody last checked the usage. `.ps` is styled inside `.prodcell`
   and nowhere else, so a register drawn with bare ones was printing its
   sub-lines at body size. */
.costs td { vertical-align: top; }
.costs .pt { color: var(--text); font-weight: 500; }
.costs .ps {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0;
}
.costs .svc { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.costs .svc .pthumb { width: 30px; height: 30px; border-radius: 8px; }
.costs .svc .pthumb svg { width: 19px; height: 19px; }
.costs .svc > div { min-width: 0; }
/* A sentence somebody wrote down is longer than a price, and row height is
   what decides how much of a list fits on a screen. */
.costs .usage { max-width: 320px; }
.costs tr.is-off td { opacity: .55; }
/* Two buttons that wrap make a row half as tall again, and row height is what
   decides how much of a list fits on a screen. */
.costs td.acts { white-space: nowrap; }

/* Supplier requirements retain merchant paragraphs and bullet lists. */
.sourcing-notes { overflow-wrap: anywhere; white-space: normal; }
.sourcing-notes p { margin: 0 0 10px; }
.sourcing-notes ul { list-style: disc; padding-left: 22px; margin: 10px 0; }
.sourcing-notes li { margin: 5px 0; }

/* A password field with its own show button. The button sits inside the
   field on the right, and the input leaves it room. */
.pwwrap { position: relative; }
.pwwrap > input { width: 100%; padding-right: 44px; }
.pwshow {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--text-muted); cursor: pointer;
}
.pwshow:hover { color: var(--text); }
.pwshow:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 1px; }
/* Merchant quote coverage: compact summary, details on demand. */
.quote-coverage-count{display:grid;gap:3px;font-size:12px;line-height:1.45}
.quote-coverage-count small{color:var(--text-muted);font-size:11px}
.variant-coverage [hidden],#pdPriceCard[hidden]{display:none!important}
.variant-coverage-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px}
.variant-coverage-summary h3{margin:0 0 4px;font:600 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;text-transform:none}
.variant-coverage-summary p{margin:0;font-size:12px;line-height:1.5}
.variant-coverage-muted{color:var(--text-muted)}
.variant-coverage-muted::before{content:" · "}
.variant-coverage-summary .btn{flex-shrink:0}
.variant-coverage-controls{padding:16px 20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-top:1px solid var(--border)}
.variant-coverage-controls label{display:grid;gap:6px;color:var(--text-muted);font-size:11px;letter-spacing:0;text-transform:none;font-weight:400}
.variant-coverage-controls .input{width:100%;min-width:0;height:38px;font-size:12px;border-radius:8px}
.variant-coverage-controls .variant-coverage-search{grid-column:1/-1}
.variant-coverage .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.variant-coverage-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}
.variant-coverage-table th,.variant-coverage-table td{padding:14px 20px;border-top:1px solid var(--border);vertical-align:top}
.variant-coverage-table thead th{color:var(--text-muted);font-size:10px;font-weight:500;letter-spacing:0;text-transform:none}
.variant-coverage-table tbody th{width:40%;font-weight:500;overflow-wrap:anywhere}
.variant-coverage-table tbody th .meta{display:block;margin-top:4px;font-size:10px}
.variant-coverage-table td:nth-child(2){width:28%}
.variant-quote-status{font-size:11px;line-height:1.5;color:var(--text-muted)}
.variant-quote-status.is-quoted{color:var(--good,#559b80)}
.variant-coverage-prices{display:grid;gap:4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.variant-coverage-link{background:none;border:0;padding:0;margin-top:6px;font:inherit;font-size:11px;color:var(--text-muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.variant-coverage-link:hover{color:var(--text)}
.variant-coverage-reason{margin-top:6px;font-size:11px;line-height:1.5;color:var(--text-muted)}
.variant-coverage-reason summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.variant-coverage-reason p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;max-width:32em}
.variant-coverage-footer{padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--text-muted);font-size:11px;border-top:1px solid var(--border)}
.variant-coverage-footer>div{display:flex;gap:6px}
.variant-coverage-empty{padding:12px 20px}
/* The price table, in a dialog of its own: a column per country beside each
   size, so the comparison somebody opens it for is one row read across. The
   variant column sticks when the countries run off the side. */
.sheet.is-xwide{width:min(1120px,calc(100vw - 32px))}
.ptable-head{display:flex;align-items:center;gap:12px;min-width:0}
.ptable-head h3{margin:0;font-size:15px;font-weight:600}
.ptable-head p{margin:3px 0 0;font-size:12.5px;color:var(--text-muted)}
.ptable-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;padding:2px 0 16px}
.ptable-controls label,.ptable-qty{display:grid;gap:6px;color:var(--text-muted);font-size:11px}
.ptable-controls .input{height:36px;min-width:170px;font-size:12px}
.ptable-controls .segmented button{padding:8px 14px;font-size:11px}
.ptable-search{flex:1 1 200px}
.ptable-search .input{width:100%}
.ptable{width:100%;border-collapse:separate;border-spacing:0;font-size:12.5px}
.ptable th,.ptable td{padding:12px 14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
.ptable thead th{position:sticky;top:0;z-index:2;background:var(--surface-1);color:var(--text-muted);font-size:10.5px;font-weight:500;white-space:nowrap}
.ptable th.num,.ptable td.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ptable tbody th{position:sticky;left:0;z-index:1;background:var(--surface-1);font-weight:500;min-width:214px}
.ptable thead th:first-child{left:0;z-index:3}
.ptable tbody th b{display:block}
.fw-addr{display:grid;gap:1px;margin:6px 0 2px;font-style:normal;font-size:12.5px;line-height:1.5;color:var(--text-muted)}
.fw-addr span:first-child{color:var(--text)}
.fw-scans{display:grid;gap:8px;margin:2px 0 10px}
.fw-scan{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}
.fw-scan>div{min-width:0}
.fw-scan-t{display:block;font-size:12.5px;line-height:1.4;color:var(--text-muted)}
.fw-scan-w{display:block;font-size:11px;color:var(--text-dim)}
.fw-scan time{flex:none;font-size:11.5px;color:var(--text-dim);white-space:nowrap}
.fw-scan.is-now .fw-scan-t{font-size:13.5px;font-weight:600;color:var(--text)}
.fw-scan.is-now time{color:var(--text)}
.fw-scan.is-now.is-bad .fw-scan-t{color:var(--bad)}
.fw-scan.is-before .fw-scan-t,.fw-scan.is-before time{color:var(--text-dim)}
.fw-all{margin:-2px 0 6px}
.fw-scans.is-all{gap:0}
.fw-scans.is-all .fw-scan{padding:10px 0;border-bottom:1px solid var(--border)}
.fw-scans.is-all .fw-scan:last-child{border-bottom:0}
.ptable-var{display:flex;align-items:center;gap:10px;min-width:0}
.ptable-var .pthumb{width:34px;height:34px;border-radius:8px}
.ptable-var .pthumb svg{width:24px;height:24px}
.ptable-var>div{min-width:0}
.ptable .meta{display:block;margin-top:3px;font-size:10.5px;color:var(--text-dim)}
.ptable td .dot{margin-right:7px;vertical-align:1px}
.ptable td[data-label="Status"]{white-space:nowrap;color:var(--text-muted)}
.ptable tr.ptable-off b{color:var(--text-muted)}
.ptable-why span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--text-dim);font-size:11.5px;line-height:1.5;max-width:60em}
.ptable tbody tr:last-child>*{border-bottom:0}
.ptable-foot{margin:12px 0 0;font-size:11.5px;color:var(--text-muted)}
@media(max-width:720px){
  .ptable-controls .input{min-width:0;width:100%}
  .ptable-controls label{flex:1 1 100%}
  .ptable tbody th{display:block;position:static;min-width:0;width:auto;background:none;padding:10px 14px 6px;border:0}
  .ptable tbody td.num{justify-content:space-between;flex-wrap:nowrap;align-items:flex-start}
  .ptable .ptc{display:grid;justify-items:end;gap:1px;text-align:right}
  .ptable .ptc .meta{margin:0}
  .ptable td.ptable-why::before{display:none}
}
@media(max-width:640px){
  .variant-coverage-summary{padding:16px;gap:10px;align-items:flex-start}
  .variant-coverage-muted{display:block}
  .variant-coverage-muted::before{content:""}
  .variant-coverage-controls{padding:14px 16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .variant-coverage-controls .variant-coverage-search{grid-column:auto;align-self:end}
  .variant-coverage .tablewrap{overflow:visible}
  .variant-coverage-table thead{display:none}
  .variant-coverage .variant-coverage-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;margin:0;padding:14px 16px;border:0;border-top:1px solid var(--border);border-radius:0}
  .variant-coverage .variant-coverage-table tbody th,.variant-coverage .variant-coverage-table td,.variant-coverage .variant-coverage-table td:nth-child(2){display:block;width:auto;padding:0;border:0}
  .variant-coverage .variant-coverage-table tbody th{grid-column:1;grid-row:1}
  .variant-coverage .variant-coverage-table td:nth-child(2){grid-column:1;grid-row:2}
  .variant-coverage .variant-coverage-table td:nth-child(3){grid-column:2;grid-row:1/3;text-align:right}
  .variant-coverage .variant-coverage-table tbody td::before{display:none}
  .variant-coverage-reason p{max-width:100%}
  .variant-coverage-prices{font-size:12px}
}

/* A price group in the console's quick view: one line to read, the table
   per country behind a press. */
details.pgroup { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 8px; background: var(--card); }
details.pgroup > summary {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; list-style: none;
}
details.pgroup > summary::-webkit-details-marker { display: none; }
details.pgroup > summary::before { content: "\25B8"; color: var(--text-dim); font-size: 11px; }
details.pgroup[open] > summary::before { content: "\25BE"; }
details.pgroup > summary:hover { background: var(--surface-2); }
details.pgroup .pgname { display: flex; flex-direction: column; min-width: 0; flex: 1; }
details.pgroup .pgname > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.pgroup .pgname .dim { font-size: 11.5px; }
details.pgroup .pgmeta { font-size: 11px; white-space: nowrap; }
details.pgroup .pgfrom { white-space: nowrap; font-weight: 600; }
details.pgroup .tablewrap { margin: 0; border-top: 1px solid var(--border); }
.qdetail .qhead { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.qdetail .qhead > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qdetail .qhead b { font-size: 15px; color: var(--text); }
.qdetail .qhead span { font-size: 12.5px; color: var(--text-muted); }
.qdetail .qhead .pthumb, html[data-density] .qdetail .qhead .pthumb:not(.is-lg) { width: 56px; height: 56px; border-radius: 10px; flex: none; }
html[data-density] .qdetail .qhead .pthumb:not(.is-lg) svg { width: 38px; height: 38px; }

/* A merchant confirmed before is told so on the claim: a mark, not money. */
.trustline { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 9px 11px; border: 1px solid var(--lc-line); border-radius: 10px; font-size: 12.5px; color: var(--text-muted); }
.trustline svg { flex: none; margin-top: 1px; color: var(--good); }

/* The product's state on a question row and over its conversation, as a tag
   rather than grey type: Quoted and Rejected are what the floor scans the
   list for, and a word in the quiet face read the same as the shop beside it. */
.tstate {
  display: inline-block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.5;
  white-space: nowrap;
}
.throw .tabout em.tstate { flex-shrink: 0; }
.ibabout .ibtxt span.tstate { align-self: flex-start; font-size: 9.5px; }
:is(.throw .tabout em, .ibabout .ibtxt span, *).tstate.is-good { background: var(--good-soft); color: var(--good-ink); }
:is(.throw .tabout em, .ibabout .ibtxt span, *).tstate.is-bad { background: var(--bad-soft); color: var(--bad); }
:is(.throw .tabout em, .ibabout .ibtxt span, *).tstate.is-warn { background: var(--warn-soft); color: var(--warn-ink); }
:is(.throw .tabout em, .ibabout .ibtxt span, *).tstate.is-dim { background: var(--surface-2); color: var(--text-dim); }

/* A priced product with sizes the factory could not make: said on the row in
   the colour of a refusal, small, because the product itself is fine. */
.offnote { color: var(--bad); }

/* --- the quick look on a product question --------------------------------
   Opened from the chat mark on a quote row, over the queue rather than
   instead of it. The head is the product the way a list draws one, larger:
   the photograph with the count of the rest on it, the name beside it. */
.qlookhead { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.qlookpic {
  position: relative; flex: none; width: 72px; height: 72px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-1); padding: 0; overflow: hidden; cursor: zoom-in;
}
.qlookpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qlookpic.is-drawn { cursor: default; display: grid; place-items: center; }
.qlookmore {
  position: absolute; right: 4px; bottom: 4px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em;
  padding: 1px 5px; border-radius: 4px;
  background: rgba(0, 0, 0, .72); color: #fff;
}
.qlookpic:hover .qlookmore { background: var(--accent-fill); }
.qlooktitle { min-width: 0; }
.qlooktitle h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qlooktitle p { margin: 3px 0 0; color: var(--text-dim); font-size: 12.5px; }
.qlookrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
/* Sixty sizes wrap to a box that scrolls rather than a wall that pushes the
   conversation off the screen. */
.qlooksizes { max-height: 92px; overflow-y: auto; margin: 0 0 12px; }
.qlooksizes .varchip { cursor: default; padding: 3px 8px; font-size: 11.5px; }
.qlooksizes .varchip.is-priced { color: var(--good-ink); border-color: color-mix(in srgb, var(--good) 40%, var(--border)); }
.qlooksizes .varchip.is-off { color: var(--bad); text-decoration: line-through; opacity: .8; }
.qlooktable { margin: 0 0 14px; }
.qlookchat { min-height: 120px; }
.qlook .notewrap { margin-bottom: 12px; }
/* Three ways on from here do not fit across a phone. */
.sheet:has(.qlook) .sheetfoot { flex-wrap: wrap; }
@media (max-width: 720px) {
  .sheet:has(.qlook) .sheetfoot .btn { flex: 1 1 auto; }
}

/* --- copy and paste said out loud ------------------------------------------
   A field something was copied out of flashes green once, and a plain copy
   mark keeps its tick while it says Copied rather than fading back out under
   the pointer it just left. The uploader says it takes a pasted picture. */
input.is-copied, textarea.is-copied { animation: copiedflash 700ms var(--ease); }
@keyframes copiedflash {
  from { border-color: var(--good); box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 35%, transparent); }
  to { box-shadow: 0 0 0 0 transparent; }
}
.copyable.is-plain.is-done svg { opacity: 1; }
.uploader .utxt .upaste { display: block; font-style: normal; font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* Ticking every size of one colour or one size at once, on the price form's
   cannot-be-sourced list. Each option is its own run of pills, and a pill
   fully ticked wears the tick's own red. */
.gonepick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 10px; }
.gonegroup { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.gonebtn.is-on { color: var(--accent-ink-on-soft); border-color: var(--accent-line); background: var(--accent-soft); }
.gonebtn.is-part { border-color: var(--accent-line); border-style: dashed; }
.qgone-all { margin: 10px 0 6px; max-width: 520px; }


/* Approved overview globe; tracking and the marketing globe keep their palette. */
.onway, .shipment-look {
  --globe-ground: var(--ow-ground); --globe-ink: var(--ow-ink);
  --globe-dot-lo: var(--ow-dot-lo); --globe-dot-hi: var(--ow-dot-hi);
  --globe-route-k: var(--ow-route-k); --globe-rim: var(--ow-rim); --globe-good: var(--ow-good);
  --globe-note-line: var(--ow-note-line); --globe-note-shadow: var(--ow-note-shadow);
  --globe-ic-bg: var(--ow-ic-bg); --globe-ic-line: var(--ow-ic-line);
}
.ow-side.ow-overview { padding: 26px; gap: 0; }
/* Fill the shared row even when the status copy is taller than the globe's
   preferred square. The canvas measures both axes, so the sphere stays round. */
@media(min-width:901px) { .onway .ow-globe { aspect-ratio:auto; min-height:520px; align-self:stretch; max-height:none; } }
.ow-overview .sp-total { display:flex;justify-content:space-between;align-items:end;margin-bottom:16px;gap:12px; }
.ow-overview .sp-kicker { font-size:10px;letter-spacing:1.1px;text-transform:uppercase;color:var(--text-dim);font-weight:500; }
.ow-overview .sp-total-line { display:flex;align-items:baseline;gap:10px; }
.ow-overview .sp-total-line>strong { font-size:45px;line-height:1.4;letter-spacing:-2px;font-weight:600; }
.ow-overview .sp-total-line>span { color:var(--text-muted);font-size:11px; }
.ow-overview .sp-context { font-size:9px;color:var(--text-dim);padding-bottom:10px; }
.ow-overview .sp-row { display:grid;grid-template-columns:34px minmax(0,1fr) auto 8px;gap:11px;align-items:center;border-bottom:1px solid var(--border);padding:9px 0;transition:background var(--fast); }
.ow-overview .sp-row:hover { background:var(--surface-1); }
.ow-overview .sp-row:last-child { border:0; }
.ow-overview .sp-icon { display:grid;place-items:center;width:32px;height:32px;background:var(--surface-1);border:1px solid var(--border);border-radius:9px;color:var(--text-dim); }
.ow-overview .sp-icon svg { width:16px;height:16px; }
.ow-overview .sp-row.red:not(.zero) .sp-icon,.ow-overview .sp-row.red:not(.zero) .sp-count { background:var(--accent-soft);color:var(--accent-ink-on-soft);border-color:var(--accent-line); }
.ow-overview .sp-row.blue:not(.zero) .sp-icon,.ow-overview .sp-row.blue:not(.zero) .sp-count { background:var(--info-soft);color:var(--info-ink);border-color:var(--border); }
.ow-overview .sp-row-copy b { display:block;font-size:11px;font-weight:500; }
.ow-overview .sp-row-copy small { display:block;font-size:9px;color:var(--text-dim);margin-top:2px;overflow-wrap:anywhere; }
.ow-overview .sp-count { min-height:27px;min-width:29px;padding:0 5px;border-radius:7px;background:var(--surface-1);font-size:14px;font-weight:600;display:grid;place-items:center;font-variant-numeric:tabular-nums; }
.ow-overview .zero .sp-count { background:none;color:var(--text-dim);font-weight:400; }
.ow-overview .sp-arrow { color:var(--text-dim);font-size:17px; }
.ow-overview .sp-attention { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding:12px 13px;background:var(--good-soft);border:1px solid var(--border);border-radius:9px;margin-top:16px;font-size:10px; }
.ow-overview .sp-attention>span:first-child { display:flex;align-items:center;gap:7px; }
.ow-overview .sp-attention i { display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--good);flex:none; }
.ow-overview .sp-attention strong { font-size:13px;font-weight:500;grid-column:2;grid-row:1/3; }
.ow-overview .sp-note { font-size:9px;color:var(--text-muted);overflow-wrap:anywhere; }
.ow-overview .sp-attention.has-problems { background:var(--warn-soft); }
.ow-overview .sp-attention.has-problems i { background:var(--warn); }
.ow-overview .sp-attention.has-problems strong { color:var(--warn-ink); }
.ow-overview .sp-metrics { display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:auto;padding-top:20px; }
.ow-overview .sp-metrics>div+div { border-left:1px solid var(--border);padding-left:20px; }
.ow-overview .sp-metrics span { display:block;font-size:9px;color:var(--text-dim); }
.ow-overview .sp-metrics strong { font-size:23px;letter-spacing:-.7px;font-weight:500;display:block;margin-top:3px; }
.ow-overview .sp-metrics small { font-size:11px;font-weight:400;letter-spacing:0;color:var(--text-muted); }
@media(min-width:901px) and (max-width:1150px) { .ow-side.ow-overview { padding:22px; } .ow-overview .sp-context { display:none; } .ow-overview .sp-row { gap:8px; } }
@media(max-width:900px) { .ow-overview .sp-metrics { margin-top:20px; } .ow-overview .sp-row { padding:13px 0; } }
@media(max-width:600px) { .ow-side.ow-overview { padding:22px; } .ow-overview .sp-context { font-size:8px; } }

/* Tracking shares the overview's status language, with one reported stage
   instead of aggregate counts. The full journey remains available on demand. */
.tracking-page #tabs { gap:6px; border:0; padding-bottom:8px; }
.tracking-page #tabs .tabb { border:1px solid var(--border); border-radius:9px; padding:9px 12px; background:var(--card); font-size:11px; }
.tracking-page #tabs .tabb::after { display:none; }
.tracking-page #tabs .tabb[aria-selected="true"] { background:var(--accent-soft); border-color:var(--accent-line); color:var(--accent-ink-on-soft); }
.tracking-page #tabs .tcount { border-radius:6px; }
.tracking-page .trk-side { overflow:hidden; padding:0; }
.tracking-page .fw-body { padding:20px; }
.tracking-page .fw-head { margin-bottom:10px; }
.tracking-page .fw-head>.strong { font:600 20px var(--font-display); letter-spacing:-.5px; }
.tracking-page .fw-addr { margin-bottom:16px; font-size:11px; }
.tracking-page .fw-globe { border-radius:0; }
.tracking-page .fw-scans { margin-top:16px; gap:12px; }
.tracking-page .fw-scan { flex-direction:column; gap:3px; padding-left:12px; border-left:2px solid var(--border); }
.tracking-page .fw-scan.is-now { border-left-color:var(--accent-line); }
.tracking-page .fw-scan.is-now.is-bad { border-left-color:var(--warn); }
.tracking-page .fw-scan.is-now .fw-scan-t { font-size:12px; font-weight:500; }
.tracking-page .fw-scan time { font:10px var(--font-display); color:var(--text-dim); }
.ow-overview .sp-parcel-current { grid-template-columns:34px minmax(0,1fr) auto; gap:10px; padding:12px; background:var(--surface-1); border:1px solid var(--border); border-radius:10px; }
.ow-overview .sp-state { font-size:9px; font-weight:500; color:var(--text-muted); padding:4px 6px; border-radius:6px; background:var(--surface-1); white-space:nowrap; }
.ow-overview .sp-parcel-current.red { background:var(--accent-soft); border-color:var(--accent-line); }
.ow-overview .sp-parcel-current.blue { background:var(--info-soft); }
.ow-overview .amber .sp-icon,.ow-overview .sp-parcel-current.amber { background:var(--warn-soft); color:var(--warn-ink); }
.ow-overview .green .sp-icon,.ow-overview .sp-parcel-current.green { background:var(--good-soft); color:var(--good-ink); }
.ow-overview .sp-journey { margin:10px 0 16px; }
.ow-overview .sp-journey summary { display:flex; justify-content:space-between; gap:12px; cursor:pointer; color:var(--text-muted); font-size:10px; padding:7px 0; list-style:none; }
.ow-overview .sp-journey summary::-webkit-details-marker { display:none; }
.ow-overview .sp-journey[open] summary>span { transform:rotate(180deg); }
.ow-overview .sp-journey ol { padding:0; margin:4px 0 0; list-style:none; }
.ow-overview .sp-journey .sp-row { grid-template-columns:34px minmax(0,1fr) auto; padding:7px 0; }
.ow-overview .sp-journey .sp-row:hover { background:none; }
.ow-overview .sp-journey .zero { color:var(--text-dim); }
.ow-overview .sp-parcel-test { padding:12px; border-radius:9px; background:var(--warn-soft); color:var(--warn-ink); font-size:11px; }
.shipment-look .fw-dot.is-good { background:var(--good); }
.tracking-page .pside.shipment-look { display:block; position:static; border:1px solid var(--border); border-radius:14px; overflow:hidden; }
@media(max-width:900px) { .tracking-page .psheet>.shipment-look { order:-1; margin-bottom:18px; } }

/* Product quality reviews: one compact comparison row per product. */
.quality-policy { --bt: var(--info); margin: 0 0 18px; }
.quality-tools { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.quality-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text-muted); }
.quality-search input { width: 100%; border: 0; background: transparent; padding: 11px 0; color: var(--text); font: inherit; outline: none; }
.quality-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.quality-tools select { flex: 0 0 auto; width: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; }
.quality-table { overflow: hidden; border-radius: 12px; padding: 0; }
.quality-columns, .quality-line { display: grid; grid-template-columns: minmax(230px, 1.15fr) minmax(140px, .7fr) minmax(260px, 1fr); gap: 24px; align-items: center; padding: 16px 20px; }
.quality-columns { padding-top: 13px; padding-bottom: 13px; background: var(--surface-1); color: var(--text-muted); font-size: 11px; font-weight: 600; }
.quality-line { min-height: 100px; border-top: 1px solid var(--border); }
.quality-product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.quality-product-name { min-width: 0; display: grid; gap: 7px; }
.quality-product-name a, .quality-product-name strong { color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.quality-product-name a:hover { text-decoration: underline; }
.quality-product-name select { border: 0; border-radius: 4px; padding: 2px 18px 2px 0; color: var(--text-muted); background: var(--card); font: inherit; font-size: 11px; max-width: 100%; }
.quality-thumbs { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.quality-thumb { width: 54px; height: 62px; flex-shrink: 0; padding: 0; position: relative; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; background: var(--surface-1); cursor: zoom-in; }
.quality-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quality-thumb.is-loading { cursor: default; background: var(--surface-2); animation: spcardPulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .quality-thumb.is-loading { animation: none; } }
.quality-thumb span { position: absolute; bottom: 3px; right: 3px; background: var(--card); color: var(--text); border-radius: 4px; font-size: 10px; font-weight: 600; padding: 1px 4px; }
.quality-supplier { display: flex; align-items: center; gap: 12px; }
.quality-textbutton { background: none; border: 0; padding: 0; font: inherit; font-size: 11px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quality-row-decision { display: grid; gap: 9px; }
.quality-row-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.quality-row-status .hint { font-size: 10px; }
.quality-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.quality-actions .btn { white-space: nowrap; font-size: 11px; padding: 6px 10px; }
.quality-row-error, #qualityError { color: var(--accent-ink-on-soft); font-size: 12px; }
.quality-row-error:empty { display: none; }
.quality-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 14px 0; font-size: 12px; }
.quality-pagination > span:first-child { margin-right: auto; color: var(--text-muted); }
.quality-empty { padding: 32px; color: var(--text-muted); text-align: center; }
.quality-conversation { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.quality-conversation summary { cursor: pointer; font-weight: 500; margin-bottom: 12px; }
.quality-details { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.quality-details dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.quality-details dt { color: var(--text-muted); text-transform: capitalize; }
.quality-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 1200px) {
  .quality-columns, .quality-line { grid-template-columns: minmax(180px, 1.1fr) minmax(110px, .65fr) minmax(180px, 1fr); gap: 14px; padding-left: 14px; padding-right: 14px; }
  .quality-product [data-listing] .quality-thumb:nth-child(2) { display: none; }
  .quality-supplier { flex-wrap: wrap; gap: 5px; }
  .quality-thumb { width: 46px; height: 54px; }
}
@media (max-width: 760px) {
  .quality-columns { display: none; }
  .quality-line { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 16px; }
  .quality-line:first-of-type { border-top: 0; }
  .quality-row-decision { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
  .quality-row-error { width: 100%; }
  .quality-tools { align-items: stretch; }
  .quality-tools select { max-width: 140px; font-size: 12px; }
  .quality-search input { font-size: 12px; }
  .quality-supplier { flex-direction: column; align-items: flex-end; }
}
/* The quick check over an order: one block per product, the listing beside
   the supplier's photographs, then the answers. A dialog is narrow, so the
   two sets sit side by side and wrap rather than take the page's columns. */
.quality-quick { display: grid; gap: 12px; }
.quality-quickline { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); min-width: 0; }
.quality-quick-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; min-width: 0; }
.quality-quick-head a, .quality-quick-head strong { color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.quality-quick-head a:hover { text-decoration: underline; }
.quality-quick-photos { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.quality-quick-photos > div { display: grid; gap: 6px; }
.quality-quick-label { color: var(--text-muted); font-size: 11px; font-weight: 600; }
.quality-quick-missing { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--text); font-size: 12px; }

/* Product quote overview: photography and factory facts before delivered prices. */
.quote-product-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.quote-product-top, .quote-product-layout > #pdSizes { grid-column: 1 / -1; min-width: 0; }
.quote-product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.quote-product-visual, .quote-product-details { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.quote-product-visual > *, .quote-product-details > *, .quote-gallery { min-width: 0; max-width: 100%; }
.quote-product-visual .pdhead { flex-wrap: wrap; }
.quote-gallery-main { display: block; width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0; background: var(--surface-1); overflow: hidden; cursor: zoom-in; }
.quote-gallery-main img { display: block; width: 100%; height: 390px; object-fit: contain; }
.quote-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; }
.quote-gallery-thumbs button { flex: 0 0 64px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--surface-1); }
.quote-gallery-thumbs button[aria-pressed="true"] { border-color: #cf3a29; }
.quote-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.quote-status-tabs { display: flex; gap: 20px; padding: 0 16px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.quote-status-tabs button { padding: 12px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-muted); white-space: nowrap; cursor: pointer; font: inherit; font-size: 13px; }
.quote-status-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: #cf3a29; font-weight: 600; }
.quote-shipping .ptable-controls { padding: 16px; margin: 0; }
.quote-shipping .ptable-controls input { width: 90px; }
.quote-shipping .ptable { min-width: 700px; }
.quote-shipping .ptable td { vertical-align: middle; }
@media (max-width: 760px) {
  .quote-product-layout, .quote-product-top { grid-template-columns: minmax(0, 1fr); }
  .quote-gallery-main img { height: 320px; }
}

.quote-shipping .ptable-foot { margin: 0; padding: 12px 16px; }
.quote-product-layout .tablewrap { overflow-x: auto; }
@media (max-width: 720px) {
  .quote-product-layout .tablewrap table { display: table; width: 100%; }
  .quote-product-layout .tablewrap thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .quote-product-layout .tablewrap tbody { display: table-row-group; }
  .quote-product-layout .tablewrap tr { display: table-row; margin: 0; padding: 0; border: 0; }
  .quote-product-layout .tablewrap th, .quote-product-layout .tablewrap td { display: table-cell; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .quote-product-layout .tablewrap td::before { display: none; }
  .quote-product-layout .ptable tbody th { min-width: 190px; }
  .quote-shipping .ptable-controls label { flex: 0 1 auto; }
}

.quote-shipping .quote-unavailable .pthumb { outline: 2px solid #cf3a29; outline-offset: 1px; }

/* Dense sourcing queue: essential information fits without a horizontal table. */
.sourcing-list { border: 1px solid var(--border, #ddd); border-radius: 10px; background: var(--card); overflow: hidden; margin-bottom: 12px; }
.sourcing-row { display: grid; grid-template-columns: minmax(120px, .85fr) minmax(0, 1.7fr) minmax(110px, 1fr) minmax(120px, .9fr) 88px; gap: 12px; align-items: center; padding: 8px 14px; min-width: 0; }
.sourcing-row > * { min-width: 0; }
.sourcing-labels { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); background: var(--bg, #f5f5f5); }
.sourcing-entry + .sourcing-entry { border-top: 1px solid var(--border, #ddd); }
.sourcing-ref .btn { padding: 0; font-size: 11px; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.sourcing-row .hint { margin: 2px 0 0; font-size: 11px; }
.sourcing-product { display: flex; align-items: center; gap: 8px; }
.sourcing-product > div { min-width: 0; }
.sourcing-product .pthumb { width: 32px; height: 36px; flex: 0 0 32px; }
.sourcing-product strong, .sourcing-product .hint { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.sourcing-row .badge { white-space: normal; font-size: 10px; }
.sourcing-extra { padding: 0 14px 5px; font-size: 11px; }
.sourcing-extra summary { cursor: pointer; color: var(--text-dim); width: fit-content; }
.sourcing-extra-body { padding: 6px 0; overflow-wrap: anywhere; }
.sourcing-extra-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid var(--border, #ddd); }
@media (max-width: 800px) { .sourcing-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 7px; } .sourcing-labels { display: none; } .sourcing-row > :last-child { justify-self: end; grid-column: 2; } .sourcing-extra-item { flex-wrap: wrap; } }

.sourcing-unavailable .pthumb { outline: 2px solid #cf3a29; outline-offset: 1px; }
.sourcing-merchant { font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.sourcing-store { color: var(--text-dim); overflow-wrap: anywhere; }
.sourcing-extra-item > div { flex: 1; min-width: 0; }

.sourcing-store-customer { font-size: 12px; overflow-wrap: anywhere; }
.sourcing-store-customer strong { font-weight: 600; }
.sourcing-store-customer .hint { color: var(--text-dim); }

.sourcing-ref { position: relative; padding-left: 18px; }
.sourcing-toggle { position: absolute; left: -5px; top: 0; width: 23px; height: 23px; padding: 0; border: 0; background: transparent; color: var(--text-muted); font-size: 15px; cursor: pointer; }
.sourcing-toggle:focus-visible { outline: 2px solid var(--text-muted); border-radius: 3px; }
.sourcing-extra[hidden] { display: none; }

/* Keep partially sourced products scanable regardless of variant count. */
#partialTable table { table-layout: fixed; width: 100%; }
#partialTable th:nth-child(1) { width: 35%; }
#partialTable th:nth-child(2) { width: 20%; }
#partialTable th:nth-child(3) { width: 30%; }
#partialTable th:nth-child(4) { width: 15%; }
#partialTable td { padding: 7px 10px; vertical-align: middle; }
#partialTable .prodcell { gap: 8px; min-width: 0; }
#partialTable .prodcell > div { min-width: 0; }
#partialTable .pthumb { width: 28px; height: 32px; flex: 0 0 28px; }
#partialTable .prodcell strong, #partialTable .hint, #partialTable .partial-variants {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; line-height: 17px;
}
#partialTable .btn { padding: 4px 8px; font-size: 11px; white-space: nowrap; }

#partialTable .partial-more { border: 0; background: none; padding: 0; color: #b92f22; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
#partialTable .partial-more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#partialTable .partial-remaining { margin: 5px 0 0; padding-left: 16px; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }

/* --- grouped lists: the settings vocabulary ------------------------------
   Apple's grouped inset list and Shopify's settings cards are the same idea:
   a short caption over a rounded group, rows inside it divided by a hairline
   that starts where the text starts, and a footnote under it. One vocabulary
   for every screen that is a set of settings or a statement, so a row reads
   the same on the platform's settings and on the commission screen.

   .gsect      one section: a head (.gsect-head h2 + p) and its groups
   .gcap       the caption over a group, sentence case, quiet
   .glist      the group: a card with rows
   .grow       a row: .grow-main (.grow-title, .grow-sub), then .grow-value
               and/or .grow-act at the right; a/button.grow is pressable
               and may end in .chev
   .gfoot      the footnote under a group
   .seg        a segmented control in the body face (U.periods keeps its own)
   .gswitch    a switch for the right edge of a row (an input[type=checkbox])
   .savebar    the bar that holds unsaved changes, fixed at the foot
   .hero       a statement's one big figure */
.gsect { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gsect + .gsect { margin-top: 30px; }
.gsect-head { margin: 0 0 10px; }
.gsect-head h2 { font-size: 19px; font-weight: 650; letter-spacing: -.015em; margin: 0; color: var(--text); }
.gsect-head p { font-size: 13.5px; color: var(--text-muted); margin: 4px 0 0; line-height: 1.5; max-width: 62ch; }
.gcap { font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin: 14px 4px 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gcap:first-child { margin-top: 0; }
.gcap .right { font-weight: 500; color: var(--text-dim); }
.gfoot { font-size: 12.5px; color: var(--text-dim); margin: 6px 4px 0; line-height: 1.5; max-width: 70ch; }
.glist {
  background: var(--card);
  border: 1px solid var(--lc-line, var(--border));
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-width: 0;
}
.glist.is-empty { padding: 22px 16px; text-align: center; font-size: 13px; color: var(--text-dim); }
.grow {
  display: flex; align-items: center; gap: 14px;
  min-height: 50px; padding: 11px 16px;
  position: relative; min-width: 0;
  color: inherit; text-decoration: none; text-align: left;
  width: 100%; background: transparent; border: 0; font: inherit;
}
.grow + .grow::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 0;
  border-top: 1px solid var(--border);
}
.grow.is-indent + .grow::before, .grow + .grow.is-indent::before { left: 62px; }
a.grow, button.grow, label.grow { cursor: pointer; transition: background var(--fast); }
/* Every label carries a form's bottom margin, which in a row lifts the words
   off the middle of it. */
label.grow, .grow label { margin-bottom: 0; }
a.grow:hover, button.grow:hover, label.grow:hover { background: var(--card-hover); }
a.grow:focus-visible, button.grow:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.grow-icon {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-muted);
}
.grow-icon svg { width: 16px; height: 16px; }
.grow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.grow-title { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; }
.grow-sub { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.grow-value { font-size: 14px; color: var(--text-muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.grow-value.is-strong { color: var(--text); font-weight: 600; }
.grow-act { display: flex; align-items: center; gap: 8px; flex: none; }
.grow .chev { width: 14px; height: 14px; flex: none; color: var(--text-dim); }
/* A row that holds a field: the label on the left, the field filling the
   rest, the way a form inside a grouped list reads. Stacked on a phone. */
.grow.is-field { align-items: center; }
.grow.is-field > label, .grow.is-field > .grow-label {
  flex: 0 0 190px; font-size: 14px; font-weight: 500; color: var(--text);
}
.grow.is-field > .grow-input { flex: 1; min-width: 0; }
.grow.is-field input:not([type=checkbox]):not([type=radio]), .grow.is-field select, .grow.is-field textarea {
  width: 100%; min-width: 0;
  background: var(--field-bg); color: var(--text);
  border: 1px solid var(--field-border); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 14px;
}
.grow.is-field input:focus, .grow.is-field select:focus, .grow.is-field textarea:focus {
  outline: none; border-color: var(--border-focus); background: var(--field-bg-focus);
}
.grow.is-field .grow-input .hint { font-size: 12px; color: var(--text-dim); margin-top: 5px; }
.grow.is-stack { flex-direction: column; align-items: stretch; gap: 10px; }
@media (max-width: 720px) {
  .grow.is-field { flex-direction: column; align-items: stretch; gap: 7px; }
  .grow.is-field > label, .grow.is-field > .grow-label { flex: none; font-size: 13px; color: var(--text-muted); }
  .grow-value { white-space: normal; }
}

/* A switch for the right edge of a row. Green when on, the way a switch is
   read everywhere else, because the accent is spent on status. Named with
   the element as well: the generic `input[type="checkbox"]` rule is a
   class's worth plus an element, and on the class alone it sized the switch
   to nothing and drew a line and a dot. */
.gswitch, input.gswitch {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 44px; height: 26px; border-radius: 13px; position: relative; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  transition: background var(--fast), border-color var(--fast);
}
.gswitch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform var(--med);
}
.gswitch:checked { background: var(--good); border-color: var(--good); }
.gswitch:checked::after { transform: translateX(18px); }
.gswitch:focus-visible { outline: none; box-shadow: var(--ring); }
.gswitch:disabled { opacity: .45; cursor: not-allowed; }

/* A segmented control in the body face. Sliding is the browser's job: the
   chosen segment is a raised pill on a grey track. White on the light track;
   on the dark one a step lighter than the track rather than the card's near
   black, which sank below it and left only the weight of the words saying
   which one is on. Scoped by the attribute, as every colour token is, so
   the dark menu inside a light page draws the dark one. */
:root, [data-theme="dark"] { --seg-on: #2c2c31; }
[data-theme="light"] { --seg-on: #ffffff; }
.seg {
  display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px;
  background: var(--surface-2); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  border: 0; background: transparent; color: var(--text-muted);
  font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap;
  padding: 6px 14px; border-radius: 7px; cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] {
  background: var(--seg-on); color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04);
}
.seg button:focus-visible { outline: none; box-shadow: var(--ring); }
.seg button .n { margin-left: 6px; font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.seg.is-block { display: flex; }
.seg.is-block button { flex: 1; }

/* The bar that holds unsaved changes. It floats at the foot of the content,
   where a thumb is, and says what pressing does. */
.savebar {
  position: fixed; z-index: 60;
  left: calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2); bottom: 22px;
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px;
  padding: 9px 9px 9px 18px; border-radius: 14px;
  background: #1d1d1f; color: #f5f5f7;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform var(--med), opacity var(--med);
  max-width: calc(100vw - var(--sidebar-w) - 32px);
}
.savebar.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.savebar .sb-text { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.savebar .btn.quiet { color: #f5f5f7; }
@media (max-width: 900px) {
  .savebar { left: 50%; max-width: calc(100vw - 24px); bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .savebar { transition: none; } }

/* A statement's one figure: what is owed, said large, with what it covers
   beside it. The numeral is the editorial face, the way a KPI's is. */
.hero { padding: 22px 22px 20px; display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.hero-label { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.hero-amount { font-size: clamp(34px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.hero-meta { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 720px) { .hero-side { align-items: stretch; width: 100%; } }

/* --- block: commission screen (assets/commission.js) --------------------- */
/* A statement rather than a dashboard: one figure, three quiet ones under
   it, then a single control choosing how to look into it. The red is spent
   once, on the press that moves money, and everything else is type, space
   and a hairline. The grouped-list vocabulary above draws the rows; what is
   here is the statement's own shape. */
.comm { display: flex; flex-direction: column; min-width: 0; }
.comm-num { font-variant-numeric: tabular-nums; }
.comm-view[hidden] { display: none; }

/* The compact rhythm pads every card, so the hero says its own padding with
   enough weight to win, and keeps the room a statement's figure needs. */
.comm .card.comm-hero {
  margin: 0; padding: 26px 28px 24px; border-radius: 14px;
  align-items: flex-end; gap: 20px 32px;
}
.comm-hero-main { display: flex; flex-direction: column; min-width: 0; }
.comm-hero-main .skel { display: block; }
.comm-hero-main .skel.num { height: 44px; width: 220px; margin: 8px 0 10px; }
.comm-hero .hero-label { font-size: 13.5px; margin-bottom: 8px; }
.comm-hero .hero-amount { font-size: clamp(38px, 4.6vw, 52px); }
.comm-hero .hero-meta { font-size: 13.5px; margin-top: 10px; }
.comm-hero .hero-side { gap: 12px; }
.comm-hero .hero-side .btn { min-width: 172px; height: 38px; font-size: 13.5px; }
.comm-hero-note { font-size: 12.5px; color: var(--text-dim); text-align: right; }
.comm-due {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px; border-radius: 14px;
  background: var(--surface-2); color: var(--text-muted);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.comm-due svg { flex: none; opacity: .8; }
.comm-due.is-late { background: var(--warn-soft); color: var(--warn-ink); }

/* Three figures in one group, divided the way a statement's columns are. */
.comm-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.comm-fig { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 15px 20px 16px; }
.comm-fig + .comm-fig::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; border-left: 1px solid var(--border); }
.comm-fig-label { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.comm-fig-value {
  font-size: 21px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25;
  color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.comm-fig-foot { font-size: 12px; color: var(--text-dim); }
.comm-fig.is-warn .comm-fig-value { color: var(--warn-ink); }

.comm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.comm-bar .seg button { min-width: 108px; }

/* Tables run to the edges of their card, the first and last words where a
   row's words start, and the card is the group's radius rather than a
   card's. */
.comm .card.pad-0 { padding: 0; border-radius: 12px; border-color: var(--lc-line, var(--border)); overflow: hidden; }
.comm .card.pad-0 th:first-child, .comm .card.pad-0 td:first-child { padding-left: 18px; }
.comm .card.pad-0 th:last-child, .comm .card.pad-0 td:last-child { padding-right: 18px; }
.comm .card.pad-0 td { color: var(--text-muted); }
.comm .card.pad-0 td b.comm-num { color: var(--text); font-weight: 600; }
.comm .card.pad-0 td .chev { display: block; margin-left: auto; color: var(--text-dim); }
.comm .card.pad-0 tr.clickable:hover .chev { color: var(--text-muted); }
.comm .mpill b { font-weight: 500; }
.comm .comm-num.is-minus, .comm b.is-minus { color: var(--bad); }
.comm-mk { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.comm-mk b { font-weight: 500; color: var(--text); white-space: nowrap; }
.comm-mk span { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.comm-date { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; color: var(--text); font-variant-numeric: tabular-nums; }
.comm-date i { font-style: normal; font-size: 12px; color: var(--text-dim); }
a.comm-ref { color: var(--text); font-weight: 500; text-decoration: none; }
a.comm-ref:hover { text-decoration: underline; text-underline-offset: 3px; }
a.comm-ref:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.comm-ref + .badge { margin-left: 6px; vertical-align: 1px; }

.comm-filter { margin-bottom: 12px; }
.comm-filter select { min-width: 190px; }
.comm-more { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.comm-more:empty { display: none; }
.comm-more-note { font-size: 13px; color: var(--text-dim); }
.comm-more-note.is-bad { color: var(--bad); }

/* The total under the list, said the way a statement closes. */
.comm-sum {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 24px; margin-top: 12px; padding: 14px 18px;
}
.comm-sum-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.comm-sum-head b { font-size: 14px; font-weight: 600; color: var(--text); }
.comm-sum-head span { font-size: 12.5px; color: var(--text-dim); }
.comm-sum-cells { display: flex; gap: 32px; }
.comm-sum-cells > span { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.comm-sum-cells i { font-style: normal; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.comm-sum-cells b { font-size: 15px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.comm-sum-cells .is-strong b { font-weight: 650; color: var(--text); }

/* Payouts, the way a wallet lists what went out: a mark for where it
   stands, what it covered, and the amount on the right. */
.comm-pay { min-height: 62px; }
.comm-pay-ico {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--warn-soft); color: var(--warn-ink);
}
.comm-pay.is-confirmed .comm-pay-ico { background: var(--good-soft); color: var(--good-ink); }
.comm-pay.is-declined .comm-pay-ico { background: var(--bad-soft); color: var(--bad); }
.comm-pay .grow-title { font-weight: 600; }
.comm-pay .grow-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-pay-state { display: none; font-size: 12.5px; font-weight: 500; }
.comm-pay-state.is-warn { color: var(--warn-ink); }
.comm-pay-state.is-good { color: var(--text-dim); font-weight: 400; }
.comm-pay-state.is-bad { color: var(--bad); }
.comm-pay-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.comm-pay-side b { font-size: 15px; font-weight: 600; color: var(--text); }
.comm-pay.is-declined .comm-pay-side b { color: var(--text-dim); text-decoration: line-through; text-decoration-thickness: 1px; }
.comm-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 34px 20px; }
.comm-empty b { font-size: 14.5px; font-weight: 600; color: var(--text); }
.comm-empty span { max-width: 46ch; line-height: 1.5; }

/* Who in China may see it. Settings links here, so it lands under the bar
   that holds the menu button on a phone and the band over the content on a
   desk, the way every other jump target does. */
.comm-access { margin-top: 44px; scroll-margin-top: calc(var(--topbar-h) + var(--inset) + 16px); }
.comm-acc { min-height: 62px; }
.comm-acc .grow-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.comm-acc-title { font-size: 12.5px; font-weight: 400; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; }
.comm-acc .grow-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-acc.is-off .avat, .comm-acc.is-off .grow-main { opacity: .55; }
.comm-acc.is-busy .gswitch { opacity: .6; pointer-events: none; }

/* --- the sheets ---------------------------------------------------------- */
.comm-overlay .sheetbody { padding: 18px 20px 20px; }
.comm-sheet { display: flex; flex-direction: column; min-width: 0; }
.comm-sheet .gcap { margin-top: 18px; }
.comm-sheet > .gcap:first-child { margin-top: 0; }
.comm-sheet .grow.is-field > label { flex-basis: 150px; }
.comm-sheet .grow[hidden] { display: none; }
.comm-sheet .banner, .comm-sheet .notice { margin: 14px 0 0; }
.comm-said:empty { display: none; }
.comm-said .notice { margin-top: 14px; }
.comm-sheet .seg.is-block { margin-bottom: 16px; }
.comm-sheet .seg[hidden] { display: none; }
.comm-sheet input.is-bad { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }

/* The figure a sheet is about, said once and large. */
.comm-big { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 2px; }
.comm-big.is-center { align-items: center; text-align: center; padding: 8px 0 4px; }
.comm-big .skel.num { height: 38px; width: 180px; }
.comm-big-amount {
  font-size: 38px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.comm-big-sub { font-size: 13.5px; color: var(--text-muted); }
.comm-big-note { font-size: 13px; font-weight: 500; color: var(--warn-ink); }
.comm-big.is-center .badge { margin-top: 4px; }

/* A fact and its value on one line, the value free to wrap under a long
   reference rather than push the sheet sideways. */
.comm-facts { margin-top: 18px; }
.comm-facts .grow { min-height: 46px; }
.comm-fact-k { flex: none; width: 150px; color: var(--text-muted); font-weight: 400; }
.comm-fact-v { flex: 1; min-width: 0; text-align: right; white-space: normal; color: var(--text); }
.comm-fact-v .copyable { margin-left: auto; }
/* A fact is not a table row, so nothing under the pointer would ever show
   the icon that says the reference can be copied, and the space it holds
   left the reference short of every value above and below it. */
.comm-fact-v .copyable.is-plain svg { opacity: 1; }
.comm-wrap { overflow-wrap: anywhere; }
.comm-total-row .grow-title { font-weight: 600; }
.comm-evidence .evshots { margin: 0; }
.comm-proof .filelist:empty { display: none; }

/* A number with its unit, euros in front and a percentage behind. */
.comm-unit { position: relative; display: block; max-width: 200px; }
.comm-unit i {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 14px; color: var(--text-dim); pointer-events: none;
}
.comm-unit i:first-child { left: 11px; }
.comm-unit.is-after i { right: 12px; }
.comm-sheet .grow.is-field .comm-unit input { padding-left: 28px; font-variant-numeric: tabular-nums; }
.comm-sheet .grow.is-field .comm-unit.is-after input { padding-left: 10px; padding-right: 30px; }
.comm-preview { margin: 12px 4px 0; font-size: 13.5px; color: var(--text); min-height: 1.4em; font-variant-numeric: tabular-nums; }
.comm-preview:empty { min-height: 0; margin: 0; }

/* --- a phone ------------------------------------------------------------ */
.comm-prow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0; }
.comm-prow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.comm-prow-main b { font-size: 14.5px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-prow-main > span { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-prow-main > .comm-prow-tag { display: flex; margin-top: 2px; }
.comm-prow-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.comm-prow-side b { font-size: 14.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.comm-prow-side b.is-minus { color: var(--bad); }
.comm-prow-side span { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.comm-prow .chev { flex: none; color: var(--text-dim); }

/* The same switch on an account's own sheet, on the staff screen. */
.acc-finance { margin-top: 14px; }
.acc-finance .grow { min-height: 58px; }

@media (max-width: 1100px) {
  .comm-sum-cells { gap: 22px; }
}
@media (max-width: 720px) {
  .comm .card.comm-hero { padding: 20px 18px 18px; flex-direction: column; align-items: stretch; gap: 18px; }
  .comm-hero .hero-amount { font-size: 40px; }
  .comm-hero .hero-side { align-items: stretch; width: 100%; }
  .comm-hero .hero-side .btn { width: 100%; height: 44px; }
  .comm-due { align-self: flex-start; }
  .comm-hero-note { text-align: left; }

  /* On a phone the three figures are three rows of one group, the label
     on the left and the figure on the right, as a settings list reads. */
  .comm-figs { grid-template-columns: 1fr; }
  .comm-fig {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    column-gap: 12px; row-gap: 1px; padding: 12px 16px;
  }
  .comm-fig-label { grid-column: 1; grid-row: 1; font-size: 14px; color: var(--text); }
  .comm-fig-foot { grid-column: 1; grid-row: 2; }
  .comm-fig-value { grid-column: 2; grid-row: 1 / span 2; font-size: 16px; font-weight: 600; }
  .comm-fig + .comm-fig::before { left: 16px; right: 0; top: 0; bottom: auto; border-left: 0; border-top: 1px solid var(--border); }

  .comm-bar { margin: 24px 0 12px; }
  .comm-bar .seg { display: flex; width: 100%; }
  .comm-bar .seg button { flex: 1; min-width: 0; padding: 8px 6px; min-height: 40px; }

  /* The shared table stacks every row into a card of its own, which inside
     a card is a box in a box. Here a row is a line of the list it sits in. */
  .comm .card.pad-0 .tablewrap tbody tr { border: 0; border-radius: 0; margin: 0; padding: 0; background: none; }
  .comm .card.pad-0 .tablewrap tbody tr + tr { border-top: 1px solid var(--border); }
  .comm .card.pad-0 .tablewrap tbody tr.clickable:active { background: var(--card-hover); }

  .comm-filter { flex-direction: column; align-items: stretch; }
  .comm-filter .search, .comm-filter select, .comm-filter .comm-export { width: 100%; min-width: 0; }
  .comm-filter .comm-export { height: 38px; }

  .comm-sum { flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .comm-sum-cells { flex-direction: column; gap: 6px; }
  .comm-sum-cells > span { flex-direction: row; justify-content: space-between; align-items: baseline; }

  .comm-pay .grow-sub, .comm-pay-side .badge { display: none; }
  .comm-pay-state { display: block; }
  .comm-pay-side b { font-size: 14.5px; }
  .comm-acc .comm-acc-title { display: none; }

  .comm-overlay .sheetbody { padding: 16px; }
  .comm-sheet .grow.is-field > label { flex-basis: auto; }
  .comm-unit { max-width: none; }
  .comm-fact-k { width: auto; }
  .comm-facts .grow { flex-wrap: wrap; gap: 4px 12px; }
  /* A note is a sentence, and a sentence set right-aligned beside its label
     wraps into a ragged column against the edge. It goes under the label
     instead, read the way it was written; every other fact is one line. */
  .comm-facts .grow:has(.comm-wrap) { flex-direction: column; align-items: stretch; }
  .comm-facts .grow:has(.comm-wrap) .comm-fact-v { text-align: left; }
  .comm-big-amount { font-size: 34px; }

  /* A thumb's height for what is pressed here. The two-way choice in a
     sheet stands at the height of the rest of a phone's controls. */
  .comm-sheet .seg.is-block button { min-height: 40px; }
  /* The switch is the only control on its row and keeps its drawn size;
     the target round it grows to a thumb's, inside a row of sixty. */
  .comm-acc .gswitch::before, .acc-finance .gswitch::before {
    content: ''; position: absolute; inset: -10px -6px;
  }
  /* The reference to copy takes the height and not the width, and gives it
     back in margin, so the row it sits in does not grow. */
  .comm-fact-v .copyable.is-plain { padding: 13px 0; margin-top: -7px; margin-bottom: -7px; }
}

/* --- one store's statement ------------------------------------------------ */
/* A ledger, the way a bank statement reads: the store and the way back over
   it, five figures that add up, then every movement with the balance after
   it. The balance is the one column in the ink; the rest is the muted ink
   the other tables on this screen use. */
.comm-st { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: calc(var(--topbar-h) + var(--inset) + 16px); }
.comm-st[hidden], #cmMList[hidden] { display: none; }
.comm-st-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.comm-st-back {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  min-height: 32px; margin-left: -6px; padding: 4px 10px 4px 4px; border: 0; border-radius: 8px;
  background: none; color: var(--text-muted); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.comm-st-back .chev { width: 16px; height: 16px; transform: scaleX(-1); color: var(--text-dim); }
.comm-st-back:hover { color: var(--text); background: var(--card-hover); }
.comm-st-back:focus-visible { outline: none; box-shadow: var(--ring); }
.comm-st-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; min-width: 0; }
.comm-st-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.comm-st-name {
  margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; color: var(--text);
  overflow-wrap: anywhere;
}
.comm-st-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--text-muted); }
.comm-st-meta > span + span::before { content: '\00b7'; margin: 0 8px; color: var(--text-dim); }
.comm-st-meta .mono { font-size: 12.5px; }
.comm-st-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.comm-st-bar { margin-bottom: 12px; }
.comm-st-bar[hidden] { display: none; }
.comm-st-bar select { min-width: 230px; }
.comm-st-bar .comm-export { margin-left: auto; }

/* Five figures that read left to right as a sum: charged, which is the cost
   price and the commission, then what was paid in and where it ended. */
.comm-st-figs { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 4px; }
#cmStmt { scroll-margin-top: calc(var(--topbar-h, 0px) + 12px); }
.comm-st-figs .comm-fig .skel { display: block; height: 12px; }
.comm-st-figs .comm-fig .skel + .skel { height: 18px; margin-top: 6px; }
.comm-st-figs .comm-fig-value { font-size: 19px; }
.comm-st-figs .comm-fig.is-strong .comm-fig-value { font-weight: 700; }

.comm-st-desc { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.comm-st-what { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comm-st-what .badge { margin-left: 6px; vertical-align: 1px; }
.comm-st-sub { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comm-st-sub .comm-ref { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.comm .card.pad-0 td .comm-num.dim { color: var(--text-dim); }
/* An amount never breaks between the sign and the number. */
.comm-st .comm-num { white-space: nowrap; }
.comm-st-prow .comm-prow-side b.dim { color: var(--text-dim); }
.comm .card.pad-0 tr.comm-st-opening td { background: var(--group-row); }
.comm .card.pad-0 tr.comm-st-opening .comm-st-what { font-weight: 600; }
.comm .card.pad-0 tr.comm-st-adjust .comm-st-what { font-weight: 400; color: var(--text-muted); }
.comm-st-sum { margin-top: 12px; }
.comm-st-sum .comm-sum-cells { gap: 28px; }

/* A movement on a phone: what and when on the left, the amount and the
   balance after it on the right, and the split under both. */
.comm-st-prow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  column-gap: 12px; row-gap: 4px; padding: 12px 14px; min-width: 0;
}
.comm-st-prow .comm-prow-main b { font-weight: 500; }
.comm-st-prow .comm-prow-main b .comm-ref { font-weight: 500; }
.comm-st-prow .comm-prow-main > span .comm-ref { font-size: 12.5px; font-weight: 400; color: var(--text-dim); }
.comm-st-psplit {
  grid-column: 1 / -1; font-size: 12px; color: var(--text-dim);
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 1200px) {
  .comm-st-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comm-st-figs .comm-fig:nth-child(4)::before { display: none; }
  .comm-st-figs .comm-fig:nth-child(n+4) { border-top: 1px solid var(--border); }
  .comm-st-sum .comm-sum-cells { gap: 18px; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .comm-st-back { min-height: 44px; margin-top: -6px; font-size: 15px; }
  .comm-st-name { font-size: 20px; }
  .comm-st-top { flex-direction: column; align-items: stretch; }
  .comm-st-acts .btn { flex: 1; min-height: 40px; }
  .comm-st-bar select { min-height: 40px; }
  .comm .comm-st-bar .comm-export { margin-left: 0; height: 40px; min-height: 40px; }
  .comm-st-figs { grid-template-columns: 1fr; }
  .comm-st-figs .comm-fig:nth-child(n+4) { border-top: 0; }
  .comm-st-figs .comm-fig:nth-child(4)::before { display: block; }
  .comm-st-figs .comm-fig-value { font-size: 16px; }
  .comm .card.pad-0 tr.comm-st-opening td { background: none; }
  .comm .card.pad-0 tr.comm-st-opening .phonecell { background: var(--group-row); }
}
/* end block: commission screen */

/* --- block: platform settings (adm-settings.html) ------------------------- */
/* A list of categories and one category beside it, the way Shopify's
   settings and the iPhone's are. On a desk the list is a card that stays put
   while the category scrolls; on a phone the list is the screen and a
   category is a step into it, with the way back at the top. Everything a
   category holds is the grouped-list vocabulary above; what is here is the
   frame and the few controls that vocabulary does not have. */
.setpage.is-loading .setlayout { visibility: hidden; }
.setlayout {
  display: grid;
  grid-template-columns: 232px minmax(0, 760px);
  gap: 36px;
  align-items: start;
}
@media (max-width: 1100px) {
  .setlayout { grid-template-columns: 208px minmax(0, 1fr); gap: 24px; }
  /* Three segments beside a sentence leave the sentence a column of four
     lines; under it they are one line each. */
  .setwrap.is-seg { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.setnav {
  position: sticky; top: calc(var(--topbar-h) + var(--inset) + 18px);
  background: var(--card);
  border: 1px solid var(--lc-line, var(--border));
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 6px;
}
.setnav-group + .setnav-group { margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--border); }
.setnav-cap { font-size: 11.5px; font-weight: 600; color: var(--text-dim); padding: 8px 10px 4px; }
.setnav-row {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 34px; padding: 0 10px; border-radius: 8px;
  color: var(--text-muted); font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: background var(--fast), color var(--fast);
}
.setnav-row:hover { background: var(--card-hover); color: var(--text); }
/* The one on screen is a grey pill, not the accent: the red is kept for the
   one thing worth pressing, which on this page is Save. */
.setnav-row[aria-current="page"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.setnav-row:focus-visible { outline: none; box-shadow: var(--ring); }
.setnav-ico { display: grid; place-items: center; flex: none; color: var(--text-dim); }
.setnav-row[aria-current="page"] .setnav-ico { color: var(--text); }
.setnav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setnav-val, .setnav .chev, .setback { display: none; }
.setnav-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; flex: none;
  display: inline-grid; place-items: center;
  background: var(--warn-soft); color: var(--warn-ink);
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}

/* A category. `hidden` has to be said again: the grouped section is a flex
   column, and an author rule beats the browser's own for `hidden`. */
.setpane.gsect { margin-top: 0; }
.setpane[hidden] { display: none; }
.setpane .gsect-head { margin-bottom: 12px; }
.setpane .gsect-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; outline: none; }
.setpane .banner { margin: 0 0 8px; }
.setpanes { min-width: 0; transition: padding var(--med); }
.setpage.is-dirty .setpanes { padding-bottom: 84px; }

.setpage label.grow { font-size: inherit; font-weight: inherit; display: flex; }
.grow.is-danger .grow-title { color: var(--bad); }
.grow.is-loading { opacity: .55; pointer-events: none; }
.grow.is-accent .grow-title { color: var(--accent-text); }
.grow .avat { flex: none; }
.grow-value .badge { vertical-align: middle; }
.setbreak { overflow-wrap: anywhere; }
.setpane .is-short { color: var(--bad); }
.setwait { color: var(--text-dim); }

/* A field that holds money says which money in front of the number. */
.setmoney { position: relative; max-width: 180px; }
.setmoney > span {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--text-dim); pointer-events: none;
}
.setpage .grow.is-field .setmoney input { padding-left: 28px; font-variant-numeric: tabular-nums; }

/* A number with its unit after it. The unit has a width of its own so the
   boxes line up down the group whatever the unit says. */
.setnum { gap: 10px; }
.setnum input {
  width: 76px; padding: 7px 10px; border-radius: 8px;
  background: var(--field-bg); color: var(--text); border: 1px solid var(--field-border);
  font: inherit; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums;
}
.setnum input:focus { outline: none; border-color: var(--border-focus); background: var(--field-bg-focus); }
.setnum span { width: 86px; font-size: 13px; color: var(--text-dim); }
.setpage input.is-bad { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }

/* Things to tick that are not a list of rows: a heading off the fee, a
   month on file. Filled is on, the way a working day is on the calendar. */
.setpills { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.grow.is-stack .setpills { padding: 0; }
.setpill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: 16px;
  border: 1px solid var(--border-strong); background: var(--card); color: var(--text-muted);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.setpill svg { display: none; flex: none; }
.setpill:hover { color: var(--text); border-color: var(--text-dim); }
.setpill[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--canvas); }
.setpill[aria-pressed="true"] svg { display: block; }
.setpill[aria-current="true"] { background: var(--surface-2); border-color: transparent; color: var(--text); font-weight: 600; }
.setpill:focus-visible { outline: none; box-shadow: var(--ring); }
.setchip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 14px;
  background: var(--surface-2); color: var(--text-muted); font-size: 12.5px; white-space: nowrap;
}

/* The month, drawn across the width of its card rather than as a stamp in
   the corner of it. */
.setcal { padding: 12px 16px 16px; }
.setcal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setcal-head b { font-size: 15px; font-weight: 600; }
.setcal-head .iconbtn { width: 30px; height: 30px; border-radius: 8px; }
.setprev svg, .setback .chev { transform: scaleX(-1); }
.setcal .wdgrid { max-width: none; margin-top: 12px; gap: 5px; }
.setcal .wd { aspect-ratio: auto; height: 40px; border-radius: 9px; font-size: 13px; background: transparent; }
.setcal .wd.is-on { background: var(--text); }

.setmore {
  align-self: flex-start; margin: 2px 0 0;
  border: 0; background: none; padding: 6px 4px; border-radius: 6px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.setmore:hover { color: var(--text); }
.setmore:focus-visible { outline: none; box-shadow: var(--ring); }
/* The compact rhythm pads every card, the table's own included, which drew
   a white margin round a table that is meant to run to its edges. The first
   and last columns start where a row's words do. */
.setpane .card.pad-0 { padding: 0; border-radius: 12px; border-color: var(--lc-line, var(--border)); }
.setpane .card.pad-0 th:first-child, .setpane .card.pad-0 td:first-child { padding-left: 16px; }
.setpane .card.pad-0 th:last-child, .setpane .card.pad-0 td:last-child { padding-right: 16px; }
.setpane tr.is-done td { color: var(--text-dim); }
.setpane tr.is-done td > * { opacity: .75; }
/* A row as a phone draws it: what it is, and under it the facts about it. */
.setprow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0; }
.setprow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.setprow-main b {
  font-size: 14px; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.setprow-main b.is-wrap { white-space: normal; }
.setprow-main b .badge { margin-left: 6px; vertical-align: 1px; }
.setprow-main span {
  font-size: 12.5px; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.setprow-main i { font-style: normal; }
.setprow-main .sla { margin-left: 4px; }
.setprow-side {
  flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  font-size: 12.5px; color: var(--text-dim); text-align: right;
}
.setprow-side b { font-size: 13.5px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }

/* The bar is dark on both looks, so its quiet button is pressed on dark. */
.setpage .savebar .btn.quiet:hover { background: rgba(255, 255, 255, .12); color: #fff; }

@media (max-width: 720px) {
  .setlayout { display: block; }
  .setpage.is-detail > .crumb, .setpage.is-detail > .pagehead, .setpage.is-detail .setnav { display: none; }
  .setpage.is-list .setpanes { display: none; }
  .setpage.is-dirty .setpanes { padding-bottom: 72px; }

  .setnav { position: static; background: none; border: 0; box-shadow: none; padding: 0; margin-top: 8px; }
  .setnav-group + .setnav-group { margin-top: 22px; padding-top: 0; border-top: 0; }
  .setnav-cap { padding: 0 4px 6px; font-size: 12.5px; color: var(--text-muted); }
  .setnav-list {
    background: var(--card); border: 1px solid var(--lc-line, var(--border));
    border-radius: 12px; box-shadow: var(--shadow-card); overflow: hidden;
  }
  .setnav-row {
    min-height: 50px; padding: 0 14px; gap: 12px; border-radius: 0;
    color: var(--text); font-size: 15px;
  }
  .setnav-row + .setnav-row::before {
    content: ''; position: absolute; top: 0; left: 56px; right: 0; border-top: 1px solid var(--border);
  }
  .setnav-row[aria-current="page"] { background: none; font-weight: 500; }
  .setnav-row:hover { background: none; }
  .setnav-row:active { background: var(--card-hover); }
  .setnav-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--text-muted); }
  .setnav-row[aria-current="page"] .setnav-ico { color: var(--text-muted); }
  .setnav-val {
    display: block; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 14px; color: var(--text-dim);
  }
  .setnav .chev { display: block; flex: none; color: var(--text-dim); }

  .setback {
    display: inline-flex; align-items: center; gap: 2px; align-self: flex-start;
    margin: -4px 0 10px -6px; padding: 8px 10px 8px 4px; border-radius: 8px;
    font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none;
  }
  .setback .chev { width: 18px; height: 18px; color: var(--text-muted); }
  .setback:focus-visible { outline: none; box-shadow: var(--ring); }
  .setpane .gsect-head h2 { font-size: 26px; letter-spacing: -.025em; }

  .setwrap, .setwrap.is-seg { flex-direction: column; align-items: stretch; gap: 10px; }
  .setwrap .seg { display: flex; }
  .setwrap .seg button { flex: 1; padding: 8px 6px; min-height: 40px; }
  .setnum span { width: auto; }
  .setcal .wd { height: 38px; }
  /* A thumb's height for the rest of what is pressed here: the months either
     side of the calendar at the app's own phone size for a square button,
     the way back, and the pills that tick a heading or open a month. */
  .setcal-head .iconbtn { width: 38px; height: 38px; }
  .setback { min-height: 44px; }
  .setpill { height: 38px; padding: 0 15px; }
  /* The shared table stacks every row into a card of its own, which inside
     a card of its own is a box in a box. In here a row is a line of the
     list it sits in. */
  .setpane .card.pad-0 .tablewrap tbody tr {
    border: 0; border-radius: 0; margin: 0; padding: 0; background: none;
  }
  .setpane .card.pad-0 .tablewrap tbody tr + tr { border-top: 1px solid var(--border); }
}
/* end block: platform settings */

/* === Apple ===============================================================
   On the owner's word (November 2026): the app reads as Apple's. Three
   things carry that and nothing else: the system face (San Francisco on an
   Apple device, Inter elsewhere where a page loads it), space instead of
   lines, and grey tiles with no border on a white page. The menu is the
   macOS sidebar: sentence-case group names, a soft grey pill on the row you
   are on, counts as plain figures. */
:root { --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif; }

.sidebar {
  font-family: var(--font-apple);
  background: linear-gradient(180deg, #2a2a2d 0, #1c1c1e 220px);
  border-right: 0;
}
.sidebar .ngroup { font-family: var(--font-apple); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8e; padding: 20px 12px 8px; }
.sidebar .navitem { font-size: 14px; font-weight: 500; color: #d1d1d6; padding: 9px 12px; border-radius: 9px; letter-spacing: -.005em; }
.sidebar .navitem svg { opacity: .75; color: #d1d1d6; }
.sidebar .navitem:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.sidebar .navitem.active { background: rgba(255, 255, 255, .09); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.sidebar .navitem.active svg { color: #fff; opacity: 1; }
.sidebar .navitem.active::before { display: none; }
.sidebar .navitem.navsub { font-size: 13.5px; color: #aeaeb2; }
.sidebar .navitem .nbadge { font-family: var(--font-apple); font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 600; color: #e5e5ea; background: rgba(255, 255, 255, .1); border: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.sidebar .navitem .nbadge.hot { color: #fff; background: var(--accent); }
.sidebar .navitem .nvalue { font-family: var(--font-apple); font-size: 12.5px; color: #8e8e93; }
.sidebar .samplemark { background: rgba(255, 255, 255, .07); border: 0; color: #aeaeb2; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; border-radius: 8px; text-align: center; }
.sidebar .brandblock .bs { font-family: var(--font-apple); letter-spacing: 0; text-transform: none; font-size: 11.5px; color: #8e8e93; }

/* --- the overview --------------------------------------------------------- */
.dsh { font-family: var(--font-apple); color: #1d1d1f; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; }
.dsh-top { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin: 6px 0 26px; }
.dsh-title { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.025em; line-height: 1.06; }
.dsh-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dsh-acts [hidden] { display: none; }

/* iOS's segmented control: a grey track, the chosen one a white thumb. */
.dsh .segmented { background: rgba(118, 118, 128, .12); border: 0; border-radius: 9px; padding: 2px; gap: 0; }
.dsh .segmented button { font-family: var(--font-apple); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #1d1d1f; border-radius: 7px; padding: 5px 12px; }
.dsh .segmented button:hover { color: #1d1d1f; }
.dsh .segmented button[aria-selected="true"] { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.dsh .segmented button[aria-selected="true"]:focus-visible { box-shadow: var(--ring); }

.dsh-pillbtn { font-family: var(--font-apple); font-size: 14px; font-weight: 500; letter-spacing: -.01em; height: 34px; padding: 0 16px; border-radius: 980px; border: 0; cursor: pointer; background: rgba(0, 0, 0, .06); color: #1d1d1f; transition: background var(--fast), transform var(--fast); }
.dsh-pillbtn:hover { background: rgba(0, 0, 0, .09); }
.dsh-pillbtn:active { transform: scale(.97); }
.dsh-pillbtn:focus-visible { outline: none; box-shadow: var(--ring); }
.dsh-pillbtn.is-primary { background: var(--accent-fill); color: #fff; }
.dsh-pillbtn.is-primary:hover { background: color-mix(in srgb, var(--accent-fill) 88%, #000); }

/* Every block is a tile: Apple's grey, no line round it, no shadow. */
.dsh .card { background: #fff; border: 1px solid #e8eaee; box-shadow: none; border-radius: 14px; }
.dsh #banners .notice { background: #fff; border: 1px solid #e8eaee; box-shadow: none; border-radius: 14px; }
.dsh #firstrun .card, .dsh #banners > * { margin-bottom: 16px; }

.dsh-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dsh-kpi { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dsh-kl { font-size: 13px; font-weight: 500; color: #6e6e73; }
.dsh-kv { font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-kd { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #8e8e93; white-space: nowrap; overflow: hidden; }
.dsh-delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dsh-delta svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dsh-delta.is-good { color: #1f7a37; }
.dsh-delta.is-bad { color: #d70015; }
.dsh-delta.is-flat { color: #8e8e93; }

.dsh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dsh-card { padding: 0; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.dsh-head { display: flex; align-items: baseline; gap: 10px 14px; flex-wrap: wrap; padding: 20px 22px 6px; }
.dsh-head h2 { margin: 0 auto 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.dsh-more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: #0066cc; text-decoration: none; border-radius: 6px; }
.dsh-more:hover { text-decoration: underline; }
.dsh-more:focus-visible { outline: none; box-shadow: var(--ring); }
.dsh-more svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Four tones and no more: grey waits, blue moves, green is done, red needs
   somebody. Apple's system values. */
.dsh .t-wait { --t: #aeaeb2; }
.dsh .t-soft { --t: #64d2ff; }
.dsh .t-info { --t: #007aff; }
.dsh .t-warn { --t: #ff9f0a; }
.dsh .t-good { --t: #34c759; }
.dsh .t-bad { --t: #ff3b30; }
.dsh .t-empty { --t: rgba(0, 0, 0, .08); }
.dsh i.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--t); flex: none; }
.dsh i.dot.is-live { box-shadow: 0 0 0 3px color-mix(in srgb, var(--t) 25%, transparent); }

.dsh-bar { display: flex; gap: 3px; height: 6px; margin: 12px 22px 0; border-radius: 3px; overflow: hidden; }
.dsh-bar i { background: var(--t); min-width: 3px; }
.dsh-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 10px 12px 14px; }
.dsh-cells.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dsh-cell { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 8px; border-radius: 14px; text-decoration: none; color: inherit; min-width: 0; transition: background var(--fast); }
.dsh-cell:hover { background: rgba(0, 0, 0, .04); }
.dsh-cell:focus-visible { outline: none; box-shadow: var(--ring); }
.dsh-cl { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #6e6e73; line-height: 1.3; min-width: 0; }
.dsh-cn { font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.dsh-cs { font-size: 12px; color: #8e8e93; }

/* A list on a tile, iOS's way: the separator starts where the words do. */
.dsh-list { list-style: none; margin: 0 0 8px; padding: 0 10px; }
.dsh-list li { position: relative; }
.dsh-list li + li::before { content: ""; position: absolute; left: 66px; right: 12px; top: 0; height: 1px; background: rgba(0, 0, 0, .08); }
.dsh-list a, .dsh-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 12px; border-radius: 14px; text-decoration: none; color: inherit; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; transition: background var(--fast); }
.dsh-list a:hover, .dsh-list button:hover { background: rgba(0, 0, 0, .04); }
.dsh-list a:focus-visible, .dsh-list button:focus-visible { outline: none; box-shadow: var(--ring); }
.dsh-list .thumb { flex: none; width: 42px; height: 42px; border-radius: 10px; border: 0; background: #fff; }
.dsh-lt { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.dsh-lt b { font-size: 15px; font-weight: 500; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-lt span { font-size: 13px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-state { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #3a3a3c; }
.dsh-state .dot { background: var(--t); }
.dsh-when { flex: none; width: 58px; text-align: right; font-size: 13px; color: #8e8e93; white-space: nowrap; }
.dsh-none { margin: 0; padding: 18px 22px 24px; font-size: 14px; color: #8e8e93; }

.dsh-donut { display: flex; align-items: center; gap: 28px; padding: 10px 22px 22px; }
.dsh-donut svg { width: 140px; height: 140px; flex: none; }
.dsh-seg { fill: none; stroke-width: 11; }
.dsh-seg.empty { stroke: rgba(0, 0, 0, .08); }
.dsh .s0 { --s: var(--accent); }
.dsh .s1 { --s: #636366; }
.dsh .s2 { --s: #8e8e93; }
.dsh .s3 { --s: #aeaeb2; }
.dsh .s4 { --s: #d1d1d6; }
.dsh-seg[class*=" s"] { stroke: var(--s); }
.dsh-dn { font-size: 26px; font-weight: 600; fill: #1d1d1f; letter-spacing: -.03em; font-family: var(--font-apple); }
.dsh-dl { font-size: 11px; fill: #8e8e93; font-family: var(--font-apple); }
.dsh-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.dsh-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 34px; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; cursor: pointer; position: relative; }
.dsh-legend li + li::before { content: ""; position: absolute; left: 20px; right: 0; top: 0; height: 1px; background: rgba(0, 0, 0, .08); }
.dsh-legend li:not([data-country]) { cursor: default; }
.dsh-legend .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--s); }
.dsh-legend span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dsh-legend em { font-style: normal; color: #8e8e93; text-align: right; font-variant-numeric: tabular-nums; }

.dsh-online { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6e6e73; }
.dsh-people li + li::before { left: 74px; }
.dsh-seen { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #8e8e93; white-space: nowrap; }
.dsh-seen.is-on { color: #1f7a37; }
.dsh-card > .dsh-pillbtn { margin: 4px 22px 20px; align-self: flex-start; }

@media (max-width: 1200px) { .dsh-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .dsh-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .dsh-title { font-size: 30px; }
  .dsh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dsh-kpi:first-child { grid-column: 1 / -1; }
  .dsh-kv { font-size: 24px; }
  .dsh-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dsh-cells.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dsh-donut { flex-direction: column; align-items: stretch; }
  .dsh-donut svg { align-self: center; }
  .dsh .segmented button { min-height: 40px; padding: 0 12px; }
  .dsh-pillbtn { height: 40px; }
  .dsh-when { display: none; }
}
/* A figure is never cut: it shrinks with the tile before it ellipses. */
.dsh-kv { font-size: clamp(22px, 1.95vw, 30px); text-overflow: clip; }
.dsh-kpi { padding: 20px 20px 18px; }
/* The numbers stand on one line even where a label wraps. */
.dsh-cell { justify-content: space-between; }
.dsh-hello { display: flex; flex-direction: column; gap: 2px; }
.dsh-date { font-size: 13px; font-weight: 600; color: #8e8e93; letter-spacing: -.005em; text-transform: uppercase; }
.dsh-top { align-items: flex-end; }
.dsh .segmented button { min-width: 64px; }
@media (max-width: 720px) {
  .dsh-acts { width: 100%; }
  .dsh-acts .dsh-pillbtn { flex: 1 1 0; }
  .dsh .segmented { order: 3; width: 100%; display: flex; }
  .dsh .segmented button { flex: 1 1 0; min-width: 0; }
}

/* --- the owner's reference: a white welcome band, white cards on a pale
   canvas, a figure with its line beside it, soft pills and bars --------- */
.dsh-band { font-family: var(--font-apple); background: #fff; border-bottom: 1px solid #e8eaee; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 18px 32px; color: #1d1d1f; -webkit-font-smoothing: antialiased; }
.dsh-hi { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.dsh-welcome { margin: 2px 0 0; font-size: 13px; color: #8e8e93; }
.dsh-band .dsh-acts [hidden] { display: none; }
.dsh-band .dsh-pillbtn { border-radius: 10px; height: 38px; background: #fff; box-shadow: inset 0 0 0 1px #e1e3e8; }
.dsh-band .dsh-pillbtn:hover { background: #f6f7f9; }
.dsh-band .dsh-pillbtn.is-primary { background: var(--accent-fill); box-shadow: none; }
.dsh-band .dsh-pillbtn.is-primary:hover { background: color-mix(in srgb, var(--accent-fill) 88%, #000); }
.dsh-top { margin: 4px 0 18px; }
.dsh-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.dsh-sub { margin: 3px 0 0; font-size: 13px; color: #8e8e93; }
.dsh .segmented { background: #fff; box-shadow: inset 0 0 0 1px #e1e3e8; border-radius: 10px; padding: 3px; }
.dsh .segmented button[aria-selected="true"] { background: #1d1d1f; color: #fff; box-shadow: none; }

.dsh-kpi { padding: 18px 20px 16px; gap: 10px; }
.dsh-krow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.dsh-kl { font-size: 13.5px; font-weight: 600; color: #1d1d1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-kp { flex: none; font-size: 11.5px; color: #8e8e93; white-space: nowrap; }
.dsh-kmid { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 0; }
.dsh-kmid .dsh-kv { min-width: 0; }
.dsh-spark { flex: none; width: 70px; height: 30px; }
.dsh-spark polyline { fill: none; stroke: var(--t); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dsh-spark circle { fill: var(--t); }
.dsh-spark.t-flat { --t: #aeaeb2; }
.dsh-kd { border-top: 1px solid #f0f1f4; padding-top: 10px; justify-content: space-between; }
.dsh-kdt { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dsh-kpi .dsh-kv { font-size: clamp(22px, 1.8vw, 28px); }
/* Four figures in a third of the page read as a sum to do; two by two they
   read as four answers. */
.dsh-grid .dsh-cells:not(.is-three) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2px; }
.dsh-grid .dsh-cl { white-space: nowrap; }
.dsh-grid .dsh-cell { justify-content: flex-start; }
.dsh-grid { align-items: stretch; }
.dsh-grid .dsh-cn { font-size: 26px; }

.dsh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dsh-head { padding: 18px 20px 6px; }
.dsh-head h2 { font-size: 15.5px; font-weight: 700; }
.dsh-cell:hover, .dsh-list a:hover, .dsh-list button:hover { background: #f6f7f9; }

.dsh-pill { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--t) 14%, #fff); color: color-mix(in srgb, var(--t) 62%, #000); }
.dsh-pill.t-wait { background: #f1f2f4; color: #5c5c61; }

.dsh-bars { list-style: none; margin: 0; padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.dsh-bars li { cursor: pointer; }
.dsh-brow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 7px; min-width: 0; }
.dsh-brow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-brow b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.dsh-brow em { font-style: normal; font-weight: 500; color: #8e8e93; margin-left: 8px; }
.dsh-track { height: 8px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.dsh-track i { display: block; height: 100%; border-radius: 4px; background: #34c759; }
.dsh-bars li:hover .dsh-track i { background: #28a745; }

@media (max-width: 1280px) { .dsh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .dsh-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .dsh-band { padding: 14px 16px; }
  .dsh-band .dsh-acts { width: 100%; }
  .dsh-band .dsh-pillbtn { flex: 1; }
  .dsh-top .segmented { width: 100%; }
  .dsh-top .segmented button { flex: 1; }
  .dsh-spark { width: 54px; }
}

/* Room round the name and the store, the way a macOS sidebar spaces its head. */
.sidebar .brandblock { padding: 10px 12px 18px; }
/* The store at the foot: one flat row, its mark, its name, the connection
   dot and the switcher's chevrons. No card round it. */
.sidebar .store-id { flex: 0 0 100%; display: flex; align-items: center; gap: 9px; margin: 0 0 6px; padding: 8px 9px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .05); font-family: var(--font-apple); color: #f2f2f7; }
.sidebar .store-id:hover { background: rgba(255, 255, 255, .09); border: 0; }
.sidebar .store-id:focus-visible { outline: none; box-shadow: var(--ring); }
.sidebar .store-id .sg { width: 22px; height: 22px; border-radius: 6px; }
.sidebar .store-id .snm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .store-id svg:last-child { flex: none; color: #8e8e93; }
.sidebar .store-id.is-disconnected { background: rgba(255, 159, 10, .12); }

/* A banner on the overview is an iOS notice: the mark in a tinted disc, the
   title and one quiet line, room round both. */
.dsh #banners .notice { align-items: center; gap: 14px; padding: 16px 20px; background-image: none; border-radius: 14px; }
.dsh #banners .nico { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--bt) 12%, #fff); }
.dsh #banners .ntxt { gap: 3px; }
.dsh #banners .ntxt b { font-size: 14.5px; letter-spacing: -.015em; }
.dsh #banners .ntxt span { font-size: 13px; color: #6e6e73; }

/* --- three cards, three tempers ---------------------------------------- */
.dsh-chev { width: 13px; height: 13px; flex: none; fill: none; stroke: #c7c7cc; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Orders: a still list. */
.dsh-todo { list-style: none; margin: 4px 0 10px; padding: 0 10px; }
.dsh-todo li + li a { border-top: 1px solid #f0f1f4; }
.dsh-todo a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; text-decoration: none; color: inherit; border-radius: 10px; }
.dsh-todo a:hover { background: #f6f7f9; }
.dsh-todo a:focus-visible { outline: none; box-shadow: var(--ring); }
.dsh-tic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #f2f3f5; color: #6e6e73; }
.dsh-tl { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-tn { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.dsh-cta { flex: none; font-size: 12px; font-weight: 600; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 10%, #fff); padding: 3px 9px; border-radius: 999px; }
.dsh-todo a.is-hot .dsh-tic { background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent-text); }

/* Shipments: a live journey. */
.dsh-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #1f7a37; }
.dsh-live i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52, 199, 89, .5); animation: dshPing 1.8s ease-out infinite; }
@keyframes dshPing { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); } }
.dsh-journey { position: relative; padding: 14px 20px 10px; }
.dsh-rail { position: absolute; left: calc(20px + 10%); right: calc(20px + 10%); top: 25px; height: 2px; background: linear-gradient(90deg, #007aff 0, #007aff 80%, #34c759 100%); opacity: .25; border-radius: 1px; overflow: visible; }
.dsh-rail span { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #007aff; opacity: 0; }
.dsh-journey.is-moving .dsh-rail span { animation: dshRun 5.4s linear infinite; }
.dsh-journey.is-moving .dsh-rail span:nth-child(2) { animation-delay: -1.8s; }
.dsh-journey.is-moving .dsh-rail span:nth-child(3) { animation-delay: -3.6s; }
@keyframes dshRun { 0% { left: 0; opacity: 0; } 8% { opacity: 4; } 88% { opacity: 4; background: #007aff; } 100% { left: 100%; opacity: 0; background: #34c759; } }
.dsh-journey ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dsh-journey a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: inherit; padding: 4px 2px 6px; border-radius: 10px; text-align: center; }
.dsh-journey a:hover { background: #f6f7f9; }
.dsh-journey a:focus-visible { outline: none; box-shadow: var(--ring); }
.dsh-node { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #d1d1d6; margin-bottom: 6px; }
.dsh-journey li.has .dsh-node { box-shadow: inset 0 0 0 3.5px #007aff; }
.dsh-journey li.is-done.has .dsh-node { box-shadow: none; background: #34c759; }
.dsh-journey b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dsh-journey li:not(.has) b { color: #c7c7cc; }
.dsh-journey span { font-size: 12px; color: #6e6e73; line-height: 1.3; }
.dsh-journey em { display: block; font-style: normal; font-size: 11px; color: #aeaeb2; }
.dsh-alert { display: flex; align-items: center; gap: 10px; margin: 2px 20px 6px; padding: 9px 12px; border-radius: 10px; background: #fff2f1; color: #c4271c; text-decoration: none; font-size: 13.5px; }
.dsh-alert span { flex: 1; }
.dsh-alert:hover { background: #ffe7e5; }
.dsh-alert .dsh-chev { stroke: #e9a39d; }
.dsh-feed { list-style: none; margin: 4px 0 16px; padding: 0 20px; }
.dsh-feed li { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13px; color: #3a3a3c; }
.dsh-feed li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-feed time { flex: none; font-size: 12px; color: #aeaeb2; }
.dsh-feed li:first-child { animation: dshIn .6s var(--ease) both; }
@keyframes dshIn { from { opacity: 0; transform: translateY(-4px); } }

/* Disputes: two courts and the ball between them. */
.dsh-courts { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 8px; padding: 12px 20px 20px; }
.dsh-court { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 13px; border-radius: 12px; background: #f6f7f9; text-decoration: none; color: inherit; min-width: 0; transition: background var(--fast); }
.dsh-court:hover { background: #eff0f3; }
.dsh-court:focus-visible { outline: none; box-shadow: var(--ring); }
.dsh-who { font-size: 12px; font-weight: 600; color: #6e6e73; text-transform: uppercase; letter-spacing: .05em; }
.dsh-court b { font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; color: #c7c7cc; }
.dsh-court.has b { color: #1d1d1f; }
.dsh-line { font-size: 12.5px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-court.is-you.has { background: #fff2f1; box-shadow: inset 0 0 0 1px #ffd9d5; }
.dsh-court.is-you.has .dsh-who, .dsh-court.is-you.has .dsh-line { color: #c4271c; }
.dsh-court.is-us.has { background: #eef5ff; }
.dsh-court.is-us.has .dsh-who { color: #0059c7; }
.dsh-swap { align-self: center; color: #c7c7cc; }
.dsh-swap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }

@media (prefers-reduced-motion: reduce) {
  .dsh-live i, .dsh-journey.is-moving .dsh-rail span, .dsh-feed li:first-child { animation: none; }
  .dsh-journey .dsh-rail span { opacity: 0; }
}
@media (max-width: 720px) {
  .dsh-journey b { font-size: 18px; }
  .dsh-journey span { font-size: 11px; }
}
.dsh-courts { padding-bottom: 8px; }
.dsh-cases { list-style: none; margin: 0 0 12px; padding: 0 10px; }
.dsh-cases li + li a { border-top: 1px solid #f0f1f4; }
.dsh-cases a { display: flex; align-items: center; gap: 10px; padding: 10px; text-decoration: none; color: inherit; border-radius: 10px; }
.dsh-cases a:hover { background: #f6f7f9; }
.dsh-cases a:focus-visible { outline: none; box-shadow: var(--ring); }
.dsh-cases .dsh-lt b { font-size: 14px; }
.dsh-cases .dsh-lt span { font-size: 12.5px; }
.dsh-court.is-us.is-late .dsh-line { color: #b25000; font-weight: 600; }

/* === Bento ===============================================================
   The overview as one grid of tiles. Each tile is white on the pale canvas,
   one question, its name small at the top and a round arrow to the list
   behind it. One figure leads; anything under it is quiet. */
.dsh-band .segmented { display: inline-flex; background: #f2f3f5; border: 0; border-radius: 10px; padding: 3px; gap: 0; }
.dsh-band .segmented button { font-family: var(--font-apple); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #3a3a3c; border: 0; background: none; border-radius: 8px; padding: 6px 13px; cursor: pointer; }
.dsh-band .segmented button[aria-selected="true"] { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .04); }
.dsh-band .segmented button:focus-visible { outline: none; box-shadow: var(--ring); }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.tile { background: #fff; border: 1px solid #eaecef; border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; min-width: 0; color: #1d1d1f; }
.t-rev { grid-column: span 6; grid-row: span 2; }
.t-kpi { grid-column: span 3; justify-content: space-between; gap: 8px; min-height: 132px; }
.t-orders { grid-column: span 4; }
.t-ship { grid-column: span 5; }
.t-disp { grid-column: span 3; }
.t-src { grid-column: span 5; }
.t-ctry { grid-column: span 4; }
.t-team { grid-column: span 3; }

.tl-h { display: flex; align-items: center; gap: 10px; min-height: 28px; margin-bottom: 14px; }
.tl-h h2 { margin: 0 auto 0 0; font-size: 14px; font-weight: 600; color: #6e6e73; letter-spacing: -.005em; }
.tl-go { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #f2f3f5; transition: background var(--fast); }
.tl-go:hover { background: #e7e8ec; }
.tl-go:focus-visible { outline: none; box-shadow: var(--ring); }
.tl-chev { width: 13px; height: 13px; fill: none; stroke: #6e6e73; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tl-l { font-size: 14px; font-weight: 600; color: #6e6e73; }
.tl-v { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-v.is-big { font-size: clamp(36px, 3.3vw, 48px); letter-spacing: -.035em; }
.tl-d { display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 18px; }
.tl-vs { color: #8e8e93; }
.t-rev .tl-d { margin-top: 8px; }
.tl-area { display: block; width: 100%; height: auto; flex: 1; min-height: 120px; margin-top: 18px; }
.tl-area .cur { fill: none; stroke: #007aff; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.tl-area .prev { fill: none; stroke: #c7c7cc; stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.tl-area.is-empty { flex: 1; }

.tl-hero { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tl-cap { font-size: 14px; color: #6e6e73; }
.tl-side { margin-left: auto; font-size: 12.5px; color: #8e8e93; }
.tl-btn { margin-left: auto; align-self: center; font-family: var(--font-apple); font-size: 13px; font-weight: 600; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--accent-fill); color: #fff; cursor: pointer; }
.tl-btn:hover { background: color-mix(in srgb, var(--accent-fill) 88%, #000); }
.tl-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.tl-btn.is-quiet { margin: auto 0 0; align-self: stretch; height: 36px; background: #f2f3f5; color: #1d1d1f; font-weight: 500; }
.tl-btn.is-quiet:hover { background: #e7e8ec; }

.tl-rows { list-style: none; margin: auto 0 0; padding: 0; }
.tl-rows a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #f0f1f4; font-size: 13.5px; color: #3a3a3c; text-decoration: none; }
.tl-rows a:hover span { color: #1d1d1f; }
.tl-rows a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.tl-rows b { font-weight: 600; font-variant-numeric: tabular-nums; color: #1d1d1f; }
.tl-rows b.is-you { color: var(--accent-text); }

.tl-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #1f7a37; }
.tl-live i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; animation: dshPing 1.8s ease-out infinite; }
.tl-live.is-off { color: #8e8e93; }
.tl-live.is-off i { background: #c7c7cc; animation: none; }
.tl-rail { position: relative; height: 4px; border-radius: 2px; background: #eef0f3; overflow: hidden; margin: 2px 0 12px; }
.tl-rail i { position: absolute; top: 0; left: -20%; width: 20%; height: 100%; border-radius: 2px; background: linear-gradient(90deg, transparent, #007aff); opacity: 0; }
.tl-rail.is-moving i { animation: tlRun 3.6s cubic-bezier(.4, 0, .2, 1) infinite; }
.tl-rail.is-moving i:nth-child(2) { animation-delay: -1.2s; }
.tl-rail.is-moving i:nth-child(3) { animation-delay: -2.4s; }
@keyframes tlRun { 0% { left: -20%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.tl-legs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tl-legs a { display: flex; flex-direction: column; gap: 2px; padding: 6px 4px; border-radius: 10px; text-decoration: none; color: inherit; }
.tl-legs a:hover { background: #f6f7f9; }
.tl-legs a:focus-visible { outline: none; box-shadow: var(--ring); }
.tl-legs b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl-legs span { font-size: 12px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-foot { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-warn { display: inline-flex; align-items: center; gap: 4px; color: #c4271c; font-weight: 600; text-decoration: none; }
.tl-warn .tl-chev { stroke: #c4271c; width: 11px; height: 11px; }
.tl-late { color: #b25000; font-weight: 600; }

.tl-sides { display: grid; grid-template-columns: 1fr 1fr; }
.tl-sides a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; padding: 2px 0; }
.tl-sides a + a { border-left: 1px solid #f0f1f4; padding-left: 16px; }
.tl-sides span { font-size: 12.5px; color: #8e8e93; }
.tl-sides b { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: #c7c7cc; }
.tl-sides a.is-you b { color: var(--accent-text); }
.tl-sides a.is-us b { color: #1d1d1f; }
.tl-sides a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.tl-clear { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: auto; }
.tl-clear svg { width: 26px; height: 26px; fill: none; stroke: #34c759; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.tl-clear b { font-size: 18px; font-weight: 600; }
.tl-clear span { font-size: 12.5px; color: #8e8e93; }

.tl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.tl-stats a { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; text-decoration: none; color: inherit; border-radius: 8px; }
.tl-stats a:focus-visible { outline: none; box-shadow: var(--ring); }
.tl-stats b { font-size: 24px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.tl-stats span { font-size: 12.5px; color: #8e8e93; }
.tl-items, .tl-people { list-style: none; margin: 0; padding: 0; }
.tl-items a { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #f0f1f4; text-decoration: none; color: inherit; }
.tl-items a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.tl-items .thumb { width: 36px; height: 36px; flex: none; border-radius: 9px; }
.tl-it { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.tl-it b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-it span { font-size: 12.5px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-it span.is-quoted { color: #1f7a37; }
.tl-it span.is-failed { color: #c4271c; }
.tl-people li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.tl-on { width: 8px; height: 8px; border-radius: 50%; background: #34c759; flex: none; }
.t-team .tl-btn.is-quiet { margin-top: 12px; }
.tl-none { margin: auto 0; font-size: 13.5px; color: #8e8e93; }
/* The overview while its first read is on its way (portal.html sk, skRows).
   The tiles are white in both looks, so the shimmer is drawn in fixed light
   greys rather than the surface tokens, which are near black in all dark. A
   block sized in em sits where the number will, at the number's own size, so
   nothing moves when the figure lands. */
.tl-sk {
  display: inline-block; vertical-align: middle; border-radius: 8px;
  background: linear-gradient(90deg, #f1f1f4 25%, #e5e5ea 37%, #f1f1f4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.tl-sk.is-num { width: 3.6em; height: .78em; }
.tl-sk.is-delta { width: 58px; height: 12px; border-radius: 6px; }
.tl-sk.is-chart { display: block; width: 100%; aspect-ratio: 600 / 200; margin-top: 14px; border-radius: 12px; }
.tl-skrows { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.tl-skrows li { display: flex; align-items: center; gap: 12px; }
.tl-sk.is-dot { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; }
.tl-sk.is-thumb { width: 36px; height: 36px; border-radius: 9px; flex: 0 0 auto; }
.tl-skt { flex: 1; display: grid; gap: 7px; min-width: 0; }
.tl-sk.is-line { display: block; height: 10px; width: 72%; border-radius: 5px; }
.tl-sk.is-line.is-short { width: 44%; }
@media (prefers-reduced-motion: reduce) { .tl-sk { animation: none; } }
.t-ctry .dsh-bars { padding: 0; gap: 12px; }
.t-ctry .dsh-track { height: 6px; }
.t-ctry .dsh-track i { background: #1d1d1f; }
.t-ctry .dsh-bars li:first-child .dsh-track i { background: #007aff; }
.t-ctry .dsh-bars li:hover .dsh-track i { background: #007aff; }

@media (max-width: 1280px) {
  .t-rev { grid-column: span 12; grid-row: auto; }
  .t-kpi { grid-column: span 3; }
  .t-orders, .t-ship, .t-src, .t-ctry { grid-column: span 6; }
  .t-disp, .t-team { grid-column: span 6; }
}
@media (max-width: 900px) {
  .t-kpi { grid-column: span 6; }
  .t-orders, .t-ship, .t-disp, .t-src, .t-ctry, .t-team { grid-column: span 12; }
}
@media (max-width: 720px) {
  .bento { gap: 12px; }
  .tile { padding: 18px; border-radius: 16px; }
  .t-kpi { min-height: 0; }
  .t-kpi .tl-v { font-size: 22px; }
  .dsh-band .dsh-acts { width: 100%; }
  .dsh-band .segmented { flex: 1; }
  .dsh-band .segmented button { flex: 1; padding: 7px 4px; }
  .dsh-band .dsh-pillbtn { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-live i, .tl-rail.is-moving i { animation: none; }
}
.t-disp .tl-foot, .t-ship .tl-foot { margin-top: 0; padding-top: 16px; }
.t-disp .tl-sides { margin-top: 4px; }

/* A banner on the overview reads like an iOS notification: the mark white
   on a rounded square in the tone's own system colour, the title, one quiet
   line, and a pill if there is something to press. */
.dsh #banners .notice { --ban: #8e8e93; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1px solid #eaecef; background: #fff; box-shadow: none; }
.dsh #banners .notice.tone-info { --ban: #007aff; }
.dsh #banners .notice.tone-warn { --ban: #ff9f0a; }
.dsh #banners .notice.tone-good { --ban: #34c759; }
.dsh #banners .notice.tone-bad { --ban: #ff3b30; }
.dsh #banners .nico { width: 36px; height: 36px; border-radius: 10px; background: var(--ban); color: #fff; }
.dsh #banners .nico svg { width: 18px; height: 18px; stroke-width: 2; }
.dsh #banners .ntxt b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.dsh #banners .ntxt span { font-size: 13px; color: #6e6e73; }
.dsh #banners .notice .btn { margin-left: auto; flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: #f2f3f5; color: #1d1d1f; font-family: var(--font-apple); font-weight: 600; }
.dsh #banners .notice .btn:hover { background: #e7e8ec; }
.dsh #banners .notice.tone-bad .btn { background: var(--accent-fill); color: #fff; }
@media (max-width: 720px) { .dsh #banners .notice { align-items: flex-start; } }

/* Shipments: the news, newest first. */
.tl-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tl-chip { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #f2f3f5; color: #3a3a3c; text-decoration: none; font-variant-numeric: tabular-nums; }
.tl-chip:hover { background: #e7e8ec; }
.tl-chip.is-bad { background: #fff2f1; color: #c4271c; }
.tl-chip:focus-visible { outline: none; box-shadow: var(--ring); }
.tl-feed { list-style: none; margin: 0; padding: 0; }
.tl-feed li + li a { border-top: 1px solid #f0f1f4; }
.tl-feed a { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; text-decoration: none; color: inherit; }
.tl-feed a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.tl-feed a:hover em { color: #1d1d1f; }
.tl-sd { width: 8px; height: 8px; border-radius: 50%; background: #007aff; flex: none; margin-top: 6px; }
.tl-sd.is-g { background: #34c759; }
.tl-sd.is-r { background: #ff9f0a; }
.tl-feed b { font-weight: 600; }
.tl-feed em { font-style: normal; font-weight: 400; color: #3a3a3c; }
.tl-feed time { flex: none; font-size: 12px; color: #aeaeb2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tl-feed li.is-new { animation: tlSlide .6s cubic-bezier(.2, .8, .2, 1) both; }
.tl-feed li.is-new .tl-sd { animation: dshPing 1.8s ease-out 2; }
@keyframes tlSlide { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .tl-feed li.is-new, .tl-feed li.is-new .tl-sd { animation: none; } }

/* Orders: the ones that have waited on the merchant longest. */
.tl-btn.is-head { margin-left: 0; height: 28px; font-size: 12.5px; }
.tl-old { list-style: none; margin: 0; padding: 0; }
.tl-old li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.tl-old li + li { border-top: 1px solid #f0f1f4; }
.tl-av { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #f2f3f5; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #6e6e73; }
.tl-old .tl-it { text-decoration: none; color: inherit; }
.tl-old .tl-it:hover b { text-decoration: underline; text-underline-offset: 2px; }
.tl-old .tl-it:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.tl-old .tl-it span.is-late { color: #b25000; font-weight: 600; }
.tl-old .tl-btn { margin-left: 0; flex: none; }
.tl-btn.is-quiet.is-row { margin: 0; align-self: center; height: 30px; display: inline-flex; align-items: center; text-decoration: none; padding: 0 14px; font-size: 13px; font-weight: 600; }
.t-orders .tl-foot { margin-top: auto; }

/* Disputes: the open cases under the two sides. */
.t-disp .tl-sides { margin-bottom: 10px; }
.tl-cases .tl-ico { background: #f2f3f5; color: #6e6e73; border-radius: 9px; }
.tl-cases .tl-ico svg { width: 15px; height: 15px; }
.tl-cases .tl-it span.is-you { color: #c4271c; font-weight: 600; }
.tl-cases .tl-it span.is-late { color: #b25000; font-weight: 600; }
.tl-cases time { flex: none; font-size: 12px; color: #aeaeb2; font-variant-numeric: tabular-nums; }
.t-disp .tl-foot { margin-top: auto; }

/* Disputes: like Messages. */
.tl-turn { font-size: 12px; font-weight: 600; color: #c4271c; }
.tl-msgs { list-style: none; margin: 0; padding: 0; }
.tl-msgs li + li a { border-top: 1px solid #f0f1f4; }
.tl-msgs a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; text-decoration: none; color: inherit; }
.tl-msgs a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.tl-msgs a:hover .tl-m1 b { text-decoration: underline; text-underline-offset: 2px; }
.tl-unread { width: 8px; height: 8px; border-radius: 50%; flex: none; margin: 13px -2px 0 0; background: transparent; }
.tl-unread.is-on { background: #007aff; }
.tl-msgs .avatar, .tl-msgs .av { flex: none; }
.tl-mb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-m1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tl-m1 b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-m1 time { flex: none; font-size: 12px; color: #aeaeb2; }
.tl-m2 { font-size: 12.5px; color: #6e6e73; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-m3 { font-size: 12px; font-weight: 600; color: #b25000; }

/* Sourcing: the newest quote news. */
.tl-chip.is-wait { background: #fff4e5; color: #b25000; }
.tl-news a { align-items: center; }
.tl-news time { flex: none; font-size: 12px; color: #aeaeb2; font-variant-numeric: tabular-nums; }
.tl-news .tl-it span.is-priced { color: #1f7a37; }
.tl-news .tl-it span.is-repriced { color: #0059c7; }
.tl-news .tl-it span.is-refused { color: #c4271c; }
.tl-news .tl-it span.is-asked { color: #b25000; }
.tl-news li.is-new { animation: tlSlide .6s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .tl-news li.is-new { animation: none; } }
.tl-news .tl-it span.is-confirm { color: #c4271c; font-weight: 600; }

/* Orders with nothing on the merchant: a quiet line and what went out. */
.tl-ok { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #1f7a37; margin-bottom: 6px; }
.tl-ok svg { width: 16px; height: 16px; fill: none; stroke: #34c759; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* The next step on a test store with a price and no order: what to do, in
   order, and the way into the store's own admin. */
.tl-next { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.tl-next b { font-size: 13.5px; font-weight: 600; }
.tl-next p { margin: 0; color: var(--text-muted); line-height: 1.5; }
.tl-next ol { margin: 0; padding-left: 18px; color: var(--text-muted); line-height: 1.5; }
.tl-nextact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tl-old time { flex: none; font-size: 12px; color: #aeaeb2; font-variant-numeric: tabular-nums; }
.tl-old .tl-it span.is-delivered { color: #1f7a37; }
.tl-old .tl-it span.is-shipped { color: #0059c7; }

/* Shipments: tabs inside the tile. */
.tl-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 6px; padding: 2px; }
.tl-tabs::-webkit-scrollbar { display: none; }
.tl-tabs button { flex: none; font-family: var(--font-apple); font-size: 12.5px; font-weight: 600; border: 0; border-radius: 999px; padding: 6px 12px; background: #f2f3f5; color: #3a3a3c; cursor: pointer; transition: background var(--fast), color var(--fast); }
.tl-tabs button span { font-weight: 500; opacity: .7; margin-left: 2px; font-variant-numeric: tabular-nums; }
.tl-tabs button:hover { background: #e7e8ec; }
.tl-tabs button[aria-selected="true"] { background: #1d1d1f; color: #fff; }
.tl-tabs button.is-bad { color: #c4271c; background: #fff2f1; }
.tl-tabs button.is-bad[aria-selected="true"] { background: #c4271c; color: #fff; }
.tl-tabs button:focus-visible { outline: none; box-shadow: var(--ring); }

/* Disputes with nothing open. */
.tl-empty { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 8px 4px; }
.tl-eic { width: 52px; height: 52px; border-radius: 50%; background: #eaf8ee; display: grid; place-items: center; margin-bottom: 6px; }
.tl-eic svg { width: 26px; height: 26px; fill: none; stroke: #28a745; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-empty b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.tl-empty span { font-size: 13px; color: #6e6e73; line-height: 1.45; max-width: 34ch; }
.tl-empty em { font-style: normal; font-size: 12px; color: #aeaeb2; margin-top: 4px; }

/* === The merchant portal, every screen ====================================
   The overview's look carried to the rest of the merchant's screens, on the
   owner's word (November 2026): the system face instead of Poppins, labels in
   sentence case rather than tracked capitals, white cards with a hairline and
   a large radius, pills for tabs and buttons, and banners as iOS
   notifications. Scoped to the portal: the console and the platform work
   long queues in their compact rhythm and keep it. */
html[data-surface="portal"] {
  --font-display: var(--font-apple);
  --font-accent: var(--font-apple);
  --font-mono: var(--font-apple);
}
html[data-surface="portal"] body { letter-spacing: -.011em; }
html[data-surface="portal"] :is([class*="mono"], .eyebrow, .kpi .klabel, thead th, .pager .meta, .sla, .badge, .pill, .chip, .tcount,
  .msg .mrole, .msg .mchan, .msg .mtime, .throw .ttime, .feedrow .ftime, .feedrow .fname, .feedrow .fmeta, .prodcell .ps,
  .leg .lrole, .parcel .pmeta, .lastmile, .mpill .mno, .rolerow .rtxt span, .defrow .dt, .barcol .blabel, .rrow .rl,
  .filerow .fname, .msg .att, .qhead b.mono, .codebox, .crumb, .statusline .lbl, .kpi .kfoot) {
  text-transform: none;
  letter-spacing: 0;
}

/* The head of a screen. */
html[data-surface="portal"] .crumb { font-size: 12.5px; color: #8e8e93; margin-bottom: 6px; }
html[data-surface="portal"] .crumb b { color: #6e6e73; font-weight: 500; }
html[data-surface="portal"] .pagehead { margin-bottom: 22px; align-items: flex-end; }
html[data-surface="portal"] .pagetitle { font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
html[data-surface="portal"] .pagesub { font-size: 14px; color: #6e6e73; line-height: 1.5; }
html[data-surface="portal"] .eyebrow { font-size: 13px; font-weight: 600; color: #6e6e73; }

/* Cards are tiles. */
html[data-surface="portal"] :is(.main, .drawer, .overlay) .card { border: 1px solid #eaecef; border-radius: 18px; box-shadow: none; }
html[data-surface="portal"] :is(.main, .drawer, .overlay) .card .card.pad-0 { border: 0; border-radius: 0; }
html[data-surface="portal"] .cardhead { padding: 16px 20px; border-bottom-color: #f0f1f4; }
html[data-surface="portal"] .cardhead h3 { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }

/* Figures. */
html[data-surface="portal"] .kpi { padding: 20px 22px; }
html[data-surface="portal"] .kpi .klabel { font-size: 13.5px; font-weight: 600; color: #6e6e73; margin-bottom: 10px; }
html[data-surface="portal"] .kpi .knum { font-size: clamp(24px, 2.3vw, 30px); font-weight: 600; letter-spacing: -.03em; }
html[data-surface="portal"] .kpi .kfoot { font-size: 12.5px; color: #8e8e93; }

/* Status pills in sentence case. */
html[data-surface="portal"] .badge { font-size: 12px; font-weight: 600; padding: 3px 10px; }
html[data-surface="portal"] .chip { font-size: 12px; font-weight: 500; padding: 3px 10px; border: 0; background: #f2f3f5; color: #3a3a3c; }

/* Tabs are pills, the chosen one black. */
html[data-surface="portal"] .tabbar { gap: 6px; }
html[data-surface="portal"] :is(#tabs, .tabbar, body) .tabb { font-size: 13px; font-weight: 600; padding: 7px 13px; border: 0; background: #f2f3f5; color: #3a3a3c; }
html[data-surface="portal"] :is(#tabs, .tabbar, body) .tabb:hover { background: #e7e8ec; color: #1d1d1f; }
html[data-surface="portal"] :is(#tabs, .tabbar, body) .tabb[aria-selected="true"] { background: #1d1d1f; color: #fff; border: 0; }
html[data-surface="portal"] .tcount { font-size: 11.5px; font-weight: 500; background: rgba(0, 0, 0, .06); color: #6e6e73; padding: 1px 7px; }
html[data-surface="portal"] .tabb[aria-selected="true"] .tcount { background: rgba(255, 255, 255, .18); color: #fff; }

/* Buttons. */
html[data-surface="portal"] .btn { font-weight: 600; letter-spacing: -.005em; }
html[data-surface="portal"] .btn.ghost { background: #f2f3f5; border-color: transparent; color: #1d1d1f; }
html[data-surface="portal"] .btn.ghost:hover { background: #e7e8ec; border-color: transparent; }

/* Fields. */
html[data-surface="portal"] :is(input, select, textarea) { border-radius: 10px; border-color: #e1e3e8; }
html[data-surface="portal"] :is(input, select, textarea):hover { border-color: #c7c7cc; }

/* Tables. */
html[data-surface="portal"] thead th { font-size: 12.5px; font-weight: 500; color: #8e8e93; padding-top: 12px; padding-bottom: 12px; border-bottom-color: #f0f1f4; }
html[data-surface="portal"] tbody td { border-bottom-color: #f0f1f4; }

/* Dialogs and drawers. */
html[data-surface="portal"] .modal { border-radius: 20px; }

/* Every banner is an iOS notification, the way the overview draws them. */
html[data-surface="portal"] :is(.main, .drawer, .modal) .notice.banner { --ban: #8e8e93; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1px solid #eaecef; background: #fff; box-shadow: none; }
html[data-surface="portal"] :is(.main, .drawer, .modal) .notice.banner.tone-info { --ban: #007aff; }
html[data-surface="portal"] :is(.main, .drawer, .modal) .notice.banner.tone-warn { --ban: #ff9f0a; }
html[data-surface="portal"] :is(.main, .drawer, .modal) .notice.banner.tone-good { --ban: #34c759; }
html[data-surface="portal"] :is(.main, .drawer, .modal) .notice.banner.tone-bad { --ban: #ff3b30; }
html[data-surface="portal"] :is(.main, .drawer, .modal) .notice.banner .nico { width: 36px; height: 36px; border-radius: 10px; background: var(--ban); color: #fff; }
html[data-surface="portal"] :is(.main, .drawer, .modal) .notice.banner .nico svg { width: 18px; height: 18px; stroke-width: 2; }
html[data-surface="portal"] :is(.main, .drawer, .modal) .notice.banner .ntxt b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
html[data-surface="portal"] :is(.main, .drawer, .modal) .notice.banner .ntxt span { font-size: 13px; color: #6e6e73; }
html[data-surface="portal"] :is(.main, .drawer, .modal) .notice.banner .btn { margin-left: auto; flex: none; }

/* The head of every portal screen is the overview's white band: the name of
   the screen, one quiet line, and its buttons at the right. The path above
   the title is the menu's job, so it is not drawn. */
html[data-surface="portal"] .crumb { display: none; }
html[data-surface="portal"] .pagehead { margin: -28px calc(-1 * var(--gutter)) 24px; padding: 18px var(--gutter); background: #fff; border-bottom: 1px solid #e8eaee; align-items: center; gap: 12px 20px; }
html[data-surface="portal"] .pagetitle { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
html[data-surface="portal"] .pagesub { font-size: 13px; color: #8e8e93; margin-top: 2px; max-width: 70ch; }
html[data-surface="portal"] .pagehead .btn.accent, html[data-surface="portal"] .pagehead .btn.ghost { height: 38px; border-radius: 10px; }
html[data-surface="portal"] .pagehead .btn.ghost { background: #fff; box-shadow: inset 0 0 0 1px #e1e3e8; }
html[data-surface="portal"] .pagehead .btn.ghost:hover { background: #f6f7f9; }


/* What the audit of every portal screen found (November 2026). */

/* Tabs sit on the canvas, so an unchosen one is white with a hairline: grey
   on grey was a row of loose words with one black pill in it. */
html[data-surface="portal"] :is(#tabs, .tabbar, body) .tabb:not([aria-selected="true"]) { background: #fff; box-shadow: inset 0 0 0 1px #eaecef; }
html[data-surface="portal"] :is(#tabs, .tabbar, body) .tabb:not([aria-selected="true"]):hover { background: #f6f7f9; }
html[data-surface="portal"] .tracking-page #tabs .tabb { border-radius: 980px; padding: 7px 13px; font-size: 13px; }
html[data-surface="portal"] .quote-status-tabs { gap: 6px; padding: 12px 16px; border-bottom: 0; }
html[data-surface="portal"] .quote-status-tabs button { padding: 7px 13px; border: 0; border-radius: 980px; background: #f2f3f5; color: #3a3a3c; font-weight: 600; }
html[data-surface="portal"] .quote-status-tabs button[aria-selected="true"] { background: #1d1d1f; color: #fff; border: 0; }

/* A secondary button on the canvas needs an edge. */
html[data-surface="portal"] .main .filterbar .btn.ghost { background: #fff; box-shadow: inset 0 0 0 1px #e1e3e8; height: 36px; border-radius: 10px; }
html[data-surface="portal"] .main .filterbar .btn.ghost:hover { background: #f6f7f9; }
html[data-surface="portal"] .pagehead .btn.sm { font-size: 14px; padding: 0 16px; }
html[data-surface="portal"] .main .card .btn.sm { height: 34px; padding: 0 16px; font-size: 13px; }
html[data-surface="portal"] .main .card .btn.quiet { background: #f2f3f5; color: #1d1d1f; }
html[data-surface="portal"] .main .card .btn.quiet:hover { background: #e7e8ec; }
html[data-surface="portal"] .btn.pm-ask { background: #f2f3f5; border-color: transparent; color: #1d1d1f; }
html[data-surface="portal"] .btn.pm-ask:hover { background: #e7e8ec; }

/* The pager marks the page in black; red is the one action on a screen. */
html[data-surface="portal"] .pager .pg { border-radius: 980px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px #eaecef; min-width: 30px; }
html[data-surface="portal"] .pager .pg[aria-current="page"] { background: #1d1d1f; color: #fff; box-shadow: none; }
html[data-surface="portal"] .pager .pg.is-gap { box-shadow: none; background: none; }
html[data-surface="portal"] .pager .meta { font-size: 12.5px; color: #8e8e93; }

/* Labels the first pass did not reach. */
html[data-surface="portal"] :is(.oi-fig em, .shipfacts .sfl, .cmpside > span.dim, .ptime span, .ttxt em, .msg .mstate, .pm-tag, .picksection, .lastmile) { text-transform: none; letter-spacing: 0; }
html[data-surface="portal"] :is(.oi-fig em, .shipfacts .sfl, .cmpside > span.dim, .ptime span) { font-size: 12px; font-weight: 500; font-style: normal; color: #8e8e93; }
html[data-surface="portal"] .ttxt em { font-size: 12px; font-style: normal; color: #8e8e93; }
html[data-surface="portal"] .msg .mstate { font-size: 11.5px; font-weight: 500; color: #8e8e93; }
html[data-surface="portal"] .pm-tag { font-size: 11.5px; font-weight: 500; }
html[data-surface="portal"] .picksection { font-size: 13px; font-weight: 600; color: #6e6e73; margin: 18px 0 8px; }
html[data-surface="portal"] .lastmile { font-size: 11px; font-weight: 500; border: 0; background: #f2f3f5; color: #6e6e73; padding: 1px 7px; }
html[data-surface="portal"] .pill { font-size: 12px; font-weight: 600; padding: 3px 10px; }
html[data-surface="portal"] .defrow .dt { font-size: 13px; color: #6e6e73; padding-top: 0; }
html[data-surface="portal"] .pick.tight em { letter-spacing: 0; font-size: 12px; font-weight: 500; color: #8e8e93; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-surface="portal"] .main .mno { font-size: 11.5px; padding: 2px 8px; background: #f2f3f5; color: #6e6e73; }
html[data-surface="portal"] .main .card .mono { font-size: 12.5px; }
html[data-surface="portal"] .linerow .dim { font-size: 12.5px; color: #8e8e93; }

/* Small text in a row reads at twelve, not ten. */
html[data-surface="portal"] tbody :is(.mono, .prodcell .ps) { font-size: 12px; }
html[data-surface="portal"] tbody .mono.strong { font-size: 13px; }
html[data-surface="portal"] tbody td .dim.mono { white-space: nowrap; }
html[data-surface="portal"] .tablewrap tbody td:first-child { white-space: nowrap; }
html[data-surface="portal"] .ordercard .oc-more { background: rgba(242, 243, 245, .92); color: #1d1d1f; font-weight: 600; border-radius: 10px; }

/* A product row is white, as every row on the overview is. */
html[data-surface="portal"] tr.grouprow > td { background: #fff; }
html[data-surface="portal"] tr.grouprow:hover > td { background: #f8f9fb; }
html[data-surface="portal"] .badge:not([class*=" "]) { background: #f2f3f5; color: #3a3a3c; }
html[data-surface="portal"] .ptable tbody th { background: #fff; }
html[data-surface="portal"] .ptable thead th { background: #fafafb; font-size: 12.5px; color: #8e8e93; }
html[data-surface="portal"] tbody tr.is-picked td { background: #f2f3f5; box-shadow: none; }
html[data-surface="portal"] tbody tr.is-picked td:first-child { box-shadow: inset 3px 0 0 #1d1d1f; }

/* Drawers stand on the canvas with a white head, like a screen. */
html[data-surface="portal"] .drawer { background: #f4f5f7; border-left-color: #eaecef; }
html[data-surface="portal"] .drawer :is(.sheethead, .drawerhead) { background: #fff; border-bottom: 1px solid #e8eaee; }
html[data-surface="portal"] .drawer .sheethead :is(h2, h3, .sheettitle) { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

/* Dialogs. */
html[data-surface="portal"] .modal .mhead { background: #fff; border-bottom-color: #f0f1f4; }
html[data-surface="portal"] :is(.modal, .drawer) .receipt { border-radius: 14px; border-color: #eaecef; }
html[data-surface="portal"] .modal .cmprow { border-radius: 14px; border-color: #eaecef; }
html[data-surface="portal"] :is(.modal, .drawer) .iconbtn { border-radius: 980px; border-color: transparent; background: #f2f3f5; }
html[data-surface="portal"] .modal .notice:not(.banner) { border: 1px solid #eaecef; border-radius: 14px; background: #f6f7f9; box-shadow: none; }
html[data-surface="portal"] .modal .pick { border-radius: 14px; border-color: #eaecef; }

/* Conversations: soft bubbles, no outlines. */
html[data-surface="portal"] .msg { border: 0; border-radius: 16px; background: #f6f7f9; }
html[data-surface="portal"] .msg.is-mine { background: #eef0f3; border: 0; }
html[data-surface="portal"] .mclocks { border: 0; background: #f6f7f9; border-radius: 14px; padding: 10px 14px; font-size: 12.5px; color: #6e6e73; }

/* Notes, choices, photographs. */
html[data-surface="portal"] .notebox { border-left: 0; border-radius: 12px; background: #fff7e8; color: #6e4a00; padding: 10px 12px; font-size: 13px; }
html[data-surface="portal"] .notecard { border-left: 1px solid #eaecef; padding: 16px 20px; }
html[data-surface="portal"] .main .pick { border-radius: 12px; border-color: #e1e3e8; padding: 11px 14px; }
html[data-surface="portal"] .main .pick:hover { border-color: #c7c7cc; }
html[data-surface="portal"] .main .pick.is-on, html[data-surface="portal"] .main .pickgrid.is-choice .pick.is-on { background: #fff; border-color: #1d1d1f; box-shadow: inset 0 0 0 1px #1d1d1f; }
html[data-surface="portal"] .main .pick input { accent-color: #1d1d1f; }
html[data-surface="portal"] .pm-kind { border-color: #eaecef; border-radius: 12px; }
html[data-surface="portal"] .pm-kind[aria-checked="true"] { border-color: transparent; background: #f2f3f5; box-shadow: inset 0 0 0 1.5px #1d1d1f; }
html[data-surface="portal"] .evshot { border-radius: 14px; border-color: #eaecef; background: #f2f3f5; }
html[data-surface="portal"] .evshot .evname { font-size: 11px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
html[data-surface="portal"] .main .grid-2:has(> .pkgcard) { align-items: start; }
html[data-surface="portal"] .main .card > .eyebrow:first-child { font-size: 15px; font-weight: 600; color: #1d1d1f; letter-spacing: -.015em; margin-bottom: 6px; }

/* Tracking's follow panel. */
html[data-surface="portal"] .ow-overview .sp-row-copy b { font-size: 13px; font-weight: 600; }
html[data-surface="portal"] .ow-overview .sp-row-copy small { font-size: 12px; color: #6e6e73; }
html[data-surface="portal"] .ow-overview .sp-state { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 980px; background: #fff; }
html[data-surface="portal"] .ow-overview .sp-parcel-current { background: #fff; border: 1px solid #eaecef; border-radius: 14px; }

/* An iOS switch: grey off, green on, a white knob either way. */
html[data-surface="portal"] .switch .track { background: #e5e5ea; border-color: transparent; }
html[data-surface="portal"] .switch .track::after { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
html[data-surface="portal"] .switch input:checked + .track { background: #34c759; border-color: transparent; }
html[data-surface="portal"] .switch input:checked + .track::after { background: #fff; }

@media (max-width: 720px) {
  html[data-surface="portal"] .tablewrap tbody td::before { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; color: #8e8e93; }
  html[data-surface="portal"] .main .card.pad-0:has(tr.grouprow) { background: transparent; border: 0; border-radius: 0; }
  html[data-surface="portal"] tr.grouprow { border-color: #eaecef; border-radius: 18px; }
  html[data-surface="portal"] .tracking-page tbody tr { border-radius: 18px; border-color: #eaecef; box-shadow: none; }
  html[data-surface="portal"] .catline { flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
  html[data-surface="portal"] .catline .fieldchips { flex-basis: 100%; }
  html[data-surface="portal"] .catline .btn { margin-left: 0; }
  html[data-surface="portal"] .pick.tight > span { flex-wrap: wrap; }
  html[data-surface="portal"] .datespan { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; }
  html[data-surface="portal"] .mclocks .mclock { border-right: 0 !important; }
}
html[data-surface="portal"] .badge::first-letter { text-transform: uppercase; }

/* A row of filters under one tab: smaller, quieter, no fill until chosen. */
.subtabs { margin-top: -8px; }
.subtabs[hidden] { display: none; }
html[data-surface="portal"] .subtabs .tabb { font-size: 12.5px; padding: 5px 11px; font-weight: 500; }
html[data-surface="portal"] :is(#tabs, .tabbar, body) .subtabs .tabb:not([aria-selected="true"]) { background: transparent; box-shadow: none; color: #6e6e73; }
html[data-surface="portal"] :is(#tabs, .tabbar, body) .subtabs .tabb:not([aria-selected="true"]):hover { background: #eceef1; color: #1d1d1f; }
html[data-surface="portal"] :is(#tabs, .tabbar, body) .subtabs .tabb[aria-selected="true"] { background: #fff; color: #1d1d1f; box-shadow: inset 0 0 0 1px #d1d1d6; }
html[data-surface="portal"] .subtabs .tabb[aria-selected="true"] .tcount { background: rgba(0, 0, 0, .06); color: #6e6e73; }

/* Orders: the status is the button, or the pill when there is nothing to press. */
.ordmarks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ordmarks .badge { font-size: 11px; padding: 1px 7px; }
.statecell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.statehint { font-size: 11.5px; color: var(--text-dim); line-height: 1.35; max-width: 220px; }
.oc-cust { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The reason behind a status, as an i. */
.statecell { flex-direction: row; align-items: center; gap: 6px; }
.infotip { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #8e8e93; cursor: help; flex: none; }
.infotip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.infotip:hover, .infotip:focus-visible { color: #1d1d1f; background: #f2f3f5; outline: none; }
.infotip.is-waiting { color: var(--warn-ink); }
.infotip.is-waiting:hover, .infotip.is-waiting:focus-visible { color: var(--warn-ink); background: var(--warn-soft); }
/* Where the supplier photos stand on an order, a word beside Fulfill.
   Awaiting is grey and dashed, because it is nobody's move but the
   supplier's; Check photos is amber, because it is yours; approved is the
   green tick; rejected is red. Check and rejected are buttons. */
.qctag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; flex: none; border: 1px solid transparent; cursor: default; }
.qctag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button.qctag { cursor: pointer; }
.qctag:focus-visible { outline: none; box-shadow: var(--ring); }
.qctag.is-wait { color: var(--text-dim); background: transparent; border: 1px dashed var(--border-strong); }
.qctag.is-check { color: var(--warn-ink); background: var(--warn-soft); }
button.qctag.is-check:hover { filter: brightness(.96); }
.qctag.is-ok { color: var(--good-ink); background: var(--good-soft); }
.qctag.is-bad { color: var(--bad-ink, var(--bad)); background: var(--bad-soft); }

/* Buttons are rounded rectangles, the way macOS and iOS draw them; a pill is
   for a tab or a status, which are not things to press for an action. */
html[data-surface="portal"] .btn { border-radius: 9px; }
html[data-surface="portal"] .btn.sm { border-radius: 8px; }
html[data-surface="portal"] :is(.tl-btn, .dsh-pillbtn) { border-radius: 9px; }
html[data-surface="portal"] .dsh-band .dsh-pillbtn, html[data-surface="portal"] .pagehead .btn { border-radius: 10px; }

/* A button in a row is a macOS push button: white, a hairline edge and a
   soft drop under it, so it reads as something to press on a white row
   rather than as a grey label. Red stays for the one action in the head. */
html[data-surface="portal"] :is(tbody, .ordercard, .tl-old) :is(.btn.ghost, .btn.quiet, .tl-btn.is-quiet) {
  background: #fff; color: #1d1d1f; border: 1px solid #d1d1d6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
html[data-surface="portal"] :is(tbody, .ordercard, .tl-old) :is(.btn.ghost, .btn.quiet, .tl-btn.is-quiet):hover {
  background: #f6f7f9; border-color: #c7c7cc;
}
html[data-surface="portal"] :is(tbody, .ordercard, .tl-old) :is(.btn.ghost, .btn.quiet, .tl-btn.is-quiet):active {
  background: #eceef1; box-shadow: none;
}

/* iOS tinted buttons: the system blue on a wash of itself, no edge, no drop.
   Something to fix is the system red the same way. The text is the deeper
   blue and red, because the system blue on its own wash is under 4.5:1. */
html[data-surface="portal"] :is(tbody, .ordercard, .tl-old) :is(.btn.ghost, .btn.quiet, .tl-btn.is-quiet) {
  background: rgba(0, 122, 255, .1); color: #0062cc; border: 0; box-shadow: none; font-weight: 600;
}
html[data-surface="portal"] :is(tbody, .ordercard, .tl-old) :is(.btn.ghost, .btn.quiet, .tl-btn.is-quiet):hover {
  background: rgba(0, 122, 255, .16); border: 0;
}
html[data-surface="portal"] :is(tbody, .ordercard, .tl-old) :is(.btn.ghost, .btn.quiet, .tl-btn.is-quiet):active {
  background: rgba(0, 122, 255, .24);
}
html[data-surface="portal"] :is(tbody, .ordercard) .btn.ghost.is-fix { background: rgba(255, 59, 48, .1); color: #c4271c; }
html[data-surface="portal"] :is(tbody, .ordercard) .btn.ghost.is-fix:hover { background: rgba(255, 59, 48, .16); }
/* Fulfill is the green of something ready to go. It was the system blue
   every row button is, which is also the blue of Processing two columns
   along, so a ready order and one already with the warehouse read alike. */
html[data-surface="portal"] :is(tbody, .ordercard) .btn.ghost.is-go { background: rgba(52, 199, 89, .14); color: #1f7a37; }
html[data-surface="portal"] :is(tbody, .ordercard) .btn.ghost.is-go:hover { background: rgba(52, 199, 89, .22); }
html[data-surface="portal"] :is(tbody, .ordercard) .btn.ghost.is-go:active { background: rgba(52, 199, 89, .3); }

/* A tab in a tile that waits on somebody, and the way to the rest. */
.tl-tabs button.is-wait { color: #b25000; background: #fff4e5; }
.tl-tabs button.is-wait[aria-selected="true"] { background: #b25000; color: #fff; }
.tl-more { margin-top: auto; padding-top: 12px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #0062cc; text-decoration: none; border-radius: 8px; }
.tl-more span { font-weight: 500; color: #8e8e93; }
.tl-more .tl-chev { stroke: #0062cc; width: 11px; height: 11px; }
.tl-more:hover { text-decoration: underline; text-underline-offset: 2px; }
.tl-more:focus-visible { outline: none; box-shadow: var(--ring); }

/* Revenue and cost per day, the day each order was placed. */
.tl-pair { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tl-cost { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tl-cost em { font-style: normal; font-size: 13px; font-weight: 600; color: #6e6e73; }
.tl-cost b { font-size: 24px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.tl-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0 6px; font-size: 12px; color: #6e6e73; }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 10px; height: 10px; border-radius: 3px; }
.k-rev, .tl-rev { background: #007aff; }
.k-cst, .tl-cst { background: #1d1d1f; }
.k-unp, .tl-unp { background: #ff9f0a; }
.tl-bars { position: relative; flex: 1; min-height: 160px; display: flex; align-items: stretch; gap: 3px; padding-top: 14px; margin-bottom: 22px; border-top: 1px dashed #e5e5ea; border-bottom: 1px solid #e5e5ea; }
.tl-bars.is-empty { border: 0; }
.tl-max { position: absolute; top: -9px; right: 0; font-size: 11px; color: #aeaeb2; background: #fff; padding-left: 6px; font-variant-numeric: tabular-nums; }
.tl-bc { position: relative; flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: center; gap: 1px; border-radius: 4px; cursor: default; }
.tl-bc:hover, .tl-bc:focus-visible { background: #f2f3f5; outline: none; }
.tl-bp { height: 100%; width: 44%; max-width: 14px; display: flex; flex-direction: column-reverse; }
.tl-bp span { display: block; width: 100%; min-height: 0; }
.tl-bp span:last-child { border-radius: 3px 3px 0 0; }
.tl-bars.is-dense { gap: 1px; }
.tl-bars.is-dense .tl-bp { width: 48%; }
.tl-bl { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: #8e8e93; white-space: nowrap; }

/* Revenue as an area, cost as a line, orange dots where a cost is still coming. */
.tl-chart { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.tl-lines { display: block; width: 100%; height: auto; overflow: visible; }
.tl-lines .ax { stroke: #e5e5ea; }
.tl-lines .ln-rev { fill: none; stroke: #007aff; stroke-width: 2.4; stroke-linejoin: round; }
.tl-lines .ln-cst { fill: none; stroke: #1d1d1f; stroke-width: 2; stroke-linejoin: round; }
.tl-lines .dot-unp { fill: #ff9f0a; stroke: #fff; stroke-width: 2; }
.tl-lines text { font-family: var(--font-apple); font-size: 10.5px; fill: #8e8e93; }
.tl-hits { position: absolute; inset: 0 0 22px 0; display: flex; }
.tl-hits span { flex: 1; border-radius: 6px; }
.tl-hits span:hover, .tl-hits span:focus-visible { background: rgba(0, 0, 0, .035); outline: none; }
.k-line { height: 3px !important; border-radius: 2px !important; width: 14px !important; }
.k-dot { border-radius: 50% !important; }

/* --- the price request, as a sheet ----------------------------------------
   The merchant's Request a price form (sourcing-workflow.js). A frame of a
   fixed height, so nothing that lands after it opens can move it: the old
   form was centred on a max height, and the dossier arriving a moment late
   grew it under the pointer. The product is the head, with one status line
   under it that holds its place from the first frame. The body is grouped
   lists, and the long ones open as a page inside the same sheet rather than
   growing the form. Tokens only, scoped here and placed after the portal
   block, so none of its fixed light colours reach in. */
.sheet.srsheet {
  width: min(600px, calc(100vw - 32px));
  height: min(780px, calc(100dvh - 64px));
  max-height: none;
  background: var(--surface-1);
  overflow: hidden;
}
.srsheet .sheethead { border-bottom: 0; padding: 18px 20px 12px; align-items: center; gap: 12px; transition: box-shadow var(--fast); }
.srsheet.is-scrolled .sheethead { box-shadow: inset 0 -1px 0 var(--border); }
.srsheet .sheethead > .iconbtn {
  width: 30px; height: 30px; border-radius: 50%; flex: none; align-self: flex-start;
  background: var(--surface-2); border-color: transparent; color: var(--text-muted);
}
.srsheet .sheethead > .iconbtn:hover { color: var(--text); background: var(--card-hover); }
.srhead { display: flex; gap: 14px; align-items: center; min-width: 0; flex: 1; }
.srthumb { flex: none; }
.srthumb .pthumb { width: 56px; height: 56px; border-radius: 12px; }
.srwho { min-width: 0; flex: 1; }
.srkicker { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.srsheet .srwho h3 {
  margin: 1px 0 0; font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text);
}
.srmeta { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
.srstate {
  margin: 4px 0 0; min-height: 18px; font-size: 12.5px; line-height: 18px; color: var(--text-dim);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
/* On a phone the line can take two, so it holds two from the first frame,
   and never more: whatever lands on it later does not move the form. */
@media (max-width: 720px) {
  .srstate { min-height: 36px; max-height: 36px; overflow: hidden;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .srstate .srspin { display: inline-block; vertical-align: -1px; margin-right: 6px; }
}
.srstate.is-bad { color: var(--bad); }
.srstate.is-good { color: var(--good-ink); }
.srspin {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--border-strong); border-top-color: var(--text-muted);
  animation: spin 800ms linear infinite;
}
.srlink {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 600;
  color: var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: var(--border-strong);
}
.srlink:hover { text-decoration-color: currentColor; }
.srlink:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.srpager { display: flex; align-items: center; gap: 6px; flex: none; align-self: flex-start; }
.srpager .iconbtn { width: 30px; height: 30px; border-radius: 50%; }
.srpager .srprev svg { transform: scaleX(-1); }
.srpos { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 40px; text-align: center; }

.srsheet .sheetbody {
  flex: 1; min-height: 0; padding: 4px 20px 24px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
}
.srsheet .sheetbody:focus { outline: none; }
.srsheet .gcap { margin: 22px 4px 6px; }
.srsheet .gfoot { margin-top: 6px; }
.srlist.is-pad { padding: 12px; }
.srsheet .grow { min-height: 48px; }
.srsheet .grow .chev { display: inline-flex; width: auto; height: auto; }
.srsheet button.grow { cursor: pointer; }
.srsheet .grow-sub.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srsheet label.grow:has(:focus-visible), .srsheet button.grow:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-line); }

/* The category, as a value at the end of its row rather than a bar. */
.srselectwrap { position: relative; display: inline-flex; align-items: center; color: var(--text-dim); min-width: 0; max-width: 60%; }
.srsheet .srselect {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; box-shadow: none;
  color: var(--text-muted); font: inherit; font-size: 14px; text-align: right; text-align-last: right;
  padding: 4px 20px 4px 4px; margin: 0; height: auto; cursor: pointer; min-width: 0; max-width: 100%;
  border-radius: 0;
}
.srsheet .srselect:focus { outline: none; }
.srselectwrap svg { position: absolute; right: 0; pointer-events: none; }

/* A country picked is green, the way a choice is everywhere else here: the
   red on this sheet is spent on Send. */
.srpills { display: flex; flex-wrap: wrap; gap: 6px; }
.srpill { position: relative; display: inline-flex; margin: 0; }
.srpill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.srpill > span {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background var(--fast), color var(--fast), box-shadow var(--fast);
}
.srpill > span > svg:first-child { display: none; }
.srpill input:checked + span { background: var(--picked-soft); color: var(--good-ink); box-shadow: inset 0 0 0 1px var(--picked-line); }
.srpill input:checked + span > svg:first-child { display: inline; }
.srpill input:focus-visible + span { box-shadow: var(--ring); }
.srsheet button.srpill { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.srpill.is-more > span { background: transparent; color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border); }
.srpill.is-more > span > svg { display: inline; }
.srpill.is-more:hover > span { color: var(--text); }
.srpill.is-more:focus-visible { outline: none; }
.srpill.is-more:focus-visible > span { box-shadow: var(--ring); }
.srpill-tag { font-style: normal; font-size: 11.5px; color: var(--text-dim); font-weight: 500; }

/* A detail to ask for, ticked with a round check. */
.srcheck { position: relative; }
.srcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.srbox {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  /* The ring is the control's only edge, so it is an ink rather than a
     hairline: --border-strong was 1.6:1 on the card, under the 3:1 a state
     indicator needs. */
  box-shadow: inset 0 0 0 1.5px var(--text-dim);
  display: grid; place-items: center; color: transparent;
  transition: background var(--fast), box-shadow var(--fast), color var(--fast);
}
.srbox svg { stroke-width: 2.4; }
.srcheck input:checked ~ .srbox { background: var(--picked); box-shadow: none; color: #fff; }
.srcheck .grow-title { display: inline-flex; align-items: center; gap: 8px; }
.srlist .srcheck + .grow::before, .srlist .srcheck + .srcheck::before { left: 52px; }
.srcheck[hidden] { display: none; }

.srpromise { margin: 8px 4px 0; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); display: flex; gap: 6px; align-items: center; }
.srpromise { align-items: flex-start; }
.srpromise svg { flex: none; margin-top: 2px; }
.srpromise b { color: var(--text); font-weight: 600; }

.srnotewrap:focus-within { box-shadow: 0 0 0 2px var(--accent-line); }
.srsheet .srnote {
  display: block; width: 100%; min-height: 88px; max-height: 240px; resize: none;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--text);
  font: inherit; font-size: 14px; line-height: 1.5; padding: 12px 16px; margin: 0;
  field-sizing: content;
}
.srsheet .srnote:focus { outline: none; }
.srsheet .srnote::placeholder { color: var(--text-dim); }

/* A list that opens over the form, inside the same sheet. A short slide, and
   none at all under reduced motion (the global rule). */
.srpage.is-in { animation: srin var(--med) both; }
.srpage.is-back { animation: srback var(--med) both; }
@keyframes srin { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes srback { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.srpanehead { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; min-height: 32px; }
.srpanehead h4 { margin: 0; font-size: 15px; font-weight: 650; flex: 1; text-align: center; color: var(--text); }
.srpanecount { font-size: 12.5px; color: var(--text-dim); min-width: 72px; text-align: right; }
.srback {
  display: inline-flex; align-items: center; gap: 2px; min-width: 72px; height: 32px; padding: 0 6px 0 0;
  border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer;
  border-radius: 8px;
}
.srback svg { transform: scaleX(-1); }
.srback:hover { color: var(--text-muted); }
.srback:focus-visible { outline: none; box-shadow: var(--ring); }
.srsearch {
  display: flex; gap: 8px; align-items: center; height: 36px; padding: 0 12px; margin: 0 0 12px;
  border-radius: 10px; background: var(--surface-2); color: var(--text-dim);
}
.srsheet .srsearch input {
  border: 0; background: transparent; box-shadow: none; color: var(--text); font: inherit; font-size: 14px;
  flex: 1; min-width: 0; outline: none; padding: 0; height: 34px; border-radius: 0;
}
.srsearch:focus-within { box-shadow: inset 0 0 0 2px var(--accent-line); }
.srgroup[hidden] { display: none; }
.srgroup .gcap { margin-top: 16px; }
.srgroup:first-of-type .gcap { margin-top: 0; }

/* One button that sends, in the screen's one red, and a quiet way to keep
   it for later. */
.srsheet .sheetfoot {
  flex: none; flex-wrap: nowrap; align-items: center;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface-1); border-top: 1px solid var(--border);
}
.srsheet .sheetfoot .btn { height: 40px; padding: 0 18px; border-radius: var(--radius-pill); font-size: 14px; }
.srsheet .sheetfoot .btn.plain {
  margin-right: auto; background: transparent; border-color: transparent; box-shadow: none; color: var(--text-muted);
}
.srsheet .sheetfoot .btn.plain:hover { color: var(--text); background: var(--surface-2); }
.srsheet .sheetfoot .btn.plain:focus-visible { box-shadow: var(--ring); }
.srsheet .sheetfoot .btn.accent { min-width: 140px; }

/* On a phone it comes up from the foot of the screen, the way a sheet does
   there. The grabber is a picture of one: dragging it would close the form
   past the question about unsaved work. */
@media (max-width: 720px) {
  .overlay.is-srsheet.open { align-items: flex-end; padding: 0; }
  .sheet.srsheet {
    width: 100%; height: calc(100dvh - 12px);
    border-radius: 16px 16px 0 0; border-bottom: 0;
    animation: srup var(--med) both;
  }
  .srsheet .sheethead { padding: 20px 16px 10px; position: relative; }
  .srsheet .sheethead::before {
    content: ''; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px;
    border-radius: 3px; background: var(--border-strong);
  }
  .srsheet .sheetbody { padding: 4px 16px 20px; }
  .srthumb .pthumb { width: 48px; height: 48px; }
  .srsheet .srwho h3 { font-size: 17px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .srsheet .sheetfoot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .srsheet .sheetfoot .btn.accent { flex: 1; }
  .srpill > span { height: 34px; }
  .srpager .srpos { min-width: 0; }
  .srsheet .grow.srfield { flex-direction: row; }
}
@keyframes srup { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }

/* The order drawer's supplier photo card (ordersheet.js photoCard): the
   photographs themselves when they are in, empty tiles while the supplier has
   sent none. Green and amber are the state; the accent is not spent here. */
.spcard { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.spcard-tiles { display: flex; flex: none; }
.spcard.is-check { box-shadow: inset 3px 0 0 var(--warn); }
.spcard.is-wait { box-shadow: inset 3px 0 0 var(--border-strong); }
.spcard.is-ok { box-shadow: inset 3px 0 0 var(--good); }
.spcard.is-reject { box-shadow: inset 3px 0 0 var(--bad); }
.spcard:not(.is-wait) .spcard-tiles { cursor: pointer; }
.spcard:not(.is-wait) .spcard-tiles:hover .spcard-tile { transform: none; }
.spcard.is-wait .spcard-tile { border: 1.5px dashed var(--border-strong); background: var(--card); box-shadow: none; color: var(--text-dim); }
.spcard-pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spcard.is-wait .spcard-pill { background: transparent; border: 1px dashed var(--border-strong); color: var(--text-dim); }
.spcard.is-check .spcard-pill { background: var(--warn-soft); color: var(--warn-ink); }
.spcard.is-ok .spcard-pill { background: var(--good-soft); color: var(--good-ink); }
.spcard.is-reject .spcard-pill { background: var(--bad-soft); color: var(--bad-ink); }
.spcard-tile { position: relative; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); border: 2px solid var(--card); color: var(--text-dim); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.spcard-tile + .spcard-tile { margin-left: -10px; }
.spcard-tile:nth-child(2) { transform: rotate(-3deg); }
.spcard-tile:nth-child(3) { transform: rotate(3deg); }
.spcard-tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.spcard-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spcard-tile em { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-style: normal; font-weight: 600; font-size: 11px; }
.spcard-tile.is-loading { animation: spcardPulse 1.2s ease-in-out infinite; }
@keyframes spcardPulse { 50% { opacity: .55; } }
.spcard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.spcard-text b { font-size: 14px; font-weight: 600; color: var(--text); }
.spcard-text > span:not(.spcard-pill) { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.spcard-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 600; }
.spcard-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.spcard-more { font-size: 12px; color: var(--warn-ink) !important; }
@media (max-width: 720px) {
  .spcard { flex-wrap: wrap; gap: 12px; }
  .spcard .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .spcard-tile.is-loading { animation: none; }
}
