/* app.css — the dashboard layer: the frame and the furniture every signed-in mixtape page
   wears, as plain CSS classes.
 *
 * Why this file exists. The React products (Studio, mixtape.works) had these as components
 * in src/components — AppShell, Card, Panel, Button, Field, Badge — written in Tailwind
 * utilities. A product that is not React could not use a single one of them, so Dayrule and
 * qr-voks each grew their own, which is the one thing we said we would never do. These
 * classes are the definition; the React components render them, so there is one design and
 * two ways to reach it.
 *
 * Load after tokens.css. Every colour, radius and font here is a token: restyle a product by
 * setting --c-accent and friends, never by forking this file. landing.css is the other half,
 * for the pages a stranger sees; this one is for the pages a signed-in person works in.
 *
 * The frame, as the AppShell built it and this keeps it:
 *   - a sticky top bar, 3.5rem, blurred, with the brand, the nav and the gear
 *   - on a phone the nav moves to a fixed bottom tab bar, where a thumb is
 *   - one content column, 1120px, with its own padding
 * The furniture: .mx-card, .mx-panel, .mx-btn, .mx-field, .mx-table, .mx-badge, .mx-stat.
 */

/* Labels - the mono caps on a panel header, a field, a column, a stat.
 *
 * They were --c-ink-subtle at 10.5-0.6875rem, which is a whisper: Chris asked for a point bigger and
 * ten per cent more visible. One mix, not two colours: a tenth of the way from subtle towards
 * the page's own ink brightens it on a dark theme and darkens it on a light one, by
 * construction, and every product that loads this file moves with it. Since 2026-11-02 --c-ink-subtle reads at
 * 4.5:1 or better on every surface (tokens.css), so the label does too: 5.3-5.9:1 on paper, 5.3-6.4:1 in the dark. */
:root {
  --mx-label: color-mix(in srgb, var(--c-ink-subtle) 90%, var(--c-ink));
  --mx-label-size: 0.75rem;
  --mx-label-size-sm: 0.7188rem;
}

/* ── The frame ───────────────────────────────────────────────────────────*/

.mx-app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--c-canvas);
}

.mx-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--c-line);
  background: color-mix(in srgb, var(--c-canvas) 85%, transparent);
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
  padding-top: env(safe-area-inset-top);
}
.mx-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.5rem;
  width: 100%;
  max-width: var(--lp-max, var(--page-max, 90rem));
  margin-inline: auto;
  padding-inline: max(var(--lp-gutter, 1.5rem), env(safe-area-inset-left)) max(var(--lp-gutter, 1.5rem), env(safe-area-inset-right));
}
.mx-bar__left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}
.mx-bar__right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}
/* The cog pulls itself flush with the bar's edge - unless the profile follows it, which then
   takes the edge (--mx-me-edge) and leaves the pair half a rem apart, as on mixtape.works.
   Global, not per bar: Studio's React header pairs them the same way. */
mixtape-settings:has(+ mixtape-profile) { --mx-cog-edge: 0; }
/* mixtape.works' own lock-up (components/Logo.tsx, and the kit landing footer for mixtape.works): the cassette in the
   accent and the wordmark with a quieter ".works". In rem, so it follows the interface size (Chris, 2026-10-26). */
.mx-logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.mx-logo__mark { width: 1.75rem; height: 1.75rem; flex: none; color: var(--c-accent); }
.mx-logo__word { color: var(--c-ink); font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.mx-logo__tld { color: var(--c-ink-muted); }
.mx-logo__mark > svg { display: block; width: 100%; height: 100%; }
/* The brand lock-up: mark, wordmark, and the product badge next to it. */
.mx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
}
/* The mark is the bare drawing in the product's accent - the way mixtape's own cassette mark
   sits in its orange. The rounded tile behind it belongs to the favicon and the home-screen
   icon only, where the OS needs a shape to put it on (Chris, 2026-09-21). A product's mark is
   an SVG drawn in currentColor. */
.mx-brand svg { width: 1.375rem; height: 1.375rem; flex: none; color: var(--c-accent); }
/* The brand gives way instead of running through the bar's own button: .mx-bar__left is the only group that can
   shrink, and a brand that refused was painted on top of the right-hand group - 59px through a button at 360px in
   Hungarian on Storefront Ninja, with no sideways scroll for any check to catch (2026-09-23, cured there; here
   since 2026-11-14). The mark and a badge keep their size; the bare wordmark shortens with an ellipsis. */
.mx-brand { min-width: 0; flex-shrink: 1; }
.mx-brand > span:not([class]) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-brand > .mx-badge-app { flex: none; }
/* Who is signed in, next to the gear. A name, not an address: an address is a credential and
   reads as clutter. Hidden where the bar is tight - the gear menu still says. */
.mx-who {
  display: none;
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--c-ink-muted);
}
@media (min-width: 600px) { .mx-who { display: inline-block; } }

.mx-badge-app {
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  padding: 2px 0.5rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mx-label);
}

/* ── Navigation: one vocabulary, two bars ────────────────────────────────
   The same destinations with the same icons, whether they are clicked in the top bar or
   thumbed in the bottom one. Desktop shows the top nav; a phone shows the tab bar. */

.mx-nav { display: none; align-items: center; gap: 2px; }
.mx-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  color: var(--c-ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.mx-nav a:hover { color: var(--c-ink); }
.mx-nav a svg { width: 1rem; height: 1rem; flex-shrink: 0; opacity: 0.7; }
.mx-nav a[aria-current='page'] { color: var(--c-ink); }
.mx-nav a[aria-current='page'] svg { color: var(--c-accent); opacity: 1; }
/* The 2px rule under the current page sits on the bar's own border. */
.mx-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  inset-inline: 0.5rem;
  bottom: -13px;
  height: 2px;
  border-radius: 999px;
  background: var(--c-accent);
}

.mx-tabs {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--c-line);
  background: color-mix(in srgb, var(--c-canvas) 90%, transparent);
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
  /* Clear of the home indicator, not a whole band of it - Studio's own bar (safe-b-tight): the
     full inset left an empty strip under the labels. 58px of tabs + 24 = Apple's own 83pt bar. */
  padding-bottom: max(calc(env(safe-area-inset-bottom) - 10px), 4px);
}
.mx-tabs ul {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  max-width: 35rem;
  /* margin 0: a product without a reset kept the browser's 1em above and below the list, and
     the bar stood 33px taller than its tabs (RentKeeper on Chris's iPhone, 2026-10-05). */
  margin: 0 auto;
  padding: 0 0.25rem;
  list-style: none;
}
.mx-tabs li { flex: 1; }
.mx-tabs a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--c-ink-subtle);
  text-decoration: none;
}
.mx-tabs a svg { width: 1.375rem; height: 1.375rem; transition: transform 0.15s ease; }
.mx-tabs a[aria-current='page'] { color: var(--c-accent); }
.mx-tabs a[aria-current='page'] svg { transform: scale(1.1); }

.mx-main {
  min-width: 0;
  flex: 1;
  /* Clear of the tab bar on a phone, as tall as it really is (kit/frame.ts --mx-tabs-h: a wrapped
     label makes it taller); the bar is gone from `md` up. */
  padding-bottom: calc(var(--mx-tabs-h, calc(3.75rem + env(safe-area-inset-bottom))) + 0.75rem + var(--mx-fab-room, 0px));
}
@media (min-width: 768px) {
  .mx-nav { display: flex; }
  .mx-tabs { display: none; }
  .mx-main { padding-bottom: calc(2rem + var(--mx-fab-room, 0px)); }
}
/* The tab that stands for several pages (the sidebar's More, below) is lit like a page when the page
   open is one of its own: aria-current="true", "the current one of a set", not "this page". */
.mx-tabs a[aria-current='true'] { color: var(--c-accent); }
.mx-tabs a[aria-current='true'] svg { transform: scale(1.1); }

/* ── The phone (2026-11-03, Chris on Storefront's Analytics, iPhone: "buggy/unfinished") ─────────────────────────
   On a touch screen both bars are SOLID. backdrop-filter on a position: fixed / sticky box is what iOS Safari moves
   late during a momentum scroll - the tab bar was drawn above the bottom edge with the page's card showing under it -
   and the 85-90% see-through canvas let a line of the page ("stopped.") read through the top bar. A blur is for a
   mouse, where nothing is flung. */
@media (hover: none), (pointer: coarse) {
  .mx-bar, .mx-tabs { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--c-canvas); }
}
/* Below the tab bar, more of the bar: when iOS draws it above the true bottom for a moment (its toolbar sliding,
   the rubber band at the end of the page), the gap shows the bar's own colour, never the page carrying on. A fixed
   box's overflow adds nothing to the page's scroll height. */
.mx-tabs::after { content: ''; position: absolute; inset-inline: 0; top: 100%; height: 50vh; background: inherit; pointer-events: none; }
/* Native controls (checkboxes, a date picker's selected day, a range, a progress bar) in the product's colour, not
   the platform's blue. */
.mx-app { accent-color: var(--c-accent); }
/* The phone bar: one row of things the same size - the switcher's mark the avatar's 1.75rem, every icon a 2.25rem
   round target with a 44px reach on a touch screen, no box drawn round any of them. A ghost button in the bar
   loses its border here (a 44px outlined box stood taller than the bar's other things), and a button whose words
   are in .mx-btn__text becomes the icon button below 640px - the words stay in its aria-label and title. */
@media (max-width: 767.98px) {
  .mx-bar__right { gap: 0.25rem; }
  .mx-bar .mx-switch__mark { width: 1.75rem; height: 1.75rem; border-radius: 0.4375rem; }
  .mx-bar .mx-btn--ghost { border-color: transparent; }
  .mx-bar .mx-btn:is(.mx-btn--ghost, .mx-btn--quiet):has(> svg) { padding-inline: 0.5rem; color: var(--c-ink-muted); }
  .mx-bar .mx-btn:has(> svg) > svg { width: 1.25rem; height: 1.25rem; }
}
@media (max-width: 639.98px) {
  .mx-bar .mx-btn__text { display: none; }
  .mx-bar .mx-btn:has(> .mx-btn__text) {
    width: 2.25rem; height: 2.25rem; min-width: 44px; padding: 0; border-color: transparent; border-radius: 9999px;
    background: transparent; color: var(--c-ink-muted);
  }
}
/* The support chat's round button is on this page (elements/support.ts stamps it): the last row of the page keeps
   clear of it as well as of the tab bar. */
:root[data-mx-support-fab] { --mx-fab-room: 4.25rem; }
@media (max-width: 720px) { :root[data-mx-support-fab] { --mx-fab-room: 3.5rem; } }

/* ── Sidebar navigation: .mx-side (2026-11-02) ──────────────────────────────────────────────────
   For a product with a big admin (Storefront Ninja first, Shopiza's admin the model): every
   destination down the left, grouped, instead of four in the top bar. OPT-IN BY MARKUP - a
   <nav class="mx-side"> that is a direct child of .mx-app - so a product without one keeps its
   top-bar layout to the pixel. One list, three widths:
     - from 1200px: the sidebar, icon + label, a group's pages indented under it;
     - 768-1199px: an icon rail with the labels as tooltips. The toggle in the sidebar's foot
       switches between the rail and the full sidebar at any width from 768px, and the device
       remembers which (kit/side.ts, localStorage mixtape-side). boot.js stamps the choice (or the
       width's default) on <html data-mx-side> before paint, so nothing moves on load; with no
       script at all there is no attribute and the full sidebar shows, its groups plain disclosures;
     - a head (the shop or workspace the admin is of, with its menu) and a foot (the product's mark,
       name and plan, beside the toggle), both optional: with a head the sidebar runs the window's
       full height and the bar sits beside it ("The head and the foot" below);
     - under 768px: no sidebar. The kit's tab bar carries four of the items and a More tab
       (data-mx-side-more) that opens the whole list in the kit's overlay.
   Markup, words and icons: server/mixtape-sidenav.mjs. Behaviour: kit/side.ts. DESIGN.md
   "Sidebar navigation". */
:root {
  --mx-side-w: 15rem;
  --mx-side-rail: 4.25rem;
  /* A phone on its side is 844px wide - rail width - with the notch on one edge. */
  --mx-side-edge: env(safe-area-inset-left, 0px);
}
:root[dir='rtl'] { --mx-side-edge: env(safe-area-inset-right, 0px); }
.mx-side { display: none; }
/* Lists and disclosures with their own margins: products have no reset (see .mx-tabs ul). */
.mx-side__list,
.mx-side__sub { margin: 0; padding: 0; list-style: none; }
.mx-side__list { display: flex; flex-direction: column; gap: 2px; }
.mx-side__list li,
.mx-side__group { margin: 0; }
.mx-side__item {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.5rem;
  /* 15px in: a rail's 48px item centres its 18px icon there, so the icons do not move when the
     rail widens into the sidebar. */
  padding: 0.4375rem 0.75rem;
  padding-inline-start: 0.9375rem;
  border-radius: var(--radius-sm);
  color: var(--c-ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
summary.mx-side__item { list-style: none; }
summary.mx-side__item::-webkit-details-marker { display: none; }
.mx-side__item > svg { width: 1.125rem; height: 1.125rem; flex: none; }
.mx-side__label { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
@media (hover: hover) {
  .mx-side__item:hover { background: var(--c-surface-2); color: var(--c-ink); }
}
.mx-side__item:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
/* A group's chevron: the kit's dropdown drawing as a mask, so it takes the row's colour. */
summary.mx-side__item::after {
  content: '';
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background: currentColor;
  -webkit-mask: var(--select-chevron) center / contain no-repeat;
  mask: var(--select-chevron) center / contain no-repeat;
  opacity: 0.7;
  transition: transform 0.2s var(--ease-out-soft, ease);
}
.mx-side__group[open] > summary.mx-side__item::after { transform: rotate(180deg); }
/* The current page, in the product's accent; the group holding it says so too. */
.mx-side__item[aria-current='page'] { background: var(--c-accent-soft); color: var(--c-ink); font-weight: 600; }
.mx-side__item[aria-current='page'] > svg,
.mx-side__group:has([aria-current='page']) > summary > svg { color: var(--c-accent); }
.mx-side__group:has([aria-current='page']) > summary { color: var(--c-ink); }
.mx-side__item[aria-current='page']::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 999px;
  background: var(--c-accent);
}
/* A group's pages start under its label, on a hairline down from its icon. */
.mx-side__sub { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 2px 0 0.375rem; padding-inline-start: 2.0625rem; }
.mx-side__sub::before {
  content: '';
  position: absolute;
  inset-inline-start: 1.5rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: var(--c-line);
}
.mx-side__sub .mx-side__item { min-height: 2.25rem; padding-block: 0.375rem; padding-inline-start: 0.75rem; gap: 0.625rem; font-size: 0.8125rem; font-weight: 400; }
.mx-side__sub .mx-side__item > svg { width: 1rem; height: 1rem; }
.mx-side__sub .mx-side__item[aria-current='page'] { font-weight: 600; }
.mx-side__toggle { display: none; }

@media (min-width: 768px) {
  .mx-app:has(> .mx-side) { --mx-side-now: var(--mx-side-w); }
  .mx-side {
    position: fixed;
    z-index: 30;
    inset-inline-start: 0;
    /* Under the bar: its 3.5rem row, its hairline and the notch above it. */
    top: calc(3.5rem + 1px + env(safe-area-inset-top, 0px));
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: calc(var(--mx-side-now, var(--mx-side-w)) + var(--mx-side-edge));
    margin: 0;
    padding-inline-start: var(--mx-side-edge);
    border-inline-end: 1px solid var(--c-line);
    background: var(--c-canvas);
    transition: width 0.2s var(--ease-out-soft, ease), box-shadow 0.2s ease;
  }
  .mx-side > .mx-side__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem 0.625rem;
    scrollbar-width: thin;
  }
  .mx-app:has(> .mx-side) > :is(.mx-main, .mx-footer) {
    margin-inline-start: calc(var(--mx-side-now) + var(--mx-side-edge));
    transition: margin 0.2s var(--ease-out-soft, ease);
  }
  /* The bar spans the window, so the brand sits over the sidebar and the menus at the far edge. */
  .mx-app:has(> .mx-side) .mx-bar__inner { max-width: none; }
}

/* The rail: the toggle in the foot chooses it at any width from 768px (boot.js stamps the choice, or the width's
   default - the rail up to 1199px, the full sidebar from 1200px - before paint). */
@media (min-width: 768px) {
  :root[data-mx-side='rail'] .mx-app:has(> .mx-side) { --mx-side-now: var(--mx-side-rail); }
  /* The toggle: only once a script can work it. 15px in, so its icon sits in the rail's column of icons. */
  :root[data-mx-side] .mx-side__toggle {
    display: flex;
    flex: none;
    align-items: center;
    box-sizing: border-box;
    width: 3rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    padding-inline-start: 0.9375rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--c-ink-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  :root[data-mx-side] .mx-side__toggle svg { width: 1.125rem; height: 1.125rem; flex: none; }
  :root[data-mx-side] .mx-side__toggle:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
  :root[data-mx-side='rail'] .mx-side__toggle svg + svg,
  :root[data-mx-side='open'] .mx-side__toggle svg:first-child { display: none; }
  /* The rail: the same items, their labels lifted out as tooltips. Nothing clips them, so the list
     does not scroll - a rail holds eight icons in 25rem. */
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) > .mx-side__list { overflow: visible; }
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) .mx-side__label {
    position: absolute;
    z-index: 1;
    inset-inline-start: calc(100% + 0.5rem);
    top: 50%;
    translate: 0 -50%;
    width: max-content;
    max-width: 14rem;
    padding: 0.3125rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--c-ink);
    color: var(--c-canvas);
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: var(--shadow-lift);
    /* Faded, never hidden: the label is still the link's name to a screen reader. */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
  }
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) .mx-side__item:focus-visible > .mx-side__label { opacity: 1; }
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) summary.mx-side__item::after,
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) .mx-side__sub { display: none; }
  /* Its pages folded away, a group lights up for the page inside it. */
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) .mx-side__group:has([aria-current='page']) > summary { background: var(--c-accent-soft); }
  /* A group pressed in the rail opens the whole sidebar over the page until a page is picked. */
  .mx-side[data-peek] { z-index: 39; width: calc(var(--mx-side-w) + var(--mx-side-edge)); box-shadow: var(--shadow-lift); }
}
@media (min-width: 768px) and (hover: hover) {
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) .mx-side__item:hover > .mx-side__label { opacity: 1; }
  :root[data-mx-side] .mx-side__toggle:hover { background: var(--c-surface-2); color: var(--c-ink); }
}

/* ── The head and the foot (2026-11-02, Shopiza's sidebar the model) ─────────────────────────────
   The head says what this admin is OF - a shop, a workspace: its mark (a picture, or its initial on its colour,
   a rounded square), its name, one line under it, and a menu of what can be done with it (.mx-switch, a native
   <details>). The foot is the product's own mark and name with one line under it - the plan - beside the toggle.
   With a head the sidebar runs the window's full height, the head's row level with the bar beside it, so the
   product's name is said once, at the bottom. On a phone there is no sidebar: the product draws the same head in
   the bar (sideSwitch() in server/mixtape-sidenav.mjs), and More's menu ends with the foot's brand. */
.mx-switch { position: relative; min-width: 0; }
.mx-switch__btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.3125rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--c-ink);
  text-decoration: none;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease;
}
span.mx-switch__btn { cursor: default; }
summary.mx-switch__btn::-webkit-details-marker { display: none; }
/* Up and down chevrons: the head opens a menu, it does not fold a section. */
summary.mx-switch__btn::after {
  content: '';
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-inline-start: auto;
  background: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) {
  :is(summary, a).mx-switch__btn:hover { background: var(--c-surface-2); }
}
.mx-switch[open] > .mx-switch__btn { background: var(--c-surface-2); }
.mx-switch__btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
/* The mark: 2rem, a rounded square; a picture is fitted whole on the surface, an initial sits on its colour. */
.mx-switch__mark,
.mx-switch__rowmark { flex: none; box-sizing: border-box; display: block; width: 2rem; height: 2rem; border-radius: 0.5rem; }
.mx-switch__rowmark { width: 1.5rem; height: 1.5rem; border-radius: 0.375rem; }
img:is(.mx-switch__mark, .mx-switch__rowmark) { object-fit: contain; padding: 2px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
:is(.mx-switch__mark, .mx-switch__rowmark) text { font-family: inherit; font-size: 15px; font-weight: 650; }
.mx-mark__ground { fill: var(--c-accent); }
.mx-mark__ink { fill: var(--c-accent-ink); }
.mx-switch__text { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.25; text-align: start; }
.mx-switch__name,
.mx-switch__detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-switch__name { font-size: 0.875rem; font-weight: 600; color: var(--c-ink); }
.mx-switch__detail { font-size: 0.75rem; color: var(--c-ink-subtle); }
/* The menu: under the head, at least as wide as it. */
.mx-switch__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.25rem);
  inset-inline-start: 0;
  box-sizing: border-box;
  display: grid;
  gap: 1px;
  min-width: max(100%, 15rem);
  max-width: min(22rem, calc(100vw - 1.5rem));
  margin: 0;
  padding: 0.375rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-surface);
  box-shadow: var(--shadow-lift);
}
.mx-switch__heading {
  margin: 0.25rem 0.5rem 0.25rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--mx-label-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mx-label);
}
.mx-switch__sep { height: 0; margin: 0.25rem -0.375rem; border: 0; border-top: 1px solid var(--c-line); }
.mx-switch__form { display: block; margin: 0; }
.mx-switch__item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.375rem 0.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-size: 0.875rem;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.mx-switch__item .mx-switch__name { font-weight: 500; }
.mx-switch__item > svg:not(.mx-switch__rowmark) { flex: none; width: 1rem; height: 1rem; color: var(--c-ink-muted); }
/* The row being worked in: a tick at its end in the accent, nothing to press. */
.mx-switch__item[aria-current] { cursor: default; }
.mx-switch__item[aria-current] > svg:last-child { color: var(--c-accent); }
@media (hover: hover) {
  :is(a, button).mx-switch__item:hover { background: var(--c-surface-2); }
}
.mx-switch__item:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }

/* The foot: the product's mark and name, its plan under it, the toggle at the end. */
.mx-side__foot { display: none; }
.mx-side__brand {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.3125rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--c-ink);
  text-decoration: none;
}
.mx-side__brandmark { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; color: var(--c-accent); }
.mx-side__brandmark > svg { width: 1.5rem; height: 1.5rem; }
@media (hover: hover) {
  a.mx-side__brand:hover { background: var(--c-surface-2); }
}
a.mx-side__brand:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
/* In the phone's menu (More), the foot closes the list under a hairline. */
.mx-side-menu .mx-side__foot { display: flex; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--c-line); }

/* The phone's bar holds the head instead of a brand. The name alone, one line; the mark 5px in, like the brand. */
.mx-bar .mx-switch { flex: 0 1 auto; }
.mx-bar .mx-switch__btn { padding-inline: 0.3125rem 0.375rem; }
.mx-bar .mx-switch__detail { display: none; }
.mx-bar .mx-switch__menu {
  position: fixed;
  top: calc(3.5rem + env(safe-area-inset-top, 0px));
  inset-inline-start: max(var(--lp-gutter, 0.75rem), env(safe-area-inset-left));
  /* The bar (backdrop-filter) is a fixed child's containing block: 100% would be the whole bar. */
  min-width: min(16rem, calc(100vw - 2 * var(--lp-gutter, 0.75rem)));
  max-width: calc(100vw - 2 * var(--lp-gutter, 0.75rem));
}

@media (min-width: 768px) {
  .mx-side__head {
    flex: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: calc(3.5rem + 1px);
    padding: 0 0.625rem;
    border-bottom: 1px solid var(--c-line);
  }
  .mx-side__head > .mx-switch { flex: 1 1 auto; }
  .mx-side__foot {
    flex: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.625rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }
  .mx-side__brand ~ .mx-side__toggle,
  :root[data-mx-side] .mx-side__brand ~ .mx-side__toggle { width: 2.5rem; padding-inline-start: 0; justify-content: center; }
  .mx-side__foot:has(.mx-side__brand) { border-top: 1px solid var(--c-line); }
  /* With a head: the window's full height, and the bar beside it rather than over it. */
  .mx-app:has(> .mx-side > .mx-side__head) > .mx-side { top: 0; padding-top: env(safe-area-inset-top, 0px); }
  .mx-app:has(> .mx-side > .mx-side__head) > .mx-bar {
    margin-inline-start: calc(var(--mx-side-now) + var(--mx-side-edge));
    transition: margin 0.2s var(--ease-out-soft, ease);
  }
  /* The sidebar says whose admin this is (head) and whose product (foot): the bar repeats neither. */
  .mx-app:has(> .mx-side > .mx-side__head) > .mx-bar .mx-brand,
  .mx-app:has(> .mx-side) > .mx-bar .mx-switch { display: none; }
  /* An open menu rides above the bar, which it can reach from the rail. */
  .mx-side:has(.mx-switch[open]) { z-index: 45; }
  /* The rail: the marks alone, centred in it; the head's menu opens beside the rail, the foot stacks. */
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) .mx-side__head { position: relative; }
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) .mx-side__head > .mx-switch { position: static; flex: none; }
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) :is(.mx-switch__btn, .mx-side__brand) { width: 3rem; justify-content: center; padding-inline: 0; }
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) :is(.mx-switch__btn, .mx-side__brand) > .mx-switch__text,
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) summary.mx-switch__btn::after { display: none; }
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) .mx-side__head .mx-switch__menu { top: 0.375rem; inset-inline-start: calc(100% + 0.375rem); min-width: 15rem; }
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) .mx-side__foot { flex-direction: column; align-items: flex-start; gap: 2px; }
  :root[data-mx-side='rail'] .mx-side:not([data-peek]) .mx-side__brand ~ .mx-side__toggle { width: 3rem; padding-inline-start: 0.9375rem; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-app:has(> .mx-side > .mx-side__head) > .mx-bar { transition: none; }
}

/* A phone with no script: More is a link to the list, which then fills the screen. */
@media (max-width: 767.98px) {
  .mx-side:not([data-mx-ready]):target {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    margin: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
    overflow-y: auto;
    background: var(--c-canvas);
  }
}
/* The whole list in the overlay, opened from More (kit/side.ts). */
.mx-side-menu .mx-side__item { min-height: 2.75rem; font-size: 0.9375rem; }
.mx-side-menu .mx-side__sub .mx-side__item { min-height: 2.75rem; font-size: 0.875rem; }
@media (prefers-reduced-motion: reduce) {
  .mx-side,
  .mx-app:has(> .mx-side) > :is(.mx-main, .mx-footer),
  summary.mx-side__item::after,
  .mx-side__label { transition: none; }
}
@media print {
  .mx-side { display: none; }
  .mx-app:has(> .mx-side) > :is(.mx-main, .mx-footer) { margin-inline-start: 0; }
}

/* The signed-in frame's footer (2026-10-07): the studio line, Privacy, support. Its own class, so
   no product borrows the landing one (Hotel's .lp-footer on /hotel, eight runs asking for this).
   After .mx-main, it clears the phone's tab bar itself and .mx-main stops padding for it. */
.mx-footer {
  border-top: 1px solid var(--c-line);
  padding: 1.25rem max(var(--lp-gutter, 1.5rem), env(safe-area-inset-left))
    calc(var(--mx-tabs-h, calc(3.75rem + env(safe-area-inset-bottom))) + 0.75rem + var(--mx-fab-room, 0px)) max(var(--lp-gutter, 1.5rem), env(safe-area-inset-right));
  font-size: 0.8125rem;
  color: var(--c-ink-subtle);
}
.mx-main:has(+ .mx-footer) { padding-bottom: 1.5rem; }
/* The quiet footer (server/mixtape-footer.mjs; Chris, 2026-10-14: "much more minimal"): three small links on
   one centred line - privacy, help, mixtape.works - no rule above it, no underlines, nothing that reads as a
   paragraph. The product's name is in the bar already. */
.mx-footer--quiet { border-top: 0; padding-top: 0.5rem; font-size: 0.75rem; }
.mx-footer--quiet p { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; margin: 0; }
.mx-footer--quiet a { text-decoration: none; }
.mx-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  max-width: var(--lp-max, var(--page-max, 90rem));
  margin: 0 auto;
}
.mx-footer__row p { margin: 0; }
.mx-footer__links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.mx-footer a { color: inherit; text-underline-offset: 3px; }
.mx-footer a:hover { color: var(--c-ink); }
@media (pointer: coarse) {
  .mx-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (min-width: 768px) {
  .mx-footer { padding-bottom: calc(1.5rem + var(--mx-fab-room, 0px)); }
}
@media print {
  .mx-footer { display: none; }
}

/* ── The content column ──────────────────────────────────────────────────
   The same width as a landing page's, and the same gutter. Every page we ship - the one a
   stranger lands on and the one they work in after signing in - holds its content in a column
   of exactly one width, or the product reads as two products. */

.mx-page {
  width: 100%;
  max-width: var(--lp-max, var(--page-max, 90rem));
  margin-inline: auto;
  padding: 1.5rem max(var(--lp-gutter, 1.5rem), env(safe-area-inset-left)) 0
    max(var(--lp-gutter, 1.5rem), env(safe-area-inset-right));
}
@media (min-width: 768px) { .mx-page { padding-top: 2rem; } }
/* On a phone the page's edge sits a little closer than one panel is to the next (Chris,
   2026-09-22: first "the same as the padding between the boxes", then "like 2px even
   smaller") - the screen's narrowest dimension was being spent on margin. The bar follows, so
   the logo stays over the panels' edge. The landing layer keeps its own, roomier gutter: that
   is text. */
@media (max-width: 767.98px) {
  .mx-bar, .mx-page, .mx-footer { --lp-gutter: 0.75rem; }
}
/* On a phone the brand and the profile button read as pushed out against the edges, so each comes
   5px in (Chris, 2026-10-14). Only those two: a relative offset moves the drawing, not the layout,
   so the cog and everything else on the bar stay exactly where they were. Studio's React header
   (AppShell.tsx) does the same. */
@media (max-width: 767.98px) {
  .mx-bar .mx-brand { position: relative; inset-inline-start: 5px; }
  .mx-bar mixtape-profile { inset-inline-end: 5px; }
}

.mx-page__inner { min-width: 0; }
/* THE PAGE IS A STACK, and it keeps the same rhythm as the stacks inside it.
   Everything a page holds - a panel, a row of columns, a notice - sits .875rem from the
   block above it, the same gap .mx-cols and .mx-stack leave between their own children.
   Without this a full-width panel followed by a row of columns touched it (Dayrule's
   overview, found by Chris 2026-09-21), while the gaps inside the row were .875rem: the one
   place on the page with no air was the join between two kit classes. Voks had solved it
   for itself with this exact rule - which is how you know it belonged here.
   Margins, not gap: the page column is a block, so the head's own 1.25rem below it
   collapses with this rather than adding to it. */
.mx-page > * + *,
.mx-page__inner > * + * { margin-top: 0.875rem; }
/* A landing band dropped into an app page (Storefront's plan page shows the kit's pricing band): it stays in
   the column. Its 100vw break-out assumed a page with nothing beside it, and beside a sidebar it made the
   whole admin scroll sideways by half the sidebar (2026-11-02). */
.mx-page .lp-band { width: auto; margin-inline: 0; padding-block: 0.5rem 0; }
.mx-page .lp-band > .lp-container { max-width: none; padding-inline: 0; }
/* Two narrower columns than the page's own. A form is easier to read short, but 30rem of
   fields floating in 1200px of page reads as unfinished: a sign-in box is narrow, a page of
   settings is medium, and only a table or a calendar takes the whole width. */
.mx-narrow { max-width: 34rem; margin-inline: auto; }
.mx-medium { max-width: 48rem; margin-inline: auto; }
/* Beside a sidebar the page starts at the sidebar's edge: a centred narrower column moved the left edge between
   a list and its own edit page (x=264 vs 376 in Storefront, 2026-11-02). The column stays short, flush start. */
.mx-app:has(> .mx-side) :is(.mx-narrow, .mx-medium) { margin-inline: 0; }

.mx-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.mx-eyebrow {
  margin: 0 0 0.375rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--mx-label-size);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mx-label);
}
.mx-h1 {
  margin: 0;
  font-size: clamp(1.375rem, 1.4rem + 1vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
/* A section of a page, under its h1 ("People", "Waiting to join"): one step up from body text - the browser's
   own h2 (24px, nearly the h1) stood in for it until 2026-11-02. More air above than below. */
:where(.mx-h2) { margin: 0; }
.mx-h2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; color: var(--c-ink); }
.mx-page__inner > .mx-h2:not(:first-child),
.mx-page > .mx-h2:not(:first-child) { margin-top: 1.75rem; }
.mx-page__inner > .mx-h2 + *,
.mx-page > .mx-h2 + * { margin-top: 0.625rem; }
.mx-lead {
  margin: 0.5rem 0 0;
  max-width: 62ch;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-ink-muted);
}
.mx-crumb { margin: 0 0 0.75rem; font-size: 0.8125rem; }
.mx-crumb a { color: var(--c-ink-muted); text-decoration: none; }
/* A crumb that is one link back ("Back to the coupons") wears an arrow, so it reads as the way back. */
.mx-crumb > a:only-child::before { content: '\2190'; display: inline-block; margin-inline-end: 0.375rem; }
:root[dir='rtl'] .mx-crumb > a:only-child::before { content: '\2192'; }
.mx-crumb a:hover { color: var(--c-ink); }
/* An icon in a button or a crumb is text-sized. :where() keeps it at element weight, so a product's own size
   class on the svg still wins; without any size an inline <svg> drew as wide as its button (FleetFault, 2026-10-03). */
:where(.mx-btn, .mx-crumb) svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ── Surfaces ────────────────────────────────────────────────────────────*/

.mx-card {
  border: var(--mx-stroke, 1px) solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-surface);
  padding: 1.25rem;
}
.mx-card__title { margin: 0 0 0.375rem; font-size: 0.9375rem; font-weight: 600; color: var(--c-ink); }
.mx-card__text { margin: 0; font-size: 0.8438rem; line-height: 1.6; color: var(--c-ink-muted); }
.mx-card__text + .mx-card__text { margin-top: 0.625rem; }
/* A card's head: its title, and one small action at the end of the same line (Hide this card) - never a
   button stranded under the card's last word. The action may be a form holding the button. */
.mx-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.375rem; }
.mx-card__head > .mx-card__title { margin: 0; min-width: 0; padding-top: 0.125rem; }
.mx-card__head > :not(.mx-card__title) { flex: none; margin-block: -0.375rem -0.25rem; margin-inline-end: -0.5rem; }
.mx-card__head form { margin: 0; }
.mx-card__head .mx-btn { padding-block: 0.375rem; font-size: 0.8125rem; }
.mx-panel {
  /* clip, not hidden: hidden makes the panel a scroll container, and a sticky child (a form's "Saved")
     would stick to the panel instead of the window. Browsers without clip keep hidden. */
  overflow: hidden;
  overflow: clip;
  border: var(--mx-stroke, 1px) solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-surface);
}
.mx-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--c-line);
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
}
.mx-panel__head > :first-child { min-width: 0; }
.mx-panel__head .mx-btn,
.mx-panel__head .mx-badge,
.mx-panel__head .mx-sub { flex: 0 0 auto; white-space: nowrap; }
.mx-panel__head .mx-btn { margin: -0.25rem -0.5rem -0.25rem 0; }
/* A head holding a set of choices (a segmented control, [role=group]: Today / 7 days / 30 days) is a label and its
   control, not a title and one action: the set drops under the label when the row is too short for both, and on a
   phone it always does - "PERIOD" floated half-way down beside two rows of chips (Storefront's Analytics, 2026-11-03). */
.mx-panel__head:has(> :is(.mx-seg, [role='group'])) { flex-wrap: wrap; row-gap: 0.5rem; padding-block: 0.625rem; }
.mx-panel__head > :is(.mx-seg, [role='group']) { min-width: 0; max-width: 100%; }
.mx-panel__head > [role='group'] .mx-btn { margin: 0; }
@media (max-width: 639.98px) {
  .mx-panel__head > :is(.mx-seg, [role='group']) { flex: 1 1 100%; }
}
/* The segmented control: one of a few choices, the open one lit. Links (aria-current="page") or buttons
   (aria-pressed="true"). When the choices outgrow the row they wrap into full rows - every option stretches, so
   a second row is as wide as the first, never a ragged tail - and every choice stays in sight (a sideways scroll
   hid "All time" past the edge with nothing saying it was there). The page never scrolls sideways for it.
     <div class="mx-seg" role="group" aria-label="Period"><a href="?p=7" aria-current="page">7 days</a>…</div> */
.mx-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.1875rem;
  border-radius: calc(var(--mx-control-radius, var(--radius-sm)) + 0.1875rem);
  background: var(--c-surface-2);
}
.mx-seg::-webkit-scrollbar { display: none; }
.mx-seg > :is(a, button) {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3125rem 0.75rem;
  border: 0;
  border-radius: var(--mx-control-radius, var(--radius-sm));
  background: transparent;
  color: var(--c-ink-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) { .mx-seg > :is(a, button):hover { color: var(--c-ink); } }
.mx-seg > :is([aria-current]:not([aria-current='false']), [aria-pressed='true']) {
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: 0 0 0 1px var(--c-line-strong), 0 1px 2px rgb(0 0 0 / 0.12);
}
.mx-seg > :is(a, button):focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
@media (hover: none) and (pointer: coarse) { .mx-seg > :is(a, button) { min-height: 44px; font-size: 0.875rem; } }
/* The label belongs inside the box it describes - a heading floating above a border reads
   as a different kind of thing when it is not one. */
.mx-panel__title {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--mx-label-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mx-label);
}
.mx-panel__body { padding: 1rem; }
.mx-panel__body--flush { padding: 0; }
/* A panel that has been given a height (Panel's `scroll`): the heading stays, the body
   scrolls inside it. With no height set it is an ordinary panel. */
.mx-panel--scroll { display: flex; flex-direction: column; }
.mx-panel--scroll > .mx-panel__head { flex-shrink: 0; }
.mx-panel--scroll > .mx-panel__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.mx-grid {
  display: grid;
  gap: 0.875rem;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
/* Panels side by side, and the one that holds a form or a table taking the whole row. */
/* Two panels to a row, not three: a panel holds a form, and 340px of form is the narrow strip
   this grid exists to get away from. One column below ~880px. */
.mx-cols { display: grid; gap: 0.875rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(27rem, 100%), 1fr)); }
/* min(): on a phone the column is narrower than 27rem, and a bare minmax(27rem) made the page scroll sideways (FleetFault, 2026-10-03). */
.mx-cols--wide { grid-column: 1 / -1; }
.mx-stack { display: grid; gap: 0.875rem; }

/* A number with its label under it: the four that must agree, side by side. */
.mx-stat { display: grid; gap: 2px; margin: 0; } /* often a <p>: without this it keeps the browser's paragraph margins */
.mx-stat__label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--mx-label-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mx-label);
}
.mx-stat__value { font-size: 1.375rem; font-weight: 600; color: var(--c-ink); }
.mx-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* ── Controls ────────────────────────────────────────────────────────────*/

.mx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* A bare .mx-btn (no --primary/--ghost/--quiet) is the ghost button, not the browser's: it had no colour of its
     own, so a plain <button class="mx-btn"> was the platform's button - grey in Chrome, and iOS Safari's system
     blue text (#0a84ff dark, #007aff light) on Storefront's "Show these days" (Chris's iPhone, 2026-11-03). */
  -webkit-appearance: none;
  appearance: none;
  /* The look's corners and line weight (tokens.css, kit/look.ts): unset, the kit's own. */
  border: var(--mx-stroke, 1px) solid var(--c-line-strong);
  border-radius: var(--mx-control-radius, var(--radius-sm));
  background: transparent;
  color: var(--c-ink);
  padding: 0.625rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) { .mx-btn:not([class*='mx-btn--']):hover { background: var(--c-surface-2); } }
.mx-btn--primary, .mx-btn--danger, .mx-btn--quiet, .mx-btn--icon { border-color: transparent; }
.mx-btn--primary { background: var(--c-accent); color: var(--c-accent-ink); }
.mx-btn--primary:hover { background: var(--c-accent-strong); }
.mx-btn--ghost { border-color: var(--c-line-strong); background: transparent; color: var(--c-ink); }
.mx-btn--ghost:hover { background: var(--c-surface-2); }
.mx-btn--quiet { background: transparent; color: var(--c-ink-muted); padding-inline: 0.625rem; }
.mx-btn--quiet:hover { color: var(--c-ink); background: var(--c-surface-2); }
/* An icon on its own ("View shop" in a bar, a row's "more"): the cog's size and weight - a 2.25rem round target,
   no border, muted until hovered - with its words in aria-label and title. A button that keeps its words on a
   laptop and drops them on a phone puts them in .mx-btn__text: in the phone bar the kit hides that and draws the
   button as this one (below, "The phone bar"). */
.mx-btn--icon { width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 9999px; background: transparent; color: var(--c-ink-muted); }
.mx-btn--icon svg { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) { .mx-btn--icon:hover { color: var(--c-ink); background: var(--c-surface-2); } }
/* A destructive action - delete, ban, remove for good. White on the kit's danger fill, which is the
   light theme's red in both themes (tokens.css --c-danger: 5.1:1; the dark theme's own red carries
   white at 3.2:1). One per screen, and never the only way out of a confirm. */
.mx-btn--danger { background: var(--c-danger); color: var(--c-danger-ink); }
.mx-btn--danger:hover { background: var(--c-danger-strong); }
.mx-btn--danger:focus-visible { outline-color: var(--c-danger); }
.mx-btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mx-btn[disabled], .mx-btn[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }
.mx-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Controls are 2.5rem tall so a row of them lines up without hand-tuning, and labels are
   mono caps - the studio's voice for metadata. */
/* A form is a stack of fields; a field is label, control, then whatever it has to say. */
.mx-form { display: grid; gap: 1rem; margin-top: 1.125rem; min-width: 0; }
.mx-panel__body > .mx-form:first-child { margin-top: 0; } /* nothing above it to keep apart from */
/* Fields side by side once there is room for them.
 *
 * A form reads badly in long lines, but the cure is not a narrow page - a column of controls
 * stranded in the middle of a desktop reads as a bug, and it is the first thing anyone says
 * about it. Keep the page the width of every other page and keep the LINE short: two or three
 * fields to a row here, one to a row on a phone. A field that needs the room (a list of
 * checkboxes, a paste box) takes it with .mx-field--wide. */
.mx-fields {
  display: grid;
  gap: 1rem;
  /* min(): a column narrower than 14rem (a field row in a phone's card) stacks instead of pushing past the edge. */
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  align-items: start;
  min-width: 0;
}
/* Two short fields that belong side by side even on a phone - From and To, a date and its time, a min and a max -
   sharing the row in halves (minmax(0, 1fr): a date input's own width can never push the pair past the card's
   edge), one under the other below 360px. */
.mx-fields--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 359.98px) { .mx-fields--two { grid-template-columns: minmax(0, 1fr); } }
.mx-fields.mx-fields--two .mx-field :is(input, select) { max-width: none; }
.mx-field--wide { grid-column: 1 / -1; }
/* A number, a date or a time is a few characters: an input as wide as the row says otherwise. */
.mx-field input[type='number'],
.mx-field input[type='date'],
.mx-field input[type='time'] { max-width: 15rem; }
/* A date or time input has a width of its own (iOS Safari: the native picker's, ~200px, centred text) that ignored
   width: 100% and pushed two of them side by side past a 390px card (Storefront's From / To, 2026-11-03).
   min-width 0 lets it take its column; the value starts at the start like every other field's. */
.mx-field input:is([type='date'], [type='time'], [type='datetime-local'], [type='month'], [type='week']),
.mx-input:is([type='date'], [type='time'], [type='datetime-local']) { display: block; min-width: 0; }
.mx-field input::-webkit-date-and-time-value, .mx-input::-webkit-date-and-time-value { text-align: start; }
/* iOS only (-webkit-touch-callout exists nowhere else): its native control keeps that width and draws the value in
   the system blue whatever colour the field says; without its appearance it is the kit's field and still opens the
   picker on a tap. */
@supports (-webkit-touch-callout: none) {
  .mx-field input:is([type='date'], [type='time'], [type='datetime-local'], [type='month'], [type='week']),
  .mx-input:is([type='date'], [type='time'], [type='datetime-local']) {
    -webkit-appearance: none; appearance: none; line-height: calc(2.5rem - 2 * var(--mx-stroke, 1px));
  }
  /* Its value is a line box of its own: as tall as the field's inside, or it sits high in the 44px touch field. */
  @media (hover: none) and (pointer: coarse) {
    .mx-field input:is([type='date'], [type='time'], [type='datetime-local'], [type='month'], [type='week']),
    .mx-input:is([type='date'], [type='time'], [type='datetime-local']) { line-height: calc(max(2.5rem, 44px) - 2 * var(--mx-stroke, 1px)); }
  }
}
.mx-form .mx-actions { margin-top: 2px; }
.mx-field { display: grid; gap: 0.375rem; min-width: 0; }
.mx-field > label, .mx-label {
  display: block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--mx-label-size);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mx-label);
}
/* Not checkboxes or radios: a field's box rules made a checkbox 100% wide and 2.5rem tall
   (RentKeeper's "rent out anyway", 2026-10-05). Those are .mx-check below. */
.mx-field input:not([type='checkbox'], [type='radio'], [type='file'], [type='hidden']),
.mx-field select,
.mx-field textarea,
.mx-input {
  width: 100%;
  height: 2.5rem;
  /* --c-line-field: 3:1 against the box and the card round it (WCAG 1.4.11) - an empty field has to be seen. */
  border: max(var(--mx-stroke, 1px), 1px) solid var(--c-line-field); /* a field keeps its edge even with the "no outlines" look (Chris, 2026-11-14: invisible fields in dark mode) */
  border-radius: var(--mx-control-radius, var(--radius-sm));
  background: var(--c-canvas);
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--c-ink);
  transition: border-color 0.15s ease;
}
.mx-field textarea { height: auto; min-height: 6rem; padding: 0.625rem 0.75rem; line-height: 1.5; }
/* A box of several lines takes the look's corners only up to a card's: a pill-shaped paragraph cuts its own words. */
.mx-field textarea { border-radius: min(var(--mx-control-radius, var(--radius-sm)), var(--radius-lg)); }
.mx-field input:not([type='checkbox'], [type='radio']):focus, .mx-field select:focus, .mx-field textarea:focus, .mx-input:focus {
  border-color: var(--c-accent);
  outline: none;
  /* A ring as well as the border: a 1px colour change was the only sign of focus, and with a red accent it
     read as the invalid state (2026-11-02). */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 22%, transparent);
}
.mx-check input:focus-visible,
.mx-field > label > input:is([type='checkbox'], [type='radio']):focus-visible,
.mx-table td input[type='checkbox']:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
/* A link on its own gets the same ring as a button when it is reached by the keyboard. */
:where(.mx-app, .lp) a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }
/* A checkbox's own hint sits under its words, not under the field's edge a row away. */
.mx-field:has(> .mx-check) > .mx-check + .mx-hint,
.mx-field > label:has(> input[type='checkbox']) + .mx-hint { margin-top: -0.5rem; padding-inline-start: 1.75rem; }
.mx-field input[aria-invalid='true'], .mx-field select[aria-invalid='true'] { border-color: var(--c-rec); }
.mx-hint { margin: 0; font-size: 0.75rem; color: var(--c-ink-subtle); }
/* The browser's own placeholder grey is 4.3:1 at best (Chromium) and Firefox fades it to 54%: the kit's small-text
   colour instead, at full strength, so the example in an empty box reads at 4.5:1 like every hint. */
.mx-field :is(input, textarea)::placeholder, .mx-input::placeholder { color: var(--c-ink-subtle); opacity: 1; }
.mx-err { margin: 0; font-size: 0.7812rem; color: var(--c-rec); }
/* Notices, by what they mean - never by how loud a product wants them (2026-11-02, Storefront's dashboard had
   three warnings dressed as errors):
     .mx-alert          something went wrong or was refused (red). The kit's autosave reads a form's .mx-alert as
                        the reason a save failed, so it is never a reminder or a tip.
     .mx-note           it worked / it is fine (green).
     .mx-note--warn     needs the person's attention, nothing is broken (amber): "set up shipping".
     .mx-note--info     worth knowing, nothing to fix (blue): "you are looking at a demo".
   A notice with something to do holds its words in an element and its buttons in .mx-actions: the buttons sit at
   the end of the line when there is room and drop under the words when there is not. Its action is a --ghost
   .mx-btn (a page has one primary, and a notice is rarely it) and "Got it" a --quiet one.
   The margin reset is :where()'d: the page column's rhythm (.mx-page > * + *) must win over it, or two notices in
   a row touch (they did). */
:where(.mx-alert, .mx-note) { margin: 0; }
.mx-alert,
.mx-note {
  --mx-tone: var(--c-ok);
  border: 1px solid color-mix(in srgb, var(--mx-tone) 40%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--mx-tone) 10%, transparent);
  padding: 0.625rem 0.75rem;
  font-size: 0.8438rem;
  line-height: 1.55;
  color: var(--c-ink);
}
.mx-alert { --mx-tone: var(--c-rec); }
.mx-note--warn { --mx-tone: var(--c-warn); }
.mx-note--info { --mx-tone: var(--c-info, var(--c-build)); }
:is(.mx-alert, .mx-note):has(> .mx-actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.5rem;
}
:is(.mx-alert, .mx-note):has(> .mx-actions) > :not(.mx-actions) { flex: 1 1 18rem; min-width: 0; margin: 0; }
/* The buttons may shrink to the note's width and wrap under each other: two long Hungarian labels side by side were
   wider than a 360px note and were cut off (Storefront's demo banner, 2026-11-03). */
:is(.mx-alert, .mx-note) > .mx-actions { flex: 0 1 auto; min-width: 0; max-width: 100%; margin: 0; }
:is(.mx-alert, .mx-note) > .mx-actions > .mx-btn { max-width: 100%; }
:is(.mx-alert, .mx-note) > .mx-actions form { margin: 0; }
/* On the tint a secondary button stands on the page's own surface. */
:is(.mx-alert, .mx-note) .mx-btn--ghost { border-color: color-mix(in srgb, var(--mx-tone) 40%, var(--c-line-strong)); background: var(--c-surface); }
:is(.mx-alert, .mx-note) .mx-btn--ghost:hover { background: var(--c-surface-2); }
/* A form that saves itself (kit/forms.ts AUTOSAVE): its Save button gives way to a quiet status, and
   comes back beside "Not saved" when a save fails. A live search's button gives way for good. */
form[data-mx-on]:not(.mx-autosave--failed) [data-mx-saver] { display: none; }
.mx-autosave {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.7812rem;
  line-height: 1.6;
  color: var(--c-ink-subtle);
}
.mx-autosave[data-state='saved'] { color: color-mix(in srgb, var(--c-ok) 70%, var(--c-ink-subtle)); }
.mx-autosave[data-state='notSaved'] { color: var(--c-rec); }
/* SAID WHERE IT IS SEEN (2026-11-02). The status sits at the end of its form, and a long settings form ends
   a screen or two below the field being typed in - Storefront's "Saved" landed 2,000px under it. So once a
   save starts it is a small pill that sticks to the bottom of the window while its form is on screen, and
   "Saved" fades after a moment; "Not saved" stays. Sticky within its own form, so it never covers another. */
.mx-autosave[data-state] {
  position: sticky;
  z-index: 5;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  justify-self: start;
  align-self: start;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 0;
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  box-shadow: var(--shadow-lift);
  font-weight: 500;
}
.mx-autosave[data-state='saved'] { color: var(--c-ok); animation: mx-saved 2.4s ease forwards; }
.mx-autosave[data-state='notSaved'] { border-color: color-mix(in srgb, var(--c-rec) 45%, var(--c-line)); }
@keyframes mx-saved { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
/* Above the phone's tab bar. */
@media (max-width: 767.98px) {
  .mx-app:has(> .mx-tabs) .mx-autosave[data-state] { bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .mx-autosave[data-state='saved'] { animation-duration: 4s; }
}
/* A list being fetched again as its search is typed: dimmed only when the answer is slow. */
[data-mx-loading] { opacity: 0.55; transition: opacity 0.15s ease 0.15s; }
.mx-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.mx-row > * { flex: 1 1 200px; }

/* ── Tables ──────────────────────────────────────────────────────────────
   A table is the one thing allowed to be wider than the page, inside its own scroller. */
.mx-scroll { overflow-x: auto; }
.mx-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.mx-table th {
  text-align: start;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--mx-label-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mx-label);
  white-space: nowrap;
}
.mx-table td { padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--c-line); color: var(--c-ink); vertical-align: top; }
.mx-table tr:last-child td { border-bottom: 0; }
/* A row answers the pointer (Chris, 2026-09-21: "if a table anywhere has rows, i want the
   row's bg to slightly change on hover"): a faint wash of ink, so it reads on either theme and
   on any surface the table sits on. Only where there is a real pointer. */
.mx-table td { transition: background-color 0.12s ease; }

/* A chart's zoom, in its card's corner (<ChartZoom> in @mixtape/ui/chart): ‹ 3M ›. Quiet until
   pointed at, like the rest of a card's header. */
.mx-chart-zoom button,
.mx-chart-zoom select {
  font: inherit;
  font-size: 0.75rem;
  color: var(--c-ink-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.12s ease, background-color 0.12s ease;
}
.mx-chart-zoom select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.375rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.06em;
  text-align: center;
}
.mx-chart-zoom button:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) {
  .mx-chart-zoom button:hover:not(:disabled),
  .mx-chart-zoom select:hover { color: var(--c-ink); background: var(--c-surface-2); }
}
@media (hover: hover) {
  .mx-table tbody tr:hover td { background: color-mix(in srgb, var(--c-ink) 4%, transparent); }
}
.mx-table td .sub { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--c-ink-subtle); }
.mx-table .num { text-align: end; font-variant-numeric: tabular-nums; }
.mx-table a { color: var(--c-ink); text-decoration-color: var(--c-line-strong); text-underline-offset: 3px; }
.mx-table a:hover { color: var(--c-accent); }

.mx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 3px 0.625rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: var(--mx-label-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-ink-muted);
  /* One line while it fits; in a narrow column it wraps rather than running into its neighbour
     (RentKeeper's "SÉRÜLTEN VISSZAHOZVA" in a half-width fact on a phone, 2026-10-05). */
  max-width: 100%;
  overflow-wrap: anywhere;
}
/* A table sizes its columns to their content: there a badge keeps to one line. */
.mx-table .mx-badge { white-space: nowrap; }
.mx-badge--accent { border-color: color-mix(in srgb, var(--c-accent) 30%, transparent); color: var(--c-accent); }
.mx-badge--ok { border-color: color-mix(in srgb, var(--c-ok) 30%, transparent); color: var(--c-ok); }
.mx-badge--warn { border-color: color-mix(in srgb, var(--c-warn) 35%, transparent); color: var(--c-warn); }
.mx-badge--rec { border-color: color-mix(in srgb, var(--c-rec) 35%, transparent); color: var(--c-rec); }
.mx-badge--info { border-color: color-mix(in srgb, var(--c-info, var(--c-build)) 35%, transparent); color: var(--c-info, var(--c-build)); }

/* A checkbox or a radio with its words, on one row, 44px tall: "needs repair", "ban this renter".
   In a .mx-field it is still a row, never the field's uppercase label. */
.mx-check, .mx-field > label.mx-check {
  display: flex; align-items: center; gap: 0.625rem; min-height: 44px;
  font-family: inherit; font-size: 0.9375rem; text-transform: none; letter-spacing: normal;
  color: var(--c-ink); cursor: pointer;
}
.mx-check input { width: 1.125rem; height: 1.125rem; margin: 0; flex: 0 0 auto; accent-color: var(--c-accent); }
.mx-check--danger input { accent-color: var(--c-rec); }
/* The same row when a product forgot the class: a bare <label> around a checkbox or radio in a
   .mx-field read as the field's uppercase label ("WITH VAT INCLUDED", Storefront's VAT page,
   2026-10-06). The class is still right; this keeps a forgotten one from shipping. */
.mx-field > label:has(> input[type='checkbox'], > input[type='radio']) {
  display: flex; align-items: center; gap: 0.625rem; min-height: 44px;
  font-family: inherit; font-size: 0.9375rem; text-transform: none; letter-spacing: normal;
  color: var(--c-ink); cursor: pointer;
}
.mx-field > label > input:is([type='checkbox'], [type='radio']) {
  width: 1.125rem; height: 1.125rem; margin: 0; flex: 0 0 auto; accent-color: var(--c-accent);
}
/* A fieldset used as a field has no browser frame: its legend is the field's label. */
fieldset.mx-field { margin: 0; padding: 0; border: 0; }
fieldset.mx-field > legend {
  padding: 0; margin-bottom: 0.375rem;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--mx-label-size);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--mx-label);
}
/* One of a few, as cards: a fieldset of .mx-check labels, the chosen one outlined. */
.mx-choice { display: grid; gap: 0.5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.mx-choice > legend {
  padding: 0; margin-bottom: 0.375rem;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--mx-label-size);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--mx-label);
}
.mx-choice .mx-check {
  padding: 0.5rem 0.875rem; border: 1px solid var(--c-line); border-radius: var(--radius-md);
  background: var(--c-surface-2);
}
.mx-choice .mx-check:has(input:checked) { border-color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent); }
.mx-choice .mx-check:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* What an empty list says for itself, rather than a blank box. Its margin reset is :where()'d for the same reason
   as the notices': after a block in the page column it keeps the column's rhythm. */
:where(.mx-empty) { margin: 0; }
.mx-empty {
  padding: 2px 0 0.25rem;
  font-size: 0.8438rem;
  line-height: 1.55;
  color: var(--c-ink-subtle);
}
/* A whole page with nothing on it is the one place a centred, roomier empty state belongs. */
.mx-panel__body--flush .mx-empty,
.mx-page > .mx-empty { padding: 1.75rem 1rem; text-align: center; }
.mx-sub { margin: 0; font-size: 0.7812rem; line-height: 1.55; color: var(--c-ink-subtle); }
.mx-stats + .mx-sub { margin-top: 0.875rem; }
.mx-sub + .mx-sub { margin-top: 0.375rem; }
/* A panel body is a stack: whatever is in it, it breathes the same. */
.mx-panel__body > * + * { margin-top: 0.75rem; }

/* ── Photos, a photo's big view, overlays, sortable tables, filters ─────────
   The app layer's working parts (Chris, 2026-10-05, on RentKeeper). Each is plain HTML that
   mixtape-ui.js enhances - DESIGN.md "Photos, overlays, sorting and filters" has the markup.
   Products use these, never their own. */

/* <mixtape-photos>: a drop area whose plus is the biggest thing in it until photos are chosen,
   then a grid of thumbnails with the plus as the last tile. The real input stays in the form,
   out of sight but focusable, so a `required` one can still say so. */
.mx-photos { display: block; position: relative; }
.mx-photos__native {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0;
}
.mx-photos__area {
  border: 2px dashed var(--c-line-strong);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: color-mix(in srgb, var(--c-surface-2) 55%, transparent);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.mx-photos__area.is-over { border-color: var(--c-accent); background: var(--c-accent-soft); }
.mx-photos__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr)); gap: 0.5rem;
}
.mx-photos__tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-surface-2); }
.mx-photos__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mx-photos__remove {
  position: absolute; top: 0.3rem; inset-inline-end: 0.3rem;
  display: grid; place-items: center; width: 1.875rem; height: 1.875rem;
  border: 0; border-radius: 9999px; background: color-mix(in srgb, var(--c-scrim) 62%, transparent); color: var(--c-scrim-ink); cursor: pointer;
}
.mx-photos__remove svg { width: 0.875rem; height: 0.875rem; }
.mx-photos__remove:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.mx-photos__tile--add { background: transparent; overflow: visible; }
.mx-photos__add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem;
  width: 100%; height: 100%; padding: 0.5rem;
  border: 1px solid var(--c-line-strong); border-radius: var(--radius-sm);
  background: var(--c-surface); color: var(--c-ink); font: inherit; text-align: center; cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.mx-photos__actions { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 0.5rem; list-style: none; grid-column: span 2; }
.mx-btn--danger-text { color: var(--c-rec); }
.mx-photos__add:hover { border-color: var(--c-accent); }
.mx-photos__add:active { transform: scale(0.98); }
.mx-photos__add:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mx-photos__add svg {
  width: 2.25rem; height: 2.25rem; padding: 0.45rem; border-radius: 9999px;
  background: var(--c-accent); color: var(--c-accent-ink);
}
.mx-photos__add-label { font-size: 0.8125rem; font-weight: 600; line-height: 1.25; }
.mx-photos__hint { font-size: 0.6875rem; line-height: 1.3; color: var(--c-ink-subtle); }
.mx-photos:not(.has-files) .mx-photos__grid { grid-template-columns: 1fr; }
.mx-photos:not(.has-files) .mx-photos__tile--add { aspect-ratio: auto; min-height: 9.5rem; }
.mx-photos:not(.has-files) .mx-photos__add { border-style: none; background: transparent; gap: 0.5rem; }
.mx-photos:not(.has-files) .mx-photos__add svg { width: 3.5rem; height: 3.5rem; padding: 0.75rem; }
.mx-photos:not(.has-files) .mx-photos__add-label { font-size: 0.9375rem; }

/* input[type=file][data-mx-drop] (kit/filedrop.ts, 2026-11-15): any file, one drop area in the page's own words
   instead of the browser's grey "Choose File - No file chosen". The real input sits inside, out of sight. */
.mx-drop { position: relative; display: grid; gap: 0.5rem; }
.mx-drop__native {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0;
}
.mx-drop__pick {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem;
  width: 100%; min-height: 7.5rem; padding: 1rem;
  border: 2px dashed var(--c-line-strong); border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--c-surface-2) 55%, transparent); color: var(--c-ink);
  font: inherit; text-align: center; cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.mx-drop__pick:hover { border-color: var(--c-accent); }
.mx-drop__pick:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mx-drop__pick:disabled { cursor: not-allowed; opacity: 0.6; }
.mx-drop.is-over .mx-drop__pick { border-color: var(--c-accent); background: var(--c-accent-soft); }
.mx-drop__pick svg { width: 2.5rem; height: 2.5rem; padding: 0.5rem; border-radius: 9999px; background: var(--c-accent); color: var(--c-accent-ink); }
.mx-drop__label { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.mx-drop__hint { font-size: 0.75rem; line-height: 1.3; color: var(--c-ink-subtle); }
.mx-drop__chosen { margin: 0; font-size: 0.8125rem; font-weight: 600; overflow-wrap: anywhere; }
.mx-drop__chosen:empty { display: none; }
.mx-drop.has-file .mx-drop__pick { min-height: 4.5rem; flex-direction: row; gap: 0.75rem; }
.mx-drop.has-file .mx-drop__pick svg { width: 2rem; height: 2rem; padding: 0.4rem; }
.mx-photos:not(.has-files) .mx-photos__hint { font-size: 0.75rem; }
.mx-photos__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 0.625rem; }
.mx-photos:not(.has-files) .mx-photos__bar:not(:has(.mx-photos__camera)) { display: none; }
.mx-photos__count { font-size: 0.8125rem; color: var(--c-ink-muted); }
.mx-photos__msg { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--c-rec); }

/* ── A table that stacks on a phone: .mx-table--stack (2026-11-02) ─────────────────────────────
   Under 640px a table of five columns is either crushed (dates in four lines, e-mails broken letter by
   letter) or scrolls its last columns out of sight. With --stack each row becomes a block: the cell holding
   the row's link (a[data-mx-row] - the name) leads, the numbers (.num) and the status badge sit at the end
   of that line, a row's checkbox before it, and every other cell follows on the line under it, quieter.
   The header row goes (a sortable table then shows the kit's "Sort by" select). `data-label` on a cell
   names it in the stacked line when its value would not say what it is ("Stock 3"). */
@media (max-width: 639.98px) {
  .mx-table--stack thead { display: none; }
  .mx-table--stack,
  .mx-table--stack tbody { display: block; width: 100%; }
  .mx-table--stack tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.125rem 0.75rem;
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--c-line);
  }
  .mx-table--stack tbody tr:last-child { border-bottom: 0; }
  .mx-table--stack td {
    display: block;
    order: 3;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 0.8125rem;
    color: var(--c-ink-muted);
    overflow-wrap: break-word;
  }
  .mx-table--stack td:empty { display: none; }
  .mx-table--stack td:has(a[data-mx-row]) { order: 0; flex: 1 1 11rem; font-size: 0.9375rem; font-weight: 500; color: var(--c-ink); }
  .mx-table--stack td:is(.num, :has(> .mx-badge)) { order: 1; flex: none; font-size: 0.875rem; color: var(--c-ink); }
  .mx-table--stack td:has(> label > input[type='checkbox'], > input[type='checkbox']) { order: -1; flex: none; }
  /* The break between the leading line and the rest. */
  .mx-table--stack tr::after { content: ''; order: 2; flex-basis: 100%; height: 0; }
  .mx-table--stack td[data-label]::before { content: attr(data-label) ' '; color: var(--c-ink-subtle); }
  .mx-table.mx-table--stack a[data-mx-row] { white-space: normal; }
  .mx-table--stack td .sub { display: inline; margin: 0 0 0 0.5rem; }
  .mx-table--stack td a:has(> .sub) .sub { display: block; margin: 2px 0 0; }
  .mx-table--stack tbody tr:hover td { background: none; }
}
/* A row with an a[data-mx-row] opens it from anywhere on the row (kit/tables.ts). */
.mx-table tr:has(a[data-mx-row]) { cursor: pointer; }

/* .mx-gallery: photos already kept, square, each with its date (and a label) under it. A link
   with data-mx-lightbox opens the big view. */
/* One row, however many: it scrolls sideways, and the edge with more beyond it fades
   (data-mx-more, set by the kit script) - the cut-off photo says "swipe for more". */
.mx-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 6.5rem; gap: 0.625rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-width: none; padding-bottom: 0.125rem;
}
.mx-gallery::-webkit-scrollbar { display: none; }
.mx-gallery[data-mx-more='end'] { -webkit-mask-image: linear-gradient(to right, black calc(100% - 4.5rem), transparent); mask-image: linear-gradient(to right, black calc(100% - 4.5rem), transparent); }
.mx-gallery[data-mx-more='start'] { -webkit-mask-image: linear-gradient(to left, black calc(100% - 3rem), transparent); mask-image: linear-gradient(to left, black calc(100% - 3rem), transparent); }
.mx-gallery[data-mx-more='both'] { -webkit-mask-image: linear-gradient(to right, transparent, black 3rem, black calc(100% - 4.5rem), transparent); mask-image: linear-gradient(to right, transparent, black 3rem, black calc(100% - 4.5rem), transparent); }
.mx-gallery figure { margin: 0; min-width: 0; scroll-snap-align: start; }
.mx-gallery a { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-surface-2); }
.mx-gallery a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mx-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s var(--ease-out-soft, ease); }
@media (hover: hover) { .mx-gallery a:hover img { transform: scale(1.04); } }
.mx-gallery figcaption { margin-top: 0.375rem; font-size: 0.75rem; line-height: 1.4; color: var(--c-ink-subtle); overflow-wrap: break-word; }
.mx-gallery time { display: block; color: var(--c-ink-muted); font-variant-numeric: tabular-nums; }

/* The big view: dark in both themes - a photo reads best on black. */
.mx-lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--c-scrim); color: var(--c-scrim-ink); overscroll-behavior: contain;
}
.mx-lightbox::backdrop { background: color-mix(in srgb, var(--c-scrim) 60%, transparent); }
.mx-lightbox[open] { display: block; animation: mx-fade-in 0.18s ease; }
.mx-lightbox__figure {
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; width: 100%; height: 100%; margin: 0; padding: 3.75rem 1rem 3rem; touch-action: pan-y;
}
.mx-lightbox__img { max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; border-radius: var(--radius-sm); user-select: none; -webkit-user-drag: none; }
.mx-lightbox__caption { max-width: 40rem; font-size: 0.875rem; line-height: 1.45; color: color-mix(in srgb, var(--c-scrim-ink) 82%, transparent); text-align: center; }
.mx-lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 9999px; background: color-mix(in srgb, var(--c-scrim-ink) 14%, transparent); color: var(--c-scrim-ink); cursor: pointer;
}
.mx-lightbox__btn svg { width: 1.25rem; height: 1.25rem; }
.mx-lightbox__btn:hover { background: color-mix(in srgb, var(--c-scrim-ink) 24%, transparent); }
.mx-lightbox__btn:focus-visible { outline: 2px solid var(--c-scrim-ink); outline-offset: 2px; }
.mx-lightbox__close { top: max(0.75rem, env(safe-area-inset-top)); inset-inline-end: 0.75rem; }
.mx-lightbox__prev { top: 50%; inset-inline-start: 0.75rem; translate: 0 -50%; }
.mx-lightbox__next { top: 50%; inset-inline-end: 0.75rem; translate: 0 -50%; }
/* Previous is on the right in Arabic, and points right. */
[dir='rtl'] :is(.mx-lightbox__prev, .mx-lightbox__next) svg { transform: scaleX(-1); }
.mx-lightbox.is-single .mx-lightbox__prev,
.mx-lightbox.is-single .mx-lightbox__next { display: none; }
.mx-lightbox__count {
  position: absolute; top: max(1.4rem, calc(env(safe-area-inset-top) + 0.65rem)); left: 50%; translate: -50% 0; margin: 0;
  font-size: 0.8125rem; color: color-mix(in srgb, var(--c-scrim-ink) 75%, transparent); font-variant-numeric: tabular-nums;
}
@media (max-width: 575.98px) {
  .mx-lightbox__prev, .mx-lightbox__next { top: auto; bottom: max(0.75rem, env(safe-area-inset-bottom)); translate: none; }
}
/* The question before something that cannot be undone (kit/confirm.ts, data-mx-confirm): the kit's
   own small window, never window.confirm. Cancel first, the action last; a danger action stays red. */
.mx-confirm {
  width: min(28rem, calc(100% - 2rem));
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  color: var(--c-ink);
  padding: 1.5rem;
  box-shadow: var(--shadow-lift);
}
.mx-confirm::backdrop { background: color-mix(in srgb, var(--c-scrim) 50%, transparent); }
.mx-confirm__text { margin: 0 0 1.25rem; font-size: 0.9375rem; line-height: 1.55; }
.mx-confirm__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
html.mx-confirm-open { overflow: hidden; }
html.mx-lightbox-open, html.mx-overlay-open { overflow: hidden; }

/* An overlay: a centred panel on a laptop, a sheet that fills the screen on a phone. */
.mx-overlay {
  box-sizing: border-box; width: min(40rem, calc(100vw - 2rem)); max-width: none; max-height: min(90dvh, 56rem);
  margin: auto; padding: 0; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  background: var(--c-surface); color: var(--c-ink); box-shadow: 0 24px 48px -12px color-mix(in srgb, var(--c-scrim) 38%, transparent); overflow: hidden;
}
.mx-overlay[open] { display: flex; flex-direction: column; animation: mx-overlay-in 0.22s var(--ease-out-soft, ease); }
.mx-overlay::backdrop { background: color-mix(in srgb, var(--c-scrim) 50%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.mx-overlay__head {
  display: flex; flex: none; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem; border-bottom: 1px solid var(--c-line);
}
.mx-overlay__title { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.mx-overlay__close {
  display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 9999px; background: transparent; color: var(--c-ink-muted); cursor: pointer;
}
.mx-overlay__close:hover { background: var(--c-surface-2); color: var(--c-ink); }
.mx-overlay__close:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mx-overlay__close svg { width: 1.125rem; height: 1.125rem; }
.mx-overlay__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1.25rem; overscroll-behavior: contain; }
.mx-overlay__body > * + * { margin-top: 1rem; }
.mx-overlay__body .mx-page,
.mx-overlay__body .mx-page__inner { max-width: none; padding: 0; margin: 0; }
.mx-overlay__loading { margin: 0; font-size: 0.875rem; color: var(--c-ink-muted); }
@keyframes mx-overlay-in { from { opacity: 0; transform: translateY(0.75rem) scale(0.98); } }
@keyframes mx-sheet-in { from { transform: translateY(100%); } }
@keyframes mx-fade-in { from { opacity: 0; } }
@media (max-width: 575.98px) {
  .mx-overlay { width: 100vw; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .mx-overlay[open] { animation-name: mx-sheet-in; }
  .mx-overlay__head { padding-top: max(0.75rem, env(safe-area-inset-top)); }
  .mx-overlay__body { padding: 1rem 1rem max(1.25rem, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .mx-overlay[open], .mx-lightbox[open] { animation: none; }
}

/* The bottom sheet (kit/sheet.ts, data-mx-sheet): on a phone, docked to the bottom and always there,
   a handle on top that opens it to the full screen; on a wider screen, the block it always was. The
   handle and the scrim are the script's, so without it nothing here applies. */
.mx-sheet__handle, .mx-sheet__scrim { display: none; }
@media (max-width: 720px) {
  .mx-sheet[data-mx-sheet-on] {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    box-sizing: border-box; display: flex; flex-direction: column;
    margin: 0; max-height: min(var(--mx-sheet-peek, 45dvh), calc(100dvh - var(--kb, 0px) - 3rem));
    padding: 0 1rem calc(max(env(safe-area-inset-bottom) - 10px, 4px) + 0.75rem);
    /* Colours: the sheet's own, below. */
    border: 1px solid; border-bottom: 0; border-radius: 1.25rem 1.25rem 0 0;
    overscroll-behavior: contain;
    transition: max-height 0.28s var(--ease-out-soft, ease), height 0.28s var(--ease-out-soft, ease);
    animation: mx-sheet-in 0.28s var(--ease-out-soft, ease);
  }
  .mx-sheet[data-mx-sheet-on][data-state='full'] {
    max-height: none;
    height: calc(100dvh - var(--kb, 0px) - max(env(safe-area-inset-top), 0.75rem) - 1.5rem);
  }
  .mx-sheet[data-mx-sheet-on][data-dragging] { transition: none; user-select: none; }
  /* Everything in it keeps its height except the part that scrolls - the heading and the form stay in view. */
  .mx-sheet[data-mx-sheet-on] > * { flex: none; }
  .mx-sheet[data-mx-sheet-on] [data-mx-sheet-scroll] { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  /* Open, the scrolling part takes all the room there is - a product's own cap on it (a chat list's
     max-height for the page) would leave a band of nothing under the form (Hotel QR, 2026-10-09). */
  .mx-sheet[data-mx-sheet-on][data-state='full'] [data-mx-sheet-scroll] { max-height: none; }
  .mx-sheet[data-mx-sheet-on] > :has([data-mx-sheet-scroll]) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .mx-sheet__handle {
    display: flex; flex: none; align-items: center; justify-content: center; align-self: stretch;
    min-height: 2.25rem; margin: 0 -1rem; padding: 0; border: 0; background: transparent;
    cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
  }
  /* From the sheet's own ink: a line colour vanished into the dark-page sheet, which is about as light as one. */
  .mx-sheet__handle::before { content: ''; width: 2.5rem; height: 0.3125rem; border-radius: 9999px; background: color-mix(in srgb, var(--c-ink) 32%, transparent); }
  .mx-sheet__handle:focus-visible { outline: none; }
  .mx-sheet__handle:focus-visible::before { background: var(--c-accent); }
  .mx-sheet__scrim {
    /* margin: 0 - it sits among the page's own blocks, whose spacing rule (.mx-page > * + *) would push it down. */
    position: fixed; inset: 0; z-index: 44; margin: 0; background: color-mix(in srgb, var(--c-scrim) 45%, transparent);
    animation: mx-fade-in 0.2s ease;
  }
  :root[data-mx-sheet-full] .mx-sheet__scrim { display: block; }
  :root[data-mx-sheet-full] { overflow: hidden; }
  /* Room at the bottom of the page for the settled sheet, so nothing hides behind it. */
  :root[data-mx-sheet-shown] body { padding-bottom: calc(var(--mx-sheet-h, 0px) + 1rem); }
  /* Typing: above the keyboard on iOS, the editor bar's room inside the sheet on Android (src/lib/keyboard.ts). */
  :root[data-kb] .mx-sheet[data-mx-sheet-on] { bottom: var(--kb, 0px); padding-bottom: calc(var(--kb-bar, 0px) + 0.5rem); }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .mx-sheet[data-mx-sheet-on] { transition: none; animation: none; }
  .mx-sheet__scrim { animation: none; }
}

/* The sheet's own colours, small or open, worked out on <html> so the sheet can re-point the tokens its
   contents read without a loop. A LIGHT page: the whole sheet is dark like a phone's own "now playing",
   pill and open sheet alike ("on light mode the extended mode colors should follow the closed mode"), its
   insides - list, fields, chips - a step lighter than it. A DARK page: the page's card colour 15% brighter
   ("like we have on dark for the card bgs like the wifi section's bg color, only 15% brighter"), its
   insides the page's own darker surfaces, set into it. Chris, 2026-10-09, on Hotel QR's room chat. */
:root {
  /* Toward the ink, not toward #fff: the dark ink is a few units off white, so it looks the same, and a
     product's gate reads this file as its own sheet, where a bare colour is a finding (kit task #3111). */
  --mx-sheet-bg: color-mix(in srgb, var(--c-surface) 85%, var(--c-ink)); --mx-sheet-line: color-mix(in srgb, var(--c-surface) 76%, var(--c-ink));
  /* Small text and field edges a step towards the ink: the sheet is lighter than the page, and the page's own
     subtle read 3.4:1 on it (4.75:1 now; fields 3.3:1 on the sheet, 4.9:1 on their box). */
  --mx-sheet-ink: var(--c-ink); --mx-sheet-muted: var(--c-ink-muted); --mx-sheet-subtle: color-mix(in srgb, var(--c-ink-subtle) 75%, var(--c-ink));
  --mx-sheet-surface: var(--c-surface); --mx-sheet-surface-2: var(--c-surface-2);
  --mx-sheet-in-line: var(--c-line); --mx-sheet-in-line-strong: var(--c-line-strong);
  --mx-sheet-in-line-field: color-mix(in srgb, var(--c-line-field) 80%, var(--c-ink));
  /* A big, soft shadow around it - dark in both themes: a light glow on a dark page looked wrong ("make
     that black too"). The page's own deepest colour, never #000. */
  --mx-sheet-glow: 0 18px 56px -6px color-mix(in srgb, var(--c-canvas) 88%, transparent), 0 4px 16px color-mix(in srgb, var(--c-canvas) 60%, transparent);
}
:root[data-theme='light'] {
  --mx-sheet-bg: var(--c-ink); --mx-sheet-line: transparent;
  --mx-sheet-ink: var(--c-canvas); --mx-sheet-muted: color-mix(in srgb, var(--c-canvas) 68%, var(--c-ink)); --mx-sheet-subtle: color-mix(in srgb, var(--c-canvas) 62%, var(--c-ink));
  --mx-sheet-surface: color-mix(in srgb, var(--c-canvas) 8%, var(--c-ink)); --mx-sheet-surface-2: color-mix(in srgb, var(--c-canvas) 14%, var(--c-ink));
  --mx-sheet-in-line: color-mix(in srgb, var(--c-canvas) 16%, var(--c-ink)); --mx-sheet-in-line-strong: color-mix(in srgb, var(--c-canvas) 26%, var(--c-ink));
  --mx-sheet-in-line-field: color-mix(in srgb, var(--c-canvas) 44%, var(--c-ink));
  --mx-sheet-glow: 0 18px 56px -6px color-mix(in srgb, var(--c-ink) 42%, transparent), 0 4px 16px color-mix(in srgb, var(--c-ink) 14%, transparent);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --mx-sheet-bg: var(--c-ink); --mx-sheet-line: transparent;
    --mx-sheet-ink: var(--c-canvas); --mx-sheet-muted: color-mix(in srgb, var(--c-canvas) 68%, var(--c-ink)); --mx-sheet-subtle: color-mix(in srgb, var(--c-canvas) 62%, var(--c-ink));
    --mx-sheet-surface: color-mix(in srgb, var(--c-canvas) 8%, var(--c-ink)); --mx-sheet-surface-2: color-mix(in srgb, var(--c-canvas) 14%, var(--c-ink));
    --mx-sheet-in-line: color-mix(in srgb, var(--c-canvas) 16%, var(--c-ink)); --mx-sheet-in-line-strong: color-mix(in srgb, var(--c-canvas) 26%, var(--c-ink));
    --mx-sheet-in-line-field: color-mix(in srgb, var(--c-canvas) 44%, var(--c-ink));
    --mx-sheet-glow: 0 18px 56px -6px color-mix(in srgb, var(--c-ink) 42%, transparent), 0 4px 16px color-mix(in srgb, var(--c-ink) 14%, transparent);
  }
}
.mx-sheet__open { display: none; }
@media (max-width: 720px) {
  .mx-sheet[data-mx-sheet-on] {
    background: var(--mx-sheet-bg); color: var(--mx-sheet-ink); border-color: var(--mx-sheet-line);
    box-shadow: var(--mx-sheet-glow); color-scheme: dark;
    --c-ink: var(--mx-sheet-ink); --c-ink-muted: var(--mx-sheet-muted); --c-ink-subtle: var(--mx-sheet-subtle);
    --c-surface: var(--mx-sheet-surface); --c-surface-2: var(--mx-sheet-surface-2);
    --c-line: var(--mx-sheet-in-line); --c-line-strong: var(--mx-sheet-in-line-strong); --c-line-field: var(--mx-sheet-in-line-field);
    /* The label colour is a mix resolved where it is declared (:root, the page's colours), so it is made again
       here from the sheet's own: on a light page the labels were the page's dark grey on the dark sheet (3:1). */
    --mx-label: color-mix(in srgb, var(--c-ink-subtle) 90%, var(--c-ink));
    /* Fields sit on the canvas colour (.mx-field input/select): inside the sheet that is the sheet's
       own surface, or a select on a light page drew pale words on a white box (Storefront's editor,
       2026-11-02). The --mx-sheet-* values are resolved on :root, so this is no var() loop. */
    --c-canvas: var(--mx-sheet-surface);
  }
  /* Made small (data-mx-sheet-bar): a pill over the bottom of the page - its bar alone and the button
     that brings it back. */
  .mx-sheet[data-mx-sheet-on][data-state='min'] {
    left: 0.75rem; right: 0.75rem; bottom: calc(env(safe-area-inset-bottom) + 0.75rem);
    max-height: none; padding: 0.5rem;
    border: 1px solid var(--mx-sheet-line); border-radius: 9999px;
    cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent;
  }
  .mx-sheet[data-mx-sheet-on][data-state='min'] > :not([data-mx-sheet-bar]) { display: none; }
  .mx-sheet[data-mx-sheet-on][data-state='min'] > [data-mx-sheet-bar] {
    display: flex; align-items: center; gap: 0.625rem; min-width: 0; margin: 0;
  }
  /* One line each, cut short rather than wrapped: the pill keeps its height whatever the hotel is called. */
  .mx-sheet[data-mx-sheet-on][data-state='min'] > [data-mx-sheet-bar] :is(span, p, strong, b, small):not(.mx-sheet__open) {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mx-sheet[data-mx-sheet-on][data-state='min'] .mx-sheet__open {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    margin-inline-start: auto; min-height: 2.75rem; padding: 0 1.25rem;
    border: 0; border-radius: 9999px; background: var(--mx-sheet-ink); color: var(--mx-sheet-bg);
    /* Its own size: the bar is usually a heading, and a button at heading size shouts. */
    font: inherit; font-size: 0.9375rem; font-weight: 700; line-height: 1; letter-spacing: 0; cursor: pointer;
  }
  .mx-sheet[data-mx-sheet-on][data-state='min'] .mx-sheet__open:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
}

/* Opening hours as a state (kit/hours.ts, data-mx-hours): a dot before "Open until 20:00", green while open. */
[data-mx-hours-on]::before {
  content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-inline-end: 0.45em;
  border-radius: 50%; vertical-align: 0.08em; background: var(--c-ink-subtle);
}
[data-mx-hours-on][data-mx-open]::before { background: var(--c-ok); }

/* Sortable columns: the header is a button, its arrow shows which way. */
.mx-sort {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer;
}
.mx-sort:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
.mx-sort__arrow {
  flex: none; width: 0.4rem; height: 0.4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  opacity: 0; transform: translateY(-0.1rem) rotate(45deg); transition: transform 0.15s ease, opacity 0.15s ease;
}
@media (hover: hover) { .mx-sort:hover { color: var(--c-ink); } .mx-sort:hover .mx-sort__arrow { opacity: 0.45; } }
.mx-table th[aria-sort='ascending'],
.mx-table th[aria-sort='descending'] { color: var(--c-ink); }
.mx-table th[aria-sort='ascending'] .mx-sort__arrow { opacity: 1; transform: translateY(0.12rem) rotate(-135deg); }
.mx-table th[aria-sort='descending'] .mx-sort__arrow { opacity: 1; transform: translateY(-0.1rem) rotate(45deg); }
/* The phone's "Sort by": a kit label and a kit select, like any field (Chris, 2026-10-05: "Rendezés
   looks strange on mobile" - it sat flush to the panel's edge with a bare dash for a choice). In a
   panel it lines up with the rows' text, which sit .875rem in. */
/* Label above, the list across the whole row - as a form field is. Beside each other, the label took
   a third of a phone and "Rückgabe bis · aufsteigend" was cut to "aufstei" (RentKeeper in German,
   2026-10-05); a translated label and option are often a third longer than the English. */
.mx-sortbar { display: flex; flex-direction: column; align-items: stretch; gap: 0.375rem; margin: 0 0 0.75rem; }
.mx-sortbar[hidden] { display: none; }
.mx-sortbar .mx-label { margin: 0; white-space: nowrap; }
/* Inset like the rows wherever the bar sits in a container with no padding of its own: straight in
   a panel, or in a flush panel body (RentKeeper's equipment list, 2026-10-05). */
.mx-panel > .mx-sortbar,
.mx-panel__body--flush > .mx-sortbar { padding: 0.875rem 0.875rem 0; margin-bottom: 0.25rem; }
.mx-sortbar select {
  flex: 1 1 auto; min-width: 0; height: 2.5rem; padding: 0 0.75rem;
  border: 1px solid var(--c-line-field); border-radius: var(--radius-sm);
  background: var(--c-canvas); color: var(--c-ink); font: inherit; font-size: 0.875rem;
}
.mx-sortbar select:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }

/* Filter chips: one row of choices above a list, each with its count. */
.mx-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.875rem; }
.mx-filter button {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.375rem 0.75rem;
  border: 1px solid var(--c-line-strong); border-radius: 9999px; background: transparent;
  color: var(--c-ink-muted); font: inherit; font-size: 0.8125rem; font-weight: 500; line-height: 1.3; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) { .mx-filter button:hover { color: var(--c-ink); border-color: var(--c-ink-subtle); } }
.mx-filter button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mx-filter button[aria-pressed='true'] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-canvas); }
.mx-filter__count { font-size: 0.75rem; font-variant-numeric: tabular-nums; opacity: 0.7; }
.mx-filter__empty { margin: 1rem 0 0; font-size: 0.875rem; color: var(--c-ink-muted); }
.mx-filter__empty[hidden] { display: none; }

/* ── Touch ───────────────────────────────────────────────────────────────
   THIS LAYER WAS MEASURED OFF A LAPTOP, and it shows: a button comes out about 39px tall,
   a field is 40px, and both carry 14px text. On a mouse that is right. On a phone it is
   two separate bugs, and Voks found them - a product entered by scanning a sticker on an
   office wall, where every control is touched and nothing is clicked.

   44px is the touch minimum (Apple's number; Google says 48). 16px is not a taste: iOS
   Safari zooms the whole page in when a field with smaller text takes focus, and the way
   back out is a pinch - which is why the control font is one of the few px values the kit
   is allowed to keep.

   Gated on a coarse pointer so a desktop keeps the tighter scale it was designed at.
   `hover: none` as well, because a laptop with a touchscreen reports a coarse pointer for
   its finger and still wants the mouse-sized chrome. */
@media (hover: none) and (pointer: coarse) {
  .mx-btn { min-height: 44px; }
  .mx-btn--icon { min-width: 44px; }
  .mx-field input,
  .mx-field select,
  .mx-input { min-height: 44px; }
  .mx-field input,
  .mx-field select,
  .mx-field textarea,
  .mx-input { font-size: 16px; }
  .mx-nav a,
  .mx-tabs a,
  .mx-brand,
  .mx-side__list .mx-side__item,
  .mx-side__toggle { min-height: 44px; }
  .mx-filter button,
  .mx-sortbar select { min-height: 44px; }
  .mx-sortbar select { font-size: 16px; }
  .mx-photos__remove { width: 2.25rem; height: 2.25rem; }
  /* Links that are something to press, not a word in a sentence (FleetFault #996, 2026-10-03):
     the "Sign in" hint under a form was 38 x 17 px, "Open in OpenStreetMap" 179 x 21. Small-text
     links and a link standing on its own (.mx-link) become a 44px box; links inside running
     text stay text - a 44px box mid-sentence jolts the line. */
  .mx-sub a,
  .mx-hint a,
  .mx-empty a,
  .mx-crumb a,
  a.mx-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  /* A crumb is a way back, not a paragraph: its 44px link does not push the page head further down. */
  .mx-crumb { margin-block: -0.75rem 0; }
  /* A table's row link is the row's own target, 44px tall to a finger (plates wrapped to 18px) - but the 44px is its
     REACH, not its box: an invisible layer centred on the words, so they keep the row's line and take only the room
     they need. A 44px box pulled back by -.75rem each way (2026-11-02) worked for one line only: a name that wrapped
     to two lines in a phone's stacked row ran 10px into the line under it (Storefront's products, 2026-11-03). */
  .mx-table td a:not(.mx-btn) { display: inline-flex; align-items: center; position: relative; }
  .mx-table td a:not(.mx-btn)::after { content: ''; position: absolute; inset-inline: 0; top: 50%; height: max(100%, 44px); transform: translateY(-50%); }
  .mx-table td .mx-btn { margin-block: -0.375rem; }
  .mx-table a[data-mx-row] { white-space: nowrap; }
  /* A row link holding a second line (.sub: an e-mail under a name) keeps it UNDER the name - as a flex row
     the two ran together ("Northlightdemo@northlight…", 2026-11-02). */
  .mx-table td a:has(> .sub) { flex-direction: column; align-items: flex-start; justify-content: center; }
  /* A checkbox in a cell is pressed through its label: 44 x 44, the box in the middle. */
  .mx-table td > label:has(> input[type='checkbox']) {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer;
  }
  .mx-table td input[type='checkbox'] { width: 1.25rem; height: 1.25rem; accent-color: var(--c-accent); }
}

/* ── The one button a screen is for ─────────────────────────────────────────
   `.mx-cta`: the landing pages' call to action (landing.css `.lp-btn--primary`), brought to the
   app layer for the single most important button on an app screen - Studio's Continue (Chris,
   2026-10-01: "glow and animate like we do the cta btns on the landing pages"). The same
   gradient flowing A → B → shine → B → A, the same breathing glow, the same light sweeping
   across, the same lift on hover; change one and change the other. One per screen at most:
   a second one glowing beside it and neither is the thing to press.
   Everything stops for anybody who asked for less motion (tokens.css). */
.mx-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(
    120deg,
    var(--c-accent-strong) 0%,
    var(--c-accent) 25%,
    var(--c-accent-shine, color-mix(in srgb, var(--c-accent) 62%, var(--c-rec))) 50%,
    var(--c-accent) 75%,
    var(--c-accent-strong) 100%
  );
  background-size: 200% 100%;
  animation: mx-cta-flow 9s linear infinite, mx-cta-breathe 3.6s ease-in-out infinite;
  box-shadow: 0 0 24px color-mix(in srgb, var(--c-accent) 35%, transparent);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
/* The sweep, under the content: every child gets a layer above it, so the light passes behind
   the words rather than washing over them. */
.mx-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.18) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: mx-cta-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
.mx-cta > * { position: relative; z-index: 1; }
.mx-cta:hover:not(:disabled),
.mx-cta:focus-visible {
  transform: translateY(-2px);
  /* Without the breathing, or the running animation would outrank this stronger glow. */
  animation: mx-cta-flow 9s linear infinite;
  box-shadow:
    0 0 44px color-mix(in srgb, var(--c-accent) 60%, transparent),
    0 0 0 0.375rem color-mix(in srgb, var(--c-accent) 18%, transparent);
}
.mx-cta:active:not(:disabled) { transform: translateY(0); }
@keyframes mx-cta-flow { 0% { background-position: 200% 50%; } 100% { background-position: 0% 50%; } }
@keyframes mx-cta-breathe {
  0%, 100% { box-shadow: 0 0 1.5rem color-mix(in srgb, var(--c-accent) 35%, transparent); }
  50% { box-shadow: 0 0 2.625rem 0.25rem color-mix(in srgb, var(--c-accent) 55%, transparent); }
}
@keyframes mx-cta-sheen {
  0%, 62% { transform: translateX(-130%); }
  78%, 100% { transform: translateX(130%); }
}

/* ── Look settings: data-mx-* on <html> (kit/look.ts, DESIGN.md "Look settings", 2026-11-02) ─────────────────
   What a product's owner chose for its pages - a shop owner's, in Storefront Ninja first. Default = no attribute =
   none of this applies, so every page that chose nothing is what it was. Corners and line weight are tokens
   (tokens.css --mx-control-radius, --mx-stroke, --mx-icon-stroke) the controls above already read; the rest are
   the attributes themselves, styled here for the kit's own parts and by each product for its own. Like the tokens
   they work on any element for its part of a page, not only on <html>. */
/* Line weight reaches the kit's line icons too (a lucide icon's stroke-width is an attribute, which CSS outranks). */
[data-mx-stroke] :is(.mx-nav, .mx-tabs, .mx-side, .mx-btn, .mx-crumb, .mx-switch) svg[stroke] { stroke-width: var(--mx-icon-stroke, 2); }
/* Buttons: outline - the primary keeps its accent as a border and its words, the fill goes. */
[data-mx-buttons='outline'] .mx-btn--primary { background: transparent; border-color: var(--c-accent); color: var(--c-accent); }
[data-mx-buttons='outline'] .mx-btn--primary:hover { background: color-mix(in srgb, var(--c-accent) 12%, transparent); }
/* Accent on hover only: the primary is ink until it is pointed at or reached by the keyboard, then the accent. */
[data-mx-accent='hover'] .mx-btn--primary:not(:hover, :focus-visible) { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-surface); }
[data-mx-accent='hover'][data-mx-buttons='outline'] .mx-btn--primary:not(:hover, :focus-visible),
[data-mx-accent='hover'] [data-mx-buttons='outline'] .mx-btn--primary:not(:hover, :focus-visible) { background: transparent; border-color: var(--c-ink); color: var(--c-ink); }
/* Nav labels off: a nav item with an icon shows only the icon. The words stay for a screen reader (hidden from
   sight, not display: none) and the item's own title, if it has one, is the tooltip. An item with no icon keeps
   its words - an empty link is worse than a label. */
[data-mx-navlabels='off'] :is(.mx-nav, .mx-tabs) a:has(> svg) > span {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* Counts off: the count beside each filter chip (kit/tables.ts). The kit's nav, tabs and sidebar draw no counts;
   a product's own counts follow the same attribute in its own sheet. */
[data-mx-counts='off'] .mx-filter__count { display: none; }

/* ── Right to left ────────────────────────────────────────────────────────────────────────── */
/* A photo strip scrolls the other way: its fading edge is the other edge. */
[dir='rtl'] .mx-gallery[data-mx-more='end'] { -webkit-mask-image: linear-gradient(to left, black calc(100% - 4.5rem), transparent); mask-image: linear-gradient(to left, black calc(100% - 4.5rem), transparent); }
[dir='rtl'] .mx-gallery[data-mx-more='start'] { -webkit-mask-image: linear-gradient(to right, black calc(100% - 3rem), transparent); mask-image: linear-gradient(to right, black calc(100% - 3rem), transparent); }
[dir='rtl'] .mx-gallery[data-mx-more='both'] { -webkit-mask-image: linear-gradient(to left, transparent, black 3rem, black calc(100% - 4.5rem), transparent); mask-image: linear-gradient(to left, transparent, black 3rem, black calc(100% - 4.5rem), transparent); }
/* Back links and anything a product marks data-mx-flip point the way the page reads. */
[dir='rtl'] :is(.mx-crumb svg, [data-mx-flip]) { transform: scaleX(-1); }

/* Every kit dropdown draws its own chevron at a fixed inset: the native arrow sits on the border
   and padding cannot move it (tokens.css select-field; Chris, 2026-10-05). --mx-end is the side
   a line ends on - left in Arabic. */
.mx-field select, select.mx-input, .mx-sortbar select,
select[data-mx-select]:not([multiple], [size]), [data-mx-select] select:not([multiple], [size]) {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 2.25rem;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: var(--mx-end, right) 0.75rem center;
  background-size: 12px 12px;
}


/* ── One field for a date and its time: data-mx-datetime (kit/datetime.ts, 2026-10-13) ───────────────────────
   The input stays the form's field, out of sight; the button reads like a field and opens the panel in flow
   under it - the month and that day's times side by side, taking turns when the field is narrow. */
.mx-dt { position: relative; display: grid; gap: 0.375rem; min-width: 0; container-type: inline-size; }
.mx-field .mx-dt input.mx-dt__native {
  position: absolute; inset-inline-start: 0; top: 0;
  width: 1px; height: 1px; padding: 0; margin: 0; border: 0;
  opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none;
}
.mx-dt__field {
  display: flex; align-items: center; gap: 0.5rem;
  max-width: 22rem; text-align: start; cursor: pointer;
  padding-inline-end: 2.25rem;
  background-image: var(--select-chevron); background-repeat: no-repeat;
  background-position: var(--mx-end, right) 0.75rem center; background-size: 12px 12px;
}
.mx-dt__field.is-empty { color: var(--c-ink-subtle); }
.mx-dt__field[aria-invalid='true'] { border-color: var(--c-rec); }
.mx-dt__field[aria-expanded='true'] { border-color: var(--c-accent); }
.mx-dt__shown { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.mx-dt__panel {
  display: grid; grid-template-columns: minmax(0, 18rem) minmax(6.5rem, 9rem); gap: 1rem;
  width: fit-content; max-width: 100%;
  padding: 0.75rem; border: 1px solid var(--c-line-strong); border-radius: var(--radius-md);
  background: var(--c-surface);
}
.mx-dt__panel[hidden] { display: none; }
/* A day without a time (data-mx-datetime="date"): the month alone. */
.mx-dt--date .mx-dt__panel { grid-template-columns: minmax(0, 18rem); }
.mx-dt__days, .mx-dt__times { min-width: 0; }
.mx-dt__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.25rem; margin: 0 0 0.375rem; }
.mx-dt__month, .mx-dt__label { font-size: 0.875rem; font-weight: 600; color: var(--c-ink); }
.mx-dt__label { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--mx-label-size); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mx-label); }
.mx-dt__nav, .mx-dt__back, .mx-dt__day, .mx-dt__time {
  margin: 0; border: 0; background: none; font: inherit; color: var(--c-ink); cursor: pointer;
  border-radius: var(--radius-sm); -webkit-tap-highlight-color: transparent;
}
.mx-dt__nav { width: 2.25rem; height: 2.25rem; font-size: 1.25rem; line-height: 1; }
.mx-dt__back { display: none; padding: 0 0.5rem; height: 2.25rem; font-size: 0.875rem; font-weight: 600; text-align: start; }
.mx-dt__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mx-dt__wd { padding: 0.25rem 0; text-align: center; font-size: 0.6875rem; color: var(--c-ink-subtle); }
.mx-dt__day { aspect-ratio: 1; min-height: 2.25rem; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.mx-dt__day.is-out { color: var(--c-ink-subtle); }
.mx-dt__day.is-today { box-shadow: inset 0 0 0 1px var(--c-accent); }
.mx-dt__list { display: grid; gap: 2px; align-content: start; max-height: 17rem; overflow-y: auto; overscroll-behavior: contain; }
.mx-dt__time { height: 2.25rem; padding: 0 0.5rem; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.mx-dt__day.is-on, .mx-dt__time.is-on { background: var(--c-accent); color: var(--c-accent-ink); font-weight: 600; }
.mx-dt__nav:disabled, .mx-dt__day:disabled, .mx-dt__time:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) {
  .mx-dt__nav:not(:disabled):hover, .mx-dt__back:hover, .mx-dt__day:not(:disabled, .is-on):hover, .mx-dt__time:not(:disabled, .is-on):hover { background: var(--c-surface-sunk); }
}
.mx-dt__nav:focus-visible, .mx-dt__back:focus-visible, .mx-dt__day:focus-visible, .mx-dt__time:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.mx-dt__msg[hidden] { display: none; }
/* A narrow field: one at a time - the month, then that day's times with the date above them to go back. */
@container (max-width: 29rem) {
  .mx-dt__panel { grid-template-columns: minmax(0, 1fr); width: auto; }
  .mx-dt__panel[data-showing='days'] .mx-dt__times, .mx-dt__panel[data-showing='times'] .mx-dt__days { display: none; }
  .mx-dt__back { display: inline-flex; align-items: center; gap: 0.375rem; }
  .mx-dt__list { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 18rem; }
}

/* "Made with mixtape.works" - the same line as landing.css, for the public pages built on the app layer. */
.mx-made-with {
  display: block;
  margin: 1.5rem auto 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--c-ink-subtle);
}
.mx-made-with a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mx-made-with a:hover { color: var(--c-ink); }


/* ── Soft navigation (kit/softnav.ts, 2026-11-03) ───────────────────────────────────────────────
   A shell with data-mx-softnav swaps its main region instead of loading the whole page. While the next
   page is on its way (after 150 ms, so a fast one never flashes it) a thin bar in the accent runs along
   the top of the window, under the notch; the main region fades in from 40% when the reader allows
   motion. margin 0: anything the kit injects picks up the page rhythm otherwise. */
.mx-softnav-bar {
  position: fixed;
  inset-inline: 0;
  top: env(safe-area-inset-top, 0px);
  z-index: 70;
  height: 3px;
  margin: 0;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
  background: var(--c-accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c-accent) 55%, transparent);
}
:root[dir='rtl'] .mx-softnav-bar { transform-origin: 100% 50%; }
.mx-softnav-bar[data-state='loading'] {
  opacity: 1;
  transform: scaleX(0.85);
  transition: transform 8s cubic-bezier(0.08, 0.7, 0.2, 1), opacity 0.12s ease;
}
.mx-softnav-bar[data-state='done'] {
  opacity: 0;
  transform: scaleX(1);
  transition: transform 0.2s ease, opacity 0.25s ease 0.15s;
}
.mx-softnav-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* The new page's h1 takes the focus (so a screen reader starts there); it is not a control, so no ring. */
[data-mx-softnav] h1[tabindex='-1']:focus { outline: none; }
@keyframes mx-softnav-in { from { opacity: 0.4; } }
@media (prefers-reduced-motion: no-preference) {
  .mx-softnav-in { animation: mx-softnav-in 0.18s ease-out; }
}
@media print {
  .mx-softnav-bar { display: none; }
}

/* ── Sliders, the font picker and scene tiles (2026-11-04, Storefront's Appearance > Style; Studio's design
   page draws the same things in React and can switch to these) ─────────────────────────────────────────── */

/* A slider with what its value means beside it (kit/range.ts writes the words as it moves). The track is a
   solid bar in a field's edge colour (3:1 like any control), the thumb the accent; the browser's own keys move it. */
.mx-range { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.mx-range > input[type='range'] {
  -webkit-appearance: none; appearance: none;
  flex: 1 1 auto; min-width: 0; height: 1.75rem; margin: 0; padding: 0;
  border: 0; border-radius: 0; box-shadow: none; background: transparent; cursor: pointer; accent-color: var(--c-accent);
}
.mx-range > input[type='range']::-webkit-slider-runnable-track {
  height: 0.25rem; border-radius: 999px; background: var(--c-line-field);
}
.mx-range > input[type='range']::-moz-range-track {
  height: 0.25rem; border-radius: 999px; background: var(--c-line-field);
}
.mx-range > input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 1.125rem; height: 1.125rem; margin-top: -0.4375rem; border: 2px solid var(--c-surface); border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent);
}
.mx-range > input[type='range']::-moz-range-thumb {
  width: 0.875rem; height: 0.875rem; border: 2px solid var(--c-surface); border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent);
}
.mx-range > input[type='range']:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 999px; }
.mx-range > output {
  flex: 0 0 auto; min-width: 3.5rem; text-align: end;
  color: var(--c-ink); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
@media (hover: none) and (pointer: coarse) {
  .mx-range > input[type='range'] { height: 44px; }
  .mx-range > input[type='range']::-webkit-slider-thumb { width: 1.5rem; height: 1.5rem; margin-top: -0.625rem; }
  .mx-range > input[type='range']::-moz-range-thumb { width: 1.25rem; height: 1.25rem; }
}

/* Two thumbs on one track (kit/range.ts, .mx-range--dual): a low and a high end over the page's two fields, which
   the kit hides and keeps writing. The values sit over the track's two ends; the filled part between the thumbs is
   the accent. The whole track is the press target - 44px tall to a finger, and a vertical swipe still scrolls. */
.mx-range.mx-range--dual { display: block; }
/* The fields the slider is drawn over: hidden whatever display a product's own rule gives its row. */
.mx-range--dual [hidden] { display: none !important; }
.mx-range__values {
  display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.125rem;
  color: var(--c-ink); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
.mx-range__values > output { min-width: 0; white-space: nowrap; }
.mx-range__slider {
  --mx-thumb: 1.125rem;
  position: relative; height: 2rem; touch-action: pan-y; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.mx-range__rail {
  position: absolute; top: 50%; inset-inline: calc(var(--mx-thumb) / 2); height: 0.25rem; margin-top: -0.125rem;
  border-radius: 999px; background: var(--c-line-field);
}
.mx-range__fill {
  position: absolute; top: 0; bottom: 0; border-radius: inherit; background: var(--c-accent);
  inset-inline-start: calc(var(--lo, 0) * 100%); inset-inline-end: calc((1 - var(--hi, 1)) * 100%);
}
.mx-range__thumb {
  position: absolute; top: 50%; inset-inline-start: calc(var(--at) * 100%); z-index: 1;
  width: var(--mx-thumb); height: var(--mx-thumb); margin-top: calc(var(--mx-thumb) / -2); margin-inline-start: calc(var(--mx-thumb) / -2);
  box-sizing: border-box; border: 2px solid var(--c-surface); border-radius: 50%;
  background: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent);
  transition: transform 0.12s ease;
}
.mx-range__thumb[data-end='lo'] { --at: var(--lo, 0); }
.mx-range__thumb[data-end='hi'] { --at: var(--hi, 1); }
.mx-range__slider.is-lo-up .mx-range__thumb[data-end='lo'] { z-index: 2; }
.mx-range__slider.is-dragging .mx-range__thumb { transition: none; }
/* The real ranges: the keyboard's and a screen reader's, never seen - their thumbs are drawn above. */
.mx-range__slider > .mx-range__input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.mx-range__slider:has(> .mx-range__input[data-end='lo']:focus-visible) .mx-range__thumb[data-end='lo'],
.mx-range__slider:has(> .mx-range__input[data-end='hi']:focus-visible) .mx-range__thumb[data-end='hi'] {
  outline: 2px solid var(--c-accent); outline-offset: 2px;
}
.mx-range__slider:has(> .mx-range__input:disabled) { cursor: default; opacity: 0.5; }
@media (hover: hover) { .mx-range__slider:hover .mx-range__thumb { transform: scale(1.08); } }
@media (hover: none) and (pointer: coarse) {
  .mx-range__slider { --mx-thumb: 1.5rem; height: 2.75rem; }
}

/* The kit's dropdown list (kit/select.ts): what a select opens instead of the browser's list, to a mouse or the
   keys (a finger gets the phone's own picker). It sits in the top layer beside the select, as wide as the select
   at least; the row the pointer or the keys are on takes the product's accent, the chosen one says so in it with a
   tick. Its edge is the kit's hairline, the one the icon buttons and menus draw. */
.mx-select-pop {
  position: fixed; inset: auto; z-index: 2147483000; box-sizing: border-box;
  width: max-content; height: auto; margin: 0; padding: 0.25rem;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--c-line); border-radius: min(var(--mx-control-radius, var(--radius-sm)), var(--radius-lg));
  background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-lift);
  line-height: 1.35; text-align: start; outline: none;
  animation: mx-select-in 0.12s ease-out;
}
.mx-select-pop[data-side='above'] { animation-name: mx-select-up; }
/* This sheet draws the list: kit/select.ts opens it only where it finds this (an older app.css keeps the browser's). */
:root { --mx-kit-select: 1; }
/* A long list's search field, on top while the rows scroll under it; 16px so a phone does not zoom. */
.mx-select-pop__q {
  position: sticky; top: -0.25rem; z-index: 1; display: block; box-sizing: border-box; width: 100%;
  margin: -0.25rem -0.25rem 0.25rem; width: calc(100% + 0.5rem); padding: 0.5rem 0.75rem;
  border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0;
  background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: max(1rem, 16px); outline: none;
}
.mx-select-pop__q::placeholder { color: var(--c-ink-subtle); }
.mx-select-pop__opt[hidden] { display: none; }
/* A language row's flag: a hint beside the name, 4:3, a hairline so a white flag shows on a light list. */
.mx-select-pop__flag { display: inline-flex; flex: none; }
.mx-select-pop__flag .flag {
  width: 1.25rem; height: 0.9375rem; border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-ink) 16%, transparent);
}
@keyframes mx-select-in { from { opacity: 0; transform: translateY(-0.25rem); } }
@keyframes mx-select-up { from { opacity: 0; transform: translateY(0.25rem); } }
.mx-select-pop__opt {
  display: flex; align-items: center; gap: 0.625rem; min-height: 2.25rem; padding: 0.375rem 0.625rem;
  border-radius: max(0px, calc(min(var(--mx-control-radius, var(--radius-sm)), var(--radius-lg)) - 0.25rem));
  cursor: pointer; outline: none;
}
.mx-select-pop__text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.mx-select-pop__tick { display: inline-flex; flex: none; width: 1rem; height: 1rem; color: var(--c-accent); visibility: hidden; }
.mx-select-pop__tick svg { width: 100%; height: 100%; }
.mx-select-pop__opt.is-active { background: var(--c-accent-soft); }
.mx-select-pop__opt[aria-selected='true'] { color: var(--c-accent); font-weight: 600; }
.mx-select-pop__opt[aria-selected='true'] .mx-select-pop__tick { visibility: visible; }
.mx-select-pop__opt[aria-disabled='true'] { color: var(--c-ink-subtle); cursor: default; }
.mx-select-pop__opt[aria-disabled='true'].is-active { background: transparent; }
.mx-select-pop__group {
  padding: 0.5rem 0.625rem 0.25rem; color: var(--mx-label, var(--c-ink-subtle));
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.mx-select-pop__sep { height: 1px; margin: 0.25rem 0.375rem; background: var(--c-line); }
/* The select whose list is open reads as the field in use. */
select[aria-expanded='true'] { border-color: var(--c-accent); }

/* The font picker (kit/fontpick.ts around select[data-mx-fontpick]): the closed button and every row show
   the font's name and a sample in its own face; the list opens IN FLOW (a rail or a sheet has no room for a
   popover) with a search field on top. A font that cannot write the page's language is greyed with why. */
.mx-fontpick { position: relative; min-width: 0; }
.mx-fontpick__btn {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; min-height: 3.25rem; margin: 0;
  padding: 0.375rem 0.75rem; border: max(var(--mx-stroke, 1px), 1px) solid var(--c-line-field);
  border-radius: var(--mx-control-radius, var(--radius-sm)); background: var(--c-surface); color: var(--c-ink);
  font: inherit; text-align: start; cursor: pointer;
}
.mx-fontpick__btn > svg { width: 1rem; height: 1rem; flex: none; color: var(--c-ink-muted); transition: transform 0.15s ease; }
.mx-fontpick.is-open .mx-fontpick__btn > svg { transform: rotate(180deg); }
.mx-fontpick__now { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.mx-fontpick__name { color: var(--c-ink-muted); font-size: 0.75rem; line-height: 1.3; }
.mx-fontpick__sample {
  overflow: hidden; color: var(--c-ink); font-size: 1.125rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap;
}
.mx-fontpick__pop {
  margin-top: 0.375rem; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-surface);
}
.mx-fontpick__q {
  display: block; width: 100%; height: 2.5rem; margin: 0; padding: 0 0.75rem; border: 0; border-bottom: 1px solid var(--c-line);
  border-radius: 0; background: transparent; color: var(--c-ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
}
.mx-fontpick__q:focus-visible { outline: 0; background: var(--c-surface-2); }
.mx-fontpick__list { max-height: min(22rem, 55vh); margin: 0; padding: 0.25rem; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.mx-fontpick__group {
  margin: 0; padding: 0.625rem 0.5rem 0.25rem; color: var(--mx-label, var(--c-ink-subtle));
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.mx-fontpick__opt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.5rem;
  margin: 0; padding: 0.375rem 0.5rem; border-radius: 0.4375rem; cursor: pointer;
}
.mx-fontpick__opt > :not(.mx-fontpick__tick) { grid-column: 1; }
.mx-fontpick__tick { grid-column: 2; grid-row: 1 / span 3; display: none; color: var(--c-accent); }
.mx-fontpick__tick svg { width: 1rem; height: 1rem; }
.mx-fontpick__opt[aria-selected='true'] .mx-fontpick__tick { display: inline-flex; }
.mx-fontpick__opt[aria-selected='true'] .mx-fontpick__name { color: var(--c-accent); font-weight: 600; }
.mx-fontpick__opt.is-active { background: var(--c-surface-2); }
.mx-fontpick__opt[aria-disabled='true'] { cursor: not-allowed; }
.mx-fontpick__opt[aria-disabled='true'] .mx-fontpick__sample { color: var(--c-ink-subtle); }
.mx-fontpick__note { color: var(--c-ink-subtle); font-size: 0.75rem; }
.mx-fontpick__none { margin: 0; padding: 0.75rem; color: var(--c-ink-muted); font-size: 0.875rem; }
@media (hover: none) and (pointer: coarse) {
  .mx-fontpick__opt { min-height: 44px; }
}

/* Background animations as tiles (Studio's design page draws them the same way): each scene's page colour
   under its own edge shading and a dot per colour it shows, in the theme the PICKER's page is in - the
   product writes both (`--mx-tile-light` / `--mx-tile-dark`, from mixtape-design.mjs sceneSwatch) as inline
   custom properties and the kit picks. A radio inside each, so it posts with no script. */
.mx-scene-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.mx-scene-tile { position: relative; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; cursor: pointer; }
.mx-scene-tile > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mx-scene-tile__art {
  display: flex; align-items: flex-end; gap: 0.1875rem; height: 3rem; padding: 0.375rem;
  border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--mx-tile-light, var(--c-surface-2));
}
:root[data-theme='dark'] .mx-scene-tile__art { background: var(--mx-tile-dark, var(--c-surface-2)); }
@media not (prefers-color-scheme: light) { :root:not([data-theme]) .mx-scene-tile__art { background: var(--mx-tile-dark, var(--c-surface-2)); } }
.mx-scene-tile__art > i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-ink) 18%, transparent); }
.mx-scene-tile__art > i[data-dark] { display: none; }
:root[data-theme='dark'] .mx-scene-tile__art > i[data-light] { display: none; }
:root[data-theme='dark'] .mx-scene-tile__art > i[data-dark] { display: block; }
@media not (prefers-color-scheme: light) {
  :root:not([data-theme]) .mx-scene-tile__art > i[data-light] { display: none; }
  :root:not([data-theme]) .mx-scene-tile__art > i[data-dark] { display: block; }
}
.mx-scene-tile__name { overflow: hidden; color: var(--c-ink-muted); font-size: 0.8125rem; text-overflow: ellipsis; white-space: nowrap; }
.mx-scene-tile:hover .mx-scene-tile__art { border-color: var(--c-line-strong); }
.mx-scene-tile:has(> input:checked) .mx-scene-tile__art { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.mx-scene-tile:has(> input:checked) .mx-scene-tile__name { color: var(--c-ink); font-weight: 600; }
.mx-scene-tile:has(> input:focus-visible) .mx-scene-tile__art { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ── A list beside the one open from it - .mx-split (2026-11-14, Hotel QR's chat: "when I'm in a chat, I should see
   a sidebar with the other chats") ─────────────────────────────────────────────────────────────────────────────────
   Two panes from 900px up: the list (.mx-split__list, its own scroll, under the bar) and what is open from it
   (.mx-split__detail). Below that, one pane at a time: the detail when the split says one is open
   (.mx-split--open), else the list - so the phone keeps its list -> item -> back arrow (.mx-split__back, gone where
   the list is beside it). Rows are links (.mx-split__item, aria-current="page" on the open one), each a title line
   with its time and a muted preview; .mx-pulse marks one with something new. Nothing scrolls sideways: every
   line ellipsises. */
.mx-split { display: grid; gap: 0.875rem; min-width: 0; }
.mx-split > * { min-width: 0; }
.mx-split--open > .mx-split__list,
.mx-split:not(.mx-split--open) > .mx-split__detail { display: none; }
.mx-split__list {
  border: 1px solid var(--c-line); border-radius: var(--radius-md, 0.75rem); background: var(--c-surface);
  overflow: hidden auto; overscroll-behavior: contain;
}
.mx-split__title { margin: 0; padding: 0.75rem 0.875rem 0.5rem; color: var(--c-ink-muted); font-size: 0.8125rem; font-weight: 600; }
.mx-split__items { margin: 0; padding: 0 0 0.375rem; list-style: none; }
.mx-split__item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.5rem; row-gap: 0.125rem;
  padding: 0.625rem 0.875rem; color: var(--c-ink); text-decoration: none; border-top: 1px solid var(--c-line);
}
.mx-split__items > li:first-child > .mx-split__item { border-top: 0; }
.mx-split__item:hover { background: var(--c-surface-2); }
/* The open one: the surface raised and an edge in the ink - plainly not the accent glow of one with something new. */
.mx-split__item[aria-current='page'] { background: var(--c-surface-2); box-shadow: inset 3px 0 0 var(--c-ink); }
.mx-split__item[aria-current='page'] .mx-split__name { color: var(--c-accent); }
[dir='rtl'] .mx-split__item[aria-current='page'] { box-shadow: inset -3px 0 0 var(--c-ink); }
.mx-split__item.mx-pulse .mx-split__name { font-weight: 700; }
.mx-split__item:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.mx-split__name { overflow: hidden; font-weight: 600; font-size: 0.9375rem; text-overflow: ellipsis; white-space: nowrap; }
.mx-split__time { color: var(--c-ink-subtle); font-size: 0.75rem; white-space: nowrap; align-self: center; }
.mx-split__preview { grid-column: 1 / -1; overflow: hidden; color: var(--c-ink-muted); font-size: 0.8125rem; text-overflow: ellipsis; white-space: nowrap; }
.mx-split__empty { margin: 0; padding: 0.75rem 0.875rem 1rem; color: var(--c-ink-muted); font-size: 0.875rem; }
@media (min-width: 900px) {
  .mx-split { grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr); align-items: start; }
  .mx-split > .mx-split__list, .mx-split > .mx-split__detail { display: block; }
  .mx-split__list { position: sticky; top: calc(var(--mx-bar-h, 3.5rem) + 1rem); max-height: calc(100dvh - var(--mx-bar-h, 3.5rem) - 2rem); }
  .mx-split__back { display: none; }
}

/* ── Something new here - .mx-pulse (2026-11-14) ────────────────────────────────────────────────────────────────────
   A calm glow in the accent that breathes until the thing is opened (a chat row with an unread message, a list item):
   an overlay's opacity only, so it costs no layout or paint of what is under it. Asked for less motion, it holds
   still - the tint and an accent edge stay, so it is just as plain at a glance. The element it marks is positioned
   (rows and links already are, below). */
.mx-pulse { position: relative; }
.mx-pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: color-mix(in srgb, var(--c-accent) 16%, transparent);
  box-shadow: inset 3px 0 0 var(--c-accent);
  animation: mx-pulse 1.8s ease-in-out infinite;
}
[dir='rtl'] .mx-pulse::after { box-shadow: inset -3px 0 0 var(--c-accent); }
@keyframes mx-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mx-pulse::after { animation: none; opacity: 0.8; }
}

/* ── A count on a destination - .mx-count (2026-11-14) ───────────────────────────────────────────────────────────────
   "3 unread" on the Chat tab and nav link: a small accent pill after the label in the bar, over the icon's corner in
   the tab bar. [hidden] when there is nothing to count. */
.mx-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.125rem; height: 1.125rem; padding: 0 0.3125rem;
  border-radius: 999px; background: var(--c-accent); color: var(--c-accent-ink, #fff); font-size: 0.6875rem; font-weight: 700;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.mx-count[hidden] { display: none; }
.mx-tabs a { position: relative; }
.mx-tabs a .mx-count { position: absolute; top: 0.25rem; inset-inline-start: calc(50% + 0.25rem); }
