/* site/app/desk.css — the website on a computer, shaped like X.
 *
 * SPEC (Syd, 2026-11-04): "add a desktop version of the https://therallygrounds.com/ i dont want the deskop
 * version to be the mobile version pasted onto the web desktop version. I want the web desktop version to
 * use all the same design principles that we started with and apple design philopsohies. But i want it to
 * resemble twitter. in terms of UI." notes/deskx/DESIGN.md is the design: X's web LAYOUT, STRUCTURE AND
 * INTERACTION — three columns centred in the window (a left rail of pill rows with one big button, a 600px
 * column of pages under sticky frosted headers, a right column of a search and a few boxes), centred
 * modals — in the brand's colours, type and words, and never X's name, marks or blue. Apple wins on
 * behaviour, hierarchy and motion (DESIGN.md): translucent materials, a soft scroll edge, instant press
 * feedback, hover only on a fine pointer, springs and ease-out under 300ms, reduced motion and reduced
 * transparency honoured, light and dark both finished.
 * (It replaced release 029's staff-app frame, Kyle 2026-10-13: "make it look like the backend kinda".)
 *
 * ⚠⚠ EVERY RULE IN THIS FILE IS INSIDE ONE MEDIA QUERY, AND IT IS desk.js's DESK_QUERY CHARACTER FOR
 *   CHARACTER: 768px and wider, with a mouse or a trackpad. A phone, a tablet (an iPad Pro on its side
 *   is 1366 wide, and coarse), a phone held sideways and the iPhone app's web view never read a line of
 *   it — which is how "the app looks nice" stays true pixel for pixel. tests/appdesk.test.js fails the
 *   build on a rule outside the query, or on a query that drifts from desk.js's. Nested @media,
 *   @supports and @starting-style blocks are fine; a @keyframes block is not (its `from`/`to` read as
 *   rules), so the one this file names lives in shell.css.
 *   ⚠ So every hover state here is gated to a fine pointer by construction (DESIGN.md §8).
 * ⚠⚠ AND EVERY SELECTOR STARTS `:root:not([data-mode="fixtures"])` — a real account. Sample mode keeps its
 *   painted phone on the navy desk at every width: that is the review desk for the phone. Keyed on the
 *   SAMPLE mode, as ui.css's 701px block is, so a page before its script has run is already the website.
 *   The key is also the weight: (0,2,0) in front of every selector, so these rules win over each screen's
 *   own without a single !important, and they load after every screen's stylesheet (index.html).
 * ⚠ NOTHING HERE WRITES WHAT nav.js WRITES. The pills and docks move by `translate` and `scale` on a phone,
 *   inline, every frame; here they are placed by `left`, `right`, `width` and `bottom` and stand still
 *   (nav.js, desk.js: the bar's model rests on the website). scripts/checks/riders.js reads this file too.
 * ⚠ THE WEBSITE'S OWN TOKENS LIVE HERE (§1), NOT IN tokens.css: the staff app imports tokens.css, and none
 *   of this frame is its.
 *
 * Sections: 1 the frame · 2 the left rail · 3 the right column · 4 the page header and the tab strip ·
 *           5 modals and the account menu · 6 the floating pieces · 7 the screens · 8 hover and focus ·
 *           9 reduced motion, reduced transparency, more contrast
 */

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {

  /* ══ 1 · THE FRAME ══════════════════════════════════════════════════════════════════════════
   * X's three columns, as ONE group centred in the window — rail, the 600px column, a 30px gap, the right
   * column — in three width classes (notes/deskx/DESIGN.md §2.2):
   *   L ≥ 1280   rail 275 (glyphs and words) · 600 · 30 · 350
   *   M 1000–1279 rail 88 (glyphs) · 600 · 30 · clamp(260, W − 742, 350)
   *   S 768–999  rail 88 · 600, no right column (Search becomes a rail row)
   * ⚠ THE MAIN COLUMN IS 600 AT EVERY DESK WIDTH: the width the old fine-pointer column drew every screen
   *   at, so each screen's own container queries keep a layout that is known good.
   * ⚠ round(down, …, 1px) KEEPS EVERY EDGE ON A WHOLE PIXEL, so the column's hairlines are crisp; the
   *   @supports below is the half-pixel fallback for a browser without round() (Chrome < 125).
   * ⚠ 100vw IS SAFE: the document never scrolls (the stage is fixed) and has no scrollbar of its own.
   * ⚠ --sbw IS THE PAGE SCROLLER'S SCROLLBAR, written on <html> by deskframe.js (0 with overlay
   *   scrollbars, 15–17 with classic ones) and taken off the right padding, so the content is 600 exactly. */
  :root:not([data-mode="fixtures"]) {
    --rail: 88px; --main: 600px; --gap: 0px; --rcol: 0px; --sbw: 0px;
    --dkh-h: 53px; --gutter: 16px;
    --group: calc(var(--rail) + var(--main) + var(--gap) + var(--rcol));
    --g-left: max(0px, round(down, calc((100vw - var(--group)) / 2), 1px));
    --main-left: calc(var(--g-left) + var(--rail));
    --main-right: calc(var(--main-left) + var(--main));
    --rcol-left: calc(var(--main-right) + var(--gap));
    /* The frame's hairline, which more contrast deepens (§9); the rows inside pages keep --rule. */
    --dk-line: var(--rule);
    /* A modal's edge: nothing on cream (the shadow is enough), a hairline on navy, where a shadow does
       little (§5; the two theme rules below). */
    --dk-edge: transparent;
    /* The state fills (§8), mixed from the ink so they are navy on cream and cream on navy by themselves. */
    --dk-row-hover: color-mix(in srgb, var(--ink) 3%, transparent);
    --dk-row-press: color-mix(in srgb, var(--ink) 6%, transparent);
    --dk-pill-hover: color-mix(in srgb, var(--ink) 8%, transparent);
    --dk-pill-press: color-mix(in srgb, var(--ink) 12%, transparent);
  }
  @media (min-width: 1000px) {
    :root:not([data-mode="fixtures"]) { --gap: 30px; --rcol: clamp(260px, calc(100vw - 742px), 350px); }
  }
  @media (min-width: 1280px) {
    :root:not([data-mode="fixtures"]) { --rail: 275px; --rcol: 350px; }
  }
  @supports not (width: round(down, 1px, 1px)) {
    :root:not([data-mode="fixtures"]) { --g-left: max(0px, calc((100vw - var(--group)) / 2)); }
  }
  /* ⚠ THE GLASS LOSES ITS saturate(180%) ON THE DARK WEBSITE, and only there: over the navy page the boost
     turns the page's own navy behind every bar a visibly bluer navy (about 8 levels more blue), so at rest
     the header, the tab strip and the right column's search band read as lighter boxes floating on the page
     — X's header is the page's colour until something scrolls under it. On cream the same boost moves the
     colour two levels, which no eye sees, so the light theme keeps the bar's own glass. */
  @media (prefers-color-scheme: dark) {
    :root:not([data-mode="fixtures"]):not([data-theme="light"]) { --dk-edge: var(--rule); --chrome-blur: blur(20px); }
  }
  :root:not([data-mode="fixtures"])[data-theme="dark"] { --dk-edge: var(--rule); --chrome-blur: blur(20px); }

  /* The stage is the window, and the phone's frame — the bezel, the notch, the painted clock — is gone.
     ⚠ `.phone` IS THE WHOLE WINDOW AND KEEPS contain: paint, so every fixed or absolute piece inside it — the
       pills, the scrims and modals, the night page, the launch screen — is placed against the window, and
       `.phone` stays the ONE stacking context they all share with the rail and the right column. */
  :root:not([data-mode="fixtures"]) .stage {
    position: fixed; inset: 0; display: block; min-height: 0; padding: 0;
    background: var(--bg);
  }
  :root:not([data-mode="fixtures"]) .phone {
    position: absolute; inset: 0;
    width: auto; height: auto; max-width: none; max-height: none; min-width: 0;
    border-radius: 0; box-shadow: none;
    contain: paint;
  }
  :root:not([data-mode="fixtures"]) .phone::before,
  :root:not([data-mode="fixtures"]) .statusbar { display: none; }
  /* No status bar to clear. No bar under the floating pieces, so their band is the page's foot: 16px up,
     and the scrollers keep 96px at the end of every page, clear of a live pill or a dock (§6). */
  :root:not([data-mode="fixtures"]) .screen,
  :root:not([data-mode="fixtures"]) .screen.has-livepill { padding: 0; --band-bottom: 16px; --fnav-clear: 96px; }

  /* What a computer does not get: the floating tab bar (the rail is the navigation, and the player-code
     disc goes with it — nobody shows a laptop at the door) and pull-to-refresh (a wheel reads the page, and
     the browser has its own reload; pull.js also refuses the touch of a touchscreen laptop). */
  :root:not([data-mode="fixtures"]) .fnav,
  :root:not([data-mode="fixtures"]) .pull { display: none; }

  /* ── The page's scroller spans the window; its padding puts the content in the column ──
     ⚠⚠ SO THE SCROLLBAR IS THE WINDOW'S AND A WHEEL OVER A MARGIN OR THE GAP SCROLLS THE PAGE, as on X — and
       every screen's own container queries measure 600 (their content box). The rail and the right column
       sit OVER the scroller (z 66); a wheel over them is passed to it by deskframe.js.
     ⚠ scrollbar-gutter: stable, so the scrollbar's room is the same whether the page overflows or not, and
       --sbw is one number. The night page's scroller and the door's full screens are the same column. */
  :root:not([data-mode="fixtures"]) .panes > .pane > .pane-scroll,
  :root:not([data-mode="fixtures"]) .ev-page > .ev > .pane-scroll,
  :root:not([data-mode="fixtures"]) .stopscreen > .pane-scroll {
    padding-left: var(--main-left);
    padding-right: max(0px, calc(100vw - var(--main-right) - var(--sbw)));
    scrollbar-gutter: stable;
  }
  /* A revealed night, a focused field: scrollIntoView lands below the header's glass, or below the header
     and its tab strip (§4). */
  :root:not([data-mode="fixtures"]) .panes > .pane > .pane-scroll { scroll-padding-top: var(--dkh-h); }
  :root:not([data-mode="fixtures"]) .panes > .pane > .pane-scroll:has(.dkt) { scroll-padding-top: calc(2 * var(--dkh-h)); }

  /* ── The column's two hairlines ──
     ⚠ `.screen::before` AND `::after` — ON A PHONE THE STATUS STRIP'S GLASS (shell.css), 0px TALL ON A DESK.
       Here they are X's two 1px lines down the column's edges, the whole window's height, over everything
       but the overlays (z 66, the rail's layer). The content is exactly 600; the lines sit just outside it. */
  :root:not([data-mode="fixtures"]) .screen::before,
  :root:not([data-mode="fixtures"]) .screen::after {
    z-index: 66; top: 0; bottom: 0; right: auto; width: 1px; height: auto;
    background: var(--dk-line);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    -webkit-mask-image: none; mask-image: none;
    opacity: 1; visibility: visible; transition: none;
  }
  :root:not([data-mode="fixtures"]) .screen::before { left: calc(var(--main-left) - 1px); }
  :root:not([data-mode="fixtures"]) .screen::after { left: var(--main-right); }

  /* ══ 2 · THE LEFT RAIL ══════════════════════════════════════════════════════════════════════
   * X's (notes/deskx/DESIGN.md §3): the crest, one pill row per section, Profile, Search (narrow windows
   * only), one big button, and the account at the foot. sidenav.js fills it.
   * ⚠ NO BORDER AND NO FILL: the column's hairline is the only line between them, as on X. Its own scroll
   *   is for a window shorter than ~600px only; deskframe.js passes every other wheel to the page.
   * ⚠ BELOW 1280 IT IS 88 WIDE AND SAYS NOTHING BUT GLYPHS — each word stays inside its control as the
   *   control's name, visually hidden, and is its tooltip (sidenav.js `title`). From 1280 the words show. */
  :root:not([data-mode="fixtures"]) .side {
    position: fixed; z-index: 66; top: 0; bottom: 0; left: var(--g-left); width: var(--rail);
    display: flex; flex-direction: column; align-items: center;
    padding: 0 12px;
    overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none;
    background: transparent;
  }
  /* The crest: a 50px round hit area in a 53px band (the header's height, so the crest sits on the
     header's line), the app icon drawn 30px on its navy plate with a hairline ring — it must not sink into
     the dark theme's navy. */
  :root:not([data-mode="fixtures"]) .side-brand {
    flex: none; position: relative;
    display: grid; place-items: center;
    width: 50px; height: 50px; margin: 2px 0 1px; padding: 0;
    border: 0; border-radius: 9999px;
    background: transparent; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--t-press) var(--ease-out);
  }
  :root:not([data-mode="fixtures"]) .side-crest {
    display: block; width: 30px; height: 30px; border-radius: 7px;
    box-shadow: 0 0 0 1px var(--rule);
  }
  /* The words that are a control's name and not its face. */
  :root:not([data-mode="fixtures"]) .side-name,
  :root:not([data-mode="fixtures"]) .side-label,
  :root:not([data-mode="fixtures"]) .side-act-word {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  /* The rows: X's pills — a 26px glyph and a 20px word, 12px of padding, a 58px pitch. ⚠ THE CURRENT ROW IS
     BOLD WITH A HEAVIER GLYPH AND NO FILL: the weight is the state (X), and it reads in greyscale
     (DESIGN.md §2). */
  :root:not([data-mode="fixtures"]) .side-nav {
    display: grid; justify-items: center; row-gap: 8px; align-content: start; width: 100%;
  }
  :root:not([data-mode="fixtures"]) .side-item {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 20px;
    width: 50px; height: 50px; min-width: 0; margin: 0; padding: 12px;
    border: 0; border-radius: 9999px;
    background: transparent; color: var(--ink);
    font: 400 20px/24px var(--font-ui); letter-spacing: -.012em; text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--t-press) var(--ease-out);
  }
  :root:not([data-mode="fixtures"]) .side-ico { display: block; width: 26px; height: 26px; flex: none; }
  /* B9 · the rail's Profile row carries the avatar's friend-request dot: `--danger`, never orange, a 2px ring
     in the page's ground, at the glyph's top-right corner (12px padding + 26px glyph). */
  :root:not([data-mode="fixtures"]) .side-dot {
    position: absolute; top: 9px; left: 29px; width: 10px; height: 10px; border-radius: 9999px;
    background: var(--danger); box-shadow: 0 0 0 2px var(--bg); pointer-events: none;
  }

  :root:not([data-mode="fixtures"]) .side-item[aria-current="page"] { font-weight: 700; }
  :root:not([data-mode="fixtures"]) .side-item[aria-current="page"] .side-ico { stroke-width: 2.4; }
  /* Search is a rail row only where the right column and its search are gone. */
  @media (min-width: 1000px) {
    :root:not([data-mode="fixtures"]) .side-item.is-search { display: none; }
  }
  /* The one big button (X's "Post"): a 52px circle with its glyph at 88px, a 233px pill with its word from
     1280. ⚠ ORANGE ONLY WHEN IT DOES SOMETHING — Get ticket; the ink pill when it goes somewhere (View ticket,
     Open play): views/deskx.js railAction, the paintJoin rule. */
  :root:not([data-mode="fixtures"]) .side-act {
    flex: none; position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin: 16px 0; padding: 0;
    border: 0; border-radius: 9999px;
    font: 700 17px/20px var(--font-ui); letter-spacing: -.01em; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--t-press) var(--ease-out), color var(--t-press) var(--ease-out);
  }
  :root:not([data-mode="fixtures"]) .side-act[data-tone="action"] { background: var(--action); color: var(--action-ink); }
  :root:not([data-mode="fixtures"]) .side-act[data-tone="ink"] { background: var(--selected-bg); color: var(--selected-ink); }
  :root:not([data-mode="fixtures"]) .side-act-glyph { display: grid; place-items: center; }
  :root:not([data-mode="fixtures"]) .side-act-ico { display: block; width: 24px; height: 24px; }
  /* The account: the 40px initials disc in a 64px circle at 88; the name over the @username and the three
     dots from 1280. It opens the account menu (§5), as X's does. */
  :root:not([data-mode="fixtures"]) .side-who {
    flex: none; margin-top: auto; width: 100%;
    display: grid; justify-items: center;
  }
  :root:not([data-mode="fixtures"]) .side-who-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 64px; height: 64px; min-width: 0; margin: 12px 0; padding: 12px;
    border: 0; border-radius: 9999px;
    background: transparent; color: var(--ink); text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--t-press) var(--ease-out);
  }
  /* ⚠ ui.css `.avatar` is drawn for 40px at 15px type — the account's disc is exactly that. */
  :root:not([data-mode="fixtures"]) .side-av { width: 40px; height: 40px; font-size: 15px; }
  :root:not([data-mode="fixtures"]) .side-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
  :root:not([data-mode="fixtures"]) .side-who-text,
  :root:not([data-mode="fixtures"]) .side-more { display: none; }
  :root:not([data-mode="fixtures"]) .side-who-name,
  :root:not([data-mode="fixtures"]) .side-who-handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  :root:not([data-mode="fixtures"]) .side-who-name { font: 700 15px/20px var(--font-ui); letter-spacing: -.01em; color: var(--ink); }
  :root:not([data-mode="fixtures"]) .side-who-handle { font: 400 15px/20px var(--font-ui); color: var(--ink-tertiary); }
  :root:not([data-mode="fixtures"]) .side-more-ico { display: block; width: 18px; height: 18px; }

  /* ── From 1280: the labelled rail ── */
  @media (min-width: 1280px) {
    :root:not([data-mode="fixtures"]) .side { align-items: stretch; }
    :root:not([data-mode="fixtures"]) .side-brand { align-self: flex-start; }
    :root:not([data-mode="fixtures"]) .side-nav { justify-items: start; }
    /* The pill hugs its content: 12 · glyph · 20 · word · 16 + 12 (X's row). */
    :root:not([data-mode="fixtures"]) .side-item {
      width: auto; max-width: 100%; height: auto; min-height: 50px;
      justify-content: flex-start; padding: 12px 28px 12px 12px;
    }
    :root:not([data-mode="fixtures"]) .side-label,
    :root:not([data-mode="fixtures"]) .side-act-word {
      position: static; width: auto; height: auto; margin: 0;
      overflow: hidden; clip-path: none; text-overflow: ellipsis; min-width: 0;
    }
    :root:not([data-mode="fixtures"]) .side-act { width: min(233px, 100%); padding: 0 24px; }
    :root:not([data-mode="fixtures"]) .side-act-glyph { display: none; }
    :root:not([data-mode="fixtures"]) .side-who { justify-items: stretch; }
    :root:not([data-mode="fixtures"]) .side-who-btn { width: 100%; height: auto; justify-content: flex-start; }
    :root:not([data-mode="fixtures"]) .side-who-text { display: grid; flex: 1; min-width: 0; }
    :root:not([data-mode="fixtures"]) .side-more { display: block; flex: none; }
  }

  /* ══ 3 · THE RIGHT COLUMN ═══════════════════════════════════════════════════════════════════
   * X's (notes/deskx/DESIGN.md §5): a pill search at the top, then boxes with a heavy title, rows and a
   * "Show more", then small grey links. From 1000px of window only. rside.js fills the boxes.
   * ⚠ THE BOXES SCROLL THEMSELVES WHEN THEY ARE TALLER THAN THE WINDOW, scrollbar hidden (X's); past their
   *   end the wheel goes to the page (deskframe.js). */
  :root:not([data-mode="fixtures"]) .rside {
    position: fixed; z-index: 66; top: 0; bottom: 0; left: var(--rcol-left); width: var(--rcol);
    display: flex; flex-direction: column;
  }
  @media (max-width: 999px) {
    :root:not([data-mode="fixtures"]) .rside { display: none; }
  }
  :root:not([data-mode="fixtures"]) .rside-top {
    flex: none; position: relative; z-index: 1;
    display: flex; align-items: center; height: var(--dkh-h);
    background: var(--chrome);
    -webkit-backdrop-filter: var(--chrome-blur); backdrop-filter: var(--chrome-blur);
  }
  /* The search pill: 42px, sunken; focused, the page's own colour with an ink edge — the edge is its focus. */
  :root:not([data-mode="fixtures"]) .rside-search {
    display: flex; align-items: center; gap: 12px;
    width: 100%; height: 42px; padding: 0 16px;
    border: 1px solid transparent; border-radius: 9999px;
    background: var(--bg-sunken); color: var(--ink-tertiary); cursor: text;
    transition: background-color var(--t-press) var(--ease-out), border-color var(--t-press) var(--ease-out);
  }
  :root:not([data-mode="fixtures"]) .rside-search[hidden] { display: none; }
  :root:not([data-mode="fixtures"]) .rside-search:focus-within { background: var(--bg); border-color: var(--ink); }
  :root:not([data-mode="fixtures"]) .rside-ico { display: block; width: 18px; height: 18px; flex: none; }
  :root:not([data-mode="fixtures"]) .rside-input {
    flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0;
    border: 0; outline: 0; background: transparent; color: var(--ink);
    font: 400 15px/20px var(--font-ui);
  }
  :root:not([data-mode="fixtures"]) .rside-input::placeholder { color: var(--ink-tertiary); opacity: 1; }
  :root:not([data-mode="fixtures"]) .rside-widgets {
    flex: 1; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    padding: 12px 0 64px;
    display: grid; gap: 16px; align-content: start;
  }
  :root:not([data-mode="fixtures"]) .rside-list { display: grid; gap: 16px; }
  :root:not([data-mode="fixtures"]) .rside-list:empty { display: none; }
  /* A box: a 16px-radius hairline, a 20px heavy title, rows of 12 × 16, a Show more. */
  :root:not([data-mode="fixtures"]) .rw {
    border: 1px solid var(--dk-line); border-radius: 16px; overflow: hidden;
  }
  :root:not([data-mode="fixtures"]) .rw-h {
    margin: 0; padding: 12px 16px;
    font: 700 20px/24px var(--font-display); letter-spacing: -.01em; color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .rw-row {
    display: flex; align-items: center; gap: 12px;
    width: 100%; min-width: 0; margin: 0; padding: 12px 16px;
    border: 0; background: transparent; color: var(--ink);
    font: 400 15px/20px var(--font-ui); text-align: left;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--t-press) var(--ease-out);
  }
  :root:not([data-mode="fixtures"]) button.rw-row { cursor: pointer; }
  :root:not([data-mode="fixtures"]) .rw-row.is-me { background: var(--bg-sunken); }
  :root:not([data-mode="fixtures"]) .rw-av { width: 40px; height: 40px; font-size: 15px; }
  :root:not([data-mode="fixtures"]) .rw-text { display: grid; flex: 1; min-width: 0; }
  :root:not([data-mode="fixtures"]) .rw-kicker,
  :root:not([data-mode="fixtures"]) .rw-meta {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 400 13px/16px var(--font-ui); color: var(--ink-tertiary); font-variant-numeric: tabular-nums;
  }
  :root:not([data-mode="fixtures"]) .rw-kicker { display: flex; align-items: center; gap: 6px; }
  :root:not([data-mode="fixtures"]) .rw-title {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 700 15px/20px var(--font-ui); letter-spacing: -.01em; color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .rw-handle { font-weight: 400; color: var(--ink-tertiary); }
  :root:not([data-mode="fixtures"]) .rw-live { padding: 3px 7px; font-size: 10px; }
  :root:not([data-mode="fixtures"]) .rw-rank {
    flex: none; width: 20px; text-align: center;
    font: 600 15px/20px var(--font-display); color: var(--ink-tertiary); font-variant-numeric: tabular-nums;
  }
  :root:not([data-mode="fixtures"]) .rw-rating {
    flex: none; font: 600 17px/22px var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums;
  }
  :root:not([data-mode="fixtures"]) .rw-skel-disc { width: 40px; height: 40px; border-radius: 50%; flex: none; }
  :root:not([data-mode="fixtures"]) .rw-skel-line { height: 12px; border-radius: 6px; }
  :root:not([data-mode="fixtures"]) .rw-more {
    display: block; width: 100%; margin: 0; padding: 16px;
    border: 0; background: transparent; color: var(--ink); text-align: left;
    font: 400 15px/20px var(--font-ui); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--t-press) var(--ease-out);
  }
  :root:not([data-mode="fixtures"]) .rside-foot {
    display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 16px;
    font: 400 13px/16px var(--font-ui); color: var(--ink-tertiary);
  }
  :root:not([data-mode="fixtures"]) .rside-foot a { color: inherit; text-decoration: none; }

  /* ══ 4 · THE PAGE HEADER AND THE TAB STRIP ══════════════════════════════════════════════════
   * Every page starts with X's sticky 53px header: the title in Fraunces 20, an optional grey sub-line, on
   * the tab bar's own glass (DESIGN.md §5) — the existing `.screen-head`, with no new DOM.
   * ⚠ A SOFT SCROLL EDGE, NOT A LINE (DESIGN.md §5): a 6px shade under the header, faded in by the page's
   *   own first 24px of scroll — a scroll-driven animation, no script (`dk-edge`, shell.css). Where that is
   *   not supported (Safari before 26) there is no edge and the blur alone separates. A page with a tab
   *   strip shows none: the strip's foot is its line.
   * ⚠ Not in a sheet, whose bar is its title (profile.js). */
  :root:not([data-mode="fixtures"]) .panes .screen-head:not(.pf-sheet *),
  :root:not([data-mode="fixtures"]) .stopscreen .screen-head {
    position: sticky; top: 0; z-index: 5;
    display: flex; flex-direction: column; justify-content: center;
    height: var(--dkh-h); margin: 0; padding: 0 16px;
    background: var(--chrome);
    -webkit-backdrop-filter: var(--chrome-blur); backdrop-filter: var(--chrome-blur);
  }
  :root:not([data-mode="fixtures"]) .panes .screen-head:not(.pf-sheet *) h1,
  :root:not([data-mode="fixtures"]) .stopscreen .screen-head h1 {
    margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 700 20px/24px var(--font-display); letter-spacing: -.01em; color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .panes .screen-head:not(.pf-sheet *) p,
  :root:not([data-mode="fixtures"]) .stopscreen .screen-head p {
    margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 400 13px/16px var(--font-ui); color: var(--ink-tertiary);
  }
  :root:not([data-mode="fixtures"]) .panes .screen-head:not(.pf-sheet *)::after,
  :root:not([data-mode="fixtures"]) .pl-pagebar::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px;
    pointer-events: none;
    background: linear-gradient(color-mix(in srgb, var(--ink) 7%, transparent), transparent);
    opacity: 0;
  }
  @supports (animation-timeline: scroll()) {
    :root:not([data-mode="fixtures"]) .panes .screen-head:not(.pf-sheet *)::after,
    :root:not([data-mode="fixtures"]) .pl-pagebar::after {
      animation: dk-edge linear both;
      animation-timeline: scroll(nearest block);
      animation-range: 0px 24px;
    }
  }
  :root:not([data-mode="fixtures"]) .pane-scroll:has(.dkt) .screen-head::after { display: none; }
  /* The door's full screens: the whole window, the page in the column. */
  :root:not([data-mode="fixtures"]) .stopscreen { padding-top: 0; }

  /* ── The People pages' bar is the same 53px header, with the way back ──
     Already sticky and frosted (players.css); here it gets X's metrics: the back button a 34px circle with
     the house chevron (its "Profile" stays inside it as its name), the page's name left-aligned in Fraunces
     beside it, no end cell. */
  :root:not([data-mode="fixtures"]) .pl-pagebar {
    grid-template-columns: auto minmax(0, 1fr); column-gap: 16px;
    height: var(--dkh-h); margin: 0; padding: 0 16px;
    border-bottom: 0;
  }
  :root:not([data-mode="fixtures"]) .pl-back,
  :root:not([data-mode="fixtures"]) .ev-page .ev-back {
    position: relative; flex: none;
    display: grid; place-items: center;
    width: 34px; height: 34px; min-height: 0; margin: 0 0 0 -6px; padding: 0;
    border-radius: 9999px; color: var(--ink);
    transition: background-color var(--t-press) var(--ease-out);
  }
  :root:not([data-mode="fixtures"]) .pl-back svg,
  :root:not([data-mode="fixtures"]) .ev-page .ev-back svg { width: 20px; height: 20px; }
  :root:not([data-mode="fixtures"]) .pl-back > span,
  :root:not([data-mode="fixtures"]) .ev-page .ev-back > span {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  :root:not([data-mode="fixtures"]) .pl-page-t {
    text-align: left;
    font: 700 20px/24px var(--font-display); letter-spacing: -.01em;
  }
  :root:not([data-mode="fixtures"]) .pl-pagebar-end { display: none; }

  /* ── The night page: a page pushed into the column, the rail and the right column beside it ──
     ⚠ IT STILL COVERS THE WINDOW, UNDER THEM (65 against their 66), so it slides in under the rail as a
       pushed page does on X. Its bar becomes the column's 53px header: the way back, the words "Open play"
       (eventreal.js, `.dk-only`), the crest and the empty cell left out — the night's own name and time
       stay in the page's head block below, like X's "Post" over a post. */
  :root:not([data-mode="fixtures"]) .ev-page > .ev > .pane-scroll {
    padding-top: var(--dkh-h); scroll-padding-top: var(--dkh-h);
  }
  :root:not([data-mode="fixtures"]) .ev-page .ev-bar {
    position: absolute; z-index: 4; top: 0; left: var(--main-left); width: var(--main);
    display: flex; align-items: center; gap: 20px;
    height: var(--dkh-h); padding: 0 16px;
    background: var(--chrome);
    -webkit-backdrop-filter: var(--chrome-blur); backdrop-filter: var(--chrome-blur);
  }
  :root:not([data-mode="fixtures"]) .ev-page .ev-bar-crest,
  :root:not([data-mode="fixtures"]) .ev-page .ev-bar-end { display: none; }
  :root:not([data-mode="fixtures"]) .ev-page .ev-bar > .dk-only {
    display: block; margin: 0; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 700 20px/24px var(--font-display); letter-spacing: -.01em; color: var(--ink);
  }

  /* ── The tab strip (desktabs.js) ──
     X's: equal tabs under the header, 15px words, the current one bold with a 4px fully rounded underline
     under its WORD only. ⚠ THE UNDERLINE IS INK, NEVER ORANGE: it is a state, not an action. It switches at
     once — no slide, no glide (DESIGN.md §4.1: seen tens of times a visit). Sticky under the header. */
  :root:not([data-mode="fixtures"]) .dkt {
    position: sticky; top: var(--dkh-h); z-index: 5;
    display: flex; height: var(--dkh-h);
    background: var(--chrome);
    -webkit-backdrop-filter: var(--chrome-blur); backdrop-filter: var(--chrome-blur);
    border-bottom: 1px solid var(--dk-line);
  }
  :root:not([data-mode="fixtures"]) .dkt-tab {
    flex: 1 1 0; min-width: 0;
    display: flex; align-items: stretch; justify-content: center;
    margin: 0; padding: 0 16px;
    border: 0; background: transparent; color: var(--ink-tertiary);
    font: 500 15px/20px var(--font-ui); letter-spacing: -.008em; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--t-press) var(--ease-out);
  }
  :root:not([data-mode="fixtures"]) .dkt-word {
    position: relative; display: flex; align-items: center;
    min-width: 0; white-space: nowrap;
  }
  :root:not([data-mode="fixtures"]) .dkt-tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
  :root:not([data-mode="fixtures"]) .dkt-tab[aria-selected="true"] .dkt-word::after {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0; margin: 0 auto;
    width: max(100%, 56px); height: 4px; border-radius: 9999px;
    background: var(--ink);
  }
  /* ⚠⚠ WHICH PART SHOWS: one rule per tab id — every stamped part (`data-dk-part`) the scroller's current
     tab (`data-dk-tab`) does not name is hidden. Unstamped parts always show. desktabs.js says why it is
     declarative. The ids are notes/deskx/DESIGN.md §4.3's. */
  :root:not([data-mode="fixtures"]) [data-dk-tab="open"] [data-dk-part]:not([data-dk-part~="open"]),
  :root:not([data-mode="fixtures"]) [data-dk-tab="posts"] [data-dk-part]:not([data-dk-part~="posts"]),
  :root:not([data-mode="fixtures"]) [data-dk-tab="live"] [data-dk-part]:not([data-dk-part~="live"]),
  :root:not([data-mode="fixtures"]) [data-dk-tab="past"] [data-dk-part]:not([data-dk-part~="past"]),
  :root:not([data-mode="fixtures"]) [data-dk-tab="matches"] [data-dk-part]:not([data-dk-part~="matches"]),
  :root:not([data-mode="fixtures"]) [data-dk-tab="record"] [data-dk-part]:not([data-dk-part~="record"]),
  :root:not([data-mode="fixtures"]) [data-dk-tab="people"] [data-dk-part]:not([data-dk-part~="people"]),
  :root:not([data-mode="fixtures"]) [data-dk-tab="partners"] [data-dk-part]:not([data-dk-part~="partners"]),
  :root:not([data-mode="fixtures"]) [data-dk-tab="settings"] [data-dk-part]:not([data-dk-part~="settings"]) { display: none; }

  /* ══ 5 · MODALS AND THE ACCOUNT MENU ════════════════════════════════════════════════════════
   * X's dialogs: centred in the window, 600 wide, a 16px radius, over one dim scrim — never a sheet rising
   * from the foot of a 1440px window. profile.js openSheet() gives the panel `.is-modal` on the website and
   * plays it as a fade and a 4% scale (the glide owns `transform`); here it is placed.
   * ⚠ THE SCRIM IS ALREADY THE WINDOW: it is absolute in `.screen`, which is the window, at z 70 over the
   *   rail and the right column (66) — one dim layer across all of it, as on X.
   * ⚠ CENTRED BY inset: 0, margin: auto AND height: fit-content. The full sheets (a player's profile, the
   *   own-profile sheet) are tall modals: min(760px, the window less 64). */
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal {
    inset: 0; margin: auto;
    width: min(600px, 100% - 32px); height: fit-content; max-height: calc(100% - 64px);
    border: 1px solid var(--dk-edge); border-radius: 16px;
    background: var(--bg-raised); box-shadow: var(--shadow-3);
    transform-origin: 50% 50%; will-change: transform, opacity;
    overflow: hidden;
  }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal.pf-sheet-full { height: min(760px, 100% - 64px); }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal::after { display: none; }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-sheet-head { padding: 0; cursor: auto; touch-action: auto; }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .grabber { display: none; }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-sheet-bar { height: var(--dkh-h); padding: 0 16px; }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-sheet-title {
    font: 700 20px/24px var(--font-display); letter-spacing: -.01em;
  }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-done { min-height: 36px; padding: 0 16px; font-weight: 700; }
  /* ⚠ A MODAL'S CLOSE IS QUIET ON THE WEBSITE, EVERY ONE OF THEM — the one-orange rule (DESIGN.md §6.0): the
     orange in a modal is its own commit (Save, Get ticket, Accept), and a Done beside it made two. The word
     stays (choice 17: a word says what happens); `opt.done.quiet` is the same pill. */
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-done {
    background: transparent; color: var(--ink);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent);
  }
  /* ⚠ THE SAMPLE CHECKOUT'S SHEET (motion.js sheet(), `.sheet-panel`) IS NOT REACHABLE ON A REAL ACCOUNT —
     booking is "Coming soon" — and keeps the bottom sheet, no wider than 640 and centred. */
  :root:not([data-mode="fixtures"]) .sheet-panel {
    left: max(32px, calc((100% - 640px) / 2)); right: max(32px, calc((100% - 640px) / 2));
  }

  /* ── The account menu (sidenav.js) ──
     X's: a small raised box over the account pill, opening from its bottom-left corner. In `.screen`, at 69:
     over the rail, under a modal's scrim. Fades in with a 5% scale in 160ms, out in 120. */
  :root:not([data-mode="fixtures"]) .side-menu {
    position: fixed; z-index: 69;
    left: calc(var(--g-left) + 12px); bottom: 88px;
    min-width: 260px; max-width: 360px; padding: 12px 0;
    border: 1px solid var(--rule); border-radius: 16px;
    background: var(--bg-raised); box-shadow: var(--shadow-3);
    transform-origin: 0 100%;
    transition: opacity 160ms var(--ease-out), scale 160ms var(--ease-out);
  }
  @starting-style {
    :root:not([data-mode="fixtures"]) .side-menu { opacity: 0; scale: .95; }
  }
  /* Focused as a whole when a pointer opens it (sidenav.js): the dialog's own pattern (profile.css `.pf-sheet`). */
  :root:not([data-mode="fixtures"]) .side-menu:focus { outline: none; }
  :root:not([data-mode="fixtures"]) .side-menu.is-out {
    opacity: 0; scale: .95; pointer-events: none; transition-duration: 120ms;
  }
  :root:not([data-mode="fixtures"]) .side-menu-item {
    display: block; width: 100%; margin: 0; padding: 12px 16px;
    border: 0; background: transparent; color: var(--ink); text-align: left;
    font: 700 15px/20px var(--font-ui); letter-spacing: -.01em; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--t-press) var(--ease-out);
  }
  :root:not([data-mode="fixtures"]) .side-menu-item[aria-disabled="true"] { color: var(--ink-tertiary); cursor: default; }
  :root:not([data-mode="fixtures"]) .side-menu-rule { height: 1px; margin: 4px 0; background: var(--rule); }
  :root:not([data-mode="fixtures"]) .side-menu-note {
    margin: 0; padding: 0 16px 8px;
    font: 400 13px/16px var(--font-ui); color: var(--ink-tertiary);
  }

  /* ══ 6 · THE FLOATING PIECES, PUT IN THE COLUMN ═════════════════════════════════════════════
   * Placed by left, right, bottom and width only — never translate or scale, which are nav.js's
   * (scripts/checks/riders.js).
   * ⚠ THE LIVE PILL IN THE COLUMN'S BOTTOM-LEFT, 16px in and up, floating over its last rows like X's
   *   pills; under the night page, as on a phone. ⚠ A DOCK IN THE COLUMN'S BOTTOM-RIGHT, AND IT ALWAYS RISES
   *   52px OVER A LIVE PILL: a 600px column is never wide enough for both side by side (a pill is up to 340
   *   and a dock 380). Nothing on a real account draws a dock yet (ordering and booking are "Coming
   *   soon"); the first that does will be a Cafe cart. */
  :root:not([data-mode="fixtures"]) .screen > .livepill {
    left: calc(var(--main-left) + 16px); right: auto; margin: 0;
    max-width: min(340px, var(--main) - 32px);
  }
  :root:not([data-mode="fixtures"]) .commitdock,
  :root:not([data-mode="fixtures"]) .screen.has-livepill .commitdock {
    left: auto; right: calc(100vw - var(--main-right) + 16px);
    width: min(380px, var(--main) - 32px); max-width: none;
    margin: 0; padding: 0; justify-items: end;
  }
  :root:not([data-mode="fixtures"]) .screen.has-livepill .commitdock { bottom: calc(var(--band-bottom) + 52px); }
  /* The sync pill in the header's right end, centred on its 53px line. */
  :root:not([data-mode="fixtures"]) .syncpill { top: 13px; right: calc(100vw - var(--main-right) + 16px); }
  /* The Profile's own "Saved" pill, centred under the column rather than the window. */
  :root:not([data-mode="fixtures"]) .panes .pf-pill { left: calc(var(--main-left) + var(--main) / 2); }

  /* ══ 7 · THE SCREENS ════════════════════════════════════════════════════════════════════════
   * Each screen at 600px is its own known layout (the width every container query was built for); this
   * section turns its phone's grammar into X's (notes/deskx/DESIGN.md §6): 7.0 the translation every page
   * shares, then News's feed and the Get ticket modal, the Profile's header and tabs, the People pages,
   * Tickets, Courts, Shop and Cafe. ⚠ CSS OVER THE SCREENS' OWN DOM wherever it can be — only News's posts
   * are a renderer of their own (book.js realNightPost), and only for the website.
   * ⚠ THE SCREENS' OWN STICKY BARS PIN UNDER THE HEADER: the Cafe's category rail and the Shop's tools.
   * ⚠ THE SHOP'S TITLE IS WRAPPED (proshop.js topBar(), `.shop-topbar`), and a sticky box sticks only inside
   *   its parent: the wrapper is no box here, so the header pins for the length of the shelf. */
  :root:not([data-mode="fixtures"]) .shop .shop-topbar { display: contents; }
  :root:not([data-mode="fixtures"]) .cafe .cafe-rail,
  :root:not([data-mode="fixtures"]) .shop .shop-tools { top: var(--dkh-h); }

  /* ── 7.0 · The translation every page shares (notes/deskx/DESIGN.md §6.0) ──
     Inside the column's pages and the night page — never in a modal, never in the takeover:
     ⚠⚠ A FLOATING CARD BECOMES A HAIRLINE BOX OR A ROW. X's column is rows on the page's own ground with
       1px lines between them; a raised card with a shadow is the phone's grammar, and on a 600px column
       between two hairlines it is the "mobile version pasted onto the web" Syd named. The navy ticket stays
       a navy plate — it is the thing a door scans.
     ⚠ SECTION LABELS ARE TITLES, NOT EYEBROWS: Fraunces 17, sentence case (the strings already are).
     ⚠ ONE ORANGE: on the website the orange is the rail's Get ticket and a modal's commit. Every other
       primary button in a page is the ink pill, the cream pill on the navy ticket. The phone keeps its
       oranges (none of this reaches it).
     ⚠ ROW TEXT IS 15px (X's), the phone keeps 17 — at desk distance it reads the same. */
  :root:not([data-mode="fixtures"]) .panes .card:not(.navy),
  :root:not([data-mode="fixtures"]) .ev-page .card:not(.navy),
  :root:not([data-mode="fixtures"]) .panes .pf-card,
  :root:not([data-mode="fixtures"]) .panes .soon,
  :root:not([data-mode="fixtures"]) .panes .tkt-card {
    background: transparent; box-shadow: none;
    border: 1px solid var(--rule); border-radius: 16px;
  }
  :root:not([data-mode="fixtures"]) .panes .list,
  :root:not([data-mode="fixtures"]) .ev-page .list {
    margin-inline: 0; background: transparent; border-radius: 0; box-shadow: none;
    border: 0; border-block: 1px solid var(--rule);
  }
  :root:not([data-mode="fixtures"]) .panes .row,
  :root:not([data-mode="fixtures"]) .ev-page .row { padding: 12px 16px; }
  :root:not([data-mode="fixtures"]) .panes .row .title,
  :root:not([data-mode="fixtures"]) .ev-page .row .title { font: 500 15px/20px var(--font-ui); }
  :root:not([data-mode="fixtures"]) .panes .row .value,
  :root:not([data-mode="fixtures"]) .ev-page .row .value { font-size: 15px; }
  :root:not([data-mode="fixtures"]) .panes .sec-head,
  :root:not([data-mode="fixtures"]) .ev-page .sec-head,
  :root:not([data-mode="fixtures"]) .panes .pf-ghead { padding: 16px 16px 12px; align-items: baseline; }
  :root:not([data-mode="fixtures"]) .panes .sec-head h2,
  :root:not([data-mode="fixtures"]) .ev-page .sec-head h2,
  :root:not([data-mode="fixtures"]) .panes .pf-ghead-top h2 {
    font: 600 17px/22px var(--font-display); letter-spacing: -.01em; text-transform: none; color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .panes .sec-head .sec-note,
  :root:not([data-mode="fixtures"]) .panes .sec-head .sec-count,
  :root:not([data-mode="fixtures"]) .ev-page .sec-head .sec-note {
    font: 400 13px/16px var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--ink-tertiary);
  }
  :root:not([data-mode="fixtures"]) .panes .pf-ghead p { font: 400 13px/16px var(--font-ui); }
  /* Empty states: X's — no box, left-aligned in a 400px measure, a big Fraunces title over one grey line. */
  :root:not([data-mode="fixtures"]) .panes .empty,
  :root:not([data-mode="fixtures"]) .ev-page .empty,
  :root:not([data-mode="fixtures"]) .panes .ph-box,
  :root:not([data-mode="fixtures"]) .stopscreen .ph-box,
  :root:not([data-mode="fixtures"]) .panes .tkt-empty {
    max-width: 400px; margin: 0 auto; padding: 32px 16px;
    background: transparent; border-radius: 0; text-align: left;
  }
  :root:not([data-mode="fixtures"]) .panes .empty .empty-t,
  :root:not([data-mode="fixtures"]) .ev-page .empty .empty-t,
  :root:not([data-mode="fixtures"]) .panes .ph-h,
  :root:not([data-mode="fixtures"]) .stopscreen .ph-h,
  :root:not([data-mode="fixtures"]) .panes .tkt-empty-h {
    margin: 0 0 8px; font: 700 31px/36px var(--font-display); letter-spacing: -.015em; color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .panes .empty p:not(.empty-t),
  :root:not([data-mode="fixtures"]) .ev-page .empty p:not(.empty-t),
  :root:not([data-mode="fixtures"]) .panes .ph-p,
  :root:not([data-mode="fixtures"]) .stopscreen .ph-p,
  :root:not([data-mode="fixtures"]) .panes .tkt-empty-quiet { font: 400 15px/20px var(--font-ui); color: var(--ink-tertiary); }
  /* One orange (above). The ink pill: `--selected-bg` is navy on cream and cream on navy. */
  :root:not([data-mode="fixtures"]) .panes .btn-primary,
  :root:not([data-mode="fixtures"]) .ev-page .btn-primary,
  :root:not([data-mode="fixtures"]) .panes .tkt-go {
    background: var(--selected-bg); color: var(--selected-ink); box-shadow: none;
  }
  :root:not([data-mode="fixtures"]) .panes .tkt .btn-primary,
  :root:not([data-mode="fixtures"]) .ev-page .tkt .btn-primary { background: var(--cream); color: var(--navy); }
  :root:not([data-mode="fixtures"]) .panes .sec-head a,
  :root:not([data-mode="fixtures"]) .panes .sec-head button { color: var(--ink); }

  /* ── A part whose own heading is its tab's word (desktabs.js; DESIGN.md §4.3) ──
     The tab names it; its heading would say the same word again under the strip. */
  :root:not([data-mode="fixtures"]) .panes .dk-solo > .sec-head,
  :root:not([data-mode="fixtures"]) .panes .dk-solo > .pf-ghead { display: none; }

  /* ── News: the venue's feed (notes/deskx/DESIGN.md §6.1) ──
     ⚠⚠ OPEN PLAY IS book.js realNightPost(), A POST PER NIGHT, drawn only on the website: the crest, the
       byline, one bold line with the night's facts, the night in an attached box, an action row with the
       pool and the night's one control. ROWS SEPARATED BY HAIRLINES, NOT FLOATING CARDS — X's timeline.
     ⚠ NO HOVER ON A POST: it opens nothing; its button does. A revealed post (book.js revealNight) is
       tinted at once and fades out over 800ms. */
  :root:not([data-mode="fixtures"]) .panes .nw-op,
  :root:not([data-mode="fixtures"]) .panes .nw-feed { margin: 0; }
  :root:not([data-mode="fixtures"]) .panes .bk .bk-nights-week {
    margin: 0; padding: 16px 16px 8px; border-bottom: 1px solid var(--rule);
  }
  :root:not([data-mode="fixtures"]) .panes .bk .bk-cards + .bk-nights-week { padding-top: 16px; }
  :root:not([data-mode="fixtures"]) .panes .bk .bk-nights-week h3 { font: 700 15px/20px var(--font-ui); letter-spacing: -.01em; }
  :root:not([data-mode="fixtures"]) .panes .bk .bk-nights-week .sec-note {
    font: 400 13px/16px var(--font-ui); letter-spacing: 0; font-variant-numeric: tabular-nums;
  }
  :root:not([data-mode="fixtures"]) .panes .bk .bk-foot {
    margin: 0; padding: 16px; font: 400 13px/16px var(--font-ui); color: var(--ink-tertiary);
  }
  :root:not([data-mode="fixtures"]) .panes .bk .bk-ses-blank { margin: 16px; }
  :root:not([data-mode="fixtures"]) .nw-np {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--rule);
    transition: background-color 800ms var(--ease-out);
  }
  :root:not([data-mode="fixtures"]) .nw-np.is-revealed { background: var(--bg-sunken); transition: none; }
  /* The venue's mark on every post, nights and announcements alike: the crest on its navy plate, a 40px
     circle with a hairline ring (a navy plate must not sink into the dark page). "RG" stays in the DOM,
     hidden from the eye as it is from a screen reader. */
  :root:not([data-mode="fixtures"]) .panes .nw-crest {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy) url("/brand/icon-192.png") center / cover no-repeat;
    box-shadow: 0 0 0 1px var(--rule);
    color: transparent; font-size: 0; overflow: hidden;
  }
  :root:not([data-mode="fixtures"]) .panes .nw-col { min-width: 0; }
  :root:not([data-mode="fixtures"]) .panes .nw-by {
    display: flex; align-items: baseline; gap: 4px; margin: 0; min-width: 0;
    font: 400 15px/20px var(--font-ui);
  }
  :root:not([data-mode="fixtures"]) .panes .nw-by-who { font-weight: 700; letter-spacing: -.01em; }
  :root:not([data-mode="fixtures"]) .panes .nw-body {
    margin: 2px 0 0; font: 400 15px/20px var(--font-ui); color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .panes .nw-body strong { font-weight: 700; }
  /* The attached box: X's media card — a 16px radius and a hairline. */
  :root:not([data-mode="fixtures"]) .nw-np-card {
    margin-top: 12px; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden;
  }
  :root:not([data-mode="fixtures"]) .nw-np-band {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  }
  :root:not([data-mode="fixtures"]) .nw-np-when {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 16px 12px;
  }
  :root:not([data-mode="fixtures"]) .nw-np-day { display: grid; min-width: 0; }
  :root:not([data-mode="fixtures"]) .nw-np-dow,
  :root:not([data-mode="fixtures"]) .nw-np-time {
    font: 600 20px/24px var(--font-display); letter-spacing: -.015em; color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .nw-np-time { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
  :root:not([data-mode="fixtures"]) .nw-np-date { font: 400 15px/20px var(--font-ui); color: var(--ink-tertiary); }
  :root:not([data-mode="fixtures"]) .nw-np-facts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px;
    margin: 0; padding: 12px 16px; border-top: 1px solid var(--rule);
  }
  :root:not([data-mode="fixtures"]) .nw-np-fact { display: grid; gap: 2px; min-width: 0; }
  :root:not([data-mode="fixtures"]) .nw-np-k {
    font: 600 11px/14px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-tertiary);
  }
  :root:not([data-mode="fixtures"]) .nw-np-v {
    margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 500 15px/20px var(--font-ui); color: var(--ink); font-variant-numeric: tabular-nums;
  }
  :root:not([data-mode="fixtures"]) .nw-np-per { color: var(--ink-tertiary); font-weight: 400; }
  /* The action row: the pool on the left in quiet grey, the night's one control on the right as a 36px
     pill, its status line under it. */
  :root:not([data-mode="fixtures"]) .nw-np-acts {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    min-height: 36px; margin-top: 12px;
  }
  :root:not([data-mode="fixtures"]) .nw-np-pool {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
    font: 400 13px/16px var(--font-ui); color: var(--ink-tertiary); font-variant-numeric: tabular-nums;
  }
  :root:not([data-mode="fixtures"]) .nw-np-pool-i { display: grid; place-items: center; }
  :root:not([data-mode="fixtures"]) .nw-np-acts > .bk-fine { margin: 0; align-self: center; text-align: right; }
  :root:not([data-mode="fixtures"]) .nw-np .bk-join { display: grid; justify-items: end; gap: 4px; min-width: 0; }
  :root:not([data-mode="fixtures"]) .nw-np .bk-join .btn {
    width: auto; height: 36px; min-height: 36px; padding: 0 16px; border-radius: 9999px;
    font: 700 15px/20px var(--font-ui); letter-spacing: -.01em;
  }
  :root:not([data-mode="fixtures"]) .nw-np .bk-join .bk-fine,
  :root:not([data-mode="fixtures"]) .nw-tm .bk-join .bk-fine {
    margin: 0; text-align: right; font: 400 13px/16px var(--font-ui); color: var(--ink-tertiary);
  }

  /* ── Announcements: the feed news.js already draws as posts, at X's metrics ── */
  :root:not([data-mode="fixtures"]) .panes .nw-post {
    grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; padding: 12px 16px;
    border-bottom: 1px solid var(--rule);
  }
  :root:not([data-mode="fixtures"]) .panes .nw-more {
    margin: 4px 0 0; padding: 0; min-height: 0;
    font: 400 15px/20px var(--font-ui); color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .panes .nw-more:hover { text-decoration: underline; }
  :root:not([data-mode="fixtures"]) .panes .nw-sign { display: none; }

  /* ── The Profile: X's profile header, then the tab strip (notes/deskx/DESIGN.md §6.3) ──
     ⚠⚠ CSS OVER THE EXISTING CARD, NO SECOND DOM: realIdentityCard() already holds every part X's header
       needs — the photo, the name, the @username, the bio, the facts, the stats line, Edit profile — and
       follows `me` and `myRecord` itself. Grid areas and `display: contents` put them in X's order: a 3:1
       banner, the avatar over its bottom edge with a ring of the page's colour, Edit profile at the right,
       then the name, the @username, the bio, the member-since line and the numbers.
     ⚠ THE BANNER IS THE COURT FROM ABOVE, IN LINES — no photo upload exists, so no image: navy, the net at
       half (2px), the two kitchen lines 7ft either side of it (34.1% and 65.9% of 44ft, 1px) and the centre
       service line across each back court. Linear gradients only; fainter on the dark theme's navy, with a
       hairline under it so it reads on a navy page.
     ⚠ The camera badge and the @username's pencil are hidden: neither does anything for a player yet. */
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .card.pf-id {
    --dk-court: color-mix(in srgb, var(--cream) 22%, transparent);
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "banner banner" "photo actions" "name name" "handle handle" "bio bio" "facts facts" "trust trust" "stats stats";
    margin: 0; padding: 0 0 16px;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
  }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id-top,
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id-who { display: contents; }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id::before {
    content: ""; grid-area: banner; aspect-ratio: 3 / 1; margin-bottom: 12px;
    background:
      linear-gradient(var(--dk-court), var(--dk-court)) 50% 0 / 2px 100% no-repeat,
      linear-gradient(var(--dk-court), var(--dk-court)) 34.1% 0 / 1px 100% no-repeat,
      linear-gradient(var(--dk-court), var(--dk-court)) 65.9% 0 / 1px 100% no-repeat,
      linear-gradient(var(--dk-court), var(--dk-court)) 0 50% / 34.1% 1px no-repeat,
      linear-gradient(var(--dk-court), var(--dk-court)) 100% 50% / 34.1% 1px no-repeat,
      var(--navy);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-mode="fixtures"]):not([data-theme="light"]) :is(.panes, .pf-sheet.is-modal) .pf-id { --dk-court: color-mix(in srgb, var(--cream) 12%, transparent); }
    :root:not([data-mode="fixtures"]):not([data-theme="light"]) :is(.panes, .pf-sheet.is-modal) .pf-id::before { background-color: var(--navy-90); box-shadow: inset 0 -1px 0 var(--rule); }
  }
  :root:not([data-mode="fixtures"])[data-theme="dark"] :is(.panes, .pf-sheet.is-modal) .pf-id { --dk-court: color-mix(in srgb, var(--cream) 12%, transparent); }
  :root:not([data-mode="fixtures"])[data-theme="dark"] :is(.panes, .pf-sheet.is-modal) .pf-id::before { background-color: var(--navy-90); box-shadow: inset 0 -1px 0 var(--rule); }
  /* ⚠ A PLAYER'S CARD (profile/sheet.js) PUTS ITS INITIALS STRAIGHT IN `.pf-id-top`, NO `.pf-photo` — and its
     skeleton a `.pf-skel-av` — so both are placed the same way. */
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-photo,
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-id-top > .avatar,
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-id-top > .pf-skel-av { grid-area: photo; align-self: start; margin: -79px 0 0 16px; }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-photo .avatar.lg,
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-id-top > .avatar.lg,
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-id-top > .pf-skel-av {
    width: 134px; height: 134px; font-size: 50px; box-shadow: 0 0 0 4px var(--dk-ring, var(--bg));
  }
  /* A sheet's page keeps an empty title block for the phone's spacing under its bar; a modal's banner
     sits right under the bar. */
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pane-scroll > .screen-head:empty { display: none; }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-photo-badge,
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-at-ico { display: none; }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id-actions {
    grid-area: actions; justify-self: end; align-self: start; margin: 0; padding: 0 16px;
  }
  /* Edit profile: X's outlined pill, its pencil left out. */
  :root:not([data-mode="fixtures"]) .panes .pf-id .pf-btn {
    flex: none; min-width: 0; height: 36px; min-height: 36px; padding: 0 16px;
    border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 9999px;
    background: transparent; color: var(--ink); font: 700 15px/20px var(--font-ui); letter-spacing: -.01em;
  }
  :root:not([data-mode="fixtures"]) .panes .pf-id .pf-btn-ico { display: none; }
  /* B20 · Share profile sits LEFT of Edit profile, so Edit profile keeps the right edge X gives its one action. */
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-share-go { order: -1; }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-name-line { grid-area: name; padding: 4px 16px 0; }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-name { font: 700 20px/24px var(--font-display); letter-spacing: -.012em; }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-handle {
    grid-area: handle; margin: 0; padding: 0 16px; font: 400 15px/20px var(--font-ui); color: var(--ink-tertiary);
  }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-bio {
    grid-area: bio; margin: 0; padding: 12px 16px 0; font: 400 15px/20px var(--font-ui); color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-id-facts { grid-area: facts; margin: 0; padding: 12px 16px 0; gap: 8px; }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-since { font: 400 15px/20px var(--font-ui); }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-trust-line { grid-area: trust; margin: 0; padding: 4px 16px 0; }
  /* X's numbers line: the number bold first, its word grey after — "1045 Rating   7 Matches". */
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-id-stats {
    grid-area: stats; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 12px 16px 0;
  }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-id-stat { gap: 4px; }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-id-stat-v {
    order: -1; font: 700 14px/16px var(--font-ui); color: var(--ink); font-variant-numeric: tabular-nums;
  }
  :root:not([data-mode="fixtures"]) :is(.panes, .pf-sheet.is-modal) .pf-id .pf-id-stat-k { font: 400 14px/16px var(--font-ui); color: var(--ink-tertiary); }
  /* ⚠ A PLAYER'S PROFILE AND THE OWN-PROFILE SHEET ARE THE SAME HEADER IN A MODAL (DESIGN.md §6.10), without
     the strip: the ring is the modal's colour, and the card's own buttons — Accept, Decline, Report — keep
     their tones at X's pill size. */
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal { --dk-ring: var(--bg-raised); }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-id .pf-id-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 420px; }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-id .pf-btn {
    flex: none; min-width: 0; height: 36px; min-height: 36px; padding: 0 16px; border-radius: 9999px;
    font: 700 15px/20px var(--font-ui); letter-spacing: -.01em;
  }
  /* The header's sub-line (profile.js realPage): whose profile, under the title. */
  :root:not([data-mode="fixtures"]) .panes .screen-head > .dk-only { display: block; }
  /* The tab strip runs straight under the header block, so the header has no line of its own. */
  :root:not([data-mode="fixtures"]) .panes .pf-id + .dkt { margin-top: 0; }

  /* ── The Profile's tabs (DESIGN.md §6.3) ──
     Matches: the match cards are rows under their day's divider (Inter 15, its count grey), the score at
     the end in Fraunces; "More matches" a quiet full-width row. Record: the four cards as hairline boxes,
     two by two. People and Partners: column rows. Settings: Appearance and Account under their headings. */
  :root:not([data-mode="fixtures"]) .panes .pf-sec { margin: 0; }
  :root:not([data-mode="fixtures"]) .panes .pf-mh-day {
    padding: 16px 16px 8px; border-bottom: 1px solid var(--rule);
  }
  :root:not([data-mode="fixtures"]) .panes .pf-mh-day h2 { font: 700 15px/20px var(--font-ui); letter-spacing: -.01em; }
  :root:not([data-mode="fixtures"]) .panes .pf-mh-day-n { font: 400 13px/16px var(--font-ui); }
  :root:not([data-mode="fixtures"]) .panes .pf-mh-match,
  :root:not([data-mode="fixtures"]) .panes .pf-mh-match.is-open {
    margin: 0; background: transparent; box-shadow: none; border-radius: 0;
    border-bottom: 1px solid var(--rule);
  }
  :root:not([data-mode="fixtures"]) .panes .pf-mh-head { padding: 12px 16px; }
  :root:not([data-mode="fixtures"]) .panes .pf-st-more {
    width: 100%; margin: 0; padding: 16px; border-radius: 0;
    background: transparent; color: var(--ink); font: 400 15px/20px var(--font-ui);
    justify-content: flex-start;
  }
  /* ⚠ THE PHONE'S 10px GAP STAYS: a card is calc(50% − 5px) wide (profile.css), two to a row only at 10. */
  :root:not([data-mode="fixtures"]) .panes .pf-cards { margin: 0; padding: 16px; }
  :root:not([data-mode="fixtures"]) .panes .pf-venue .pf-cards { margin: 0; }
  :root:not([data-mode="fixtures"]) .panes .pf-note { margin: 12px 16px 0; font: 400 13px/16px var(--font-ui); }
  :root:not([data-mode="fixtures"]) .panes .pf-real-foot { margin: 16px; }
  :root:not([data-mode="fixtures"]) .panes .pf-sec + .pf-sec { margin-top: 8px; }
  :root:not([data-mode="fixtures"]) .panes .pf-sec .list + .list { margin-top: 0; border-top: 0; }
  /* ⚠ A PART UNDER THE STRIP STARTS AT THE STRIP'S FOOT, AND THAT FOOT IS ITS ONE LINE. The rule above still
     matches a part whose earlier siblings the strip has hidden (`+` counts display: none ones), so People and
     Partners sat 8px under the strip with their list's own top hairline: two lines 8px apart. */
  :root:not([data-mode="fixtures"]) .panes .pf-sec.dk-solo { margin-top: 0; }
  :root:not([data-mode="fixtures"]) .panes .dk-solo > .pf-ghead + .list { border-top: 0; }
  /* The visibility picker is a row in its list like the two switches under it, so it has their hairline. */
  :root:not([data-mode="fixtures"]) .panes .list > .pf-dd:not(:last-child) { border-bottom: 1px solid var(--rule); }
  /* ⚠ A NAME IN A ROW IS BOLD (X's, DESIGN.md §7.1), as the right column's rows already are: a row with a
     player's disc — the board, Friends, Recently played, Partners — names its player in 700. Rows without
     one (the settings) keep the phone's 500. */
  :root:not([data-mode="fixtures"]) .panes .row:has(.avatar) .title { font-weight: 700; }

  /* ── The four People pages (DESIGN.md §6.4): their own bar is the 53px header (§4); their lists are
     rows already — here they lose the raised ground. Ranking's "Your position" is its three numbers in a
     hairline box with "Show me on the board" quiet under it; Friends' groups are sub-headings. */
  :root:not([data-mode="fixtures"]) .panes .pl-sec { margin: 0 0 8px; }
  :root:not([data-mode="fixtures"]) .panes .pl-row:not(.is-me),
  :root:not([data-mode="fixtures"]) .panes .pl-invite-row { background: transparent; }
  :root:not([data-mode="fixtures"]) .panes .pl-you.card {
    margin: 0; padding: 0 0 16px; border: 0; border-radius: 0; border-bottom: 1px solid var(--rule);
  }
  :root:not([data-mode="fixtures"]) .panes .pl-you-head { margin: 0; padding: 16px 16px 12px; }
  :root:not([data-mode="fixtures"]) .panes .pl-you-h {
    font: 600 17px/22px var(--font-display); letter-spacing: -.01em; text-transform: none; color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .panes .pl-stats,
  :root:not([data-mode="fixtures"]) .panes .pl-you-stats {
    margin: 0 16px 12px; box-shadow: none; background: var(--rule);
    border: 1px solid var(--rule); border-radius: 16px;
  }
  :root:not([data-mode="fixtures"]) .panes .pl-stat,
  :root:not([data-mode="fixtures"]) .panes .pl-you-stats .pl-stat { background: var(--bg); padding: 12px 6px; }
  :root:not([data-mode="fixtures"]) .panes .pl-you-btn {
    width: auto; margin: 0 16px; padding: 0 16px; min-height: 36px; height: 36px;
    background: transparent; color: var(--ink); font: 700 15px/20px var(--font-ui);
    border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 9999px;
  }
  :root:not([data-mode="fixtures"]) .panes .pl-caption { margin: 0 16px 12px; font: 400 13px/16px var(--font-ui); }
  :root:not([data-mode="fixtures"]) .panes .pl-period,
  :root:not([data-mode="fixtures"]) .panes .pl-count { font: 400 13px/16px var(--font-ui); letter-spacing: 0; }
  /* X's 40px avatar in a row (the board's is 30 on a phone, where its rank and its rating share 343px). */
  :root:not([data-mode="fixtures"]) .panes .pl-board-row .avatar { width: 40px; height: 40px; font-size: 15px; }
  :root:not([data-mode="fixtures"]) .panes .pl-sub-head {
    margin: 0; padding: 16px 16px 8px;
    font: 600 17px/22px var(--font-display); letter-spacing: -.01em; text-transform: none; color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .panes .pl-sec .list,
  :root:not([data-mode="fixtures"]) .panes .pl-sec .empty { margin-inline: 0; }
  /* Find a player's field has 12px of the page under the header: flush against it, its focus ring went
     under the glass. */
  :root:not([data-mode="fixtures"]) .panes .pl-search { padding-top: 12px; }

  /* ── Clubs (the clubs package, 2026-11-06; notes/night/CLUBS-SPEC.md §6): the fifth People page, the same
     rows. A club's badge is X's 40px disc in a row, a squircle as everywhere (clubs.css says why); the
     empty state's two buttons are quiet pills, left-aligned, no box. In the club modal the commit is the
     orange (Join, Request to join, Accept invitation, Create club, Save); Manage club is not a commit, and is
     X's outlined pill. */
  :root:not([data-mode="fixtures"]) .panes .pl-club-row .clb-logo,
  :root:not([data-mode="fixtures"]) .panes .pl-clubs .pl-invite-row .clb-logo {
    width: 40px; height: 40px; border-radius: 11px; font-size: 15px;
  }
  :root:not([data-mode="fixtures"]) .panes .pl-clubs .pl-empty { justify-items: start; }
  :root:not([data-mode="fixtures"]) .panes .pl-clubs .pl-empty-pair { justify-content: flex-start; }
  :root:not([data-mode="fixtures"]) .panes .pl-clubs .pl-empty-btn {
    min-height: 36px; height: 36px; padding: 0 16px; background: transparent; color: var(--ink);
    font: 700 15px/20px var(--font-ui); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent);
    border-radius: 9999px;
  }
  :root:not([data-mode="fixtures"]) .panes .pl-clubs .pl-wide-btn { margin: 12px 16px 0; width: auto; }
  :root:not([data-mode="fixtures"]) .panes .pl-clubs .pl-sync,
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pl-club .pl-sync { margin-inline: 16px; }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pl-manage-go {
    background: transparent; color: var(--ink);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent);
  }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pl-club-list { margin-inline: 0; }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pl-club .pl-row:not(.is-me),
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pl-club .pl-invite-row { background: transparent; }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pl-club .pl-sub-head {
    margin: 0; padding: 16px 16px 8px;
    font: 600 17px/22px var(--font-display); letter-spacing: -.01em; text-transform: none; color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pl-club .pl-stats {
    margin: 0 16px 16px; box-shadow: none; background: var(--rule); border: 1px solid var(--rule); border-radius: 16px;
  }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pl-club .pl-stat { background: var(--bg); padding: 12px 6px; }
  /* Manage club's "‹ Club" is a word with its chevron, not the page bar's round icon (whose word is hidden). */
  :root:not([data-mode="fixtures"]) .pl-manage-top .pl-back {
    display: inline-flex; align-items: center; gap: 4px; width: auto; height: 34px; margin: 0 0 0 4px; padding: 0 12px 0 8px;
    font: 700 15px/20px var(--font-ui);
  }
  :root:not([data-mode="fixtures"]) .pl-manage-top .pl-back svg { width: 16px; height: 16px; }

  /* ── Tickets (DESIGN.md §6.5): the navy ticket inside the column, 16px each side; the empty state X's,
     and the next night's offer as a hairline box under it; the pile as it is. */
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt { margin: 16px; box-shadow: none; }
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-note { margin: 0; padding: 0 16px 16px; }
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-note p { font: 400 13px/16px var(--font-ui); }
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-empty { max-width: none; margin: 0; padding: 32px 0 8px; }
  /* ⚠ ON THE COLUMN'S 16px GUTTER, NOT CENTRED LIKE THE OTHER EMPTY STATES: Tickets' is followed by the
     next night's offer and "Book a court", both on the gutter, and a block centred over them read as indented
     by 100px. The 400px measure stays. */
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-empty-h,
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-empty-quiet { max-width: 400px; margin-inline: 0; padding-inline: 16px; }
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-eyebrow {
    margin: 32px 16px 12px;
    font: 600 17px/22px var(--font-display); letter-spacing: -.01em; text-transform: none; color: var(--ink);
  }
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-card { width: calc(100% - 32px); margin: 0 16px; padding: 12px 16px 16px; }
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-card.is-second { margin-top: 12px; }
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-card-h { font: 700 20px/24px var(--font-display); letter-spacing: -.012em; }
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-meta { font: 400 15px/20px var(--font-ui); }
  :root:not([data-mode="fixtures"]) .panes .tkts .tkt-go {
    width: auto; justify-self: start; display: inline-grid; margin-top: 12px;
    min-height: 36px; padding: 0 16px; font: 700 15px/20px var(--font-ui);
  }
  :root:not([data-mode="fixtures"]) .panes .tkts .pile { margin: 16px; }
  /* The empty pile ("None yet") is a frame, not a receipt: a hairline box on the page's ground like every
     other box in the column, not the one raised white card left on the website. A real pile keeps its raised
     cards — they stack, and a card lying on a card needs its own ground. */
  :root:not([data-mode="fixtures"]) .panes .tkts .pile.is-frame .pcard {
    background: transparent; box-shadow: none; border: 1px solid var(--rule); border-radius: 16px;
  }

  /* ── Courts, Shop, Cafe (DESIGN.md §6.6–6.8): still "Coming soon", drawn whole, at 600px; the notice a
     hairline box, the raised tiles and chips hairline boxes on the page's own ground. */
  :root:not([data-mode="fixtures"]) .panes .soon { margin: 16px; }
  :root:not([data-mode="fixtures"]) .panes .bk .bk-month:not([aria-selected="true"]):not(.is-on) { background: transparent; }
  :root:not([data-mode="fixtures"]) .panes .bk .bk-dd-trigger { background: transparent; box-shadow: none; border: 1px solid var(--rule); }
  :root:not([data-mode="fixtures"]) .panes .shop .pcard,
  :root:not([data-mode="fixtures"]) .panes .cafe .sigcard,
  :root:not([data-mode="fixtures"]) .panes .shop .totals,
  :root:not([data-mode="fixtures"]) .panes .cafe .totals {
    background: transparent; box-shadow: none; border: 1px solid var(--rule); border-radius: 16px;
  }

  /* ── The Get ticket modal (book.js openTicketModal; DESIGN.md §6.2) ──
     The night's attached box, then its control in full: the level, the orange Get ticket, its line. */
  :root:not([data-mode="fixtures"]) .nw-tm { display: grid; gap: 16px; padding: 16px; }
  :root:not([data-mode="fixtures"]) .nw-tm .nw-np-card { margin: 0; }
  /* ⚠ The level's 12px under it is its own inline margin (book.js levelStep), so the control has no gap. */
  :root:not([data-mode="fixtures"]) .nw-tm .bk-join { display: grid; gap: 0; }
  :root:not([data-mode="fixtures"]) .nw-tm .bk-join .btn {
    height: 52px; min-height: 52px; border-radius: 9999px; font: 700 17px/20px var(--font-ui); letter-spacing: -.01em;
  }
  :root:not([data-mode="fixtures"]) .nw-tm .bk-join .bk-fine { margin-top: 8px; text-align: center; }
  :root:not([data-mode="fixtures"]) .nw-tm .bk-dd-trigger { background: transparent; box-shadow: none; border: 1px solid var(--rule); }
  :root:not([data-mode="fixtures"]) .nw-tm-sheet .pf-sheet-body { padding-bottom: 0; }

  /* ══ 8 · HOVER, PRESS AND FOCUS ═════════════════════════════════════════════════════════════
   * A website's controls say they are controls. ⚠ COLOUR ONLY — a fill, never a move. `translate` and
   *   `scale` are the press's (pressable() writes the scale inline on pointer-down) and riders.js keeps this
   *   file clear of both on the floating pieces; a hover that also nudged the control would fight the press
   *   it leads into.
   * ⚠ `:hover:not(:active)` — NOT `:hover` ALONE, BECAUSE A PRESS IS A HOVER: the pressed fill is its own
   *   step, so hover, press and rest are three fills.
   * ⚠ A SWITCHED-OFF CONTROL SAYS NOTHING: `:disabled` and `aria-disabled` are left out.
   * The fills (notes/deskx/DESIGN.md §7.4): rows, tabs, a box's rows and Show more 3% ink (6% pressed); the
   * rail's pills and icon circles 8% (12%); the ink pill toward the page's colour; the orange halfway to its
   * pressed colour. */
  :root:not([data-mode="fixtures"]) .btn-primary:not(:disabled):not([aria-disabled="true"]):hover:not(:active) {
    background: color-mix(in srgb, var(--action) 55%, var(--action-press));
  }
  :root:not([data-mode="fixtures"]) .btn-quiet:not(:disabled):not([aria-disabled="true"]):hover:not(:active) {
    background: color-mix(in srgb, var(--bg-sunken) 86%, var(--ink));
  }
  /* The navy button is a different fill in each theme (ui.css), so its hover is a veil over whichever it
     is: a pale wash laid on top, which lifts navy and the dark theme's lighter navy alike. */
  :root:not([data-mode="fixtures"]) .btn-navy:not(:disabled):not([aria-disabled="true"]):hover:not(:active) {
    background-image: linear-gradient(rgba(246, 248, 237, .1), rgba(246, 248, 237, .1));
  }
  :root:not([data-mode="fixtures"]) button.row:not(:disabled):not(.is-me):hover:not(:active) {
    background: var(--bg-sunken);
  }
  /* In a page the primary button is the ink pill (§7, the one orange), so its hover goes toward the page's
     colour as the rail's ink pill does; on the navy ticket it is the cream pill, which goes toward navy. The
     outlined pills (Edit profile, Show me on the board) take the 6% fill; the rows that open something —
     a match, a Tickets offer, a board row — the row's 3%. */
  :root:not([data-mode="fixtures"]) .panes .btn-primary:not(:disabled):not([aria-disabled="true"]):hover:not(:active),
  :root:not([data-mode="fixtures"]) .ev-page .btn-primary:not(:disabled):not([aria-disabled="true"]):hover:not(:active) {
    background: color-mix(in srgb, var(--selected-bg) 88%, var(--bg));
  }
  :root:not([data-mode="fixtures"]) .panes .tkt .btn-primary:not(:disabled):not([aria-disabled="true"]):hover:not(:active) {
    background: color-mix(in srgb, var(--cream) 88%, var(--navy));
  }
  :root:not([data-mode="fixtures"]) .panes .pf-id .pf-btn:not(:disabled):hover:not(:active),
  :root:not([data-mode="fixtures"]) .panes .pl-you-btn:not(:disabled):hover:not(:active) {
    background: color-mix(in srgb, var(--ink) 6%, transparent);
  }
  :root:not([data-mode="fixtures"]) .pf-sheet.is-modal .pf-done:hover:not(:active) { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  :root:not([data-mode="fixtures"]) .panes .pf-mh-head:hover:not(:active),
  :root:not([data-mode="fixtures"]) .panes .tkt-card:hover:not(:active),
  :root:not([data-mode="fixtures"]) .panes .pf-st-more:not(:disabled):hover:not(:active),
  :root:not([data-mode="fixtures"]) .panes button.pl-row:not(.is-me):hover:not(:active) { background: var(--dk-row-hover); }
  :root:not([data-mode="fixtures"]) .panes .pf-mh-head:active,
  :root:not([data-mode="fixtures"]) .panes .tkt-card:active,
  :root:not([data-mode="fixtures"]) .panes .pf-st-more:not(:disabled):active,
  :root:not([data-mode="fixtures"]) .panes button.pl-row:not(.is-me):active { background: var(--dk-row-press); }
  /* The rail, and the two ways back. */
  :root:not([data-mode="fixtures"]) .side-brand:hover:not(:active),
  :root:not([data-mode="fixtures"]) .side-item:hover:not(:active),
  :root:not([data-mode="fixtures"]) .side-who-btn:hover:not(:active),
  :root:not([data-mode="fixtures"]) .pl-back:hover:not(:active),
  :root:not([data-mode="fixtures"]) .ev-page .ev-back:hover:not(:active) { background: var(--dk-pill-hover); }
  :root:not([data-mode="fixtures"]) .side-brand:active,
  :root:not([data-mode="fixtures"]) .side-item:active,
  :root:not([data-mode="fixtures"]) .side-who-btn:active,
  :root:not([data-mode="fixtures"]) .pl-back:active,
  :root:not([data-mode="fixtures"]) .ev-page .ev-back:active { background: var(--dk-pill-press); }
  :root:not([data-mode="fixtures"]) .side-act[data-tone="action"]:hover:not(:active) {
    background: color-mix(in srgb, var(--action) 55%, var(--action-press));
  }
  :root:not([data-mode="fixtures"]) .side-act[data-tone="action"]:active { background: var(--action-press); }
  :root:not([data-mode="fixtures"]) .side-act[data-tone="ink"]:hover:not(:active) {
    background: color-mix(in srgb, var(--selected-bg) 88%, var(--bg));
  }
  :root:not([data-mode="fixtures"]) .side-act[data-tone="ink"]:active {
    background: color-mix(in srgb, var(--selected-bg) 80%, var(--bg));
  }
  /* The right column, the tabs, the menu. */
  :root:not([data-mode="fixtures"]) button.rw-row:not(.is-me):hover:not(:active),
  :root:not([data-mode="fixtures"]) .rw-more:hover:not(:active),
  :root:not([data-mode="fixtures"]) .dkt-tab:hover:not(:active),
  :root:not([data-mode="fixtures"]) .side-menu-item:not([aria-disabled="true"]):hover:not(:active) { background: var(--dk-row-hover); }
  :root:not([data-mode="fixtures"]) button.rw-row:not(.is-me):active,
  :root:not([data-mode="fixtures"]) .rw-more:active,
  :root:not([data-mode="fixtures"]) .dkt-tab:active,
  :root:not([data-mode="fixtures"]) .side-menu-item:not([aria-disabled="true"]):active { background: var(--dk-row-press); }
  :root:not([data-mode="fixtures"]) .rside-search:hover:not(:focus-within) { background: color-mix(in srgb, var(--bg-sunken) 92%, var(--ink)); }
  :root:not([data-mode="fixtures"]) .rside-foot a:hover { text-decoration: underline; }
  /* Focus: a 2px ring for the keyboard, inside a full-width row so the column's edge cannot clip it. */
  :root:not([data-mode="fixtures"]) .side-brand:focus-visible,
  :root:not([data-mode="fixtures"]) .side-item:focus-visible,
  :root:not([data-mode="fixtures"]) .side-act:focus-visible,
  :root:not([data-mode="fixtures"]) .side-who-btn:focus-visible,
  :root:not([data-mode="fixtures"]) .pl-back:focus-visible,
  :root:not([data-mode="fixtures"]) .ev-page .ev-back:focus-visible,
  :root:not([data-mode="fixtures"]) .rside-foot a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  :root:not([data-mode="fixtures"]) .rw-row:focus-visible,
  :root:not([data-mode="fixtures"]) .rw-more:focus-visible,
  :root:not([data-mode="fixtures"]) .dkt-tab:focus-visible,
  :root:not([data-mode="fixtures"]) .side-menu-item:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

  /* ══ 9 · REDUCED MOTION, REDUCED TRANSPARENCY, MORE CONTRAST ═════════════════════════════════
   * Reduced motion: the menu only fades (no scale) — the modals' scale is profile.js's, which drops it too;
   * the hover fills, the press fills and the scroll edge are colour and opacity, which DESIGN.md §4.8 keeps
   * — gentler, not absent — so they are named and left; pressable() already drops the press's scale.
   * Reduced transparency: the header, the tab strip, the right column's top and the night page's header go
   * solid, no blur. More contrast: the frame's hairlines deepen to 45% ink and the glass goes solid. */
  @media (prefers-reduced-motion: reduce) {
    :root:not([data-mode="fixtures"]) .side-menu,
    :root:not([data-mode="fixtures"]) .side-menu.is-out { scale: none; transition-property: opacity; }
    @starting-style {
      :root:not([data-mode="fixtures"]) .side-menu { scale: none; }
    }
    :root:not([data-mode="fixtures"]) .side-brand,
    :root:not([data-mode="fixtures"]) .side-item,
    :root:not([data-mode="fixtures"]) .side-act,
    :root:not([data-mode="fixtures"]) .side-who-btn,
    :root:not([data-mode="fixtures"]) .rw-row,
    :root:not([data-mode="fixtures"]) .rw-more,
    :root:not([data-mode="fixtures"]) .dkt-tab,
    :root:not([data-mode="fixtures"]) .side-menu-item { transition-property: background-color, color; }
  }
  @media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    :root:not([data-mode="fixtures"]) .panes .screen-head:not(.pf-sheet *),
    :root:not([data-mode="fixtures"]) .stopscreen .screen-head,
    :root:not([data-mode="fixtures"]) .pl-pagebar,
    :root:not([data-mode="fixtures"]) .dkt,
    :root:not([data-mode="fixtures"]) .rside-top,
    :root:not([data-mode="fixtures"]) .ev-page .ev-bar {
      background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none;
    }
  }
  @media (prefers-contrast: more) {
    :root:not([data-mode="fixtures"]) { --dk-line: color-mix(in srgb, var(--ink) 45%, transparent); }
  }
}
