/* v5 Home — the barber's week in five seconds.
   =====================================================================
   THE PALETTE. EVERY COLOUR ON THIS SCREEN IS IN THIS ONE BLOCK.
   Logan is building on blue but not sold on it: changing the brand is
   editing these lines and nothing else. Nothing below this block contains
   a colour value — only var(--c-…). Brand values are app.css's
   (docs/brand-tokens.md): navy (legacy), brand blue var(--accent-secondary) / var(--accent-primary),
   bone (legacy), ink (legacy). Green and red are used ONLY by the change
   pills (Logan's one exception), via --c-up* and --c-down*.
   ===================================================================== */
:root {
  /* brand */

  /* surfaces */
  /* THE SECONDARY SURFACE, AND BLOCKER 1 OF THE CLAY CONVERSION.
     It used to be bone ((legacy)) on a white card: 1.14:1, which under clay
     means a card-inside-a-card, an idle pill, a search box and a list row are
     ALL distinguished by shadow alone. The study found the shadow measures
     1.44:1 where 1.4.11 asks 3:1, and that a shadow dark enough to pass has
     stopped being clay. So the fill now carries a real step of its own —
     1.37:1 on white, 1.42:1 on bone, measured — and the clay lighting is
     modelling rather than load-bearing. The remaining 3:1 proof is --c-ring,
     below, and it is only needed where the surface is a CONTROL.
     ink-3 is 3.75:1 on this fill, so ink-3 NEVER sits on --c-sunk: every
     label on a secondary surface is ink-2 (6.3:1). That is the same rule the
     profile sheet's fact tiles already followed, now true everywhere. */
  --c-soft:        var(--c-sunk);   /* the old name, kept so no screen forks */
  /* THE CONTROL RING, AND THE OTHER HALF OF BLOCKER 1.
     1.4.11 wants 3:1 of whatever identifies a control. A fill cannot do it:
     3:1 against bone forces (legacy), a mid grey that leaves the palette
     entirely (the arithmetic is in tools/landing/clay-ratios.cjs). A 1.5px
     ring can, and does: navy at .55 over the card measures 3.68:1. The ring
     goes on CONTROLS ONLY — a note tile or a fact tile is not a control and
     1.4.11 does not reach it. --c-ring-page is the same idea for a control
     that floats on the page rather than on a card. */
  --c-ring:        rgba(13, 31, 49, .55);
  --c-ring-page:   rgba(13, 31, 49, .55);

  /* text */

  /* the change pills — the only green and red on the screen */

  /* chart */
  --c-fill-now:    rgba(111, 143, 175, .14);

  /* navigation */
  --c-shadow:      rgba(19, 20, 22, .06);
  --c-scrim:       rgba(241, 241, 239, .92);

  /* desktop rail: a narrow dark rail, icons with or without labels */
  --c-rail-hover:  rgba(255, 255, 255, .07);
  --c-tip-shadow:  rgba(13, 31, 49, .18);

  /* the info icon — deliberately quiet: just over the 3:1 a control needs */

  /* THE PAGE GRADIENT, AND BLOCKER 2 OF THE CLAY CONVERSION.
     ----------------------------------------------------------------
     The ramp the owner asked for ran bone -> brand blue var(--accent-secondary). A bone card
     on brand blue is 2.96:1, and at that distance the card/ground step is
     louder than the clay lighting: below the bone band the card reads as a
     flat slab cut out of the blue and the modelling is simply gone. Phone is
     this product's primary surface, so that is the conversion's real problem.
     WHAT DOES NOT WORK, so nobody tries it again:
       * cards that track the ramp. To hold a card ~1.2:1 from the ground at
         the bottom the card has to go blue, which puts every grey label below
         AA (ink-3 lands at 2.05:1) and forces the whole type palette to
         invert partway down a scroll. There is no CSS for "text colour by
         scroll position", and the JS version is worse than the problem.
       * a translucent white card. A constant alpha is not a constant ratio:
         white at .72 over the ramp still measures 2.52:1 at the bottom, so
         the modelling is still swamped — it just costs the bone as well.
     WHAT WORKS IS THE RAMP'S END STOP. --c-grad-end is brand blue mixed 40%
     into bone: the gradient is the same two colours, the same direction and
     the same bone band, it just stops short of full saturation. A bone card
     on it measures 1.48:1 instead of 2.96:1, which is inside the window clay
     needs, all the way down the page. It also fixes a failure the study
     found and papered over: prose outside a card was 3.55:1 on the deep end
     of the full ramp, and is 5.5:1 on this one, so a quiet grey is allowed
     to stay quiet.
     THE OWNER CAN SEE BOTH. ?grad=full restores his original ramp on any
     screen (shell.js), so the choice is a side-by-side rather than a claim. */
  --c-page-fill:   var(--c-page);   /* what the page shows: flat gray unless a gradient is on */
  --c-edge:        transparent;     /* a card's outline: only needed when cards are bone */

  /* lists of people and records, the "Booked" tag, the profile sheet */
  --c-row-hover:   rgba(13, 31, 49, .04);
  --c-row-on:      rgba(111, 143, 175, .16);  /* the client whose detail is open */
  --c-tag-bg:      var(--c-soft);
  --c-backdrop:    rgba(13, 31, 49, .36);     /* behind the phone sheet */
  --c-field:       var(--c-card);             /* the search box */

  /* Rent: the chart and the coverage bar. One bar colour: "short" is said by the
     bar stopping under its rent mark, and in words. Red stays on the change
     pills and the one "Short by" figure in the working. */
  --c-chart-in:    var(--c-blue-deep);        /* every bar, one colour: 5.3:1 on bone, 6.0 on white (brand blue is 2.96 on bone) */
  --c-chart-mark:  var(--c-navy);             /* the rent or cap mark: 4.5:1 even on a grey bar */
  --c-meter:       var(--c-blue-deep);        /* coverage fill, whatever the state: 4.5:1 on the track */
  --c-meter-track: var(--c-soft);
}

/* BONE CARDS ON THE GRADIENT — the phone always, and desktop with
   ?surface=bone (the option shown to Logan). Cards turn bone so
   they sit on the gradient rather than cutting white holes in it. Three
   greys step darker to keep AA on bone (measured): labels (legacy) 5.1:1,
   the info icon (legacy) 3.2:1, and the quiet fills/tracks darken so they
   still show against a bone card. The gradient holds bone for the top 18%
   of the screen so the gray date under the greeting stays on bone (5.1:1).
   The change pills paint their own
   background, so they are unchanged (4.65 / 4.81). */
:root[data-surface="bone"] {
  --c-flat-bg:     var(--c-sunk);
  --c-scrim:       rgba(242, 240, 234, .94);
  --c-page-fill:   linear-gradient(180deg, var(--c-grad-from) 0%, var(--c-grad-from) 18%, var(--c-grad-end) 100%);
  --c-edge:        rgba(13, 31, 49, .07);
}
@media (max-width: 760px) {
  :root {
    --c-flat-bg:     var(--c-sunk);
    --c-scrim:       rgba(242, 240, 234, .94);
    --c-page-fill:   linear-gradient(180deg, var(--c-grad-from) 0%, var(--c-grad-from) 18%, var(--c-grad-end) 100%);
    --c-edge:        rgba(13, 31, 49, .07);
  }
}
/* ?grad=full — the owner's original ramp, all the way to brand blue, on
   whatever surface is in force. It is here so the two can be put side by side
   and he can choose: this is the version where the clay stops modelling below
   the bone band, which is the trade-off written out at --c-grad-end above. */
:root[data-grad="full"] {
  --c-grad-end: var(--c-grad-to);
  --c-page-fill: linear-gradient(180deg, var(--c-grad-from) 0%, var(--c-grad-from) 18%, var(--c-grad-to) 100%);
}
/* ===================================================================== */

/* =====================================================================
   THE CLAY RECIPE, IN ONE PLACE, FOR THE WHOLE APP.
   Lifted out of the study at /v5/clay.css. Every screen loads this file, so
   this block is the single edit for a tuning pass: nothing below it, and
   nothing in clients.css, pay.css, shop.css, team.css, rentowner.css,
   ownersees.css, settings.css or assist.css, contains a shadow of its own.
   Each raised surface stacks three layers, which is what makes it read as a
   pressed solid rather than a rectangle with a shadow under it:
     1. an OUTER drop  — the gap between the clay and the ground,
     2. a DARK INSET bottom-right — the far side of the curve rolling away,
     3. a LIGHT INSET top-left — the near edge catching the light.
   Dropping (3) gives a flat card with a shadow; dropping (2) gives a sticker.
   The blurs are large relative to the offsets (20px on a 10px drop) because
   that is the difference between clay and plastic.
   Two colours and nothing else: navy for every shadow (a neutral grey reads
   as dirt on bone), white for every highlight. No gradient, so it stays matte.
   ===================================================================== */
:root {
  --c-shade:       13, 31, 49;      /* navy, as channels, for rgba() */
  --c-light:       255, 255, 255;

  --r-card: 32px;    /* clay: the generous end of the brief's 24-40px */
  --r-tile: 20px;    /* a secondary surface inside a card */
  --r-ctl:  18px;    /* a square-ish control: an input, a link row */
  --r-pill: 999px;
  --rail-h: 84px;   /* the bottom bar's height; assist.js replaces it with the measured one */
  --gap: 16px;

  /* rest */
  --clay-out:
    0 10px 20px -6px rgba(var(--c-shade), .20),
    0 2px 5px -1px rgba(var(--c-shade), .10);
  /* lifted: the drop both SOFTENS and DEEPENS — a bigger blur at a longer
     offset and a lower alpha, which is what a real object does off a table */
  --clay-out-hi:
    0 20px 34px -8px rgba(var(--c-shade), .22),
    0 6px 12px -4px rgba(var(--c-shade), .10);
  /* pressed: the drop SHRINKS, because there is barely any gap left */
  --clay-out-lo:
    0 3px 7px -3px rgba(var(--c-shade), .18);

  --clay-in-dark:  inset -6px -6px 12px -4px rgba(var(--c-shade), .13);
  --clay-in-light: inset 7px 7px 13px -5px rgba(var(--c-light), .92);

  /* THE WHOLE RAISED SURFACE, as one token: this is what a card is. */
  --clay-up: var(--clay-out), var(--clay-in-dark), var(--clay-in-light);
  --clay-up-hi: var(--clay-out-hi), var(--clay-in-dark), var(--clay-in-light);
  --clay-up-lo: var(--clay-out-lo), var(--clay-in-dark), var(--clay-in-light);

  /* A surface pressed INTO its ground: the insets swap sides and the outer
     drop becomes an outer highlight. Every secondary surface in the app —
     fact tiles, note tiles, bar tracks, the tab track, inputs. Paired with
     --c-sunk, which is what carries the contrast; this is the modelling. */
  --clay-down:
    inset 5px 5px 11px -3px rgba(var(--c-shade), .17),
    inset -5px -5px 10px -4px rgba(var(--c-light), .55),
    0 1px 0 0 rgba(var(--c-light), .70);

  /* A SECONDARY CONTROL: pressed in, tinted, AND ringed. The ring is the
     1.4.11 proof (3.68:1); the first two are the look. Nothing else in the
     app may invent its own version of this. */
  --clay-ctl: 0 0 0 1.5px var(--c-ring), var(--clay-down);
  /* the same for a control that floats on the page, not on a card */
  --clay-ctl-page: 0 0 0 1.5px var(--c-ring-page), var(--clay-down);

  /* A RAISED control: the dark navy "do this" button, and the selected pill.
     The white inset is .20, not the .92 a bone card gets, and that is the
     study's most useful finding: a white highlight under a white label
     lightens the ground the label is measured against. At .34 the primary
     button measured 4.58:1 against a token that is 6.03:1 on paper. Any
     retune of this value has to be re-measured, not eyeballed. */
  --clay-solid:
    0 9px 18px -6px rgba(var(--c-shade), .34),
    0 2px 5px -1px rgba(var(--c-shade), .18),
    inset -5px -5px 11px -4px rgba(var(--c-shade), .34),
    inset 6px 6px 12px -5px rgba(var(--c-light), .20);
  --clay-solid-hi:
    0 18px 30px -8px rgba(var(--c-shade), .36),
    0 6px 12px -4px rgba(var(--c-shade), .18),
    inset -5px -5px 11px -4px rgba(var(--c-shade), .34),
    inset 6px 6px 12px -5px rgba(var(--c-light), .20);
  --clay-solid-lo:
    0 3px 6px -3px rgba(var(--c-shade), .30),
    inset -4px -4px 9px -4px rgba(var(--c-shade), .38),
    inset 5px 5px 10px -5px rgba(var(--c-light), .18);

  /* FLOATING, which is neither raised nor pressed: the chat button, the
     phone's search box, the profile sheet and the chat sheet. They have no
     card to be modelled against, so they keep the clay's own light inset and
     take a much longer, softer drop — the shadow of a thing held above the
     page rather than resting on it. Here, not in assist.css or clients.css,
     because those files are not allowed a colour value and because a tuning
     pass on the app's shadows must stay one edit. */
  --clay-float:
    0 18px 48px -12px rgba(var(--c-shade), .30),
    var(--clay-in-dark), var(--clay-in-light);
  --clay-float-ctl:
    0 0 0 1.5px var(--c-ring),
    0 14px 28px -8px rgba(var(--c-shade), .26),
    var(--clay-in-dark), var(--clay-in-light);
  --clay-float-solid:
    var(--clay-solid), 0 14px 28px -10px rgba(var(--c-shade), .26);
  /* the white wash an idle pill takes on hover: the only lightening value in
     the app, so it lives with the rest of the lighting */
  --clay-wash: rgba(var(--c-light), .55);
  --clay-wash-up: rgba(var(--c-light), .80);

  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.v5 { background: var(--c-page); color: var(--c-ink); font-family: var(--font); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; }
/* The page fill sits on a layer pinned to the screen (background-attachment:
   fixed is unreliable on iPhone), so the gradient runs bone at the top of the
   screen to blue at the bottom wherever the page is scrolled. */
body.v5::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--c-page-fill); }
body.v5 #boot, body.v5 #out { padding: 24px; color: var(--c-ink-2); }
/* display:block — a table ignores width/height, and at 390 the hidden chart
   table was pushing the page 14px wider than the screen. */
.v5-sr { position: absolute; display: block; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v5 :focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.v5 a { color: var(--c-blue-deep); }

/* ---------------- frame: left rail on desktop, bottom bar on phone ---------------- */
.v5-frame { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
.v5-rail { position: sticky; top: 0; height: 100vh; padding: 28px 16px; display: flex; flex-direction: column; gap: 28px; }
.v5-brand { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 21px; color: var(--c-ink); text-decoration: none; padding: 0 12px; }
.v5-nav { display: flex; flex-direction: column; gap: 4px; }
.v5-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
  color: var(--c-ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.v5-nav a:hover { background: var(--c-card); color: var(--c-ink); }
.v5-nav a.on { background: var(--c-nav-on-bg); color: var(--c-nav-on-ink); font-weight: 600; }
.v5-nav svg { width: 20px; height: 20px; flex: none; }
main.v5-main { padding: 28px 32px 56px; max-width: 1160px; width: 100%; margin: 0 auto; }
.v5-col { min-width: 0; }
/* The demo's marker: small, flat, above the page heading. */
.v5-demo { max-width: 1160px; margin: 0 auto; padding: 16px 32px 0; display: flex; justify-content: flex-end; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; }
.v5-demo-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--c-ink-2); background: var(--c-card); border-radius: 999px; padding: 5px 12px; font-weight: 600; }
.v5-demo-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-blue); }
.v5-demo-exit { color: var(--c-blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin: -10px 0; }   /* 44px to tap, same footprint */
.v5-demo + main.v5-main { padding-top: 8px; }

/* ---------------- header ---------------- */
.v5-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 22px; flex-wrap: wrap; }
.v5-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.v5-head .when { font-size: 14px; color: var(--c-ink-3); margin-top: 6px; }
/* THE PILL TABS. The track is pressed INTO the page and tinted (--c-sunk);
   the selected tab is the one surface raised out of it. That reads correctly
   without colour doing the work, which matters because the selected state
   must not be carried by hue alone.
   THE IDLE TAB IS A SECONDARY CONTROL AND IT IS BLOCKER 1's SECOND CASE:
   under the flat design it was transparent on the card. Transparent on a
   tinted track is now a real step in itself — the idle tab shows the track,
   the selected tab shows navy — so the group's own fill distinguishes its
   states, and the track's ring (3.68:1 against the page) is what identifies
   the control. Neither depends on a shadow. */
.v5-tabs { display: inline-flex; padding: 5px; gap: 3px; background: var(--c-sunk); border-radius: var(--r-pill);
  box-shadow: var(--clay-ctl-page); }
.v5-tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--c-ink-2); background: none; border: 0;
  min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); cursor: pointer; transition: box-shadow .3s ease, background-color .3s ease, transform .3s ease; }
.v5-tabs button:hover:not([aria-pressed="true"]) { color: var(--c-ink); background: var(--clay-wash); }
.v5-tabs button[aria-pressed="true"] { background: var(--c-nav-on-bg); color: var(--c-nav-on-ink); box-shadow: var(--clay-solid); }
.v5-tabs button[aria-pressed="true"]:active { transform: translateY(1px); box-shadow: var(--clay-solid-lo); }

/* ---------------- cards ---------------- */
.v5-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(4, 1fr); }
/* THE CARD. The one raised surface of the app, and the only thing that gets
   the full three-layer recipe. It does NOT lift on hover: a card that is not
   a link or a button should not answer the pointer, and a page of pillows
   that all move is the usual way this look turns to soup. */
.v5-card { position: relative; background: var(--c-card); border-radius: var(--r-card); padding: 24px 22px 22px; min-width: 0;
  box-shadow: var(--clay-up); }
.v5-k { font-size: 13px; font-weight: 500; color: var(--c-ink-3); margin: 0 0 8px; }
.v5-hero > .v5-k, .v5-stat > .v5-k { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }

/* ---------------- the info icon: there if you look for it, quiet if you don't ---------------- */
.v5-iw { position: relative; flex: none; margin: -3px -5px 0 0; }
.v5-i { display: grid; place-items: center; width: 44px; height: 44px; margin: -10px; padding: 0; border: 0; border-radius: 50%;   /* 44px to tap; the margin keeps its 24px footprint */
  background: none; color: var(--c-info); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v5-i svg { width: 15px; height: 15px; }
.v5-i:hover, .v5-i[aria-expanded="true"] { color: var(--c-ink-2); }
.v5-pop { position: absolute; top: 28px; right: 0; z-index: 20; width: max-content; max-width: min(260px, calc(100vw - 24px));
  background: var(--c-tip-bg); color: var(--c-tip-ink); font-size: 13.5px; font-weight: 400; line-height: 1.45; white-space: normal;
  padding: 10px 13px; border-radius: 12px; box-shadow: 0 6px 20px var(--c-tip-shadow); text-align: left; }
.v5-pop[hidden] { display: none; }
.v5-num { font-size: 32px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin: 0; color: var(--c-ink); }
.v5-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v5-say { font-size: 14px; color: var(--c-ink-2); margin: 10px 0 0; }
.v5-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; padding: 3px 10px;
  border-radius: var(--r-pill); white-space: nowrap; }
.v5-pill.up { color: var(--c-up); background: var(--c-up-bg); }
.v5-pill.down { color: var(--c-down); background: var(--c-down-bg); }
.v5-pill.flat { color: var(--c-flat); background: var(--c-flat-bg); }
.v5-h { font-size: 17px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 4px; }
.v5-sub { font-size: 13.5px; color: var(--c-ink-3); margin: 0 0 16px; }

.v5-hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.v5-hero .v5-num { font-size: 56px; letter-spacing: -.045em; }
.v5-hero .v5-say { font-size: 16px; }
.v5-stat .v5-num { font-size: 30px; }
.v5-chart { grid-column: span 2; }
.v5-busy { grid-column: span 2; }   /* two wide: its busy/slow lines stay clear of the chat button (assist.css) */
.v5-clients { grid-column: span 3; }
.v5-interval { grid-column: span 1; }
/* Barber Home (follow-up 23 Oct): five headline tiles in the top row with Booked Revenue.
   Twelve columns so both rows fill: Booked Revenue + 2 tiles, then 3 tiles. Below it, chart and
   Services by day side by side, Your clients full width. Desktop only; tablet and phone keep two up. */
@media (min-width: 1101px) {
  .hm-grid { grid-template-columns: repeat(12, 1fr); }
  .hm-grid > .v5-hero { grid-column: span 6; grid-row: auto; }
  .hm-grid > .v5-stat { grid-column: span 3; }
  .hm-grid > [aria-labelledby="k-back"], .hm-grid > [aria-labelledby="k-fresh"], .hm-grid > .v5-interval { grid-column: span 4; }
  .hm-grid > .v5-chart, .hm-grid > .v5-busy { grid-column: span 6; }
  .hm-grid > .v5-clients { grid-column: 1 / -1; }
}
/* Two up below desktop: the fifth tile takes the row, so there's no gap. */
@media (max-width: 1100px) { .hm-grid > .v5-interval { grid-column: span 2; } }

/* absent figures and notes from the shared helpers, restyled to fit */
.v5 .v3-absent { color: var(--c-ink-3); border-bottom: 1px dotted var(--c-ink-3); cursor: help; }
.v5-note { font-size: 13px; color: var(--c-ink-2); background: var(--c-card); border-radius: var(--r-card); padding: 14px 18px; margin: 0 0 var(--gap); box-shadow: var(--clay-up); }
.v5-note p, .v5-note .v3-flag { margin: 0; font-size: 13px; color: var(--c-ink-2); background: none; border: 0; padding: 0; }
.v5-empty { font-size: 14px; color: var(--c-ink-2); margin: 0; }
.v5-empty b { color: var(--c-ink); }

/* ---------------- line chart ---------------- */
/* A chart card with its own controls (kit.js, opts.head) puts them on the
   title's row and lets them wrap under it when there is no room — on a phone
   the title keeps its full width rather than being squeezed by the control.
   A chart with no controls never gets this element at all. */
.v5-charth { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 4px; }
.v5-charth .v5-h { margin-bottom: 0; }
/* opts.tag: whose figure this is, as the small gray label this product uses
   everywhere a number needs one word of scope. */
/* ink-2, not ink-3: the chip sits on --c-sunk, where ink-3 is 3.75:1. That is
   the one rule --c-sunk imposes on the rest of the app, and this chip was the
   only place in it that broke the rule. */
.v5-chip { display: inline-block; margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--c-ink-2);
  background: var(--c-sunk); border-radius: var(--r-pill); padding: 3px 10px; vertical-align: middle; white-space: nowrap;
  box-shadow: var(--clay-down); }
.v5-plot { position: relative; margin-top: 4px; }
.v5-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.v5-plot .now { fill: none; stroke: var(--c-line-now); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.v5-plot .ghost { fill: none; stroke: var(--c-line-ghost); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
.v5-plot .area { fill: var(--c-fill-now); }
.v5-plot .base { stroke: var(--c-line); stroke-width: 1; }
.v5-plot .lab { fill: var(--c-ink-3); font-size: var(--lab, 12px); font-family: var(--font); }
.v5-plot .dot { fill: var(--c-card); stroke: var(--c-line-now); stroke-width: 2.5; }
.v5-plot .sel { stroke: var(--c-line); stroke-width: 1; }
.v5-hits { position: absolute; inset: 0 0 22px 0; display: grid; }
.v5-hits button { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 8px; }
.v5-hits button:focus-visible { outline-offset: -2px; }
.v5-tip { position: absolute; top: -6px; transform: translateX(-50%); background: var(--c-navy); color: var(--c-nav-on-ink);
  font-size: 13px; line-height: 1.35; padding: 8px 12px; border-radius: 12px; white-space: nowrap; pointer-events: none; z-index: 2; }
.v5-tip b { font-size: 15px; }
.v5-tip[hidden] { display: none; }
.v5-legend { display: flex; gap: 16px; font-size: 13px; color: var(--c-ink-3); margin-top: 8px; }
.v5-legend i { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--c-line-now); vertical-align: middle; margin-right: 6px; }
.v5-legend i.g { border-top: 2px dashed var(--c-line-ghost); }

/* ---------------- busiest ---------------- */
.v5-bars { display: grid; gap: 9px; }
.v5-bar { display: grid; grid-template-columns: 34px 1fr 26px; align-items: center; gap: 10px; font-size: 13px; color: var(--c-ink-2); }
/* a track is a surface pressed into the card, which is exactly what a bar
   track already wanted to be */
.v5-bar .t { height: 11px; border-radius: var(--r-pill); background: var(--c-sunk); overflow: hidden; box-shadow: var(--clay-down); }
.v5-bar .t i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--c-blue); }
.v5-bar.top { color: var(--c-ink); font-weight: 700; }
.v5-bar.top .t i { background: var(--c-navy); }
.v5-bar .n { text-align: right; font-variant-numeric: tabular-nums; }
.v5-foot { font-size: 13px; line-height: 1.45; color: var(--c-ink-3); margin: 14px 0 0; }

/* ---------------- clients ---------------- */
.v5-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.v5-list { list-style: none; margin: 0; padding: 0; }
.v5-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--c-line); }
.v5-list li:first-child { border-top: 0; }
.v5-av { width: 36px; height: 36px; border-radius: 50%; background: var(--c-sunk); color: var(--c-navy); display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex: none; box-shadow: var(--clay-down); }
.v5-list .who { flex: 1; min-width: 0; }
.v5-list .nm, .v5-list .ds { display: block; }
.v5-list .nm { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-list .ds { font-size: 13px; color: var(--c-ink-3); }
.v5-list .rt { font-size: 13px; font-weight: 600; color: var(--c-ink-2); white-space: nowrap; }

/* ---------------- loading skeletons (no spinners) ---------------- */
.v5-sk { background: var(--c-sunk); border-radius: 10px; position: relative; overflow: hidden; box-shadow: var(--clay-down); }
.v5-sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--c-card), transparent); animation: v5-shine 1.4s ease-in-out infinite; }
@keyframes v5-shine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .v5-sk::after { animation: none; } }

/* ---------------- a rent agreement waiting on the barber: one line, one button ---------------- */
/* a card, with the brand edge still down its left: the inset stripe is listed
   first so it draws over the clay's own light inset on that edge */
.v5-wait { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 var(--gap);
  padding: 18px 22px; box-shadow: inset 4px 0 0 var(--c-blue-deep), var(--clay-up); }
.v5-wait p { margin: 0; font-size: 15px; font-weight: 600; color: var(--c-ink); }

/* =====================================================================
   THE PRIMARY BUTTON — "do this". Navy, raised clay, and the one control
   that lifts. Every "do this" button on every screen is this shape: .v5-go
   here, .tm-save, .os-yes, .set-btn, .pay-retry, .cb-send. They are listed
   together so there is one declaration and not six.
   White on navy (legacy) is 16.1:1 on paper, and the clay highlight at .20
   does not take it anywhere near the floor — the margin the deep-blue
   button in the study did not have.
   ===================================================================== */
.v5 .v5-go, .v5 .cl-more, .v5 .tm-save, .v5 .os-yes, .v5 .set-btn, .v5 .pay-retry,
.v5 .sh-torent, .v5 .tm-cancel, .v5 .os-no, .v5 .set-btn.quiet {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill); font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .3s ease, transform .3s ease, background-color .3s ease; }
.v5 .v5-go, .v5 .tm-save, .v5 .os-yes, .v5 .set-btn, .v5 .pay-retry {
  background: var(--c-nav-on-bg); color: var(--c-nav-on-ink); box-shadow: var(--clay-solid); }
.v5 .v5-go:hover, .v5 .tm-save:hover:not([disabled]), .v5 .os-yes:hover:not([disabled]),
.v5 .set-btn:hover:not([disabled]), .v5 .pay-retry:hover {
  transform: translateY(-3px); box-shadow: var(--clay-solid-hi); }
.v5 .v5-go:active, .v5 .tm-save:active:not([disabled]), .v5 .os-yes:active:not([disabled]),
.v5 .set-btn:active:not([disabled]), .v5 .pay-retry:active {
  transform: translateY(2px); box-shadow: var(--clay-solid-lo); }

/* =====================================================================
   THE SECONDARY BUTTON — and BLOCKER 1's first and loudest case.
   The study's ghost button was bone on bone at 1.44:1. This one is not: it
   is --c-sunk, a real tint (1.37:1 on white, 1.42:1 on bone), pressed INTO
   its card, AND ringed at 3.68:1. The ring is what satisfies 1.4.11; the
   tint is what means the ring is a detail of the form rather than the only
   thing holding the control up. It is the same three declarations for every
   secondary button in the app, in one place.
   ===================================================================== */
.v5 .cl-more, .v5 .tm-cancel, .v5 .os-no, .v5 .set-btn.quiet, .v5 .sh-torent {
  background: var(--c-sunk); color: var(--c-ink); box-shadow: var(--clay-ctl); }
.v5 .cl-more:hover, .v5 .tm-cancel:hover, .v5 .os-no:hover:not([disabled]),
.v5 .set-btn.quiet:hover, .v5 .sh-torent:hover {
  background: var(--c-card); box-shadow: 0 0 0 1.5px var(--c-ring), var(--clay-up); }
.v5 .cl-more:active, .v5 .tm-cancel:active, .v5 .os-no:active:not([disabled]),
.v5 .set-btn.quiet:active, .v5 .sh-torent:active {
  transform: translateY(1px); box-shadow: 0 0 0 1.5px var(--c-ring), var(--clay-up-lo); }

/* The one-line reconnect prompt inside a card (recurring_status needs_reconnect). */
.v5 .v5-reco { display: flex; align-items: center; min-height: 44px; margin-top: 6px; font-size: 14px; font-weight: 600;
  color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }

/* ---------------- rows of links (Settings) ---------------- */
/* A LIST ROW IS A CONTROL, so it gets the ring too. Under the flat design
   these rows were bone on white and read as rows because of the fill alone;
   under clay the fill is a tint and the ring is the proof. */
.v5-links { display: grid; gap: 10px; margin-top: 14px; }
.v5-links a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--r-ctl);
  background: var(--c-sunk); color: var(--c-ink); text-decoration: none; font-weight: 600; box-shadow: var(--clay-ctl);
  transition: box-shadow .3s ease, transform .3s ease, background-color .3s ease; }
.v5-links a:hover { background: var(--c-card); box-shadow: 0 0 0 1.5px var(--c-ring), var(--clay-up); }
.v5-links a:active { transform: translateY(1px); box-shadow: 0 0 0 1.5px var(--c-ring), var(--clay-up-lo); }

/* ---------------- desktop rail: dark, and folds to icons only ---------------- */
.v5-brand .mk { display: none; }
.v5-fold { display: none; }
@media (min-width: 761px) {
  .v5-frame.mini { grid-template-columns: 76px 1fr; }
  .v5-rail { background: var(--c-rail-bg); padding: 24px 14px 18px; gap: 24px; z-index: 30; }
  .v5-rail :focus-visible { outline-color: var(--c-rail-focus); }
  .v5 .v5-brand { color: var(--c-rail-brand); min-height: 44px; display: flex; align-items: center; padding: 0 14px; }
  .v5-nav a { position: relative; color: var(--c-rail-ink); }
  .v5-nav a:hover { background: var(--c-rail-hover); color: var(--c-rail-brand); }
  .v5-nav a.on { background: var(--c-rail-on-bg); color: var(--c-rail-on-ink); }
  .v5-fold { position: relative; margin-top: auto; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px;
    border: 0; border-radius: var(--r-pill); background: none; color: var(--c-rail-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
  .v5-fold:hover { background: var(--c-rail-hover); color: var(--c-rail-brand); }
  .v5-fold svg { width: 20px; height: 20px; flex: none; }

  /* folded: icons only. The words stay in the page for screen readers (the
     .v5-sr pattern) and come back as a tooltip on hover or keyboard focus. */
  .v5-frame.mini .v5-rail { padding-inline: 16px; }
  .v5-frame.mini .v5-brand { justify-content: center; padding: 0; width: 44px; }
  .v5-frame.mini .v5-brand .mk { display: inline; }
  .v5-frame.mini .v5-brand .w,
  .v5-frame.mini .v5-nav a > span, .v5-frame.mini .v5-fold > span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .v5-frame.mini .v5-nav a, .v5-frame.mini .v5-fold { width: 44px; padding: 0; justify-content: center; }
  .v5-frame.mini .v5-fold svg { transform: rotate(180deg); }
  .v5-frame.mini [data-tip]::after { content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%);
    background: var(--c-tip-bg); color: var(--c-tip-ink); font-size: 13px; font-weight: 600; white-space: nowrap; padding: 6px 10px;
    border-radius: 8px; box-shadow: 0 4px 14px var(--c-tip-shadow); pointer-events: none; opacity: 0; }
  .v5-frame.mini [data-tip]:hover::after, .v5-frame.mini [data-tip]:focus-visible::after { opacity: 1; }
  .v5-rail.quiet [data-tip]::after { opacity: 0 !important; }
}

/* ---------------- the profile sheet ----------------
   One person or one record, read like a profile: a sheet from the bottom on a
   phone, a panel on the right on desktop, so the list behind it stays put.
   Clients uses it for a client; Pay for a pay period. (shell.js openSheet) */
.v5-backdrop { position: fixed; inset: 0; background: var(--c-backdrop); z-index: 60; }
.v5-backdrop[hidden], .v5-sheet[hidden] { display: none; }
/* The sheet is a card the size of a panel. It keeps the clay's light inset so
   the top-left edge still catches the light, but its drop is the deeper one a
   thing lifted off the page gets, not a card's. */
.v5-sheet { position: fixed; z-index: 61; background: var(--c-card); color: var(--c-ink); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: var(--clay-float); }
/* The close button floats over the top corner and stays put while the sheet scrolls. */
.v5-sheet-top { position: sticky; top: 0; z-index: 1; height: 0; }
.v5-sheet-top .v5-x { position: absolute; top: 12px; right: 12px; }
/* a control, so the ring: a round sunk button on a card of the same family is
   the bone-on-bone case in miniature */
.v5-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-sunk); color: var(--c-ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--clay-ctl); transition: box-shadow .3s ease, transform .3s ease; }
.v5-x:hover { box-shadow: 0 0 0 1.5px var(--c-ring), var(--clay-up); }
.v5-x:active { transform: translateY(1px); box-shadow: 0 0 0 1.5px var(--c-ring), var(--clay-up-lo); }
.v5-x svg { width: 18px; height: 18px; }
.v5-sheet-body { padding: 22px 24px 28px; }
.v5-sheet-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding-right: 52px; }
.v5-sheet-head .v5-av { width: 52px; height: 52px; font-size: 17px; }
.v5-sheet-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.v5-sheet-head h2:focus { outline: none; }
.v5-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; }
/* A CARD INSIDE A CARD, which the study said goes mushy — and it does, if the
   inner one is a second pillow. It is not: it is pressed INTO the card and
   tinted, so the pair reads as one object with a dent in it rather than as
   two competing pillows. That is the shape every nested surface in the app
   now takes, and it is the reason the dense screens survived the conversion.
   Labels on a tile use the darker gray: ink-3 on --c-sunk is 3.75:1, ink-2 is 6.3:1. */
.v5-fact { background: var(--c-sunk); border-radius: var(--r-tile); padding: 14px 15px; min-width: 0; box-shadow: var(--clay-down); }
.v5-fact .v5-k { color: var(--c-ink-2); margin: 0 0 4px; display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; }
.v5-fact .v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.v5-fact .s { font-size: 12.5px; color: var(--c-ink-2); margin-top: 2px; }
.v5-sheet-body h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.v5-lines { list-style: none; margin: 0; padding: 0; }
.v5-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--c-line); }
.v5-lines li:first-child { border-top: 0; }
.v5-lines .d { font-weight: 600; font-size: 14px; }
.v5-lines .p { font-weight: 600; font-size: 14px; text-align: right; }
.v5-lines .w { grid-column: 1 / -1; font-size: 13px; color: var(--c-ink-3); }
.v5-sheet-note { font-size: 13px; color: var(--c-ink-3); margin: 10px 0 0; }
@media (min-width: 761px) {
  .v5-sheet { top: 16px; right: 16px; bottom: 16px; width: 420px; border-radius: var(--r-card); }
  .v5-backdrop { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .v5-sheet { animation: v5-in .22s cubic-bezier(.2, .8, .2, 1); }
  @keyframes v5-in { from { transform: translateX(24px); opacity: 0; } }
}
@media (max-width: 760px) {
  .v5-sheet { left: 0; right: 0; bottom: 0; max-height: 90dvh; border-radius: var(--r-card) var(--r-card) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  .v5-sheet-body { padding: 20px 20px 24px; }
  @media (prefers-reduced-motion: no-preference) {
    .v5-sheet { animation: v5-up .24s cubic-bezier(.2, .8, .2, 1); }
    @keyframes v5-up { from { transform: translateY(40px); opacity: 0; } }
  }
}

/* It was a background-less button, which under clay is the bone-on-bone case
   exactly. Now a secondary control like every other one. */
.v5-signout { display: flex; align-items: center; min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--r-ctl);
  background: var(--c-sunk); box-shadow: var(--clay-ctl);
  color: var(--c-ink-2); font: inherit; font-weight: 600; cursor: pointer; text-align: left;
  transition: box-shadow .3s ease, transform .3s ease, background-color .3s ease; }
.v5-signout:hover { background: var(--c-card); color: var(--c-ink); box-shadow: 0 0 0 1.5px var(--c-ring), var(--clay-up); }
.v5-signout:active { transform: translateY(1px); box-shadow: 0 0 0 1.5px var(--c-ring), var(--clay-up-lo); }

/* =====================================================================
   REDUCED MOTION, FOR THE WHOLE APP, IN ONE PLACE.
   No transform animation, and no transform at all: the lift is REMOVED
   rather than snapped, because an instant 3px jump under the pointer is
   worse than no lift. The shadow still changes, so the control still
   answers — it just does not move. tools/landing/clay-motion.cjs asserts
   both halves: that transform is none, and that there was one to remove.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .v5 .v5-card, .v5 .v5-go, .v5 .cl-more, .v5 .tm-save, .v5 .tm-cancel, .v5 .os-yes, .v5 .os-no,
  .v5 .set-btn, .v5 .pay-retry, .v5 .sh-torent, .v5 .v5-links a, .v5 .v5-x, .v5 .v5-signout,
  .v5 .v5-tabs button, .v5 .cl-row, .v5 .cl-search input, .v5 .cb-starters button {
    transition: box-shadow .01ms linear, background-color .01ms linear, color .01ms linear !important; }
  .v5 .v5-go:hover, .v5 .v5-go:active,
  .v5 .cl-more:hover, .v5 .cl-more:active,
  .v5 .tm-save:hover, .v5 .tm-save:active, .v5 .tm-cancel:hover, .v5 .tm-cancel:active,
  .v5 .os-yes:hover, .v5 .os-yes:active, .v5 .os-no:hover, .v5 .os-no:active,
  .v5 .set-btn:hover, .v5 .set-btn:active, .v5 .pay-retry:hover, .v5 .pay-retry:active,
  .v5 .sh-torent:hover, .v5 .sh-torent:active,
  .v5 .v5-links a:hover, .v5 .v5-links a:active,
  .v5 .v5-x:hover, .v5 .v5-x:active, .v5 .v5-signout:hover, .v5 .v5-signout:active,
  .v5 .v5-tabs button[aria-pressed="true"]:active,
  .v5 .cb-starters button:hover, .v5 .cb-starters button:active { transform: none !important; }
}

/* ---------------- tablet ---------------- */
@media (max-width: 1100px) {
  .v5-grid { grid-template-columns: repeat(2, 1fr); }
  .v5-hero { grid-column: span 2; grid-row: auto; }
  .v5-chart, .v5-busy, .v5-clients { grid-column: span 2; }
}

/* ---------------- phone: one column, bottom bar ---------------- */
@media (max-width: 760px) {
  /* CLAY COSTS SPACE, and this is where the bill arrives. A 32px corner on a
     173px-wide small card (two up at 390) is most of the card's edge, so the
     radius is dialled back here — it is still unmistakably clay, and the card
     still reads as a card. Padding goes UP rather than down: the light inset
     runs 7px in from the top-left and text sitting in it is the specific way
     a clay card reads as dirty. 18px was enough on a flat card and is not
     enough on this one. */
  :root { --r-card: 26px; --r-tile: 18px; --r-ctl: 16px; }
  .v5-frame { display: block; }
  /* the bottom bar is a clay ledge the page runs under, not a hairline */
  .v5-rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--c-scrim); backdrop-filter: blur(14px); z-index: 40; border-top: 0;
    box-shadow: 0 -8px 20px -8px rgba(var(--c-shade), .16), inset 0 1px 0 0 rgba(var(--c-light), .80); }
  .v5-nav a.on { box-shadow: var(--clay-solid); }
  .v5-brand { display: none; }
  .v5-nav { flex-direction: row; justify-content: space-around; }
  .v5-nav a { flex: 1; flex-direction: column; gap: 3px; min-height: 54px; padding: 6px 2px; justify-content: center;
    font-size: 11.5px; border-radius: 16px; }
  main.v5-main { padding: 20px 16px calc(var(--rail-h, 84px) + 16px); }
  .v5-demo { padding: 12px 16px 0; justify-content: space-between; }
  .v5-demo + main.v5-main { padding-top: 10px; }
  .v5-head { flex-direction: column; align-items: stretch; margin-bottom: 16px; }
  .v5-head h1 { font-size: 26px; }
  .v5-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .v5-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .v5-hero, .v5-chart, .v5-busy, .v5-clients { grid-column: span 2; }
  .v5-hero { padding: 26px 24px 24px; }
  .v5-hero .v5-num { font-size: 46px; }
  .v5-card { padding: 20px 18px 18px; }
  .v5-wait { margin-bottom: 14px; padding: 16px 18px; }
  /* THE FOUR SMALL CARDS, ONE SHAPE. Same height, and three rows at the same
     place in every card — label, number + pill, sentence — so the numbers sit
     on one baseline across the grid. The label row holds two lines, so the
     full label wraps rather than being cut ("Clients who came back" needs
     both); the number row never wraps (the pill stays beside the number), and
     the sentence gets exactly two lines. */
  /* 176, not 166: the extra ten is the padding the clay highlight needs, and
     the three rows inside are untouched so the numbers still share a baseline.
     THE EXTRA IS VERTICAL ONLY, and that was a caught mistake rather than a
     preference. The light inset runs in from the TOP-LEFT, so the top is where
     the room is actually needed; taking a single pixel off each SIDE as well
     was enough to wrap "Money in, commission chairs" onto a third line on the
     owner's Rent screen, and the label row is a fixed 36px precisely so the
     figures share a baseline across the grid — a third line has nowhere to go
     and sits on the number. The horizontal padding is the flat design's 16px,
     unchanged, and every small-card label still fits the two lines it was
     written to fit. */
  .v5-stat { height: 176px; padding: 18px 16px 16px; display: grid; grid-template-rows: 36px 34px 1fr; row-gap: 8px; align-content: start; }
  .v5-stat .v5-k { margin: 0; line-height: 18px; }
  .v5-stat .v5-row { flex-wrap: nowrap; gap: 6px; align-items: center; height: 34px; min-width: 0; }
  .v5-stat .v5-num { font-size: 24px; line-height: 34px; white-space: nowrap; }
  .v5-stat .v5-pill { font-size: 12px; padding: 2px 7px; }
  .v5-stat .v5-say { margin: 0; font-size: 13px; line-height: 18px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; }
  .v5-cols { grid-template-columns: 1fr; gap: 18px; }
}
.v5-pill.v5-dir { font-size: 12px; padding: 4px 9px; }

/* =====================================================================
   BUSINESS HEALTH, THE LEADERBOARD, THE CONSULTATION (health round, D11).
   Tokens only, so both themes follow. Placed below the KPI rows: on Home
   the two tiles share a row on desktop, full width below that; on Shop
   the leaderboard is full width.
   ===================================================================== */
.sh-grid > .lb-tile { grid-column: 1 / -1; }
@media (max-width: 760px) { .sh-grid > .lb-tile { order: 9; } }   /* last on the phone too (E3) */

.hz-chip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; margin: 6px 0 0;
  padding: 14px 16px; border: 0; border-radius: var(--r-tile); background: var(--c-sunk); box-shadow: var(--clay-ctl);
  color: var(--c-ink); font: inherit; text-align: left; cursor: pointer; }
.hz-chip:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.hz-score { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hz-of { font-size: 15px; color: var(--c-ink-2); margin-left: -6px; }
.hz-band { font-weight: 600; }
.hz-cap { color: var(--c-ink-2); font-size: 14px; }
.hz-more-l { flex-basis: 100%; font-size: 14px; color: var(--c-ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }   /* on --c-sunk: blue-deep was 3.7:1 (phone) and 4.4:1; ink-2 is 6.3:1 */
.hz-more { margin-top: 14px; }
.hz-how, .hz-coach { margin: 0 0 12px; color: var(--c-ink-2); font-size: 14px; line-height: 1.5; }
.hz-parts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.hz-part { padding: 0 0 10px; border-bottom: 1px solid var(--c-line); }
.hz-pt { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; }
.hz-pt .nm { font-weight: 600; }
.hz-pt .vl { color: var(--c-ink-2); }
.hz-pt .sc { font-weight: 600; min-width: 64px; text-align: right; }
.hz-ex { margin: 4px 0 0; font-size: 13px; color: var(--c-ink-2); }
.hz-src { margin: 4px 0 0; font-size: 12.5px; color: var(--c-ink-3); line-height: 1.45; }
.hz-setup { margin: 6px 0 12px; color: var(--c-ink-2); line-height: 1.5; }
.hz-setup b { color: var(--c-ink); }
.hz-link, .lb-you a { color: var(--c-blue-deep); font-weight: 600; text-decoration: none; }
.hz-link:hover, .lb-you a:hover { text-decoration: underline; }

/* The leaderboard is deliberately quiet (follow-up E3): small type, muted ink, no big numbers. */
.lb-h { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--c-ink-2); }
.lb-you, .lb-say { margin: 0 0 8px; font-size: 13.5px; color: var(--c-ink-2); }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--c-ink-2); }
.lb-row + .lb-row { border-top: 1px solid var(--c-line); }
.lb-row[hidden] { display: none; }
.lb-row .nm { min-width: 0; overflow-wrap: anywhere; }
.lb-row .sc { flex: none; font-variant-numeric: tabular-nums; }
.lb-row.me { color: var(--c-ink); }
.lb-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: var(--r-pill); font-size: 12px;
  background: var(--c-tag-bg); color: var(--c-tag-ink); vertical-align: 1px; }
.lb-more { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 0; border-radius: var(--r-pill); background: var(--c-sunk);
  box-shadow: var(--clay-ctl); color: var(--c-ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lb-more:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
body.cb-has .lb-tile { padding-bottom: 72px; }

.hz-consult { max-width: 620px; }
[data-consulting] .cb-fab, [data-consulting] .cb-sheet { display: none !important; }   /* no Coach on the one-time setup */
.hz-lead, .hz-note { color: var(--c-ink-2); line-height: 1.5; margin: 6px 0 16px; }
.hz-note { font-size: 13.5px; margin-top: 4px; }
.hz-wheels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 420px) { .hz-wheels { grid-template-columns: 1fr; } }
.hz-qlab { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--c-ink-2); }
.hz-q .wheel { position: relative; height: 160px; overflow: hidden; border-radius: var(--r-tile); background: var(--c-sunk); box-shadow: var(--clay-ctl);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.hz-q .wheel .band { position: absolute; left: 10px; right: 10px; top: 60px; height: 40px; border-top: 1.5px solid var(--c-ring); border-bottom: 1.5px solid var(--c-ring); pointer-events: none; }
.hz-q .wheel .scroll { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; padding: 60px 0; box-sizing: border-box; outline: none; }
.hz-q .wheel .scroll::-webkit-scrollbar { display: none; }
.hz-q .wheel .scroll:focus-visible { box-shadow: inset 0 0 0 2px var(--c-focus); border-radius: var(--r-tile); }
.hz-q .wheel .it { height: 40px; line-height: 40px; text-align: center; scroll-snap-align: center; font-size: 16px; color: var(--c-ink-2); cursor: pointer; }
.hz-q .wheel .it.sel { color: var(--c-ink); font-size: 21px; font-weight: 700; }
.hz-go { width: 100%; min-height: 48px; margin-top: 6px; border: 0; border-radius: var(--r-pill); font: inherit; font-weight: 600; font-size: 15px;
  background: var(--c-nav-on-bg); color: var(--c-nav-on-ink); box-shadow: var(--clay-solid); cursor: pointer; }
.hz-go:disabled { opacity: .6; cursor: default; }
.hz-go:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.hz-said { min-height: 1.4em; margin: 10px 0 0; color: var(--c-ink-2); font-size: 14px; }

/* Settings: the light/dark switch */
.set-theme { display: inline-flex; gap: 6px; padding: 4px; border-radius: var(--r-pill); background: var(--c-sunk); box-shadow: var(--clay-ctl); margin-top: 8px; }
.set-theme button { min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--c-ink-2); font: inherit; font-weight: 600; cursor: pointer; }
.set-theme button[aria-pressed="true"] { background: var(--c-nav-on-bg); color: var(--c-nav-on-ink); box-shadow: var(--clay-solid); }
.set-theme button:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* =====================================================================
   EVERY FIELD HAS A 3:1 EDGE, IN BOTH THEMES (WCAG 1.4.11; health round).
   Text inputs, selects and textareas get a 1.5px --c-ring outline (3.7:1 by
   day, 3.5:1 at night, tools/landing/dark-ratios.cjs). Zero specificity
   (:where), so each field's own :focus-visible ring still wins. A field
   drawn bare inside a box (.pr-in, .tm-in) gets the edge on its box. The
   wheels and the theme switch already carry --clay-ctl, which is this ring.
   ===================================================================== */
:where(.v5) :where(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"]), select, textarea) {
  outline: 1.5px solid var(--c-ring); outline-offset: 0;
}
:where(.v5) :where(.pr-in, .tm-in) { outline: 1.5px solid var(--c-ring); outline-offset: 0; }
:where(.v5) :where(.pr-in, .tm-in) input { outline: none; }
:where(.v5) :where(.pr-in, .tm-in):focus-within { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* =====================================================================
   HOME, MOBILE FIRST (follow-up E5). The pattern of Square's, Shopify's and
   Stripe's phone dashboards: a period switch on top, the two headline
   figures side by side, a two-up grid of small equal KPI cards, then one
   chart or list per row, the least urgent last. Wider screens add columns,
   never change the order. All on .hm-grid only; no other screen moves.
   ===================================================================== */
.v5-grid.hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v5-grid.hm-grid > * { grid-column: auto; grid-row: auto; min-width: 0; }
.v5-grid.hm-grid > .v5-hero { grid-column: span 1; padding: 18px 16px 16px; justify-content: flex-start; }
.v5-grid.hm-grid > .v5-hero .v5-num { font-size: clamp(24px, 7vw, 56px); white-space: nowrap; }
.v5-grid.hm-grid > .v5-stat { height: 152px; padding: 16px; display: grid; grid-template-rows: auto 34px auto; row-gap: 6px; align-content: start; }
.v5-grid.hm-grid > .v5-stat .v5-num { font-size: 22px; line-height: 34px; white-space: nowrap; }
.v5-grid.hm-grid > .v5-stat .v5-row { flex-wrap: nowrap; gap: 6px; align-items: center; min-width: 0; }
.v5-grid.hm-grid > .v5-stat .v5-say { margin: 0; font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-grid.hm-grid > .v5-interval { grid-column: span 2; height: 152px; padding: 16px; display: grid; grid-template-rows: auto 34px auto; row-gap: 6px; align-content: start; }
.v5-grid.hm-grid > .v5-interval .v5-num { font-size: 22px; line-height: 34px; white-space: nowrap; }
.v5-grid.hm-grid > .v5-interval .v5-say { margin: 0; font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.cb-has .v5-grid.hm-grid > .v5-interval { height: 152px; grid-template-rows: auto 34px auto; }   /* the Coach clearance keeps its right gutter, not its own height */
main:has(.hm-grid) .v5-head .v5-tabs button, main:has(.sh-grid) .v5-head .v5-tabs button { min-height: 44px; }   /* Home's and Shop's period switch: 44px taps */
/* At desktop widths the Coach button sits over the right edge of whatever card is there: Services by day's
   counts keep out of its zone, like its busy/slow lines (assist.css). */
body.cb-has .sbd-card .v5-bars { padding-right: 132px; }   /* phone too: the card is full width and the button sits over its right edge */
.v5-grid.hm-grid > .v5-chart, .v5-grid.hm-grid > .v5-busy, .v5-grid.hm-grid > .v5-clients, .v5-grid.hm-grid > .lb-tile { grid-column: 1 / -1; }
.hz-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--c-ink-2); }
.hz-rows li { display: flex; justify-content: space-between; gap: 8px; }
.hz-rows li span:last-child { font-variant-numeric: tabular-nums; color: var(--c-ink); }
.hz-one { margin: 6px 0 0; font-size: 13px; color: var(--c-ink-2); }
@media (min-width: 768px) {
  .v5-grid.hm-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
  .v5-grid.hm-grid > .v5-hero { grid-column: span 3; padding: 24px; }
  .v5-grid.hm-grid > .v5-stat { grid-column: span 2; }
  .v5-grid.hm-grid > .v5-interval { grid-column: span 2; }
  .v5-grid.hm-grid > [aria-labelledby="k-fresh"], .v5-grid.hm-grid > .v5-interval { grid-column: span 3; }
  .hz-rows { font-size: 14px; }
}
@media (min-width: 1200px) {
  .v5-grid.hm-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .v5-grid.hm-grid > .v5-hero { grid-column: span 5; }
  .v5-grid.hm-grid > .v5-stat, .v5-grid.hm-grid > [aria-labelledby="k-fresh"], .v5-grid.hm-grid > .v5-interval { grid-column: span 2; }
  .v5-grid.hm-grid > .v5-chart, .v5-grid.hm-grid > .v5-busy { grid-column: span 5; }
}

/* The grouped bars (Home's chart, redesign 24 Oct): this period blue, last period
   gray, the chosen day navy. Tokens so dark mode follows. */
:root { --c-bar-now: var(--chart-primary); --c-bar-then: var(--chart-secondary); --c-bar-on: var(--accent-primary); --c-grid: var(--chart-grid); }   /* last period: the info gray, 3.2:1 on bone, 3.7:1 on white */
.v5-bars-plot .bar-now { fill: var(--c-bar-now); }
.v5-bars-plot .bar-then { fill: var(--c-bar-then); }
.v5-bars-plot .bar-now.on { fill: var(--c-bar-on); }
.v5-bars-plot .grid { stroke: var(--c-grid); stroke-width: 1; }
.v5-bars-plot .ylab { fill: var(--c-ink-3); font-size: var(--lab, 11px); font-family: var(--font); }
.v5-readout { position: static; transform: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 8px 0 2px; min-height: 40px; box-sizing: border-box; width: fit-content; max-width: 100%; white-space: normal; }
.v5-readout { opacity: 1; transition: opacity .12s ease; }
.v5-readout[hidden] { display: flex; visibility: hidden; opacity: 0; transition: opacity .12s ease, visibility 0s linear .12s; }   /* holds its height, so nothing jumps */
.v5-hits button:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) { .v5-readout, .v5-readout[hidden] { transition: none; } }
.v5-readout .dl { opacity: .85; }
.v5-legend.bars i { width: 10px; height: 10px; border: 0; border-radius: 3px; background: var(--c-bar-now); vertical-align: -1px; }
.v5-legend.bars i.g { border: 0; background: var(--c-bar-then); }

/* =====================================================================
   DARK: BLACK & BONE (health round, 24 Oct, D10).
   The night palette the brand already has (docs/brand-tokens.md, the
   landing page's own): near-black canvas (legacy), bone text (legacy),
   pale blue var(--accent-secondary) for anything blue that carries a word. Every value
   here overrides a light token of the same name, so no screen changes a
   rule to follow it. Set on <html data-theme="dark"> by /boot.js before
   the first paint, from localStorage (and the user's saved preference).
   Ratios are on the card (var(--surface-primary)) unless said; tools/landing/
   dark-ratios.cjs is the arithmetic and QA measures the pages.
   ===================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;

  --c-ring:        rgba(233, 230, 222, .42);   /* 3.5:1 on the card */
  --c-ring-page:   rgba(233, 230, 222, .45);


  --c-up-bg:       rgba(76, 195, 138, .14);
  --c-down-bg:     rgba(240, 112, 90, .14);

  --c-fill-now:    rgba(111, 143, 175, .20);

  --c-shadow:      rgba(0, 0, 0, .40);
  --c-scrim:       rgba(9, 10, 11, .92);

  --c-rail-hover:  rgba(233, 230, 222, .06);
  --c-tip-shadow:  rgba(0, 0, 0, .5);


  --c-edge:        rgba(233, 230, 222, .07);

  --c-row-hover:   rgba(233, 230, 222, .05);
  --c-row-on:      rgba(111, 143, 175, .24);
  --c-backdrop:    rgba(0, 0, 0, .60);
  --c-bar-then:    var(--c-info);   /* 4.7:1 on the card */

  /* clay at night: black shadows, a faint bone edge-light instead of white */
  --c-shade:       0, 0, 0;
  --c-light:       233, 230, 222;
  --clay-in-light: inset 7px 7px 13px -5px rgba(var(--c-light), .05);
  --clay-down:
    inset 5px 5px 11px -3px rgba(var(--c-shade), .45),
    inset -5px -5px 10px -4px rgba(var(--c-light), .04),
    0 1px 0 0 rgba(var(--c-light), .05);
  --clay-wash: rgba(var(--c-light), .06);
}

.v5-grid.hm-grid > .sc-tile { grid-column: 1 / -1; padding: 0; }
.sc-hit { display: block; width: 100%; min-height: 44px; padding: 18px 16px 16px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: inherit; }
.sc-hit:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.sc-hit .v5-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-hit .v5-num { font-size: clamp(24px, 7vw, 56px); white-space: nowrap; }
.sc-chev { flex: none; color: var(--c-ink-2); transition: transform .15s; }
.sc-tile.open .sc-chev { transform: rotate(180deg); }
.sc-board { padding: 0 16px 16px; }
.sc-board[hidden] { display: none; }
.sc-board .sc-inner { padding: 0; border: 0; box-shadow: none; background: none; }
body.cb-has .sc-board .sc-inner { padding-bottom: 0; }
.sc-tile .v5-k { font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--c-ink-2); }
.sc-rank { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; line-height: 1.25; color: var(--c-ink-3, var(--c-ink-2)); font-variant-numeric: tabular-nums; }

/* Legacy names, mapped to the design tokens. */
:root {
  --c-bar-now: var(--chart-primary);
  --c-bar-on: var(--accent-primary);
  --c-black: var(--background-primary);
  --c-blue: var(--accent-secondary);
  --c-blue-deep: var(--accent-primary);
  --c-bone: var(--surface-elevated);
  --c-card: var(--surface-primary);
  --c-clay: var(--surface-primary);
  --c-clay-sunk: var(--surface-secondary);
  --c-down: var(--status-negative);
  --c-flat: var(--status-neutral);
  --c-focus: var(--border-focus);
  --c-grad-from: var(--background-primary);
  --c-grad-to: var(--background-secondary);
  --c-grid: var(--chart-grid);
  --c-info: var(--text-muted);
  --c-ink: var(--text-primary);
  --c-ink-2: var(--text-secondary);
  --c-ink-3: var(--text-muted);
  --c-line: var(--border-subtle);
  --c-line-ghost: var(--chart-secondary);
  --c-line-now: var(--chart-primary);
  --c-nav-on-bg: var(--accent-primary);
  --c-nav-on-ink: var(--text-inverse);
  --c-navy: var(--text-primary);
  --c-on-brand: var(--text-inverse);
  --c-page: var(--background-primary);
  --c-quiet: var(--text-muted);
  --c-sunk: var(--surface-secondary);
  --c-tag-ink: var(--text-primary);
  --c-tip-bg: var(--chart-tooltip-background);
  --c-up: var(--status-positive);
  --c-white: var(--surface-primary);
}

/* =====================================================================
   BUTTON PRESS (anim phase 1, item 2): buttons and tappable cards shrink to .97 for 120ms.
   TRANSFORM ONLY: controls that already had a transition keep their own list; only transform's timing is set.
   .is-pressed is set by anim.js on pointerdown/touchstart, so it fires on a real iPhone touch (":active" alone
   does not there); :active stays as the keyboard path. Gated by html.an-press (the press flag) and reduced motion.
   Text links and form fields are left out.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.an-press .v5 .v5-go,
  html.an-press .v5 .cl-more,
  html.an-press .v5 .tm-save,
  html.an-press .v5 .os-yes,
  html.an-press .v5 .set-btn,
  html.an-press .v5 .sh-torent,
  html.an-press .v5 .tm-cancel,
  html.an-press .v5 .os-no,
  html.an-press .v5 .v5-tabs button {
    transition: box-shadow .3s ease, transform .12s cubic-bezier(.2, .8, .2, 1), background-color .3s ease; }
  html.an-press .v5 .v5-x {
    transition: box-shadow .3s ease, transform .12s cubic-bezier(.2, .8, .2, 1); }
  html.an-press .v5 .lb-hit,
  html.an-press .v5 .bb-lb-hit,
  html.an-press .v5 a.bb-tile,
  html.an-press .v5 .mr-btn,
  html.an-press .v5 .v5-i,
  html.an-press .v5 .v5-fold {
    transition: transform .12s cubic-bezier(.2, .8, .2, 1); }
  html.an-press .v5 .v5-go.is-pressed:not([disabled]),
  html.an-press .v5 .cl-more.is-pressed:not([disabled]),
  html.an-press .v5 .tm-save.is-pressed:not([disabled]),
  html.an-press .v5 .os-yes.is-pressed:not([disabled]),
  html.an-press .v5 .set-btn.is-pressed:not([disabled]),
  html.an-press .v5 .sh-torent.is-pressed:not([disabled]),
  html.an-press .v5 .tm-cancel.is-pressed:not([disabled]),
  html.an-press .v5 .os-no.is-pressed:not([disabled]),
  html.an-press .v5 .v5-tabs button.is-pressed:not([disabled]),
  html.an-press .v5 .v5-x.is-pressed:not([disabled]),
  html.an-press .v5 .lb-hit.is-pressed:not([disabled]),
  html.an-press .v5 .bb-lb-hit.is-pressed:not([disabled]),
  html.an-press .v5 a.bb-tile.is-pressed:not([disabled]),
  html.an-press .v5 .mr-btn.is-pressed:not([disabled]),
  html.an-press .v5 .v5-i.is-pressed:not([disabled]),
  html.an-press .v5 .v5-fold.is-pressed:not([disabled]),
  html.an-press .v5 .clay-btn.is-pressed:not([disabled]),
  html.an-press .v5 .clay-card--lift.is-pressed:not([disabled]),
  html.an-press .v5 .clay-tab.is-on.is-pressed:not([disabled]),
  html.an-press .v5 .v5-go:active:not([disabled]),
  html.an-press .v5 .cl-more:active:not([disabled]),
  html.an-press .v5 .tm-save:active:not([disabled]),
  html.an-press .v5 .os-yes:active:not([disabled]),
  html.an-press .v5 .set-btn:active:not([disabled]),
  html.an-press .v5 .sh-torent:active:not([disabled]),
  html.an-press .v5 .tm-cancel:active:not([disabled]),
  html.an-press .v5 .os-no:active:not([disabled]),
  html.an-press .v5 .v5-tabs button:active:not([disabled]),
  html.an-press .v5 .v5-x:active:not([disabled]),
  html.an-press .v5 .lb-hit:active:not([disabled]),
  html.an-press .v5 .bb-lb-hit:active:not([disabled]),
  html.an-press .v5 a.bb-tile:active:not([disabled]),
  html.an-press .v5 .mr-btn:active:not([disabled]),
  html.an-press .v5 .v5-i:active:not([disabled]),
  html.an-press .v5 .v5-fold:active:not([disabled]),
  html.an-press .v5 .clay-btn:active:not([disabled]),
  html.an-press .v5 .clay-card--lift:active:not([disabled]),
  html.an-press .v5 .clay-tab.is-on:active:not([disabled]) {
    transform: scale(.97); }
}

/* =====================================================================
   RELEASE 1 PRESS: the rest of the tappable buttons and cards (rows, tiles, form buttons) get the same press as the list above.
   Same rules: transform only, .is-pressed from anim.js (touch) or :active (keyboard), html.an-press (flag), reduced motion = none.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.an-press .v5 :is(.cl-lhit, .cl-lrow, .cl-lost-row, .cl-drow, .cl-row, .tm-row, .pay-row, .bb-open, .bb-drill, .sc-hit, .lb-more, .mr-ghost, .mr-grey, .mr-no, .mr-yes, .pr-send, .pr-set, .pr-close, .pr-switch-big, .pr-nm, .rp-chip, .rp-print, .rp-retry, .pay-retry, .tm-inv, .tm-invite, .tm-set, .tm-small, .hz-go, .ins-rowbtn, .ins-back, .v5-btn, .v5-signout, .bb-phone, button[data-m], button[data-theme-pick], #v5-signout, #pr-prev, #pr-now, #pr-next) { transition: transform .12s cubic-bezier(.2, .8, .2, 1), background-color .3s ease, box-shadow .3s ease; }
  html.an-press .v5 :is(.cl-lhit, .cl-lrow, .cl-lost-row, .cl-drow, .cl-row, .tm-row, .pay-row, .bb-open, .bb-drill, .sc-hit, .lb-more, .mr-ghost, .mr-grey, .mr-no, .mr-yes, .pr-send, .pr-set, .pr-close, .pr-switch-big, .pr-nm, .rp-chip, .rp-print, .rp-retry, .pay-retry, .tm-inv, .tm-invite, .tm-set, .tm-small, .hz-go, .ins-rowbtn, .ins-back, .v5-btn, .v5-signout, .bb-phone, button[data-m], button[data-theme-pick], #v5-signout, #pr-prev, #pr-now, #pr-next).is-pressed:not([disabled]),
  html.an-press .v5 :is(.cl-lhit, .cl-lrow, .cl-lost-row, .cl-drow, .cl-row, .tm-row, .pay-row, .bb-open, .bb-drill, .sc-hit, .lb-more, .mr-ghost, .mr-grey, .mr-no, .mr-yes, .pr-send, .pr-set, .pr-close, .pr-switch-big, .pr-nm, .rp-chip, .rp-print, .rp-retry, .pay-retry, .tm-inv, .tm-invite, .tm-set, .tm-small, .hz-go, .ins-rowbtn, .ins-back, .v5-btn, .v5-signout, .bb-phone, button[data-m], button[data-theme-pick], #v5-signout, #pr-prev, #pr-now, #pr-next):active:not([disabled]) { transform: scale(.97); }
}

/* RING DRAW (anim phase 1, item 4): stroke-dasharray only (the one allowed non-transform/opacity exception), 600 ms, once.
   Final value is in the markup, so no-JS and reduce-motion show it from first paint. */
@media (prefers-reduced-motion: no-preference) {
  .an-ring .an-rg { animation: an-ring-draw .6s cubic-bezier(.2, .8, .2, 1); }
  @keyframes an-ring-draw { from { stroke-dasharray: 0 var(--rc); } }
}
/* count-up (anim phase 1, item 3): tabular figures on the animated hero numbers only (class set by anim.js countUp). */
.v5 .cu-num { font-variant-numeric: tabular-nums; }

/* reveal (anim release 4): cards/tiles rise and fade in once on load. opacity + transform only; class removed when done, nothing at rest. */
@media (prefers-reduced-motion: no-preference) {
  .v5 .an-rv { animation: an-rv .4s cubic-bezier(.2, .8, .2, 1) var(--rv, 0ms) backwards; }
  @keyframes an-rv { from { opacity: 0; transform: translateY(14px); } }
}
