/*
  Rndez owner dashboard — "Apple look" (2026-10-06). Rules: docs/new-look.md, section "Dashboards".
  Audited against Apple's Human Interface Guidelines with the claude-code-apple-skills review
  (ui-review, typography, liquid-glass, navigation-patterns, ux-writing), translated to the web:
  - System font (San Francisco on Apple devices) in Apple's text styles, sized in rem so the browser's
    text size setting scales everything (the web's Dynamic Type). Rounded figures for one big number.
  - Grouped grey page, white inset-grouped cards with no borders, hairline separators inset from the left.
  - Frosted-glass navigation layer only (side bar, top bar, the floating tab bar on a phone); content is never glass.
  - Capsule controls at phone scale, switches for on/off, 44pt touch targets, one tinted main action.
  - Rndez stays in the wordmark and the ink tint. Light only: the owner ruled out dark mode (2026-10-05).
*/

/* ---------- colours and type ---------- */
:root {
  --bg: #ffffff;                 /* white, like the website (owner, 2026-10-18: "make app match website colors, replace the green with white"); was sage #e6e9e0 */
  --card: #f3f5fc;               /* cards: a very light Rndez blue on the white page, like the website's cards */
  --ink: #000000;                /* label */
  --fade: #5a5a5e;               /* secondary label: 4.5:1 or more on white, the page, the cards and a selected row (fill-2); was #636366, 4.2:1 on a selected row (desktop UX audit 2026-10-18) */
  --faint: #8e8e93;              /* tertiary: chevrons, placeholders (never for words that matter) */
  --sep: rgba(60, 60, 67, .2);   /* separator */
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .2);
  --tint: #1f3bd1;               /* the app's accent is the company blue, like the website (owner, 2026-10-18: "it's the accent I want #1F3BD1"); was ink #1c1c1e */
  --on-tint: #ffffff;
  --accent: var(--tint);
  --on-accent: var(--on-tint);
  --blue: #1f3bd1;               /* The mascot's cobalt: the Rndez highlight colour */
  --green: #34c759;              /* green marks */
  --switch-on: #248a3d;          /* a switch that is on: 4.6:1 on the card, so it reads as on (the bright green is 2.2:1) */
  --field-edge: #7c7c80;         /* the 1px edge of fields and off switches: 3:1 or more on the card and the page */
  --red: #d70015;                /* accessible system red: destructive words */
  --today: #ff3b30;              /* the calendar's red today and now line, as in Apple Calendar */
  --today-text: #c0000f;         /* today's red as words and numbers on the page: 5.2:1 (the bright red is 2.9:1) */
  --ok: #17602a;  --ok-soft: rgba(52, 199, 89, .14);
  --warn: #8a3e00; --warn-soft: rgba(255, 149, 0, .16);
  --bad: #d70015; --bad-soft: rgba(255, 59, 48, .12);
  --soft: #f7f7fa;               /* closed hours, quiet notes */
  --line-ink: rgba(0, 0, 0, .16); /* calendar column lines (round 2: hours and columns carry the same weight) */
  --hair-ink: rgba(0, 0, 0, .13); /* calendar hour lines */
  --hair: rgba(60, 60, 67, .12);
  --glass-line: rgba(0, 0, 0, .1);
  --shadow-lift: 0 10px 40px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .06);

  /* Shared design rules (round 2, 2026-10-10). Same names in public/hq/index.html: change them together.
     Spacing 2 · 4 · 6 · 8 · 12 · 16 · 24 · 32. */
  --s1: 2px; --s2: 4px; --s3: 6px; --s4: 8px; --s5: 12px; --s6: 16px; --s7: 24px; --s8: 32px;
  /* Corners: an inner shape's corner = outer corner - padding. Capsules 9999px, round icons 50%, the calendar grid 0. */
  --r-inner: 8px; --r-control: 10px; --r-card: 12px; --r-sheet: 18px;
  /* Control heights: compact and regular on a mouse; 44 on touch (--tap). */
  --h-compact: 28px; --h-regular: 34px;
  /* Content widths on computers: forms, lists, wide pages. */
  --w-read: 44rem; --w-list: 52rem; --w-wide: 80rem;
  /* Icons: 14 inline, 18 toolbar, 24 tab bar and +. One stroke everywhere. */
  --icon-s: 14px; --icon-m: 18px; --icon-l: 24px; --icon-stroke: 1.75;
  /* Shadows: none for cards; these for things that float. */
  --sh-thumb: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
  --sh-float: 0 8px 24px rgba(0, 0, 0, .10), 0 1px 3px rgba(0, 0, 0, .06);

  /* Materials: three levels of glass, everything else solid.
     BAR: edge bars that content scrolls under (top bar, sheet header). Clear at rest; the material appears on scroll.
     FLOAT: the detached tab bar and the Save bar beside it.
     OVERLAY: menus and the toast, which float over anything. */
  --mat-bar: rgba(255, 255, 255, .78);
  --mat-bar-fx: blur(20px) saturate(170%);
  --mat-bar-line: 0 .5px 0 rgba(0, 0, 0, .12);
  --mat-float: rgba(255, 255, 255, .72);
  --mat-float-fx: blur(14px) saturate(180%) brightness(1.03);
  --mat-rim: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 .5px rgba(255, 255, 255, .55);
  --mat-edge: 0 0 0 .5px rgba(0, 0, 0, .10);
  --mat-menu: rgba(255, 255, 255, .92);
  --mat-menu-fx: blur(30px) saturate(180%);
  --mat-dark: rgba(28, 28, 30, .84);
  --mat-dark-fx: blur(20px) saturate(150%);
  --solid-bar: #ffffff; --solid-float: #ffffff; --solid-side: #f6f7fd;
  --glass: var(--mat-bar);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Mona Sans", var(--sans);  /* the brand font: calendar dates and numbers */
  --rounded: ui-rounded, "SF Pro Rounded", var(--sans);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --wide: 100%;
  /* Text styles (type audit 2026-10-17, docs/audits/type-audit-2026-10-17.md). ONE ladder for the whole app:
     Apple's iOS text styles at the default ("Large") size. Every font-size in the app is one of these.
     The page's rem is 15px (html 93.75% below), so --pt is one Apple point in rem: the sizes follow the person's own
     text size, the browser zoom and the calendar's ⌘+ / ⌘–. --type-scale is the one knob for the whole ladder
     (1 = Apple's sizes exactly; .9375 = one step smaller, the owner's 2026-10-07 setting). */
  --type-scale: 1;
  --pt: calc(var(--type-scale) * 1rem / 15);
  --t-large-title: calc(34 * var(--pt)); /* not used on pages: the owner found 34 too big (2026-10-06) */
  --t-title1: calc(28 * var(--pt));      /* big money on the payment screens */
  --t-title2: calc(22 * var(--pt));      /* the title of a main page (Home, Clients, Checkout…); stat numbers */
  --t-title3: calc(20 * var(--pt));      /* the title of a Settings page or a second-level page */
  --t-headline: calc(17 * var(--pt));    /* section and card titles, sheet titles (semibold) */
  --t-body: calc(17 * var(--pt));        /* body, list rows, fields, buttons */
  --t-callout: calc(16 * var(--pt));     /* table cells, side bar rows */
  --t-subhead: calc(15 * var(--pt));     /* labels over fields, second lines, small buttons */
  --t-footnote: calc(13 * var(--pt));    /* help lines, section headers, chips, segmented controls */
  --t-caption1: calc(12 * var(--pt));    /* captions, times */
  --t-caption2: calc(11 * var(--pt));    /* the smallest: badges, tab-bar labels. Nothing in the app is smaller (except the calendar's own drawings) */
  --w-regular: 400; --w-medium: 500; --w-semibold: 600; /* Apple's weights; 700 is not used (titles are 600) */
  --top-h: 50px;
  --nav-h: 64px;
  --side-w: 248px;
  --r: var(--r-card);    /* grouped cards */
  --r-field: var(--r-control);
  --tap: 44px;
  /* Keyboard focus: one solid 2px cobalt ring, 7:1 on the white page and the pale blue cards. */
  --focus: #1f3bd1;
  color-scheme: light;
}
/* Computers and iPads: the Mac's ladder (Large Title 26 · Title 22/17/15 · Body 13 · Footnote 10) two points up, so body
   and buttons are 15 like the Mac's web apps (13 is too small for a page of words at arm's length) and titles never
   grow past the phone's. */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  :root {
    --t-large-title: calc(28 * var(--pt)); --t-title1: calc(24 * var(--pt)); --t-title2: calc(19 * var(--pt)); --t-title3: calc(17 * var(--pt));
    --t-headline: calc(15 * var(--pt)); --t-body: calc(15 * var(--pt)); --t-callout: calc(14 * var(--pt)); --t-subhead: calc(13 * var(--pt));
    --t-footnote: calc(12 * var(--pt)); --t-caption1: calc(11 * var(--pt)); --t-caption2: calc(11 * var(--pt));
  }
}
/* The smaller Mac-sized targets only with a mouse or trackpad. An iPad (a finger, any width) keeps 44pt. */
@media (min-width: 768px) and (pointer: fine) { :root { --tap: 34px; } }

* { box-sizing: border-box; }
/* One step smaller than the browser's text size (owner, 2026-10-07: "fonts way too big"). Every size is in rem,
   so this scales the whole dashboard evenly and still follows the person's own text-size setting. */
html { -webkit-text-size-adjust: 100%; font-size: 93.75%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.35; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
/* A main page's title: Title 2. A Settings page's title (.setup-head): Title 3, below. Semibold, not bold (Apple's 600). */
h1 { font-size: var(--t-title2); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.setup-head h1 { font-size: var(--t-title3); letter-spacing: -.01em; }
h2 { font-size: var(--t-headline); line-height: 1.3; font-weight: 600; }
/* Section header above a group: footnote size, secondary colour, sentence case. */
h3 { font-size: var(--t-footnote); line-height: 1.3; font-weight: 500; letter-spacing: 0; color: var(--fade); }
h2.as-h3 { font-size: var(--t-footnote); line-height: 1.3; font-weight: 500; letter-spacing: 0; color: var(--fade); } /* a section's name, at the right heading level */
b, strong { font-weight: 600; }
/* Tables: Callout, headers semibold (the browser's th is bold 700). */
table { font-size: var(--t-callout); }
th { font-weight: 600; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button[disabled] { cursor: default; opacity: .4; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }
.boot { padding: calc(48px + env(safe-area-inset-top)) 20px 48px; text-align: center; color: var(--fade); }
.fade { color: var(--fade); }
.small { font-size: var(--t-footnote); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; }
.stack.tight { gap: 6px; }
.two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
/* Two fields side by side where one has a hint: the boxes line up (Time off: First day, Last day). */
.two:has(> label.field > .hint) { align-items: end; }
/* Pickers whose words are long (Client messages): one per row on a phone. */
@media (max-width: 599px) { .two.one-narrow { grid-template-columns: minmax(0, 1fr); } }

/* ---------- buttons: capsules; grey "bordered" by default, ink "prominent" for the one main action ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 6px 16px; border-radius: 9999px;
  background: var(--fill); color: var(--tint);
  font-size: var(--t-body); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
@media (hover: hover) { .btn:hover:not([disabled]) { background: var(--fill-2); } }
.btn:active:not([disabled]) { opacity: .6; }
.btn.go { background: var(--tint); color: var(--on-tint); }
@media (hover: hover) { .btn.go:hover:not([disabled]) { background: #3a3a3c; } }
.btn.bad { color: var(--red); }
.btn.full { width: 100%; }
/* "Continue with Google": Google's own look (white, grey edge, the four-colour G), main.js googleBlock. */
.btn.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775; gap: 10px; }
@media (hover: hover) { .btn.google:hover { background: #f8f9fa; } }
.btn.google svg { width: 18px; height: 18px; }
/* "Continue with Apple": Apple's own look (black, white logo), same size as Google's (main.js socialBlock). */
.btn.apple { background: #000; color: #fff; gap: 10px; }
@media (hover: hover) { .btn.apple:hover { background: #1d1d1f; } }
.btn.apple svg { width: 16px; height: 19px; margin-top: -3px; }
.google-box { display: grid; gap: 12px; }
.google-box .or { display: flex; align-items: center; gap: 10px; color: var(--fade); font-size: var(--t-footnote); }
.google-box .or::before, .google-box .or::after { content: ""; flex: 1; height: 1px; background: var(--sep); }
.btn.sm { min-height: 30px; padding: 3px 12px; font-size: var(--t-subhead); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
/* Round icon buttons (close, earlier, later). */
.icon-btn {
  width: var(--tap); height: var(--tap); flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--fill); color: var(--tint);
}
@media (hover: hover) { .icon-btn:hover { background: var(--fill-2); } }
.icon-btn:active { opacity: .6; }
.icon-btn svg { width: 18px; height: 18px; }
/* Plain text button (Apple "borderless"): the tint, semibold, no underline. */
.link { color: var(--tint); font-weight: 600; text-decoration: none; }
@media (pointer: coarse) { a.link { display: inline-block; padding-block: 4px; } }
/* A link inside a sentence: a taller place to tap (44pt) without moving the lines around it. */
@media (pointer: coarse) { p a:not(.btn), p button.link:not(.small), .note a:not(.btn), .note button.link:not(.small) { padding-block: 12px; margin-block: -12px; } }
@media (hover: hover) { .link:hover { opacity: .7; } }

/* ---------- fields: filled, no border; a focus ring like the Mac's ---------- */
label.field { display: grid; gap: 6px; font-size: var(--t-footnote); font-weight: 500; color: var(--fade); }
label.field > span.hint { font-size: var(--t-footnote); font-weight: 400; color: var(--fade); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; min-height: var(--tap); padding: 7px 11px;
  border: 1px solid var(--field-edge); border-radius: var(--r-field); background: var(--fill); color: var(--ink);
  font-size: var(--t-body); font-weight: 400;
}
/* iPhone Safari gives date and time fields a fixed minimum width and its own look: in a two-column row the
   Time box ran past the screen's edge. They shrink to their column, and read like the other fields. */
input[type="date"], input[type="time"] { min-width: 0; max-width: 100%; display: block; -webkit-appearance: none; appearance: none; text-align: left; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.4em; }
.two > *, label.field { min-width: 0; }
label.field { grid-template-columns: minmax(0, 1fr); }
textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
/* The search field's clear button: a drawn grey x, not the browser's blue one. */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-left: 6px; cursor: pointer; border-radius: 50%;
  background: var(--faint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* "Required" next to a field's name (LB.fieldReq): the same words on every form. */
label.field .req { font-weight: 400; color: var(--fade); font-size: var(--t-caption1); }
label.field .req::before { content: "· "; }
/* Only for screen readers (the chart's table in Reports). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
input::placeholder, textarea::placeholder { color: #5c5c60; opacity: 1; } /* 4.5:1 or more on the field fills */
input:focus, select:focus, textarea:focus { outline: 0; background: var(--card); border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
/* A field with a problem: a red edge, and its message right under it (LB.markField). */
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 1.5l3 3M3 7.5l3 3 3-3' fill='none' stroke='%23636366' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; }
label.check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); font-weight: 400; color: var(--ink); }
/* A switch with a title and a line under it (Setup → Alerts, Show my page on Google). */
label.check > .grow { display: grid; gap: 2px; padding: 6px 0; }
/* The Home Screen steps on the notifications card (push.js). */
.push-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; font-size: var(--t-footnote); }
input[type="color"] { cursor: pointer; }
/* On/off settings: an iOS switch at the end of the row. */
label.check input[role="switch"], input.mod-switch {
  order: 2; margin: 0 0 0 auto; flex: none; position: relative; width: 51px; height: 31px; cursor: pointer;
  appearance: none; -webkit-appearance: none; border-radius: 9999px; background: var(--fill-2); transition: background-color .2s;
}
label.check input[role="switch"]::after, input.mod-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: transform .2s;
}
label.check input[role="switch"]:not(:checked), input.mod-switch:not(:checked) { box-shadow: inset 0 0 0 1px var(--field-edge); }
label.check input[role="switch"]:checked, input.mod-switch:checked { background: var(--switch-on); }
label.check input[role="switch"]:checked::after, input.mod-switch:checked::after { transform: translateX(20px); }
label.check input[role="switch"]:focus-visible, input.mod-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 768px) and (pointer: fine) {
  label.check input[role="switch"], input.mod-switch { width: 38px; height: 22px; }
  label.check input[role="switch"]::after, input.mod-switch::after { width: 18px; height: 18px; }
  label.check input[role="switch"]:checked::after, input.mod-switch:checked::after { transform: translateX(16px); }
}
/* A tick in a list of choices: a round check, ink when picked. */
label.check input.pick {
  flex: none; width: 22px; height: 22px; margin: 0; cursor: pointer; appearance: none; -webkit-appearance: none;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); background: var(--card) center / 12px no-repeat;
}
label.check input.pick:checked {
  box-shadow: none; background-color: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
label.check input.pick:disabled { opacity: .4; }
/* Several can be picked (add-ons): a square tick, like a checkbox, not a round one. */
label.check input.pick.square { border-radius: 6px; }

/* ---------- small things: badges, notes, codes, errors ---------- */
.err { color: var(--red); font-weight: 500; font-size: var(--t-subhead); }
.err:empty { display: none; }
.note { background: var(--card); border-radius: var(--r); padding: 12px 16px; font-size: var(--t-subhead); }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
code, .code { font: .8125rem/1.5 var(--mono); }
.code { display: block; background: var(--fill); border-radius: var(--r-field); padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.item .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.facts .dispute > * { color: var(--red) !important; font-weight: 600; }
/* ---------- Reports (reports.js) ---------- */
.rpick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 14px; }
.rpick select { width: auto; min-width: 12rem; }
.rpick > a.btn { margin-left: auto; }
.rdates { display: flex; gap: 6px; align-items: center; }
.rdates input { width: auto; }
.rtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .rtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Marketing (marketing.js): the law note, who gets a message, the email and text previews, the client's consent. */
.view-marketing h3 { margin-top: 12px; }
.mk-who b { font-weight: 600; }
.mk-who p { margin: 4px 0 0; }
.mk-preview { display: grid; gap: 10px; }
@media (min-width: 768px) { .mk-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.mk-mail, .mk-text { display: grid; gap: 6px; padding: 12px 14px; background: var(--card); border-radius: var(--r); min-width: 0; overflow-wrap: anywhere; }
.mk-mail p, .mk-text p { margin: 0; }
.mk-btn { justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: var(--t-footnote); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mk-bubble { justify-self: start; max-width: 100%; padding: 8px 12px; border-radius: 16px; background: var(--bg); font-size: var(--t-subhead); white-space: pre-wrap; }
.mk-auto .grow label.check { min-height: 0; }
.item.mk-auto .grow > span { white-space: normal; }
.mk-switches .item label.check { flex: 1; }
.mk-bday { display: grid; gap: 6px; }
.mk-history summary { cursor: pointer; padding: 8px 0; color: var(--tint); font-size: var(--t-subhead); }
.mk-history .item .grow span { white-space: normal; }
.item.mk-auto label.check { color: var(--ink); }
.mk-wording { font-style: italic; }
.rtile { display: grid; gap: 2px; align-content: start; padding: 12px 14px; background: var(--card); border-radius: var(--r); min-width: 0; }
.rtile .rlabel { font-size: var(--t-footnote); color: var(--fade); font-weight: 500; }
.rtile b { font-family: var(--rounded); font-size: var(--t-title2); line-height: 1.15; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rtile small { font-size: var(--t-caption1); color: var(--fade); }
/* Schedule (schedule.js, plan 25): the week as people × days; on phones one day after the other. */
.sched-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.sched-range { font-family: var(--display); font-weight: 600; font-size: var(--t-headline); min-width: 8.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.sched-tools { display: flex; gap: 8px; }
.sched-clock { margin-bottom: 16px; }
.sched-clock:empty { display: none; }
.sched-clock.after { margin: 24px 0 0; }
.sched-grid { display: grid; grid-template-columns: minmax(6.5rem, 1.1fr) repeat(7, minmax(0, 1fr)) minmax(4.5rem, .8fr); background: var(--card); border-radius: var(--r); overflow: hidden; }
.sched-row { display: contents; }
.sched-row > * { display: flex; align-items: center; min-width: 0; padding: 5px 4px; border-bottom: .5px solid var(--sep); }
.sched-row.head > span { padding: 10px 6px; font-size: var(--t-footnote); font-weight: 500; color: var(--fade); }
.sched-row.head > span.today { color: var(--today-text); }
.sched-row > b { padding-left: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-cell { display: grid; gap: 2px; align-content: center; width: 100%; min-height: 44px; padding: 6px 8px; border-radius: var(--r-inner); background: var(--fill); color: var(--ink); font-size: var(--t-footnote); text-align: left; font-variant-numeric: tabular-nums; }
button.sched-cell:hover { background: var(--fill-2); }
.sched-cell.off { background: none; color: var(--fade); }
.sched-cell.changed { box-shadow: inset 0 0 0 1.5px var(--blue); }
.sched-cell .sched-hours { overflow-wrap: anywhere; }
.sched-changed { color: var(--blue); font-size: var(--t-caption1); font-weight: 600; }
.sched-total { display: grid; font-size: var(--t-subhead); font-variant-numeric: tabular-nums; }
.sched-total.warn { color: var(--warn); }
.sched-total small { font-size: var(--t-caption1); }
.sched-day h2 { margin: 8px 0 6px; font-size: var(--t-subhead); }
.sched-day.today h2 { color: var(--today-text); }
.sched-item .sched-cell { width: auto; max-width: 60%; min-height: 36px; text-align: right; }
.sched-person { display: grid; gap: 2px; margin-top: 8px; }
.sched-times > .field { flex: 1; min-width: 0; }
/* Locations (locations.js) */
.loc-total { background: var(--fill); }
.loc-add select { max-width: 16rem; }
.chg { font-size: var(--t-caption1); font-weight: 600; color: var(--fade); }
.chg.up { color: var(--ok); }
.chg.down { color: var(--red); }
.rcard { display: grid; gap: 10px; padding: 14px 16px; background: var(--card); border-radius: var(--r); }
.rcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rcard-head h2 { margin: 0; }
/* Section labels ("Money", "Staff") outrank the card titles ("By day"). */
.view-reports h2.rsection { margin: 14px 0 -4px; font-size: var(--t-headline); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.rcard-head h2.rcard-title { font-size: var(--t-subhead); font-weight: 600; color: var(--fade); }
.rbars { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--sep); border-radius: 4px; }
.rbars:focus-visible { outline-offset: 4px; }
.rbar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.rbar i { display: block; width: 100%; background: var(--blue, #1f3bd1); border-radius: 3px 3px 0 0; }
@media (hover: hover) { .rbar:hover i { opacity: .7; } }
.rbars .rbar.on i { background: var(--ink); }
.rreadout { min-height: 1.3em; font-size: var(--t-footnote); font-weight: 600; font-variant-numeric: tabular-nums; }
.view-reports .facts .num, .rnum small, .rlegend { font-variant-numeric: tabular-nums; }
.raxis { display: flex; justify-content: space-between; font-size: var(--t-caption1); color: var(--fade); }
.rmeter { display: block; height: 4px; margin-top: 6px; border-radius: 9999px; background: var(--fill); overflow: hidden; }
.rmeter i { display: block; height: 100%; background: var(--blue, #1f3bd1); border-radius: 9999px; }
.rnum { display: grid; justify-items: end; flex: none; min-width: 4.5rem; }
.rnum b { font-variant-numeric: tabular-nums; }
.rnum small { color: var(--fade); font-size: var(--t-footnote); }
.rnum b.neg { color: var(--red); }
.rbusy { display: grid !important; gap: 2px; margin-top: 4px; font-size: var(--t-footnote); }
.rsplit { display: flex; height: 10px; border-radius: 9999px; overflow: hidden; background: var(--fill); }
.rsplit i, .rlegend i { display: block; }
.rsplit i.new, .rlegend i.new { background: var(--blue, #1f3bd1); }
.rsplit i.back, .rlegend i.back { background: #a9b8ff; }
.rlegend { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--t-footnote); }
.rlegend span { display: inline-flex; gap: 6px; align-items: center; }
.rlegend small { color: var(--fade); font-size: var(--t-caption1); }
.rlegend i { width: 10px; height: 10px; border-radius: 3px; }

/* The "get your first booking" card above the calendar (day.js shareHint). */
.share { position: relative; display: grid; gap: 6px; margin: 0 0 12px; padding: 14px 48px 14px 16px; background: var(--card); border-radius: var(--r); }
.share h3 { margin: 0; font-size: var(--t-subhead); font-weight: 600; }
.share p { margin: 0; color: var(--fade); font-size: var(--t-footnote); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; max-width: 34rem; }
.share-url { flex: 1 1 14rem; min-width: 0; padding: 7px 12px; border-radius: var(--r-field); background: var(--fill); color: inherit; font-size: var(--t-footnote); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-url:hover { background: var(--fill-2); }
.share .share-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; min-height: 0; }
.share .share-close svg { width: 16px; height: 16px; }
/* "Next booking" on an empty day (calendar.js nextHint). */
.share.next-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-right: 16px; }
.share .next-line { color: var(--ink); font-size: var(--t-body); min-width: 0; }
.badge, .all-tag {
  display: inline-block; padding: 2px 8px; border-radius: 9999px; background: var(--fill); color: var(--ink);
  font-size: var(--t-caption1); font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.done { background: var(--ok-soft); color: var(--ok); }
.badge.noshow, .badge.cancelled { background: var(--bad-soft); color: var(--bad); }
.badge.late { background: var(--bad-soft); color: var(--bad); }   /* a supplier's late order (plan 48) */

/* ---------- frame: top bar (BAR glass once content scrolls under it), solid side bar (computers),
   floating tab bar (FLOAT glass, phones and tablets) ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s4);
  height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--s6), env(safe-area-inset-right)) 0 max(var(--s6), env(safe-area-inset-left)); /* clear of a sideways notch */
  background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* Apple's scroll edge: the bar is the page until something is under it. main.js sets is-scrolled. */
.top.is-scrolled { background: var(--mat-bar); -webkit-backdrop-filter: var(--mat-bar-fx); backdrop-filter: var(--mat-bar-fx); box-shadow: var(--mat-bar-line); }
@media (prefers-reduced-motion: no-preference) { .top, .sheet-head { transition: background-color .2s, box-shadow .2s; } }
/* "Skip to content": the first thing Tab reaches; out of sight until it has focus. */
/* Hidden until a keyboard reaches it: moved up past the iPhone notch (its safe area), not only by its own height, so it
   never peeks into the status bar. */
.skip { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: calc(8px + env(safe-area-inset-left)); z-index: 90; padding: 10px 16px; border-radius: 9999px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transform: translateY(calc(-100% - 24px - env(safe-area-inset-top))); }
.skip:focus { transform: none; }
/* The studio: the shop's name. With more than one shop, a button with a chevron that opens the shop menu;
   with one shop, just the name. */
.studio {
  display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; max-width: 100%; min-height: var(--tap); margin-left: calc(-1 * var(--s3));
  padding: 0 var(--s3); border-radius: var(--r-inner); font-size: var(--t-subhead); font-weight: 600; color: var(--ink);
}
.studio > .studio-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio svg { width: 12px; height: 12px; flex: none; color: var(--fade); }
@media (hover: hover) { .studio:hover { background: var(--fill); } }
.studio:active { background: var(--fill-2); }
.studio.solo { cursor: default; padding-left: 0; margin-left: 0; }
@media (hover: hover) { .studio.solo:hover { background: none; } }
.studio.solo:active { background: none; }
.pop-menu .menu-sep { height: .5px; margin: var(--s2) var(--s4); background: var(--sep); }
.pop-menu .menu-note { padding: 6px 10px 4px; max-width: 18rem; font-size: var(--t-footnote); color: var(--fade); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The account button: the person's initial in a circle, at the far right of the top bar. */
.bell { position: relative; flex: none; margin-left: auto; width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: none; }
.bell svg { width: 22px; height: 22px; }
@media (hover: hover) { .bell:hover { background: var(--fill); } }
.bell-badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9999px; background: var(--red); color: #fff; font-style: normal; font-size: var(--t-caption2); font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--bg); }
.top .bell + .acct { margin-left: 0; }
/* What's new: newest first; the unseen ones marked. */
.feed-list { display: grid; }
.feed-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--hair-ink); background: none; text-align: left; color: var(--ink); cursor: pointer; }
@media (hover: hover) { .feed-item:hover { background: rgba(0, 0, 0, .035); } }
.feed-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); }
.feed-icon svg { width: 18px; height: 18px; }
.feed-item.fresh .feed-icon { background: color-mix(in srgb, #1f3bd1 14%, var(--bg)); color: #1f3bd1; }
.feed-item.k-owner_cancelled .feed-icon, .feed-item.k-dispute .feed-icon { color: var(--red); }
.feed-main { display: grid; gap: 2px; min-width: 0; }
.feed-main b { font-weight: 600; }
.feed-item.fresh .feed-main b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: #1f3bd1; vertical-align: middle; }
.feed-main span { font-size: var(--t-footnote); color: color-mix(in srgb, var(--ink) 75%, transparent); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; } /* two lines, then "…" */
/* Computers: the list in a popover under the bell (core.js LB.popover). */
.pop-panel {
  position: fixed; z-index: 75; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border-radius: var(--r-sheet); box-shadow: 0 0 0 .5px var(--glass-line), var(--shadow-lift);
}
.pop-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 18px; }
.pop-head h2 { flex: 1; min-width: 0; font-size: var(--t-headline); }
.pop-head h2:focus { outline: 0; }
.pop-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 12px 12px; }
.pop-body .feed-item { padding-left: 6px; padding-right: 6px; border-radius: var(--r-inner); }
.feed-when { font-size: var(--t-caption1); color: var(--fade); white-space: nowrap; }
.acct { flex: none; margin-left: auto; width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; }
.acct span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: .9375rem; font-weight: 600; line-height: 1; }
@media (hover: hover) { .acct:hover span { opacity: .8; } }
.acct:active span { opacity: .6; }
.acct[aria-expanded="true"] span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.top .studio { min-width: 0; flex: 0 1 auto; }
/* A choice in a menu (the current shop): Apple's checkmark before the label. */
.pop-menu:has([role="menuitemradio"]) .menu-item { position: relative; padding-left: 30px; }
.menu-item.on::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: currentColor;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
}
.top .brand {
  /* The wordmark itself, "Rndez" in black (2026-10-18, Square-like; was RNDEZ with a blue d). */
  display: block; flex: none; height: 16px; aspect-ratio: 290 / 73;
  background: url(../brand/rndez-wordmark-black.svg) center / contain no-repeat;
}
.brand-lock { display: flex; align-items: center; gap: 8px; flex: none; }
.brand-icon { width: 26px; height: 26px; flex: none; }
.top-sep { flex: none; width: 1px; height: 18px; background: var(--sep); }
.top .shop { min-width: 0; font-size: var(--t-subhead); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Phones (also held sideways): the app icon stands for the brand; the wordmark is for the computer's side bar. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { .top .brand, .top-sep { display: none; } .brand-icon { width: 28px; height: 28px; } }

/* Phones and tablets: a floating capsule tab bar (FLOAT glass), at most five places.
   Setup is in the studio menu at the top. When the page has a +, it sits beside the bar, in the same row. */
.nav {
  position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; display: flex; gap: var(--s1); padding: var(--s2);
  background: var(--mat-float); -webkit-backdrop-filter: var(--mat-float-fx); backdrop-filter: var(--mat-float-fx);
  border: 0; border-radius: 9999px; box-shadow: var(--mat-rim), var(--mat-edge), var(--sh-float);
}
.nav button {
  /* Sized by their words, then the spare room shared: long French labels fit beside the + on a small phone. */
  flex: 1 1 auto; min-width: min-content; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1);
  border-radius: 9999px; font-size: var(--t-caption2); font-weight: 600; letter-spacing: 0; color: #3a3a3c; /* Apple's tab label, never under 11px */
}
/* Phone tabs: Calendar, Clients, Reports, Requests, More. Waitlist and Setup are in More. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { .nav button[data-view="setup"], .nav button.phone-in-more { display: none; } }
/* More is "here" on a phone also for Setup and (when it moved there) Reports. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { .nav .nav-more.more-here-phone { color: var(--ink); background: var(--fill-2); } }
/* Schedule and Locations (plan 25) live in More on phones; staff keep Schedule in their bar (they have no More). */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { .nav:not(.for-staff) button[data-view="schedule"], .nav button[data-view="locations"] { display: none; } }
/* Messages is in More on an owner's phone; staff (no More) keep it on the bar (inbox.js). */
/* The + of the calendar has its place beside the bar on every page, so the tabs never move or change size. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { .nav { right: calc(max(12px, env(safe-area-inset-right)) + 62px + 8px); } }
@media (max-width: 399px) { .nav { right: calc(12px + 56px + 6px); } }
@media (max-width: 350px) { .nav { right: calc(8px + 48px + 6px); } }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { .nav .nav-more { min-width: 48px; } }
/* New requests: a red count on the tab. */
.nav button { position: relative; }
.nav-badge { position: absolute; top: 4px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9999px; background: var(--red); color: #fff; font-style: normal; font-size: var(--t-caption2); font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--solid-float); }
@media (min-width: 700px) and (max-width: 767px) and (min-height: 501px), (min-width: 700px) and (max-width: 767px) and (pointer: fine) {
  .nav { left: 50%; right: auto; transform: translateX(calc(-50% - 35px)); width: min(560px, calc(100vw - 106px)); } /* the + sits 8px to its right */
  .nav button { flex-direction: row; gap: var(--s3); font-size: var(--t-footnote); }
  .nav-badge { position: static; margin-left: 2px; }
}
.nav button span { max-width: 100%; padding: 0 2px; white-space: nowrap; }
.nav button svg { width: var(--icon-l); height: var(--icon-l); }
.nav button[aria-current="page"] { color: #000; font-weight: 600; background: rgba(0, 0, 0, .07); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .04); }
/* Staff see only the calendar: no bar of one. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { .nav.solo { display: none; } }
.view {
  padding: var(--s4) max(var(--s6), env(safe-area-inset-right)) calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)) max(var(--s6), env(safe-area-inset-left));
  max-width: 1180px; margin: 0 auto;
}
/* Room kept under the page for the floating bar (the calendar uses it as a spacer at the end of the grid). */
:root { --dock-space: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
/* What the calendar keeps clear at the end of every view: the tab bar's height and where it floats
   (max(12px, the home bar's inset) + 62px, the + is no taller), and 16px of air. */
:root { --dock-clear: calc(max(12px, env(safe-area-inset-bottom)) + 62px + 24px); }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  body:has(.nav.solo) { --dock-space: calc(16px + env(safe-area-inset-bottom)); }
  body:has(.nav.solo) .view:not(.cal-view) { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* Computers and iPads: one side bar down the left (docs/audits/shell-2026-10-16), the page to the right with a large
   title. The bar is one column in three parts: the top (brand, the shop switcher, search and the bell), the places
   (they scroll on a short screen), and the foot (Get started, Settings, the account, Collapse / Expand), which never
   scrolls away. Icons only (html.nav-mini) keeps the same parts in the same order. A phone held sideways (short and
   touch) keeps the phone's tab bar. */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .side:not(.shade) { /* the shell's side bar, not a side sheet (.shade.side, core.js LB.sheet) */
    position: fixed; z-index: 31; top: 8px; bottom: 8px; left: calc(8px + env(safe-area-inset-left)); width: calc(var(--side-w) - 16px);
    display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-sheet);
    /* Solid: nothing ever scrolls under the side bar, so glass would be blur over nothing. */
    background: var(--solid-side); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 4px 20px rgba(0, 0, 0, .05);
  }
  .top, .top.is-scrolled {
    position: static; flex: none; width: auto; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 16px 10px 6px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .top .brand-lock { min-height: 44px; padding: 0 0 0 8px; }
  .top .brand-lock .side-toggle { margin-left: auto; }
  .top .brand { height: 18px; }
  .top-sep, .top .acct { display: none; }
  .top .shop { font-size: var(--t-headline); padding: 0 2px; }
  /* The shop switcher: the whole row, the chevron at its end. */
  .top .studio { width: 100%; min-height: 44px; margin: 0; padding: 0 10px; justify-content: flex-start; font-size: var(--t-headline); border-radius: 10px; }
  .top .studio .studio-name { flex: 1 1 auto; }
  .top .studio.solo { padding: 0 10px; }
  .top .side-mode { display: block; align-self: flex-start; margin: -4px 0 0 10px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--t-footnote); color: var(--fade); cursor: pointer; text-align: left; }
  @media (hover: hover) { .top .side-mode:hover { color: var(--ink); text-decoration: underline; } }
  .nav-mini .top .side-mode { display: none; }
  /* Search and the bell share one row: same height, never on top of each other. */
  .top-tools { display: flex; align-items: center; gap: 6px; }
  .top .top-search { flex: 1 1 auto; justify-content: flex-start; width: auto; min-width: 0; min-height: 44px; margin: 0; padding: 0 10px; border-radius: 10px; background: var(--fill); color: var(--fade); font-size: var(--t-subhead); }
  .top .top-search svg { width: 16px; height: 16px; flex: none; }
  .top .top-search-words { display: inline; flex: 1 1 auto; text-align: left; }
  .top-search-key { font: inherit; font-size: var(--t-caption1); color: var(--fade); }
  .top .bell { position: relative; top: auto; right: auto; flex: none; width: 44px; height: 44px; margin: 0; border-radius: 10px; }
  .top .bell svg { width: 20px; height: 20px; }
  .top .bell-badge { top: 3px; right: 3px; box-shadow: 0 0 0 2px var(--solid-side); }
  /* The places. */
  .nav {
    position: static; flex: 1 1 auto; min-height: 0; width: auto; transform: none;
    display: flex; flex-direction: column; gap: 2px; padding: 2px 10px 10px; overflow-x: hidden; overflow-y: auto;
    background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav.more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
  .nav.more-above { -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to top, #000 calc(100% - 20px), transparent); }
  .nav.more-above.more-below { -webkit-mask-image: linear-gradient(transparent, #000 20px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(transparent, #000 20px, #000 calc(100% - 28px), transparent); }
  .nav-favs { display: contents; }
  .nav button, .side-foot > button {
    position: relative; flex: none; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px;
    min-height: 44px; padding: 0 10px; border-radius: 8px; font-size: var(--t-body); font-weight: 500; color: var(--ink); text-align: left;
  }
  .nav button svg, .side-foot > button svg { flex: none; width: 18px; height: 18px; color: var(--tint); }
  .nav button > span, .side-foot > button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  @media (hover: hover) { .nav button:hover, .side-foot > button:hover { background: var(--fill); } }
  /* You are here: a filled row, bold words, the icon in ink (the same in the icon menu). No bar at the edge: it sat outside the row and looked like a stray line. */
  .nav button[aria-current="page"], .side-foot > button[aria-current="page"] { background: var(--fill-2); font-weight: 600; box-shadow: none; }
  .nav button[aria-current="page"] svg, .side-foot > button[aria-current="page"] svg { color: var(--ink); }
  /* The cash drawer, part of Checkout: one step in. */
  .nav button.nav-child { padding-left: 38px; }
  .nav .nav-group { display: flex; align-items: center; gap: 8px; flex: none; margin: 14px 10px 4px; font-size: var(--t-caption1); font-weight: 600; letter-spacing: 0; color: var(--fade); } /* Mac sidebar section names: small, grey, as written */
  .nav .nav-group .mod-tile { width: 18px; height: 18px; border-radius: 5px; }
  .nav .nav-group .mod-tile svg { width: 12px; height: 12px; }
  .nav .fav-tile { background: var(--fill-2); color: var(--ink); }
  .nav .nav-group-gap { display: block; flex: none; height: 10px; }
  .nav > .nav-favs:empty + .nav-group, .nav-favs > .nav-group:first-child { margin-top: 4px; }
  .nav > .nav-favs:empty + .nav-group-gap, .nav-favs > .nav-group-gap:first-child { display: none; }
  .nav .nav-setup-dock { display: none; }
  .nav .nav-more { margin-top: 12px; }
  .nav .nav-badge { position: static; margin-left: auto; box-shadow: none; }
  .nav button > .nav-badge ~ span { flex: 1 1 auto; }
  /* Plan 60: groups that open and close, like the Square Dashboard's menu. The group's row has its icon, its name and a
     chevron; its parts sit one step in, words only. "You are here" is the part's row; its group's name is bold. */
  .nav .nav-grp { display: flex; flex-direction: column; gap: 2px; flex: none; }
  .nav .nav-subs { display: flex; flex-direction: column; gap: 1px; margin-bottom: 4px; }
  .nav .nav-grp.closed .nav-subs { display: none; }
  .nav button.nav-head > span:not(.nav-chev) { flex: 1 1 auto; }
  .nav .nav-chev { flex: none; display: inline-flex; margin-left: auto; color: var(--faint); transition: transform .2s; }
  .nav .nav-chev svg { width: 12px; height: 12px; color: inherit; }
  .nav .nav-grp.closed .nav-chev { transform: rotate(-90deg); }
  .nav button.nav-head.here-group { font-weight: 600; }
  .nav button.nav-head.here-group svg { color: var(--ink); }
  .nav button.nav-sub { min-height: 44px; padding-left: 38px; font-size: var(--t-subhead); font-weight: 400; color: var(--ink); }
  .nav button.nav-sub svg { display: none; }
  .nav button.nav-sub[aria-current="page"] { font-weight: 600; }
  /* A closed group with a count inside (Messages unread, products to reorder): a small dot on its row. */
  .nav .nav-grp.closed:has(.nav-badge:not([hidden])) > .nav-head::after { content: ""; position: absolute; top: 50%; right: 30px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--red); }
  @media (prefers-reduced-motion: reduce) { .nav .nav-chev { transition: none; } }
  /* Help, beside the bell (plan 60). The search's ⌘K stays in its tooltip, so the three fit one row. */
  .top .top-search .top-search-key { display: none; }
  /* Help, beside the bell (plan 60). */
  .top .top-help { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); }
  .top .top-help svg { width: 20px; height: 20px; }
  @media (hover: hover) { .top .top-help:hover { background: var(--fill); } }
  /* The foot: never scrolls away. */
  .side-foot { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-top: .5px solid var(--sep); }
  .side-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 9999px; background: color-mix(in srgb, #1f3bd1 14%, transparent); color: #1f3bd1; font-style: normal; font-size: var(--t-caption1); font-weight: 600; line-height: 22px; text-align: center; }
  .side-avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: .875rem; font-weight: 600; line-height: 1; }
  .side-who { display: grid; min-width: 0; line-height: 1.25; }
  .side-who b, .side-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-who b { font-size: var(--t-subhead); font-weight: 600; }
  .side-who small { font-size: var(--t-footnote); color: var(--fade); }
  .side-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--fade); }
  .side-toggle svg { width: 20px; height: 20px; }
  .side-toggle > span { display: none; }
  @media (hover: hover) { .side-toggle:hover { background: var(--fill); color: var(--ink); } }
  .more-pop .phone-only, .phone-only { display: none; }
  .view { margin-left: calc(var(--side-w) + env(safe-area-inset-left)); padding: 28px max(36px, env(safe-area-inset-right)) 64px 36px; max-width: none; }
  .view > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
  .view > .list, .view > .head-row + .stack, .view > .search-row { max-width: var(--w-list); margin-left: 0; }
  /* List pages: one right edge for the title row, the search and the list. */
  .view-clients > *, .view-waitlist > *, .view-requests > * { max-width: var(--w-list); margin-left: 0; }

  /* ---- icons only: the same parts, the same order; group headings become thin lines; a tooltip names each icon ---- */
  html.nav-mini { --side-w: 76px; }
  .nav-mini .top { align-items: center; gap: 4px; padding: 14px 8px 6px; }
  .nav-mini .top .brand-lock { flex-direction: column; gap: 4px; padding: 0; }
  .nav-mini .top .brand-lock .side-toggle { margin-left: 0; }
  .nav-mini .top .brand { display: none; }
  .nav-mini .top .studio, .nav-mini .top .studio.solo { display: grid; place-items: center; justify-content: center; align-content: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border-radius: 10px; background: var(--fill-2); }
  .nav-mini .top .studio .studio-initials { display: block; font-size: .75rem; font-weight: 600; }
  .nav-mini .top .studio svg { display: none; }
  .nav-mini .top .studio .studio-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-mini .top-tools { flex-direction: column; gap: 2px; }
  .nav-mini .top .top-search { flex: none; width: 44px; padding: 0; justify-content: center; background: none; color: var(--ink); }
  .nav-mini .top .top-search svg { width: 20px; height: 20px; }
  .nav-mini .top .top-search-words, .nav-mini .top-search-key { display: none; }
  .nav-mini .nav { align-items: center; padding: 2px 8px 10px; }
  .nav-mini .nav button, .nav-mini .side-foot > button { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; gap: 0; }
  .nav-mini .nav button svg, .nav-mini .side-foot > button svg { width: 20px; height: 20px; }
  .nav-mini .nav button > span, .nav-mini .side-foot > button:not(.side-acct) > span { display: none; }
  .nav-mini .nav button.nav-child { padding-left: 0; }
  .nav-mini .nav .nav-group, .nav-mini .nav .nav-group-gap { display: block; width: 28px; height: 1px; margin: 7px auto; padding: 0; overflow: hidden; font-size: 0; background: var(--sep); }
  .nav-mini .nav .nav-group > * { display: none; }
  .nav-mini .nav > .nav-favs:empty + .nav-group, .nav-mini .nav-favs > .nav-group:first-child { display: none; }
  .nav-mini .nav .nav-more { margin-top: 8px; }
  /* Icons only: one icon per group; a click opens its parts in a small menu beside it (main.js). */
  .nav-mini .nav .nav-subs, .nav-mini .nav .nav-chev { display: none; }
  /* You are here, icons only: the group's icon holds the place (its parts are in its small menu). */
  .nav-mini .nav button.nav-head.here-group { background: var(--fill-2); }
  .nav-mini .nav button.nav-head.here-group svg { color: var(--ink); }
  .nav-mini .nav .nav-grp:has(.nav-badge:not([hidden])) > .nav-head::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
  .nav-mini .top-tools .top-help { width: 44px; }
  .nav-mini .nav-badge, .nav-mini .nav .nav-badge { position: absolute; top: 2px; right: -2px; left: auto; min-width: 16px; height: 16px; padding: 0 4px; margin: 0; line-height: 16px; box-shadow: 0 0 0 2px var(--solid-side); }
  .nav-mini .side-foot { align-items: center; padding: 8px; }
  .nav-mini .side-count { position: absolute; top: 1px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; line-height: 16px; font-size: var(--t-caption2); }
  .nav-mini .side-who { display: none; }
}

@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  /* Phones: the side bar is not a box: the top bar and the dock stay where they are. Favourites, the foot and the
     group headings are the side menu's (the dock has the person's own four places and More). */
  .side:not(.shade), .top-tools { display: contents; }
  .top .side-toggle { display: none; }
  .side-foot, .nav-favs, .nav .nav-group, .nav .nav-group-gap, .wide-only { display: none; }
  /* Plan 60: the menu's groups are not boxes in the dock; only the places with their own icon (data-view) can be dock
     icons. The tabs of a view (Sales → Payments) are in the account sheet. The group of the page you are on is lit. */
  .nav .nav-grp, .nav .nav-subs { display: contents; }
  .nav .nav-sub:not([data-view]), .nav .nav-one:not([data-view]), .nav .nav-head:not([data-view]), .nav .nav-chev { display: none; }
  .nav button.here-view { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); box-shadow: none; }
  .nav button.here-view svg { stroke-width: 2.1; }
  /* No More in the dock (Paul, 2026-10-16): the person's own icons only; the rest is in the account sheet. */
  .nav .nav-more, .nav .nav-more.more-here-phone { display: none; }
  /* The account button says "you are here" when the page is not in the dock, and shows a dot when something in
     its sheet needs you (products to reorder). */
  .top .acct { position: relative; }
  .top .acct.here span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue); }
  .top .acct.has-dot::after { content: ""; position: absolute; top: 5px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--today); box-shadow: 0 0 0 2px var(--bg); }
}
/* The account sheet (phones): who is logged in, then clear groups of 44 px rows. */
.acct-sheet .acct-who { display: flex; align-items: center; gap: 12px; padding: 4px 4px 8px; }
.acct-sheet .acct-who .side-avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 600; }
.acct-sheet .acct-who .side-who { display: grid; min-width: 0; }
.acct-sheet .acct-who b, .acct-sheet .acct-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-sheet .acct-who small { color: var(--fade); font-size: var(--t-footnote); }
.acct-sheet .acct-sheet-h { margin: 18px 4px 6px; font-size: var(--t-headline); font-weight: 600; color: var(--ink); }
.acct-sheet .acct-sheet-group { margin: 12px 4px 6px; font-size: var(--t-caption1); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fade); }
.acct-sheet .list + .list { margin-top: 10px; }
.acct-sheet .item { min-height: 44px; }
.acct-sheet .item .grow > span { display: block; font-size: var(--t-footnote); color: var(--fade); }
/* The icon menu on a touch screen (iPad): no tooltips there, so each icon keeps a short label under it. */
@media (min-width: 768px) and (min-height: 501px) and (pointer: coarse) {
  html.nav-mini { --side-w: 100px; }
  .nav-mini .nav { padding-left: 6px; padding-right: 6px; }
  .nav-mini .nav button, .nav-mini .side-foot > button { flex-direction: column; justify-content: center; gap: 2px; width: 100%; height: auto; padding: 6px 0; min-height: 52px; }
  .nav-mini .nav button > span, .nav-mini .side-foot > button:not(.side-acct) > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; padding: 0; white-space: normal; text-align: center; font-size: var(--t-caption2); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; -webkit-hyphens: auto; hyphens: auto; }
  .nav-mini .nav button[aria-current="page"] > span { font-weight: 600; }
  .nav-mini .nav-badge { top: 2px; left: calc(50% + 2px); right: auto; } /* on the icon's corner, as on the phone */
}
/* The tooltip of the icon menu (main.js navTip): beside the icon, never in the way of the pointer. */
.nav-tip {
  position: fixed; z-index: 96; transform: translateY(-50%); max-width: 18rem; padding: 6px 10px; border-radius: 8px; pointer-events: none;
  background: var(--ink); color: var(--bg); font-size: var(--t-footnote); font-weight: 600; line-height: 1.3; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.nav-tip.below { transform: translateX(-50%); }
.nav-tip[hidden] { display: none; }
/* All apps: each place, and its star to pin it to the menu's favourites. */
.more-list .more-row { display: flex; align-items: center; }
.more-list .more-row > .item { flex: 1 1 auto; min-width: 0; }
.fav-star { flex: none; width: var(--tap); height: var(--tap); margin-right: 4px; color: var(--fade); }
.fav-star.is-fav { color: #1f3bd1; }
.fav-star.is-fav svg { fill: currentColor; }
.more-hint { margin: 2px 4px 0; }

/* ---------- log in, sign up, first shop: one grouped card ---------- */
.auth {
  max-width: 24rem; margin: 56px auto; padding: 28px 24px 24px; display: grid; gap: 16px;
  background: var(--card); border-radius: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.auth .logo { width: 88px; height: 88px; margin: -6px auto; justify-self: center; } /* The mascot, waving, in the middle */
.auth > h1 { font-size: var(--t-title2); font-weight: 600; text-align: center; justify-self: center; text-wrap: balance; }
.auth > p.fade { text-align: center; }
.auth:has(> .tabs > button:first-child[aria-selected="true"]) > h1 {
  height: 24px; aspect-ratio: 290 / 73; margin: 4px 0 6px; overflow: hidden; color: transparent;
  background: url(../brand/rndez-wordmark-black.svg) left center / contain no-repeat;
}
@media (max-width: 480px) { .auth { width: calc(100% - 32px); margin: calc(16px + env(safe-area-inset-top)) auto 16px; padding: 22px 18px 18px; } } /* centred, clear of the notch in the app and on the Home Screen */
.auth-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: -4px; }
.auth > h1:focus { outline: 0; }
.auth .center { text-align: center; }
.auth-hint { position: relative; z-index: 1; max-width: 24rem; margin: 0 auto; padding: 0 16px; text-align: center; font-size: var(--t-footnote); color: var(--fade); }
.auth input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--red); }
/* Password: the rule above the field (it gets a tick once met) and a show/hide button inside it. */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-inner); color: var(--fade); }
.pw-eye svg { width: 20px; height: 20px; }
@media (hover: hover) { .pw-eye:hover { color: var(--ink); } }
.pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-rule { font-size: var(--t-footnote); font-weight: 400; color: var(--fade); }
.pw-rule::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 5px; vertical-align: -1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.pw-rule.met { color: var(--ok); }
.pw-rule.met::before { box-shadow: none; background: currentColor; -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="12"/><path d="M6.5 12.5l3.5 3.5 7.5-8" stroke="white" stroke-width="3" fill="none"/></svg>') center / contain; mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm5.6 8.1-8 8.5-3.7-3.6 1.4-1.4 2.3 2.2 6.6-7z"/></svg>') center / contain; }
/* Check your email: what the email service said, then the code, then the two ways forward. */
.verify-status { text-align: center; color: var(--fade); overflow-wrap: anywhere; }
.verify-status b { color: var(--ink); font-weight: 600; }
.verify-status.bad { color: var(--red); }
.verify-change { padding-top: var(--s2); }
.auth.verify > .fade.small { text-align: center; }
/* Montréal behind the log-in card (main.js townBehind): the street stays at the bottom of the screen. */
/* Only the street (the snowflakes at the top of the drawing are cropped off), smaller and paler: the card leads. */
.town { position: fixed; inset: auto 0 0 0; height: calc(max(100vw, 1000px) * 290 / 2400); overflow: hidden; pointer-events: none; z-index: 0; opacity: .5; }
.town-street { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: max(100%, 1000px); height: auto; max-width: none; }
.town-bike { position: absolute; bottom: calc(max(100vw, 1000px) * 28 / 2400); left: 0; width: clamp(48px, 5vw, 80px); height: auto; animation: town-ride 26s linear infinite; }
@keyframes town-ride { from { transform: translateX(-120px); } to { transform: translateX(calc(100vw + 120px)); } }
@media (prefers-reduced-motion: reduce) { .town-bike { animation: none; left: 62%; } }
.auth { position: relative; z-index: 1; }
/* Back to the website: the Rndez logo, top left, above the street. */
.auth-home { position: absolute; z-index: 2; top: calc(14px + env(safe-area-inset-top)); left: 16px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px 0 4px; border-radius: 9999px; color: var(--ink); }
.auth-home > span:first-child svg { display: block; width: 18px; height: 18px; }
.auth-home { font-size: var(--t-footnote); font-weight: 600; }
.auth-brand { justify-self: center; height: 22px; width: auto; margin: 2px 0 -6px; }
@media (hover: hover) { .auth-home:hover { background: var(--fill); } }
.auth-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 480px) { body:has(.auth-home) .auth { margin-top: calc(68px + env(safe-area-inset-top)); } }

/* ---------- segmented controls ---------- */
.tabs, .seg { display: inline-flex; gap: 0; padding: 2px; max-width: 100%; background: var(--fill); border-radius: var(--r-control); }
.tabs { display: flex; }
.tabs button, .seg button {
  flex: 1; min-height: var(--h-compact); padding: 0 14px; border-radius: var(--r-inner); white-space: nowrap;
  font-size: var(--t-footnote); font-weight: 500; color: var(--ink);
}
.tabs button[aria-selected="true"], .seg button[aria-pressed="true"], .seg button[aria-selected="true"] {
  background: var(--card); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
}
.seg-full { display: flex; width: 100%; }
.seg-full button { flex: 1; padding: 0 8px; }

/* ---------- inset grouped lists ---------- */
.list { background: var(--card); border-radius: var(--r); overflow: hidden; }
.item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--tap); padding: 11px 16px; text-align: left; }
.item:not(:last-child)::after { content: ""; position: absolute; left: 16px; right: 0; bottom: 0; height: .5px; background: var(--sep); }
@media (hover: hover) { button.item:hover { background: rgba(0, 0, 0, .03); } }
button.item:active { background: var(--fill); }
.item .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.item .grow span { display: block; color: var(--fade); font-size: var(--t-subhead); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Long titles (client-form questions): up to two lines, then "…". */
.wrap-rows .item .grow b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.item svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
/* More (phones): each place with its menu icon, the open one in bold. */
.more-item .more-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--fill); }
.more-item .more-icon svg { width: 18px; height: 18px; color: var(--ink); }
.more-item[aria-current="page"] .grow b { font-weight: 600; }
.item .icon-btn svg { width: 18px; height: 18px; color: var(--tint); } /* a button inside a row (e.g. remove from the waitlist): full size and contrast, not a faint chevron */
.empty { padding: 36px 16px; text-align: center; color: var(--fade); font-size: var(--t-subhead); }
/* An empty page: one sentence and the one button (LB.emptyState). */
.empty.with-action { display: grid; justify-items: center; gap: 12px; }
.empty.with-action p { max-width: 28rem; text-wrap: balance; }
/* Loading: a small spinner before the words (LB.loadingRow). */
.empty.loading { display: flex; align-items: center; justify-content: center; gap: 8px; }
.spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--fill-2); border-top-color: var(--fade); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.head-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 44px; margin: 4px 0 16px; }
.head-row h1 { flex: 1; }

/* ---------- calendar (calendar.js), laid out like Apple Calendar (2026-10-08) ----------
   Still editorial (owner, 2026-10-06): the grid sits on the sage page with thin ink lines, square booking blocks,
   dates in the brand's wide Mona Sans, red only for today and the now line.
   Four kinds of time look different: open (plain page) · closed (fine diagonal hatch) · time off (solid grey band,
   labelled) · busy in a person's own calendar (dotted outline, labelled). Bookings that overlap are outlined in red. */
.view.cal-view {
  display: flex; flex-direction: column; overflow: hidden;
  height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h) - env(safe-area-inset-top));
  padding-bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .view.cal-view { height: 100vh; height: 100dvh; padding-bottom: 20px; } .view.cal-view > .cal-shell { max-width: none; } }
.cal-shell { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; }
.cal-shell.has-side { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 28px; }
/* The calendar comes first in the page (keyboard order); the small month is still drawn on the left. */
.cal-shell.has-side > .cal-side { grid-column: 1; grid-row: 1; }
.cal-shell.has-side > .cal-main { grid-column: 2; grid-row: 1; }
/* The calendar's one live region (calendar.js announce): read by screen readers, not shown. */
.cal-live { position: fixed; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cal-main { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.cal-main > * { flex: none; }
.cal-main > .cal { flex: 1 1 auto; min-height: 200px; }

/* Top bar, like Apple Calendar on the Mac: the views, + and ⋯ on top; the date and ‹ Today › under them.
   One filled control only (the views). Everything else is plain ink with a 44pt touch area; grey shows on press or hover. */
.cal-toolbar { display: grid; gap: var(--s5); margin: 2px 0 var(--s5); }
.cal-bar-top, .cal-bar-date { display: flex; align-items: center; gap: var(--s4); min-width: 0; }
.cal-title-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
@media (min-width: 700px) and (min-height: 501px), (min-width: 700px) and (pointer: fine) { .cal-bar-date { justify-content: flex-start; } .cal-bar-date .cal-title-wrap { flex: 0 0 auto; max-width: calc(100% - 128px); padding-right: 8px; } .cal-bar-date .cal-title { margin-right: 0; } .cal-bar-date .cal-title-main, .cal-bar-date .cal-title-sub { overflow: visible; } }
.cal-h1 { display: block; min-width: 0; margin: 0; font: inherit; letter-spacing: inherit; }
.cal-title { display: grid; gap: 1px; max-width: 100%; text-align: left; border-radius: var(--r-inner); padding: 2px 4px; margin: -2px -4px; }
.cal-title-mark { display: inline-flex; margin-left: 4px; vertical-align: .15em; color: var(--fade); }
.cal-title-mark svg { width: 11px; height: 11px; }
.cal-title-main { font-family: var(--display); font-stretch: 112%; font-size: var(--t-title1); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-title-sub { font-size: var(--t-footnote); color: var(--fade); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .cal-title:hover .cal-title-main { color: var(--today-text); } }
.cal-title-wrap input[type="date"] { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
/* Whose bookings: a people icon. Filled ink when only some people are shown, so a filter is never forgotten. */
.cal-who { display: none; align-items: center; justify-content: center; flex: none; width: var(--tap); height: var(--tap); border-radius: 50%; color: var(--ink); }
.cal-who svg { width: 20px; height: 20px; }
.cal-who.on { background: var(--ink); color: var(--bg); }
.cal-nav { display: inline-flex; flex: none; align-items: center; gap: 0; }
.cal-nav .icon-btn, .cal-more { background: none; color: var(--ink); }
.cal-nav .icon-btn { width: var(--h-compact); height: var(--h-compact); }
.cal-nav .cal-today { min-height: var(--h-compact); background: none; padding: 0 var(--s4); font-size: var(--t-subhead); font-weight: 600; }
@media (hover: hover) { .cal-nav .icon-btn:hover, .cal-nav .cal-today:hover, .cal-more:hover, .cal-who:not(.on):hover { background: var(--fill); } }
.cal-nav .icon-btn:active, .cal-nav .cal-today:active, .cal-more:active, .cal-who:not(.on):active { background: var(--fill-2); opacity: 1; }
.cal-add span { display: inline-flex; }
.cal-add svg { width: 15px; height: 15px; }
.cal-more { width: var(--h-regular); height: var(--h-regular); }
.cal-modes { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; } /* four equal segments */
.cal-modes button { min-width: 72px; padding: 0 12px; }
.cal-all { min-height: var(--h-compact); background: none; box-shadow: inset 0 0 0 1px var(--line-ink); }
.cal-all[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
@media (hover: hover) { .cal-all:hover:not([aria-pressed="true"]) { background: var(--fill); } }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { .cal-add { display: none; } /* the round + beside the tab bar instead */ }
@media (pointer: coarse) { .cal-nav .icon-btn, .cal-nav .cal-today { min-height: var(--tap); height: var(--tap); } .cal-nav .icon-btn { width: var(--tap); } .cal-more { width: var(--tap); height: var(--tap); } }
/* A mouse: every control in the bar is one height (32px = the views' segmented control), not a mix of 28 and 34. */
@media (pointer: fine) {
  .cal-toolbar .icon-btn, .cal-toolbar .cal-more { width: 32px; height: 32px; min-height: 32px; }
  .cal-toolbar .btn.sm, .cal-toolbar .cal-all { height: 32px; min-height: 32px; }
}
/* Phones: the full date (never cut, calendar.js picks the longest wording that fits) with the count under it, ‹ Today › beside it;
   then the views, whose bookings and ⋯. Two rows at every phone width. */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .cal-toolbar { gap: var(--s3); margin-bottom: var(--s3); }
  .cal-bar-date { gap: var(--s2); }
  .cal-bar-top { gap: var(--s3); }
  .cal-bar-top > .grow { display: none; }
  .cal-title-wrap { align-self: center; }
  .cal-who { display: inline-flex; }
  .cal-modes { display: grid; flex: 1 1 auto; min-width: 0; }
  .cal-all { display: none; } /* in the ⋯ menu on phones */
  .cal-modes button { min-width: auto; padding: 0 6px; } /* a long word ("Semaine") takes its room; the rest share what is left */
  .cal-nav { margin-right: -10px; }
  .cal-nav .cal-today { padding: 0 var(--s2); }
  .cal-tools { margin-right: -6px; }
  .cal-title-main { font-size: var(--t-title2); }
  .cal-title-mark { display: none; } /* the date opens the picker; the chevron cost the date its room */
}
/* Phones (iPhone reviews, 2026-10-13): one tight block.
     the title (with a chevron: it opens a date picker) · ‹ Today ›
     whose bookings, a chip in words ("Sam ▾", "Everyone ▾") · how many and the value · ⋯
     the views, full width. No row of faces; nothing that looks like the round account button. */
.cal-subrow { display: none; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .cal-toolbar { gap: 6px; margin: -4px 0 6px; } /* the bookings start sooner (review 2, P2) */
  .cal-bar-date { gap: 0; }
  .cal-modes button { min-height: 32px; }
  .cal-bar-top { display: block; }
  .cal-bar-top > :not(.cal-modes) { display: none; }
  .cal-modes { display: grid; width: 100%; }
  .cal-nav { margin-right: -8px; }
  .cal-nav .icon-btn { width: 36px; }
  .cal-nav .cal-today { padding: 0 6px; font-size: var(--t-footnote); }
  .cal-title-sub { display: none; } /* on a phone the summary is the row under the title */
  .cal-title-mark { display: inline-flex; margin-left: 3px; }
  .cal-title-mark svg { width: 12px; height: 12px; stroke-width: 2.5; }
  .cal-subrow { order: -1; display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: -6px; }
  .cal-subrow-text { flex: 1 1 auto; min-width: 0; font-size: var(--t-footnote); color: var(--fade); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .cal-whobtn { position: relative; display: inline-flex; align-items: center; gap: 5px; flex: 0 1 auto; min-width: 0; max-width: 55%; height: 30px; padding: 0 8px 0 4px; border-radius: 9999px; background: var(--fill); color: var(--ink); font-size: var(--t-footnote); font-weight: 600; }
  .cal-whobtn::after { content: ""; position: absolute; inset: -7px 0; } /* a 44pt tap area */
  .cal-whobtn .av.sm { width: 22px; height: 22px; font-size: 10px; }
  .cal-whobtn .av.all { background: none; color: var(--ink); }
  .cal-whobtn .av.all svg { width: 17px; height: 17px; }
  .cal-whobtn-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal-whobtn-mark { display: inline-flex; flex: none; }
  .cal-whobtn-mark svg { width: 12px; height: 12px; stroke-width: 2.25; }
  .cal-whobtn:active { background: var(--fill-2); }
  .cal-more-mini { flex: none; width: 36px; height: 30px; margin-right: -6px; background: none; color: var(--ink); }
  .cal-more-mini::after { content: ""; position: absolute; inset: -7px 0; }
  .cal-more-mini { position: relative; }
  /* Cards: a little less padding, so a narrow week column keeps its full time. */
  .bk { padding: 3px 5px 3px 6px; border-left-width: 3px; }
  .cal-week .bk > b { font-size: .8125rem; } /* three days side by side: "Camille R." still fits whole */
  .cal { scroll-padding-left: 42px; scroll-snap-type: x mandatory; } /* the phone's hour column (calendar.js GUT); a swipe stops on a day */
  .cal-gutter span { right: 5px; }
}
/* The people menu: each person's count at the end of the row. */
.menu-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 9999px; background: var(--fill); font-size: var(--t-caption1); font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink); }
.menu-item:hover .menu-count, .menu-item:focus-visible .menu-count { background: rgba(255, 255, 255, .25); color: inherit; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .cal-main > .cal-strip { margin-bottom: var(--s2); }
  .cal-strip .strip-day { min-height: 44px; gap: 1px; padding: 0; }
  .cal-strip .strip-day b { width: 28px; height: 28px; font-size: .9375rem; }
  .cal-strip .strip-day i { width: 4px; height: 4px; }
}
@media (max-width: 360px) { .cal-title-main { font-size: var(--t-title3); } }
/* Apple Calendar's header: once the grid scrolls, the date gets smaller and its second line goes (calendar.js). */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .cal-toolbar.compact .cal-title-main { font-size: var(--t-headline); }
  .cal-toolbar.compact .cal-title-sub { display: none; }
}
.cal-tools { display: inline-flex; align-items: center; gap: var(--s1); flex: none; }
/* Order follows the width even after a resize (calendar.js builds the phone order on phones). */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) { .cal-bar-date { order: -1; } }
@media (min-width: 700px) and (min-height: 501px), (min-width: 700px) and (pointer: fine) { .cal-bar-top { order: -1; } }
/* The round + (phones and tablets): in the tab bar's row, beside it, so it never covers a booking.
   The bar makes room for it, and the grid ends with a spacer so the last hour scrolls clear of both. */
.fab {
  position: fixed; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 21;
  width: 62px; height: 62px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #1c1c1e; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 .5px rgba(0, 0, 0, .2), var(--sh-float);
}
.fab:active { transform: scale(.94); }
.fab svg { width: var(--icon-l); height: var(--icon-l); }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { body:has(.fab) .nav { right: calc(12px + 62px + 8px); } }
@media (max-width: 399px) {
  .fab { width: 56px; height: 56px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 3px); }
  body:has(.fab) .nav { right: calc(12px + 56px + 6px); }
}
@media (max-width: 350px) {
  .nav { left: 8px; right: 8px; gap: 0; padding: 3px; }
  .nav button { min-width: 44px; }
  .save-bar { left: 8px; right: 8px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 60px + 8px); }
  .fab { right: 8px; width: 48px; height: 48px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 6px); }
  body:has(.fab) .nav { right: calc(8px + 48px + 6px); }
  .nav button { font-size: var(--t-caption2); }
  .nav button span { padding: 0 1px; }
}
@media (min-width: 700px) and (max-width: 767px) and (min-height: 501px), (min-width: 700px) and (max-width: 767px) and (pointer: fine) {
  /* The centred bar moves left by half the + and its gap; the + sits 8px to its right. */
  body:has(.fab) .nav { width: min(560px, calc(100vw - 106px)); right: auto; transform: translateX(calc(-50% - 35px)); }
  .fab { right: auto; left: calc(50vw - 35px + min(280px, (100vw - 106px) / 2) + 8px); }
}
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .fab { display: none; } }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .view.cal-view { padding-bottom: 0; }
}
/* Every view ends with room for the floating tab bar and the +, so the last booking scrolls fully above them.
   The room is part of each view's own content (the grid's last row, the month's and the list's padding), which
   every browser counts when scrolling; a scroll box's own bottom padding is not counted by all of them. */
.cal-end { grid-column: 1 / -1; height: 0; }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .cal { scroll-padding-bottom: var(--dock-clear); }
  .cal-end { height: var(--dock-clear); }
  .month-wrap, .list-wrap, .cal > .empty { padding-bottom: var(--dock-clear); }
  .cal.all-list { padding-bottom: var(--dock-clear); }
}

/* Who is shown (no side bar). */
.cal-chips { padding-bottom: 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 30px; padding: 0 12px; border-radius: 9999px;
  background: none; box-shadow: inset 0 0 0 1px var(--line-ink); font-size: var(--t-footnote); font-weight: 600; white-space: nowrap;
}
@media (hover: hover) { .chip:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip i, .dot, .month-item i, .who-row i, .cal-person i, .tag.who i { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.s0 { --c: #2f6fde; } .s1 { --c: #e07a16; } .s2 { --c: #1f9d6b; } .s3 { --c: #9a4fd0; } .s4 { --c: #b88a00; } .s5 { --c: #d23a6e; }
.who-row { display: inline-flex; align-items: center; gap: 8px; }

/* Side bar (wide screens): small month, staff, key. */
.cal-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 4px 2px 12px 0; }
.cal-side-title { margin-top: 12px; font-size: var(--t-caption1); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fade); }
.mini-month { display: grid; gap: 6px; }
.mini-head { display: flex; align-items: center; gap: 2px; }
.mini-head b { flex: 1; font-family: var(--display); font-stretch: 112%; font-size: var(--t-subhead); font-weight: 600; letter-spacing: -.02em; }
.mini-step { width: 26px; height: 26px; background: none; }
.mini-step svg { width: 14px; height: 14px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px 0; text-align: center; }
.mini-dow { font-size: max(11px, .625rem); font-weight: 600; color: color-mix(in srgb, var(--ink) 72%, transparent); padding-bottom: 2px; }
.mini-day { height: 28px; border-radius: 50%; font-size: var(--t-caption1); font-variant-numeric: tabular-nums; }
.mini-day.other { color: color-mix(in srgb, var(--ink) 62%, transparent); }
.mini-day.in-week { background: var(--fill); border-radius: 0; }
.mini-day.today { color: var(--today-text); font-weight: 600; }
.mini-day.on { background: var(--ink); color: var(--bg); border-radius: 50%; font-weight: 600; }
.mini-day.today.on { background: var(--red); color: #fff; }
/* A day with bookings: a small dot under the number. */
.mini-day.has { position: relative; }
.mini-day.has::before { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--fade); }
.mini-day.has.on::before, .mini-day.has.today.on::before { background: currentColor; }
@media (hover: hover) { .mini-day:not(.on):hover { background: var(--fill-2); } }
.cal-people { display: grid; gap: 0; }
.cal-person { display: flex; align-items: center; gap: 6px; min-height: 32px; border-radius: 8px; padding: 0 6px; }
.cal-person label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--t-subhead); }
.cal-person label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-person input { width: 16px; height: 16px; margin: 0; accent-color: var(--c); }
.cal-only { opacity: 0; font-size: var(--t-caption1); font-weight: 600; color: var(--fade); padding: 2px 6px; border-radius: 6px; }
.cal-person:hover .cal-only, .cal-only:focus-visible { opacity: 1; }
@media (hover: hover) { .cal-person:hover { background: var(--fill); } .cal-only:hover { color: var(--ink); } }
.cal-zone { margin-top: 10px; font-size: var(--t-footnote); color: var(--fade); }

/* Phone and tablet: the week strip over Day view. */
.cal-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: -2px 0 10px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.strip-day { display: grid; justify-items: center; gap: 2px; min-height: 58px; padding: 4px 0; border-radius: 12px; }
.strip-dow { font-size: max(11px, .6875rem); font-weight: 600; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.strip-day b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--display); font-stretch: 112%; font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.strip-day i { width: 5px; height: 5px; border-radius: 50%; }
/* A day with bookings: one ink dot; amber when something needs you (a deposit due, a conflict). Same as the month. */
.strip-day i.has, .day-dot { background: color-mix(in srgb, var(--ink) 70%, transparent); }
.strip-day i.has.need, .day-dot.need { background: #e69500; box-shadow: 0 0 0 1px #9a5c00; }
.day-dot { display: block; flex: none; width: 5px; height: 5px; border-radius: 50%; }
/* Month on a phone: one dot = some bookings, two = busy, three = nearly full. */
.day-dots { display: flex; gap: 2px; justify-content: center; }
.strip-day.today b { color: var(--today-text); }
.strip-day.on b { background: var(--ink); color: var(--bg); }
.strip-day.today.on b { background: var(--red); color: #fff; } /* the accessible red: white on it reads 5.4:1 */
.strip-day.on .strip-dow { color: var(--ink); }

/* ---------- the time grid (Day and Week) ---------- */
.cal {
  position: relative; overflow: auto; background: var(--bg); border-top: 1px solid var(--ink); outline: 0;
  scroll-snap-type: x proximity; scroll-padding-left: 56px; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent;
}
.cal::-webkit-scrollbar { width: 8px; height: 8px; }
.cal::-webkit-scrollbar-track { background: transparent; }
.cal::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 8px; border: 2px solid var(--bg); }
.cal::-webkit-scrollbar-corner { background: transparent; }
.cal-inner { display: grid; min-width: 100%; width: max-content; }
.cal-inner.fit, .cal-inner.fill { width: 100%; }
.cal-head {
  position: sticky; top: 0; z-index: 7; display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 8px 10px; background: var(--bg); border-bottom: 1px solid var(--line-ink); border-left: 1px solid var(--line-ink);
  font-size: var(--t-footnote); font-weight: 600; white-space: nowrap; overflow: hidden;
}
.cal-head-text { display: grid; min-width: 0; line-height: 1.2; }
.cal-head-sub { font-size: var(--t-caption1); font-weight: 500; color: color-mix(in srgb, var(--ink) 72%, transparent); font-variant-numeric: tabular-nums; }
/* A face: the photo, or the initials on the person's colour. */
.av { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  background: var(--c, var(--fill-2)); color: #fff; font-size: max(11px, .6875rem); font-weight: 600; letter-spacing: .02em; font-stretch: 100%; }
.av.sm { width: 24px; height: 24px; font-size: 11px; }
/* White initials need a darker circle on the light colours (orange, green, mustard: 3.0–3.4:1 → 5:1). Cards keep their tint. */
.av.s1 { background: #a85a0c; } .av.s2 { background: #1a7f57; } .av.s4 { background: #8a6700; }
.cal-head-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-head-off { margin-left: auto; padding: 1px 6px; border-radius: 9999px; background: var(--fill); font-size: max(11px, .6875rem); color: var(--ink); }
.cal-head .mini { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.cal-head .dot { width: 9px; height: 9px; }
/* Week: the weekday small, the date big; today's date in a red circle, like Apple Calendar. */
.cal-head.day-link { flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 8px; cursor: pointer; font-size: max(11px, .6875rem); color: color-mix(in srgb, var(--ink) 72%, transparent); }
.day-link-row { display: flex; align-items: center; gap: 4px; }
.day-count { min-width: 18px; padding: 0 5px; border-radius: 9999px; background: var(--fill); color: var(--ink); font-size: max(11px, .625rem); font-weight: 600; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.cal-head.day-link b { display: grid; place-items: center; min-width: 28px; height: 28px; margin-left: -4px; padding: 0 4px; border-radius: 9999px; font-family: var(--display); font-stretch: 112%; font-size: var(--t-headline); line-height: 1; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
@media (hover: hover) { .cal-head.day-link:hover b { background: var(--fill); } }
/* One date state everywhere (Day strip, Week, Month, the small month), the iPhone Calendar rule:
   today = a red number · the picked day = an ink circle · picked and today = a red circle. No outlines. */
.cal-head.day-link.today { color: var(--today-text); font-weight: 600; }
.cal-head.day-link.today b { color: var(--today-text); }
.cal-head.day-link.on b { background: var(--ink); color: var(--bg); }
.cal-head.day-link.today.on b { background: var(--red); color: #fff; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .cal-head.day-link { align-items: center; gap: 0; padding: 3px 0 4px; }
  .cal-head.day-link b { margin-left: 0; }
  .day-link-row { display: flex; align-items: center; gap: 3px; }
}
.fit .cal-head.day-link { align-items: center; padding: 6px 0; }
.fit .cal-head.day-link b { margin: 0; font-size: var(--t-subhead); }
.cal-corner { position: sticky; left: 0; top: 0; z-index: 8; background: var(--bg); border-bottom: 1px solid var(--line-ink); }
.cal-gutter { position: sticky; left: 0; z-index: 6; background: var(--bg); }
.cal-gutter-in { position: relative; height: 100%; }
.cal-gutter span { position: absolute; left: 0; right: 8px; transform: translateY(-50%); font-family: var(--display); font-size: max(12px, .75rem); font-weight: 600; color: color-mix(in srgb, var(--ink) 72%, transparent); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cal-gutter span.half { font-size: max(10px, .625rem); font-weight: 500; color: color-mix(in srgb, var(--ink) 45%, transparent); } /* the half hours: quieter */
.cal-gutter span.first { transform: translateY(3px); } /* the top hour: under the edge, not half hidden by the header */
.cal-now-label { position: absolute; right: 2px; z-index: 2; transform: translateY(-50%); pointer-events: none; padding: 1px 5px; border-radius: 9999px; background: var(--red); color: #fff; font-style: normal; font-size: max(11px, .6875rem); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cal-col {
  position: relative; min-width: 0; border-left: 1px solid var(--line-ink); scroll-snap-align: start; cursor: copy;
  background: rgba(0, 0, 0, .055); /* closed: a flat soft grey, so it never competes with the bookings */
}
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(0, 0, 0, .17); pointer-events: none; }
.cal-line.half { border-top: 1px solid rgba(0, 0, 0, .06); }
.cal-now { position: absolute; left: 0; right: 0; z-index: 2; height: 2px; margin-top: -1px; background: var(--today); pointer-events: none; } /* under the cards (over them it reads as a crossed-out name); the dot marks it */
.cal-now:not(.faint)::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--today); }
.cal-now.faint { z-index: 2; height: 1px; margin-top: -.5px; background: color-mix(in srgb, var(--today) 35%, transparent); }
/* An empty time under the mouse: where a click would put a booking. */
.cal-ghost {
  position: absolute; left: 3px; right: 3px; z-index: 2; pointer-events: none; padding: 2px 8px;
  background: color-mix(in srgb, var(--c, var(--ink)) 14%, transparent); border-radius: 6px;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  font-size: max(11px, .75rem); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden;
}
.drag-time { position: absolute; right: 4px; top: -24px; padding: 2px 7px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }

/* ---------- Month: today's number in a red circle; closed days hatched ---------- */
.cal.cal-month { overflow: auto; border-top: 0; }

/* ---------- List: day by day ---------- */
.cal.cal-list { border-top: 0; }
.cal-list { display: grid; }
.all-time small { display: block; font-family: var(--sans); font-size: var(--t-caption1); font-weight: 400; color: var(--fade); }
.all-bk.clash { box-shadow: inset 2px 0 0 var(--red); }
.all-tag.bad { background: var(--bad-soft); color: var(--bad); }


/* ---------- All shops, and the month's picked-day list: rows on the page, thin ink rules ---------- */
.all-list { display: grid; gap: 0; overflow: hidden; background: none; border-top: 1px solid var(--ink); }
.all-shop { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line-ink); }
.all-shop:not(:first-child) { margin-top: 10px; }
.all-shop i { width: 8px; height: 8px; flex: none; background: var(--c); }
.all-shop b { flex: 1; min-width: 0; font-weight: 600; }
.all-shop span { color: var(--fade); }
.all-none { padding: 14px 0; color: var(--fade); font-size: var(--t-subhead); }
.all-day { display: grid; gap: 2px; padding: 14px 0 4px; }
.all-day b { font-weight: 600; }
.all-day span { font-size: var(--t-footnote); color: var(--fade); }
.all-bk {
  position: relative; display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: start; gap: 4px 14px;
  width: 100%; margin: 0; padding: 12px 0 12px 12px; text-align: left; background: none;
  border-left: 2px solid var(--c, var(--faint)); border-bottom: 1px solid var(--hair-ink); border-radius: 0;
}
@media (hover: hover) { .all-bk:hover { background: rgba(0, 0, 0, .04); } }
.all-bk.pending { border-left-style: dashed; }
.all-time { padding-top: 1px; font-family: var(--display); font-size: var(--t-footnote); font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.all-main { min-width: 0; }
.all-main b { display: block; font-weight: 600; }
.all-main span { display: block; font-size: var(--t-footnote); color: var(--fade); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Phones: the time keeps its own column, so a booking takes one row (about 60px, not 84). */
@media (max-width: 420px) { .all-bk { grid-template-columns: 4.25rem minmax(0, 1fr) auto; gap: 2px 10px; } .all-time small { display: block; margin: 0; } }

/* ---------- sheets: a bottom sheet with a grabber on a phone, a centred panel on a computer ---------- */
.shade { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .3); }
.sheet {
  width: 100%; max-width: 34rem; max-height: 94vh; max-height: calc(100dvh - max(env(safe-area-inset-top), 12px) - 8px); overflow: auto;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--bg); border-radius: 18px 18px 0 0; box-shadow: var(--shadow-lift);
}
.sheet-head {
  position: sticky; top: 0; z-index: 2; touch-action: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 -20px 14px; padding: 14px 14px 12px 20px;
  background: var(--bg); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* Content under the header: BAR glass and a hairline (core.js sets is-scrolled when the sheet scrolls). */
.sheet-head.is-scrolled { background: var(--mat-bar); -webkit-backdrop-filter: var(--mat-bar-fx); backdrop-filter: var(--mat-bar-fx); box-shadow: var(--mat-bar-line); }
/* The grabber: a short grey capsule at the top of a phone sheet. */
.sheet-head::before { content: ""; flex: 0 0 100%; height: 5px; margin: -6px 0 2px; background: none; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) { .sheet-head::before { background: linear-gradient(var(--fill-2), var(--fill-2)) center / 36px 5px no-repeat; border-radius: 3px; } }
.sheet-head h2 { flex: 1; min-width: 0; font-size: var(--t-headline); font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.sheet-head h2:focus { outline: 0; }
.sheet-head .icon-btn { width: 30px; height: 30px; }
@media (pointer: coarse) { .sheet-head .icon-btn { width: 44px; height: 44px; } }
@media (min-width: 700px) and (min-height: 501px), (min-width: 700px) and (pointer: fine) {
  .shade { align-items: center; padding: 24px; }
  .sheet { border-radius: 18px; padding-bottom: 22px; }
}
.sheet .err, .sheet input, .sheet select, .sheet textarea { scroll-margin: 96px 0 24px; }
/* .stick: the row stays at the bottom even when another (hidden) form follows, as in New booking. */
.sheet .stack > form:not([hidden]) > .actions.stick:last-child {
  position: sticky; bottom: calc(-1 * var(--sheet-pad-b)); z-index: 2;
  margin: 4px -20px calc(-1 * var(--sheet-pad-b)); padding: 10px 20px var(--sheet-pad-b); background: var(--bg);
}
.sheet.has-more .stack > form:not([hidden]) > .actions.stick:last-child { background: var(--mat-bar); -webkit-backdrop-filter: var(--mat-bar-fx); backdrop-filter: var(--mat-bar-fx); box-shadow: 0 -.5px 0 rgba(0, 0, 0, .12); }
.actions.stick label.check { min-height: 36px; }
/* "Throw away your changes?" at the top of a sheet that is being closed with unsaved typing (core.js dismiss). */
/* The form's last row of buttons (Save, Delete) stays at the bottom of the sheet, in reach, under frosted glass. */
.sheet { --sheet-pad-b: calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) and (min-height: 501px), (min-width: 700px) and (pointer: fine) { .sheet { --sheet-pad-b: 22px; } }
.sheet form > .actions:last-child {
  position: sticky; bottom: calc(-1 * var(--sheet-pad-b)); z-index: 2;
  margin: 4px -20px calc(-1 * var(--sheet-pad-b)); padding: 10px 20px var(--sheet-pad-b);
  background: var(--bg);
}
/* Only when the form runs on under it: BAR glass and a hairline (core.js sets has-more). */
.sheet.has-more form > .actions:last-child { background: var(--mat-bar); -webkit-backdrop-filter: var(--mat-bar-fx); backdrop-filter: var(--mat-bar-fx); box-shadow: 0 -.5px 0 rgba(0, 0, 0, .12); }
/* A form with more of the sheet after it (the client sheet: At a glance, Visits): its buttons stay where they are. */
.sheet .stack > form:not(:last-child) > .actions:last-child, .sheet form:not(:last-child) > .actions:last-child {
  position: static; margin: 4px 0 0; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.sheet-ask { display: grid; gap: 10px; margin: 0 0 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--sep); }
.sheet-ask p { font-weight: 600; }
.sheet-ask .row { justify-content: flex-end; }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) { .sheet.tall { height: 94vh; height: calc(100dvh - max(env(safe-area-inset-top), 12px) - 8px); } }
/* Facts: a grouped list of label / value rows. */
.facts { display: grid; gap: 0; padding: 0 16px; background: var(--card); border-radius: var(--r); }
.facts > div { position: relative; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; min-height: var(--tap); padding: 11px 0; }
.facts > div:not(:last-child)::after { content: ""; position: absolute; left: 0; right: -16px; bottom: 0; height: .5px; background: var(--sep); }
.facts > div > :first-child { flex: none; color: var(--ink); }
.facts > div > :last-child { text-align: right; color: var(--fade); overflow-wrap: anywhere; }
.facts a, .facts .link { color: var(--tint); text-decoration: none; font-weight: 500; }
.facts > div > .link:last-child, .facts > div > a:last-child, .facts > div > :last-child a { color: var(--tint); }
/* Client form answers: the question small and grey, the answer under it. */
.facts.answers > div { display: grid; gap: 2px; justify-content: stretch; }
.facts.answers > div > :first-child { color: var(--fade); font-size: var(--t-footnote); }
.facts.answers > div > :last-child { text-align: left; color: var(--ink); white-space: pre-wrap; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions .wide { grid-column: 1 / -1; }
.actions .btn { white-space: normal; text-align: center; }
/* Toasts: a dark glass capsule, inside one live region that is always on the page (core.js LB.toast). */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60; top: calc(var(--top-h) + 10px + env(safe-area-inset-top));
  width: max-content; max-width: calc(100vw - 32px); padding: 11px 18px; text-align: center;
  background: var(--mat-dark); -webkit-backdrop-filter: var(--mat-dark-fx); backdrop-filter: var(--mat-dark-fx); color: #fff;
  border-radius: 9999px; box-shadow: var(--shadow-lift); font-size: var(--t-subhead); font-weight: 500;
}
.toast.has-undo { display: flex; align-items: center; gap: 12px; padding-right: 6px; }
.toast-undo {
  min-height: 32px; padding: 0 14px; border: 0; border-radius: 9999px;
  background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
@media (pointer: coarse) { .toast-undo { min-height: 44px; } }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .toast { top: auto; bottom: 28px; margin-left: calc(var(--side-w) / 2); } body:has(.shade:not(.leaving)) .toast { top: 16px; bottom: auto; margin-left: 0; } }

/* ---------- payment pad ---------- */
.pad { display: grid; gap: 12px; justify-items: center; text-align: center; }
.pad-who { padding: 3px 12px; border-radius: 9999px; background: var(--fill); font-size: var(--t-footnote); font-weight: 600; }
/* One big number: rounded figures, like Apple's Wallet and Health. */
.pad-amount { margin: 6px 0 0; font-family: var(--rounded); font-size: var(--t-large-title); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pad-quote { padding: 3px 12px; border-radius: 9999px; background: var(--card); font-size: var(--t-footnote); }
.pad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 22rem; }
.pad-keys button { min-height: 56px; border-radius: 14px; background: var(--card); font-family: var(--rounded); font-size: var(--t-title2); font-weight: 500; }
@media (hover: hover) { .pad-keys button:hover { background: #fafafa; } }
.pad-keys button:active { background: var(--fill-2); }
.pad label.check, .pad .facts, .pad .err { width: 100%; max-width: 22rem; justify-self: center; text-align: left; }
.btn.pad-go { max-width: 22rem; min-height: 50px; font-size: var(--t-headline); background: var(--tint); color: var(--on-tint); }

/* ---------- the counter: Checkout page and one bill (checkout.js). Phone first: big totals, big buttons, one hand. ---------- */
.co-h { margin: 18px 0 8px; font-size: var(--t-headline); font-weight: 600; }
.co-h-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; margin: 18px 0 8px; }
.co-h-row .co-h { margin: 0; }
.co-amount { min-width: 4.5rem; text-align: right; font-weight: 600; }
.co-low { margin-bottom: 12px; }
.co-low .link { margin-left: 4px; }
.co { gap: 14px; }
.co .list { background: var(--card); border-radius: var(--r); }
.co-client { background: var(--card); border-radius: var(--r); }
.co-line { gap: 10px; }
.co-line .grow b { white-space: normal; }
.co-qty { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.co-qty button { width: 36px; height: 36px; border-radius: 50%; background: var(--fill); font-size: var(--t-title3); line-height: 1; }
.co-qty button[disabled] { opacity: .35; }
.co-qty b { min-width: 1.6em; text-align: center; font-weight: 600; }
.co-price { flex: none; min-width: 4.5rem; text-align: right; font-weight: 600; }
.co-line .co-price-in { width: 5.5rem; min-height: 40px; padding-left: 8px; padding-right: 10px; text-align: right; font-weight: 600; }
.co-add { display: flex; flex-wrap: wrap; gap: 8px; }
.co-add .btn svg { width: 16px; height: 16px; }
.co-tip h3 { margin: 0 0 8px; }
.co-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr)); gap: 8px; }
.co-tips button { display: grid; place-items: center; gap: 0; min-height: 60px; padding: 6px; border-radius: 14px; background: var(--card); font-family: var(--rounded); font-size: var(--t-headline); font-weight: 600; }
.co-tips button small { font-size: var(--t-footnote); font-weight: 500; color: var(--fade); }
.co-tips button[aria-pressed="true"] { background: var(--tint); color: var(--on-tint); }
.co-tips button[aria-pressed="true"] small { color: inherit; opacity: .8; }
.co-tip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: var(--t-subhead); color: var(--fade); }
.co-tip-custom { display: flex; gap: 6px; align-items: center; }
.co-tip-custom input { width: 6rem; text-align: right; }
.co-totals { display: grid; gap: 10px; }
.co-totals .facts > div { font-variant-numeric: tabular-nums; }
.co-total > * { font-weight: 600; color: var(--ink) !important; }
.co-left { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 16px; border-radius: var(--r); background: var(--tint); color: var(--on-tint); }
.co-left span { font-size: var(--t-headline); font-weight: 600; }
.co-left b { font-family: var(--rounded); font-size: var(--t-title1); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.co-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.co-pay .btn { min-height: 56px; border-radius: 14px; font-size: var(--t-headline); white-space: normal; text-align: center; }
.co-pay .btn.go { background: var(--tint); color: var(--on-tint); }
.co-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.co-due { display: grid; justify-items: center; gap: 2px; text-align: center; }
.co-due span { padding: 3px 12px; border-radius: 9999px; background: var(--fill); font-size: var(--t-footnote); font-weight: 600; }
.co-due b, .co-qr-amount { margin: 4px 0 0; font-family: var(--rounded); font-size: var(--t-large-title); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.co-due small { color: var(--fade); font-size: var(--t-footnote); }
.co-big-in { min-height: 56px; font-family: var(--rounded); font-size: var(--t-title1); font-weight: 600; text-align: center; }
.co-go { min-height: 52px; font-size: var(--t-headline); }
.co-change { margin: 0; text-align: center; font-weight: 600; color: var(--ok); min-height: 1.4em; }
.co-change.big { font-family: var(--rounded); font-size: var(--t-title2); }
.co-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.co-quick .btn { flex: 1 1 5.5rem; min-height: 48px; }
.co-qr-box { display: grid; justify-items: center; gap: 10px; text-align: center; }
.co-qr { width: min(78vw, 320px); aspect-ratio: 1; padding: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--sh-float); }
.co-qr svg { display: block; width: 100%; height: 100%; }
.co-wait { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.co-send { align-items: end; gap: 8px; }
.co-send .field { flex: 1; min-width: 0; }
.co-paid { display: grid; justify-items: center; gap: 4px; text-align: center; }
.co-paid h3 { margin: 0; font-size: var(--t-title3); }
.co-tick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.co-tick svg { width: 30px; height: 30px; stroke-width: 2.5; }
.co-lowtext { color: var(--warn) !important; }
.co-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.co-rowbtn { display: block; text-align: left; }
@media (min-width: 700px) { .co-pay { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- the iPad counter (plan 56, counter.js) ----------
   No side menu: a small top bar (shop, time, Check-in, lock), today's clients on the left, the bill on the right.
   Every control is 44px or more (touch, even with a mouse). Portrait: the list on top, the bill under it. */
html.counter-on, html.counter-on body { background: var(--bg); }
html.counter-on body { overscroll-behavior: none; }
.ct { --ct-tap: 48px; display: grid; grid-template-rows: auto 1fr; height: 100vh; height: 100dvh; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); }
.ct-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s5); min-height: 56px; padding: var(--s3) var(--s6); }
.ct-shop { display: inline-flex; align-items: center; gap: var(--s4); min-width: 0; }
.ct-shop .brand-icon { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.ct-shop b, .ct-shop h1 { font-size: var(--t-headline); font-weight: 600; letter-spacing: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-clock { font-family: var(--rounded); font-size: var(--t-title3); font-weight: 600; letter-spacing: -.01em; }
.ct-tools { display: inline-flex; justify-content: flex-end; align-items: center; gap: var(--s4); }
.ct-tools .btn { min-height: 44px; gap: 6px; }
.ct-tools .btn svg { width: 18px; height: 18px; }
.ct-lock { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--mat-edge); }
.ct-lock svg { width: 20px; height: 20px; }
.ct-main { display: grid; grid-template-columns: minmax(300px, 38%) minmax(0, 1fr); gap: var(--s5); min-height: 0; padding: 0 var(--s5) var(--s5); }
.ct-list, .ct-bill { min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-sheet); background: var(--card); }
.ct-list { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s6); }
.ct-list-head { display: flex; align-items: baseline; gap: var(--s4); }
.ct-list-head h2 { font-size: var(--t-title3); }
.ct-new { margin-left: auto; min-height: 44px; gap: 6px; }
.ct-new svg, .ct-big svg { width: 18px; height: 18px; }
.ct-search { min-height: 44px; }
.ct-groups { display: grid; gap: var(--s6); }
.ct-group { display: grid; gap: var(--s2); }
.ct-group h3 { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s2); font-size: var(--t-footnote); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--fade); }
.ct-count { padding: 0 7px; border-radius: 9999px; background: var(--fill); color: var(--fade); font-size: var(--t-caption1); }
.ct-row { display: flex; align-items: center; gap: var(--s3); border-radius: var(--r-control); }
.ct-row.on { background: var(--fill); box-shadow: inset 3px 0 0 var(--tint); }
.ct-open { display: flex; align-items: center; gap: var(--s5); flex: 1; min-width: 0; min-height: 56px; padding: var(--s4) var(--s5); text-align: left; border-radius: var(--r-control); }
.ct-open:hover { background: var(--fill); }
.ct-open .grow { display: grid; min-width: 0; }
.ct-open .grow b, .ct-open .grow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-time { flex: none; min-width: 4.5em; font-weight: 600; }
.ct-here { flex: none; min-height: 44px; margin-right: var(--s3); }
.ct-bill { display: flex; flex-direction: column; }
.ct-bill-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: var(--s4); padding: var(--s5) var(--s6) var(--s4); background: var(--card); }
.ct-bill-head h2 { flex: 1; font-size: var(--t-title3); }
.ct-bill-head .icon-btn, .ct-bill-head button { min-width: 44px; min-height: 44px; }
.ct-bill-body { padding: 0 var(--s6) var(--s7); }
.ct-empty { display: grid; justify-items: center; align-content: center; gap: var(--s4); flex: 1; padding: var(--s8); text-align: center; }
.ct-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--fill); color: var(--fade); }
.ct-empty-icon svg { width: 28px; height: 28px; }
.ct-empty h2 { font-size: var(--t-title3); }
.ct-big { min-height: 56px; padding-inline: var(--s7); font-size: var(--t-headline); gap: 8px; }
/* The bill on the counter: the same bill, bigger to touch. */
.co-counter .btn, .co-counter .item, .co-counter input, .co-counter select { min-height: 44px; }
.co-counter .co-qty button { min-width: 44px; min-height: 44px; }
.co-counter .co-price-in { height: 44px; }
.co-counter .co-tips button { min-height: 64px; background: var(--fill); }
.co-counter .co-tips button[aria-pressed="true"] { background: var(--tint); }
.co-pay-counter { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.co-pay-counter .co-way { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; font-size: var(--t-headline); font-weight: 600; }
.co-pay-counter .co-way svg { width: 24px; height: 24px; flex: none; }
.co-turn-btn { justify-self: start; min-height: 48px; gap: 8px; }
.co-turn-btn svg { width: 18px; height: 18px; }
.co-counter .co-qr { width: min(60vh, 420px); }
.co-phone-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--fill); color: var(--ink); }
.co-phone-icon svg { width: 36px; height: 36px; }
.co-other b + span { display: block; color: var(--fade); font-size: var(--t-footnote); }
/* A screen turned to the client (tip, check-in) and the iPhone's prompt: full screen, big, calm. */
.ct-turn { position: fixed; inset: 0; z-index: 45; /* under sheets (50) and toasts: the PIN pad opens over it */ display: grid; place-items: center; overflow: auto; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); background: var(--bg); }
.ct-turn-in { display: grid; justify-items: center; gap: var(--s6); width: min(100%, 40rem); text-align: center; }
.ct-turn-in h2 { font-family: var(--rounded); font-size: var(--t-large-title); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.ct-turn-shop { margin: 0; color: var(--fade); font-weight: 600; }
.ct-turn-total { margin: 0; font-size: var(--t-title3); }
.ct-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s5); width: 100%; }
.ct-tip { display: grid; place-items: center; gap: 2px; min-height: 112px; padding: var(--s5); border-radius: 20px; background: var(--card); box-shadow: var(--mat-edge); font-family: var(--rounded); }
.ct-tip b { font-size: var(--t-large-title); font-weight: 600; }
.ct-tip span { color: var(--fade); font-size: var(--t-body); }
.ct-tip.picked, .ct-tip:active { background: var(--tint); color: var(--on-tint); }
.ct-tip.picked span { color: inherit; opacity: .8; }
.ct-tip-other { display: flex; align-items: flex-end; gap: var(--s4); }
.ct-tip-other label { display: grid; gap: 4px; text-align: left; font-size: var(--t-footnote); color: var(--fade); }
.ct-tip-other input { width: 8rem; min-height: 52px; font-size: var(--t-title3); }
.ct-tip-other .btn { min-height: 52px; }
.ct-turn-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s5); color: var(--fade); }
.ct-turn-back svg { width: 16px; height: 16px; }
.ct-thanks { display: grid; justify-items: center; gap: var(--s4); }
.ct-thanks .co-tick { width: 88px; height: 88px; }
.ct-thanks .co-tick svg { width: 44px; height: 44px; }
.ct-thanks p { margin: 0; font-size: var(--t-title3); }
.ct-said { min-height: 1.5em; margin: 0; font-size: var(--t-body); color: var(--warn); }
.ct-digits { display: flex; gap: var(--s5); }
.ct-digits span { display: grid; place-items: center; width: 64px; height: 76px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--field-edge); font-family: var(--rounded); font-size: var(--t-large-title); font-weight: 600; }
.ct-digits span.next { box-shadow: inset 0 0 0 2px var(--tint); }
.ct-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); width: min(100%, 22rem); }
.ct-key { display: grid; place-items: center; min-height: 72px; border-radius: 18px; background: var(--card); box-shadow: var(--mat-edge); font-family: var(--rounded); font-size: var(--t-title1); font-weight: 600; }
.ct-key:active { background: var(--fill-2); }
.ct-key.back { background: none; box-shadow: none; }
.ct-key svg { width: 26px; height: 26px; }
.ct-pad-pin { margin: var(--s4) auto 0; width: min(100%, 18rem); }
.ct-pad-pin .ct-key { min-height: 60px; }
.ct-dots { display: flex; justify-content: center; gap: var(--s6); margin: var(--s5) 0; }
.ct-dots span { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); }
.ct-dots span.on { background: var(--ink); }
.ct-dots.shake { animation: ct-shake .35s; }
@keyframes ct-shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
@media (prefers-reduced-motion: reduce) { .ct-dots.shake { animation: none; } }
.ct-names { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s5); width: 100%; }
.ct-name { flex: 0 1 13rem; display: grid; gap: 2px; min-height: 76px; padding: var(--s5); border-radius: 18px; background: var(--card); box-shadow: var(--mat-edge); text-align: center; }
.ct-name b { font-size: var(--t-title3); }
.ct-name span { color: var(--fade); }
.ct-ask .co-qr-amount { font-size: var(--t-large-title); }
.ct-ask .ct-big { width: 100%; max-width: 22rem; min-height: 64px; font-size: var(--t-title3); }
.ct-switch { min-height: 44px; }
.ct-pin-in { width: 7rem; letter-spacing: .3em; }
/* Portrait iPad (and narrower): the list on top, the bill under it. */
@media (max-width: 1000px) and (orientation: portrait), (max-width: 760px) {
  .ct { height: auto; min-height: 100dvh; }
  .ct-main { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .ct-list { max-height: 40vh; }
  .ct-bill { min-height: 55vh; }
}
@media (max-width: 560px) {
  .ct-top { grid-template-columns: 1fr auto; }
  .ct-clock { display: none; }
  .ct-checkin span:last-child { display: none; }
}

/* ---------- chat ---------- */
.thread { display: grid; gap: 12px; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg > div { min-width: 0; max-width: 80%; }
.msg-card { padding: 8px 13px; border-radius: 18px; background: #e9e9eb; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-when { margin-top: 4px; font-size: var(--t-caption2); color: var(--fade); }
.msg.sys { justify-content: center; }
.msg.sys > div { max-width: 92%; text-align: center; }
.msg.sys .msg-card { background: none; padding: 2px 8px; color: var(--fade); font-size: var(--t-footnote); }
.msg-icon { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--fill); color: var(--fade); }
.msg.sys .msg-icon { display: none; }
.msg-icon svg { width: 14px; height: 14px; }
.msg.me { justify-content: flex-end; }
.msg.me > div { text-align: right; }
.msg.me .msg-card { background: var(--tint); color: var(--on-tint); text-align: left; }
.chat-box { display: flex; gap: 8px; align-items: flex-end; }
.chat-box textarea { min-height: 40px; border-radius: 20px; padding: 9px 16px; background: var(--card); box-shadow: inset 0 0 0 .5px var(--sep); }

/* ---------- Messages (inbox.js): like Messages on the iPhone and the Mac ---------- */
/* Computers: the list and the open thread side by side. Narrower: one page at a time, with a back button. */
.ibx { display: grid; gap: 16px; align-items: start; }
.ibx-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ibx-filter { justify-self: start; }
.ibx-list { background: var(--card); border-radius: var(--r); overflow: hidden; }
.ibx-row { position: relative; display: grid; grid-template-columns: 10px 40px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; min-height: 64px; padding: 10px 14px 10px 6px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.ibx-row:not(:last-child)::after { content: ""; position: absolute; left: 66px; right: 0; bottom: 0; height: .5px; background: var(--sep); }
.ibx-row[aria-current="true"] { background: var(--fill-2); }
@media (hover: hover) { .ibx-row:not([aria-current="true"]):hover { background: rgba(0, 0, 0, .035); } }
.ibx-dot { width: 9px; height: 9px; margin-top: 16px; border-radius: 50%; }
.ibx-row.unread .ibx-dot { background: var(--blue); }
.ibx-av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(#a8acb6, #858a95); color: #fff; font-size: .9375rem; font-weight: 600; letter-spacing: .02em; }
.ibx-av svg { width: 22px; height: 22px; color: #fff; }
.ibx-av.big { width: 44px; height: 44px; font-size: 1rem; }
.ibx-main { display: grid; gap: 2px; min-width: 0; }
.ibx-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ibx-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ibx-top small { flex: none; font-size: var(--t-footnote); color: var(--fade); }
.ibx-chev svg { width: 11px; height: 11px; color: var(--faint); }
.ibx-tag { font-size: var(--t-footnote); color: var(--fade); }
.ibx-tag.rendy { color: var(--blue); font-weight: 600; }
.ibx-last { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: var(--t-subhead); color: var(--fade); overflow-wrap: anywhere; }
.ibx-row.unread .ibx-last { color: var(--ink); }
.ibx-pane { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 16px; border-radius: var(--r); background: var(--card); }
.ibx-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ibx-bar { order: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ibx-id { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.ibx-who { flex: 1; min-width: 0; }
.ibx-who h2 { margin: 0; font-size: var(--t-title3); overflow-wrap: anywhere; }
.ibx-reach { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: var(--t-subhead); overflow-wrap: anywhere; }
.ibx-back { display: none; align-items: center; gap: 2px; min-height: var(--tap); padding: 0 6px 0 0; border: 0; background: none; color: var(--blue); font-size: var(--t-body); }
.ibx-back svg { width: 20px; height: 20px; }
.ibx-ctx { display: flex; flex-wrap: wrap; gap: 8px; }
.ibx-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 4px 12px; border: 0; border-radius: 9999px; background: var(--fill); color: var(--ink); font-size: var(--t-footnote); text-align: left; overflow-wrap: anywhere; }
button.ibx-chip { cursor: pointer; }
.ibx-chip > svg, .ibx-chip > span > svg { width: 14px; height: 14px; flex: none; }
.ibx-chip-act { display: inline-flex; align-items: center; gap: 8px; }
.ibx-scroll { max-height: min(58vh, 640px); overflow: auto; padding: 4px 2px; overscroll-behavior: contain; }
.ibx-day { margin: 8px 0 0; text-align: center; font-size: var(--t-footnote); font-weight: 600; color: var(--fade); }
.msg.rendy .msg-card { background: color-mix(in srgb, var(--blue) 11%, #fff); }
.ibx-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ibx-photos img { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.ibx-compose { display: grid; gap: 6px; }
.ibx-compose .chat-box textarea { resize: none; background: var(--bg); }
.ibx-via-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ibx-via { width: auto; min-width: 0; max-width: 100%; }
.ibx-hint { margin: 0; }
.ibx-count { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; background: var(--red); color: #fff; font-style: normal; font-size: var(--t-caption1); font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.feed-item.ibx-bell { align-items: center; }
.ibx-none { display: grid; justify-items: center; gap: 8px; }
.ibx-none svg { width: 32px; height: 32px; color: var(--faint); }
@media (min-width: 960px) {
  .view-inbox { max-width: 1180px; }
  .ibx { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
  .ibx-side { position: sticky; top: 16px; max-height: calc(100dvh - 120px); overflow: auto; }
  .ibx-chev { display: none; }
}
@media (max-width: 959px) {
  .ibx.open .ibx-side, .ibx:not(.open) .ibx-pane { display: none; }
  .view-inbox:has(.ibx.open) > .head-row, .view-inbox:has(.ibx.open) > .area-tabs { display: none; }
  .ibx-back { display: inline-flex; }
  .ibx-pane { padding: 0; background: none; border-radius: 0; }
  .ibx-head { position: sticky; top: calc(var(--top-h, 52px) + env(safe-area-inset-top)); z-index: 3; display: grid; gap: 4px; margin: 0 -8px; padding: 0 8px 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .ibx-bar { order: 0; }
  .ibx-id { flex-direction: column; gap: 4px; text-align: center; }
  .ibx-who { flex: none; max-width: 100%; }
  .ibx-who h2 { font-size: var(--t-headline); }
  .ibx-reach { justify-content: center; font-size: var(--t-footnote); }
  .ibx-scroll { max-height: none; overflow: visible; }
  .ibx-compose { position: sticky; bottom: calc(var(--dock-space) - 12px); z-index: 2; padding: 8px 0 6px; background: var(--bg); box-shadow: 0 14px 0 var(--bg); }
  .ibx-via-row { font-size: var(--t-footnote); }
  .ibx-compose .chat-box textarea { background: var(--card); }
}

/* ---------- visit notes and photos (visit.js) ---------- */
.vis-notes { display: grid; gap: 8px; }
.vis-note { position: relative; display: grid; gap: 2px; padding: 10px 44px 10px 12px; border-radius: var(--r-inner); background: var(--fill); }
.vis-note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.vis-note.old { background: none; box-shadow: inset 0 0 0 .5px var(--sep); }
.vis-note .vis-remove { position: absolute; top: 2px; right: 2px; }
.vis-fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.vis-photos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vis-photo { display: grid; gap: 6px; margin: 0; min-width: 0; }
.vis-photo figcaption { display: grid; gap: 4px; min-width: 0; }
.vis-photo figcaption .vis-remove { justify-self: start; }
.vis-photo label.check { min-height: 32px; font-size: var(--t-subhead); }
.vis-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--fill); aspect-ratio: 1; cursor: zoom-in; }
.vis-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.vis-thumb.sm { width: 64px; height: 64px; flex: none; }
.vis-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vis-line { white-space: normal !important; }
.vis-history .item { align-items: flex-start; }
.vis-full { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 10px; background: #000; }
.vis-add .seg { justify-self: start; }
.vis-trade { display: grid; gap: 0; }
.vis-trade p { margin: -6px 0 6px 0; padding-left: 40px; }

/* ---------- setup: its own list beside the page, like the Mac's System Settings ---------- */
.setup { display: grid; gap: 20px; }
/* Side by side from 1024px (computers, an iPad held sideways). The page comes first in the page's order (main.js),
   the menu still sits on the left. Below 1024px (phones, an iPad held upright) it is the phone's pattern: the list,
   then the page at full width with a Back button, so a page is never squeezed to 400px beside two menus. */
/* Settings: the list and the page side by side, the list right beside the side menu (like the Mac's System Settings,
   no empty gap between them); the page keeps a reading width. Get started has no list beside it (.solo). */
@media (min-width: 1024px) {
  .view > .setup { max-width: none; margin-left: 0; }
  .setup { grid-template-columns: 236px minmax(0, 46rem); justify-content: start; align-items: start; gap: 20px 40px; }
  .setup > .menu { grid-column: 1; grid-row: 1; position: sticky; top: 28px; }
  .setup > .pane { grid-column: 2; grid-row: 1; }
  .setup .back { display: none; }
  .setup.solo { grid-template-columns: minmax(0, 44rem); }
  .setup.solo > .pane { grid-column: 1; }
  .setup.solo .back { display: inline-flex; }
}
.setup.solo > .menu { display: none; }
@media (max-width: 1023px) { .setup.open .menu { display: none; } .setup:not(.open):not(.solo) .pane { display: none; } .view .setup > .menu { position: static; max-height: none; } }
/* The page's title row stays at the top while the page scrolls, with the group's name over the title: where you
   are is always in sight. Headings, fields and settings scrolled to (or focused) stop below it, and above the Save bar. */
.setup .pane > .setup-head { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 6; margin: 0 -8px; padding: 6px 8px; background: var(--bg); }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .setup .pane > .setup-head { top: 0; padding-top: 10px; } }
.page-titles { display: grid; min-width: 0; }
.page-where { margin: 0 0 1px; font-size: var(--t-footnote); font-weight: 600; color: var(--fade); }
html:has(.view-setup) { scroll-padding-top: calc(var(--top-h) + 84px); scroll-padding-bottom: calc(var(--dock-space) + 72px); }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { html:has(.view-setup) { scroll-padding-top: 92px; } }
.setup .pane :is(h2, h3, [data-setting], .card, input, select, textarea) { scroll-margin-top: calc(var(--top-h) + 84px); scroll-margin-bottom: calc(var(--dock-space) + 72px); }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .setup .pane :is(h2, h3, [data-setting], .card, input, select, textarea) { scroll-margin-top: 92px; } }
/* A Settings row that opens a page in its work area (Staff in Team): it says where it goes. */
.setup .menu .menu-door-where { display: block; font-size: var(--t-footnote); color: var(--fade); font-weight: 400; }
.setup .menu .menu-other { margin-top: 6px; }
/* Get started is in the side bar's foot on computers and iPads; phones keep its row on top of the Settings list. */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .setup .menu .list.menu-start { display: none; } }
.pane { display: grid; gap: 18px; min-width: 0; max-width: 44rem; }
/* The title row is the same as Clients' and Reports' (same height, same place); the line under it hugs it. */
.pane > .head-row { margin: 4px 0 -2px; }
.pane > .page-sub { margin-top: -12px; }
/* The line under a page's title, and under a second part's title: Subheadline, grey (was body size). */
.page-sub, .section-sub { font-size: var(--t-subhead); }
.pane .card { display: grid; gap: 12px; padding: 16px; background: var(--card); border-radius: var(--r); }
/* Headings in a Setup page are h2 under the page's h1; they keep the quiet section-header look. */
.pane h2 { font-size: var(--t-footnote); line-height: 1.3; font-weight: 500; letter-spacing: 0; color: var(--fade); }
.pane .card > h2:first-child, .pane .card > form > h2:first-child, .pane .card > h3:first-child, .pane .card > form > h3:first-child, .in-person > h3:first-child { font-size: var(--t-headline); font-weight: 600; color: var(--ink); }
/* A second part of a page (Booking page → "Add to another website"): a heading that outranks the cards'. */
.pane h2.section-title { margin-top: 14px; font-size: var(--t-headline); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.pane > .section-sub { margin-top: -12px; }
/* A row inside a card: words on the left, its button on the right (Account → Devices). */
.card-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-row .grow { display: grid; gap: 2px; flex: 1 1 14rem; min-width: 0; }
.card-row + .card-row { padding-top: 12px; border-top: .5px solid var(--sep); }
/* Setup → Connections (connections.js): a turned-off key is faded; the new key wraps instead of running off a phone. */
.key-row.off { opacity: .6; }
.key-scopes { margin: 0; padding: 0; border: 0; min-width: 0; }
.key-scopes legend { padding: 0; margin-bottom: 4px; }
.key-row b .badge, .call-row b { margin-inline-start: 6px; }
.call-row b { margin-inline-start: 0; overflow-wrap: anywhere; }
.key-box { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--t-subhead); overflow-wrap: anywhere; }
/* A setting opened from elsewhere (an empty Waitlist): it glows for a moment. */
.found { border-radius: var(--r-inner); box-shadow: 0 0 0 3px rgba(0, 122, 255, .35); transition: box-shadow .6s; }
/* Rows that open: the app's chevron, turned down when open (never the browser's triangle). */
.pane details > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.pane details > summary::-webkit-details-marker { display: none; }
.pane details > summary h2 { margin: 0; font-size: var(--t-headline); font-weight: 600; color: var(--ink); }
.pane details > summary .chev { display: inline-flex; flex: none; color: var(--faint); transition: transform .2s; }
.pane details > summary .chev svg { width: 14px; height: 14px; }
.pane details[open] > summary .chev { transform: rotate(90deg); }
details.card.danger > summary h2 { color: var(--red); }
.pane details.card:not([open]) { gap: 0; }
/* Phone calendar: one list, each row with Copy and Subscribe. */
.row-actions { display: flex; gap: 6px; flex: none; }
.avatar.all { background: var(--fill-2); color: var(--ink); }
.avatar.all svg { width: 18px; height: 18px; color: inherit; }
@media (max-width: 420px) { .cal-feeds .item { flex-wrap: wrap; } .cal-feeds .row-actions { width: 100%; padding-left: 48px; } }
/* Settings → Integrations (square-sync.js, plan 54): one card per app (LB.integrationCard), the 3-step progress line,
   the match rows. The Integrations catalog reuses .int-card. */
.int-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; background: var(--card); border-radius: var(--r); }
.int-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #101010; color: #fff; }
.int-text { min-width: 0; }
.int-text p { margin: 0; }
.int-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.int-price { font-weight: 600; font-size: var(--t-footnote); text-transform: uppercase; letter-spacing: .04em; color: var(--ok); }
.int-line { color: var(--fade); margin-top: 2px !important; }
.int-action { display: grid; justify-items: end; gap: 4px; }
.int-status { font-size: var(--t-footnote); color: var(--fade); white-space: nowrap; }
.btn.int-done { color: var(--ok); background: var(--ok-soft); }
.int-steps { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: none; }
.int-steps li { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px solid var(--sep); color: var(--fade); font-size: var(--t-footnote); }
.int-steps li.done { border-top-color: var(--green); color: inherit; }
.int-steps li.now { border-top-color: var(--tint); color: inherit; font-weight: 600; }
.int-n { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; font-weight: 600; }
.int-steps li.done .int-n { background: var(--green); color: #fff; box-shadow: none; }
.int-steps li.done .int-n svg { width: 12px; height: 12px; }
.int-big { font-size: 1.25em; font-weight: 600; margin: 0; }
@media (max-width: 520px) { .int-card { grid-template-columns: auto 1fr; } .int-action { grid-column: 1 / -1; justify-items: stretch; } .int-action .btn { width: 100%; } .int-status { text-align: center; } .int-steps li { flex-direction: column; align-items: flex-start; } }
/* The Integrations catalog (plan 55, integrations.js): a group = a heading, one line, then a grid of cards. In the grid
   a card stands up: the mark, then the name with its price label, the line, and the button at the bottom, so cards in
   a row line up. Square Appointments' slot takes the whole row while its steps are open (.int-wide). */
.int-catalog { gap: 28px; }
.int-group { gap: 10px; }
.int-group-head .section-title { margin-bottom: 2px; }
.int-group-head p { margin: 0; max-width: 60ch; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; align-items: stretch; }
.int-grid > .int-card, .int-slot > .stack > .int-card { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-items: start; gap: 10px; height: 100%; box-sizing: border-box; }
.int-grid .int-icon { width: 44px; height: 44px; border-radius: 11px; }
.int-grid .int-action { justify-items: start; align-self: end; }
.int-grid .int-status { white-space: normal; text-align: left; }
.int-grid .int-name b { font-size: var(--t-headline); }
.int-slot { display: grid; }
.int-slot > .stack { gap: 10px; height: 100%; }
.int-slot.int-wide { grid-column: 1 / -1; }
.int-slot.int-wide > .stack > .int-card { grid-template-columns: auto 1fr auto; grid-template-rows: none; align-items: center; height: auto; }
.int-slot.int-wide .int-action { justify-items: end; align-self: center; }
.int-slot .int-loading { margin: 0; padding: 16px; background: var(--card); border-radius: var(--r); }
@media (max-width: 520px) {
  .int-grid { grid-template-columns: 1fr; }
  .int-grid > .int-card, .int-slot > .stack > .int-card, .int-slot.int-wide > .stack > .int-card { grid-template-columns: auto 1fr; grid-template-rows: none; align-items: center; height: auto; }
  .int-grid .int-action, .int-slot.int-wide .int-action { grid-column: 1 / -1; justify-items: stretch; }
  .int-grid .int-status { text-align: center; }
}
.square-points { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 4px; }
.square-row { gap: 12px; }
.square-row select { flex: 0 1 48%; min-width: 0; }
.square-status { display: flex; align-items: center; gap: 8px; margin: 0; }
.square-status .dot { --c: var(--green); }
@media (max-width: 420px) { .square-row { flex-wrap: wrap; } .square-row select { flex-basis: 100%; } }
/* Plan: the plan in words at the top. */
.plan-now .plan-name { font-size: var(--t-headline); font-weight: 600; }
/* Monthly | Yearly (2 months free) on My plan: the shared segmented control, full width on a phone. */
.plan-period .seg button { padding: 0 14px; white-space: nowrap; }
@media (max-width: 480px) { .plan-period .seg { display: flex; width: 100%; } .plan-period .seg button { flex: 1; padding: 0 8px; } }
.plan-texts { display: grid; gap: 2px; padding-top: 12px; border-top: .5px solid var(--sep); }
/* Plan add-ons: Classes on Solo, a count of extra locations on Shop, and the new monthly total. */
.plan-extra { display: grid; gap: 2px; }
.plan-stepper { gap: 10px; flex: none; }
.plan-step { width: var(--tap); padding: 0; font-size: var(--t-headline); }
.plan-count { min-width: 1.5em; text-align: center; }
.plan-total { margin: 0; padding-top: 12px; border-top: .5px solid var(--sep); }
/* A client: contact, tags and notes over Book and Edit. */
.client-top { padding: 2px 0 6px; }
.client-top .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.client-notes { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--t-subhead); }
.facts > div.warn > :last-child { color: var(--warn); font-weight: 600; }
.hours-row { position: relative; display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px 0; }
.hours-row:not(:last-child)::after { content: ""; position: absolute; left: 0; right: -16px; bottom: 0; height: .5px; background: var(--sep); }
.span-row { display: flex; align-items: center; gap: 6px; }
.span-row input { min-width: 0; }
/* Save bar: a glass capsule that stays in reach. */
.save-bar {
  position: sticky; bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; gap: var(--s4); align-items: center; padding: 6px 6px 6px 18px;
  background: var(--mat-float); -webkit-backdrop-filter: var(--mat-float-fx); backdrop-filter: var(--mat-float-fx);
  border: 0; border-radius: 9999px; box-shadow: var(--mat-rim), var(--mat-edge), var(--sh-float);
}
/* Phones and tablets: the tab bar's accessory, same width, 8px above it. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .save-bar { position: fixed; left: 12px; right: 12px; z-index: 20; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 62px + 8px); }
  body:has(.save-bar.dirty) .view { padding-bottom: calc(var(--nav-h) * 2 + 48px + env(safe-area-inset-bottom)); }
}
@media (min-width: 700px) and (max-width: 767px) and (min-height: 501px), (min-width: 700px) and (max-width: 767px) and (pointer: fine) { .save-bar { left: 50%; right: auto; width: min(640px, calc(100% - 24px)); transform: translateX(-50%); } }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .save-bar { bottom: 20px; } }
.save-bar:not(.dirty) { display: none; }
.save-bar .save-note { flex: 1; min-width: 0; color: var(--fade); font-size: var(--t-footnote); }
.save-bar:has(.err:not(:empty)) .save-note { display: none; }
.save-bar .err:empty { display: none; }
.save-bar .btn.go { margin-left: auto; }
/* While there is something to save, the bar has the spot; the Ask AI button steps aside. */
body:has(.save-bar.dirty) .ask-fab { display: none; }
/* Focus never lands under a bar (WCAG 2.4.11): moving to a field scrolls it clear of the top bar, the tab bar and the Save bar. */
html { scroll-padding-top: 16px; }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  html { scroll-padding-top: calc(var(--top-h) + env(safe-area-inset-top) + 8px); scroll-padding-bottom: calc(var(--dock-space) + 8px); }
  html:has(.save-bar.dirty) { scroll-padding-bottom: calc(var(--dock-space) + 80px); }
  /* The Ask AI round button would sit on a Setup page's switches: on a phone it is on the Setup list only. */
  body:has(.setup.open) .ask-fab { display: none; }
}
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { html:has(.save-bar.dirty) { scroll-padding-bottom: 96px; } }
/* Free website photos: each one with its description beside it. */
.thumb-row { display: flex; align-items: center; gap: 12px; }
.thumb-row input { flex: 1; min-width: 0; }
.avatar {
  flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; object-fit: cover; background: var(--c, #8e8e93); color: #fff; /* the person's colour, as in the calendar */
  font-size: var(--t-footnote); font-weight: 600; letter-spacing: .02em;
}
.thumb { position: relative; display: inline-block; width: 76px; height: 76px; flex: none; }
.thumb img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 10px; }
.thumb.round img { border-radius: 50%; }
.thumb button {
  position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #8e8e93; color: #fff; box-shadow: 0 0 0 2px var(--card);
}
.thumb button svg { width: 12px; height: 12px; }
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.looks label { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 .5px var(--sep); text-align: center; font-size: var(--t-footnote); font-weight: 500; cursor: pointer; }
.looks label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tint); font-weight: 600; }
.looks input { position: absolute; opacity: 0; }
.looks .swatch { height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: var(--t-footnote); }
/* First steps checklist: a grouped list with round ticks. */
.steps { display: grid; gap: 0; background: var(--card); border-radius: var(--r); overflow: hidden; }
.steps .tick { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); }
.steps .done .tick { background: var(--green); box-shadow: none; color: #fff; }
.steps .tick svg { width: 12px; height: 12px; color: inherit; }
.steps .item .grow b, .steps .item .grow span { white-space: normal; }
/* Get started: "To open for bookings" and "When you’re ready" sit above their own lists, like iOS grouped-list headers. */
.group-title { margin: 22px 0 6px 16px; }
/* Get started rebuilt (guide.js, 2026-10-13): one card with "2 of 5", a bar, the numbered steps and Next. */
.card.guide { gap: 12px; }
.pane .card.guide .guide-head h2 { margin: 0; font-size: var(--t-headline); font-weight: 600; color: var(--ink); }
.guide-count { font-size: var(--t-subhead); white-space: nowrap; }
.guide-bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.guide-bar span { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .3s; }
.card.guide .steps { background: transparent; margin: 0 -16px; }
.steps .tick { font-size: var(--t-footnote); font-weight: 600; color: var(--faint); }
.steps .item.next .tick { box-shadow: inset 0 0 0 2px var(--tint); color: var(--tint); }
.steps .item.next .grow b { font-weight: 600; }
.btn.go.full, .guide-next .btn, .guide-strip .btn { white-space: normal; text-align: center; }
.guide-step { display: flex; align-items: center; gap: 12px; margin: -4px 0 4px; font-size: var(--t-subhead); color: var(--faint); }
.guide-step b { color: var(--ink); }
.card.guide-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.guide-trial { margin: 6px 16px 0; }
.guide-trial .link { display: inline; min-height: 0; padding: 0; vertical-align: baseline; }
/* On the Calendar until the five steps are done: one slim line with Next and a close button. */
.guide-strip { flex: none; display: flex; align-items: center; gap: 4px; margin: 0 0 10px; padding: 4px 4px 4px 16px;
  background: var(--card); border-radius: var(--r); font-size: var(--t-subhead); width: 100%; box-sizing: border-box; }
.guide-strip-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; background: none; border: 0; padding: 6px 0;
  text-align: start; font: inherit; color: inherit; cursor: pointer; min-height: 44px; flex: 1 1 auto; min-width: 0; }
.guide-strip-main > b, .guide-strip-main > .fade { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide-strip-main > .fade { font-size: var(--t-footnote); }
.guide-strip-main .guide-chev { grid-column: 2; grid-row: 1 / span 2; color: var(--faint); display: flex; }
.guide-strip-main .guide-chev svg { width: 16px; height: 16px; }
.guide-strip .guide-x { flex: none; }
/* Computers and iPads: the account button sits top right of the page, so the card stops short of it. */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .guide-strip { width: auto; margin-right: 56px; } }
/* "What kind of business?" on the first screen: big choices, two a row. */
.kind-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.kind-field legend { padding: 0; margin-bottom: 6px; font-size: var(--t-footnote); font-weight: 500; color: var(--fade); }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind { position: relative; display: flex; align-items: center; min-height: 52px; padding: 8px 12px; border-radius: 12px; background: var(--fill);
  font-weight: 600; font-size: var(--t-subhead); line-height: 1.25; cursor: pointer; }
.kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind:has(input:checked) { background: var(--tint); color: var(--on-tint); }
.kind:has(input:focus-visible) { outline: 2px solid var(--tint); outline-offset: 2px; }
/* "Where do you take bookings?" (plan 53): two big choice cards, each an icon, a title and one line. */
.mode-pick { display: grid; grid-template-columns: 1fr; gap: 8px; }
.mode-card { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: var(--fill); cursor: pointer; }
.mode-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mode-card .mode-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--card, #fff); color: var(--ink); }
.mode-card .mode-icon svg { width: 20px; height: 20px; }
.mode-card .mode-text { display: grid; gap: 2px; min-width: 0; }
.mode-card .mode-text b { font-size: var(--t-subhead); }
.mode-card .mode-text span { font-size: var(--t-footnote); color: var(--fade); line-height: 1.35; }
.mode-card:has(input:checked) { background: var(--tint); color: var(--on-tint); }
.mode-card:has(input:checked) .mode-text span { color: inherit; opacity: .85; }
.mode-card:has(input:focus-visible) { outline: 2px solid var(--tint); outline-offset: 2px; }
.kind-field .hint { display: block; margin-top: 6px; }
/* Settings → Plan and modules: "Where you take bookings" (plan 53), the first card. */
.mode-card-set { display: grid; gap: 10px; }
.mode-card-set .mode-set-title { margin: 0; font-size: var(--t-subhead); }
.mode-set-row { align-items: center; gap: 12px; }
.mode-set-row .mode-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--fill); }
.mode-set-row .mode-icon svg { width: 20px; height: 20px; }
.mode-list { margin: 0; padding-left: 20px; display: grid; gap: 2px; }
/* The side bar's quiet note under the shop name (computers and iPads only). */
.side-mode { display: none; }
/* The booking link with Copy, Share… and the QR code for the counter. */
.share-link { overflow-wrap: anywhere; font-weight: 600; }
.qr-sign { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 24px 16px; border-radius: 18px; background: #fff; color: #000; box-shadow: inset 0 0 0 2px #000; }
.qr-name { font-size: var(--t-title2); }
.qr-big svg { width: min(72vw, 300px); height: auto; display: block; }
.qr-url { font-size: var(--t-footnote); overflow-wrap: anywhere; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
details.presets summary { min-height: 32px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--tint); }
details.presets summary .grow { flex: 1; }
details.presets[open] summary { margin-bottom: 12px; }
details.presets:not([open]) { padding-top: 0; padding-bottom: 0; }
/* "+ Add …" as the first row of a list (setup.js listCard). */
.item.add-row b { color: var(--tint); font-weight: 600; }
.empty.failed { display: grid; justify-items: center; gap: 12px; }
.item.add-row .add-plus { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint); color: var(--on-tint); flex: none; }
.item.add-row .add-plus svg { width: 13px; height: 13px; color: inherit; }
.picks { gap: 0; }
.picks label.check { position: relative; padding: 4px 0; }
.picks label.check:not(:last-child)::after { content: ""; position: absolute; left: 34px; right: 0; bottom: 0; height: .5px; background: var(--sep); }
.picks label.check .grow { min-width: 0; }
.picks label.check .grow b, .picks label.check .grow span { display: block; }
.picks label.check .grow b { font-weight: 400; }
.picks label.check .grow span { color: var(--fade); font-size: var(--t-footnote); }
.picks label.check:has(input:disabled) { color: var(--faint); }

/* ---------- Fill my chair ---------- */
.fill-row { display: flex; justify-content: flex-end; margin: -2px 0 12px; }
.btn.fill-btn { gap: 6px; background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-ink); font-size: var(--t-caption1); letter-spacing: .06em; text-transform: uppercase; }
@media (hover: hover) { .btn.fill-btn:hover:not([disabled]) { background: var(--ink); color: var(--bg); } }
.fill-when { font-size: var(--t-headline); font-weight: 600; }
.fill-empty { padding: 14px 0; color: var(--fade); }
.fill-done { display: grid; justify-items: center; gap: 10px; padding: 8px 0 4px; text-align: center; }
.fill-done .tick { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: #fff; }
.fill-done .tick svg { width: 26px; height: 26px; }
.fill-done h2 { font-size: var(--t-title3); font-weight: 600; line-height: 1.2; }
.fill-recent { display: grid; gap: 0; }
.fill-recent:empty { display: none; }
.fill-line { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; }
.fill-line:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .5px; background: var(--sep); }

/* ---------- free times (New booking, Move) ---------- */
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.times .btn { padding: 0 6px; }
.times .btn { background: var(--card); color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.times .btn[aria-pressed="true"] { background: var(--tint); color: var(--on-tint); font-weight: 600; }
.times-note { width: 100%; grid-column: 1 / -1; }
/* Move: the booking's own time, with "current" under it. */
.times .btn.is-current { flex-direction: column; gap: 0; line-height: 1.1; }
.times .btn.is-current small { font-size: var(--t-caption2); font-weight: 500; opacity: .8; }

/* ---------- setup menu ---------- */
.setup .menu { display: grid; gap: 16px; align-content: start; }
.setup .menu h3 { margin: 0 16px -10px; }
/* "Setup" over its menu on a phone, like the other tabs' large titles (an h2: the page's title is the h1). */
.setup .menu > .menu-title { margin: 4px 0 0; font-size: var(--t-title2); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
/* Computers: no visible title (the side bar says Setup), but screen readers keep it, so the headings stay in order. */
@media (min-width: 1024px) { .setup .menu > .menu-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.btn-icon svg { width: 14px; height: 14px; display: block; }
.cal-title-mark svg, .cal-who-mark svg { width: 11px; height: 11px; display: block; stroke-width: 2.5; }
.btn-icon { display: inline-flex; }
.ask-safe { display: flex; gap: 6px; align-items: flex-start; }
.ask-safe svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
@media (min-width: 1024px) {
  /* Tight rows so all 25 pages fit a 900px screen; shorter screens scroll it, with a fade at the bottom.
     Long French names wrap instead of pushing the list sideways. */
  .setup .menu { max-height: calc(100vh - 48px); overflow: auto; overflow-x: hidden; padding: 2px; gap: 10px; scrollbar-width: thin; } /* scrolls on its own, then hands the wheel to the page (no trap) */
  .setup .menu .item .grow b { white-space: normal; overflow-wrap: anywhere; }
  .setup .menu.more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 44px), transparent); }
  .setup .menu.more-above { -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to top, #000 calc(100% - 32px), transparent); }
  .setup .menu.more-above.more-below { -webkit-mask-image: linear-gradient(transparent, #000 32px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(transparent, #000 32px, #000 calc(100% - 44px), transparent); }
  .setup .menu h3 { margin: 0 10px -8px; }
  .setup .menu .list { display: grid; gap: 0; background: none; overflow: visible; }
  .setup .menu .item { min-height: 44px; padding: 4px 10px; border-radius: 8px; } /* 44 px to click */
  .setup .menu .list + h3 { margin-top: 4px; }
  .setup .menu .item::after, .setup .menu .item svg { display: none; }
  .setup .menu .item[aria-current="true"] { background: var(--fill-2); color: var(--ink); }
  .setup .menu .item[aria-current="true"] .grow b { font-weight: 600; }
}

/* Setup structure (2026-10-13): the plan tag on a locked page's row, the one "On the Shop plan" card, the parts shown
   but not usable under it, Get started on top of the menu, the staff summary and its parts' way back. */
.menu-tag { flex: none; margin-left: 6px; padding: 1px 7px; border-radius: 9999px; background: var(--fill); color: var(--fade); font-size: var(--t-caption1); font-weight: 600; line-height: 1.4; }
.check .menu-tag { vertical-align: 1px; }
.card.plan-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.plan-lock-icon svg { width: 18px; height: 18px; display: block; color: var(--fade); }
/* The words keep their line; a long button ("Ajouter Inventaire Pro — 10 $ par mois") moves under them. */
.card.plan-lock > .grow { min-width: 11em; }
.locked-part { opacity: .55; pointer-events: none; user-select: none; }
/* Inventory Pro (plan 26, inventory.js): the "Pro" tag in titles, what it adds, a service's products, the reorder list. */
h2 .menu-tag, h3 .menu-tag, .btn .menu-tag { vertical-align: 2px; }
.btn .menu-tag { background: var(--fill-2); }
.pro-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: var(--t-subhead); }
.pro-list b { display: block; }
.pro-list span { color: var(--fade); }
.pro-teaser h2 { margin-bottom: 0; }
.uses-row { gap: 8px; align-items: center; }
.uses-row select { flex: 1 1 auto; min-width: 0; }
input[type="text"].uses-amount { flex: none; width: 5.5rem; text-align: right; }
.pro-lock b.grow { min-width: 10rem; }
.pro-lock .btn { white-space: normal; text-align: center; }
.reorder-supplier { display: block; font-size: var(--t-headline); font-weight: 600; }
.reorder-group .fade.small { display: block; }
.reorder-row { flex-wrap: wrap; row-gap: 8px; }
.reorder-row .grow { min-width: 10rem; }
.reorder-act { gap: 8px; align-items: center; flex: none; margin-left: auto; }
/* Rows whose second line must be read whole (numbers): it wraps instead of being cut. */
.item.lines .grow b, .item.lines .grow span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.view-reports h3.rsub { margin: 10px 0 -4px; font-size: var(--t-subhead); font-weight: 600; color: var(--fade); }
.setup .menu .menu-start .item b { font-weight: 600; }
.staff-sum { display: flex; align-items: center; gap: 12px; }
.staff-sum .grow { display: grid; }
.sheet-back { display: inline-flex; align-items: center; gap: 2px; justify-self: start; min-height: 32px; }
.sheet-back svg { width: 16px; height: 16px; display: block; }
.fill-spot { margin: 0; }
.fill-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.new-class { padding: 12px; border-radius: var(--r-card); background: var(--fill); }
@media (pointer: coarse) { .sheet-back { min-height: 44px; } }

/* ---------- small helpers ---------- */
.share a { overflow-wrap: anywhere; color: var(--tint); }
.client-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* ---------- touch screens: 44pt targets, 16px+ fields so phones do not zoom ---------- */
@media (pointer: fine) {
  .btn.sm, .chip, .cal-all, .sheet-head .icon-btn { min-height: var(--h-compact); }
  .sheet-head .icon-btn { height: var(--h-compact); width: var(--h-compact); }
  .cal-more { width: var(--h-compact); height: var(--h-compact); }
}
@media (pointer: coarse) {
  .btn.sm, .chip, .times .btn { min-height: 44px; }
  .tabs button, .seg button { min-height: 36px; position: relative; }
  /* Segmented controls keep their look; the tap area reaches 44pt. */
  .tabs button::after, .seg button::after { content: ""; position: absolute; inset: -4px 0; }
  .link.small { min-height: 44px; display: inline-flex; align-items: center; }
  details.presets summary { min-height: 44px; }
  .thumb button::after { content: ""; position: absolute; inset: -10px; }
  .top select.shop { min-height: 44px; }
  /* 16px or more, or iPhone zooms the page when a field is tapped (beats the field rule's specificity). */
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), select, textarea { font-size: max(16px, var(--t-body)); }
  /* Phone and text links in a facts list: a full 44pt tap, spaced apart. */
  .facts a, .facts .link { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; }
  .card > a.link, .card > .link { display: inline-flex; align-items: center; min-height: 44px; }
  details.card summary { min-height: 44px; display: flex; align-items: center; }
  .kinds .btn, .kinds button { min-height: 44px; }
  /* iPad (a finger at computer widths): the Setup list, menus and the small month keep 44pt too. */
  .setup .menu .item { min-height: 44px; }
  .mini-step { width: 44px; height: 44px; }
  .mini-grid { row-gap: 16px; }
  .mini-day { position: relative; }
  .mini-day::after { content: ""; position: absolute; inset: -8px 0; } /* 28pt circle, 44pt tall to tap */
  .top .bell, .top .acct { min-width: 44px; min-height: 44px; }
}

/* ---------- accessibility settings: less motion, less transparency, more contrast ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .item, .icon-btn, .chip, .seg button, .tabs button, .nav button, .pad-keys button { transition: background-color .15s, color .15s, opacity .15s, box-shadow .15s; }
  .fab { transition: transform .15s; }
}
@media (prefers-reduced-motion: reduce) { label.check input[role="switch"], input.mod-switch, label.check input[role="switch"]::after, input.mod-switch::after { transition: none; } }
/* Materials fall back as one switch each: every glass rule reads the --mat-* tokens.
   1. No blur in this browser: nearly solid, so sharp text under a bar does not ghost through. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --mat-bar: rgba(255, 255, 255, .96); --mat-float: rgba(255, 255, 255, .97); --mat-menu: #ffffff; --mat-dark: #1c1c1e; }
}
/* 2. Reduce Transparency. Safari does not report it, so the iPhone app also sets html.a11y-solid from the iPhone's setting. */
@media (prefers-reduced-transparency: reduce) {
  :root { --mat-bar: var(--solid-bar); --mat-float: var(--solid-float); --mat-menu: #ffffff; --mat-dark: #1c1c1e;
          --mat-bar-fx: none; --mat-float-fx: none; --mat-menu-fx: none; --mat-dark-fx: none; }
}
html.a11y-solid { --mat-bar: var(--solid-bar); --mat-float: var(--solid-float); --mat-menu: #ffffff; --mat-dark: #1c1c1e;
                  --mat-bar-fx: none; --mat-float-fx: none; --mat-menu-fx: none; --mat-dark-fx: none; }
/* 3. Increase Contrast (the iPhone app sets html.a11y-contrast): solid surfaces, a real edge, no white rim. */
@media (prefers-contrast: more) {
  :root { --mat-bar: var(--solid-bar); --mat-float: var(--solid-float); --mat-menu: #ffffff;
          --mat-bar-fx: none; --mat-float-fx: none; --mat-menu-fx: none;
          --mat-rim: inset 0 0 0 0 transparent; --mat-edge: 0 0 0 1px rgba(0, 0, 0, .55); --mat-bar-line: 0 1px 0 rgba(0, 0, 0, .55); }
  .nav button:not([aria-current="page"]) { color: #000; }
}
html.a11y-contrast { --mat-bar: var(--solid-bar); --mat-float: var(--solid-float); --mat-menu: #ffffff;
  --mat-bar-fx: none; --mat-float-fx: none; --mat-menu-fx: none;
  --mat-rim: inset 0 0 0 0 transparent; --mat-edge: 0 0 0 1px rgba(0, 0, 0, .55); --mat-bar-line: 0 1px 0 rgba(0, 0, 0, .55);
  --fade: #3a3a3c; --faint: #636366; --sep: rgba(60, 60, 67, .5); --fill: rgba(118, 118, 128, .22); --fill-2: rgba(118, 118, 128, .32); }
html.a11y-contrast .nav button:not([aria-current="page"]) { color: #000; }
html.a11y-contrast .pop-menu:focus, .pop-menu:focus-visible { outline: 0; } /* the menu itself takes focus after a finger tap; its items show the keyboard ring */
.pop-menu { box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .18); }
html.a11y-contrast :is(.list, .note, .pane .card, .facts, .cal, .steps, .share, .all-list, .chip) { box-shadow: inset 0 0 0 1px var(--sep); }
html.a11y-contrast .btn { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); }
/* 4. Windows high contrast. */
@media (forced-colors: active) {
  :root { --mat-bar: Canvas; --mat-float: Canvas; --mat-menu: Canvas; --mat-dark: Canvas;
          --mat-bar-fx: none; --mat-float-fx: none; --mat-menu-fx: none; --mat-dark-fx: none; }
  .sheet.has-more form > .actions:last-child { background: Canvas; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .top, .nav, .save-bar, .sheet-head, .pop-menu, .toast { background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav button[aria-current="page"] { outline: 2px solid Highlight; }
  .cal-now { background: Highlight; }
}
@media (prefers-reduced-motion: reduce) { .top, .sheet-head { transition: none; } .fab:active, .ask-fab:active { transform: none; } }
@media (prefers-contrast: more) {
  :root { --fade: #3a3a3c; --faint: #636366; --sep: rgba(60, 60, 67, .5); --fill: rgba(118, 118, 128, .22); --fill-2: rgba(118, 118, 128, .32); }
  .list, .note, .pane .card, .facts, .cal, .steps, .share, .all-list, .chip { box-shadow: inset 0 0 0 1px var(--sep); }
  .btn { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4); }
}

/* Long links and codes must wrap, never push the page sideways. */
.card a, .card p, .note, .facts a { overflow-wrap: anywhere; }
.card > *, .steps .item, .pane > * { min-width: 0; }

/* ---------- payment tab: money taken at the shop ---------- */
.in-person { display: grid; gap: 12px; margin: 0 0 18px; padding: 16px; background: var(--card); border-radius: var(--r); }
.in-person h3 { margin: 0; }
/* With Checkout: the booking's Payment tab only shows the bill (day.js billState). */
.bill-state { display: grid; gap: 10px; padding: 16px; background: var(--card); border-radius: var(--r); }
.bill-state h3, .bill-state p { margin: 0; }
.bill-state > h3 { font-size: var(--t-headline); font-weight: 600; color: var(--ink); }
.bill-state .facts { margin: 0; }
.bill-state > .btn { justify-self: start; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-or { margin: 6px 0 10px; }
.pad-clear { justify-self: center; }

/* A staff member's own price and length for one service. */
.own-price { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.own-price label { display: inline-flex; align-items: center; gap: .25rem; }
.own-price input { width: 5.5rem; }

/* Setup → Client messages: the preview. */
.msg-preview { display: grid; gap: .5rem; }
.msg-mail { border: 1px solid var(--sep); border-radius: 12px; padding: .75rem 1rem; display: grid; gap: .5rem; background: var(--card); }
.msg-mail p { margin: 0; white-space: pre-line; }
.msg-sms { justify-self: start; max-width: 32rem; padding: .6rem .8rem; border-radius: 14px 14px 14px 4px; background: var(--fill); white-space: pre-line; overflow-wrap: anywhere; }

.chip.tag-chip { text-transform: none; letter-spacing: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0 .25rem .25rem 0; }

/* Setup → Services: "Paste your price list" (Rndez AI). */
.rendy-paste { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; }
.rendy-paste img { width: 22px; height: 22px; margin: -4px 0; }
.pasted { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--sep); }
.pasted > input[type="checkbox"] { margin-top: .7rem; }
.warn-text { color: var(--warn); }

/* Classes and rooms (plan 25, classes.js): the roster, a class session's card, the plan note */
.roster-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.roster-count b { font-size: var(--t-title2); font-variant-numeric: tabular-nums; }
.roster-row { flex-wrap: wrap; }
.roster-row .roster-name { display: grid; gap: 2px; min-width: 0; text-align: left; color: inherit; text-decoration: none; }
.roster-row .roster-name b, .roster-row .roster-name span { overflow-wrap: anywhere; }
.roster-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.roster-row .err:empty { display: none; }
.roster-row .err { flex-basis: 100%; }
.spots-row { display: flex; gap: 8px; align-items: center; }
.spots-row input { max-width: 8em; }
.plan-gate .link { white-space: nowrap; }
.cal-head.room .av { display: inline-grid; place-items: center; }

/* Setup → Flash (flash.js): the designs as a grid of pictures; a taken one is dimmed, a hidden one faded. */
.flash-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.flash-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border: 0; border-radius: var(--r); background: var(--card); text-align: left; cursor: pointer; }
.flash-card:hover { background: var(--fill, rgba(0, 0, 0, .05)); }
.flash-card img, .flash-card .flash-none { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.flash-card.is-taken img { opacity: .55; }
.flash-card.is-hidden { opacity: .6; }
.flash-none { display: grid; place-items: center; background: var(--sep, rgba(0, 0, 0, .08)); color: var(--fade); font-size: var(--t-footnote); }
.flash-preview img, .flash-preview .flash-none { display: grid; width: 160px; height: 160px; object-fit: cover; border-radius: 12px; }
.flash-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.flash-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.flash-card .badge { max-width: 100%; white-space: normal; text-align: left; }

/* Rate this client (booking panel): five big stars, the chosen ones filled. */
.stars-row { display: flex; gap: 6px; }
.stars-row .star { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--fill, rgba(0, 0, 0, .06)); color: rgba(0, 0, 0, .25); font-size: 24px; line-height: 1; cursor: pointer; }
.stars-row .star[aria-pressed="true"] { color: #b26b00; background: rgba(245, 166, 35, .15); }
.stars-row .star { display: inline-flex; align-items: center; justify-content: center; color: rgba(0, 0, 0, .45); }
.stars-row .star svg { width: 24px; height: 24px; }
.stars-row .star[aria-pressed="true"] svg { fill: currentColor; }
.pad-keys button svg { width: 26px; height: 26px; vertical-align: middle; }

/* ---------- side panel (a booking on a wide screen): the calendar stays in view and works ---------- */
@media (min-width: 1100px) {
  .shade.side { background: none; pointer-events: none; align-items: stretch; justify-content: flex-end; padding: 12px; }
  .shade.side .sheet { pointer-events: auto; max-width: 400px; height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: none; border-radius: 16px; box-shadow: 0 0 0 .5px var(--glass-line), var(--shadow-lift); }
}

/* ---------- one booking: summary, contact, actions ---------- */
/* The client's name is the big title, their number under it (call or text). */
.bk-sheet .sheet-head h2 { font-size: var(--t-headline); font-weight: 600; letter-spacing: -.01em; }
.bk-reach { flex: 0 0 100%; display: flex; gap: 16px; margin: -6px 0 0; font-size: var(--t-subhead); }
.bk-reach a { color: var(--tint); font-weight: 500; text-decoration: none; }
@media (pointer: coarse) { .bk-reach a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; } }
.bk-summary { display: grid; gap: 3px; padding: 14px 16px; background: var(--card); border-radius: var(--r); } /* the staff colour shows as the dot by their name; no side bar on a card */
.bk-summary.off { opacity: .7; }
.bk-when { font-size: var(--t-headline); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
/* Length as words, the person with their colour dot, then the state as a soft pill (the calendar's words). */
.bk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: var(--t-footnote); color: color-mix(in srgb, var(--ink) 78%, transparent); }
.bk-staff { display: inline-flex; align-items: center; gap: 6px; }
.bk-staff i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.bk-state { display: inline-block; padding: 2px 9px; border-radius: 9999px; font-size: var(--t-caption1); font-weight: 600; line-height: 1.35; white-space: nowrap; }
.bk-state.on { background: var(--fill); color: var(--ink); }
.bk-state.due { background: #fff3c4; color: #6b4e00; }
.bk-state.done { background: var(--ok-soft); color: var(--ok); }
.bk-state.gone { background: rgba(95, 100, 91, .16); color: #3f443b; }
.bk-state.off { background: none; color: var(--fade); box-shadow: inset 0 0 0 1px var(--sep); }
.bk-state.bad { background: var(--bad-soft); color: var(--bad); }
/* A drawn icon in front of words (Repeats, Agreed, the private-rating line). */
.with-icon { display: inline-flex; align-items: center; gap: 5px; }
.with-icon .ic { display: inline-flex; flex: none; }
.with-icon svg { width: 14px; height: 14px; }
.bk-day { color: var(--fade); }
.bk-day::first-letter { text-transform: uppercase; }
.bk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 9999px; background: var(--fill); font-size: var(--t-caption1); font-weight: 600; line-height: 1.3; white-space: nowrap; }
.facts .reach { display: inline-flex; gap: 14px; }
.bk-actions { display: flex; gap: 8px; }
.bk-actions .btn { flex: 1 0 auto; min-height: 44px; white-space: nowrap; scroll-snap-align: start; }
.bk-actions-note { margin: 0; }
/* One row of buttons that swipes sideways (LB.swipeRow, day.js): no scrollbar, the edge fades while more is off-screen,
   and with a mouse ‹ › at the ends. The padding keeps the focus ring inside the scrolling box. */
.swipe-row { position: relative; min-width: 0; }
.swipe-track {
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding: 0 4px;
  scrollbar-width: none; padding: 3px 4px; margin: -3px -4px; overscroll-behavior-x: contain;
}
.swipe-track::-webkit-scrollbar { display: none; }
.swipe-row.more-right .swipe-track { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.swipe-row.more-left .swipe-track { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.swipe-row.more-left.more-right .swipe-track { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.swipe-arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .swipe-row.overflows .swipe-arrow {
    position: absolute; top: 50%; z-index: 1; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); cursor: pointer;
  }
  .swipe-arrow svg { width: 14px; height: 14px; }
  .swipe-row .swipe-arrow.left { left: -6px; }
  .swipe-row .swipe-arrow.right { right: -6px; }
  .swipe-row.overflows:not(.more-left) .swipe-arrow.left, .swipe-row.overflows:not(.more-right) .swipe-arrow.right { display: none; }
}
/* Move: where the booking is now, at the top. */
.move-now { padding: 10px 14px; border-radius: var(--r); background: var(--card); font-weight: 600; }

/* ---------- the "⋯ More" menu (pop-menu: not .menu, which is the Setup menu) ---------- */
.pop-menu {
  position: fixed; z-index: 80; min-width: 210px; max-width: calc(100vw - 16px); padding: 5px; display: grid;
  background: var(--mat-menu); -webkit-backdrop-filter: var(--mat-menu-fx); backdrop-filter: var(--mat-menu-fx);
  border-radius: var(--r-card); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .6), 0 0 0 .5px rgba(0, 0, 0, .12), 0 12px 32px rgba(0, 0, 0, .16);
}
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--h-regular); padding: 0 10px; border-radius: var(--r-inner); text-align: left; font-size: var(--t-body); }
.menu-item:hover, .menu-item:focus-visible { background: var(--blue); color: #fff; outline: 0; }
.menu-item.danger { color: var(--red); }
.menu-item.danger:hover, .menu-item.danger:focus-visible { background: var(--red); color: #fff; }
.menu-item kbd { font-size: var(--t-caption1); color: inherit; opacity: .6; }
@media (pointer: coarse) { .menu-item { min-height: 44px; } }

/* ---------- New booking: the extras fold away; what was typed comes back ---------- */
.more-options { border-radius: var(--r); background: var(--card); padding: 0 14px; }
.more-options summary { min-height: var(--tap); display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-size: var(--t-subhead); font-weight: 600; list-style: none; }
.more-options summary::-webkit-details-marker { display: none; }
.more-options .chev { display: inline-flex; color: var(--fade); }
.more-options .chev svg { width: 18px; height: 18px; transition: transform .2s; }
.more-options[open] .chev svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .more-options .chev svg { transition: none; } }
/* The running total above Add booking. */
.bk-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--t-subhead); font-variant-numeric: tabular-nums; }
.bk-total b { font-size: var(--t-headline); }
/* A date field says its date in words under it; an error about one field sits under that field. */
/* Date beside Time: the words under the date must not stretch the Time field. */
.two:has(.date-words, .field-err) { align-items: start; }
.date-words { display: block; margin-top: 4px; color: var(--fade); font-size: var(--t-footnote); font-weight: 400; }
.date-words::first-letter { text-transform: uppercase; }
.field-err { display: block; margin-top: 4px; }
/* The client field suggests names as you type; no browser arrow on it. */
.sheet input[list]::-webkit-calendar-picker-indicator { display: none !important; }
.more-options[open] { padding-bottom: 14px; }
.note.kept { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; background: var(--ok-soft); }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 5px; background: var(--card); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .14); font-family: var(--sans); font-size: var(--t-footnote); font-weight: 600; text-align: center; white-space: nowrap; }
.facts.keys > div > :last-child { color: var(--ink); }
/* While a booking is open beside it, the calendar makes room so its top bar and grid stay usable. */
@media (min-width: 1100px) {
  body:has(.shade.side:not(.leaving)) .view.cal-view { padding-right: 424px; }
  body:has(.shade.side:not(.leaving)) .cal-add { font-size: 0; gap: 0; width: 34px; padding: 0; }
  body:has(.shade.side:not(.leaving)) .cal-modes button { min-width: 0; padding: 0 10px; }
  body:has(.shade.side:not(.leaving)) .cal-side { display: none; }
  body:has(.shade.side:not(.leaving)) .cal-shell.has-side { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- motion and touch, audited against Apple's fluid-interface rules (2026-10-08) ----------
   Feedback on press, not on release, and instant. Springs live in core.js (LB.spring); CSS only for things
   nobody can grab (a menu appearing, a toast). Every motion has a reduced-motion version. */
html { touch-action: manipulation; } /* no 300 ms wait for a double-tap zoom */
.btn:active, .icon-btn:active, .chip:active, .seg button:active, .nav button:active, .menu-item:active { transition-duration: 0s; }
.bk:active:not(.dragging):not(.resizing), .all-bk:active, .month-cell:active, .strip-day:active, .mini-day:active, .cal-title:active, .cal-who:active, .cal-head.day-link:active {
  background-color: color-mix(in srgb, var(--ink) 8%, transparent);
}
.strip-day:active b, .cal-title:active { opacity: .7; }
/* Where a dragged booking will land, on the grid. */
.drop-mark { position: absolute; left: 3px; right: 3px; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(255, 255, 255, .35); }
.drop-mark.warn { box-shadow: inset 0 0 0 2px var(--warn); background: var(--warn-soft); }
.drop-mark.bad { box-shadow: inset 0 0 0 2px var(--red); background: var(--bad-soft); }
/* Loading the next days: the old ones stay, quieter, so nothing flashes empty. */
.cal.loading > * { opacity: .5; transition: opacity .2s .12s; }
/* The calendar's sticky headers are content, so they are solid (round 2): no glass in the grid. */
/* Tracking by size: small labels open up slightly, large dates stay tight (set where they are drawn). */
.bk, .bk span, .cal-gutter span, .month-item, .month-more, .mini-day, .mini-dow, .strip-dow, .cal-title-sub, .drag-time, .tag, .badge, .all-time small, .cal-key, .cal-zone, .cal-now-label { letter-spacing: .01em; }
/* The menu grows out of its button. */
@keyframes menu-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.pop-menu.menu-in { animation: menu-in .14s cubic-bezier(.2, .9, .3, 1); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast { animation: toast-in .2s cubic-bezier(.2, .9, .3, 1); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.shade.fade-in { animation: fade-in .2s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .pop-menu.menu-in, .toast { animation: fade-in .15s ease-out; }
}
@media (prefers-contrast: more) {
  .pop-menu { box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .18); }
  .drop-mark { box-shadow: inset 0 0 0 2px var(--ink); }
}

/* Check your email (main.js checkEmail). */
.auth .center, .sheet .center { text-align: center; }
.code-input { font-size: var(--t-title2); letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.verify-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-bottom: 16px; align-self: stretch; width: 100%; box-sizing: border-box; flex: none; }
.verify-bar .link { color: inherit; font-weight: 600; text-decoration: underline; }

/* ---------- Ask AI (ask.js): a button on Setup, and a window that stays beside the page ---------- */
.ask-fab {
  position: fixed; right: 12px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 62px + 8px); z-index: 16;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 16px 6px 8px;
  border-radius: 9999px; background: var(--blue); color: #fff; font-weight: 600; font-size: var(--t-subhead);
  box-shadow: var(--sh-float);
}
.ask-fab img { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.ask-fab:active { transform: scale(.96); }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { .ask-fab { bottom: 28px; right: 28px; } }
/* Under 1100px wide (iPads, small laptops, phones) it is a round button, so it hides less of the page. */
@media (max-width: 1099px) {
  .ask-fab { width: 52px; height: 52px; min-height: 0; padding: 0; justify-content: center; }
  .ask-fab img { width: 36px; height: 36px; }
  .ask-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Room under the page for the button (its height and its gap), so the last rows scroll out from under it. */
body:has(.ask-fab:not([hidden])) .view { padding-bottom: calc(var(--nav-h) + 98px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) { body:has(.ask-fab:not([hidden])) .view { padding-bottom: 104px; } }
.ask-panel {
  /* Above an open form's dark background (.shade is 50), so the owner can answer the AI while the form is open. */
  position: fixed; z-index: 70; right: 12px; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); left: 12px;
  display: flex; flex-direction: column; max-height: min(78vh, 640px); max-height: min(78dvh, 640px);
  background: var(--bg); border-radius: 18px; box-shadow: 0 0 0 .5px var(--glass-line), var(--shadow-lift); overflow: hidden;
}
@media (min-width: 700px) { .ask-panel { left: auto; width: 380px; bottom: 24px; right: 24px; max-height: min(80vh, 680px); } }
.ask-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; background: var(--card); border-bottom: .5px solid var(--sep); }
.ask-head img { width: 40px; height: 40px; flex: none; }
.ask-head .grow b { display: block; }
.ask-head .grow span { display: block; }
.ask-log { flex: 1 1 auto; overflow-y: auto; padding: 14px; display: grid; gap: 8px; align-content: start; }
.ask-line { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: var(--t-subhead); line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-line.rendy { background: var(--card); justify-self: start; }
.ask-line.me { background: var(--blue); color: #fff; justify-self: end; }
.ask-line.step { padding: 0 4px; color: var(--fade); font-size: var(--t-footnote); }
.ask-line.warn { background: var(--warn-soft); color: var(--warn); justify-self: start; }
.ask-q { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ask-q input { flex: 1 1 140px; min-height: 36px; }
.ask-form { display: grid; gap: 8px; padding: 12px; border-top: .5px solid var(--sep); background: var(--card); }
.ask-form textarea { min-height: 64px; }
.ask-actions { display: flex; align-items: center; gap: 8px; }
.ask-actions p { flex: 1; margin: 0; }
.ask-panel.working .ask-head img { animation: ask-bob 1s ease-in-out infinite alternate; }
@keyframes ask-bob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ask-panel.working .ask-head img { animation: none; } }

/* A short computer window (a mouse; under 500px tall): the strip and the top bar give their room to the schedule.
   (Phones held sideways: see "a phone held sideways" below.) */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 999px) and (pointer: fine) {
  :root { --top-h: 40px; }
  .cal-main > .cal-strip, .cal-main > .cal-chips { display: none; }
  .cal-who { display: inline-flex; } /* the chips give way to the filter button */
  .cal-toolbar { gap: var(--s2); }
  .cal-title-main { font-size: var(--t-title2); }
  .fab { width: 52px; height: 52px; }
  body:has(.fab) .nav { right: calc(12px + 52px + 8px); }
  .cal-toolbar { margin-bottom: var(--s2); }
  .nav button { min-height: 44px; flex-direction: row; gap: var(--s3); }
  :root { --nav-h: 52px; --dock-space: calc(52px + 24px + env(safe-area-inset-bottom)); }
}
/* Week: whose week, a row of faces (scrolls sideways on phones). */
.cal-weekwho { position: relative; display: flex; align-items: center; gap: 6px; min-height: 58px; padding: 8px 0 10px; overflow-x: auto; scrollbar-width: none; }
.cal-weekwho::-webkit-scrollbar { display: none; }
/* More faces off-screen: the edge fades, so the row looks like it goes on. */
.cal-weekwho.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.cal-weekwho.more-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.cal-weekwho.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.who-face { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 40px; padding: 4px 10px 4px 4px; border: 0; border-radius: 9999px;
  background: var(--fill); color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
@media (pointer: coarse) { .who-face { min-height: 44px; } .cal-weekwho { min-height: 62px; } }
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) { .cal-weekwho { padding: 4px 0 6px; min-height: 54px; } } /* phones: every line counts */
.who-face .av { width: 30px; height: 30px; }
.who-face-count { min-width: 20px; padding: 0 6px; border-radius: 9999px; background: var(--bg); font-size: max(11px, .6875rem); font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.who-face[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.who-face[aria-pressed="true"] .who-face-count { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
@media (hover: hover) { .who-face[aria-pressed="false"]:hover { background: var(--fill-2); } }

/* The phone's Day: Everyone, as a face too. */
.av.all { background: var(--ink); color: var(--bg); }
.av.all svg { width: 16px; height: 16px; }
/* What the calendar shows (the info button): samples and plain words. */
.cal-key-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cal-key-list li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; }
.cal-key-list li > span:last-child { display: grid; gap: 2px; }
.cal-key-list small { color: var(--fade); font-size: .8125rem; }
.key-swatch { display: block; width: 140px; height: 30px; border-radius: 6px; box-shadow: 0 0 0 1px var(--hair-ink); overflow: hidden; }
/* Each swatch carries its word, as the grid does: Time off is the darker band with a rule and capitals; Closed is plain. */
.key-swatch > span { display: block; padding: 6px 8px; font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--ink) 72%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key-swatch.off { background: rgba(0, 0, 0, .09); border-top: 2px solid rgba(0, 0, 0, .22); }
.key-swatch.off > span, .key-swatch.busy > span { padding-top: 4px; letter-spacing: .04em; text-transform: uppercase; }
.key-swatch.buffer > span { padding-top: 2px; }
.key-swatch.busy { background: rgba(31, 59, 209, .05); outline: 1px dotted rgba(0, 0, 0, .45); outline-offset: -1px; }
.key-swatch.closed { background: rgba(0, 0, 0, .055); }
.key-swatch.buffer { background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .025) 0 4px, rgba(0, 0, 0, .07) 4px 5px); }
.key-swatch.buffer > span { font-weight: 500; color: color-mix(in srgb, var(--ink) 60%, transparent); }
.cal-list { grid-template-columns: minmax(0, 1fr); align-content: start; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
/* Keyboard: every calendar control shows where it is. */
.month-cell:focus-visible, .who-face:focus-visible, .chip:focus-visible, .feed-item:focus-visible, .cal-head.day-link:focus-visible, .nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* The shop's name, or in the icon menu its initials (it opens the same menu). */
.studio-initials { display: none; }
/* The one staff row, every view: Everyone, then each person with their count; Week adds "Hide closed days". */
.who-face .av.all { display: grid; place-items: center; background: var(--fill-2); color: var(--ink); border-radius: 50%; }
.who-face .av.all svg { width: 16px; height: 16px; }
.who-face[aria-pressed="true"] .av.all { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
.cal-weekwho .who-label { flex: none; align-self: center; padding: 0 4px 0 2px; font-size: var(--t-footnote); font-weight: 600; color: color-mix(in srgb, var(--ink) 72%, transparent); white-space: nowrap; }
.cal-weekwho .who-toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 0 4px 0 12px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.cal-bar-date .who-toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
/* Computers: the account is in the side bar's foot (main.js), so the title rows use the page's full width. */
.cal-head-sub.warn { color: #6b4e00; font-weight: 600; }
.cal-head-sub.warn { display: inline-flex; align-items: center; gap: 4px; }
.cal-head-sub .warn-mark svg { width: 13px; height: 13px; display: block; }
.cal-head-sub.warn { max-width: 100%; overflow: hidden; white-space: nowrap; }
.cal-head-sub .warn-short, .cal-head-sub.tight .warn-long { display: none; }
.cal-head-sub.tight .warn-short { display: inline; }

/* ---------- work areas (main.js LB.areaView): the area's title, its parts as tabs, then the part ---------- */
.area-head { margin-bottom: 10px; }
/* The tabs: the same segmented control as Calendar and Reports. A narrow phone scrolls the row sideways. */
.seg.area-tabs { margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seg.area-tabs::-webkit-scrollbar { display: none; }
.seg.area-tabs button { flex: none; }
/* Section tabs: a plain underline row, not a grey pill (Paul, 2026-10-15). */
.seg.area-tabs { display: flex; gap: 24px; background: none; padding: 0; border-radius: 0; border-bottom: 1px solid var(--hair-ink); }
.seg.area-tabs button { background: none; border-radius: 0; box-shadow: none; padding: 0 2px; min-height: 40px; margin-bottom: -1px; color: var(--fade); font-weight: 500; border-bottom: 2px solid transparent; }
.seg.area-tabs button:hover { color: var(--ink); background: none; }
.seg.area-tabs button[aria-current="page"], .seg.area-tabs button[aria-pressed="true"], .seg.area-tabs button[aria-selected="true"] { background: none; box-shadow: none; color: var(--ink); font-weight: 600; border-bottom-color: currentColor; }
/* A whole page shown as a tab: the area's title is the page's title, so the page's own one is not shown twice.
   Anything else in its title row (a New sale button, the Week / Timesheets switch) stays. */
.embedded > .head-row > h1 { display: none; }
.embedded > .head-row:not(:has(> :not(h1))) { display: none; }
.embedded > .head-row { margin-top: 0; min-height: 0; }
/* The part under the tabs starts at the title's left edge. A Setup page keeps the width it has in Setup (.pane);
   a list page (Requests) the width of a list. */
.view > .area-body { margin-left: 0; }
.view > .area-body.pane { max-width: var(--w-read); }
.view > .area-body[data-tab="requests"] { max-width: var(--w-list); }
/* Inventory's pages are tables on a computer (products, reorder sheet, stock history): they take the whole page. */
.view-inventory > .area-body.pane, .view-purchasing > .area-body.pane { max-width: none; }
.view-inventory > .area-body.pane > .fade:first-child, .view-purchasing > .area-body.pane > .fade:first-child, .view-inventory .inv-costing, .view-inventory .pro-teaser { max-width: var(--w-read); }
/* Inside a work area, a page's own switch (Messages: All · Needs reply · AI; Schedule: Week · Timesheets) looks
   like the filter chips used elsewhere, so it is not mistaken for the area's tabs above it. */
.area-body .ibx-filter, .area-body > .head-row .seg { gap: 6px; padding: 0; background: none; border-radius: 0; flex-wrap: wrap; }
.area-body .ibx-filter button, .area-body > .head-row .seg button {
  flex: none; min-height: 30px; padding: 0 12px; border-radius: 9999px; background: none;
  box-shadow: inset 0 0 0 1px var(--line-ink); font-weight: 600;
}
.area-body .ibx-filter button[aria-pressed="true"], .area-body > .head-row .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
/* A plan's locked part shown as a tab (Messages on Free): the same spacing as a page. */
.area-body.embedded:has(> .note) { display: grid; gap: 12px; justify-items: start; }
/* Where a tool went after switching it on (Setup → Tools): its place in the main menu, for a moment. */
.nav button.found { box-shadow: 0 0 0 3px rgba(0, 122, 255, .35); }

/* ---------- Inventory fixes (plan 27: checkout.js Products, stock sheet, Count stock / Delivery came in, the bill's
   Sold by; inventory.js Reorder list, Stock history, Products used) ---------- */
.inv-tools { gap: 8px; margin: 0 0 12px; }
.inv-tools .btn { flex: 0 1 auto; }
/* Phones: Add a product on its own line, the two stock buttons side by side under it. */
@media (max-width: 699px) {
  .inv-tools.three { display: grid; grid-template-columns: 1fr 1fr; }
  .inv-tools.three > :first-child { grid-column: 1 / -1; }
}
/* The four levels on a product (plan 41), and the import's column picks. */
.inv-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
.inv-level { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--card-2, var(--sep)); font-variant-numeric: tabular-nums; }
.inv-import-row { align-items: center; gap: 8px 12px; margin: 12px 0 0; }
.inv-import { display: inline-flex; }
.inv-import-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 8px 0 0; }
.inv-import-col { display: grid; gap: 4px; }
.inv-import-pick summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
@media (max-width: 499px) { .inv-import-cols { grid-template-columns: 1fr; } }
.inv-more-link { margin: 4px 0 0; }
/* Several locations (plan 37): the location chips at the top, the By location / Totals switch, what is in transit. */
.chips.inv-locs { margin: 0 0 4px; }
.inv-totals-seg { justify-self: start; margin: 0 0 8px; }
.inv-totals-seg[hidden] { display: none; }
.inv-transit[hidden] { display: none; }
.inv-transit .inv-cat { margin: 0; }
.inv-only { margin: 0; }
.inv-only .link { display: inline-flex; align-items: center; min-height: 44px; }
.inv-more-link .link { display: inline-flex; align-items: center; min-height: 44px; }
.inv-low { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 12px; }
.inv-low .link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.inv-finder { margin: 0 0 4px; }
.inv-chips { padding-bottom: 8px; }
.badge.inv-badge { font-size: var(--t-footnote); }
.item.inv-off .grow b { color: var(--fade); }
.inv-hidden-link { margin: 8px 0 0; }
.inv-hidden-link:has(> [hidden]) { display: none; }
.num.inv-amount { flex: none; white-space: nowrap; font-size: var(--t-subhead); color: var(--fade); }
/* How you use it: three buttons; a long French word wraps inside its button. */
.seg.inv-kind button { white-space: normal; line-height: 1.2; padding: 6px 8px; min-height: 44px; }
.inv-used-by { margin: 0; }
/* The stock sheet: the choice, its reason, the number, "8 → 16". */
.chips.inv-subs { flex-wrap: wrap; padding-bottom: 0; }
.chips.inv-subs[hidden] { display: none; }
input.inv-big { font-size: var(--t-title2); font-weight: 600; min-height: 48px; }
.inv-preview { margin: -4px 0 0; font-family: var(--rounded); font-size: var(--t-title3); font-weight: 600; }
.inv-last { margin: 6px 0 -4px; font-size: var(--t-subhead); font-weight: 600; color: var(--fade); }
/* Count stock / Delivery came in: one row per product, the box at the end, "What you pay" under it once a number is in. */
.inv-batch-row { flex-wrap: wrap; row-gap: 8px; }
.inv-batch-row .grow { min-width: 8rem; }
.inv-diff { flex: none; min-width: 3.2em; text-align: right; font-weight: 600; color: var(--fade); }
input[type="text"].inv-qty { flex: none; width: 5.5rem; min-height: 44px; text-align: right; }
.inv-cost-line { flex: 1 1 100%; display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: var(--t-footnote); color: var(--fade); }
.inv-cost-line[hidden] { display: none; }
input[type="text"].inv-cost { width: 5.5rem; min-height: 40px; text-align: right; }
.actions.inv-batch-actions { align-items: center; }
.inv-review { font-size: var(--t-subhead); color: var(--fade); }
/* The bill: who sold a product, on its own line under the product. */
.item.co-line.has-soldby { flex-wrap: wrap; row-gap: 8px; }
.co-soldby { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; font-size: var(--t-footnote); color: var(--fade); }
.co-soldby select { flex: 0 1 14rem; min-height: 40px; }
/* Reorder list: the supplier with its Edit, rows on order in grey, what the order costs. */
.reorder-head { align-items: flex-start; }
.reorder-head .grow { min-width: 0; }
.reorder-contact .link { font-weight: 500; }
.item.reorder-ordered .grow b, .item.reorder-ordered .grow > span { color: var(--fade); }
.item.reorder-ordered .grow .link { display: inline-block; margin-top: 2px; min-height: 32px; font-size: var(--t-subhead); }
.reorder-about { margin: -4px 0 0; }
.reorder-about:empty { display: none; }
/* A service's products: Product · Per visit over the rows. */
.uses-head { gap: 8px; font-size: var(--t-footnote); color: var(--fade); font-weight: 600; }
.uses-head[hidden] { display: none; }
.uses-head-amount { flex: none; width: 5.5rem; text-align: right; margin-right: 52px; }
/* Stock history: the month with its arrows, then the days. */
.inv-month { gap: 8px; margin: 4px 0 8px; }
.inv-month .inv-month-name { margin: 0; text-align: center; font-size: var(--t-headline); }
.inv-month .icon-btn[disabled] { opacity: .35; }
.inv-history { gap: 6px; }
.inv-day { margin: 10px 0 0; font-size: var(--t-subhead); font-weight: 600; color: var(--fade); }
@media (pointer: coarse) {
  .co-soldby select, input[type="text"].inv-cost { min-height: 44px; }
  .inv-month .icon-btn { width: 44px; height: 44px; }
}
/* Phones: something in More needs you (products to reorder): a small dot on More. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { .nav .nav-more.has-dot::after { content: ""; position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--today); box-shadow: 0 0 0 2px var(--bg); } }

/* ---------- the phone dock, tidied (2026-10-13): an even grid, one height, one badge place ---------- */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  /* Five equal tabs, like Apple's tab bar: icons and words line up, and the "you are here" pill is the same size on
     every tab (it was as wide as each word, so every tab looked different). */
  .nav { gap: 2px; padding: 4px; background: color-mix(in srgb, var(--solid-float) 86%, transparent); }
  .nav button { flex: 1 1 0; min-width: 0; min-height: 54px; padding: 0 2px; }
  .nav button span { overflow: hidden; text-overflow: ellipsis; padding: 0; }
  .nav .nav-more { min-width: 0; }
  .nav button[aria-current="page"], .nav .nav-more.more-here-phone { background: rgba(0, 0, 0, .075); box-shadow: none; }
  /* The + is exactly as tall as the bar (62 px), side by side, with the same 8 px gap on every phone. */
  .fab { width: 62px; height: 62px; bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); }
  body:has(.fab) .nav { right: calc(max(12px, env(safe-area-inset-right)) + 62px + 8px); }
  /* Badges and dots in one place: the top right of the icon, in the same red. */
  .nav-badge { top: 3px; left: calc(50% + 5px); }
  .nav .nav-more.has-dot::after { top: 5px; right: auto; left: calc(50% + 7px); background: var(--red); box-shadow: 0 0 0 2px var(--solid-float); }
}
@media (max-width: 350px) {
  .fab { width: 56px; height: 56px; right: 8px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 3px); }
  body:has(.fab) .nav { left: 8px; right: calc(8px + 56px + 6px); }
}

/* ---------- the phone dock, icons only (owner, 2026-10-13): no words under the icons ----------
   The words stay for screen readers (VoiceOver reads "Calendar", "Clients"…). Grey icons, the open one in ink on its
   pill. The bar and the + are both 56 px tall, side by side. */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .nav { padding: 4px; }
  .nav button { min-height: 48px; color: #8a8a8e; }
  .nav button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav button svg { width: 26px; height: 26px; }
  .nav button[aria-current="page"], .nav .nav-more.more-here-phone { color: #000; background: rgba(0, 0, 0, .075); }
  .fab { width: 56px; height: 56px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .nav, body:has(.fab) .nav { right: calc(max(12px, env(safe-area-inset-right)) + 56px + 8px); }
  .nav-badge { top: 4px; left: calc(50% + 6px); }
  .nav .nav-more.has-dot::after { top: 8px; left: calc(50% + 9px); }
}
@media (max-width: 350px) {
  .nav, body:has(.fab) .nav { left: 8px; right: calc(8px + 56px + 6px); }
  .fab { right: 8px; }
}
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  /* Header: the four views get the row. The key is in ⋯, which is a quiet round button. */
  .cal-key-btn { display: none; }
  .cal-toolbar .cal-more { width: 36px; height: 36px; min-height: 36px; border-radius: 50%; background: var(--fill); }
  .cal-weekwho .who-label { display: none; }
}
/* ---------- a phone held sideways (2026-10-13): still the phone layout, with the width used ----------
   An iPhone on its side is short and wide (844 x 390). It keeps the phone layout (LB.PHONE in core.js), and the
   height goes to the bookings: a 40px top bar, the calendar's header in one row (the views drop to a second row
   only when the words don't fit), a shorter tab bar in the middle with the + beside it. The notch and the home bar
   are on the sides now: nothing sits under them (env(safe-area-inset-left/right)). Same test as LB.SIDEWAYS. */
@media (max-height: 500px) and (pointer: coarse) and (orientation: landscape) {
  :root {
    --top-h: 40px; --nav-h: 44px;
    --dock-space: calc(44px + 20px + env(safe-area-inset-bottom));
    --dock-clear: calc(max(12px, env(safe-area-inset-bottom)) + 62px + 16px); /* the + (62px) is the tallest thing down there */
  }
  .top { padding-left: max(var(--s6), env(safe-area-inset-left)); padding-right: max(var(--s6), env(safe-area-inset-right)); }
  .view { padding-top: var(--s2); }
  /* The tab bar: 360px of icons, centred; the + (as tall as the bar) 8px to its right. */
  .nav, body:has(.fab) .nav { left: 50%; right: auto; width: 360px; bottom: max(8px, env(safe-area-inset-bottom)); padding: 3px; transform: translateX(calc(-50% - 26px)); }
  .nav button { min-height: 38px; }
  .nav button svg { width: 22px; height: 22px; }
  .nav-badge { top: 1px; }
  .nav .nav-more.has-dot::after { top: 4px; }
  .fab { right: auto; left: calc(50% + 162px); width: 44px; height: 44px; bottom: max(8px, env(safe-area-inset-bottom)); }
  body:has(.nav.solo) .fab { left: auto; right: max(12px, env(safe-area-inset-right)); }
  .save-bar { left: 50%; right: auto; width: min(560px, calc(100vw - 24px)); transform: translateX(-50%); bottom: calc(max(8px, env(safe-area-inset-bottom)) + 44px + 8px); }
  body:has(.save-bar.dirty) .view { padding-bottom: calc(44px * 2 + 40px + env(safe-area-inset-bottom)); }
  .ask-fab { right: max(12px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  .ask-fab img { width: 32px; height: 32px; }
  .ask-panel { right: max(24px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); max-height: calc(100dvh - var(--top-h) - 24px); }
  /* Sheets: up from the bottom like upright, nearly the full height, clear of the notch's side. */
  .sheet { max-width: min(34rem, calc(100vw - 2 * max(12px, env(safe-area-inset-left), env(safe-area-inset-right)))); }
  /* The calendar's header: title · whose (chip) · how many and the value · ‹ Today › · the views · ⋯ in one row. */
  .view.cal-view { padding-top: var(--s1); }
  .cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 2px; margin: 0 0 var(--s2); }
  .cal-bar-date, .cal-subrow, .cal-bar-top { display: contents; }
  .cal-title-wrap { order: 1; flex: 0 1 auto; min-width: 0; }
  .cal-title-wrap .cal-title { max-width: calc(100% + 8px); } /* its -4px margins: the date's own width, not 8px less */
  .cal-title-main { font-size: var(--t-title3); }
  .cal-toolbar.compact .cal-title-main { font-size: var(--t-title3); } /* already small: no jump while scrolling */
  .cal-whobtn { order: 2; max-width: 11rem; }
  .cal-subrow-text { order: 3; flex: 1 1 0; min-width: 5.5rem; }
  .cal-nav { order: 4; margin-right: 0; }
  .cal-modes { order: 5; display: inline-grid; width: auto; flex: none; }
  .cal-modes button { min-width: 64px; padding: 0 10px; }
  .cal-more-mini { order: 6; margin-right: -6px; }
  /* Two rows (the words don't fit in one): ⋯ stays at the end of the first row, the views get the second, full width. */
  .cal-toolbar.two-rows .cal-more-mini { order: 5; margin-left: auto; }
  .cal-toolbar.two-rows .cal-modes { order: 6; flex: 1 1 100%; }
  /* No day strip (‹ › and the title change the day); the week's heads and the month's rows are shorter. */
  .cal-main > .cal-strip, .cal-main > .cal-chips { display: none; }
  .cal-head.person { gap: 6px; padding: 6px; }
  .cal-head.person .av { width: 26px; height: 26px; }
  .cal-head.day-link { flex-direction: row; justify-content: center; align-items: center; gap: 6px; padding: 3px 0; font-size: var(--t-footnote); }
}

/* Barcode scanning (scan.js): a camera button beside a search or code box, and the full-screen camera. */
.scan-row { display: flex; gap: 8px; align-items: center; }
.scan-row > input { flex: 1; min-width: 0; }
.scan-row > .scan-btn { flex: none; }
.scan { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: #000; color: #fff; }
.scan-view { position: relative; width: min(100%, 520px); aspect-ratio: 3 / 4; max-height: 70vh; overflow: hidden; border-radius: 16px; background: #111; }
.scan-view video, .scan-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-view canvas.drawingBuffer { display: none; }
.scan-aim { position: absolute; left: 10%; right: 10%; top: 38%; height: 24%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); pointer-events: none; }
.scan-say { margin: 0; text-align: center; max-width: 32em; }
.scan-say.err { color: #ffb4a8; }
.scan .scan-close { min-width: 160px; background: #fff; color: #000; border-color: #fff; }
/* Health forms and treatment notes (health.js). The Health note is ink with a drawn cross: never red (red means Conflict). */
.badge.health-note { display: inline-flex; align-items: center; gap: 4px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.badge.health-note svg, .bk-health svg, .inline-icon svg { width: var(--icon-s); height: var(--icon-s); vertical-align: -2px; }
.health-alerts { display: grid; gap: 6px; justify-items: start; }
.health-area-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 2px 12px; }
.health .pre, .item .pre { white-space: pre-wrap; }

/* Product categories: a heading per group in the Inventory list, and chips at the counter. */
.inv-cat { margin: 16px 0 6px; font-size: var(--t-subhead); font-weight: 600; color: var(--fade); text-transform: uppercase; letter-spacing: .04em; }
.inv-cat:first-child { margin-top: 0; }
.co-cats { padding-bottom: 4px; }

/* The Inventory table (computers, 900px and wider; phones keep the cards). */
.inv-tablewrap { overflow-x: auto; }
.inv-table { width: 100%; border-collapse: collapse; font-size: var(--t-subhead); }
.inv-table th, .inv-table td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--sep); vertical-align: middle; white-space: nowrap; }
.inv-table td:nth-child(3) { white-space: normal; min-width: 10rem; }
.inv-table .inv-badge { min-width: 0; }
.inv-table th { font-weight: 600; color: var(--fade); font-size: var(--t-caption1); text-transform: uppercase; letter-spacing: .04em; }
.inv-table tr:last-child td { border-bottom: 0; }
.inv-table td.num, .inv-table th.inv-th-price, .inv-table th.inv-th-cost, .inv-table th.inv-th-id { text-align: right; font-variant-numeric: tabular-nums; }
.inv-table td.num { text-align: right; }
.inv-table .inv-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.inv-table .inv-sort:hover { color: var(--ink); }
.inv-table .inv-name { font-size: var(--t-subhead); }
.inv-table .inv-code { font-variant-numeric: tabular-nums; color: var(--fade); }
.inv-table .inv-stockcell { white-space: nowrap; }
.inv-table tr.inv-off td { color: var(--fade); }
.inv-pager { padding: 12px 16px; align-items: center; }
.inv-stockbtn { cursor: pointer; border: 0; min-width: 3.5rem; text-align: center; }
.inv-stockbtn:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* Costing (Inventory Pro, plan 35): the stock value line under the list, the "How costs are counted" table in
   Advanced (one row for everything, one per category), and the cost under a stock change. */
.inv-value { font-variant-numeric: tabular-nums; }
.inv-costing h3, .inv-costing p { margin: 0; }
.inv-costing-table { border-collapse: collapse; width: 100%; max-width: 32rem; }
.inv-costing-table td { padding: 6px 0; border-bottom: 1px solid var(--sep); vertical-align: middle; }
.inv-costing-table td:first-child { padding-right: 12px; }
.inv-costing-table td:last-child { text-align: right; }
.inv-costing-table select { width: auto; min-width: 12rem; min-height: 36px; }
.inv-amount .inv-cost { display: block; font-size: var(--t-caption1); }
/* The reorder sheet (plan 36): a table on computers, cards on phones; tappable numbers, the ticked-rows bar. */
.reorder-totals { margin: 0 0 12px; font-size: var(--t-subhead); }
.chip .chip-count { color: var(--fade); font-weight: 400; }
.chip[aria-pressed="true"] .chip-count { color: inherit; opacity: .75; }
.reorder-bulk { align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 16px; background: var(--fill); border-radius: var(--r); font-size: var(--t-subhead); }
.rs-table th, .rs-table td { padding: 8px 6px; }
.rs-table th.num { text-align: right; }
.rs-table td.rs-product { white-space: normal; min-width: 9rem; }
.rs-table td:nth-child(3) { white-space: normal; min-width: 0; }
.rs-table .rs-actions .btn.sm { padding-left: 8px; padding-right: 8px; }
.rs-table .rs-tick { width: 1.5rem; padding-right: 0; }
.rs-table .rs-tick input, .rs-card > input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.rs-tags { gap: 2px 8px; align-items: center; }
.rs-tags .inv-code { font-size: var(--t-caption1); }
.reorder-auto { margin-left: 0; }
.rs-num { font-variant-numeric: tabular-nums; }
button.rs-num { font-size: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.rs-table .rs-order b { font-size: var(--t-body); }
.rs-table .rs-actions { text-align: right; }
.rs-actrow { justify-content: flex-end; gap: 6px; align-items: center; }
.rs-table tr.reorder-ordered td, .rs-card.reorder-ordered { color: var(--fade); }
.rs-card { align-items: flex-start; }
.rs-card .stack.tight { gap: 4px; }
.rs-nums { gap: 4px 14px; font-size: var(--t-subhead); color: var(--fade); }
.rs-nums b, .rs-nums .rs-num { color: var(--ink); }
.rs-card .rs-actrow { justify-content: flex-start; margin-top: 4px; }
.rs-card .rs-actrow .grow { font-size: var(--t-subhead); }
.reorder-suppliers { margin-top: 20px; }
/* The card's inner lines are rows, not the one-line blocks an .item usually holds. */
.rs-card .grow .rs-tags, .rs-card .grow .rs-nums, .rs-card .grow .rs-actrow { display: flex; white-space: normal; overflow: visible; color: inherit; }
.rs-card .grow .rs-tags span, .rs-card .grow .rs-nums span, .rs-card .grow .rs-nums b, .rs-card .grow .rs-tags b, .rs-card .grow .rs-actrow b { display: inline; white-space: normal; overflow: visible; }
.rs-card .grow .rs-tags b { font-weight: 600; }
.rs-card .grow .rs-tags .menu-tag { display: inline-block; }
.rs-card .grow .rs-nums span { color: var(--fade); }
.rs-card .grow > .fade { white-space: normal; }
/* Purchase orders, batches and serial numbers (plan 39): the order form's lines, the receive sheet's flags and lot
   boxes, the serial list, the Expires column. */
.po-line .inv-cost-line { flex: 0 0 auto; }
.po-actions { gap: 8px; }
.po-total { margin: 0; }
.po-flags { flex: 1 1 100%; }
.po-flags .chips { padding-bottom: 0; }
.po-lot { justify-content: flex-start; flex-wrap: wrap; }
.po-lot input[type="text"], .po-lot input[type="date"] { flex: 1 1 10rem; min-height: 40px; }
.po-lot input.inv-serials-in { flex: 1 1 100%; }
.po-receive-row .inv-cost-line input[type="text"] { flex: 1 1 10rem; }
.inv-hint { margin: -6px 0 0; }
.inv-serials .code { font-size: var(--t-subhead); }
.inv-serial-pick[hidden] { display: none; }
.inv-quarantine input.inv-qty { width: 5.5rem; }
.inv-table td.inv-expiry-soon { color: var(--warn, #b26a00); font-weight: 600; }
.inv-table td.inv-expiry-expired { color: var(--bad, #c0392b); font-weight: 600; }
/* The inventory forecast (plan 47): three columns on wide tables; under 1280px they hide and the runs-out day sits under the name. Red only when a delivery ordered today would come too late. */
.inv-late { color: var(--bad, #c0392b); font-weight: 600; }
.inv-table .inv-fc { white-space: nowrap; }
.inv-table .inv-fc-under { display: none; }
@media (max-width: 1279px) { .inv-table .inv-fc { display: none; } .inv-table .inv-fc-under { display: block; } }
.inv-row .co-rowbtn > .inv-late { color: var(--bad, #c0392b); }
.co-serials { display: block; margin-top: 2px; text-align: left; }
.co-serials[hidden] { display: none; }

/* Catalogue extras (plan 38): pictures, variants under their parent, packs, bundles, labels. */
.inv-thumb { flex: none; width: 32px; height: 32px; border-radius: 6px; object-fit: cover; background: var(--fill); }
.inv-thumb-none { display: inline-block; }
.inv-thumb-big { width: 72px; height: 72px; border-radius: 10px; }
.inv-pic { display: flex; gap: 12px; align-items: center; }
.inv-table td.inv-namecell { white-space: normal; min-width: 10rem; }
.inv-table td.inv-namecell > .inv-thumb { vertical-align: middle; margin-right: 8px; }
.inv-table tr.inv-under td.inv-namecell { padding-left: 28px; }
.inv-table tr.inv-under td.inv-namecell > .inv-thumb-none { display: none; }
.inv-table .inv-tick, .inv-table .inv-th-tick { width: 1.5rem; padding-right: 0; }
.inv-table .inv-tick input, .inv-table .inv-th-tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.inv-table td.inv-place { white-space: normal; color: var(--fade); max-width: 12rem; }
.inv-part { gap: 8px; align-items: center; }
.inv-part select { flex: 1; min-width: 0; }
.inv-partqty { width: 5rem; flex: none; }
.inv-packseg button { padding: 0 10px; min-height: 32px; }
.inv-batch-row .inv-packseg { flex: none; }
@media (max-width: 699px) { .inv-packrow { grid-template-columns: 1fr; } .inv-tools.three { grid-template-columns: 1fr 1fr; } }
/* Stock counts (counts.js, plan 40): the counting rows reuse the batch sheet's; the review table and the decide buttons. */
.counts-note { flex-basis: 100%; }
.counts-note input { width: 100%; }
.counts-table td.counts-product { white-space: normal; min-width: 9rem; }
.counts-table th.num, .counts-table td.num { text-align: right; }
.counts-decide { display: inline-flex; }
.counts-decide button { padding: 0 10px; }
.counts-decide-cell { text-align: right; }
.counts-totals { margin: 0; }
.counts-pick { cursor: pointer; }
.counts-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.inv-counted { white-space: nowrap; }
.rinv-chips { margin-top: 8px; }
.counts-card .grow .counts-card-decide { display: flex; margin-top: 6px; white-space: normal; overflow: visible; }
.counts-card .grow .counts-card-decide .seg { display: inline-flex; }
.counts-card .grow .counts-card-decide .seg button { display: inline-block; white-space: nowrap; overflow: visible; }

/* ---------- modules (plan 42): a coloured tile per module and add-on ----------
   The module's line icon in white on a flat rounded square (no gradient). Never red (red means a conflict in Rndez)
   and never the warning orange. Each colour is dark enough for the white icon (4.5:1 or more on its tile).
   Light only: the owner ruled out dark mode (2026-10-05), so there is no dark set to keep in step. */
:root {
  --mod-booking: #1f3bd1;      /* the Rndez cobalt */
  --mod-clients: #0f6f7c;      /* teal */
  --mod-payments: #1a7f57;     /* green (the staff green, darkened) */
  --mod-inventory: #6e5235;    /* brown: boxes */
  --mod-team: #6f3fb8;         /* purple (the staff purple, darkened) */
  --mod-marketing: #a12a86;    /* magenta: far from red */
  --mod-memberships: #4b4fc4;  /* indigo */
  --mod-reports: #3f4b5c;      /* slate */
  --mod-inventory-pro: #523c26;
  --mod-clinic: #0b63a0;       /* clinic blue */
  --mod-chair-rent: #54308f;
  --mod-money: #136b45;
  --mod-marketing-plus: #7f1f6a;
  --mod-ai: #2b2fa6;
  --mod-everything: #1c1c1e;   /* Rndez ink */
}
.mod-tile { display: inline-grid; place-items: center; flex: none; border-radius: 22%; color: #fff; vertical-align: middle; }
.mod-tile svg { width: 62%; height: 62%; }
/* The side menu's group headings are drawn with the side bar (search "one side bar down the left"). */
.more-group { margin: 14px 4px 6px; display: flex; align-items: center; gap: 8px; font-size: var(--t-footnote); font-weight: 600; color: var(--fade); }
/* Setup → Modules: a card grid. */
.mod-summary { margin: 0; }
.mod-list { padding: 0; display: grid; }
.mod-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s5); padding: 14px var(--s6, 16px); min-height: 64px; }
.mod-row + .mod-row { border-top: 1px solid var(--hair-ink); }
.mod-row-text { display: grid; gap: 2px; min-width: 0; }
.mod-row-text b { font-size: var(--t-body); }
.mod-row-text .err:empty { display: none; }
.mod-row-state { font-size: var(--t-footnote); font-weight: 600; }
.mod-row-state.on { color: #1a7f37; }
.mod-row-state.off { color: var(--t-subhead); font-weight: 500; }
.mod-row-state.always { color: var(--t-subhead); }
.mod-row.is-off .mod-tile { filter: grayscale(1); opacity: .45; }
.mod-row.is-off .mod-row-text b { color: var(--t-subhead); }
.mod-row-lock { color: var(--t-subhead); display: inline-flex; width: 51px; justify-content: center; }
.mod-row-lock svg { width: 20px; height: 20px; }
.mod-switch { flex: none; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s5); }
.mod-card { display: grid; gap: var(--s4); align-content: start; }
.mod-card-head { display: flex; align-items: center; gap: var(--s5); }
.mod-card-head b { font-size: var(--t-headline); }
.mod-parts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.mod-parts li { padding: 2px 8px; border-radius: 9999px; background: var(--fill); font-size: var(--t-footnote); }
.mod-state { font-size: var(--t-footnote); font-weight: 600; }
.mod-state.on { color: var(--ok); }
.mod-state.off { color: var(--fade); }
.mod-everything { border: 1.5px solid var(--ink); }
.plan-lock .mod-tile { margin-right: 2px; }
/* Loyalty (loyalty.js, plan 44): the card preview in Setup and the change-by-hand form on the client page. */
.loy-preview { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--sep); max-width: 360px; }
.loy-dots { display: flex; flex-wrap: wrap; gap: 6px; color: var(--tint); }
.loy-dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .45; display: grid; place-items: center; font-size: var(--t-caption1); }
.loy-dot.on, .loy-dot.last { opacity: 1; }
.loy-dot.on { background: currentColor; }
.loy-adjust { flex-wrap: wrap; }
.loy-adjust input[type="number"] { width: 6em; }
.loy-adjust input[type="text"] { flex: 1; min-width: 10em; }

/* Inventory audit 2026-10-14 (WP-2). The red badges ("Out", "−7") pass 4.5:1 on their soft red (INV-38), and the
   table heads read at 12px; below 0 is a number in red, not "Out" (INV-18); a bill line's stock warning. */
.inv-badge.cancelled { color: #b0000e; }
.inv-badge.inv-below { font-variant-numeric: tabular-nums; font-weight: 600; }
.inv-table th, .inv-table th .inv-sort { font-size: var(--t-footnote); }
.co-warn { display: block; color: #9a5b00; font-weight: 600; }
.inv-more-menu .btn, .inv-more-menu .inv-import .btn { width: 100%; justify-content: flex-start; }
.co-restock .seg { flex: none; }
.inv-amount .inv-cost { font-size: var(--t-caption1); }

/* ---------- money at the counter, ERP audit 2026-10-14 P1 (checkout.js: quick pay, refunds, cash rounding) ---------- */
.qp-lines { margin: 0; }
.qp-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--sep); }
.qp-total b { font-family: var(--rounded); font-size: var(--t-title1); }
.qp-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.qp-way { min-height: 64px; font-size: var(--t-body); }
.qp-full { justify-self: start; margin-top: var(--s4); }
@media (max-width: 420px) { .qp-ways { grid-template-columns: 1fr; } .qp-way { min-height: 56px; } }
.co-round { margin: 0; text-align: center; color: var(--fade); font-weight: 600; }
.co-refunds .item { gap: var(--s5); }
.co-refund .num { white-space: nowrap; }
.co-refund-row span:first-child { color: var(--fade); }
.co-refund-head { justify-content: space-between; align-items: center; }
.co-refund-line { flex-wrap: wrap; }
.co-refund-line.off { opacity: .6; }
.co-refund-line .seg { flex-basis: 100%; }
.co-refund-form .row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
@media (max-width: 420px) { .co-refund-form .row-2 { grid-template-columns: 1fr; } }
/* ---------- ERP audit 2026-10-14, P4: the final menu, one look (docs/audits/erp-2026-10-14-ux.md) ---------- */
:root { --mod-purchasing: #8a5a1f; } /* amber-brown: the boxes' colour, warmer (Purchasing) */

/* Red means a conflict only (UX-09): counts are an ink pill, cancelled and no-show are grey, down and minus are
   plain ink with "−", destructive words are plain (a confirm sheet asks). Clashes, disputes, form errors and the
   Calendar's today keep their red. */
.nav-badge, .bell-badge, .ibx-count { background: var(--tint); }
.badge.noshow, .badge.cancelled { background: var(--fill); color: var(--fade); }
.chg.down, .rnum b.neg { color: var(--ink); }
.btn.bad { color: var(--ink); }
.menu-item.danger { color: var(--ink); }
.menu-item.danger:hover, .menu-item.danger:focus-visible { background: var(--fill-2); color: var(--ink); }
.feed-item.k-owner_cancelled .feed-icon { color: var(--fade); }
details.card.danger > summary h2 { color: var(--ink); }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) { .nav .nav-more.has-dot::after { background: var(--tint); } }

/* The phone's tab bar has its words again (UX-10): 10–11 pt under the icon, as in Apple's tab bars. */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .nav button { min-height: 56px; gap: 2px; }
  .nav button span { position: static; width: auto; height: auto; overflow: hidden; clip-path: none; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; font-size: var(--t-caption2); line-height: 1.1; font-weight: 600; }
  .nav button svg { width: 24px; height: 24px; }
}

/* The search box (ERP-25): a field in the side bar on computers, a magnifier in the top bar on phones. */
.top-search { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: var(--tap, 44px); min-width: var(--tap, 44px); justify-content: center; border-radius: 50%; color: var(--ink); background: none; margin-left: auto; }
.top-search svg { width: 22px; height: 22px; }
.top-search-words { display: none; }
.top .top-search + .bell { margin-left: 0; }
.search-box { position: sticky; top: 0; z-index: 1; padding-bottom: 8px; background: inherit; }
.search-results h3 { margin: 14px 4px 6px; font-size: var(--t-caption1); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fade); }
.search-results .item { min-height: 44px; }

/* More, on a phone (UX-11): one list, each row with its group's tile; Setup apart under it. */
.more-item .mod-tile { margin-right: 2px; }
.more-setup { margin-top: 14px; }

/* An area that is off, or a page that is the owner's (UX-05, UX-18): one calm card where the person is. */
.off-card { max-width: 34rem; }

/* A page reports.js draws with its own title and tabs, inside a tab of another area: only the page shows. */
.rep-inner > .head-row { display: none; }
/* Two pages in one tab (Members: memberships, then visit packs): a gap between them. */
.area-part + .area-part, .area-body > .stack + .area-part { margin-top: 28px; }
.area-body > .page-sub { margin: 0 0 12px; }
.area-body > .area-part:first-child { margin-top: 0; }

/* Plan and modules (UX-04): each module's single tools under a fold. */
.mod-tools { border-top: .5px solid var(--sep); padding-top: 8px; }
.mod-tools > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: var(--t-subhead); }
.plan-part { margin-bottom: 8px; }

/* Ask AI on a phone's Setup list: a row of the list, never a button over the rows' chevrons (UX-19). */
.setup .menu .menu-ask { display: none; }
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  body:has(.view-setup) .ask-fab { display: none; }
  body:has(.ask-fab:not([hidden])) .setup:not(.open) .menu .menu-ask { display: block; }
}

/* Tab rows on a phone: at most four tabs per area now; a fade at the right edge says the row scrolls (UX-20). */
@media (max-width: 699px) {
  .seg.area-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .seg.area-tabs:not(:has(button:nth-child(4))) { -webkit-mask-image: none; mask-image: none; }
  .seg.area-tabs { gap: 18px; }
  .seg.area-tabs button { min-height: 40px; padding: 0 2px; }
}

/* Touch: 44 px to tap, inline links too (UX-23). */
@media (pointer: coarse) {
  .link, button.link { min-height: 44px; display: inline-flex; align-items: center; }
  p .link, p button.link, .fade .link { min-height: 0; padding: 12px 0; margin: -12px 0; }
}

select option.time-off { color: var(--fade); }  /* a time that cannot be booked online (QA-09) */

/* ---------- Calendar shell and toolbar (audit 2026-10-14, rows 23-27, 34-35) ----------
   Computers and iPads: ONE row, every control in a fixed place in all four views:
     [small month] [Day|Week|Month|List] ‹ Today › the date ▾ ......... [Location ▾] [Staff ▾] [i] [⋯] [+ New booking]
   The date takes what is left (calendar.js picks the longest wording that fits); a narrow calendar puts it on a
   row of its own under the others. Phones keep their own three short rows (.is-phone). */
.cal-main { container-type: inline-size; container-name: calmain; }
.cal-toolbar.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; row-gap: 6px; min-height: 52px; margin: 0 0 var(--s3); }
.cal-bar > * { flex: none; }
.cal-bar > .cal-title-wrap { flex: 1 1 6rem; min-width: 0; padding: 0 4px; } /* the date takes what is left */
.cal-bar > .grow { display: none; }
/* The right-hand group: Location, Staff, the key, ⋯ and + (always last). */
.cal-right { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; margin-left: auto; }
.cal-right > * { flex: none; }
.cal-right > .cal-staff, .cal-right > .cal-loc { flex: 0 1 auto; min-width: 3rem; }
/* No room for one row (calendar.js stackBar): the date on a row of its own, under the controls. */
.cal-toolbar.cal-bar.stack > .cal-title-wrap { order: 10; flex: 1 1 100%; }
.cal-bar .cal-title { max-width: 100%; margin: 0; }
.cal-bar .cal-title-main { font-size: 1.375rem; }
.cal-bar .cal-title-main, .cal-bar .cal-title-sub { overflow: hidden; text-overflow: ellipsis; }
.cal-bar .cal-modes button { min-width: 60px; padding: 0 10px; }
.cal-bar .cal-loc .cal-loc-name { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-btn-mark { display: inline-flex; margin-left: 4px; color: var(--fade); }
.cal-btn-mark svg { width: 11px; height: 11px; }
.cal-loc { display: inline-flex; align-items: center; background: none; box-shadow: inset 0 0 0 1px var(--line-ink); }
@media (hover: hover) { .cal-loc:hover { background: var(--fill); } }
/* A tighter calendar (1440px with the small month open, 1280px): New booking keeps its place as a + alone, Staff gets shorter. */
@container calmain (max-width: 940px) {
  .cal-bar .cal-add { width: 32px; padding: 0; justify-content: center; }
  .cal-bar .cal-add .cal-add-words { display: none; }
  .cal-bar .cal-modes button { min-width: 52px; padding: 0 8px; }
}
@media (pointer: coarse) { .cal-bar .cal-add { min-width: 44px; } }
/* A tight toolbar, one step at a time (calendar.js fitBar, CAL-R3-02): the date and its line keep their room, the
   secondary controls get smaller. fit-1: the key goes into ⋯ and + keeps no words. fit-2: Staff says the name alone,
   Location shows its icon alone. fit-3: Staff shows the face alone. */
.cal-loc-icon { display: none; }
.cal-loc-icon svg { width: 17px; height: 17px; }
.cal-staff .cal-whobtn-short { display: none; min-width: 0; overflow: hidden; white-space: nowrap; }
.cal-bar.fit-1 .cal-key-btn, .cal-bar.fit-2 .cal-key-btn, .cal-bar.fit-3 .cal-key-btn { display: none; }
.cal-bar.fit-1 .cal-add, .cal-bar.fit-2 .cal-add, .cal-bar.fit-3 .cal-add { width: 32px; padding: 0; justify-content: center; }
.cal-bar.fit-1 .cal-add .cal-add-words, .cal-bar.fit-2 .cal-add .cal-add-words, .cal-bar.fit-3 .cal-add .cal-add-words { display: none; }
.cal-bar.fit-2 .cal-staff.has-short .cal-whobtn-name { display: none; }
.cal-bar.fit-2 .cal-staff.has-short .cal-whobtn-short { display: inline; }
.cal-bar.fit-2 .cal-loc .cal-loc-name, .cal-bar.fit-3 .cal-loc .cal-loc-name { display: none; }
.cal-bar.fit-2 .cal-loc .cal-loc-icon, .cal-bar.fit-3 .cal-loc .cal-loc-icon { display: inline-flex; }
.cal-bar.fit-3 .cal-staff .cal-whobtn-name, .cal-bar.fit-3 .cal-staff .cal-whobtn-short { display: none; }
.cal-bar.fit-3 .cal-staff { padding-right: 8px; }
@media (pointer: coarse) { .cal-bar.fit-1 .cal-add, .cal-bar.fit-2 .cal-add, .cal-bar.fit-3 .cal-add { width: 44px; } }
/* The count and the value are never cut (CAL-R3-03): fitBar drops words instead. */
.cal-bar .cal-title-sub { text-overflow: clip; }
/* Staff ▾ (computers and iPads): the one filter for whose bookings, in words. Outlined when only some people show. */
.cal-staff { position: relative; display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 14rem; height: 32px; padding: 0 10px 0 4px; border-radius: 9999px; background: var(--fill); color: var(--ink); font-size: var(--t-footnote); font-weight: 600; }
.cal-staff .av.sm { width: 24px; height: 24px; font-size: 10px; }
.cal-staff .av.all { background: none; color: var(--ink); }
.cal-staff .av.all svg { width: 17px; height: 17px; }
.cal-staff .cal-whobtn-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-staff .cal-whobtn-mark { display: inline-flex; flex: none; }
.cal-staff .cal-whobtn-mark svg { width: 11px; height: 11px; stroke-width: 2.25; }
.cal-staff.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) { .cal-staff:hover { background: var(--fill-2); } }
.cal-whobtn[hidden] { display: none; }
/* The Staff panel: a box per person, their face and their count for the dates on screen. */
.staff-pick { display: grid; gap: 2px; }
.staff-row { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 2px 6px; border-radius: var(--r-inner); cursor: pointer; }
@media (hover: hover) { .staff-row:hover { background: var(--fill); } }
.staff-row input { flex: none; margin: 0; }
.staff-row .av.sm { width: 24px; height: 24px; font-size: 10px; }
.staff-row .av.all { background: none; color: var(--ink); }
.staff-row .staff-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.staff-row.all { border-bottom: 1px solid var(--sep); border-radius: 0; padding-bottom: 6px; margin-bottom: 4px; }
/* Touch screens (iPads, phones): every toolbar control is at least 44×44 (row 27). */
@media (pointer: coarse) {
  .cal-toolbar button, .cal-toolbar .cal-modes button { min-height: 44px; }
  .cal-toolbar .icon-btn, .cal-toolbar .cal-more, .cal-toolbar .cal-more-mini, .cal-nav .icon-btn { width: 44px; height: 44px; min-width: 44px; }
  .cal-toolbar .cal-today { min-width: 44px; }
  .cal-staff, .cal-loc { height: 44px; }
  .cal-toolbar .cal-title { min-height: 44px; align-content: center; }
  .staff-row { min-height: 44px; }
}
/* Phones: the same three rows, with 44pt controls (the old 30px chip had only an invisible tap area). */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .cal-toolbar.is-phone .cal-whobtn { height: 34px; min-height: 34px; min-width: 34px; padding: 0 12px 0 6px; }
  .cal-toolbar.is-phone .cal-more-mini::after { content: none; }
  /* The face button matches the 34 px view switch beside it (2026-10-17); its tap area still reaches 44 px. */
  .cal-toolbar.is-phone .cal-whobtn::after { content: ""; position: absolute; inset: -5px; }
  .cal-toolbar.is-phone .cal-more-mini { width: 44px; height: 44px; margin-right: -8px; }
  .cal-toolbar.is-phone .cal-subrow { margin-top: -4px; }
  .cal-toolbar.is-phone .cal-modes button { min-height: 44px; }
  .cal-toolbar.is-phone .cal-nav .icon-btn { width: 44px; height: 44px; }
  .cal-toolbar.is-phone .cal-nav .cal-today { min-height: 44px; }
  .cal-toolbar.is-phone .cal-title { min-height: 44px; align-content: center; }
}
/* The shop's time zone when this screen's clock differs, without the side panel (Month, iPads, phones). */
.cal-zone-line { margin: -4px 0 6px; }
/* A closed shop day: one centred message and "Book anyway" (row 34). */
.cal > .cal-closed { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 240px; text-align: center; }
.cal-closed-title { margin: 0; font-family: var(--display); font-size: var(--t-headline); font-weight: 600; color: var(--ink); }
/* The half-hour labels: 11px and readable (4.5:1), quieter than the hours by weight only (row 35). */
.cal-gutter span.half { font-size: max(12px, .75rem); font-weight: 500; color: color-mix(in srgb, var(--ink) 66%, transparent); } /* CAL-R3-05: 12 px, at least 4.5:1 */
/* Settings sits in the side bar's foot, apart from the work areas (row 36; main.js). */

/* ---------- settings pages the Odoo way (settings-page.js, 2026-10-15): headings, same-shape rows, one Save ---------- */
.settings-page { display: grid; gap: 16px; }
.settings-section > h2 { margin-bottom: 4px; }
.settings-rows { display: grid; gap: 2px 32px; }
@media (min-width: 900px) { .settings-rows { grid-template-columns: 1fr 1fr; } .settings-own { grid-column: 1 / -1; } }
.settings-item { min-width: 0; }
.settings-row { align-items: start; }
.settings-row > .grow { padding: 8px 0; }
.settings-row-wide { flex-wrap: wrap; }                       /* words on one line, the control under them */
.settings-row-wide > .grow { flex: 1 0 100%; padding-bottom: 2px; }
.settings-row-wide > select, .settings-row-wide > input { margin: 0 0 8px 0; max-width: 220px; }
.settings-row-wide > input.settings-text { max-width: 420px; }
.settings-row-wide > .help-dot { margin-top: 2px; }
.settings-locked > .grow { color: var(--fade); }
.settings-help { margin: 0 0 8px 0; }
.help-dot { flex: none; width: 24px; height: 24px; margin-top: 10px; border: 1px solid var(--field-edge); border-radius: 999px; background: transparent; color: var(--fade); font: 600 13px/1 inherit; cursor: pointer; }
.help-dot[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.settings-own { padding: 8px 0; }

/* ---------- the phone's dock (2026-10-16, Setup → Appearance and layout) ----------
   Icons only: at most four places of the person's own choosing (LB.pref('dock'), main.js dockRefresh), in their
   order (--dock-order), then More, always last, which lists every place this login may open. Each slot is at
   least 44 x 44, has an aria-label and a title; a long press shows its name (.dock-tip). The bar and the round +
   share one row; --dock-space is the room every scrolling page keeps under its last row so nothing is covered. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  :root { --dock-h: 62px; --dock-space: calc(max(12px, env(safe-area-inset-bottom)) + var(--dock-h) + 16px); }
  .nav { justify-content: space-around; }
  .nav button { order: var(--dock-order, 20); flex: 1 1 0; min-width: 44px; min-height: 54px; max-width: 76px; gap: 0; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .nav button > span { display: none; } /* no words in the dock: the icon, its aria-label and a long press */
  .nav button svg { width: 26px; height: 26px; }
  .nav .nav-more { order: 9; min-width: 44px; }
  .nav .nav-group, .nav .nav-group-gap { display: none; } /* group headings are for the computer's side menu */
  .nav button[data-view="setup"]:not(.phone-in-more) { display: flex; } /* Setup in the dock when the person put it there */
  .nav button[aria-current="page"], .nav .nav-more.more-here-phone { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); box-shadow: none; }
  .nav button[aria-current="page"] svg, .nav .nav-more.more-here-phone svg { stroke-width: 2.1; }
  .nav-badge { left: calc(50% + 6px); }
  .fab { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 350px) {
  .nav button { min-width: 44px; }
  .fab { right: max(8px, env(safe-area-inset-right)); }
}
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  :root { --dock-space: 24px; } /* no dock on computers: a little air under the last row */
}
.dock-tip {
  position: fixed; z-index: 95; padding: 6px 10px; border-radius: 9999px; pointer-events: none;
  background: var(--ink); color: var(--bg); font-size: var(--t-footnote); font-weight: 600; white-space: nowrap;
  box-shadow: var(--sh-float);
}

/* ---------- Setup → Appearance and layout (appearance.js) ---------- */
.ap-card { display: grid; gap: 12px; }
.ap-card h3 { margin-top: 4px; font-size: var(--t-headline); }
.ap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: var(--tap); }
.ap-row > .grow { display: grid; gap: 2px; min-width: 10rem; flex: 1 1 12rem; }
.ap-row select { min-height: var(--tap); }
.ap-seg { flex-wrap: wrap; }
.ap-seg button { min-height: 36px; padding: 0 12px; }
.ap-group { display: grid; gap: 10px; }
.ap-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
/* The dock's live preview: the same capsule and icons as the real one. */
.ap-dock-preview { display: flex; justify-content: space-around; gap: 4px; padding: 4px; border-radius: 9999px; background: var(--fill); }
.ap-slot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9999px; color: #3a3a3c; }
.ap-slot svg { width: 24px; height: 24px; }
.ap-slot.on { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.ap-dock-list .ap-dock-row { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 8px; cursor: default; }
.ap-dock-row .grow { display: grid; gap: 2px; min-width: 0; }
.ap-dock-row .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; color: var(--ink); }
.ap-icon svg { width: 22px; height: 22px; }
.ap-grip { display: grid; place-items: center; width: 28px; height: 44px; flex: none; color: var(--fade); cursor: grab; touch-action: none; }
.ap-grip svg { width: 20px; height: 20px; }
.ap-grip.off { cursor: default; }
.ap-move { display: inline-flex; flex: none; }
.ap-move .icon-btn { width: 44px; height: 44px; }
.ap-move .icon-btn:disabled { opacity: .3; }
.ap-pin.check { display: grid; place-items: center; min-width: 52px; min-height: 44px; flex: none; padding: 0; gap: 0; }
@media (max-width: 419px) { .ap-icon { display: none; } .ap-dock-list .ap-dock-row { gap: 4px; padding: 4px; } .ap-grip { width: 24px; } }
.ap-dock-row.dragging { background: var(--fill-2); box-shadow: var(--sh-float); position: relative; z-index: 2; }
/* The workspace preview: a small day, drawn with the person's choices. */
.ap-preview-label { margin-bottom: -6px; }
.ap-preview { display: grid; gap: 8px; padding: 12px; border-radius: var(--r-inner); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-ink); font-size: var(--t-subhead); }
.ap-preview.compact { gap: 4px; padding: 8px; font-size: var(--t-footnote); }
.ap-pv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--fade); }
.ap-pv-search { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9999px; background: var(--fill); }
.ap-pv-search.wide { width: 50%; justify-items: start; padding-left: 6px; }
.ap-pv-search svg { width: 16px; height: 16px; }
.ap-pv-note { margin: 0; font-size: var(--t-footnote); color: var(--fade); font-style: italic; }
.ap-pv-booking { display: grid; gap: 2px; padding: 8px 10px; border-left: 3px solid var(--blue); border-radius: 6px; background: color-mix(in srgb, var(--blue) 10%, var(--bg)); }
.ap-preview.compact .ap-pv-booking { padding: 4px 8px; }
.ap-pv-booking em { justify-self: start; font-style: normal; }
.ap-pv-cleanup { padding: 4px 10px; border-radius: 6px; font-size: var(--t-footnote); color: var(--fade); background: repeating-linear-gradient(135deg, var(--fill) 0 6px, transparent 6px 12px); }

/* ---------- the phone's dock, restyled (Paul, 2026-10-16; docs/audits/shell-2026-10-16) ----------
   An Apple-style floating capsule: a translucent material (blur and a light tint; solid where blur is not supported),
   a hairline edge and a very soft shadow. Icons only, one size (24 px line icons, one stroke), evenly spaced, each a
   44 px hit area. "You are here" is calm: the icon in the brand blue with a small dot under it. The + is a separate
   circle of the same height, in the brand blue, beside the bar on the same centre line; it never overlaps it.
   --dock-bottom / --dock-h / --dock-space are the one source for everything that keeps clear of it. */
@media (max-width: 767px) {
  :root {
    --dock-h: 56px;
    --dock-gap: 10px;
    --dock-bottom: max(10px, calc(env(safe-area-inset-bottom) - 4px)); /* low, still clear of the home bar */
    --dock-space: calc(var(--dock-bottom) + var(--dock-h) + 16px);
    --dock-clear: calc(var(--dock-bottom) + var(--dock-h) + 20px);
  }
  .nav, body:has(.fab) .nav {
    left: max(12px, env(safe-area-inset-left)); right: calc(max(12px, env(safe-area-inset-right)) + var(--dock-h) + var(--dock-gap));
    bottom: var(--dock-bottom); height: var(--dock-h); width: auto; transform: none;
    display: flex; align-items: center; justify-content: space-evenly; gap: 0; padding: 0 6px;
    border-radius: 9999px; border: .5px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .05);
  }
  @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .nav, body:has(.fab) .nav { background: var(--solid-float); } }
  body:not(:has(.fab)) .nav { right: max(12px, env(safe-area-inset-right)); }
  .nav button {
    position: relative; flex: 1 1 0; min-width: 44px; max-width: 72px; height: 44px; min-height: 44px; padding: 0;
    display: grid; place-items: center; border-radius: 9999px; background: none; box-shadow: none; color: #6e6e73;
  }
  .nav button svg { width: 24px; height: 24px; stroke-width: 1.75; }
  .nav button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* no words: VoiceOver still reads them */
  .nav button[aria-current="page"] { color: var(--blue); background: none; box-shadow: none; font-weight: inherit; }
  .nav button[aria-current="page"] svg { stroke-width: 2; }
  .nav button[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
  .nav-badge, .nav .nav-badge { top: 3px; left: calc(50% + 5px); box-shadow: 0 0 0 2px rgba(255, 255, 255, .95); }
  .fab {
    right: max(12px, env(safe-area-inset-right)); left: auto; bottom: var(--dock-bottom); width: var(--dock-h); height: var(--dock-h);
    background: var(--blue); color: #fff; border: 0;
    box-shadow: 0 8px 24px rgba(31, 59, 209, .28), 0 1px 3px rgba(0, 0, 0, .08);
  }
  .fab svg { width: 24px; height: 24px; }
  .save-bar { bottom: calc(var(--dock-bottom) + var(--dock-h) + 10px); }
  /* Press feedback: a small give, never a jump. */
  .nav button, .fab { transition: transform .12s ease, color .15s; }
  .nav button:active, .fab:active { transform: scale(.96); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .nav button, .fab { transition: none; }
  .nav button:active, .fab:active { transform: none; }
}
@media (max-width: 350px) {
  .nav, body:has(.fab) .nav { left: 8px; right: calc(8px + var(--dock-h) + 8px); padding: 0 2px; }
  body:not(:has(.fab)) .nav { right: 8px; }
  .fab { right: 8px; }
}

/* ---------- Reports overview (redesign, Paul 2026-10-16; reports.js overviewPage) ----------
   The range switch, four headline cards (swiped on a phone), one chart, then cards two by two on a computer.
   Calm: card surfaces on the sage page, the cobalt for marks only, words in ink and grey; green only for good news,
   never red (nothing on this page is a problem to fix). */
.rtop { display: grid; gap: 8px; justify-items: start; margin: -4px 0 16px; }
.seg.rrange { display: flex; width: 100%; max-width: 28rem; }
.seg.rrange button { padding: 0 10px; min-height: 32px; }
.rcustom { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rcustom[hidden], .rcustom .rdates[hidden] { display: none; }
.rcustom select { width: auto; min-width: 11rem; }
.rperiod { margin: 0; }
.rbody { display: grid; gap: 16px; transition: opacity .2s; }
.rbody.rwait { opacity: .5; pointer-events: none; }

/* The headline cards. */
.kgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
/* Plan 53: a shop that books in another app has two headline cards (Money in, New clients): half and half. */
.kgrid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rcounter { margin: 0 0 12px; }
.kgrid:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--r); }
@media (max-width: 1099px) { .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px 0; background: var(--card); border-radius: var(--r); overflow: hidden; }
.kcard .klabel { margin: 0; font-size: var(--t-footnote); font-weight: 600; color: var(--fade); }
.kcard .kvalue { margin: 0; font-family: var(--rounded); font-size: var(--t-title2); line-height: 1.1; font-weight: 600; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.kcard .knote { margin: 0; font-size: var(--t-caption1); color: var(--fade); }
.kchg { display: flex; gap: 4px; align-items: baseline; margin: 2px 0 0; font-size: var(--t-caption1); font-weight: 600; color: var(--fade); }
.kchg.good { color: var(--ok); }
.karrow { font-weight: 600; }
.kspark { display: block; height: 34px; margin: auto -16px 0; padding-top: 6px; }
.kspark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.kspark .l { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kspark .a { fill: color-mix(in srgb, var(--blue) 10%, transparent); stroke: none; }
.kcard:not(:has(.kspark)) { padding-bottom: 14px; }

/* The main chart. */
.rcard.rmain { gap: 8px; }
.rchart { display: grid; gap: 4px; }
.rplot { position: relative; min-height: 180px; touch-action: pan-y; border-radius: var(--r-inner); }
.rplot:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.rplot svg { display: block; }
.rplot .rcol { fill: var(--blue); }
.rplot .rcol.on { fill: var(--ink); }
.rplot .rgrid-line { stroke: var(--hair); stroke-width: 1; }
.rplot .rbase { stroke: var(--sep); stroke-width: 1; }
.rplot .raxis-t { fill: var(--fade); font-size: var(--t-caption2); font-family: var(--sans); font-variant-numeric: tabular-nums; }
.rtip { position: absolute; z-index: 2; transform: translate(-50%, -100%); display: grid; gap: 1px; padding: 6px 10px; border-radius: var(--r-inner); background: var(--card); box-shadow: var(--sh-float); pointer-events: none; white-space: nowrap; text-align: center; }
.rtip[hidden] { display: none; }
.rtip b { font-size: var(--t-subhead); font-weight: 600; color: var(--ink); }
.rtip span { font-size: var(--t-caption1); color: var(--fade); }
.rchart-box > .fade.small { margin: 2px 0 0; }

/* The cards under the chart: two by two on a computer, the cards of a row the same height. */
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.rgrid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 899px) { .rgrid { grid-template-columns: minmax(0, 1fr); } }
.rgrid > .rcard { align-content: start; min-width: 0; }
.rcard-head .rsee, .rcard-head a { font-size: var(--t-footnote); }
.rsee { min-height: 32px; }
.rcard .facts.rfacts { padding: 0; background: none; }
.rcard .facts.rfacts > div:not(:last-child)::after { right: 0; }
.rfacts > div > span:first-child { display: grid; gap: 1px; min-width: 0; flex: 1 1 auto; }
.rfacts > div > span:first-child small { font-size: var(--t-caption1); color: var(--fade); }
.rfacts > div > .num { display: grid; justify-items: end; gap: 1px; flex: none; max-width: 55%; color: var(--ink); font-variant-numeric: tabular-nums; }
.rfacts > div > .num b { font-weight: 600; }
.rfacts .kchg { margin: 0; text-align: right; justify-content: flex-end; font-weight: 500; }
.rrank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rrank li { display: grid; gap: 2px; min-width: 0; }
.rrow { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; min-width: 0; }
.rname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-subhead); color: var(--ink); }
.rval { flex: none; font-size: var(--t-subhead); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.rsubline { font-size: var(--t-caption1); color: var(--fade); }
.rrank .rmeter { margin-top: 4px; height: 4px; }
.rempty { margin: 0; padding: 18px 0; text-align: center; color: var(--fade); font-size: var(--t-subhead); }
.rcard .rsplit { height: 8px; }
.rcard > .list { background: none; margin: 0 -16px; }
.rcard > .fade.small { margin: 0; }
.rloyalty:has(> .loy-report:empty) { display: none; }
.rloyalty .loy-report .facts { padding: 0; background: none; }
.rloyalty .loy-report h2.rsection { margin: 0; font-size: var(--t-subhead); font-weight: 600; color: var(--fade); }
.rhello { justify-items: start; padding: 24px 20px; }
.rhello-title { margin: 0; font-size: var(--t-title3); font-weight: 600; }
.rhello .fade { margin: 0; }

/* A full list in a sheet (See all). */
.rtable-wrap { overflow-x: auto; margin: 0 -4px; }
.rtable { width: 100%; border-collapse: collapse; font-size: var(--t-subhead); }
.rtable th, .rtable td { padding: 10px 4px; text-align: left; border-bottom: .5px solid var(--sep); }
.rtable thead th { font-size: var(--t-footnote); font-weight: 600; color: var(--fade); }
.rtable tbody th { font-weight: 400; }
.rtable .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* A phone: one column; the headline cards swipe sideways in their own strip (the page itself never scrolls sideways). */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .seg.rrange { max-width: none; }
  .kgrid { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--s6)); padding: 2px var(--s6) 4px; scroll-padding: 0 var(--s6); }
  .kgrid::-webkit-scrollbar { display: none; }
  .kcard { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
  .kcard .kvalue { font-size: var(--t-title2); }
  .rcard-head { flex-wrap: wrap; }
  .rmain .rcard-head .seg { width: 100%; display: flex; }
  .view-reports .rbody { padding-bottom: 8px; }
}
.rbody .rcard-head h2.rcard-title { color: var(--ink); font-size: var(--t-headline); font-weight: 600; }
/* Small words on the Reports cards stay 12 px or more (the UI check's floor). */
.kcard .knote, .kchg, .rfacts > div > span:first-child small, .rsubline, .rlegend small { font-size: var(--t-footnote); }
.rfacts .kchg { display: block; }
.rfacts .kchg .karrow { margin-right: 3px; }
/* Long French words on a small phone: the range and chart switches wrap inside their buttons, never past the screen. */
@media (max-width: 699px), (max-height: 500px) and (pointer: coarse) {
  .seg.rrange button, .rmain .rcard-head .seg button { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.15; padding: 4px 6px; }
}
.rmain .rcard-head { min-width: 0; }
.rmain .rcard-head .seg { max-width: 100%; }
/* Request forms (plan 51): the summary line in Requests, the answers, and the form editor's questions. */
.rq-item .grow .rq-sum { color: var(--ink); white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.rq-summary { font-weight: 600; font-size: var(--t-body); margin: 0; overflow-wrap: anywhere; }
.rq-answers > div > :first-child { flex: 0 1 45%; color: var(--fade); }
.rq-answers > div > :last-child { color: var(--ink); }
.rq-list { gap: 8px; }
.rq-q { padding: 10px 14px; }
.rq-q .row { align-items: center; gap: 10px; }
.rq-q .row .grow { min-width: 0; }
.rq-q .row-actions { display: flex; gap: 6px; flex: none; }
.rq-q.open { gap: 12px; }
.rq-opt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.rq-opt:not(:has(> :nth-child(3))) { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 480px) {
  .rq-q .row { flex-wrap: wrap; }
  .rq-q .row-actions { width: 100%; justify-content: flex-end; }
}

/* One compact segmented switch for the calendar's views and Reports' dates (Paul, 2026-10-17: the two must match
   and can be smaller). 34 px to the eye; the tap area still reaches 44 px. Last in the file so it wins. */
.seg.cal-modes, .seg.rrange { padding: 2px; border-radius: 9px; align-self: center; }
.seg.cal-modes button, .seg.rrange button { position: relative; min-height: 30px; height: 30px; padding-top: 0; padding-bottom: 0; border-radius: 7px; font-size: var(--t-footnote); font-weight: 500; line-height: 30px; }
.seg.cal-modes button[aria-pressed="true"], .seg.rrange button[aria-pressed="true"] { font-weight: 600; }
.seg.cal-modes button::after, .seg.rrange button::after { content: ""; position: absolute; inset: -7px 0; }
/* Settings → Services, a table's "Table time by party size" (plan 57): one row each, "Up to [4] people · [1 h 45] · remove". */
.turn-rows { margin-top: 6px; }
.turn-row { display: grid; grid-template-columns: auto minmax(6.5em, 1fr) 44px; align-items: center; gap: 6px; }
.turn-row .turn-who { display: flex; align-items: center; gap: 6px; font-weight: 400; white-space: nowrap; }
.turn-row .turn-who input { width: 3.4em; }
.res-part .field > .field-name, .res-part .field > .hint { display: block; }
/* "Table time by party size" is a group (div.field), not a label: its title gets the same size as every other label (plan 58 fix). */
.res-part div.field > .field-name { font-size: var(--t-footnote); font-weight: 500; color: var(--fade); }
.res-part div.field { display: grid; gap: 6px; }
.res-part div.field > .hint { font-size: var(--t-footnote); font-weight: 400; color: var(--fade); }
.res-part > h3 { margin: 4px 0 0; }

/* ---------- the top bar of computers and iPads (desktop UX audit 2026-10-18, docs/audits/desktop-ux-2026-10-18.md) ----------
   One row across the page, right of the side bar: the search field on the left (it opens the search; its keys are
   written in it), then the bell, Help and the account at the right, in the same places on every page and in both menu
   widths. Phones keep their own bar (.top): main.js moves the same buttons there. The page under it starts below it;
   the calendar is the window's height less the bar. Clear at rest, the bar material once the page scrolls under it. */
.app-bar { display: none; }
:root { --bar-h: 0px; }
/* The search's keys are written only in the top bar's field (phones have the magnifier alone). */
.top-search-key { display: none; }
/* The two-step login line on Home (main.js): air between it and the cards. */
.view-home > .note { margin-bottom: var(--s5); }
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  :root { --bar-h: 60px; }
  .app-bar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s5); height: var(--bar-h);
    margin-left: calc(var(--side-w) + env(safe-area-inset-left)); padding: 8px max(36px, env(safe-area-inset-right)) 0 36px;
    background: var(--bg);
  }
  .app-bar.is-scrolled { background: var(--mat-bar); -webkit-backdrop-filter: var(--mat-bar-fx); backdrop-filter: var(--mat-bar-fx); box-shadow: var(--mat-bar-line); }
  @media (prefers-reduced-motion: no-preference) { .app-bar { transition: background-color .2s, box-shadow .2s; } }
  .app-bar-search { flex: 1 1 auto; min-width: 0; max-width: 34rem; }
  /* The field: it looks like one (a filled box, a magnifier, grey words) and the keys sit at its end. */
  .app-bar .top-search {
    display: flex; align-items: center; gap: var(--s4); width: 100%; min-width: 0; min-height: max(44px, var(--tap)); margin: 0; padding: 0 var(--s4) 0 var(--s5);
    justify-content: flex-start; border-radius: var(--r-control); background: var(--fill); color: var(--fade); font-size: var(--t-subhead); text-align: left;
  }
  @media (hover: hover) { .app-bar .top-search:hover { background: var(--fill-2); } }
  .app-bar .top-search svg { flex: none; width: 16px; height: 16px; }
  .app-bar .top-search-words { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-bar .top-search-key {
    display: inline-block; flex: none; padding: 1px 6px; border-radius: 6px; background: var(--card); color: var(--fade);
    font: inherit; font-size: var(--t-caption1); font-weight: var(--w-semibold); line-height: 1.5; box-shadow: 0 0 0 .5px var(--field-edge);
  }
  .app-bar-end { flex: none; display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
  .app-bar .bell, .app-bar .top-help {
    position: relative; display: grid; place-items: center; flex: none; width: max(44px, var(--tap)); height: max(44px, var(--tap)); margin: 0;
    border-radius: var(--r-control); color: var(--ink); background: none;
  }
  .app-bar .bell svg, .app-bar .top-help svg { width: 20px; height: 20px; }
  @media (hover: hover) { .app-bar .bell:hover, .app-bar .top-help:hover { background: var(--fill); } }
  .app-bar .bell-badge { top: 2px; right: 2px; box-shadow: 0 0 0 2px var(--bg); }
  .app-bar .acct { display: grid; flex: none; width: max(44px, var(--tap)); height: max(44px, var(--tap)); margin: 0 0 0 var(--s2); }
  /* My account, My alerts, My appearance: the account says you are there. */
  .app-bar .acct.here span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
  .view-home > .note { margin-bottom: var(--s6); }
  /* The page starts under the bar: less room above the title, the same for every page. */
  .view { padding-top: 12px; }
  .view.cal-view { height: calc(100vh - var(--bar-h)); height: calc(100dvh - var(--bar-h)); padding-top: 4px; }
  /* What stays put while the page scrolls stops under the bar, not behind it. */
  .setup .pane > .setup-head { top: var(--bar-h); }
  .ibx-side { top: calc(var(--bar-h) + 8px); max-height: calc(100dvh - var(--bar-h) - 104px); }
  html { scroll-padding-top: calc(var(--bar-h) + 16px); }
  /* Tabs that only repeat the side menu (main.js LB.areaView): hidden while the menu is full; icons only keeps them. */
  html:not(.nav-mini) .seg.area-tabs.in-menu { display: none; }
  html:not(.nav-mini) .area-head:has(+ .area-tabs.in-menu) { margin-bottom: 12px; }
}
@media (min-width: 1024px) {
  .setup > .menu { top: calc(var(--bar-h) + 12px); max-height: calc(100vh - var(--bar-h) - 36px); }
}

/* =================== 2026-10-18: the app matches the website (white page, Rndez blue, black) ===================
   "Add the blue for tab" (owner): the page you are on, and the tab you picked, are Rndez blue everywhere — the side
   menu row (a light blue fill, blue words and icon), its group, the icon-only menu, the underline tabs inside a page
   and the segmented switches. The phone's tab bar was already blue (.here-view). */
/* The main Rndez blue, solid (owner: "the main blue, not that" — not a pale tint): white words and icons on it. */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .nav button[aria-current="page"], .side-foot > button[aria-current="page"] { background: var(--blue); color: var(--white, #fff); }
  .nav button[aria-current="page"] svg, .side-foot > button[aria-current="page"] svg { color: #fff; }
  @media (hover: hover) { .nav button[aria-current="page"]:hover, .side-foot > button[aria-current="page"]:hover { background: #1830a8; } }
  .nav button.nav-head.here-group, .nav button.nav-head.here-group svg { color: var(--blue); }
  .nav-mini .nav button.nav-head.here-group { background: var(--blue); }
  .nav-mini .nav button.nav-head.here-group svg { color: #fff; }
}
.seg.area-tabs button[aria-current="page"], .seg.area-tabs button[aria-pressed="true"], .seg.area-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.tabs button[aria-selected="true"], .seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: none; }
/* The phone's tab bar: the page you are on in the main blue, solid, with a white icon. */
@media (max-width: 767px), (max-height: 500px) and (pointer: coarse) {
  .nav button.here-view { background: var(--blue); color: #fff; }
}
/* The side menu's icons stay ink (the accent is for what you act on and what is selected, not every icon). */
.nav button svg, .side-foot > button svg { color: var(--ink); }
.nav button.here-view svg { color: #fff; }
/* What you picked is the accent (company blue): filter chips, the person picked in the calendar, "All", a report bar,
   the counter's dots, the marketing buttons. Avatars and the calendar's day numbers stay ink, as in Apple Calendar. */
.chip[aria-pressed="true"], .cal-who.on, .cal-all[aria-pressed="true"], .mk-btn { background: var(--tint); color: #fff; }
.rbars .rbar.on i, .ct-dots span.on { background: var(--tint); }

/* =================== The side menu in the company blue (owner, 2026-10-18: "the menu that opens and closes on the
   left" is #1F3BD1) ===================
   The whole panel is #1F3BD1: white words and icons, a soft white wash on hover, and the page you are on as a white
   row with blue words. The logo turns white. Computers and iPads only (phones have the tab bar). */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .side:not(.shade) { --solid-side: #1f3bd1; background: #1f3bd1; color: #fff; box-shadow: 0 4px 20px rgba(31, 59, 209, .18); }
  .side:not(.shade) :focus-visible { outline-color: #fff; }
  .side:not(.shade) .brand-icon, .side:not(.shade) .top .brand { filter: brightness(0) invert(1); }
  .side:not(.shade) .nav button, .side:not(.shade) .side-foot > button, .side:not(.shade) .top .studio, .side:not(.shade) .side-toggle,
  .side:not(.shade) .top .top-search, .side:not(.shade) .top .top-help, .side:not(.shade) .top .bell { color: #fff; }
  .side:not(.shade) .nav button svg, .side:not(.shade) .side-foot > button svg, .side:not(.shade) .top svg { color: #fff; }
  .side:not(.shade) .nav .nav-group, .side:not(.shade) .nav .nav-chev, .side:not(.shade) .top .side-mode { color: rgba(255, 255, 255, .78); }
  .side:not(.shade) .top .top-search { background: rgba(255, 255, 255, .14); }
  .side:not(.shade) .side-foot { border-top-color: rgba(255, 255, 255, .22); }
  .side:not(.shade) .side-count { background: #fff; color: #1f3bd1; }
  @media (hover: hover) {
    .side:not(.shade) .nav button:hover, .side:not(.shade) .side-foot > button:hover, .side:not(.shade) .top .studio:hover,
    .side:not(.shade) .side-toggle:hover, .side:not(.shade) .top .top-search:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  }
  /* The page you are on: a white row, blue words and icon. Its group's name is bold white. */
  .side:not(.shade) .nav button[aria-current="page"], .side:not(.shade) .side-foot > button[aria-current="page"] { background: #fff; color: #1f3bd1; }
  .side:not(.shade) .nav button[aria-current="page"] svg, .side:not(.shade) .side-foot > button[aria-current="page"] svg { color: #1f3bd1; }
  @media (hover: hover) { .side:not(.shade) .nav button[aria-current="page"]:hover, .side:not(.shade) .side-foot > button[aria-current="page"]:hover { background: #fff; color: #1f3bd1; } }
  .side:not(.shade) .nav button.nav-head.here-group, .side:not(.shade) .nav button.nav-head.here-group svg { color: #fff; }
  /* Icons only. */
  .nav-mini .side:not(.shade) .top .studio, .nav-mini .side:not(.shade) .top .studio.solo { background: rgba(255, 255, 255, .16); color: #fff; }
  .nav-mini .side:not(.shade) .nav button.nav-head.here-group { background: #fff; }
  .nav-mini .side:not(.shade) .nav button.nav-head.here-group svg { color: #1f3bd1; }
  .nav-mini .side:not(.shade) .nav .nav-group, .nav-mini .side:not(.shade) .nav .nav-group-gap { background: rgba(255, 255, 255, .25); }
}

/* The side menu shows only the person's favourites, then All apps (Paul, 2026-10-19: no groups in the menu). The
   groups stay in the page for the phone's dock only. A page that is not a favourite lights All apps. */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (pointer: fine) {
  .nav .nav-grp, .nav .nav-one, .nav .nav-section { display: none; }
  .nav .nav-favs > .nav-fav:first-child, .nav .nav-favs > .nav-fav-empty:first-child { margin-top: 6px; }
  .nav .nav-fav-empty { margin: 2px 10px 6px; font-size: var(--t-footnote); line-height: 1.35; color: var(--fade); }
  .nav .nav-more { margin-top: 10px; }
  .nav button.nav-more.here-view { background: var(--fill-2); font-weight: 600; }
  .side:not(.shade) .nav .nav-fav-empty { color: rgba(255, 255, 255, .78); }
  .side:not(.shade) .nav button.nav-more.here-view, .side:not(.shade) .nav button.nav-more.here-view svg { background: #fff; color: #1f3bd1; }
  .side:not(.shade) .nav button.nav-more.here-view svg { background: none; }
  .nav-mini .nav .nav-fav-empty { display: none; }
}
