/* =====================================================================
   look.css — the quieter look (owner, 2026-11-07: "Linear and Apple are the north star").
   ---------------------------------------------------------------------
   TEMPORARY LAYER. It sits on top of theme.css + app.css on every page with the app's rail,
   EXCEPT Settings and Marketing, which stay exactly as they are while Meta reviews them
   (owner, 2026-11-07). Which pages get it: src/ui/look.js (the render wrapper adds the link
   right before mobile.css). Once the review is over, this file is merged into theme.css
   (the tokens) and app.css (the rules) and deleted, with look.js.

   What it decides:
   - no navy table header: quiet muted labels on the surface, the sort arrow only on the
     sorted column or under the pointer;
   - nothing at rest casts a shadow — a shadow means something floats (menus, dialogs);
   - a status is its dot and its words, no filled capsule; amber and red keep coloured words;
   - one line per row: a .cell-2's second line sits beside the first, muted;
   - numbers in the app's font with even-width figures, not typewriter digits;
   - the switch is Apple's: a white tab on a grey track; the main button keeps the logo's fade,
     without the coloured glow under it (owner, 2026-11-07: "bring the [fade] back like proposed" —
     solid, it no longer matched the website's start page);
   - labels in sentence case, never all capitals;
   - FROSTED GLASS (owner, 2026-11-13, tuned in the "Sellevry Glass Tuner" mock): a soft wash of
     the logo's colours behind the page, see-through cards, tiles and tables, and blurred glass on
     the top bar (at the top of the page too) and on everything that floats — the quick look,
     menus, the Filters pane, dialogs, toasts, Sally. Its block is at the end of this file.
   Contrast: no text colour changes here, so the checked pairs (and Increase Contrast,
   whose theme.css block outranks these selectors) hold.
   Tested by src/ui/look.test.js and src/ui/look.browser.test.js.
   ===================================================================== */

/* ---------- tokens ---------- */
/* THE SCALE (owner, 2026-11-08: "the fixed scale for text sizes, corners and shadows"): ten text
   sizes, five corners and a round one, four shadows. Every sheet writes them as var(--fs-13, 13px)
   — today's value as the fallback, which is what Settings and Marketing draw while this layer
   stays off them; every page with this layer draws the step. When the Meta review is done the
   tokens move to theme.css and the fallbacks go (src/ui/scale.test.js holds the rule).
   --n-* are the same text steps without a unit, for the phone's Larger Text sizes
   (calc(var(--tsr) * N), mobile.css 7j). */
:root{
  --fs-11:11px; --fs-12:12px; --fs-13:13px; --fs-14:14px; --fs-15:15px;
  --fs-16:16px; --fs-17:17px; --fs-20:20px; --fs-24:24px; --fs-30:30px;
  --n-11:11; --n-12:12; --n-13:13; --n-14:14; --n-15:15; --n-16:16; --n-17:17; --n-20:20; --n-24:24; --n-30:30;
  --r-4:4px; --r-6:6px; --r-8:8px; --r-12:12px; --r-16:16px; --r-full:999px;
  /* the body's one size on a computer: 13px (theme.css's laptop tier, 12.5px, was off the scale).
     A plain :root, so the phone's Larger Text size (mobile.css, after this sheet) still wins. */
  --fs-body:13px;
  /* ONE row hover (the block at the end of this file): the theme's ink at 7%, laid over the row */
  --row-hover:color-mix(in srgb,var(--text) 7%,transparent);
  /* a phone's bottom sheet: its corner, a shape of its own like the rail's capsule (BOTTOM SHEETS) */
  --sheet-radius:30px;
}
/* (0,2,0) beats theme.css / app.css :root; Increase Contrast's html:root:not(…) (0,2,1) still wins. */
:root:not([data-theme="dark"]){
  --shadow:none;
  /* the main button (THE MAIN BUTTON): its glow under the pointer, the light that passes once */
  --btn-glow:color-mix(in srgb, var(--accent-end) 46%, transparent);--btn-glow-near:color-mix(in srgb, var(--accent) 34%, transparent);--btn-sheen:rgb(255 255 255 / .42);
  /* the four shadows: a hairline lift, a raised card, a lifted card, something floating */
  --elev-1:0 1px 2px rgba(11,21,48,.06);
  --elev-2:0 1px 2px rgba(11,21,48,.06),0 8px 24px -12px rgba(3,40,110,.22);
  --elev-3:0 2px 6px rgba(11,21,48,.06),0 16px 40px -12px rgba(3,40,110,.22);
  --elev-4:0 2px 8px rgba(11,21,48,.08),0 24px 60px -16px rgba(3,40,110,.32);
  /* the mock's neutral ground (hq.css): a grey page, white cards, hairline borders, ink text. Muted text is
     darker than the mock's #6a7183, so it keeps 4.5:1 on the hover / header grey and on a glass card. */
  --bg:#f7f8fa; --surface:#ffffff; --surface-2:#f4f5f7; --surface-3:#eceef2;
  --border:#e3e6eb; --border-light:#eef0f3; --border-strong:#cfd5de;
  --text:#151922; --text-2:#3a4150; --text-muted:#5e6679; --muted:#5e6679;
  /* one shade darker under THE GLASS (owner, 2026-11-13: "darker small text"): on a card where the wash's
     blue and violet are strongest, #646c7f / #1a7a4e / #d23b2e read 4.2 / 4.2 / 3.8:1; these keep 4.5:1
     (page-glass.browser.test.js reads the pixels). Dark mode passes as it is. */
  /* GLASS:BEGIN */--green:#187048; --red:#bd3428;/* GLASS:END */
  --radius:12px;
  --th-bg:transparent; --th-fg:var(--text-muted); --th-text:var(--text-muted); --th-accent:var(--text-muted); --th-border:var(--border);
  --panel-tabs-bg:var(--surface-2); --panel-tabs-border:var(--border-light);
  --panel-tabs-fg:var(--text-muted); --panel-tabs-fg-hover:var(--text-strong); --panel-tab-ink:var(--accent);
  --rail-head-bg:transparent; --rail-head-fg:var(--text-muted); --rail-head-border:var(--border-light);
  --panel-sec:var(--muted);
  --seg-track:rgb(118 118 128 / .1);
  --switch-on-bg:var(--surface); --switch-on-ring:0 1px 2px rgb(16 24 40 / .12),0 0 0 .5px rgb(16 24 40 / .08);
  /* GLASS:BEGIN */
  --rail-head-tool-bg:rgb(10 14 30 / .22); --rail-head-tool-hover:rgb(10 14 30 / .38); --rail-head-ink:#ffffff;
  --rail-band-fade:linear-gradient(#000 21.6px,rgb(0 0 0/.9) 28.8px,rgb(0 0 0/.65) 37.2px,rgb(0 0 0/.35) 44.4px,rgb(0 0 0/.1) 52.8px,transparent 60px);   /* the folded cap's fade (app.css SIDEBAR), in px over 60 */
  /* GLASS:END */
  /* THE GLASS (the block at the end of this file) — between the GLASS markers, copied into glass.css
     (scripts/build-glass-css.mjs) for the pages that take the glass without the quieter look */
  /* GLASS:BEGIN */
  --page-wash:radial-gradient(52vw 46vh at 14% 6%,rgb(3 110 230 / .34),transparent 72%),radial-gradient(44vw 52vh at 92% 26%,rgb(120 60 215 / .18),transparent 72%),radial-gradient(56vw 42vh at 58% 104%,rgb(240 150 40 / .30),transparent 72%),radial-gradient(36vw 34vh at 30% 70%,rgb(3 110 230 / .14),transparent 72%);
  --page-wash-strength:.8;
  --topbar-glass:color-mix(in srgb,var(--topbar-bg) 56%,transparent);
  --glass-bar-filter:blur(24px) saturate(180%);
  --glass-card:color-mix(in srgb,var(--surface) 52%,transparent);
  --glass-float:color-mix(in srgb,var(--surface) 62%,transparent);
  --glass-float-filter:blur(34px) saturate(180%);
  --glass-edge:color-mix(in srgb,var(--border) 50%,transparent);
  --glass-edge-soft:color-mix(in srgb,var(--border-light) 50%,transparent);
  --glass-strip:color-mix(in srgb,var(--surface-2) 38%,transparent);
  --glass-sheen:linear-gradient(180deg,rgb(255 255 255 / .27),rgb(255 255 255 / 0) 44%);
  --glass-hi:inset 0 1px 0 rgb(255 255 255 / .7);
  --glass-lift:0 1px 2px rgb(11 21 48 / .035),0 10px 30px -10px rgb(11 21 48 / .11);
  --glass-float-lift:0 1px 2px rgb(11 21 48 / .056),0 16px 48px -10px rgb(11 21 48 / .176);
  --glass-scrim:rgb(11 21 48 / .3);
  --glass-scrim-filter:blur(8px);
  --dialog-edge:var(--border); --dialog-line:var(--border);
  --dialog-lift:0 2px 8px rgba(11,21,48,.08),0 24px 60px -16px rgba(3,40,110,.32);   /* = --elev-4, which glass.css has not */
  /* GLASS:END */
  /* a phone's bottom sheet (BOTTOM SHEETS): its dim and its lift */
  --bs-scrim:rgb(11 21 48 / .3);
  --bs-lift:0 22px 60px -14px rgb(11 21 48 / .34);
  /* SOLID DRAWING IN 3D: the light a leaning photo catches where the pointer is */
  --depth-sheen:rgb(255 255 255 / .34);
}
html[data-theme="dark"]{
  --shadow:none;
  --btn-glow:color-mix(in srgb, var(--accent-end) 34%, transparent);--btn-glow-near:color-mix(in srgb, var(--accent) 34%, transparent);--btn-sheen:rgb(255 255 255 / .3);
  --elev-1:0 1px 2px rgba(0,0,0,.4);
  --elev-2:0 6px 18px rgba(0,0,0,.45);
  --elev-3:0 14px 36px rgba(0,0,0,.55);
  --elev-4:0 24px 60px rgba(0,0,0,.6);
  --bg:#0f1218; --surface:#151922; --surface-2:#1a1f29; --surface-3:#222834;
  --border:#252b36; --border-light:#1d222c; --border-strong:#323a48;
  --text:#e6e9ef; --text-2:#c2c8d3; --text-muted:#8b93a3; --muted:#8b93a3;
  --radius:12px;
  --th-bg:transparent; --th-fg:var(--text-muted); --th-text:var(--text-muted); --th-accent:var(--text-muted); --th-border:var(--border);
  --seg-track:rgb(255 255 255 / .06);
  --switch-on-bg:rgb(255 255 255 / .11); --switch-on-ring:inset 0 0 0 .5px rgb(255 255 255 / .1),0 1px 2px rgb(0 0 0 / .4);
  /* GLASS:BEGIN */
  --rail-head-tool-bg:rgb(10 14 30 / .22); --rail-head-tool-hover:rgb(10 14 30 / .38); --rail-head-ink:#ffffff;
  --rail-band-fade:linear-gradient(#000 21.6px,rgb(0 0 0/.9) 28.8px,rgb(0 0 0/.65) 37.2px,rgb(0 0 0/.35) 44.4px,rgb(0 0 0/.1) 52.8px,transparent 60px);   /* the folded cap's fade (app.css SIDEBAR), in px over 60 */
  /* GLASS:END */
  /* THE GLASS (the block at the end of this file) */
  /* GLASS:BEGIN */
  --page-wash:radial-gradient(52vw 46vh at 14% 6%,rgb(50 120 240 / .30),transparent 72%),radial-gradient(44vw 52vh at 92% 26%,rgb(130 85 225 / .17),transparent 72%),radial-gradient(56vw 42vh at 58% 104%,rgb(240 150 40 / .20),transparent 72%),radial-gradient(36vw 34vh at 30% 70%,rgb(50 120 240 / .12),transparent 72%);
  --page-wash-strength:.6;
  /* 61%, not the mock's 58%: at 58% a white photo passing under the bar took its title to 4.2:1;
     61% is the least that keeps 4.5:1 (topbar-glass.browser.test.js, page-glass.browser.test.js) */
  --topbar-glass:color-mix(in srgb,color-mix(in srgb,var(--surface) 70%,var(--topbar-bg)) 61%,transparent);
  --glass-bar-filter:blur(24px) saturate(150%);
  --glass-card:color-mix(in srgb,var(--surface) 62%,transparent);
  --glass-float:color-mix(in srgb,var(--surface) 70%,transparent);
  --glass-float-filter:blur(34px) saturate(150%);
  --glass-edge:color-mix(in srgb,var(--border) 80%,transparent);
  --glass-edge-soft:color-mix(in srgb,var(--border-light) 80%,transparent);
  --glass-strip:color-mix(in srgb,var(--surface-2) 38%,transparent);
  --glass-sheen:linear-gradient(180deg,rgb(255 255 255 / .046),rgb(255 255 255 / 0) 44%);
  --glass-hi:inset 0 1px 0 rgb(255 255 255 / .12);
  --glass-lift:0 1px 2px rgb(0 0 0 / .042),0 10px 30px -10px rgb(0 0 0 / .132);
  --glass-float-lift:0 1px 2px rgb(0 0 0 / .067),0 16px 48px -10px rgb(0 0 0 / .211);
  --glass-scrim:rgb(0 0 0 / .55);
  --glass-scrim-filter:blur(8px);
  --dialog-edge:var(--border-strong); --dialog-line:var(--border-strong);
  --dialog-lift:0 24px 60px rgba(0,0,0,.6);
  /* THE CUSTOMER PAGES: the statement's paper in dark — the light theme's ink (theme.css), and its Increase Contrast ink */
  --paper:#ffffff; --paper-text:#1b2742; --paper-text-strong:#0b1530; --paper-text-subtle:#3f4e6e; --paper-text-muted:#5b6987;
  --paper-border:#d6deea; --paper-border-light:#e9edf4; --paper-danger:#d23b2e; --paper-success:#1a7a4e;
  --paper-more-subtle:#2a3754; --paper-more-muted:#3f4e6e; --paper-more-border:#8592ab; --paper-more-border-light:#a7b2c6;
  /* GLASS:END */
  --bs-scrim:rgb(0 0 0 / .55);
  --bs-lift:0 22px 60px -14px rgb(0 0 0 / .6);
  --depth-sheen:rgb(255 255 255 / .16);
}

/* ---------- tables ---------- */
table{font-variant-numeric:tabular-nums}
thead th{font-size:var(--fs-12);font-weight:500;letter-spacing:0;text-transform:none}
thead th .sort-arrow{opacity:0;transition:opacity var(--dur-fast) var(--ease)}
thead th:hover .sort-arrow,thead th:focus-within .sort-arrow,
thead th:is([aria-sort="ascending"],[aria-sort="descending"],.sort-asc,.sort-desc) .sort-arrow{opacity:.8}
tbody td{border-bottom-color:var(--border-light)}
/* ONE TABLE LOOK (owner, 2026-11-14: "sometimes tables have a different color, e.g. trays and
   /inventory#products — harmonize this"). The older list table (.inv-table: Inventory's lists, a channel's
   page, Review, the scanner's statistics) had its own box, header and text: a solid box beside the glass
   cards, 11px bold spaced labels, every column's ⇅ always showing, 13.6px cell insets and the page's
   brighter heading ink as its text. Now it reads as .table does: the glass card (THE GLASS, below), the same
   quiet labels and sort arrow, 12px insets, body text. A box that sits inside a card or a dialog keeps its
   own (none). Tested by src/ui/one-table-look.browser.test.js. */
.inv-table{color:var(--text)}
.inv-table th,.inv-table td{padding-left:12px;padding-right:12px}
.inv-table thead th{font-size:var(--fs-12, 12px);font-weight:500;letter-spacing:0;text-transform:none;padding-top:10px;padding-bottom:10px}
.inv-table thead th.inv-sortable::after{opacity:0;transition:opacity var(--dur-fast) var(--ease)}
.inv-table thead th.inv-sortable:is(:hover,:focus-within)::after{opacity:.8}
.inv-table thead th.inv-sortable:is(.inv-sort-asc,.inv-sort-desc)::after{opacity:.8}

/* one line per row: the second line beside the first, muted */
.cell-2{flex-direction:row;align-items:baseline;gap:8px;line-height:inherit}
.cell-2 > small{flex:0 1 auto}
td.num .cell-2{flex-direction:row-reverse}

/* numbers and codes in the app's font, even-width figures */
tbody td.mono,tbody td .mono,tbody td code,.kv .mono,.seg .n,.navlink .badge,.fbtn-n{
  font-family:var(--font-body);font-variant-numeric:tabular-nums;letter-spacing:0}
tbody td code{font-size:inherit;background:none;padding:0}

/* a row's tools stay faint until the row is pointed at (a phone shows them) */
@media (hover:hover){
  /* …not in a row's drop-down band (/js/row-drill.js): its buttons are the band's actions, not a row's tools —
     and not in an empty state (the row that says a search found nothing, App.noMatch): its "Search everywhere"
     is the way out, and it sat at 35% until pointed at (owner, 2026-11-17: "i see no changes") */
  tbody tr:not(.drill-detail):not(:hover):not(:focus-within) td :is(.btn.icon,.iconbtn,.btn.ghost.sm):not(.empty *){opacity:.35}
}

/* ---------- status: its dot and its words — every pill, as the mock (counts too: a tab's "27", the red
   listing-error count are plain coloured figures, not capsules). A removable tag keeps its capsule. ---------- */
.pill:not(:has(.pill-x)){background:transparent !important;border-color:transparent !important;box-shadow:none !important;padding:0 !important;height:auto !important;
  gap:7px;font-size:var(--fs-13);font-weight:500;color:var(--text) !important}   /* !important: page sheets style their pills harder (the mock's own rule) */
.pill:not(:has(.pill-x)) .pd{width:7px;height:7px}
/* its words on the line of the words beside it (owner, 2026-11-08: "● Signed  Nov 4, 10:07 AM" were "not
   sitting on the same height"): app.css centres the capsule (vertical-align: middle, line-height 1), which put
   a dot-and-words status a pixel or two off the text it stands in. The pill takes its words' baseline and sits
   on the line's; the dot and an icon stay centred on the words. The subtitle under a title lines up the same
   way. Tested by src/ui/pill-baseline.browser.test.js. */
.pill:not(:has(.pill-x)){vertical-align:baseline;align-items:baseline}
.pill:not(:has(.pill-x)) > :is(.pd, svg, i[data-lucide]){align-self:center}
/* A CLIPPED VALUE KEEPS ITS WORDS' LINE (owner, 2026-11-14, Review Requests' Tray column: "WW 1114 ● Priority"
   not aligned). A box clipped with overflow:hidden takes its BOTTOM edge as its baseline: in a table someone
   has sized, app.css clips every pill so it can end in "…", and the pill rode 5px over the name beside it; a
   clipped name (.cell-ellip, centred by app.css to make up for it) sat 1.6px under plain text and pills.
   overflow:clip clips and ends in "…" the same, and keeps the words' baseline — so both sit on the line. */
.cell-ellip{overflow:clip;vertical-align:baseline}
.cell-ellip + .cell-more{vertical-align:baseline}   /* "+ 3 more" followed the old centring (app.css) */
table.col-sized>tbody>tr>td:not([colspan]) .pill:not(:has(.pill-x)){overflow:clip}
.detail-sub{align-items:baseline}
/* two cards side by side start on one line (owner, 2026-11-08: a Customer head with "Open in CRM" stood taller
   than the Record head beside it): a card's head is as tall as one holding a small button, with or without one —
   12px above and below, the button, the line under it; a finger's button is 36px. Tested by
   src/ui/card-head-height.browser.test.js. */
.card > .card-head{min-height:calc(var(--btn-h-sm) + 25px)}
@media (pointer: coarse){ .card > .card-head{min-height:61px} }
.pill.xs:not(:has(.pill-x)){font-size:var(--fs-12);gap:5px}
.pill.red:not(:has(.pill-x)){color:var(--red-text) !important}
.pill.amber:not(:has(.pill-x)){color:var(--amber-text) !important}
.pill.magenta .pd{--pill-dot:var(--magenta);background:var(--magenta)}
.pill.violet .pd{--pill-dot:var(--violet);background:var(--violet)}
td[data-label="Status"] > div,.pill-stack{flex-direction:row;flex-wrap:wrap;gap:4px 14px;align-items:center}
/* several statuses in one cell sit on one line (Tray Manager's Status) */
.tray-status{flex-direction:row;align-items:center;gap:4px 14px}

/* ---------- the switch: a white tab on a grey track ---------- */
.seg{background:var(--seg-track);border-color:transparent}
.seg > button[aria-selected="true"]{color:var(--text);font-weight:500}
.seg .n{font-size:var(--fs-12)}

/* ---------- buttons: the fade, no glow ---------- */
.btn.primary{box-shadow:none}   /* app.css's fade stays; only the glow goes */

/* ---------- figure tiles: neutral icons ---------- */
.kpi .lbl svg,.kpi .lbl i[data-lucide]{color:var(--text-muted)}
.kpi .spark,.inv-kpi .spark{opacity:.45}

/* ---------- tabs: the accent only on the line ---------- */
.tabs a.active,.tabs>button:not(.btn):is(.active,.is-active,[aria-selected="true"]){color:var(--text)}

/* (rail counts: the amber of app.css again — owner, 2026-11-07: quiet, "they get overlooked") */

/* ---------- labels in sentence case ---------- */
body.has-rail *{text-transform:none !important}

/* ---------- the top bar: who's online (partials/x-topbar) ----------
   ONE round button like the bell, the colleagues in as the green badge (app.css .presence-count);
   the list it opens shows each as face + name with a green dot (owner, 2026-11-09: the faces in
   the bar "look strange"; option B of the "Who's Online Options" mock). */
.presence[hidden]{display:none}
.presence-pop{min-width:196px;max-width:260px;padding:6px;border-radius:var(--r-12);box-shadow:var(--elev-3)}
.presence-pop-head{padding:6px 8px;margin:0;font:600 var(--fs-12)/1.2 var(--font-body);letter-spacing:0;color:var(--text-muted)}
.presence-pop-list li{display:flex;align-items:center;gap:10px;padding:5px 8px;border-radius:var(--r-8);font:500 var(--fs-13)/1.3 var(--font-body)}
.presence-face{position:relative;display:inline-grid;flex-shrink:0}
.presence-face .avatar-sm{width:24px;height:24px;font-size:var(--fs-11)}
.presence-face::after{content:"";position:absolute;right:-1px;bottom:-1px;width:8px;height:8px;border-radius:50%;background:var(--presence-bg);box-shadow:0 0 0 2px var(--surface)}
.presence-name{min-width:0;overflow:hidden;text-overflow:ellipsis}

/* ---------- Support in the avatar menu (partials/user-avatar) ---------- */
.user-menu-count{margin-left:auto;min-width:18px;height:18px;padding:0 6px;border-radius:var(--r-8);background:var(--surface-3);color:var(--text);font:500 var(--fs-11)/18px var(--font-body);text-align:center}
.user-menu-count[hidden]{display:none}
.user-avatar{position:relative}
.user-avatar.has-dot::after{content:"";position:absolute;top:0;right:0;width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2px var(--surface)}

/* GLASS:BEGIN */
/* ---------- the open rail's head: the logo's colour edge to edge, the word in place of the tile ----------
   (owner, 2026-11-07: "the color fade is the whole width of the top section … the se logo goes away and
   the text extends to sellevry from se"). The colour is one band whose size follows the panel (below). The
   tile's letters shrink about their own centre to the word's letter size (scale .8889 = (512 × 25 / 480) / 30)
   and fade; the word is 25px tall and sits 32px left of its place IN BOTH STATES, so its own "se" lies on
   the letters' and only its opacity changes — a word that slid into place jumped left and back as the rail
   opened (owner, the same day). Tested by rail-head-word.browser.test.js. Settings and Marketing wear it
   too, through glass.css (owner, 2026-11-17: "update the sidebar to the new style in the admin area"). */
@media screen and (min-width:769px){
  /* ONE colour shape, folded and open: the band (.rail-band, first in the head), the panel's top-left corner
     (the rail's box clips the right side) and ONE fade into the rail below, over everything in it. What shows
     in it is always exactly as wide as the panel: the logo's diagonal colours (--logo-cap) drawn in the strip's
     size (::before) and in the open head's size (::after), each SCALED to the panel's visible width on the rail's
     own time and curve, with the open colours fading in over the folded ones. Folded it IS the strip's colour;
     open it is the band. Scale and opacity run beside the rail's slide, never on the page's thread: grown by
     background-size, the colour trailed the panel's edge and caught up in jumps whenever the page was busy
     (owner, 2026-11-08: "moves out in a chunky way"; rail-slide-thread.browser.test.js). A diagonal does not
     keep its look when stretched, hence two drawings; the folded one stays opaque under the other, so the
     crossfade never lets the glass through. (Owner, 2026-11-08, three rounds before this: a second block under
     the band showed its corner, then its fade as a strip, then a block inside the moving panel, then a
     flicker, and held back, "blue for half a second".) The split tile's own colour block is not drawn under
     the look, and does not animate either (its corners and fade repainted every frame). */
  .rail-logo .logo-bg{opacity:0}
  .rail-logo .logo-bg,.rail-logo .logo-bg::before{transition:none}
  .sidebar > .rail-head > .rail-band{display:block;position:absolute;left:0;top:0;width:100%;height:60px;z-index:1;pointer-events:none;
    overflow:clip;border-top-left-radius:var(--rail-radius);
    -webkit-mask:var(--rail-band-fade);
    mask:var(--rail-band-fade);
    --band-grow:calc(224 / 52);   /* --rail-open ÷ --rail-w */
    --band-shrink:calc(52 / 224)}
  .rail-band::before,.rail-band::after{content:"";position:absolute;top:0;bottom:0;left:0;background:var(--logo-cap);transform-origin:0 0;
    transition:scale var(--dur) var(--ease-in-out),opacity var(--dur) var(--ease-in-out)}
  .rail-band::before{width:var(--rail-w)}
  .rail-band::after{width:var(--rail-open);scale:var(--band-shrink) 1;opacity:0}
  .sidebar:is(:hover,.rail-open,.is-pinned,.is-editing,.rail-focus) .rail-band::before{scale:var(--band-grow) 1}
  .sidebar:is(:hover,.rail-open,.is-pinned,.is-editing,.rail-focus) .rail-band::after{scale:none;opacity:1}
  /* over the band: the letters, the word, the Console's tag (the tools are z 2 below) */
  .rail-logo .logo-glyph{z-index:2}
  .rail-logo .logo-lockup .logo-word,.rail-logo .console-tag{position:relative;z-index:2}
  .rail-logo .logo-glyph{transition:scale var(--dur) var(--ease-in-out),opacity var(--dur) var(--ease-in-out)}
  .sidebar:is(:hover,.rail-open,.is-pinned,.is-editing,.rail-focus) .rail-logo .logo-glyph{scale:.8889;opacity:0}
  .rail-logo .logo-lockup .logo-word{height:25px;translate:-32px 0;background:var(--rail-head-ink)}
  /* the Console's tag beside the word moves with it, and reads on the colour */
  .rail-logo .console-tag{translate:-32px 0}
  .sidebar:is(:hover,.rail-open,.is-pinned,.is-editing,.rail-focus) .rail-logo .console-tag{color:var(--rail-head-ink);opacity:.85}
  .rail-head .rail-tools{position:relative;z-index:2}
  .sidebar:is(:hover,.rail-open,.is-pinned,.is-editing,.rail-focus) .rail-tools{gap:6px;margin-right:2px}
  /* the pin and Edit sidebar wear the colour's circles folded too, where they are hidden: changing as the rail
     opened, their colours repainted on the page's thread while the rail moved */
  .sidebar .rail-head :is(.rail-pin,.rail-edit){color:var(--rail-head-ink);background:var(--rail-head-tool-bg);border-radius:50%}
  .sidebar .rail-head :is(.rail-pin,.rail-edit):hover{background:var(--rail-head-tool-hover)}
  /* FOLDING KEEPS THE ENTRIES WHOLE until the panel is down to the strip (owner, 2026-11-08: "fix the two").
     Cut to its 40px pill on the first frame, every name vanished and an empty panel slid shut. Now the names
     fade as the panel's edge passes over them, and the cut comes as the panel arrives: a hold, one change at
     its end, nothing redrawn per frame. Opening still lifts the cut at once, so the names are there as the
     edge reveals them. The current entry's LENS takes its 40px pill at once, never at the end (owner, same
     day: its right side "appears only about half a second later"): the timed switch is the page's own
     thread's, so on a busy page it came late while the panel — slid off that thread — had long arrived,
     and the lens stood cut by the panel's edge with no right side. Small from the start, it never meets it. */
  .sidebar:not(:hover,.rail-open,.is-pinned,.is-editing,.rail-focus) .navlink{transition:color var(--dur-fast) var(--ease),clip-path 0s linear var(--dur) allow-discrete}
  /* A SECTION'S NAME FADES into its folded line and back (same day). It switched colour in one frame, so the
     names popped on as the rail opened and turned into lines the moment it began to fold. The name keeps its
     colour and shadow and only its opacity changes; the line is always there and cross-fades with it. (A name
     not in its span, as in some test pages, keeps the old switch.) */
  .sidebar:not(:hover,.rail-open,.is-pinned,.is-editing,.rail-focus) .nav-group > span{color:color-mix(in srgb,var(--sidebar-fg) 90%,transparent);opacity:0}
  .sidebar:not(:hover,.rail-open,.is-pinned,.is-editing,.rail-focus) .nav-group{text-shadow:0 1px 2px var(--rail-glass-ink)}
  .sidebar .nav-group::after{content:"";position:absolute;left:12px;top:50%;width:16px;height:1px;background:color-mix(in srgb,var(--sidebar-fg) 35%,transparent);
    opacity:0;pointer-events:none;transition:opacity var(--dur) var(--ease)}
  .sidebar:not(:hover,.rail-open,.is-pinned,.is-editing,.rail-focus) .nav-group::after{opacity:1}
}
/* Reduce Transparency: the buttons on the colour are solid */
@media (prefers-reduced-transparency: reduce){
  :root{--rail-head-tool-bg:var(--sidebar-bg);--rail-head-tool-hover:var(--sidebar-bg)}
}
/* GLASS:END */

/* ---------- the rest of the mock (hq.css), rule for rule ---------- */
.card,.kpi,.tablewrap,.inv-kpi{box-shadow:none}
.inv-kpi .lbl svg{box-shadow:none}
thead th{padding-top:10px;padding-bottom:10px}
tbody td{font-size:var(--fs-13);padding-top:8px;padding-bottom:8px}
.cell-2 small{font-size:var(--fs-12);color:var(--text-muted)}
/* numbers and codes in the app's font everywhere (SKUs, order numbers), not typewriter digits */
.mono{font-family:var(--font-body);font-variant-numeric:tabular-nums;font-size:inherit;font-weight:500;letter-spacing:0}
td code{font-weight:500}
.mono.t-mut{font-weight:400;font-size:var(--fs-12)}
.seg{border-radius:var(--r-8)}
.seg > button{color:var(--text-2)}
.seg .n{font-weight:400;color:var(--text-muted)}
.seg-ink{border-radius:var(--r-8)}
.btn{font-weight:500;border-radius:var(--r-8)}
.btn:not(.primary):not(.ghost):not(.danger){box-shadow:var(--shadow-sm)}
.kpi{padding:14px 16px 12px}
.kpi .lbl{color:var(--text-muted)}
.kpi .lbl svg,.kpi .lbl i[data-lucide]{color:var(--text-muted) !important}   /* beats a page's inline icon colour */
.kpi .val{font-weight:600;letter-spacing:-.025em}
.kpi .spark,.inv-kpi .spark{opacity:.4}
.search input{box-shadow:none}

/* ---------- the page mocks' small fixes (hq-after) ---------- */
/* lists: a customer's email waits for the quick look; the name is enough on the row */
td.customer-cell .contact{display:none}
/* Review Requests: the row's ⓘ shows where the pointer or the focus is (a phone always shows it) */
@media (hover:hover){
  tbody tr:not(:hover) .ql-info:not(:focus-visible):not([aria-expanded="true"]){opacity:0}
}
/* Reports hub: a description wraps onto two lines, never cut mid-sentence */
.rc-desc{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* the tray editor: Qty 0 is a quiet note, not an amber chip on every item */
.qty-label.qty-zero{background:transparent;color:var(--text-muted);border-color:var(--border)}
/* Kanban: quiet column heads; an empty column is narrow — as wide as its head (name + count),
   never narrower, or "ToDo: Listings" lost its count under the edge (owner, 2026-11-08) */
.kanban-column-title{font-weight:600;color:var(--text-muted);background:transparent}
.kanban-board .kanban-column:not(:has(.kcard)){flex:0 0 auto;width:max-content;min-width:132px;max-width:none}
.kanban-board .kanban-column:has(.kcard){flex:1 1 200px;min-width:200px}
.kanban-board .kcard h4{font-size:var(--fs-13);font-weight:600}
/* Leads board: a column with no card is narrow — as wide as its head (the stage, the count, the
   total), never narrower; the Closed link and the Won drop zone wrap inside it rather than widen it
   (owner, 2026-11-08: a longer stage name lost its count under the edge at a fixed 150px) */
.lp-board .lp-col:not(:has(.lp-card)){flex:0 0 auto;width:max-content;min-width:150px}
.lp-board .lp-col:not(:has(.lp-card)) .col-h .pill{max-width:none}
.lp-board .lp-col:not(:has(.lp-card)) > :not(.col-h){contain:inline-size}

/* Trade-ins: the settlement in plain words (the direction is in them), our items' names in the row's weight */
#tradeTable td[data-label="Settlement"] :is(.t-green,.t-red){color:inherit}
#tradeTable td[data-label="Our items"] .t-strong{font-weight:inherit}
/* Purchasing: no empty tag where an item has no photo */
#purchaseTable td .thumb:not(:has(img)){display:none}
/* a chart with nothing to draw: a short note, not an empty chart's height (Sales Breakdown) */
.chart-container.chart-empty{height:auto;padding:28px 16px}
/* a signed (locked) record asks for nothing: no required marks on its cards */
.card:has(.lock-note) .req{display:none}
/* P&L headline: a profit reads neutral, a loss stays red (the mock; the colour still comes from the sign) */
#heroKpis .kpi-value.pos{color:var(--text-strong)}

/* GLASS:BEGIN */
/* ============================== THE GLASS ==============================
   Frosted glass beyond the rail (owner, 2026-11-13: "build it like this", the values he tuned in
   the "Sellevry Glass Tuner" mock on the app's real pages). Three layers, each with its own
   opacity:
   - the page's ground: a soft wash of the logo's blue, violet and orange (html::before, fixed
     behind everything). Glass only shows what is behind it; on the flat ground it read as
     slightly see-through white cards;
   - content — cards, figure tiles, tables: see-through, a hairline edge, a top highlight, a soft
     lift. NO backdrop-filter here, on purpose: behind a card there is only the smooth wash, so the
     mock's blur changed no pixel by more than 4 levels (measured; the mock's colour boost by under
     2 on average). And a backdrop-filter makes every card a layer of its own: a ••• menu or the
     Filters pane opening out of one card slid UNDER the next card, and a fixed box inside a card
     (a dialog in the page's markup, a table's floating menu) took the card as its frame;
   - the top bar and everything that floats — the quick look, menus, the Filters pane, dialogs,
     toasts, Sally: blurred glass, because the page moves behind them.
   On a phone too (owner, 2026-11-14: "make it glass ui", after the bottom-sheet click dummy): the same
   wash and see-through cards (a carded table's rows with them), the top bar's glass, and the bottom
   sheets (the block at the end of this file). Those two are a phone's only blurs: a dialog's dim never
   blurs there (mobile.css drops it, a full-screen blur re-drawn on every frame made pages choppy).
   Reduce Transparency and Increase Contrast: every surface solid, no blur, no wash (the block
   right below). Tested by src/ui/page-glass.browser.test.js and reduce-transparency.browser.test.js.
   When the Meta review is done the tokens move to theme.css with the rest of this file. */
/* Reduce Transparency, Increase Contrast (macOS turns the first on with the second): solid
   surfaces in their own colours, nothing blurred, no wash. Scrims keep their dim. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more){
  html:root:not([data-theme="dark"]),html:root[data-theme="dark"]{
    --page-wash:none;
    --topbar-glass:var(--topbar-bg); --glass-bar-filter:none;
    --glass-card:var(--surface); --glass-float:var(--surface); --glass-float-filter:none;
    --glass-edge:var(--border); --glass-edge-soft:var(--border-light); --glass-strip:var(--surface-2);
    --glass-sheen:none; --glass-scrim-filter:none;
  }
}
@media screen{
  /* the ground: fixed, under everything (the body's own colour reaches the canvas) */
  html::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--page-wash);opacity:var(--page-wash-strength)}
  /* the top bar: glass at the top of the page too, not only once the page has scrolled */
  .topbar-glass{-webkit-backdrop-filter:var(--glass-bar-filter);backdrop-filter:var(--glass-bar-filter)}
  .topbar.is-glass:not(.is-scrolled) > .topbar-glass{opacity:1}
}
@media screen and (min-width:769px){
  /* ...with a soft lower edge (owner, 2026-11-13: "a bit of a hard lower edge in light and dark mode"):
     the glass runs on --rail-inset below the bar and fades out over its last 18px, so the page meets it
     without a line — and ends where the quick look begins, never over it. The rail's margin keeps its
     own fade (app.css), so the two masks are intersected. A fade inside the bar's own 48px let a row
     scrolling under it show through beside the title. */
  body.has-rail .topbar-glass{bottom:calc(-1 * var(--rail-inset));
    -webkit-mask-image:linear-gradient(90deg,transparent calc(var(--rail-inset) + var(--rail-w)),black 100px),linear-gradient(black calc(100% - var(--rail-inset) - 10px),transparent);
    mask-image:linear-gradient(90deg,transparent calc(var(--rail-inset) + var(--rail-w)),black 100px),linear-gradient(black calc(100% - var(--rail-inset) - 10px),transparent);
    -webkit-mask-composite:source-in;mask-composite:intersect}
}
@media screen{
  /* content: see-through, no blur (above) */
  :root :is(.card,.kpi,.inv-kpi),:root .tablewrap:not(.card .tablewrap){
    background:var(--glass-sheen),var(--glass-card);border-color:var(--glass-edge);box-shadow:var(--glass-hi),var(--glass-lift)}
  /* the older list table's box (ONE TABLE LOOK, above) wears the same glass. One class of weight, on
     purpose: a box a section or a card strips to nothing (.inv-pd-section > .inv-table-wrap, a channel
     card's) outranks it and stays bare; one in a dialog stays on the dialog's solid sheet. */
  .inv-table-wrap:not(:where(.card *, .x-modal *, .inv-modal *, .app-modal *)){
    background:var(--glass-sheen),var(--glass-card);border-color:var(--glass-edge);box-shadow:var(--glass-hi),var(--glass-lift)}
  :root .card-head{background-color:transparent}
  /* the product page's own boxes: product-page.css draws each one solid, so its sections sat greyer than
     the glass cards beside them and its figure tiles were glass on solid (owner, 2026-11-14: "the content
     on selling, stock and activity … not aligned with the other pages"). The same glass as a card; its
     sticky tab strip wears the top bar's glass, not a band of its own. html:root: that sheet reaches
     these through an id and three classes. Tested by src/ui/product-page-glass.browser.test.js. */
  html:root :is(.pr-gallery,.pr-identity,.pr-card,.pd-order),html:root .pr-shell .inv-pd-section,
  html:root .pr-tabpanel .inv-pd-subgroup,html:root .pd-specs > #custom-attrs-fields > .inv-ca-group.pd-sec{
    background:var(--glass-sheen),var(--glass-card);border-color:var(--glass-edge);box-shadow:var(--glass-hi),var(--glass-lift)}
  html:root :is(.pr-shell .inv-pd-section-head,.pr-spec-head:not(:hover)){background-color:transparent}
  html:root .tabs.pr-tabs{background:var(--topbar-glass);-webkit-backdrop-filter:var(--glass-bar-filter);backdrop-filter:var(--glass-bar-filter)}
  /* what floats: blurred glass */
  :root :is(.side-panel,.act-menu-pop,.inv-dropdown-panel,.user-menu-dropdown,.search-results,.filter-pop,.mention-pop,.fe-pop,.tk-menu,.presence-pop,.toast),
  html:root .sw-panel{
    background:var(--glass-sheen),var(--glass-float);border-color:var(--glass-edge);
    -webkit-backdrop-filter:var(--glass-float-filter);backdrop-filter:var(--glass-float-filter);
    box-shadow:var(--glass-hi),var(--glass-float-lift)}
  /* A DIALOG IS A SOLID SHEET (owner, 2026-11-14, "A" in the "Sellevry Dialog Redesign" mock: the glass
     dialogs were "hard to read — the fine divider lines or the header section color is hardly visible").
     Where people read and type, the surface is solid; the depth is in the page behind, dimmed and frosted
     (the dim below). No tinted strips: the head and the foot are told apart by one clear line
     (--dialog-line), and the title is a step larger. A phone's bottom sheet keeps its own head and foot.
     Tested by src/ui/dialog-frost.browser.test.js and page-glass.browser.test.js. */
  :root :is(.x-modal,.app-modal,.inv-modal,.account-modal,.sw-modal-card){
    background:var(--surface);border-color:var(--dialog-edge);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:var(--dialog-lift)}
  :root :is(.x-modal__head,.app-modal > header,.inv-modal header,.sw-modal-head){background:transparent;border-bottom:1px solid var(--dialog-line);padding:18px 20px 16px 24px}
  :root :is(.x-modal__foot,.app-modal footer,.inv-modal-footer){background:transparent;border-top:1px solid var(--dialog-line);padding:14px 20px 16px}
  :root :is(.x-modal__body:not(.pad-0),.app-modal .app-modal-body){padding:20px 24px 22px}
  :root :is(.x-modal__title,.app-modal > header h2,.inv-modal header h3,.sw-modal-title){font-size:var(--fs-17, 17px)}
  :root .side-panel :is(.side-panel-head,.side-panel-foot,.side-panel-body){background-color:transparent}
  :root .side-panel :is(.side-panel-head,.side-panel-foot,.side-panel-sec){border-color:var(--glass-edge-soft)}
  :root .filter-pop :is(.filter-pop-foot,.filter-pop-sec){background-color:transparent}
  html:root .sw-panel :is(.sw-panel-head,.sw-chat-form,.sw-body,.sw-tabs){background-color:transparent}
  /* a dialog's dim, drawn by a layer BESIDE the dialog, never by the backdrop element itself (owner,
     2026-11-13: "they all shall be like the edit tray modal", after the review page's dialogs showed the
     item's photo through them). A backdrop-filter on the backdrop, or an opacity below 1 while it fades,
     makes it the dialog's backdrop root: the dialog's frost then sees only the dim, never the page, and
     whatever is behind (a photo, a card) reads through it sharp. On /trays only a pale table was there.
     So the backdrop itself is clear and never fades: its ::before carries the dim and the blur (and the
     fade-in), and on closing the dim layer and the dialog fade. A full-screen viewer (.is-full) has no
     glass in it and keeps its own near-black ground and fade. Tested by src/ui/dialog-frost.browser.test.js. */
  :root :is(.x-modal-backdrop,.app-modal-backdrop,.inv-modal-backdrop,.account-modal-overlay,.sw-modal):not(.is-full){
    background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;animation:none}
  :root :is(.x-modal-backdrop,.app-modal-backdrop,.inv-modal-backdrop,.account-modal-overlay,.sw-modal):not(.is-full)::before{
    content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
    background:var(--glass-scrim);-webkit-backdrop-filter:var(--glass-scrim-filter);backdrop-filter:var(--glass-scrim-filter)}
  :root .x-modal-backdrop.open:not(.is-full)::before{animation:backdrop-in var(--dur) var(--ease)}
  :root :is(.x-modal-backdrop,.app-modal-backdrop):not(.open,.is-full){opacity:1}
  :root :is(.x-modal-backdrop,.app-modal-backdrop):not(.open,.is-full)::before,
  :root :is(.x-modal-backdrop,.app-modal-backdrop):not(.open,.is-full) > *{opacity:0;transition:opacity var(--dur) var(--ease-exit)}
}

/* GLASS:END */
/* ============================== ONE ROW HOVER ==============================
   Owner, 2026-11-13: "check the hover color in tables … /purchasing … not consistent to /trays …
   check that it's aligned in all of the pages", then "faint gray but a notch darker as it's hard to see
   even on a retina display". Most tables hovered a solid --surface-2 (a 2–5 level step, opaque over the
   glass), Trays and the inventory tables (Review Requests) the faint blue of the SELECTED row. Now every
   row hovers the same: the theme's ink at 7% (--row-hover) laid over each cell, so the glass still shows,
   and a row with a colour of its own (a warning, the selected row, a sub-row) turns a notch darker
   instead of losing it. A pinned column (table-kit) takes the same step on its own solid ground. Tables that have no hover
   on purpose keep none: the P&L statement, a table inside an e-mail, a print slip, the scanner's detail
   rows. Tested by src/ui/row-hover.browser.test.js. */
html:root tbody tr:not(.drill-detail):hover{background-color:transparent}
html:root tbody tr:not(.drill-detail):hover > td{background-image:linear-gradient(var(--row-hover),var(--row-hover))}
/* a cell's own hover colour goes back to its resting one: the step is the tint above */
html:root .table tr.subrow:hover > td{background-color:var(--surface-2)}
html:root .inv-table tr.inv-sched-date:hover td{background-color:var(--surface-3)}
html:root tr.cal-link-row:hover td{background-color:transparent}
/* a pinned column paints its own solid ground (--tk-row-bg): it keeps its resting one, the tint lands on it */
html:root table[data-tk] tbody tr:not(.drill-detail,.is-current):hover{--tk-row-bg:var(--surface)}
html:root :is(.pnl-st-table,.ib-html,.pdoc-table) tbody tr:hover > td,
html:root #stats-table > tbody > tr.details-row:hover > td{background-image:none}

/* ============================== NO STRIPES ==============================
   Owner, 2026-11-13: "on some of my pages tables are striped, others don't — we need to harmonize
   this; don't do striped tables like /inventory#products". The inventory tables (.inv-table-zebra:
   Inventory → Products, a channel's page, Review Requests) greyed every second row; every other table
   was plain. Now none is: a row is told apart by its hairline and the hover. A sub-row (an item line
   under its purchase) keeps its tint — it is a group, not a stripe. Tested by row-hover.browser.test.js. */
html:root .inv-table-zebra tbody tr:nth-child(even){background-color:transparent}
html:root table.inv-table-zebra[data-tk] tbody tr:nth-child(even){--tk-row-bg:var(--surface)}

/* GLASS:BEGIN */
/* ============================== A PHONE: GLASS ==============================
   The glass reaches the phone (THE GLASS, above, owner 2026-11-14): its wash and see-through cards come
   from that block; here the parts a phone draws its own way. A carded table's rows are its cards. The
   top bar is glass at the top of the page too, with the soft lower edge it has on a computer (no rail
   beside it to leave out). A dialog's dim keeps no blur (mobile.css). */
@media screen and (max-width:768px){
  :root table.mcards > tbody > tr{background:var(--glass-sheen),var(--glass-card);border-color:var(--glass-edge);box-shadow:var(--glass-hi),var(--glass-lift)}
  html:root .topbar.is-glass{background:none;border-bottom:0}
  html:root .topbar-glass{display:block;position:absolute;inset:0 0 -8px;z-index:-1;pointer-events:none;background:var(--topbar-glass);
    -webkit-mask-image:linear-gradient(black calc(100% - 18px),transparent);mask-image:linear-gradient(black calc(100% - 18px),transparent)}
  html:root:not([data-theme="dark"]),html:root[data-theme="dark"]{--glass-scrim-filter:none}
}
/* GLASS:END */

/* a list row's ONE ••• (data-row-more) is a phone's: a computer keeps the row's own icons */
html:root .row-more{display:none}
@media screen and (max-width:768px){ html:root .row-actions > .row-more{display:inline-flex} }

/* ============================== BOTTOM SHEETS (a phone) ==============================
   Owner, 2026-11-14, after the "Bottom sheets" click dummy ("the phone looks good, implement it and make
   it glass ui"): on a phone a panel opened from a button rises from the bottom as a sheet that grows out
   of that button — a floating glass card 8px in from the screen's sides and bottom, round corners, a
   grabber on top: drag it down (or tap beside it, or the phone's Back) to close it. The Filters pane,
   the quick look (half the screen; drag it up for all of it), the Columns menu, the avatar menu, every
   dialog, App.confirm / alert, Sally and every ••• menu (its entries listed in the sheet). The
   behaviour is /js/bottom-sheet.js, which marks the page html.bs-on once it is there; a panel opened
   before that opens as it does today. A sheet floats over the visible part of the screen, so the
   keyboard never covers it (--vvh / --vvt, mobile-chrome.js). Tested by src/ui/bottom-sheet.browser.test.js. */
@media screen and (max-width:768px){
  /* the panels that float above the page (a dialog and Sally keep their own place: below) */
  html.bs-on :is(.bs-filters,.bs-quick-look,.bs-columns,.bs-account,.bs-menu,.bs-context,.bs-mention){
    position:fixed;left:8px;right:8px;top:auto;margin:0;width:auto;min-width:0;max-width:none;
    bottom:calc(var(--vh) - var(--vvt, 0px) - var(--vvh, var(--vh)) + 8px);
    max-height:calc(var(--vvh, var(--vh)) - 56px - env(safe-area-inset-top, 0px));overflow-y:auto;overscroll-behavior:contain}
  /* the sheet itself: glass, round, the grabber's strip on top */
  html.bs-on .bs-sheet{box-sizing:border-box;border:0;border-radius:var(--sheet-radius);padding-top:22px;color:var(--text);
    background:var(--glass-sheen),var(--glass-float);-webkit-backdrop-filter:var(--glass-float-filter);backdrop-filter:var(--glass-float-filter);
    box-shadow:0 0 0 .5px var(--glass-edge),var(--glass-hi),var(--bs-lift);animation:none;translate:none;visibility:visible}
  html.bs-on .bs-sheet::before,.bs-grab::before{content:"";position:absolute;top:8px;left:50%;width:38px;height:5px;margin-left:-19px;border-radius:var(--r-full);
    background:color-mix(in srgb,var(--text) 24%,transparent);pointer-events:none;z-index:1}
  /* a sheet's top strip takes a drag: no scroll may start there (on a touch screen the browser's scroll
     would win). A sheet that scrolls as a whole (Filters, Columns) gets a strip of its own, .bs-grab,
     that stays at its top as it scrolls; any other sheet takes no scroll itself — its body does. */
  html.bs-on .bs-sheet:not(.bs-filters,.bs-columns,.bs-mention){touch-action:none}
  html.bs-on .bs-sheet:has(> .bs-grab)::before{display:none}
  .bs-grab{position:sticky;top:-22px;z-index:2;display:block;height:22px;margin:-22px 0 0;touch-action:none}   /* top: the sheet's padding edge, not its content's */
  /* the dim behind a sheet that has none of its own */
  .bs-scrim{position:fixed;inset:0;background:var(--bs-scrim);opacity:0;transition:opacity var(--dur-slow) var(--ease);touch-action:none}
  .bs-scrim.on{opacity:1}
  /* closing: the panel's own closing, as a slide down */
  html.bs-on .bs-sheet.bs-leaving{translate:0 calc(100% + 40px);opacity:1;
    transition:translate var(--dur-slow) var(--ease-exit),opacity var(--dur-slow),display var(--dur-slow) allow-discrete,visibility var(--dur-slow) step-end}

  /* the Filters pane: its sections as they are, its foot (Reset · N match) at the sheet's bottom */
  html.bs-on .bs-filters{padding:22px 4px 0}
  html.bs-on .bs-filters .filter-pop-foot{position:sticky;bottom:0;margin:0 -4px;padding:12px 16px 14px;background:color-mix(in srgb,var(--surface) 82%,transparent);
    border-top:1px solid var(--glass-edge-soft);-webkit-backdrop-filter:var(--glass-float-filter);backdrop-filter:var(--glass-float-filter)}
  html.bs-on .bs-filters .check-item{min-height:40px}
  /* the quick look: half the screen; dragged up (or its grabber tapped), all of it */
  html.bs-on .bs-quick-look{top:auto;padding-top:14px;padding-bottom:0;overflow:hidden;height:calc(var(--vvh, var(--vh)) * .58);z-index:8500}
  html.bs-on .bs-quick-look.bs-large{height:calc(var(--vvh, var(--vh)) - 56px - env(safe-area-inset-top, 0px))}
  html.bs-on .side-panel:not(.open){translate:0 calc(100% + 40px)}
  html.bs-on .side-panel.open{transition:visibility 0s}
  html.bs-on .bs-quick-look .side-panel-head{touch-action:none}
  /* the Columns menu, the avatar menu */
  html.bs-on .bs-columns{padding:24px 8px 8px;top:auto !important;left:8px !important;height:auto}   /* !important: table-kit places it by inline style */
  html.bs-on .bs-columns .meta{display:none}   /* a column's width: a phone's cards have none */
  html.bs-on .bs-account{padding:24px 10px 10px}
  html.bs-on .bs-account .user-menu-item{min-height:48px;font-size:calc(var(--tsr) * 16)}
  /* raised over the dim while its menu is a sheet — and off its own layer: the installed app gives the
     bar transform:translateZ(0) (app.css, for the iPhone's bounce), which made the bar the frame of the
     sheet inside it, so the sheet sat on the 48px bar and rose off the top of the screen (owner, 11-14) */
  html.bs-on .topbar.bs-raised{z-index:8500}
  html.bs-on .topbar.bs-unframed{transform:none}   /* until the sheet inside it has slid out (bottom-sheet.js) */
  html.bs-on .topbar.bs-raised::after{content:"";position:absolute;inset:0;background:var(--bs-scrim);z-index:0}
  html.bs-on .topbar.bs-raised .user-menu-dropdown{z-index:2}

  /* a dialog: at the bottom of what is visible, above the keyboard */
  html.bs-on .x-modal-backdrop:not(.is-full){align-items:flex-end;padding:8px}
  /* a dialog is solid, as on a computer (A DIALOG IS A SOLID SHEET, above): the sheet's shape, not its glass.
     It stays in its backdrop's flow, so it is the frame of its own grabber: without a position the grabber
     was placed by the full-screen backdrop and jumped to the top of the screen once the dialog's growth
     ended (owner, 2026-11-14, Edit tray: "the horizontal line … suddenly jumps of the card to the very top") */
  html.bs-on :is(.x-modal,.app-modal).bs-sheet{position:relative;background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}
  html.bs-on .x-modal.bs-sheet{width:100%;max-height:calc(var(--vvh, var(--vh)) - 56px - env(safe-area-inset-top, 0px));padding-top:16px}
  html.bs-on .x-modal.bs-sheet > .x-modal__head{background:transparent;border-bottom:0;touch-action:none}
  html.bs-on .x-modal.bs-sheet > .x-modal__foot{background:transparent}
  html.bs-on .x-modal.bs-sheet > .x-modal__foot .btn{min-height:46px;border-radius:var(--r-12, 12px)}
  html.bs-on .x-modal-backdrop:not(.open) > .x-modal.bs-sheet{translate:0 calc(100% + 40px);transition:translate var(--dur-slow) var(--ease-exit),opacity var(--dur-slow) var(--ease-exit)}
  /* App.confirm / alert: a short sheet, its answers as big buttons, the one it asks for first */
  html.bs-on .app-modal-backdrop{align-items:flex-end;padding:8px}
  html.bs-on .app-modal.bs-sheet{width:100%;max-width:none;padding-top:16px}
  html.bs-on .app-modal.bs-sheet > header{background:transparent;border-bottom:0;touch-action:none}
  html.bs-on .app-modal.bs-sheet footer{flex-direction:column-reverse;align-items:stretch;gap:8px;background:transparent;border-top:0}
  html.bs-on .app-modal.bs-sheet .app-modal-btn{width:100%;min-height:50px;border-radius:var(--r-16, 16px);justify-content:center;font-size:calc(var(--tsr) * 16)}
  html.bs-on .app-modal-backdrop:not(.open) > .app-modal.bs-sheet{translate:0 calc(100% + 40px);transition:translate var(--dur-slow) var(--ease-exit)}
  /* Sally: a tall sheet under the top bar (its button there closes it again), down to the keyboard */
  html:root.bs-on body .sw-panel{left:8px;right:8px;width:auto;max-width:none;border:0;border-radius:var(--sheet-radius);overflow:hidden;
    top:calc(max(var(--topbar-h), var(--vvt, 0px)) + 4px);
    height:calc(var(--vvt, 0px) + var(--vvh, var(--vh)) - max(var(--topbar-h), var(--vvt, 0px)) - 12px);   /* its composer pads the strip (mobile.css) */
    transform:translateY(calc(100% + 40px));padding-top:16px}
  html:root.bs-on body .sw-panel.open{transform:none}
  html:root.bs-on body .sw-panel .sw-panel-head{touch-action:none}

  /* the Inbox's customer and item panel: the sheet's shape over its own slide */
  html.bs-on .bs-context{max-height:calc(var(--vvh, var(--vh)) * .85);border:0;padding-bottom:0}
  /* the @mention list: a short sheet over the keyboard (mention-picker.js places it by inline style) */
  html.bs-on .bs-mention{top:auto !important;left:8px !important;width:auto !important;max-height:calc(var(--vvh, var(--vh)) * .45);padding:22px 8px 8px}
  html.bs-on .bs-mention .mention-opt{min-height:48px}
  /* a list row's actions: ONE ••• (data-row-more) in place of its icons — the sheet presses them */
  html:root .row-actions:has(> .row-more) > :not(.row-more,.sw-tray-badge-slot){display:none}
  /* a photo tile's tools fold into one ••• (bottom-sheet.js lists them); the grip stays */
  html.bs-on .photo-grid:not([data-readonly]) .photo-tile-tools{width:32px;height:32px;padding:0;gap:0;border-radius:var(--r-full);display:grid;place-items:center;
    background:var(--viewer-ctl-bg);color:var(--viewer-ctl-fg);border:1px solid var(--viewer-ctl-ring);box-shadow:var(--viewer-ctl-shadow);cursor:pointer}   /* the tools' own look on a photo */
  html.bs-on .photo-grid:not([data-readonly]) .photo-tile-tools > *{display:none}
  html.bs-on .photo-grid:not([data-readonly]) .photo-tile-tools::before{content:"•••";font:700 var(--fs-12, 12px)/1 var(--font-body);letter-spacing:1px}
  /* THE PHONE'S FOOT (owner, 2026-11-15, an iPhone: "the sort sheet is not aligned on the bottom"): a sheet runs 8px
     from the screen's foot, as an iPhone's own, with the home-indicator strip over it — never 8px + the strip above
     it, with the list showing under — and keeps its last row clear of the strip inside (none while the keyboard is up) */
  html.bs-on .bs-sheet.bs-menu > .bs-body{padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px) * var(--no-kb, 1))}
  html.bs-on .bs-filters .filter-pop-foot{padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px) * var(--no-kb, 1))}
  html.bs-on :is(.bs-columns,.bs-account,.bs-mention){padding-bottom:calc(8px + env(safe-area-inset-bottom, 0px) * var(--no-kb, 1))}
  html.bs-on :is(.bs-quick-look,.bs-context,.x-modal.bs-sheet,.app-modal.bs-sheet){padding-bottom:calc(env(safe-area-inset-bottom, 0px) * var(--no-kb, 1))}
  /* a card list's Sort: a tap on the chip opens its sheet, never the phone's own picker (the select stays for a keyboard) */
  html.bs-on .mtbl-sort > .chip{cursor:pointer}
  html.bs-on .mtbl-sort > .chip > select{pointer-events:none}
  .bs-row > .bs-check{color:var(--accent)}
  /* the sheet takes the focus as it opens so a keyboard starts inside it; it is no control, so no ring around it */
  .bs-own:focus{outline:none}
  /* a ••• menu: its own panel stays shut, the sheet lists its entries (a menu with fields keeps its panel) */
  html.bs-on details.act-menu:not(.bs-keep) > .act-menu-pop{display:none}
  html.bs-on .bs-sheet.bs-menu{display:flex;flex-direction:column;padding:22px 0 0;overflow:hidden}
  .bs-menu > .bs-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:10px}
  .bs-head{display:flex;align-items:center;gap:10px;padding:2px 12px 10px 20px;touch-action:none}
  .bs-title{flex:1;min-width:0;margin:0;font:600 calc(var(--tsr) * 17)/1.25 var(--font-display);letter-spacing:-.01em;color:var(--text)}
  .bs-x{flex:none;width:34px;height:34px;border-radius:50%;border:0;background:color-mix(in srgb,var(--text) 8%,transparent);color:var(--text-muted);display:grid;place-items:center;cursor:pointer}
  .bs-x svg,.bs-x i[data-lucide]{width:17px;height:17px}
  .bs-group{margin:0 12px 12px;border-radius:var(--r-16, 16px);overflow:hidden;background:color-mix(in srgb,var(--text) 4.5%,transparent)}
  .bs-group-h{margin:4px 24px 6px;font:600 calc(var(--tsr) * 13) var(--font-body);color:var(--text-muted)}
  .bs-row{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:0 16px;box-sizing:border-box;border:0;background:none;
    font:500 calc(var(--tsr) * 16)/1.25 var(--font-body);color:var(--text);text-align:left;cursor:pointer}
  .bs-row + .bs-row{box-shadow:inset 0 1px 0 color-mix(in srgb,var(--border) 75%,transparent)}
  .bs-row > svg,.bs-row > i[data-lucide],.bs-row > .bs-ic{flex:none;width:21px;height:21px;color:var(--text-muted)}
  .bs-row > span:not(.bs-ic){flex:1;min-width:0}
  .bs-row.is-danger,.bs-row.is-danger > svg{color:var(--red)}
  .bs-row:active:not(:disabled){background:color-mix(in srgb,var(--text) 7%,transparent)}
  .bs-row:disabled{opacity:.45;cursor:default}

  /* the Columns button: on a phone too, its icon alone (it picks the fields each card shows). A list's
     head row then lays out as a line that wraps — the pills and the search each a line of their own, the
     icons at their size, Filters and the list's New sharing what is left — instead of the bar's grid of
     equal halves, where one more button cost the head a row. */
  html:root .toolbar > span.tk-tools,html:root .tk-tools{display:inline-flex}
  html:root .tk-tools > .tk-reset,html:root .tk-tools .tk-count,html:root .tk-tools .tk-chev{display:none}
  html:root .tk-tools > .tk-colbtn{width:36px;padding:0;justify-content:center}
  html:root .toolbar.list-head:not(.has-sheet):has(> span.tk-tools){display:flex;flex-wrap:wrap;align-items:center}
  html:root .toolbar.list-head:has(> span.tk-tools) > *{flex:0 0 auto;min-width:0;width:auto}
  html:root .toolbar.list-head:has(> span.tk-tools) > :is(.seg,.tb-input){flex:1 1 100%}
  html:root .toolbar.list-head:has(> span.tk-tools) > :is(span.filter-pop-wrap,span.list-new,.btn:not(.icon)){flex:1 1 0}
  html:root .toolbar.list-head:has(> span.tk-tools) > .spacer{display:none}
  html:root .toolbar.list-head:has(> span.tk-tools) > .btn.icon{width:36px;border:1px solid var(--border);background:var(--surface)}
}
@media (prefers-reduced-motion: reduce){
  .bs-scrim,html.bs-on .bs-sheet.bs-leaving{transition:none}
}

/* GLASS:BEGIN */
/* ============================== THE SIGN-IN PAGES ==============================
   Owner, 2026-11-14: "what is also not yet converted … is the login pages, kiosk login". Sign in, two-step,
   setting up or resetting a password and the kiosk's PIN wear the look (src/ui/look.js): the wash behind the
   page (THE GLASS), and their one card floats over it and the logo tiles as blurred glass, like everything
   that floats. Reduce Transparency and Increase Contrast: solid, as everywhere. */
@media screen{
  html:root :is(.login-card,.auth-card,.fr-card,.scanner-login-card){background:var(--glass-sheen),var(--glass-float);border-color:var(--glass-edge);
    -webkit-backdrop-filter:var(--glass-float-filter);backdrop-filter:var(--glass-float-filter);box-shadow:var(--glass-hi),var(--glass-float-lift)}
  html:root :is(.theme-btn,.scanner-login-theme-btn,.site-back){background:var(--glass-sheen),var(--glass-float);border-color:var(--glass-edge);
    -webkit-backdrop-filter:var(--glass-float-filter);backdrop-filter:var(--glass-float-filter)}
}

/* GLASS:END */
/* GLASS:BEGIN */
/* ============================== THE CUSTOMER PAGES ==============================
   Owner, 2026-11-15, after the "Customer pages, with the glass" mock: "navy band can go", "build all the
   pages", then "change them too". The pages a customer opens from a link — the consignment page and its
   appointments, the statement, every agreement to sign and its copy, the email preferences page, the
   link-no-longer-valid page and the plain error page — wear the glass: a view marks its <body>
   data-glass-page and gets glass.css (src/ui/look.js; never look.css, these pages keep their own build). The
   transport approval page is built of the app's own parts and Meta does not review it: it wears this whole
   sheet (<body data-look-page>), its bar the app's own with the .topbar-glass layer (THE GLASS). The shop's
   navy band is the top bar's glass, kept at the top while the page scrolls under it; cards are
   see-through; a lone card floats. Paper stays paper: an agreement and the statement are white sheets in
   both themes, as they print (in dark the statement was a dark sheet, where a logo drawn for white paper
   nearly disappeared). Reduce Transparency and Increase Contrast: THE GLASS's tokens make the bar the solid
   ground, never the navy band again. The Circle and the try-on page wear the same glass from sheets of
   their own (public/circle/circle.css, tryon.css). Tested by src/ui/customer-glass.browser.test.js. */
@media screen{
  html:root :is(.cp-top,.st-top,.ag-top,.mp-top){position:sticky;top:0;z-index:30;background:var(--topbar-glass);color:var(--text);
    box-shadow:none;border-bottom:1px solid var(--glass-edge-soft);-webkit-backdrop-filter:var(--glass-bar-filter);backdrop-filter:var(--glass-bar-filter)}
  html:root :is(.cp-mark,.st-mark,.ag-mark){background:var(--accent);color:var(--on-brand)}
  html:root :is(.cp-card,.cp-stat,.cp-appt-card){background:var(--glass-sheen),var(--glass-card);border-color:var(--glass-edge);box-shadow:var(--glass-hi),var(--glass-lift)}
  html:root :is(.cp-box,.error-plain-card,.mp-card){background:var(--glass-sheen),var(--glass-float);border-color:var(--glass-edge);
    -webkit-backdrop-filter:var(--glass-float-filter);backdrop-filter:var(--glass-float-filter);box-shadow:var(--glass-hi),var(--glass-float-lift)}
  html:root :is(.st-doc,.ag-doc){box-shadow:var(--glass-lift)}
  /* the statement in dark: the light theme's ink on white paper, so it matches the agreement and the shop's logo reads */
  html:root[data-theme="dark"] .st-doc{background:var(--paper);color-scheme:light;--surface:var(--paper);--text:var(--paper-text);
    --text-strong:var(--paper-text-strong);--text-subtle:var(--paper-text-subtle);--text-muted:var(--paper-text-muted);--muted:var(--paper-text-muted);
    --border:var(--paper-border);--border-light:var(--paper-border-light);--danger:var(--paper-danger);--success:var(--paper-success)}
  html:root[data-theme="dark"] :is(.st-doc,.ag-doc){border-color:transparent}
}
@media screen and (prefers-contrast: more){
  /* ...and the light theme's Increase Contrast ink on it (theme.css INCREASE CONTRAST) */
  html:root[data-theme="dark"] .st-doc{--text-subtle:var(--paper-more-subtle);--text-muted:var(--paper-more-muted);--muted:var(--paper-more-muted);
    --border:var(--paper-more-border);--border-light:var(--paper-more-border-light)}
}

/* GLASS:END */
/* ============================== THE MAIN BUTTON ==============================
   Owner, 2026-11-14, the "Sellevry Main Buttons" mock: "i like all of them, implement it like this". The
   filled button, the one thing a screen is for, answers on a computer (a mouse, a window wider than a phone):
   - the pointer on it: its fill leans violet (::before fades in) and it rises 1px onto a soft glow of its
     own colours; the press still sinks it (app.css PRESS FEEDBACK) and takes the rise back;
   - its icon moves the way its word reads: plus turns, an arrow steps forward, Send takes off;
   - when a page is OPENED (with its entrance, html.page-enter, once it is on screen; never on a switch
     between tabs, never on Back, Forward or a reload: html.nav-return, /js/nav-arrive.js) the page's main
     button catches the light once (::after) — the filled button in its head row (.page-head .actions, a
     list's head row, the tab row), or one marked data-main-action where the main step sits in a card;
   - a filled button that turns on (text typed, a row picked) says so once (.is-ready, /js/cta.js).
   Working, then done is app.css's (every width). Translate, scale and opacity only: nothing around the
   button moves. Reduced motion: none of it (the block asks for no-preference). Its colours are tokens in the blocks
   at the top (--btn-glow, --btn-glow-near, --btn-sheen). Tested by src/ui/cta-motion.browser.test.js. */
@media (hover:hover) and (pointer:fine) and (min-width:769px) and (prefers-reduced-motion: no-preference){
  :where(.btn.primary){position:relative;isolation:isolate}
  :where(.btn.primary)::before,:where(.btn.primary)::after{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;z-index:-1;opacity:0}
  .btn.primary::before{background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 72%, var(--accent-end)), color-mix(in srgb, var(--accent-end) 88%, var(--accent)));transition:opacity var(--dur-slow) var(--ease)}
  .btn.primary{transition:all var(--dur-fast) var(--ease),translate var(--dur) var(--ease),box-shadow var(--dur) var(--ease)}
  .btn.primary:hover:not(:disabled,.disabled,[aria-disabled="true"],[data-busy],[data-done]){translate:0 -1px;filter:none;
    box-shadow:0 10px 20px -10px var(--btn-glow),0 3px 6px -3px var(--btn-glow-near)}
  .btn.primary:hover:not(:disabled,.disabled,[aria-disabled="true"],[data-busy],[data-done])::before{opacity:1}
  .btn.primary:active:not(:disabled,.disabled,[aria-disabled="true"]){translate:0 0;box-shadow:0 1px 2px var(--btn-glow-near)}

  /* the icon answers */
  .btn.primary svg{transition:rotate var(--dur-slow) var(--ease),translate var(--dur) var(--ease),scale var(--dur) var(--ease)}
  .btn.primary:hover:not(:disabled,.disabled,[aria-disabled="true"],[data-busy],[data-done]) svg.lucide-plus{rotate:90deg}
  .btn.primary:hover:not(:disabled,.disabled,[aria-disabled="true"],[data-busy],[data-done]) :is(svg.lucide-arrow-right,svg.lucide-chevron-right,svg.lucide-corner-down-left,svg.lucide-log-in,svg.lucide-play){translate:2px 0}
  .btn.primary:hover:not(:disabled,.disabled,[aria-disabled="true"],[data-busy],[data-done]) :is(svg.lucide-arrow-up-right,svg.lucide-send,svg.lucide-external-link){translate:2px -2px}
  .btn.primary:hover:not(:disabled,.disabled,[aria-disabled="true"],[data-busy],[data-done]) :is(svg.lucide-check,svg.lucide-save,svg.lucide-calendar-check,svg.lucide-calendar-plus,svg.lucide-message-square-plus,svg.lucide-user-plus,svg.lucide-circle-plus,svg.lucide-package-check,svg.lucide-handshake){scale:1.12}
  .btn.primary:hover:not(:disabled,.disabled,[aria-disabled="true"],[data-busy],[data-done]) :is(svg.lucide-upload,svg.lucide-download){translate:0 -2px}

  /* the light passes once, on a page you open */
  @keyframes btn-sheen{from{background-position:130% 0}to{background-position:-30% 0}}
  html.page-enter:not(.page-hold,.nav-return) :is(.page-head > .actions,.list-head,.tab-row) .btn.primary::after,
  html.page-enter:not(.page-hold,.nav-return) .btn.primary[data-main-action]::after{opacity:1;z-index:1;mix-blend-mode:soft-light;
    background:linear-gradient(105deg, transparent 36%, var(--btn-sheen) 50%, transparent 64%) no-repeat;background-size:260% 100%;background-position:130% 0;
    animation:btn-sheen .85s cubic-bezier(.45,.05,.25,1) .3s 1 both}
  html[data-theme="dark"].page-enter:not(.page-hold,.nav-return) :is(.page-head > .actions,.list-head,.tab-row) .btn.primary::after,
  html[data-theme="dark"].page-enter:not(.page-hold,.nav-return) .btn.primary[data-main-action]::after{mix-blend-mode:normal}

  /* ready: a filled button that turns on */
  @keyframes btn-ready{0%{scale:.94}55%{scale:1.035}100%{scale:1}}
  @keyframes btn-ready-ring{from{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 48%, transparent)}to{box-shadow:0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent)}}
  .btn.primary.is-ready{animation:btn-ready var(--dur-slow) var(--ease) 1,btn-ready-ring .7s var(--ease) 1}
}

/* ============================== SCROLL MOTION ==============================
   Owner, 2026-11-14, from the "Sellevry Scroll Motion" mock ("build what you proposed"): in the app only
   the scroll motion that helps someone at work. Here while Settings and Marketing are held. */
/* THE TITLE IN THE BAR: on a phone the page's title takes the logo's place in the top bar once it has
   scrolled under it (/js/topbar.js fills .topbar-title and sets html.bar-title). The logo fades up and
   out, the title fades up in; the bar's own font, as everything in the fixed bar. */
@media (max-width:768px){
  .topbar > .topbar-title{display:block;position:absolute;top:0;bottom:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
    font:600 var(--fs-17, 17px)/var(--topbar-h) var(--font-system);letter-spacing:-.01em;color:var(--topbar-fg);
    pointer-events:none;opacity:0;translate:0 6px;transition:opacity var(--dur-fast) var(--ease),translate var(--dur-fast) var(--ease)}
  .topbar > .brand{transition:opacity var(--dur-fast) var(--ease),translate var(--dur-fast) var(--ease),visibility var(--dur-fast)}
  html.bar-title .topbar > .topbar-title{opacity:1;translate:none}
  html.bar-title .topbar > .brand{opacity:0;translate:0 -6px;visibility:hidden}
}
/* A LONG LIST KEEPS ITS HEAD: on a computer the list kit's head row (pills, search, Filters) stays under
   the top bar while the list scrolls, frosted like the bar once something passes under it (.is-stuck), and
   the table's column names float under it (thead.is-floating). The table sits in a box that scrolls
   sideways, which keeps a sticky header from reaching the page, so /js/list-kit.js moves the <thead> down
   by what has scrolled under — only while this sheet makes the head sticky. The frost is a layer of its own
   (::before): a blur on the head would make it the frame of the Filters pane and the ••• menus inside it.
   Tested by src/ui/list-head-sticky.browser.test.js. */
@media screen and (min-width:769px){
  .main .toolbar.list-head{position:sticky;top:var(--topbar-h);z-index:30}
  .main .toolbar.list-head::before{content:"";position:absolute;z-index:-1;inset:calc(-1 * var(--rail-inset)) calc(-1 * var(--view-pad-x)) -10px;
    pointer-events:none;background:var(--topbar-glass);-webkit-backdrop-filter:var(--glass-bar-filter);backdrop-filter:var(--glass-bar-filter);
    -webkit-mask-image:linear-gradient(black calc(100% - 12px),transparent);mask-image:linear-gradient(black calc(100% - 12px),transparent);
    opacity:0;transition:opacity var(--dur-fast) var(--ease)}
  .main .toolbar.list-head.is-stuck::before{opacity:1}
  .main thead.is-floating{position:relative;z-index:3;will-change:transform}
  /* SOLID while it floats (owner, 2026-11-14, "A" of two looks tried on the Tray Manager: at 94% the rows
     read through the column names, and a pointed-at header cell turned see-through — its hover was a tint
     in place of the ground — so the row under it showed in the cell). The card's own colour, a hairline
     under it, and a hover laid OVER that ground. !important: a page's own header hover outranks any class
     (the Tray Manager's is tied to its card's id, an 8% tint) and showed the row under the pointed-at cell. */
  .main thead.is-floating th{background:var(--surface) !important;box-shadow:inset 0 -1px 0 var(--border)}
  .main thead.is-floating th:hover{background:linear-gradient(var(--row-hover),var(--row-hover)),var(--surface) !important}
  /* while they float, the head row's frost runs to its own foot, with no fade: its fade sat right on top of
     the column names' edge, so rows showed sharp through a thin strip between the two ("a tiny bit of gap") */
  .main .toolbar.list-head.has-float::before{bottom:0;-webkit-mask-image:none;mask-image:none}
  /* ONE glass from the window's top to the held head row's foot (owner, 2026-11-14: "a pixel gap below the
     top menu bar"): the bar's glass faded out over its last pixels and the head row's frost began right
     there; a blurred glass is sharpest at its edge, so a row's text read through a strip at the bar's foot.
     While the head row is held (html.list-head-stuck, list-kit.js) its frost runs up behind the bar and the
     bar's own glass steps aside — the same glass, so the swap is not seen. The bar (z 50) and the title in
     it (z 51) stay over the frost (z 30). */
  .main .toolbar.list-head.is-stuck::before{top:calc(-1 * var(--topbar-h));transition:none}
  html.list-head-stuck body .topbar.is-glass > .topbar-glass{opacity:0;transition:none}
  /* …and exactly as wide as the bar's glass (owner, same evening: "when i have scrolled down … the sides have
     a different width"): the frost spanned the content and its margin, so its left edge stood between the
     rail and the table. list-kit.js gives it the bar's own left and right (--frost-l / --frost-r: the
     window's edge, and where a docked panel begins) and it wears the bar's fade-in beside the rail. */
  .main .toolbar.list-head.is-stuck::before{left:var(--frost-l, calc(-1 * var(--view-pad-x)));right:var(--frost-r, calc(-1 * var(--view-pad-x)));
    -webkit-mask-image:linear-gradient(90deg,transparent calc(var(--rail-inset) + var(--rail-w)),black 100px),linear-gradient(black calc(100% - 12px),transparent);
    mask-image:linear-gradient(90deg,transparent calc(var(--rail-inset) + var(--rail-w)),black 100px),linear-gradient(black calc(100% - 12px),transparent);
    -webkit-mask-composite:source-in;mask-composite:intersect}
  .main .toolbar.list-head.is-stuck.has-float::before{
    -webkit-mask-image:linear-gradient(90deg,transparent calc(var(--rail-inset) + var(--rail-w)),black 100px),linear-gradient(black,black);
    mask-image:linear-gradient(90deg,transparent calc(var(--rail-inset) + var(--rail-w)),black 100px),linear-gradient(black,black)}
  /* moved by the page's own scroll, in step with it (never a frame behind, so it never slides under the
     head row on a fast scroll): from --lf-start, the scroll position where the table's top meets the held
     head row, down by as much as the page scrolls, up to --lf-dist (the table's height less two header
     rows). list-kit.js sets both, only when the layout changes. No duration: a scroll timeline has none. */
  .main thead.list-float{position:relative;z-index:3;
    animation:list-head-float linear both;animation-timeline:scroll(root block);
    animation-range:var(--lf-start,0px) calc(var(--lf-start,0px) + var(--lf-dist,0px))}
}
@keyframes list-head-float{from{translate:0 0}to{translate:0 var(--lf-dist,0px)}}

/* ======================= WHAT REPEATS MOVES LESS · BIGGER TARGETS · ONE QUESTION · SQUIRCLES =======================
   Round 1 of the "Sellevry Design Principles" canvas (owner, 2026-11-17: "yes", to all of it). Outside the GLASS
   sections on purpose: Settings and Marketing stay as they are while Meta reviews them.
   - THE ENTRANCE takes half the time (Charles Liu, "snappy timing": interface motion under 300ms) and plays once a
     session (/js/nav-arrive.js, html.page-again — "the more often it happens, the less it should move").
     theme.css keeps 560ms for the held pages.
   - SMALL ICON BUTTONS have a bigger target than they look (Fitts's law, "bigger hit areas"): a click zone 40px
     tall around a small icon button (a table row's, a card head's) and a dialog's ×. Sideways it reaches only 2px
     into the gap, so two icons side by side never share one. A computer's pointer only — a finger's controls
     already grow to 36px (mobile.css). Nothing looks different.
   - THE QUESTION DIALOG (App.confirm) keeps 24px at both sides of its head, its text and its buttons (Uxy, fix 4).
   - SQUIRCLES (Alfie, Apple's corners): cards, figure tiles, tables, dialogs, menus, toasts, buttons, fields and a
     phone's sheets wear the smooth corner wherever the browser can draw it (corner-shape), at one and a half times
     today's radius so the corner looks the same size; elsewhere the corners stay exactly as they are. Pills,
     avatars and the top bar's round buttons are not in the list: they keep their round ends.
   Tested by src/ui/round-one-look.test.js and src/ui/hit-area.browser.test.js. */
@media (prefers-reduced-motion: no-preference){
  /* Snappy timing (Charles Liu 9, Batch B): nothing a work page does every day runs past 300ms — the
     entrance, and the panels that dock beside the page (the quick look, Sally's panel, the Inbox's
     customer panel) with the page's edge gliding on the same time. The mock's one-off moves (a card
     carried on its arc, 500ms) keep their own times. Tested by src/ui/batch-a-look.test.js. */
  :root{--dur-entrance:280ms;--dur-panel:280ms}
}
@media (hover:hover) and (pointer:fine){
  :where(.x-modal__close,.app-modal > header .app-modal-close){position:relative}
  :is(.btn.icon.sm,.btn.icon.xs,.x-modal__close,.app-modal > header .app-modal-close):not(.primary)::before{
    content:"";position:absolute;left:-2px;right:-2px;top:50%;height:40px;translate:0 -50%}
}
:root .app-modal > header{padding-right:24px}
:root .app-modal footer{padding-left:24px;padding-right:24px}
@supports (corner-shape: squircle){
  :root{--squircle-radius:calc(var(--radius) * 1.5);--squircle-radius-lg:calc(var(--radius-lg) * 1.5);
    --squircle-radius-pop:18px;--squircle-radius-ctl:12px;--squircle-radius-xs:10px;--squircle-radius-sheet:calc(var(--sheet-radius) * 1.4)}
  :is(.card,.kpi,.inv-kpi,.tablewrap){corner-shape:squircle;border-radius:var(--squircle-radius)}
  .card>.tablewrap:first-child,.card>.mtbl-sort:first-child+.tablewrap{corner-shape:squircle;border-top-left-radius:var(--squircle-radius);border-top-right-radius:var(--squircle-radius)}
  .card>.tablewrap:last-child{corner-shape:squircle;border-bottom-left-radius:var(--squircle-radius);border-bottom-right-radius:var(--squircle-radius)}
  :is(.x-modal,.app-modal,.inv-modal){corner-shape:squircle;border-radius:var(--squircle-radius-lg)}
  :is(.toast,.act-menu-pop,.filter-pop,.search-results,.tk-menu,.user-menu-dropdown){corner-shape:squircle;border-radius:var(--squircle-radius-pop)}
  .btn{corner-shape:squircle;border-radius:var(--squircle-radius-ctl)}
  .btn.sm{border-radius:var(--squircle-radius-ctl)}
  .btn.xs{border-radius:var(--squircle-radius-xs)}
  :is(.input,.chip,.tb-input input,.field select,.field textarea,.field input:not([type=checkbox],[type=radio],[type=file],[type=range],[type=color])){
    corner-shape:squircle;border-radius:var(--squircle-radius-ctl)}
  html.bs-on .bs-sheet{corner-shape:squircle;border-radius:var(--squircle-radius-sheet)}
}

/* ======================= ROUND 2: PARTS THAT FOLLOW THROUGH · A WIND-UP · ONE RING =======================
   Round 2 of the "Sellevry Design Principles" canvas (owner, 2026-11-17: "proceed"). Outside the GLASS sections:
   Settings and Marketing stay as they are while Meta reviews them. With format.js (a flying copy that lifts and
   bows, a count that drops in and squashes, the send arrow's launch) and the kiosk's PIN pad
   (pages/scanner-login.css).
   MEASURED FROM THE MOCK, NOT EYEBALLED (owner, same day: "most of the ui animations I dont see from the mock" —
   the first build moved 2–4px where the mock moves 16–28px). Each time is the mock's own, written as a multiple of
   a motion token so reduced motion still turns it off in one place (theme.css):
   - FOLLOW THROUGH (Charles Liu #5): the toast's box slides in from 28px right (220ms); its icon pops 40% → 112% →
     full a beat later (300ms, +60ms); its words slide in from 16px and overshoot by 2px (360ms, +80ms).
   - ANTICIPATION (#2): pressing Send, the button gives (93%, 2px) and the arrow dips, flies up out of the button and
     comes back from below (600ms). The class is set by format.js on the press.
   - SECONDARY ACTION (#8): a main button turning to "Saved" (App.busy, /js/cta.js) sends one ring out that fades
     as it grows 12px (620ms).
   Tested by src/ui/round-two-look.test.js and src/ui/mock-motion.browser.test.js. */
@keyframes toast-box{from{opacity:0;transform:translateX(28px)}}
@keyframes toast-icon{0%{opacity:0;scale:.4}60%{opacity:1;scale:1.12}100%{scale:1}}
@keyframes toast-words{0%{opacity:0;translate:16px 0}70%{opacity:1;translate:-2px 0}100%{translate:0 0}}
.toast{animation:toast-box calc(var(--dur) * 1.2222) cubic-bezier(.2,.7,.2,1)}
.toast > :is(svg,i[data-lucide]){animation:toast-icon calc(var(--dur) * 1.6667) ease calc(var(--dur-instant) * .8571) backwards}
.toast > :not(svg):not(i){animation:toast-words calc(var(--dur) * 2) cubic-bezier(.2,.7,.2,1) calc(var(--dur-instant) * 1.1429) backwards}
@keyframes send-give{20%{transform:translateY(2px) scale(.93)}42%{transform:none}}
@keyframes send-launch{0%{transform:none;opacity:1}20%{transform:translateY(3px) scale(.84);opacity:1}
  50%{transform:translateY(-22px);opacity:0}51%{transform:translateY(12px);opacity:0}100%{transform:none;opacity:1}}
.composer-send.is-launching{animation:send-give calc(var(--dur) * 3.3333) ease}
.composer-send.is-launching :is(svg,i[data-lucide]){animation:send-launch calc(var(--dur) * 3.3333) cubic-bezier(.3,.6,.4,1)}
@keyframes done-ring{from{outline:2px solid color-mix(in srgb,var(--green) 75%,transparent);outline-offset:0}
  to{outline:2px solid color-mix(in srgb,var(--green) 0%,transparent);outline-offset:12px}}
/* with app.css's own swell, and under the pointer too: the press that saved leaves the pointer on the button, and
   app.css's :hover twin of the done state outranked the ring, so it never played (found 2026-11-17, batch A) */
.btn.primary[data-done],.btn.primary[data-done]:hover{animation:btn-done var(--dur-slow) var(--ease) 1,done-ring calc(var(--dur) * 3.4444) cubic-bezier(.2,.7,.2,1)}

/* ======================= BATCH A: WHAT YOU TOUCH EVERY DAY ANSWERS =======================
   The design principles' plan, batch A (owner, 2026-11-17: "yes, proceed", after "i still dont see most of the
   things from charles liu or freddie hickman"). The first rounds gave each rule ONE spot; here the mock's own
   examples reach the shared parts every page uses. With /js/feel.js (dialogs and photos that grow from what
   opened them, a drop that lands, a Save that answers by itself, a check by a field that saved itself, a refused
   field's shake) and the list kit (counts that land). Outside the GLASS sections: Settings and Marketing stay as
   they are while Meta reviews them. Times are the mock's, as multiples of the motion tokens. Tested by
   src/ui/batch-a-look.test.js and src/ui/feel.browser.test.js. */
/* ANTICIPATION: a photo, a card or a widget lifts the moment it is picked up (SortableJS marks it chosen); the
   place it leaves behind (the ghost) stays flat. The Leads board's own floating card rises into its tilt. */
:is(.photo-tile,.imgpick-tile,.inv-image-tile,.thumbnail,.dash-widget).sortable-chosen:not(.sortable-ghost){
  scale:1.05;z-index:2;box-shadow:var(--elev-4);
  transition:scale calc(var(--dur-fast) * 1.1667) cubic-bezier(.2,.7,.2,1),box-shadow calc(var(--dur-fast) * 1.1667) var(--ease)}
@keyframes lift-in{from{rotate:0deg;scale:1}}
@keyframes lift-shadow{from{box-shadow:var(--elev-1)}}
.lp-floater{animation:lift-in calc(var(--dur-fast) * 1.1667) cubic-bezier(.2,.7,.2,1)}
.lp-floater > .lp-card{animation:lift-shadow calc(var(--dur-fast) * 1.1667) cubic-bezier(.2,.7,.2,1)}
/* STAGING + FOLLOW THROUGH, on a computer: a menu, the Filters pane and the avatar menu grow from the corner of
   their own button, and their rows settle a beat after the panel (a phone's are bottom sheets). */
@media (min-width:769px){
  @keyframes menu-grow{from{opacity:0;scale:.9;translate:0 -6px}}
  @keyframes menu-row{from{opacity:0;translate:0 -5px}}
  details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]){
    animation:menu-grow calc(var(--dur) * 1.2222) cubic-bezier(.2,.7,.2,1);transform-origin:top right}
  details.act-menu.act-menu-start[open]>.act-menu-pop{transform-origin:top left}
  details.act-menu.act-menu-up[open]>.act-menu-pop{transform-origin:bottom right}
  details.act-menu.act-menu-start.act-menu-up[open]>.act-menu-pop{transform-origin:bottom left}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>*{
    animation:menu-row calc(var(--dur) * 1.3333) cubic-bezier(.2,.7,.2,1) backwards}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>:nth-child(2){animation-delay:calc(var(--dur-instant) * .2857)}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>:nth-child(3){animation-delay:calc(var(--dur-instant) * .5714)}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>:nth-child(4){animation-delay:calc(var(--dur-instant) * .8571)}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>:nth-child(5){animation-delay:calc(var(--dur-instant) * 1.1429)}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>:nth-child(n+6){animation-delay:calc(var(--dur-instant) * 1.4286)}
  /* a dialog that opens with nothing to grow from (a link, a page's own call) still lets its parts follow its box */
  @keyframes part-settle{0%{opacity:0;translate:0 10px}70%{opacity:1;translate:0 -2px}100%{translate:0 0}}
  :is(.x-modal-backdrop.open>.x-modal,.app-modal-backdrop.open>.app-modal)>*{animation:part-settle calc(var(--dur) * 1.8889) cubic-bezier(.2,.7,.2,1) backwards}
  :is(.x-modal-backdrop.open>.x-modal,.app-modal-backdrop.open>.app-modal)>:nth-child(2){animation-delay:calc(var(--dur-instant) * .5714)}
  :is(.x-modal-backdrop.open>.x-modal,.app-modal-backdrop.open>.app-modal)>:nth-child(n+3){animation-delay:calc(var(--dur-instant) * 1.1429)}
}
/* SQUASH & STRETCH: a switch's knob stretches while it is pressed and lands past its place, then settles (as on
   an iPhone); a ticked checkbox or radio pops; a field that saved itself gets a check beside its label. */
input.switch[type=checkbox]::after{transition:translate calc(var(--dur) * 1.4444) cubic-bezier(.3,1.5,.5,1),width var(--dur-fast) var(--ease)}
input.switch[type=checkbox]:active:not(:disabled)::after{width:22px}
input.switch[type=checkbox]:checked:active:not(:disabled)::after{translate:10px 0}
@keyframes check-pop{0%{scale:.8}55%{scale:1.2}80%{scale:.95}100%{scale:1}}
input:is([type=checkbox],[type=radio]).is-ticked{animation:check-pop calc(var(--dur) * 1.8889) cubic-bezier(.33,.6,.4,1)}
@keyframes tick-pop{0%{opacity:0;scale:.4}60%{opacity:1;scale:1.25}100%{opacity:1;scale:1}}
.saved-tick{display:inline-flex;vertical-align:-2px;margin-left:6px;width:14px;height:14px;color:var(--green);
  animation:tick-pop calc(var(--dur) * 1.6667) cubic-bezier(.33,.6,.4,1) both;transition:opacity var(--dur-slow) var(--ease-exit)}
.saved-tick svg{width:14px;height:14px}
.saved-tick.is-going{opacity:0}
/* EXAGGERATED FEEDBACK: a refused field shakes once — the kiosk PIN's shake (420ms, widest in its middle): a
   required field left empty, a field marked invalid, a field whose save was refused, a wrong password or code
   on the sign-in pages. The scanner's scan box shakes red on a scan that went wrong and rings green on a good one. */
@keyframes refuse-shake{10%,90%{translate:-2px 0}20%,80%{translate:4px 0}30%,50%,70%{translate:-7px 0}40%,60%{translate:7px 0}}
.is-refused,.login-card > .error-msg[data-refused],.login-card:has(> .error-msg[data-refused]) form .field:has(:is(input[type=password],.code-input)){
  animation:refuse-shake calc(var(--dur-slow) * 1.6154) cubic-bezier(.36,.07,.19,.97)}
.login-card:has(> .error-msg[data-refused]) form :is(input[type=password],.code-input){border-color:var(--red)}
@keyframes scan-bad{from{box-shadow:0 0 0 4px color-mix(in srgb,var(--red) 45%,transparent)}to{box-shadow:0 0 0 4px color-mix(in srgb,var(--red) 0%,transparent)}}
@keyframes scan-ok{from{box-shadow:0 0 0 0 color-mix(in srgb,var(--green) 60%,transparent)}to{box-shadow:0 0 0 14px color-mix(in srgb,var(--green) 0%,transparent)}}
.scan-input-wrap.scan-flash-bad{border-color:var(--red);animation:refuse-shake calc(var(--dur-slow) * 1.6154) cubic-bezier(.36,.07,.19,.97),scan-bad calc(var(--dur) * 3.4444) var(--ease)}
.scan-input-wrap.scan-flash-ok{border-color:var(--green);animation:scan-ok calc(var(--dur) * 3.4444) cubic-bezier(.2,.7,.2,1)}

/* ======================= BATCH B: A FINISHED PIECE OF WORK FEELS LIKE A WIN =======================
   The design principles' plan, batch B (owner, 2026-11-17; Freddie Hickman 1 "speed to dopamine", Charles Liu 20
   "what is rare may move more"). What repeats stays still; a rare finish gets ONE short moment: a WIN TOAST —
   App.toast(msg, 'success', { win: true }): a tray sent to review from its editor, a fix marked done, a reviewer's
   last item of a tray — bursts round its icon once: a green ring grows out and fades while six sparks fly out
   (600ms, from the icon's own pop). It stays a toast like any other: the corner, the timer, a box that takes no
   click. Outside the GLASS sections: Settings and Marketing (no look.css) show a plain toast. Never under reduced
   motion. Tested by src/ui/wins.browser.test.js. */
@media (prefers-reduced-motion: no-preference){
  @keyframes win-ring{from{box-shadow:0 0 0 0 color-mix(in srgb,var(--green) 55%,transparent)}to{box-shadow:0 0 0 16px color-mix(in srgb,var(--green) 0%,transparent)}}
  @keyframes win-sparks{0%{opacity:0;scale:.2}15%{opacity:1}70%{opacity:1}100%{opacity:0;scale:1}}
  .toast.is-win{position:relative}
  .toast.is-win::before,.toast.is-win::after{content:"";position:absolute;pointer-events:none;border-radius:50%}
  /* the ring: the icon's own box (18px, 16px in from the padding edge, 1px below the padding) */
  .toast.is-win::before{left:16px;top:14px;width:18px;height:18px;
    animation:win-ring calc(var(--dur) * 3.3333) cubic-bezier(.2,.7,.2,1) calc(var(--dur-instant) * .8571) both}
  /* the sparks: six dots round the icon's centre, drawn as hard-edged shadows of one 4px box that grows from it */
  .toast.is-win::after{left:23px;top:21px;width:4px;height:4px;
    box-shadow:0 -20px 0 0 var(--green),17px -10px 0 0 var(--green),17px 10px 0 0 var(--green),0 20px 0 0 var(--green),-17px 10px 0 0 var(--green),-17px -10px 0 0 var(--green);
    animation:win-sparks calc(var(--dur) * 3.3333) cubic-bezier(.2,.7,.2,1) calc(var(--dur-instant) * .8571) both}
}

/* ======================= SOLID DRAWING IN 3D: PHOTOS AND HOME'S CARDS =======================
   Charles Liu's "solid drawing in 3D" in the app (owner, 2026-11-18, "Photos + cards"; the website's frames and the
   Circle's piece photo already lean toward the pointer). On a computer, with /js/feel.js setting the lean:
   - a PHOTO (the product page's main photo, every photo tile of the tray editor, Review, Fixing and the product
     page's strip) leans up to 4° toward the pointer in perspective, comes 10px nearer onto a deeper shadow, and a
     soft light follows the pointer across it;
   - a CARD on Home (the figure tiles, Today, the charts — never Sally's, it holds a chat box) leans up to 2.5°
     (less on a wide one) and comes 6px nearer onto a deeper shadow; no light over its words;
   - a DIALOG stands up as it opens — leaning back 6° in perspective → upright (here when it has no button to grow
     from; feel.js adds the same lean to its grow from the button).
   Tables and forms stay flat. The lean follows the pointer quickly (--dur-fast) and settles back slowly; at rest
   there is NO transform (feel.js takes the class away once flat), and a press, a key, a field or an open menu
   inside takes it away at once: a transformed card is a layer and the frame of every fixed box inside it (THE
   GLASS). Never under reduced motion, never with a finger, never on a phone; no light under Reduce Transparency
   or Increase Contrast. Outside the GLASS sections: Settings and Marketing stay as they are while Meta reviews
   them. Tested by src/ui/depth-3d.browser.test.js. */
@media (hover:hover) and (pointer:fine) and (min-width:769px) and (prefers-reduced-motion: no-preference){
  :is(.pr-gallery-main,.photo-grid .photo-tile,.pr-thumbstrip .inv-image-tile,.grid.widgets>.dash-widget).is-depth{
    --depth-z:0px;
    transform:perspective(var(--depth-p,900px)) rotateX(var(--depth-rx,0deg)) rotateY(var(--depth-ry,0deg)) translateZ(var(--depth-z));
    transition:transform calc(var(--dur-slow) * 1.9231) cubic-bezier(.2,.8,.2,1),box-shadow calc(var(--dur-slow) * 1.9231) var(--ease)}
  :is(.pr-gallery-main,.photo-grid .photo-tile,.pr-thumbstrip .inv-image-tile,.grid.widgets>.dash-widget).is-depth.is-depth-on{
    z-index:1;transition-duration:var(--dur-fast),var(--dur-slow)}
  :is(.pr-gallery-main,.photo-grid .photo-tile,.pr-thumbstrip .inv-image-tile).is-depth.is-depth-on{--depth-z:10px;box-shadow:var(--elev-3)}
  .photo-grid .photo-tile.is-flagged.is-depth.is-depth-on{box-shadow:0 0 0 3px var(--amber),var(--elev-3)}
  .grid.widgets>.dash-widget.is-depth.is-depth-on{--depth-z:6px}
  .grid.widgets>.dash-widget.is-depth>:is(.kpi,.card,.dash-widget-card){transition:box-shadow calc(var(--dur-slow) * 1.9231) var(--ease)}
  .grid.widgets>.dash-widget.is-depth.is-depth-on>:is(.kpi,.card,.dash-widget-card){box-shadow:var(--elev-3)}
  /* the light: drawn over the photo (under its corner tools), where the pointer is */
  :is(.pr-gallery-main,.photo-grid .photo-tile,.pr-thumbstrip .inv-image-tile).is-depth::before{
    content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;opacity:0;
    background:radial-gradient(circle at var(--depth-mx,50%) var(--depth-my,50%),var(--depth-sheen),transparent 62%);
    transition:opacity calc(var(--dur-slow) * 1.9231) var(--ease)}
  :is(.pr-gallery-main,.photo-grid .photo-tile,.pr-thumbstrip .inv-image-tile).is-depth.is-depth-on::before{opacity:1;transition-duration:var(--dur-fast)}
  /* a dialog with no button to grow from stands up as it opens (app.css's xModalPop / appModalPop, leaning) */
  @keyframes dialog-rise{from{opacity:0;transform:perspective(900px) translateY(8px) rotateX(6deg) scale(.985)}to{opacity:1;transform:none}}
  .x-modal-backdrop:not(.is-full)>.x-modal,.app-modal-backdrop>.app-modal{animation:dialog-rise calc(var(--dur) * 1.7778) cubic-bezier(.2,.7,.2,1)}
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more){
  :is(.pr-gallery-main,.photo-grid .photo-tile,.pr-thumbstrip .inv-image-tile).is-depth::before{display:none}
}

/* ======================= EVERY CHANGE ANSWERS: A CONTROL THAT SAVES ITSELF =======================
   The design principles' follow-up (owner, 2026-11-18: "secondary action" not felt). /js/moments.js marks a
   switch, a box, a select or a field while the save its change started is out (.is-saving-ctl, after 120ms, so
   a quick save never blinks); a switch or box then sends a green ring out, a select or field gets the green ring
   and the check by its label. A pill that changed pops its dot, a count swells, a row taken out lets the rest
   glide up, a new main photo's badge pops (all Web Animations in moments.js). An outline, never a shadow: the
   saved ring is a shadow added on top. Outside the GLASS sections: Settings and Marketing stay as they are.
   Tested by src/ui/secondary-action.browser.test.js. */
@keyframes ctl-saving{from{outline-color:color-mix(in srgb,var(--accent) 18%,transparent)}to{outline-color:color-mix(in srgb,var(--accent) 55%,transparent)}}
.is-saving-ctl{outline:2px solid color-mix(in srgb,var(--accent) 35%,transparent);outline-offset:2px;
  animation:ctl-saving calc(var(--dur) * 2.6667) var(--ease-in-out) infinite alternate}
@media (prefers-reduced-motion: reduce){.is-saving-ctl{animation:none}}

/* ======================= SLOW IN · FOLLOW THROUGH · ARCS: FELT ON THE DAILY ACTIONS =======================
   The owner checked the live app (2026-11-18): "Slow in & slow out", "Moving in arcs" and "Follow through" were not
   felt — the moves were 2–6px and most daily actions had none. With /js/feel-motion.js (a list the person changed
   eases in, the quick look's and Sally's parts land after their frame, a drop and a tick travel on an arc). Here:
   the parts that follow through at the mock's own size — 16px, 2px past, settled (360ms on cubic-bezier(.2,.7,.2,1),
   40ms apart): the Filters pane's sections and the avatar menu's rows (a ••• menu's rows 12px), the ? sheet's
   sections, a phone's bottom sheets' rows, and Home's cards as they first fill (their contents after the card, which
   skel-reveal.js fades). The dot a tick sends to its count. Times are the mock's, as multiples of the motion tokens
   (reduced motion turns them off in theme.css). Outside the GLASS sections: Settings and Marketing stay as they
   are while Meta reviews them. Tested by src/ui/feel-motion.browser.test.js. */
@keyframes fm-sec{0%{opacity:0;translate:0 8px}70%{opacity:1;translate:0 -1px}100%{translate:0 0}}
@keyframes fm-row{0%{opacity:0;translate:0 12px}70%{opacity:1;translate:0 -2px}100%{translate:0 0}}
@keyframes fm-fill{0%{translate:0 16px}70%{translate:0 -2px}100%{translate:0 0}}
@media (min-width:769px){
  /* the Filters pane and the avatar menu (batch A's grow keeps; its rows follow at the mock's size) */
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>*{
    animation-name:fm-sec;animation-duration:calc(var(--dur) * 1.3333);animation-delay:calc(var(--dur-instant) * .8571)}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>:nth-child(2){animation-delay:calc(var(--dur-instant) * .8571)}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>:nth-child(3){animation-delay:calc(var(--dur-instant) * .8571)}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>:nth-child(4){animation-delay:calc(var(--dur-instant) * .8571)}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>:nth-child(5){animation-delay:calc(var(--dur-instant) * .8571)}
  :is(details.act-menu[open]>.act-menu-pop,.user-menu-dropdown:not([hidden]),.filter-pop:not([hidden]))>:nth-child(n+6){animation-delay:calc(var(--dur-instant) * .8571)}
  /* a ••• menu's rows are short: 12px */
  details.act-menu[open]>.act-menu-pop>*{animation-name:fm-row}
  /* the ? sheet: its sections after the dialog's own parts */
  #shortcuts-sheet.open .keys-sec{animation:fm-sec calc(var(--dur) * 1.3333) cubic-bezier(.2,.7,.2,1) calc(var(--dur-instant) * .8571) backwards}
  #shortcuts-sheet.open .keys-sec:nth-child(2){animation-delay:calc(var(--dur-instant) * .8571)}
  #shortcuts-sheet.open .keys-sec:nth-child(n+3){animation-delay:calc(var(--dur-instant) * .8571)}
  /* Home: a card's contents as it first fills — the moment its skeleton leaves (each box below seeds one) */
  :is(.dash-widget [data-skel-keep],.dash-widget .dash-widget-chart,.dash-widget .dash-trend-plot):not(:has(.skel-bar,.skel-list,.skel-text,.skel-block,.skel-bars,.skel-donut,[data-skel-overlay]))>*,
  .dash-widget .dash-fig:not(:has(.skel-bar))>:is(.val,.delta){
    animation:fm-fill calc(var(--dur) * 2) cubic-bezier(.2,.7,.2,1) calc(var(--dur-instant) * .8571) backwards}
  :is(.dash-widget [data-skel-keep],.dash-widget .dash-widget-chart,.dash-widget .dash-trend-plot):not(:has(.skel-bar,.skel-list,.skel-text,.skel-block,.skel-bars,.skel-donut,[data-skel-overlay]))>:nth-child(2),
  .dash-widget .dash-fig:not(:has(.skel-bar))>.delta{animation-delay:calc(var(--dur-instant) * .8571)}
  :is(.dash-widget [data-skel-keep],.dash-widget .dash-widget-chart,.dash-widget .dash-trend-plot):not(:has(.skel-bar,.skel-list,.skel-text,.skel-block,.skel-bars,.skel-donut,[data-skel-overlay]))>:nth-child(n+3){animation-delay:calc(var(--dur-instant) * .8571)}
}
@media (max-width:768px){
  /* a phone's bottom sheets: their rows follow the sheet up (bottom-sheet.js grows it from its button) */
  html.bs-on .bs-sheet:not(.bs-leaving) :is(.bs-body>.bs-group-h,.bs-body>.bs-group>.bs-row),
  html.bs-on :is(.filter-pop,.tk-menu,.user-menu-dropdown).bs-sheet:not(.bs-leaving)>:not(.bs-grab){
    animation:fm-sec calc(var(--dur) * 1.3333) cubic-bezier(.2,.7,.2,1) calc(var(--dur-instant) * .8571) backwards}
  html.bs-on .bs-sheet:not(.bs-leaving) .bs-body>.bs-group>.bs-row:nth-child(2),
  html.bs-on :is(.filter-pop,.tk-menu,.user-menu-dropdown).bs-sheet:not(.bs-leaving)>:not(.bs-grab):nth-child(3){animation-delay:calc(var(--dur-instant) * .8571)}
  html.bs-on .bs-sheet:not(.bs-leaving) .bs-body>.bs-group>.bs-row:nth-child(3),
  html.bs-on :is(.filter-pop,.tk-menu,.user-menu-dropdown).bs-sheet:not(.bs-leaving)>:not(.bs-grab):nth-child(4){animation-delay:calc(var(--dur-instant) * .8571)}
  html.bs-on .bs-sheet:not(.bs-leaving) .bs-body>.bs-group>.bs-row:nth-child(n+4),
  html.bs-on :is(.filter-pop,.tk-menu,.user-menu-dropdown).bs-sheet:not(.bs-leaving)>:not(.bs-grab):nth-child(n+5){animation-delay:calc(var(--dur-instant) * .8571)}
}
/* the dot a ticked row sends to its "N selected" count (feel-motion.js flies it) */
.fm-dot{position:fixed;width:10px;height:10px;border-radius:var(--r-full);background:var(--accent);box-shadow:0 0 0 2px var(--surface);
  pointer-events:none;z-index:9600}

/* ======================= FEATURE TIPS: THE RING SHOWS ON GLASS (owner, 2026-11-18, "Tips + carousel") =======================
   A coach mark rings what it points at (app.css .coach-target). Under the quieter look a card, a figure tile and a
   table box wear the glass's own shadow, which outranked the ring, so a tip on Home's Today card pointed at nothing
   you could see; and a table row draws a box-shadow only along its foot. The ring wins here, and a row takes it as
   an outline inside its own edge (/js/feature-tips.js, /js/first-day-coach.js). */
:root .coach-target.coach-target{box-shadow:0 0 0 3px var(--accent-soft),0 0 0 1px var(--accent)}
:root tr.coach-target.coach-target{box-shadow:none;outline:2px solid var(--accent);outline-offset:-2px}
