/* =========================================================================
   ZAHI STUDIOS — Production Commerce Platform
   Design system + components. Vanilla CSS, no build step.

   Palette logic: the two accents are the two color temperatures a stage
   works in. Daylight (5600K) blue is the interface accent and marks savings;
   tungsten (3200K) amber marks premium demand and surcharges. Semantic
   green/red sit apart from both.

   Themes: dark-first (a blacked-out stage). The bare :root block carries the
   full dark palette; light is redefined for prefers-color-scheme: light and
   for an explicit [data-theme="light"].
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* grounds & surfaces */
  --ground:        #0B0E13;
  --surface:       #131820;
  --surface-2:     #19202a;
  --surface-3:     #212a36;
  --surface-sunk:  #0A0D11;
  --line:          #273240;
  --line-soft:     #1d2632;

  /* ink */
  --ink:           #EEF2F7;
  --ink-2:         #A8B4C4;
  --ink-3:         #6F7D8F;
  --ink-inv:       #0B0E13;

  /* daylight 5600K — interface accent + savings */
  --day:           #5C9CFF;
  --day-strong:    #2E6BDD;   /* white lettering needs this much depth */
  --day-hover:     #3B7DF0;
  --day-soft:      rgba(92,156,255,0.14);
  --day-line:      rgba(92,156,255,0.38);

  /* tungsten 3200K — premium demand + surcharges */
  --tung:          #FFB05C;
  --tung-strong:   #E8913A;
  --tung-soft:     rgba(255,176,92,0.14);
  --tung-line:     rgba(255,176,92,0.38);

  /* semantic */
  --good:          #42CE92;
  --good-soft:     rgba(66,206,146,0.14);
  --warn:          #FFCB57;
  --warn-soft:     rgba(255,203,87,0.14);
  --bad:           #FF6B70;
  --bad-soft:      rgba(255,107,112,0.14);

  /* type */
  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body:    "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-xs: 0.6875rem;
  --t-sm: 0.8125rem;
  --t-md: 0.9375rem;
  --t-lg: 1.0625rem;
  --t-xl: 1.375rem;
  --t-2xl: 1.875rem;
  --t-3xl: 2.5rem;
  --t-4xl: clamp(2.4rem, 6vw, 4.25rem);

  /* space & shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 10px 30px -12px rgba(0,0,0,0.65);
  --shadow-3: 0 30px 70px -30px rgba(0,0,0,0.85);
  --rail: 268px;
  --summary: 340px;
  --maxw: 1360px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground:       #F4F6F9;
    --surface:      #FFFFFF;
    --surface-2:    #F7F9FC;
    --surface-3:    #EDF1F6;
    --surface-sunk: #E8ECF2;
    --line:         #D8E0EA;
    --line-soft:    #E7EDF4;
    --ink:          #101720;
    --ink-2:        #4C5A6C;
    --ink-3:        #77869A;
    --ink-inv:      #FFFFFF;
    --day:          #2F6BF0;
    --day-strong:   #1E55D0;
    --day-hover:    #2F6BF0;
    --day-soft:     rgba(47,107,240,0.09);
    --day-line:     rgba(47,107,240,0.30);
    --tung:         #C9721A;
    --tung-strong:  #A85C0E;
    --tung-soft:    rgba(201,114,26,0.10);
    --tung-line:    rgba(201,114,26,0.30);
    --good:         #18915F;
    --good-soft:    rgba(24,145,95,0.10);
    --warn:         #9A6B00;
    --warn-soft:    rgba(154,107,0,0.12);
    --bad:          #C23B42;
    --bad-soft:     rgba(194,59,66,0.10);
    --shadow-1: 0 1px 2px rgba(16,23,32,0.06);
    --shadow-2: 0 10px 30px -14px rgba(16,23,32,0.22);
    --shadow-3: 0 30px 70px -34px rgba(16,23,32,0.30);
  }
}

:root[data-theme="light"] {
  --ground:       #F4F6F9;
  --surface:      #FFFFFF;
  --surface-2:    #F7F9FC;
  --surface-3:    #EDF1F6;
  --surface-sunk: #E8ECF2;
  --line:         #D8E0EA;
  --line-soft:    #E7EDF4;
  --ink:          #101720;
  --ink-2:        #4C5A6C;
  --ink-3:        #77869A;
  --ink-inv:      #FFFFFF;
  --day:          #2F6BF0;
  --day-strong:   #1E55D0;
  --day-hover:    #2F6BF0;
  --day-soft:     rgba(47,107,240,0.09);
  --day-line:     rgba(47,107,240,0.30);
  --tung:         #C9721A;
  --tung-strong:  #A85C0E;
  --tung-soft:    rgba(201,114,26,0.10);
  --tung-line:    rgba(201,114,26,0.30);
  --good:         #18915F;
  --good-soft:    rgba(24,145,95,0.10);
  --warn:         #9A6B00;
  --warn-soft:    rgba(154,107,0,0.12);
  --bad:          #C23B42;
  --bad-soft:     rgba(194,59,66,0.10);
  --shadow-1: 0 1px 2px rgba(16,23,32,0.06);
  --shadow-2: 0 10px 30px -14px rgba(16,23,32,0.22);
  --shadow-3: 0 30px 70px -34px rgba(16,23,32,0.30);
}

/* ---------- 2. Reset & base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 0.75em; }
p:last-child { margin-bottom: 0; }
a { color: var(--day); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--day); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--day-soft); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- 3. Type helpers --------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.6rem;
}
.eyebrow--day { color: var(--day); }
.display-1 { font-size: var(--t-4xl); letter-spacing: -0.035em; font-weight: 800; }
.display-2 { font-size: var(--t-3xl); letter-spacing: -0.03em; }
.h1 { font-size: var(--t-2xl); }
.h2 { font-size: var(--t-xl); }
.h3 { font-size: var(--t-lg); }
.lede { font-size: var(--t-lg); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: var(--t-sm); }
.xsmall { font-size: var(--t-xs); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.strike { text-decoration: line-through; color: var(--ink-3); }

/* ---------- 4. Layout ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1 1 auto; }
.grid { display: grid; gap: 16px; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.section { padding-block: clamp(40px, 7vw, 88px); }

/* ---------- 5. Top bar --------------------------------------------------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
/* The studio's own mark. It is a black silhouette on transparency, so it is
   used as artwork rather than as a tinted box: no gradient plate behind it,
   and on the dark theme it is inverted to white rather than being left as a
   black butterfly on a black bar. */
.brand__mark {
  width: 30px; height: 30px; flex: none;
  object-fit: contain; display: block; background: none; border-radius: 0;
}
:root:not([data-theme="light"]) .brand__mark { filter: invert(1); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand__mark { filter: none; }
}
:root[data-theme="dark"] .brand__mark { filter: invert(1); }
:root[data-theme="light"] .brand__mark { filter: none; }
.brand__name { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.02rem; }
.brand__sub { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.topnav { display: flex; gap: 4px; align-items: center; }
.topnav a, .topnav button {
  font-size: var(--t-sm); color: var(--ink-2); padding: 7px 11px; border-radius: var(--r-sm);
  background: none; border: 0; cursor: pointer; text-decoration: none;
}
.topnav a:hover, .topnav button:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.topnav a.is-active { color: var(--ink); background: var(--surface-2); }
@media (max-width: 660px) {
  .topbar__inner { flex-wrap: wrap; gap: 6px 10px; padding-inline: 16px; }
  .topnav { flex-wrap: wrap; width: 100%; justify-content: flex-start; }
  .topnav a, .topnav button { padding: 6px 9px; font-size: var(--t-xs); }
  .brand__sub { display: none; }
  .brand__name { font-size: .95rem; }
}

/* ---------- 6. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  background: var(--surface-3); color: var(--ink);
  font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.005em;
  cursor: pointer; text-decoration: none; transition: background .16s, border-color .16s, transform .08s, color .16s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
/* Filled buttons always carry white lettering. Stated at this specificity and
   for every link state because the single-file build gets pasted into a host
   page (Muse) whose own `a { color }` rules would otherwise win. */
.btn--primary,
a.btn--primary,
.btn--primary:link,
.btn--primary:visited,
.btn--primary:hover,
.btn--primary:focus,
.btn--primary:active { background: var(--day-strong); color: #fff; }
.btn--primary:hover, a.btn--primary:hover { background: var(--day-hover); }
.btn--primary svg, .btn--primary .num { color: #fff; stroke: currentColor; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--day-line); }
.btn--quiet { background: transparent; color: var(--ink-2); padding-inline: 10px; }
.btn--quiet:hover { color: var(--ink); background: var(--surface-2); }
.btn--warm { background: var(--tung-strong); color: #1a1004; }
.btn--danger { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn--lg { padding: 15px 26px; font-size: var(--t-md); border-radius: 12px; }
.btn--sm { padding: 7px 12px; font-size: var(--t-xs); }
.btn--block { width: 100%; }
.btn__hint { font-weight: 400; opacity: .72; font-size: var(--t-xs); }

/* ---------- 7. Chips, pills, badges -------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 100px;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em;
  background: var(--surface-3); color: var(--ink-2);
  border: 1px solid transparent; white-space: nowrap;
}
.pill--day   { background: var(--day-soft);  color: var(--day);  border-color: var(--day-line); }
.pill--tung  { background: var(--tung-soft); color: var(--tung); border-color: var(--tung-line); }
.pill--good  { background: var(--good-soft); color: var(--good); }
.pill--warn  { background: var(--warn-soft); color: var(--warn); }
.pill--bad   { background: var(--bad-soft);  color: var(--bad); }
.pill--line  { background: transparent; border-color: var(--line); color: var(--ink-2); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.tag { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- 8. Cards ----------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 20px;
}
.card--sunk { background: var(--surface-2); }
.card--flat { background: transparent; border-color: var(--line); }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* selection tile (production type, time band, options) */
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.tile:hover { border-color: var(--day-line); background: var(--surface-2); }
.tile.is-selected { border-color: var(--day); background: var(--day-soft); box-shadow: inset 0 0 0 1px var(--day); }
.tile.is-disabled { opacity: .4; cursor: not-allowed; }
.tile__icon { width: 30px; height: 30px; color: var(--day); }
.tile.is-selected .tile__icon { color: var(--day); }
.tile__name { display: block; font-family: var(--display); font-weight: 700; font-size: var(--t-md); }
.tile__blurb { display: block; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.4; }
.tile__check {
  position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
}
.tile.is-selected .tile__check { border-color: var(--day); background: var(--day); color: #fff; }
/* A tile laid out as a row: the tick sits in the flow at the left instead of
   floating in the top-right corner, where it landed on top of the amount. */
.tile--row { flex-direction: row; align-items: center; gap: 14px; }
.tile--row .tile__check { position: static; flex: none; }
.tile--pick { min-height: 150px; }
/* on a phone, keep more choices on screen at once */
@media (max-width: 620px) {
  .tile--pick { min-height: 0; padding: 13px 14px; gap: 3px; }
  .tile--pick .tile__icon { width: 22px; height: 22px; }
}
.tile__check svg { width: 11px; height: 11px; opacity: 0; }
.tile.is-selected .tile__check svg { opacity: 1; }

/* crew tier — a clickable row, one band per line */
.tier {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; font: inherit; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 11px 13px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.tier:hover { border-color: var(--day-line); background: var(--surface-2); }
.tier:focus-visible { outline: 2px solid var(--day); outline-offset: 2px; }
.tier.is-selected { border-color: var(--day); background: var(--day-soft); box-shadow: inset 0 0 0 1px var(--day); color: var(--ink); }
.tier__check {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff;
}
.tier.is-selected .tier__check { border-color: var(--day); background: var(--day); }
.tier__check svg { width: 11px; height: 11px; opacity: 0; }
.tier.is-selected .tier__check svg { opacity: 1; }
.tier__text { flex: 1; min-width: 0; }
.tier__label { display: block; font-size: var(--t-sm); font-weight: 600; }
.tier.is-selected .tier__label { font-weight: 700; }
.tier__note { display: block; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.35; }
.tier__amt {
  flex: none; font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: var(--t-sm); white-space: nowrap;
}

/* studio card */
.studio {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.studio:hover { border-color: var(--day-line); box-shadow: var(--shadow-2); }

/* the landing-page cards are real buttons: whole tile opens that space */
.studio--link {
  padding: 0; margin: 0; font: inherit; color: inherit; text-align: left;
  cursor: pointer; width: 100%;
}
.studio--link:hover { transform: translateY(-2px); }
.studio--link:focus-visible { outline: 2px solid var(--day); outline-offset: 3px; }
.studio--link .studio__body { gap: 10px; }
.studio--all { border-color: var(--day-line); background: linear-gradient(160deg, var(--day-soft), transparent 60%); }
.studio__open {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,11,15,.72); color: #fff; border-radius: 100px; padding: 4px 11px;
  font-size: var(--t-xs); font-weight: 600;
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
}
.studio--link:hover .studio__open,
.studio--link:focus-visible .studio__open { opacity: 1; transform: none; }
@media (hover: none) { .studio__open { opacity: 1; transform: none; } }
.studio.is-selected { border-color: var(--day); box-shadow: 0 0 0 1px var(--day), var(--shadow-2); }
/* auto-fill, not auto-fit: a lone card keeps its track width instead of
   stretching across the whole row */
.studio-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.studio-grid > .studio { max-width: 460px; }
@media (max-width: 700px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } }

.studio.is-rec { border-color: var(--day-line); }
.studio__rec {
  background: var(--day); color: #fff; font-size: var(--t-xs); font-weight: 650;
  letter-spacing: .02em; padding: 5px 14px;
}
.studio__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-sunk); max-width: 100%; }
.studio__media img { width: 100%; height: 100%; object-fit: cover; }
.studio__badge { position: absolute; top: 12px; left: 12px; }
/* No backdrop-filter here: a filtered element inside scrolling content can
   paint through a fixed overlay in Chromium, which made studio cards appear
   on top of an open modal. A solid tint does the same job safely. */
.studio__rate {
  position: absolute; right: 12px; bottom: 12px; text-align: right;
  background: rgba(8, 11, 15, 0.82);
  border-radius: var(--r-sm); padding: 6px 10px; color: #EEF2F7;
}
.studio__count {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(8, 11, 15, 0.82); color: #EEF2F7;
  border-radius: 100px; padding: 3px 9px; font-size: var(--t-xs);
  display: inline-flex; align-items: center; gap: 5px;
}
/* The photograph on a stage card is a button that opens the gallery. Without
   these it renders as a default button — a grey chrome border round the
   picture and the label spilling out from under it onto the studio name. */
.studio__shot {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: zoom-in; overflow: hidden;
}
.studio__shot:focus-visible { outline: 2px solid var(--day); outline-offset: -3px; }
.studio__see {
  position: absolute; right: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8, 11, 15, 0.78); color: #fff;
  border-radius: 100px; padding: 4px 11px;
  font-size: var(--t-xs); font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s;
}
.studio__shot:hover .studio__see,
.studio__shot:focus-visible .studio__see { opacity: 1; transform: none; }
/* Nothing hovers on a touch screen, so the invitation has to be standing there. */
@media (hover: none) { .studio__see { opacity: 1; transform: none; } }

.studio.is-off { opacity: .74; }
.studio.is-off .studio__media img { filter: grayscale(.75); }

.no-photo {
  width: 100%; height: 100%; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface-3); color: var(--ink-3); font-size: var(--t-xs); text-align: center; padding: 16px;
}
.studio__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.studio__specs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; }
.spec { display: flex; flex-direction: column; }
.spec__k { font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.spec__v { font-size: var(--t-sm); font-weight: 600; }
.studio__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.studio__feats li { font-size: var(--t-sm); color: var(--ink-2); padding-left: 16px; position: relative; }
.studio__feats li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--day); }

/* catalog item card */
.item {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden; transition: border-color .15s;
}
.item:hover { border-color: var(--day-line); }
.item.is-added { border-color: var(--day); }
.item__media { aspect-ratio: 5 / 4; background: var(--surface-sunk); max-width: 100%; }
.item__media img { width: 100%; height: 100%; object-fit: cover; }
.item__body { padding: 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item__name { font-weight: 650; font-size: var(--t-sm); line-height: 1.25; }
.item__desc { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.4; flex: 1; }
.item__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }

/* qty stepper */
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 100px; background: var(--surface-2);
  flex: none;            /* never let a long label squeeze the + off the row */
}
.qty button { flex: none; }
.qty button {
  width: 28px; height: 28px; border: 0; background: none; color: var(--ink-2);
  cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.qty button:hover:not(:disabled) { color: var(--ink); background: var(--surface-3); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 26px; text-align: center; font-family: var(--mono); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }

/* ---------- 9. Forms ----------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label {
  font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-3);
}
.input, .select, .textarea {
  width: 100%; max-width: 100%; min-width: 0; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: var(--t-sm); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--day); background: var(--surface); }
.textarea { min-height: 84px; resize: vertical; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 32px;
}
.hint { font-size: var(--t-xs); color: var(--ink-3); }

/* ---- SMS consent -------------------------------------------------------
   A checkbox a person can actually hit. The whole row is the label, so the
   text is a tap target too — on a phone, a 13px box on its own is not one.
   Deliberately plain: a consent control that is styled to look inviting is
   a consent control that is nudging, and this one must not nudge. */
.consent {
  margin-top: 18px; padding: 14px 15px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2);
}
.consent__row {
  display: flex; align-items: flex-start; gap: 11px;
  cursor: pointer; margin: 0;
}
.consent__box {
  /* 18px, not the browser default 13px: this is touched with a thumb. */
  flex: none; width: 18px; height: 18px; margin: 2px 0 0; cursor: pointer;
  accent-color: var(--day);
}
.consent__text { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.consent__text a { color: var(--day); text-decoration: underline; }
.consent__note {
  margin: 8px 0 0 29px; font-size: var(--t-xs); color: var(--ink-3);
}
/* The Privacy Policy and Terms links are 14px of text in a 12px note,
   which is a fine thing to read and a poor thing to hit with a thumb —
   and they are the two links a compliance reviewer opens on a phone.
   Padded into a 32px target without changing how the line looks. */
.consent__note a {
  display: inline-block; padding: 7px 2px; margin: -7px 0;
  min-height: 18px;
}
/* Keyboard users get the same ring everything else does, on the row rather
   than on the 18px box, so it is visible. */
.consent__box:focus-visible { outline: 2px solid var(--day); outline-offset: 2px; }
@media (max-width: 560px) {
  .consent { padding: 12px; }
  .consent__note { margin-left: 0; }
}

/* ---- the SMS sign-up on the landing page --------------------------------
   Written into index.html rather than rendered, so it is in the served HTML
   for a reviewer who runs no scripts. That means it must look right BEFORE
   any script runs — these rules are the whole of its appearance, and there
   is no loading state in which it is unstyled or in the wrong place.

   Its home is between the production types and the spaces; js/app.js moves
   it there once the landing has rendered. Until then (and forever, with
   scripting off) it sits where it is written, under the top bar, which is
   also a perfectly good place for it. */
.optin-static {
  padding: 10px 0 0;
}
.optin-static__inner {
  max-width: 760px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 28px) 28px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
/* Inside the landing it is one section among others, so it loses the page
   gutter it needs when it is standing on its own under the top bar. */
.lander .optin-static { padding: 0; }
.lander .optin-static__inner { max-width: none; }
.optin-static__title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.15; margin: 8px 0 8px;
}
.optin-static__lede { color: var(--ink-2); margin: 0 0 18px; max-width: 62ch; }
.optin-static__field { margin: 0 0 4px; }
.optin-static__field label {
  display: block; font-weight: 650; font-size: var(--t-sm); margin: 0 0 6px;
}
.optin-static__field .input { width: 100%; max-width: 360px; }
.optin-static__form .btn { margin-top: 18px; }
.optin-static__foot { margin-top: 10px; }
/* Off-screen rather than display:none: a bot that reads the computed style
   skips a hidden field, and this one is meant to be filled in. */
.optin-static__trap {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.optin-static__result { margin: 14px 0 0; font-size: var(--t-sm); }
.optin-static__result:empty { display: none; }
.optin-static__result.is-good { color: var(--good); font-weight: 650; }
.optin-static__result.is-bad { color: var(--bad); font-weight: 650; }
.optin-static.is-away { display: none; }
@media (max-width: 560px) {
  .optin-static__inner { padding: 18px 16px 22px; }
  .optin-static__field .input { max-width: none; }
  .optin-static__form .btn { width: 100%; }
}
/* ---- sorting and searching a table -------------------------------------
   The heading IS the button, so the whole cell is the target rather than
   a small arrow beside the words. The arrow only appears on the column
   actually in use: an arrow on every heading tells a reader nothing about
   which one the table is ordered by. */
.t-sort {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer; text-align: inherit;
}
.t-sort:hover { color: var(--day); }
.t-sort.is-on { color: var(--ink); font-weight: 700; }
.t-sort__dir { font-size: 9px; line-height: 1; color: var(--day); }
.t-sort:focus-visible { outline: 2px solid var(--day); outline-offset: 2px; border-radius: 3px; }
th.num .t-sort { justify-content: flex-end; }

/* The Dates column has three orders rather than two, so the heading says
   which one is on. An arrow alone cannot tell "upcoming first" from
   "oldest first" — they both point the same way. */
.t-sort__note {
  font: 500 10px/1 var(--body); letter-spacing: .02em;
  color: var(--day); text-transform: none; white-space: nowrap;
}

/* ---- what is happening now ---------------------------------------------
   A bookings table is a diary, and the question it is opened to answer is
   "what is on". Today's rows carry the studio's warm accent down their
   leading edge and the rest of the week a quieter one, so the answer is
   available without reading a single date.

   A left border rather than a filled row: the selection highlight already
   uses a background, and two backgrounds fighting over one row makes both
   of them unreadable. */
table.t tbody tr.is-today { background: var(--tung-soft); }
table.t tbody tr.is-today > td:first-child { box-shadow: inset 3px 0 0 var(--tung); }
table.t tbody tr.is-soon { background: var(--day-soft); }
table.t tbody tr.is-soon > td:first-child { box-shadow: inset 3px 0 0 var(--day-line); }
/* Selection still wins, because it is the thing the person just did. */
table.t tbody tr.is-picked.is-today, table.t tbody tr.is-picked.is-soon {
  background: var(--day-soft);
}

.t-when {
  display: block; margin-top: 3px;
  font: 600 10px/1.2 var(--body); letter-spacing: .04em; text-transform: uppercase;
  color: var(--day);
}
.t-when--today { color: var(--tung-strong); }

.t-search {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink-3); min-width: 230px;
}
.t-search .input {
  border: 0; background: none; padding: 9px 0; min-width: 0; flex: 1;
}
.t-search .input:focus { outline: none; }
.t-search:focus-within { border-color: var(--day); box-shadow: 0 0 0 2px var(--day-soft); }
@media (max-width: 640px) {
  .t-search { width: 100%; min-width: 0; }
}

/* ---- a typed signature, shown as one ------------------------------------
   The customer types their name to accept the studio's terms. Printed as
   a table row it reads like a database field; printed on a line with the
   date beneath it, it reads like the record it is — which is what a
   studio needs in front of a client who disputes what was agreed. */
.sigblock { margin: 6px 0 14px; }
.sigblock__name {
  font-family: "Snell Roundhand", "Apple Chancery", "Segoe Script",
               "Brush Script MT", cursive;
  font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.25;
  color: var(--ink); padding: 0 4px 4px;
}
.sigblock__rule { border-bottom: 1px solid var(--ink-3); max-width: 380px; }
.sigblock__meta { font-size: var(--t-xs); color: var(--ink-3); margin-top: 7px; }
@media print {
  .sigblock__rule { border-bottom-color: #000; }
  .sigblock__name { color: #000; }
}

.hint svg, .small svg, p svg { display: inline-block; vertical-align: -2px; margin-right: 3px; }
.err { font-size: var(--t-xs); color: var(--bad); }
.input.is-err, .select.is-err { border-color: var(--bad); }
/* Wanted, not wrong. A required field somebody has tabbed past and left
   empty is marked in the warm accent rather than in the error red: they
   have not made a mistake, they have not finished. */
.input.is-wanted { border-color: var(--tung); background: var(--tung-soft); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: var(--t-sm); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { width: 36px; height: 20px; border-radius: 100px; background: var(--surface-3); border: 1px solid var(--line); position: relative; transition: background .15s, border-color .15s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-3); transition: transform .15s, background .15s; }
.switch input:checked + .switch__track { background: var(--day-soft); border-color: var(--day); }
.switch input:checked + .switch__track::after { transform: translateX(16px); background: var(--day); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--day); outline-offset: 2px; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button {
  border: 0; background: none; color: var(--ink-2); padding: 7px 13px;
  border-radius: 7px; font-size: var(--t-sm); cursor: pointer; font-weight: 600;
}
.seg button:hover { color: var(--ink); }
.seg button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* How many days: presets plus a box for any other run length. */
.daysrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.daysother { display: inline-flex; align-items: center; gap: 8px; }
.daysother .label { white-space: nowrap; }
.input--num { width: 78px; text-align: center; font-family: var(--mono); }

/* ---------- 10. Booking shell ------------------------------------------- */
.booking {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--summary);
  gap: 28px;
  max-width: var(--maxw); margin-inline: auto;
  padding: 26px 20px 80px;
  align-items: start;
}
@media (max-width: 1180px) { .booking { grid-template-columns: minmax(0,1fr) var(--summary); } .rail { display: none; } }
@media (max-width: 900px)  { .booking { grid-template-columns: minmax(0,1fr); gap: 20px; padding-bottom: 110px; } .summary-col { display: none; } }

/* progress rail */
.rail { position: sticky; top: 90px; }
.rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rail__item {
  display: flex; gap: 11px; align-items: flex-start; padding: 6px 8px; border-radius: var(--r-sm);
  background: none; border: 0; width: 100%; text-align: left; cursor: pointer; color: var(--ink-3);
  font-size: var(--t-sm);
}
.rail__item:hover:not(:disabled) { color: var(--ink); background: var(--surface-2); }
.rail__item:disabled { cursor: not-allowed; opacity: .55; }
.rail__num {
  flex: none; width: 21px; height: 21px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--mono); font-size: 10px;
  margin-top: 1px;
}
.rail__item.is-done { color: var(--ink-2); }
.rail__item.is-done .rail__num { border-color: var(--day); color: var(--day); background: var(--day-soft); }
.rail__item.is-current { color: var(--ink); font-weight: 650; }
.rail__item.is-current .rail__num { border-color: var(--day); background: var(--day); color: #fff; }
.rail__meta { display: block; font-size: var(--t-xs); color: var(--ink-3); font-weight: 400; line-height: 1.3; }
.rail__opt {
  margin-left: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line);
  border-radius: 3px; padding: 0 4px; vertical-align: 1px; font-weight: 400;
}

/* step head */
.step__head { margin-bottom: 20px; }
.step__title { font-size: var(--t-2xl); letter-spacing: -0.03em; }
.step__sub { color: var(--ink-2); margin-top: 6px; max-width: 64ch; }

/* wizard progress — always visible, on every breakpoint */
.wizbar { margin-bottom: 18px; }
.wizbar__row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.wizbar__step { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--day); }
.wizbar__time { font-size: var(--t-xs); color: var(--ink-3); }
.wizbar__track { display: flex; gap: 3px; }
.wizbar__seg { flex: 1; height: 4px; border-radius: 3px; background: var(--surface-3); transition: background .25s; }
.wizbar__seg.is-done { background: var(--day-line); }
.wizbar__seg.is-now { background: var(--day); }

/* collapsed "optional extras" disclosure */
.drop > summary {
  cursor: pointer; font-size: var(--t-sm); color: var(--ink-2);
  padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r-md);
  list-style: none;
}
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::before { content: "+ "; color: var(--day); font-weight: 700; }
.drop[open] > summary::before { content: "– "; }
.drop > summary:hover { border-color: var(--day-line); color: var(--ink); }

/* footer nav for steps */
.stepnav { display: flex; gap: 10px; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }

/* ---------- 11. Calendar ------------------------------------------------- */
.cal { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 14px 12px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal__month { font-family: var(--display); font-weight: 700; font-size: var(--t-lg); }
.cal__dow { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; margin-bottom: 6px; }
.cal__dow span { text-align: center; font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day {
  position: relative; min-height: 78px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--surface-2); padding: 6px 5px 7px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; align-items: stretch;
  text-align: left; transition: border-color .12s, background .12s, transform .08s;
  overflow: hidden;
}
.day:hover:not(:disabled) { border-color: var(--day); transform: translateY(-1px); }
.day:disabled { cursor: not-allowed; }
.day__n { font-family: var(--mono); font-size: var(--t-sm); font-weight: 600; line-height: 1; }
.day__p {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: -.04em; margin-top: auto;
}
.day__s {
  font-size: 8.5px; text-transform: uppercase; letter-spacing: .01em; font-weight: 700;
  line-height: 1.1; overflow: hidden; text-overflow: clip; white-space: nowrap;
}
.day--empty { border: 0; background: none; cursor: default; }
.day--available { }
.day--available .day__p { color: var(--ink-2); }
.day--discount { border-color: var(--good-soft); background: var(--good-soft); }
.day--discount .day__s, .day--discount .day__p { color: var(--good); }
.day--early { border-color: var(--day-line); background: var(--day-soft); }
.day--early .day__s, .day--early .day__p { color: var(--day); }
.day--offpeak { border-color: var(--day-soft); background: color-mix(in srgb, var(--day-soft) 55%, transparent); }
.day--offpeak .day__s, .day--offpeak .day__p { color: var(--day); }
.day--premium { border-color: var(--tung-line); background: var(--tung-soft); }
.day--premium .day__s, .day--premium .day__p { color: var(--tung); }
.day--booked, .day--maintenance, .day--hold {
  background: repeating-linear-gradient(135deg, var(--surface-sunk) 0 6px, transparent 6px 12px);
  color: var(--ink-3); border-style: dashed;
}
.day--closed { background: transparent; border-color: transparent; color: var(--ink-3); }
.day--past { background: transparent; border-color: transparent; }
.day--past .day__n { opacity: .32; }
.day--booked .day__n, .day--closed .day__n, .day--maintenance .day__n, .day--hold .day__n { opacity: .5; }
.day.is-selected { border-color: var(--day); background: var(--day); color: #fff; box-shadow: 0 0 0 1px var(--day); }
.day.is-selected .day__p, .day.is-selected .day__s, .day.is-selected .day__n { color: #fff; }
.day.is-span { border-color: var(--day); background: var(--day-soft); }
.day.is-today::after { content: ""; position: absolute; inset: auto 6px 4px auto; width: 4px; height: 4px; border-radius: 50%; background: var(--tung); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.legend {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink);
  border: 1px solid var(--line); border-radius: 100px; padding: 3px 9px 3px 4px; background: var(--surface-2);
}
.legend__sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); flex: none; }
/* the key swatches use a stronger tint than the tiles so they actually read */
.legend__sw.day--discount { background: var(--good); border-color: var(--good); }
.legend__sw.day--early { background: var(--day); border-color: var(--day); }
.legend__sw.day--offpeak { background: var(--day-line); border-color: var(--day-line); }
.legend__sw.day--premium { background: var(--tung); border-color: var(--tung); }
.legend__sw.day--available { background: var(--surface); }
.legend__sw.day--booked { background: repeating-linear-gradient(135deg, var(--ink-3) 0 3px, transparent 3px 6px); }
.legend .dim { color: var(--ink-3); }
@media (max-width: 560px) { .day { min-height: 62px; padding: 5px; } .day__p { font-size: 10px; } .day__s { font-size: 8px; } }

/* ---------- 12. Cove configurator ----------------------------------------
   The cyc is repainted live: a flat color layer is masked to the wall and
   multiplied over the photograph, so the paint takes on the room's own
   lighting instead of looking like a flat sticker. */
.cove-stage {
  position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-sunk);
  aspect-ratio: 4 / 3; max-height: 62vh; max-width: 100%;
  isolation: isolate;                 /* keep the multiply inside this box */
}
.cove-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cove-stage--flat { aspect-ratio: 16/9; }
.cove-paint {
  position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: multiply;
  transition: background .35s ease, clip-path .35s ease;
}
/* the two halves in split mode double as the "which side am I painting" control */
.cove-pick {
  position: absolute; top: 0; bottom: 0; width: 50%; border: 0; cursor: pointer;
  background: none; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12px;
}
.cove-pick--left { left: 0; }
.cove-pick--right { right: 0; }
.cove-pick span {
  font-size: var(--t-xs); font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(8,11,15,.6); color: #fff; border-radius: 100px; padding: 3px 11px;
  opacity: 0; transition: opacity .15s;
}
.cove-pick:hover span { opacity: 1; }
.cove-pick.is-active span { opacity: 1; background: var(--day-strong); }
.cove-pick.is-active { box-shadow: inset 0 0 0 2px var(--day); }

/* the seam between the two colors, draggable so the split lands where the
   shot needs it rather than always down the middle */
.cove-split {
  position: absolute; top: 0; bottom: 0; width: 26px; margin-left: -13px;
  cursor: ew-resize; touch-action: none; display: flex; align-items: center; justify-content: center;
}
.cove-split::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(8,11,15,.35);
}
.cove-split__grip {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: #12161c; box-shadow: 0 2px 10px rgba(8,11,15,.35);
  display: flex; align-items: center; justify-content: center; gap: 0;
  transition: transform .15s;
}
.cove-split__grip svg { margin-inline: -2px; }
.cove-split__grip::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(8,11,15,.08);
}
.cove-split:hover .cove-split__grip,
.cove-split:focus-visible .cove-split__grip { transform: scale(1.12); }
.cove-split:focus-visible { outline: 2px solid var(--day); outline-offset: 2px; border-radius: 4px; }
/* while dragging, drop the eased transitions so the wall tracks the pointer */
.cove-stage.is-dragging .cove-paint { transition: background .35s ease; }
.cove-stage.is-dragging { cursor: ew-resize; }
.cove-stage.is-split .cove-pick { pointer-events: auto; }
.cove-stage__cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none;
}
.cove-stage__cap .pill { background: rgba(8,11,15,.72); color: #EEF2F7; border: 0; }
.cove-stage__cap .pill--ghost { background: rgba(8,11,15,.4); color: rgba(238,242,247,.7); margin-left: auto; }

.cove-swatches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.cove-swatch {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 9px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); cursor: pointer; text-align: left;
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.cove-swatch:hover { border-color: var(--day-line); transform: translateY(-2px); }
.cove-swatch.is-selected { border-color: var(--day); box-shadow: inset 0 0 0 1px var(--day); }
.cove-swatch__chip {
  width: 100%; height: 40px; border-radius: 7px; background: var(--sw);
  border: 1px solid rgba(128,128,128,.28);
}
.cove-swatch__name { font-size: var(--t-sm); font-weight: 600; line-height: 1.15; }
.cove-swatch__price { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); }
.cove-swatch.is-selected .cove-swatch__price { color: var(--day); }

/* ---------- legacy preview (kept for the confirmation summary) ----------- */
.cove-preview {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-sunk);
  aspect-ratio: 16 / 9; max-width: 100%;
}
.cove-preview__walls { position: absolute; inset: 0; display: flex; }
.cove-preview__half { flex: 1; position: relative; transition: background .25s; }
.cove-preview__floor {
  position: absolute; inset: auto 0 0 0; height: 26%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0.05));
  pointer-events: none;
}
.cove-preview__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 22%, rgba(255,255,255,0.22), transparent 70%);
}
.cove-preview__grid { position: absolute; inset: 0 0 auto 0; height: 9%; background: rgba(0,0,0,.42); }
.cove-preview__label {
  position: absolute; bottom: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap;
}
.cove-preview__car {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%);
  width: 46%; opacity: .92; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5));
}
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line);
  cursor: pointer; position: relative; padding: 0; transition: transform .1s, box-shadow .15s;
}
.swatch:hover { transform: translateY(-2px); }
.swatch.is-selected { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--day); }
.swatch__price {
  position: absolute; inset: auto 0 -18px 0; text-align: center;
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
}
.swatch-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.swatch-wrap > span { font-size: var(--t-xs); color: var(--ink-2); }
.color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
input[type="color"] { width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }

/* ---------- 13. Summary panel -------------------------------------------- */
.summary-col { position: sticky; top: 90px; }
.summary {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; max-height: calc(100vh - 120px);
}
.summary__head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line-soft); }
.summary__body { padding: 14px 18px; overflow-y: auto; flex: 1; }
.summary__foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: var(--t-sm); align-items: baseline; }
.li + .li { border-top: 1px dashed var(--line-soft); }
.li__label { color: var(--ink-2); min-width: 0; }
.li__detail { display: block; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.35; }
.li__amt { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--t-sm); }
.li--wrap { align-items: flex-start; }
.li--wrap .li__label { flex: none; }
.li--wrap .li__amt { white-space: normal; text-align: right; font-family: var(--body); }
.li--group { padding-top: 12px; }
.li--group .li__label { font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.li--save .li__amt, .li--save .li__label { color: var(--good); }
.li--sur .li__amt { color: var(--tung); }
.li--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.li--total .li__label { font-family: var(--display); font-weight: 700; font-size: var(--t-md); color: var(--ink); }
.li--total .li__amt { font-size: var(--t-xl); font-weight: 700; color: var(--ink); }
/* The amount actually leaving the customer's account today — the one figure on
   this panel they act on, so it carries a little more weight than a line item
   without competing with the production total above it. */
.li--due .li__label { font-weight: 650; color: var(--ink); }
.li--due .li__amt { font-weight: 700; color: var(--ink); }
.summary__empty { color: var(--ink-3); font-size: var(--t-sm); padding: 18px 0; text-align: center; }
.bump { animation: bump .32s ease; }
@keyframes bump { 0% { transform: scale(1);} 35% { transform: scale(1.055); } 100% { transform: scale(1);} }
@media (prefers-reduced-motion: reduce) { .bump { animation: none; } * { transition-duration: .01ms !important; } }

/* mobile summary bar */
.mobar { display: none; }
@media (max-width: 900px) {
  .mobar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    align-items: center; gap: 12px;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .mobar__total { display: flex; flex-direction: column; line-height: 1.15; }

  /* Room for it at the foot of the page.
     .mobar is position:fixed, so it sits ON TOP of the document rather
     than in it, and nothing was making space underneath — the last
     eighty-odd pixels of every screen on a phone were permanently
     covered by it. That is where the step navigation lives, which is why
     the Back and Continue buttons on checkout were hard to reach.
     The safe-area inset is added again here because the bar's own
     padding is inside the bar, not below it. */
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.58); z-index: 90;
  display: grid; place-items: end center; grid-template-columns: minmax(0, 1fr); padding: 0;
}
dialog.sheet-dialog {
  border: 0; padding: 0; margin: 0; background: transparent; color: inherit;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
}
dialog.sheet-dialog:not([open]) { display: none; }
dialog.sheet-dialog[open] { display: grid; place-items: end center; grid-template-columns: minmax(0, 1fr); }
dialog.sheet-dialog::backdrop { background: rgba(0,0,0,.58); }
.sheet {
  width: min(560px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  border: 1px solid var(--line); border-bottom: 0;
  padding: 18px 18px calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ---------- 14. Modal / drawer / toast -----------------------------------
   The dialog lives in the browser's top layer, so nothing on the page can
   paint over it regardless of stacking context. .modal-backdrop is the
   fallback for engines without dialog.showModal().
   align-items:start (not centre) so a tall dialog never has its top clipped
   above the scroll area. */
dialog.modal-dialog {
  border: 0; padding: 0; margin: 0; background: transparent; color: inherit;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
}
dialog.modal-dialog:not([open]) { display: none; }
dialog.modal-dialog[open] {
  display: grid; align-items: start; justify-items: center;
  /* minmax(0, 1fr), not the implicit auto track.

     An auto track is sized from its contents, and the dialog inside it is
     `width: min(940px, 100%)`. The percentage then resolves against a track
     that is itself waiting on the item — the cyclic case — so the browser
     falls back to the 940px branch, sizes the track to 940px, and the
     percentage resolves against THAT. On a 390px phone the panel came out
     940px wide and hung 663px off the left of the screen: the photo a
     visitor had just tapped was mostly outside the window. Pinning the
     track to the dialog's own width breaks the cycle. */
  grid-template-columns: minmax(0, 1fr);
  padding: 20px; padding-block: max(20px, env(safe-area-inset-top, 0px));
}
dialog.modal-dialog::backdrop { background: rgba(0,0,0,.66); }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.66); z-index: 100;
  display: grid; align-items: start; justify-items: center;
  grid-template-columns: minmax(0, 1fr);        /* see the note above */
  padding: 20px; padding-block: max(20px, env(safe-area-inset-top, 0px)); overflow-y: auto;
}
.modal {
  width: min(680px, 100%);
  /* Belt and braces against the cyclic-percentage trap below: whatever the
     width resolves to, a dialog may never be wider than the space it is in. */
  max-width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  max-height: calc(100vh - 40px); display: flex; flex-direction: column;
}
/* keep a photo from swallowing the whole dialog */
.modal__body img { max-height: 46vh; width: 100%; object-fit: cover; border-radius: 10px; }
.modal--wide { width: min(940px, 100%); }
.modal__head { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal__body { padding: 20px; overflow-y: auto; }
.modal__foot { padding: 14px 20px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; justify-content: flex-end; background: var(--surface-2); flex-wrap: wrap; }
.x-btn { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.x-btn:hover { color: var(--ink); background: var(--surface-3); }

/* ---------- gallery (studio photos) -------------------------------------- */
.gallery__frame {
  position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-sunk);
  aspect-ratio: 16 / 10; max-width: 100%; max-height: min(44vh, 460px);
}
.gallery__frame img { width: 100%; height: 100%; object-fit: cover; max-height: none; border-radius: 0; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(8,11,15,.62); color: #fff; display: grid; place-items: center;
}
.gallery__nav:hover { background: rgba(8,11,15,.85); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(8,11,15,.72); color: #fff;
  border-radius: 100px; padding: 3px 10px; font-family: var(--mono); font-size: var(--t-xs);
}
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb {
  flex: none; width: 76px; aspect-ratio: 4/3; border-radius: 7px; overflow: hidden;
  border: 2px solid transparent; background: none; padding: 0; cursor: pointer; opacity: .6;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; max-height: none; border-radius: 0; }
.gallery__thumb.is-active, .gallery__thumb:hover { opacity: 1; border-color: var(--day); }

/* ---------- wide tables that still have to be read -----------------------
   A table with this many columns does not fit a laptop, and a horizontal
   scrollbar hides the columns that matter most. Below a wide screen each row
   becomes a card and every cell carries its own label. */
.t--customers td { vertical-align: top; }
.t--customers .pill { white-space: nowrap; }
/* Caps rather than hope: left to themselves these columns size to their
   longest pill and push Documents off the right of the screen. */
.t--customers th:nth-child(1), .t--customers td:nth-child(1) { max-width: 205px; }
.t--customers th:nth-child(2), .t--customers td:nth-child(2) { max-width: 205px; }
.t--customers th:nth-child(3), .t--customers td:nth-child(3) { max-width: 180px; }
.t--customers th:nth-child(4), .t--customers td:nth-child(4) { width: 92px; }
.t--customers th:nth-child(5), .t--customers td:nth-child(5) { width: 108px; }
.t--customers th:nth-child(6), .t--customers td:nth-child(6) { max-width: 180px; }
.t--customers th:nth-child(7), .t--customers td:nth-child(7) { max-width: 200px; }
.t--customers td { padding-left: 10px; padding-right: 10px; overflow-wrap: anywhere; }

@media (max-width: 1340px) {
  .t--cards, .t--cards tbody, .t--cards tr, .t--cards td { display: block; width: auto; }
  .t--cards thead { display: none; }
  .t--cards tr {
    border: 1px solid var(--line-soft); border-radius: var(--r-md);
    background: var(--surface); padding: 6px 4px; margin-bottom: 12px;
  }
  /* The desktop column caps would squeeze a card to one letter per line. */
  .t--cards td, .t--cards th { max-width: none !important; width: auto !important; }
  .t--cards td {
    display: flex; gap: 14px; align-items: baseline; justify-content: space-between;
    border-bottom: 1px dashed var(--line-soft); padding: 9px 12px; text-align: right;
  }
  .t--cards td:last-child { border-bottom: 0; }
  .t--cards td::before {
    content: attr(data-label);
    font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-3); text-align: left;
    flex: 0 0 8.5rem; padding-top: 2px;
  }
  .t--cards td:not([data-label])::before { content: ""; flex: 0 0 0; }
  /* One flex item per cell — without the wrapper each child becomes its own
     item and they all end up squeezed side by side. */
  .t--cards .cell { flex: 1 1 auto; min-width: 0; text-align: right; }
  .t--cards .cell .row { justify-content: flex-end; }
  .t-actions { justify-content: flex-end; }
}

/* ---------- the idle prompt ----------------------------------------------- */
.idle {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: center;
  background: rgba(0,0,0,.62); padding: 20px;
}
.idle__card {
  width: min(380px, 100%); background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-3); text-align: center;
}
#idlecount { font-family: var(--mono); }

/* Square draws its own card field inside an iframe; this is the box it
   goes in, styled to match the inputs beside it. */
.sqcard {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); padding: 10px 12px; min-height: 56px;
}
.sqcard .sq-card-component { width: 100%; }

/* ---------- the studio assistant ------------------------------------------ */
/* Above everything. The panel also asks for the browser's top layer (see
   chat.js); this is the fallback for browsers without popover, and it has to
   beat whatever the page this build is embedded in stacks on top — a sticky
   summary card painting over the conversation is how it looked broken. */
/* BOTTOM LEFT, not bottom right.
   Toasts live at right:16px / bottom:16px and this sat at right:18px /
   bottom:18px with a z-index four hundred thousand times higher — so the
   launcher covered every message the platform showed. "Sent", "Saved",
   "The video was not saved" all appeared underneath it, which is how a
   studio stops trusting that anything happened at all.
   Moving the assistant is the smaller change: it is always there, and a
   toast is on screen for a few seconds and must be readable in them. */
#chatroot { position: fixed; left: 18px; bottom: 18px; z-index: 2147483000;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  isolation: isolate;
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.chat__launch {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--day-strong); color: #fff; border: 0; border-radius: 100px;
  padding: 12px 18px; font-size: var(--t-sm); font-weight: 650; cursor: pointer;
  box-shadow: var(--shadow-2);
}
.chat__launch:hover { background: var(--day-hover); }
.chat__launch.is-open { padding: 12px; border-radius: 50%; }
.chat {
  width: min(380px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 120px));
  max-height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  color: var(--ink);
}
/* A popover is centred and borderless by default — put it back where the
   launcher is, and keep it out from under the launcher itself. */
.chat[popover] {
  position: fixed; margin: 0; padding: 0;
  /* Opens above the launcher, on the same side as it. */
  inset: auto auto calc(76px + env(safe-area-inset-bottom, 0px)) 18px;
  border: 1px solid var(--line);
}
.chat[popover]::backdrop { background: transparent; }
@media (max-width: 620px) {
  .chat[popover] { inset: auto auto calc(72px + env(safe-area-inset-bottom, 0px)) 12px; }
  #chatroot { left: 12px; }
}
.chat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
/* The conversation gets the room first.
   Without the floor below, a short window — a laptop with the inspector
   open, a phone in landscape — left the log 28 pixels tall: the answer was
   there, scrolled out of a sliver, which reads exactly like a chat that does
   not reply. The header, the suggestions and the footer give way instead. */
.chat__log {
  flex: 1 1 auto; min-height: 120px; overflow-y: auto;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.chat__msg { max-width: 88%; }
.chat__msg--studio { align-self: flex-start; }
.chat__msg--me { align-self: flex-end; text-align: right; }
.chat__body {
  display: inline-block; text-align: left; padding: 9px 12px; border-radius: 12px;
  font-size: var(--t-sm); line-height: 1.45;
  background: var(--surface-3); color: var(--ink);
}
.chat__msg--me .chat__body { background: var(--day-strong); color: #fff; }
.chat__at { font-size: 10px; color: var(--ink-3); margin-top: 3px; }
/* One scrolling row rather than two or three stacked ones, and gone
   altogether once the conversation is under way — they are a way in, not
   furniture. */
.chat__chips {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
  padding: 0 16px 10px; flex: 0 0 auto; scrollbar-width: none;
}
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips.is-gone { display: none; }
.chat__chips .chip { flex: 0 0 auto; }
.chip {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  border-radius: 100px; padding: 5px 11px; font-size: var(--t-xs); cursor: pointer;
}
.chip:hover { border-color: var(--day-line); color: var(--ink); }
.chat__form { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line-soft); }
.chat__form .input { flex: 1; }
.chat__foot { font-size: var(--t-xs); color: var(--ink-3); padding: 0 16px 12px; margin: 0; flex: 0 0 auto; }
.chat__head { flex: 0 0 auto; }
.chat__form { flex: 0 0 auto; }

/* A short window: anchor to the top and use everything there is, rather than
   hanging off the bottom and being squeezed from both ends. */
@media (max-height: 620px) {
  .chat[popover] {
    inset: 10px 14px auto auto;
    max-height: calc(100vh - 86px);
    max-height: calc(100dvh - 86px);
  }
  .chat__foot { display: none; }
  .chat__head { padding: 10px 14px; }
}
@media (max-width: 620px) { #chatroot { right: 12px; bottom: 12px; } }

/* ---------- checkout, one part at a time ---------------------------------
   Hidden rather than absent: the fields exist in the form from the start, so
   nothing is rebuilt as they are filled and the caret never jumps. */
.is-hidden { display: none !important; }
/* The payment CARD stays gated — card fields for a booking that cannot
   yet be paid for are noise. The continue BUTTON is not gated; see
   .btn--waiting below and the note in stepCheckout. */
.paylock { display: none; }
.paylock.is-ready { display: block; }

/* A primary button that cannot do its job yet.
   Deliberately still a button, still full-strength to tap, and still
   obviously not the finished state: muted rather than hidden, because a
   customer needs to see where the journey ends even while they are two
   fields away from it. */
.btn--waiting {
  background: var(--surface-2); color: var(--ink-2);
  border: 1px dashed var(--line); box-shadow: none;
}
.btn--waiting:hover { background: var(--surface-2); color: var(--ink); }
.paynote { display: block; }
.paynote.is-ready { display: none; }

/* ---------- the sign-in gate on operations -------------------------------- */
.gate {
  min-height: 100vh; display: grid; place-items: center;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(70% 55% at 50% -10%, var(--day-soft), transparent 70%),
    var(--ground);
}
.gate__card {
  width: min(430px, 100%); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-2);
}
.gate__brand { display: flex; align-items: center; gap: 10px; }

/* ---------- video on a studio --------------------------------------------
   A poster drawn here rather than fetched: a thumbnail from YouTube is a
   request to a third party from every studio card, it says who is browsing,
   and it leaves a grey hole offline and in the single-file build. */
.vposter {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 16px; color: #EEF2F7;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(92,156,255,.26), transparent 70%),
    linear-gradient(160deg, #141b25 0%, #0a0d12 100%);
}
/* The reel itself, filling the panel behind the title and the button.
   object-fit: cover because a studio's clip and the panel it sits in are
   rarely the same shape, and letterbox bars inside a card look like a
   mistake. */
.vposter__reel {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
/* With a reel behind it the heavy gradient is in the way: it exists to
   stop a play button disappearing into a photograph, and over moving
   footage a plain scrim does that better. */
.vposter--reel { background: #0a0d12; }
/* The scrim is sized by the worst case, not the average one. A studio
   walkthrough can pan onto a white cyc wall at the exact moment the
   caption is on screen; at a .62 scrim the sub-line computes to about
   3.3:1 against that, which is a failure. At .80 it is near 7.5:1 and
   holds whatever the footage does. */
.vposter--reel::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.06) 34%,
                              rgba(0,0,0,.52) 72%, rgba(0,0,0,.80) 100%);
}
/* And the caption itself is brightened over a reel, where the backdrop
   is unknowable, rather than everywhere. */
.vposter--reel .vposter__kind { color: rgba(238,242,247,.84); }
.vposter--reel .vposter__title,
.vposter--reel .vposter__kind { text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.vposter--reel .vposter__play,
.vposter--reel .vposter__meta { position: relative; z-index: 2; }
/* Pushed to the bottom over a reel: a play button in the dead centre of
   moving footage covers the part worth seeing. */
.vposter--reel { justify-content: flex-end; }
.vposter--reel .vposter__play { margin-bottom: 2px; }

.vposter__play {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.34);
  color: #fff; transition: transform .15s, background .15s;
}
.vposter__play svg { margin-left: 2px; fill: currentColor; }
.vposter__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vposter__title {
  font-weight: 650; font-size: var(--t-sm); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vposter__kind {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .1em;
  text-transform: uppercase; color: rgba(238,242,247,.62);
}
.gallery__play:hover .vposter__play,
.vtile__shot:hover .vposter__play { transform: scale(1.08); background: var(--day-strong); border-color: var(--day); }

/* the frame while a video is the current item */
.gallery__frame--video { background: #0a0d12; }
.gallery__play { position: relative; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; }
.vplayer { position: absolute; inset: 0; background: #000; }
.vplayer__el { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.vblocked {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 4px;
  padding: 24px; background: #0f141c; color: #EEF2F7;
}
.vblocked .muted { color: rgba(238,242,247,.72); max-width: 46ch; }
.gallery__thumb--video { position: relative; display: grid; place-items: center; background: #0f141c; color: #EEF2F7; }
.gallery__thumb--video svg { fill: currentColor; }

/* admin: the video tiles under a studio's photographs */
.video-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.vtile {
  margin: 0; position: relative; border: 1px solid var(--line-soft); border-radius: var(--r-md);
  overflow: hidden; background: var(--surface-2);
}
.vtile__shot { position: relative; display: block; aspect-ratio: 16 / 10; text-decoration: none; }
.vtile__shot:hover { text-decoration: none; }
.vadd { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vadd .input { flex: 1 1 220px; min-width: 160px; }
.vadd .input + .input { flex: 0 1 180px; }

/* ---------- admin photo manager ------------------------------------------ */
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.photo {
  margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); display: flex; flex-direction: column; position: relative;
}
.photo.is-primary { border-color: var(--day); box-shadow: 0 0 0 1px var(--day); }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo__badge {
  position: absolute; top: 8px; left: 8px; background: var(--day); color: #fff;
  font-size: var(--t-xs); font-weight: 650; border-radius: 4px; padding: 2px 7px;
}
.photo__bar { display: flex; align-items: center; gap: 2px; padding: 5px 6px; border-top: 1px solid var(--line-soft); min-width: 0; }
.photo__bar .btn { flex: none; padding-inline: 7px; }
.photo__del:hover { color: var(--bad); background: var(--bad-soft); }
.photo-empty {
  display: flex; align-items: center; gap: 12px; padding: 20px;
  border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--ink-3);
}

/* ---------- whole-studio buyout -------------------------------------------
   Four bands, read top to bottom, instead of one long left column beside one
   long right column. The old arrangement put a badge, a saving, a title, a
   tagline, a spec grid, a feature list and a room list in one stack, and a
   price, two rate lines, a percentage, two availability lines and two buttons
   in the other — thirteen things in two piles, every one of them competing
   for the same glance.

     1  who it is, and what it costs      identity left, price right
     2  the numbers                        one strip, four across
     3  what you get                       features | the rooms, as chips
     4  when, and the way in               availability, then the buttons

   Each band is separated by a rule, so the eye knows when one idea has ended.
   -------------------------------------------------------------------------- */
.buyout {
  margin-top: 24px; padding: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--day-line);
  background: linear-gradient(135deg, var(--day-soft), transparent 65%);
}
.buyout.is-selected { box-shadow: inset 0 0 0 2px var(--day); }

/* ---- band 1: identity and price ---- */
.buyout__head {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  padding: 22px 22px 20px;
}
.buyout__id { min-width: 0; }
.buyout__money { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.buyout__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.buyout__price .num { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 700; line-height: 1; }
.buyout__was { text-decoration: line-through; color: var(--ink-3); font-size: var(--t-md); }
.buyout__rates {
  display: flex; flex-direction: column; gap: 2px;
  font-size: var(--t-xs); color: var(--ink-3);
}
.buyout__save {
  /* flex-start, not center: when the sentence wraps — and beside a price
     column it will — the tick stays on the first line instead of floating to
     the middle of two. */
  display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0;
  font-size: var(--t-sm); font-weight: 600; color: var(--good);
  line-height: 1.4;
}
.buyout__save svg { flex: none; margin-top: 2px; }

/* ---- band 2: the numbers ---- */
.buyout__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

/* ---- band 3: what you get ---- */
.buyout__cols {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 28px;
  padding: 20px 22px;
}
.buyout__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.buyout__feats li { display: flex; gap: 9px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; }
.buyout__feats svg { color: var(--day); flex: none; margin-top: 2px; }
/* The rooms as chips rather than a comma-separated grey sentence: this is
   what the money actually buys, so it gets to look like a list of things. */
.buyout__rooms { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- band 4: availability and action ---- */
.buyout__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line-soft);
}
.buyout__when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; min-width: 0; }

/* The booking column is narrow because a rail sits either side of it, so the
   side-by-side arrangements are opted into rather than out of. */
@media (min-width: 900px) {
  .buyout__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .buyout__cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
@media (min-width: 1180px) {
  .buyout__head {
    /* A capped second column, not auto. Left to size itself the price column
       grew to fit the saving sentence on one line and squeezed the title into
       three. The name of the thing outranks the longest line beside it. */
    grid-template-columns: minmax(0, 1fr) minmax(200px, 290px);
    align-items: start; gap: 28px;
  }
  .buyout__money { align-items: flex-end; text-align: right; }
  .buyout__rates { align-items: flex-end; }
}

/* ---------- studio copy editor -------------------------------------------- */
.copyed { margin-top: 16px; border-top: 1px solid var(--line-soft); }
.copyed > summary {
  display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none;
  padding: 12px 2px 2px; font-size: var(--t-sm); font-weight: 600; color: var(--day);
}
.copyed > summary::-webkit-details-marker { display: none; }
.copyed > summary::after { content: "▸"; margin-left: 2px; font-size: 11px; transition: transform .15s; }
.copyed[open] > summary::after { transform: rotate(90deg); }
.copyed > summary:hover { text-decoration: underline; }
.copyed__body { padding: 14px 0 4px; }
.listrow { display: flex; align-items: center; gap: 4px; }
.listrow .input { flex: 1; min-width: 0; }
.listrow .btn { flex: none; padding-inline: 7px; }

/* drag to reorder */
.photo[draggable="true"] { cursor: grab; }
.photo.is-dragging { opacity: .4; cursor: grabbing; }
.photo.is-over { border-color: var(--day); box-shadow: 0 0 0 2px var(--day); transform: translateY(-2px); }
.photo__grip {
  position: absolute; top: 6px; right: 8px; color: #fff; opacity: .75;
  font-size: 15px; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none;
}
.photo__views {
  position: absolute; bottom: 44px; right: 8px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(8,11,15,.72); color: #fff; border-radius: 100px; padding: 2px 8px;
  font-family: var(--mono); font-size: var(--t-xs);
}
.photo__views.is-top { background: var(--day); }

/* client gallery: the large frame is a button so a click counts as a view */
.gallery__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__frame.is-zoomed { max-height: min(74vh, 720px); }
.gallery__frame.is-zoomed .gallery__open { cursor: zoom-out; }
.gallery__frame.is-zoomed img { object-fit: contain; background: var(--surface-sunk); }

/* ---------- access PIN + barcode ----------------------------------------- */
.pincard {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 18px 20px; margin-top: 24px;
}
.pincard--compact { margin-top: 0; padding: 14px 16px; gap: 14px; }
.pincard__side { flex: none; min-width: 150px; }
.pincard__pin {
  font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: .12em;
  line-height: 1.1; margin: 2px 0 4px;
}
/* The two machine-readable codes stay together: side by side when there is
   room, and together on the next line when there is not.
   The min-width is the space the pair actually needs — barcode floor (240 +
   24 of padding), the gap, and the QR tile (164 + 16). Below that the whole
   pair drops under the PIN and uses the full width of the card, which is what
   keeps the two codes beside each other instead of the QR stranding itself on
   a line of its own. */
.pincard__codes {
  flex: 1; min-width: 456px; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: center;
}
.pincard__code {
  flex: 1; min-width: 200px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff; border-radius: 8px; padding: 10px 12px;
}
.pincard__code { min-width: 240px; }
/* The barcode is allowed to grow but never to shrink past the point where the
   narrow bars stop resolving — on a narrow screen the card wraps instead. */
.pincard__code .barcode { width: 100%; height: auto; min-width: 240px; max-width: 420px; display: block; }
.pincard__hr { font-size: var(--t-xs); color: #000; letter-spacing: .14em; }

/* The QR sits on its own white tile beside the barcode. White matters: a
   scanner needs the quiet zone to be the same colour as the background, and
   on the dark theme a transparent QR has nothing to find its edges against. */
.pincard__qr {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #fff; border-radius: 8px; padding: 8px;
}
.pincard__qr .qr { display: block; width: 164px; height: 164px; }
.pincard--compact .pincard__qr .qr { width: 132px; height: 132px; }
.pincard__qr .xsmall { color: #4b5563; }
@media (max-width: 620px) {
  .pincard__qr { margin: 0 auto; }
}

/* the setup sheet at the door */
.codes { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.codes__one {
  background: #fff; border-radius: 8px; padding: 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.codes__one .barcode { width: 230px; height: auto; display: block; }
.codes__one .xsmall { color: #4b5563; }

/* ---------- policy list --------------------------------------------------- */
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ticks li { position: relative; padding-left: 16px; color: var(--ink-2); line-height: 1.45; }
.ticks li::before { content: "—"; position: absolute; left: 0; color: var(--day); }
.card--rule { border-color: var(--tung-line); background: var(--tung-soft); }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; }
.toast {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--day);
  border-radius: var(--r-md); padding: 10px 14px; box-shadow: var(--shadow-2);
  font-size: var(--t-sm); max-width: 330px; animation: toastIn .22s ease;
}
.toast--good { border-left-color: var(--good); }
.toast--bad { border-left-color: var(--bad); }
.toast--warn { border-left-color: var(--warn); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .toasts { bottom: 78px; } }

/* ---------- 15. Tables (admin) ------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 640px; }
table.t th {
  text-align: left; font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-3); font-weight: 500;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t td.num, table.t th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.t__id { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-2); }
.t-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* The selection column, the way a mail client does it: a narrow gutter, a
   real checkbox, and a ticked row that is visibly picked out. .check in this
   stylesheet is the flex LABEL wrapper, so a bare checkbox gets .tick. */
table.t th.t-pick, table.t td.t-pick { width: 34px; padding-right: 0; }
.tick {
  width: 16px; height: 16px; margin: 0; flex: none;
  accent-color: var(--day); cursor: pointer;
}
/* A disabled staff account: still listed, visibly not in use. */
table.t tbody tr.is-off td { opacity: .55; }
table.t tbody tr.is-off .pill--bad { opacity: 1; }

table.t tbody tr.is-picked { background: var(--day-soft); }
table.t tbody tr.is-picked:hover { background: color-mix(in srgb, var(--day-soft) 70%, var(--surface-2)); }
table.t tbody tr.is-picked td { border-bottom-color: var(--day-line); }

/* editable rule rows */
.rule-row {
  display: grid; grid-template-columns: minmax(140px, 1.4fr) repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.rule-row:last-child { border-bottom: 0; }
.rule-row .input { padding: 7px 10px; }
.mini-input { width: 84px; }

/* ---------- 16. KPI tiles / dashboard ------------------------------------ */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 15px 16px; }
.kpi__k { font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.kpi__v { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi__d { font-size: var(--t-xs); color: var(--ink-2); margin-top: 2px; }
/* A tile you can open. It stays a tile to look at and becomes a button to
   use: same box, same type, plus a line that appears on hover saying so. */
.kpi--open { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; position: relative; transition: border-color .15s, transform .08s; }
.kpi--open:hover { border-color: var(--day); }
.kpi--open:active { transform: translateY(1px); }
.kpi--open:focus-visible { outline: 2px solid var(--day); outline-offset: 2px; }
.kpi__more { display: block; margin-top: 8px; font-size: var(--t-xs); color: var(--day); opacity: 0; transition: opacity .15s; }

/* ---- customer intelligence ----------------------------------------------
   A panel inside a column, not a dashboard across a page, so the tiles are
   smaller and the figure is a figure rather than a headline. */
.kpis--tight { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.kpis--tight .kpi { padding: 10px 12px; }
.kpis--tight .kpi__v { font-size: 1.15rem; margin-top: 2px; }
/* A room name is words, not a figure, so it takes the body face and wraps
   rather than being set in the display face at figure size. */
.kpi__v--word { font-family: var(--body); font-size: .95rem !important; font-weight: 600; line-height: 1.25; letter-spacing: 0; }

.intel { list-style: none; margin: 0; padding: 0; }
.intel__i { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.intel__i:last-child { border-bottom: 0; padding-bottom: 0; }
.intel__i:first-child { padding-top: 0; }
/* A suggestion somebody has answered steps back rather than disappearing:
   the answer is part of the record, and a row that vanishes when you press
   it leaves nothing to undo. */
.intel__i.is-decided { opacity: .62; }

/* The confidence, as a length rather than only a number. A bar is read at
   a glance and a number has to be compared; both are here because the
   glance is for scanning and the number is for arguing with. */
.conf {
  display: inline-block; width: 54px; height: 6px; flex: none;
  background: var(--line-soft); border-radius: 999px; overflow: hidden;
}
.conf__fill { display: block; height: 100%; background: var(--day); border-radius: 999px; }
.intel__i .pill--warn ~ .conf .conf__fill { background: var(--warn); }

.input--sm { padding: 5px 8px; font-size: var(--t-sm); height: auto; }

@media (max-width: 720px) {
  .conf { width: 38px; }
}
.kpi--open:hover .kpi__more, .kpi--open:focus-visible .kpi__more { opacity: 1; }
@media (hover: none) { .kpi__more { opacity: 1; } }
.kpi--accent { border-color: var(--day-line); background: linear-gradient(180deg, var(--day-soft), transparent 70%); }
.kpi--warm { border-color: var(--tung-line); background: linear-gradient(180deg, var(--tung-soft), transparent 70%); }
.kpi--good { border-color: color-mix(in srgb, var(--good) 40%, transparent); background: linear-gradient(180deg, var(--good-soft), transparent 70%); }

.bar { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bar__fill { height: 100%; background: var(--day); border-radius: 4px; }
.bar__fill--warm { background: var(--tung); }
.bar__fill--good { background: var(--good); }

/* utilization sparkline rows */
.util { display: grid; grid-template-columns: 130px 1fr 54px; gap: 12px; align-items: center; padding: 7px 0; font-size: var(--t-sm); }

/* revenue split: wider label column, amount right-aligned */
.revrow { display: grid; grid-template-columns: minmax(150px, 250px) 1fr auto; gap: 14px; align-items: center; padding: 6px 0; font-size: var(--t-sm); }
.revrow__k { min-width: 0; }
.revrow__v { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.revnote { margin: 0 0 12px 0; padding-left: 2px; }
@media (max-width: 620px) {
  .revrow { grid-template-columns: 1fr auto; }
  .revrow .bar { grid-column: 1 / -1; }
}

/* ---------- 17. Admin shell ---------------------------------------------- */
.admin { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.admin__side {
  background: var(--surface); border-right: 1px solid var(--line-soft);
  padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.admin__main { padding: 22px 26px 60px; min-width: 0; }
.side-group { font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 14px 10px 5px; }
.side-link {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r-sm);
  background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
  color: var(--ink-2); font-size: var(--t-sm);
}
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.is-active { background: var(--day-soft); color: var(--day); font-weight: 600; }
.side-link.is-locked { opacity: .38; cursor: not-allowed; }
.side-link svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin__side { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 10px; }
  .side-group { display: none; }
  .side-link { width: auto; white-space: nowrap; }
  .admin__main { padding: 16px; }
}
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

/* ---------- 18. Misc ----------------------------------------------------- */
.note {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2);
  flex-wrap: wrap;
}
.note .btn { align-self: center; margin-left: auto; }
.note--warm { background: var(--tung-soft); border-color: var(--tung-line); color: var(--ink); }
.note--day { background: var(--day-soft); border-color: var(--day-line); color: var(--ink); }
.note--good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); color: var(--ink); }
.note__icon { flex: none; width: 17px; height: 17px; margin-top: 2px; }

.divider { height: 1px; background: var(--line-soft); margin: 18px 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty h3 { color: var(--ink-2); margin-bottom: 6px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.timeline li { position: relative; font-size: var(--t-sm); }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line); }
.timeline li.is-done::before { background: var(--day); border-color: var(--day); }
/* A confirmation the server could not send. Marked, because a client who
   is never going to receive the email should be able to see that from the
   screen rather than from its absence three days later. */
.timeline li.is-bad::before { background: var(--bad); border-color: var(--bad); }
.timeline li.is-bad .dim { color: var(--bad); }
/* Laid across the page instead of down it, for the full-width payment step
   where six stacked rows would push the Pay button off the screen. Collapses
   back to the vertical form on narrow screens. */
@media (min-width: 760px) {
  .timeline--row { flex-direction: row; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); gap: 0; }
  .timeline--row li { flex: 1; padding-right: 14px; }
  .timeline--row li::before { left: 0; top: -23px; }
}

.map {
  position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background:
    linear-gradient(0deg, transparent 49.6%, var(--line-soft) 49.6%, var(--line-soft) 50.4%, transparent 50.4%) 0 0/100% 46px,
    linear-gradient(90deg, transparent 49.6%, var(--line-soft) 49.6%, var(--line-soft) 50.4%, transparent 50.4%) 0 0/46px 100%,
    var(--surface-2);
  aspect-ratio: 16 / 9; max-width: 100%;
}
.map__road { position: absolute; background: var(--surface-3); }
.map__pin {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.map__pin i { width: 13px; height: 13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--day); border: 2px solid var(--surface); display: block; }
.map__pin span { font-size: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.map__pin--hotel i { background: var(--tung); }

.conf-hero {
  border-radius: var(--r-xl); padding: clamp(24px, 5vw, 48px);
  background: radial-gradient(120% 130% at 12% 0%, var(--day-soft), transparent 60%), var(--surface);
  border: 1px solid var(--line-soft);
}
.conf-code { font-family: var(--mono); font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: .04em; color: var(--day); }

.hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid var(--line-soft); background: var(--surface);
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } }
.hero__copy { padding: clamp(24px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hero__media { position: relative; min-height: 280px; background: var(--surface-sunk); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stat { display: flex; gap: 26px; flex-wrap: wrap; }

/* =========================================================================
   THE LANDING PAGE
   -------------------------------------------------------------------------
   A photograph the width of the window, the one sentence over it, and the
   search sitting on the seam between the picture and the page. The search
   is the point: the three questions in it are the first three the booking
   flow asks, so it is the start of the booking rather than an advert for
   it.

   The hero breaks out of .wrap with a negative margin rather than living
   outside it, because everything below it is inside .wrap and a second
   container would mean two places to keep the page width in step.
   ========================================================================= */
.lander { padding-bottom: 40px; }
.lander__hero {
  position: relative;
  min-height: clamp(300px, 46vh, 460px);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  /* Room at the bottom for the search bar to sit over the seam. */
  padding: 56px 20px 92px;
}
.lander__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,9,13,.62) 0%, rgba(6,9,13,.38) 45%,
                                      rgba(6,9,13,.72) 100%);
}
.lander__head { position: relative; text-align: center; max-width: 46ch; }
.lander__eyebrow {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.78); margin: 0 0 12px;
}
.lander__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em;
  /* White on a photograph, so the shadow is doing accessibility work and
     not decoration: the scrim alone cannot guarantee contrast over an
     image the studio can change from the admin screen. */
  color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.55);
  margin: 0;
}

.searchbar {
  position: relative; margin-top: -56px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 10px 10px 8px;
  box-shadow: var(--shadow-3);
}
.searchbar__row { display: flex; align-items: stretch; gap: 6px; }
.searchbar__field {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 8px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: background .14s, border-color .14s;
}
.searchbar__field:hover { background: var(--surface-2); }
.searchbar__field:focus-within { border-color: var(--day); background: var(--surface-2); }
.searchbar__field + .searchbar__field { box-shadow: -1px 0 0 var(--line-soft); }
.searchbar__field--sm { flex: 0 1 190px; }
.searchbar__label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.searchbar__input {
  border: 0; background: none; padding: 0; width: 100%; min-width: 0;
  font-size: var(--t-md); font-weight: 600; color: var(--ink);
  appearance: none;
}
.searchbar__input:focus { outline: none; }
.searchbar__input::placeholder { color: var(--ink-3); font-weight: 400; }
/* The date and number controls bring their own chrome in some engines. */
.searchbar__input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.searchbar__go {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 24px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--day-strong); color: #fff; font-weight: 650; font-size: var(--t-md);
}
.searchbar__go:hover { background: var(--day-hover); }
.searchbar__go svg { stroke: currentColor; }
.searchbar__note {
  margin: 8px 0 2px; padding: 0 14px;
  font-size: var(--t-xs); color: var(--ink-3);
}
@media (max-width: 820px) {
  .lander__hero { padding-bottom: 72px; }
  .searchbar { margin-top: -44px; border-radius: 16px; }
  .searchbar__row { flex-wrap: wrap; }
  .searchbar__field { flex: 1 1 100%; }
  .searchbar__field + .searchbar__field { box-shadow: 0 -1px 0 var(--line-soft); }
  .searchbar__field--sm { flex: 1 1 100%; }
  .searchbar__go { width: 100%; justify-content: center; padding: 14px 24px; margin-top: 6px; }
}

.promo-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.promo {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--surface); color: inherit; text-decoration: none;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.promo:hover {
  text-decoration: none; border-color: var(--day-line);
  transform: translateY(-2px); box-shadow: var(--shadow-2);
}
.promo__icon { color: var(--day); }
.promo__title { font-family: var(--display); font-weight: 700; font-size: var(--t-lg); }
.promo__body { font-size: var(--t-sm); color: var(--ink-2); flex: 1; }
/* The arrow rides on the text. Without this it inherits the global
   `svg { display: block }` and drops onto a line of its own. */
.promo__link { font-size: var(--t-sm); font-weight: 650; color: var(--day); }
.promo__link svg { display: inline-block; vertical-align: -2px; margin-left: 2px; }

/* The search bar is already a generous block of white; a full section's
   padding under it leaves a hole. */
.searchbar + .section { padding-top: clamp(24px, 3vw, 44px); }

.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

/* two-column step layouts — collapse to one column on phones */
.split { display: grid; gap: 18px; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--a { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.split--b { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split--a, .split--b { grid-template-columns: minmax(0, 1fr); } }

.cols-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.cols-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.cols-4 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); }

.scroll-x { overflow-x: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.foot { border-top: 1px solid var(--line-soft); padding: 26px 0 40px; color: var(--ink-3); font-size: var(--t-sm); margin-top: 40px; }

/* ---------- floor plan ---------------------------------------------------
   The building, drawn once and used on the landing page and in the booking
   flow. Everything is driven by the theme tokens, so the same drawing reads
   on the dark ground and on white. ---------------------------------------- */
.fp { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.fp__stage {
  background: var(--surface-sunk); border: 1px solid var(--line);
  border-radius: var(--r-md, 12px); padding: 14px;
}
.fp__svg { display: block; width: 100%; height: auto; max-height: 72vh; margin: 0 auto; }

/* the shell and the cyc */
.fp__shell { fill: none; stroke: var(--ink-3); stroke-width: 3.5; }
.fp__cyc   { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 7 5; }

/* rooms */
.fp__room rect {
  fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5;
  transition: fill .14s ease, stroke .14s ease;
}
.fp__room { cursor: pointer; outline: none; }
.fp__label { fill: var(--ink-2); font-family: var(--display); font-weight: 700; font-size: 21px; }
.fp__sub   { fill: var(--ink-3); font-family: var(--mono); font-size: 16px; }
.fp__tag   { fill: var(--ink-3); font-family: var(--mono); font-size: 15px; letter-spacing: .06em; }

/* bookable now */
.fp__room--open rect { fill: var(--day-soft); stroke: var(--day-line); }
.fp__room--open .fp__label { fill: var(--ink); }
.fp__room--open .fp__sub { fill: var(--day); }

/* bookable later, or not at all */
.fp__room--coming-soon rect { fill: var(--surface-2); stroke: var(--tung-line); }
.fp__room--coming-soon .fp__sub { fill: var(--tung); }
.fp__room--unavailable rect { fill: var(--surface-2); stroke: var(--line); }
.fp__room--unavailable .fp__label,
.fp__room--unavailable .fp__sub { fill: var(--ink-3); }

/* support rooms sit back */
.fp__room--support rect { fill: none; stroke: var(--line); }
.fp__room--util .fp__label { font-size: 17px; }

/* hover and the chosen room */
.fp__room:hover rect { fill: var(--day-soft); stroke: var(--day); }
.fp__room:focus-visible rect { stroke: var(--day); stroke-width: 3; }
.fp__room.is-selected rect { fill: var(--day-soft); stroke: var(--day); stroke-width: 5; }
.fp__room.is-selected .fp__label { fill: var(--day); }

/* doors and docks */
.fp__door path { fill: none; stroke: var(--bad); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* the panel beside the plan */
.fp__side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.fp__legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: var(--t-xs); color: var(--ink-3); }
.fp__legend span { display: inline-flex; align-items: center; gap: 6px; }
.fp__sw { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--line); display: inline-block; }
.fp__sw--open { background: var(--day-soft); border-color: var(--day-line); }
.fp__sw--soon { border-color: var(--tung-line); }
.fp__sw--support { background: none; }
.fp__detail {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md, 12px); padding: 16px;
}
.fp__hint { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.5; }
.fp__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.fp__k { display: block; font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase;
         letter-spacing: .08em; color: var(--ink-3); }
.fp__v { display: block; font-weight: 650; font-size: var(--t-sm); }

/* Inside a column the plan takes the full width and the panel sits under it. */
.fp--stacked { grid-template-columns: minmax(0, 1fr); }
.fp--stacked .fp__side { position: static; }
.fp--stacked .fp__svg { max-height: 86vh; }
.fp--stacked .fp__detail { max-width: 520px; }

@media (max-width: 860px) {
  .fp { grid-template-columns: minmax(0, 1fr); }
  .fp__side { position: static; }
  .fp__svg { max-height: none; }
}

/* ---------- the studio's contact details ---------------------------------
   Printed in the top bar, the booking rail, the floor plan and the footer.
   Always tappable: a phone number you cannot press is a phone number you
   have to retype. ---------------------------------------------------------- */
.contact__rows { display: flex; flex-direction: column; gap: 6px; }
.contact__link {
  display: inline-flex; align-items: flex-start; gap: 7px;
  font-size: var(--t-sm); color: var(--ink-2); text-decoration: none; line-height: 1.45;
}
.contact__link svg { flex: none; margin-top: 2px; color: var(--ink-3); }
.contact__link:hover { color: var(--day); }
.contact__link:hover svg { color: var(--day); }
.contact__link--plain { color: var(--ink-3); }
.contact__link--plain:hover { color: var(--ink-3); }

.topnav__tel {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: var(--t-sm); white-space: nowrap;
}
/* on a phone the number is the first thing to keep and the nav is tight */
@media (max-width: 720px) { .topnav__tel span, .topnav__tel { font-size: var(--t-xs); } }

.rail__contact { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* a card carrying something the booking still owes */
.card--todo { border-color: var(--tung-line); box-shadow: inset 0 0 0 1px var(--tung-line); }

/* ---------- marketing centre ---------------------------------------------- */
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: var(--t-sm); cursor: pointer;
}
.chip:hover { border-color: var(--day-line); color: var(--ink); }
.chip.is-active { background: var(--day-soft); border-color: var(--day); color: var(--ink); font-weight: 650; }
.chip__n { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); }
.chip.is-active .chip__n { color: var(--day); }

/* who to call first */
.due-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  width: 100%; text-align: left; padding: 11px 0; border: 0; border-bottom: 1px dashed var(--line-soft);
  background: none; color: inherit; cursor: pointer;
}
.due-row:last-child { border-bottom: 0; }
.due-row:hover .due-row__who strong { color: var(--day); }
.due-row__who, .due-row__why { display: flex; flex-direction: column; gap: 2px; }
.due-row__why { text-align: right; }
.due-row__val { font-weight: 700; min-width: 72px; text-align: right; }

/* segment distribution */
.seg-row {
  display: grid; grid-template-columns: 136px 1fr 44px; gap: 12px; align-items: center;
  width: 100%; padding: 7px 0; border: 0; background: none; color: inherit; cursor: pointer;
}
.seg-row:hover .seg-row__bar i { background: var(--day); }
.seg-row__label { text-align: left; }
.seg-row__bar { height: 7px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.seg-row__bar i { display: block; height: 100%; background: var(--day-line); border-radius: 4px; }
.seg-row__n { text-align: right; font-weight: 650; }

/* activity timeline */
.tl { list-style: none; margin: 0; padding: 0; max-height: 620px; overflow: auto; }
.tl__i {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start;
  padding: 9px 0 9px 16px; border-left: 2px solid var(--line); position: relative;
}
.tl__i::before {
  content: ""; position: absolute; left: -5px; top: 15px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line);
}
.tl__i--good::before { background: var(--good); border-color: var(--good); }
.tl__i--day::before  { background: var(--day); border-color: var(--day); }
.tl__i--warn::before { background: var(--warn); border-color: var(--warn); }
.tl__i--bad::before  { background: var(--bad); border-color: var(--bad); }
.tl__d { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); padding-top: 2px; }
.tl__b { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-sm); }

@media (max-width: 720px) {
  .due-row { grid-template-columns: 1fr auto; }
  .due-row__val { grid-column: 2; }
  .seg-row { grid-template-columns: 112px 1fr 36px; }
  .tl__i { grid-template-columns: 1fr; }
}

/* ---------- the three-part review ----------------------------------------
   A small wizard inside a wizard. It reads as a set of steps rather than
   tabs, because they are done in order and the last one gates payment. ---- */
.subwiz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.subwiz__step {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); cursor: pointer; font-size: var(--t-sm);
}
.subwiz__step:hover:not(:disabled) { border-color: var(--day-line); color: var(--ink-2); }
.subwiz__step:disabled { opacity: .45; cursor: not-allowed; }
.subwiz__n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-3);
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 600;
}
.subwiz__l { font-weight: 600; line-height: 1.25; }
.subwiz__step.is-now { border-color: var(--day); background: var(--day-soft); color: var(--ink); }
.subwiz__step.is-now .subwiz__n { background: var(--day); color: #fff; }
.subwiz__step.is-done { color: var(--ink-2); border-color: var(--good); }
.subwiz__step.is-done .subwiz__n { background: var(--good); color: var(--ink-inv); }
@media (max-width: 760px) {
  .subwiz { grid-template-columns: 1fr; }
  .subwiz__step { padding: 10px 12px; }
}

/* consent block on the sign-up form */
.consent { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--surface-sunk); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: var(--t-sm); cursor: pointer; line-height: 1.45; }
.check input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--day); }

/* duplicate review during an import */
.dupe {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: start;
  padding: 14px 0; border-bottom: 1px dashed var(--line-soft);
}
.dupe:last-child { border-bottom: 0; }
.dupe__side { min-width: 0; }
.dupe__side .eyebrow { margin: 0 0 6px; }
.dupe__act { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; min-width: 150px; }
.dupe__act .chip { width: 100%; justify-content: center; }
@media (max-width: 820px) {
  .dupe { grid-template-columns: 1fr; }
  .dupe__act { align-items: stretch; min-width: 0; }
}


/* ---------- door access screen -------------------------------------------
   Built to be read from arm's length by someone standing at a desk, not
   leaning into a monitor. ------------------------------------------------- */
.door { display: grid; gap: 20px; }
.door__scan {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: 20px;
}
.door__input {
  font-family: var(--mono); font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: .14em; padding: 16px 18px; width: 100%;
}
.door__which { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.door__which .input { min-width: 220px; }

.verdict {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-radius: var(--r-md); padding: 22px 24px; border: 2px solid;
}
.verdict--ok { background: var(--good-soft); border-color: var(--good); }
.verdict--no { background: var(--bad-soft); border-color: var(--bad); }
.verdict__mark { flex: none; display: grid; place-items: center; }
/* A third state, because there is a third answer. An account PIN typed
   at the door is neither a grant nor a refusal: it is a real code that
   identifies a person and opens nothing, and painting it red told the
   desk the customer had done something wrong. */
.verdict--info { background: var(--day-soft); border-color: var(--day); }
.verdict--ok .verdict__mark { color: var(--good); }
.verdict--no .verdict__mark { color: var(--bad); }
.verdict--info .verdict__mark { color: var(--day); }
.verdict__head {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.1; margin: 0;
}
.verdict__sub { margin: 4px 0 0; color: var(--ink-2); font-size: var(--t-md); }
.verdict__code {
  margin-left: auto; font-size: var(--t-sm); color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 10px;
}
@media (max-width: 620px) {
  .door__which { align-items: stretch; width: 100%; }
  .verdict__code { margin-left: 0; }
}

/* =========================================================================
   PRINT — receipts and invoices on paper
   -------------------------------------------------------------------------
   Printing from a dialog used to put the whole page on paper: the dashboard
   behind it, the sidebar, the booking rail, eight sheets for a one-page
   receipt. ZS.preparePrint() copies the document being printed into
   #printroot and marks the body; everything else is hidden here, and the
   receipt is set for letter rather than for a screen.
   ========================================================================= */
/* ---- a signed document, on screen and on paper -------------------------
   The terms a client actually signed, shown back to the desk. On screen the
   text scrolls inside the dialog so the signature block stays reachable
   without a long scroll; on paper it is simply the document, and the scroll
   box is undone below so nothing is clipped at 260px on a sheet of letter. */
.doc-sheet__head { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.doc-sheet__text {
  max-height: 46vh; overflow: auto;
  border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 16px 18px; background: var(--surface-2);
  font-size: var(--t-sm); line-height: 1.6;
}
.doc-sheet__text p { margin: 0 0 10px; }
.doc-sheet__text .eyebrow { margin-top: 16px; }
.doc-sheet__text .eyebrow:first-child { margin-top: 0; }

#printroot { display: none; }

@media print {
  @page { size: letter portrait; margin: 14mm; }

  /* Paper is white whatever theme the screen was in, and the ink has to be
     ink — the dark palette prints as grey mush on a laser printer. */
  :root, :root[data-theme="dark"], :root[data-theme="light"] {
    --ground: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #f4f6f9;
    --surface-sunk: #fff; --line: #b9c3cf; --line-soft: #d9e0e8;
    --ink: #000; --ink-2: #26303c; --ink-3: #4e5a68; --ink-inv: #fff;
    --day: #123c8c; --good: #0a6b45; --tung: #7a4a0c; --bad: #9c2a30;
    --shadow-1: none; --shadow-2: none; --shadow-3: none;
  }
  html, body { background: #fff !important; color: #000; }

  /* Only the printed document. The dialog is hidden explicitly as well as by
     the rule below it: an open <dialog> lives in the top layer, and engines
     disagree about how that paginates. */
  body.is-printing > *:not(#printroot) { display: none !important; }
  body.is-printing dialog, body.is-printing .modal-backdrop { display: none !important; }
  #printroot { display: block !important; }

  /* A plain Ctrl-P on any screen still drops the furniture. */
  .topbar, .mobar, .toasts, .rail, .summary-col, .wizbar, .stepnav,
  .admin__side, .modal__foot, .x-btn, .btn, .sheet-backdrop { display: none !important; }

  /* Nothing that belongs together may be split across a page break. */
  .pincard, .card, .li, .t tr, .codes__one, .note { break-inside: avoid; }
  thead { display: table-header-group; }

  /* Receipt geometry: the screen card is generous because it has a screen to
     be generous with. On paper the same content reads at 11px and the codes
     shrink to what a scanner still resolves off a laser print — the narrow
     bar stays near 13 mil, well above the 7.5 mil floor. */
  #printroot { font-size: 11px; line-height: 1.4; }
  #printroot .pincard { margin-top: 10px; padding: 10px 12px; gap: 12px; border-color: #b9c3cf; }
  #printroot .pincard__pin { font-size: 1.7rem; margin: 0 0 2px; }
  #printroot .pincard__side { min-width: 120px; }
  #printroot .pincard__codes { min-width: 0; gap: 10px; flex-wrap: nowrap; }
  #printroot .pincard__code { min-width: 0; padding: 6px 8px; }
  #printroot .pincard__code .barcode { min-width: 190px; max-width: 300px; }
  #printroot .pincard__qr { padding: 4px; }
  #printroot .pincard__qr .qr,
  #printroot .pincard--compact .pincard__qr .qr { width: 104px; height: 104px; }
  /* A document prints whole. The 46vh scroll box is a screen affordance,
     and leaving it on would put four clauses of an eighteen-clause
     agreement on the paper and silently drop the rest. */
  #printroot .doc-sheet__text {
    max-height: none; overflow: visible; border: 0; padding: 0; background: none;
    font-size: 10.5px; line-height: 1.45;
  }
  #printroot .doc-sheet__head { border-bottom: 1px solid #b9c3cf; }

  #printroot .divider { margin: 8px 0; }
  #printroot .stack.gap-16 { gap: 10px; }
  #printroot .li { padding: 4px 0; }
  #printroot .li--total { margin-top: 5px; padding-top: 7px; }
  #printroot .li--total .li__amt { font-size: 1.05rem; }
  #printroot .brand__name { font-size: 1rem; }
  /* The map is a screen convenience; the address beneath it is what a printed
     receipt needs, and the tiles cost most of a page. */
  .map, .mapframe { display: none !important; }
  #printroot .timeline { display: none; }

  /* An invoice for a full production runs to twenty-odd lines. Set tight, a
     table that long still lands on the second sheet rather than a third. */
  #printroot table.t th { padding: 5px 8px; font-size: 9.5px; }
  #printroot table.t td { padding: 4px 8px; font-size: 10px; }
  #printroot .table-wrap { border: 0; border-radius: 0; overflow: visible; }
}

/* =========================================================================
   30. Space detail — the panel behind "See photos"

   Modelled on how the big travel sites present a room: a tinted block of
   icon tiles for the things people scan for, a plain list of the numbers
   underneath, and the long lists broken into named groups with a section
   icon. The icons are not decoration — a person comparing three spaces
   reads the row of pictograms, not the prose.
   ========================================================================= */
.amenity-box {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  margin: 16px 0;
}
/* A plain three-column grid, so every tile sits in a column and the rows
   line up. The earlier version centred a short last row, which looked
   deliberate in isolation and sporadic in place — two tiles floating
   between the columns above them. The fix is not in the CSS: the tile
   count is trimmed to a multiple of three, so there is never a short row
   to lay out. */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 20px 12px;
}
@media (max-width: 560px) { .amenity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.amenity {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; min-width: 0;
}
.amenity svg { color: var(--ink-2); flex: none; }
.amenity__label {
  font-size: var(--t-sm); line-height: 1.3; color: var(--ink);
  overflow-wrap: anywhere;
}

/* The numbers. One per line, icon first, so the eye can run down them. */
.speclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
/* With nothing to put beside it, the list runs in two columns rather than
   leaving half the panel empty. */
.speclist--split { display: block; columns: 2; column-gap: 32px; }
.speclist--split li { break-inside: avoid; margin-bottom: 11px; }
@media (max-width: 620px) { .speclist--split { columns: 1; } }
.speclist li { display: flex; align-items: center; gap: 11px; font-size: var(--t-sm); }
.speclist svg { color: var(--ink-3); flex: none; }
.speclist b { font-weight: 650; }
.speclist .dim { margin-left: auto; }

/* The long lists, grouped and headed. */
.amen-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
@media (max-width: 620px) { .amen-cols { grid-template-columns: minmax(0, 1fr); } }
.amen-group__head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
}
.amen-group__head svg { color: var(--day); flex: none; }
.amen-group__head h4 {
  font-family: var(--display); font-weight: 700; font-size: var(--t-md); margin: 0;
}
.amen-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.amen-list li {
  position: relative; padding-left: 15px;
  font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45;
}
.amen-list li::before {
  content: "·"; position: absolute; left: 3px; top: -1px;
  color: var(--ink-3); font-weight: 700;
}

/* =========================================================================
   31. The chosen space, carried onto the Date & Time step

   Picking a date for a room you can no longer see is a small act of faith.
   The photograph travels with the booking so the thing being scheduled is
   on the screen while it is scheduled.
   ========================================================================= */
.hero-space {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.hero-space__shot {
  display: block; padding: 0; margin: 0; border: 0; background: var(--surface-sunk);
  cursor: zoom-in; position: relative; min-height: 132px;
}
.hero-space__shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-space__shot:focus-visible { outline: 2px solid var(--day); outline-offset: -3px; }
.hero-space__see {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(8, 11, 15, .78); color: #fff;
  border-radius: 100px; padding: 3px 10px;
  font-size: var(--t-xs); font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.hero-space__body { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.hero-space__name { font-family: var(--display); font-weight: 700; font-size: var(--t-lg); }
@media (max-width: 620px) {
  .hero-space { grid-template-columns: minmax(0, 1fr); }
  .hero-space__shot { aspect-ratio: 16 / 9; min-height: 0; }
  .hero-space__body { padding: 0 16px 16px; }
}

/* =========================================================================
   32. Moving between steps

   A step change repaints the whole column, which without this reads as a
   flicker — the new screen simply appears, and the eye has no idea whether
   anything moved. A short fade with a few pixels of rise gives the change a
   direction and costs nothing.

   Only a STEP change animates. Ticking a checkbox also re-renders this
   column, and fading the page every time somebody adds a light would be
   worse than no animation at all.
   ========================================================================= */
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes stepInBack {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.step-in      { animation: stepIn .26s cubic-bezier(.22,.61,.36,1) both; }
.step-in--back { animation: stepInBack .26s cubic-bezier(.22,.61,.36,1) both; }
/* Route changes outside the wizard get the same treatment, a touch slower
   because more of the screen is replaced. */
.view-in { animation: stepIn .3s cubic-bezier(.22,.61,.36,1) both; }

@media (prefers-reduced-motion: reduce) {
  .step-in, .step-in--back, .view-in { animation: none; }
}

/* =========================================================================
   33. Taking a payment

   The gap between pressing Pay and seeing a confirmation is the most
   anxious moment in the whole flow, and an unexplained pause is where people
   press the button a second time. The overlay blocks the page, names what is
   happening, and stays up for a beat after the gateway answers so the
   confirmation does not arrive before the eye has registered the wait.
   ========================================================================= */
.payload {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(6px);
  animation: stepIn .2s ease both;
}
.payload__card {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-3);
  padding: 34px 40px; text-align: center; max-width: min(380px, calc(100vw - 40px));
}
.payload__title { font-family: var(--display); font-weight: 700; font-size: var(--t-lg); }
.payload__note { font-size: var(--t-sm); color: var(--ink-2); }
.payload__amt { font-family: var(--mono); font-size: var(--t-xl); font-weight: 700; }

/* The circle. Two rings: a faint track and a rotating arc, so progress is
   legible as motion rather than as a bar that implies a known duration. */
.spinner {
  width: 54px; height: 54px; flex: none;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--day);
  animation: spin .85s linear infinite;
}
.spinner--done {
  border-color: var(--good); border-top-color: var(--good);
  animation: none;
  display: grid; place-items: center;
  color: var(--good);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .payload { animation: none; }
}

/* =========================================================================
   34. The staff band

   An administrator who clicks the studio logo lands on the client site. That
   is sometimes deliberate — checking how a change looks to a customer — and
   sometimes a misclick, and the two are indistinguishable without a label.
   The band says which side of the platform they are standing on and gives
   them one click back, on every client screen.
   ========================================================================= */
.staffbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 20px;
  background: var(--day-strong); color: #fff;
  font-size: var(--t-xs);
}
.staffbar svg { flex: none; }
.staffbar span { flex: 1; min-width: 160px; }
.staffbar .btn { background: #fff; color: var(--day-strong); }
.staffbar .btn:hover { background: rgba(255, 255, 255, .88); }

/* The access PIN, where it is read off a screen and spoken down a phone:
   big enough to read at arm's length, monospaced so 0 and O cannot be
   confused, and spaced so the digits are read one at a time. */
.pincode {
  font-family: var(--mono); font-size: 1.9rem; font-weight: 700;
  letter-spacing: .12em; margin: 2px 0 6px; color: var(--ink);
}

/* A table row that opens something says so before it is clicked. */
.t__row--open { cursor: pointer; }
.t__row--open:hover td { background: var(--surface-2); }
.t__row--open:focus-visible { outline: 2px solid var(--day); outline-offset: -2px; }

/* =========================================================================
   35. Notifications

   Two kinds of row in one list: things that happened, and things that are
   wrong. The second kind is tinted and pinned to the top, because the whole
   point of the screen is that somebody notices it.
   ========================================================================= */
.side-link__badge {
  margin-left: auto; flex: none;
  background: var(--bad); color: #fff;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  border-radius: 100px; padding: 1px 6px; line-height: 1.5;
}
.notif-list { display: flex; flex-direction: column; gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.notif {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px; background: var(--surface);
}
.notif[role="button"] { cursor: pointer; }
.notif[role="button"]:hover { background: var(--surface-2); }
.notif[role="button"]:focus-visible { outline: 2px solid var(--day); outline-offset: -2px; }
.notif__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid transparent;
}
.notif__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif__title {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--t-xs); font-weight: 650; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .06em;
}
.notif__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--day); flex: none; }
.notif__label { font-size: var(--t-sm); color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.notif__meta { font-size: var(--t-xs); color: var(--ink-3); }
.notif--new { background: color-mix(in srgb, var(--day-soft) 45%, var(--surface)); }
.notif--urgent { background: color-mix(in srgb, var(--warn-soft) 55%, var(--surface)); }
.notif--urgent .notif__label { font-weight: 600; }
/* The time, and the control for getting rid of the row. The × is faint
   until the row is hovered, because it sits beside a timestamp and a
   delete button that advertises itself is a delete button somebody presses
   by accident. It stays visible on touch, where nothing hovers. */
.notif__when { display: flex; align-items: center; gap: 6px; }
.notif__x { opacity: 0; transition: opacity .12s; font-size: 17px; padding: 2px 6px; }
.notif:hover .notif__x, .notif__x:focus-visible { opacity: 1; }
@media (hover: none) { .notif__x { opacity: .6; } }
.notif__hold {
  font-size: var(--t-xs); color: var(--ink-3); border: 1px dashed var(--line);
  border-radius: 100px; padding: 1px 8px; white-space: nowrap;
}

@media (max-width: 620px) {
  .notif { flex-wrap: wrap; }
  .notif__when { width: 100%; padding-left: 42px; }
}

/* =========================================================================
   36. The admin calendar

   Every space at once, each with its own colour. The segment bar under each
   date is the point of the whole screen: one lit segment out of seven is a
   day with six rooms to sell, and it has to look like one at a glance from
   across a desk.
   ========================================================================= */
.ctoggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 9px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: var(--t-sm); color: var(--ink-3); cursor: pointer;
  transition: border-color .14s, color .14s, background .14s;
}
.ctoggle:hover { border-color: var(--day-line); color: var(--ink); }
.ctoggle__dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--surface-3); border: 1px solid var(--line);
}
.ctoggle.is-on { color: var(--ink); border-color: color-mix(in srgb, var(--chip) 55%, transparent); }
.ctoggle.is-on .ctoggle__dot { background: var(--chip); border-color: var(--chip); }
.ctoggle__n {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  background: var(--surface-2); border-radius: 100px; padding: 0 6px;
}

.cgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cday {
  min-height: 112px; display: flex; flex-direction: column; gap: 5px;
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--surface-2); padding: 6px;
}
.cday--empty { border: 0; background: none; }
.cday.is-today { border-color: var(--day); box-shadow: inset 0 0 0 1px var(--day); }
/* Only when EVERY switched-on space is taken. This is the state the old
   calendar showed for a single booking. */
.cday.is-full { background: color-mix(in srgb, var(--bad-soft) 50%, var(--surface-2)); }
.cday__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cday__n {
  font-family: var(--mono); font-size: var(--t-sm); font-weight: 700; line-height: 1;
  background: none; border: 0; color: inherit; cursor: pointer; padding: 2px 3px;
  border-radius: 4px;
}
.cday__n:hover { background: var(--surface-3); }
.cday__count {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 100px; padding: 0 6px;
}
.cday__count.is-full { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.cday__free { font-size: 10px; color: var(--good); font-weight: 600; letter-spacing: .04em; }
.cbar { display: flex; gap: 2px; height: 5px; }
.cbar__seg { flex: 1; border-radius: 2px; background: var(--surface-3); }
.cday__list { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cchip {
  display: flex; align-items: center; gap: 5px; width: 100%;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 2px 5px; font: inherit; font-size: 10.5px; color: var(--ink-2);
  cursor: pointer; text-align: left; min-width: 0;
}
.cchip:hover { border-color: var(--chip); color: var(--ink); }
.cchip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--chip); flex: none; }
.cchip__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cday__more { font-size: 10px; color: var(--ink-3); padding-left: 4px; }
.cday__flag { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 760px) {
  .cgrid { gap: 3px; }
  .cday { min-height: 78px; padding: 4px; }
  .cday__list, .cday__flag { display: none; }
}

/* ---- week ---- */
.wk { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.wk__row { display: grid; grid-template-columns: 150px repeat(7, minmax(84px, 1fr)); gap: 4px; }
.wk__row--head .wk__day {
  display: flex; flex-direction: column; align-items: center; padding: 6px 0;
  border-radius: var(--r-sm); background: var(--surface-2);
}
.wk__row--head .wk__day.is-today { background: var(--day-soft); color: var(--day); }
.wk__dow { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.wk__date { font-family: var(--mono); font-weight: 700; }
.wk__space {
  display: flex; align-items: center; gap: 8px; font-size: var(--t-sm);
  padding: 8px 6px; min-width: 0;
}
.wk__space span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk__swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.wk__cell {
  min-height: 52px; border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: var(--surface-2); padding: 3px;
}
.wk__cell.is-blocked {
  background: repeating-linear-gradient(135deg, var(--surface-sunk) 0 5px, transparent 5px 10px);
}
.wk__blocked { font-size: 9.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.wk__bk {
  display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%;
  border: 0; border-left: 3px solid var(--chip); border-radius: 4px;
  background: color-mix(in srgb, var(--chip) 12%, var(--surface));
  padding: 4px 6px; font: inherit; text-align: left; cursor: pointer; min-width: 0;
}
.wk__bk:hover { background: color-mix(in srgb, var(--chip) 22%, var(--surface)); }
.wk__bk-name {
  font-size: 11px; font-weight: 650; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wk__bk-time { font-size: 10px; color: var(--ink-3); font-family: var(--mono); }

/* ---- day ---- */
.dayv { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.dayv__hours, .dayv__row { display: grid; grid-template-columns: 150px minmax(520px, 1fr); gap: 8px; }
.dayv__hours { grid-template-columns: 150px repeat(16, minmax(0, 1fr)); }
.dayv__h {
  font-family: var(--mono); font-size: 9.5px; color: var(--ink-3);
  text-align: left; border-left: 1px solid var(--line-soft); padding-left: 3px;
}
.dayv__space { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); min-width: 0; }
.dayv__track {
  position: relative; height: 46px; border-radius: var(--r-sm);
  background: repeating-linear-gradient(90deg, var(--surface-2) 0 calc(6.25% - 1px), var(--line-soft) calc(6.25% - 1px) 6.25%);
  border: 1px solid var(--line-soft);
}
.dayv__bk {
  position: absolute; top: 3px; bottom: 3px;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  border: 0; border-left: 3px solid var(--chip); border-radius: 4px;
  background: color-mix(in srgb, var(--chip) 16%, var(--surface));
  padding: 2px 7px; font: inherit; font-size: 11px; font-weight: 650;
  text-align: left; cursor: pointer; overflow: hidden; color: var(--ink);
}
.dayv__bk:hover { background: color-mix(in srgb, var(--chip) 28%, var(--surface)); }
.dayv__bk .xsmall { font-weight: 400; color: var(--ink-3); font-family: var(--mono); }

/* =========================================================================
   37 · the map
   Real tiles over the schematic. The schematic is a layer, not a fallback
   branch: if tiles arrive they cover it, and if none do it is what is left —
   which is why the "this is a schematic" caption is tied to the same class
   rather than printed on every map.
   ========================================================================= */
.map__schematic { position: absolute; inset: 0; }
.map__tile {
  position: absolute; display: block; border: 0;
  /* Tiles are raster. Scaled to the frame they are resampled, and a smoothed
     street label reads better than a sharpened one. */
  image-rendering: auto;
}
.map__pin { z-index: 3; }
/* The label lifts off a label underneath it; the dot stays on the building.
   A leader line keeps the two tied together once they are apart. */
.map__pin > span { transform: translateY(calc(-1 * var(--pin-lift, 0px))); }
.map__pin > span::after {
  content: ''; position: absolute; left: 50%; top: 100%; width: 1px;
  height: var(--pin-lift, 0px); background: var(--line);
}
.map__pin-sub { color: var(--ink-3); font-weight: 400; }
.map__credit {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  font-size: 10px; line-height: 1.6; padding: 1px 6px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--ink-3); text-decoration: none; border-top-left-radius: 6px;
}
.map__credit:hover { color: var(--ink); text-decoration: underline; }
.map__offline {
  display: none; position: absolute; left: 10px; bottom: 10px; z-index: 3;
  align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
}
.map--offline .map__offline { display: inline-flex; }
.map--offline .map__credit { display: none; }

.map-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* the phone handoff */
.qrgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.qrcard {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px;
  background: var(--surface); text-align: center;
}
.qrcard .qr { border-radius: 6px; max-width: 100%; height: auto; }
.qrcard .eyebrow { margin: 0 0 10px; }
.qrcard__url { display: block; margin-top: 6px; word-break: break-all; font-family: var(--mono); }

/* =========================================================================
   38 · controls are not underlined

   This build gets pasted into an Adobe Muse page, and the Muse template
   underlines every anchor on the site. Our anchors are mostly not prose
   links — they are buttons, cards, tiles, nav items — and an underlined
   button reads as a broken link rather than a thing to press. The rules
   below out-rank the host template, which is what the !important is for;
   nothing in this stylesheet needs it to win against itself.

   The line is drawn at the class attribute: every control we draw carries
   one, and a plain prose link inside a sentence does not. So a sentence
   link keeps the underline it should have, and nothing that looks like a
   button carries one.
   ========================================================================= */
a[class],
a[class]:hover,
a[class]:focus,
a[class]:visited,
button,
button:hover,
.brand,
.tile,
.studio--link,
.rail__item,
.side-link,
.day,
/* and the text inside them, which Muse underlines through the child */
a[class] *,
button *,
.brand *,
.tile *,
.studio--link *,
.side-link * {
  text-decoration: none !important;
}

/* The exceptions, stated rather than left to chance: an attribution link and
   a printed URL are text, and they say so on hover. */
.map__credit:hover,
.qrcard__url:hover { text-decoration: underline !important; }


/* =========================================================================
   39 · the robot check, and who takes the money
   ========================================================================= */
.human {
  border: 1px dashed var(--line); border-radius: var(--r-md);
  padding: 14px; margin-top: 16px; background: var(--surface-2);
}
.human__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.human__plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 2px 6px; color: var(--ink);
  /* A code that can be selected is a code that can be copied by a script
     reading the DOM, and by a person who then pastes it instead of reading
     it. Neither is the point of the exercise. */
  user-select: none; -webkit-user-select: none;
}
.human__code { display: block; height: 52px; width: auto; }

.trust {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; background: var(--surface-2);
}
.trust__mark { color: var(--good); flex: none; margin-top: 2px; }
.trust__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--t-sm); font-weight: 600; margin-right: 14px;
}
.trust__link svg { opacity: .7; }

/* ---- the customer directory --------------------------------------------
   Built for a desk with a phone in its hand: the numbers at the top answer
   "how big is my list and how much of it can I actually reach", and the
   selection column turns the same table into the audience builder rather
   than sending somebody to a second screen to rebuild the list. */

.statrow {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}
.statcard {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 13px 15px;
}
.statcard__n {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
}
.statcard__k {
  font-family: var(--mono); font-size: var(--t-xs); text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-3); margin-top: 3px;
}
.statcard--day  { border-color: var(--day-line); }
.statcard--day .statcard__n { color: var(--day); }
.statcard--good { border-color: color-mix(in srgb, var(--good) 38%, transparent); }
.statcard--good .statcard__n { color: var(--good); }

/* Appears only when something is selected, so the screen is not
   permanently carrying a destructive button nobody asked for. */
.bulkbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--day-soft); border: 1px solid var(--day-line);
  border-radius: var(--r-md); padding: 10px 14px;
}

.t-pick { width: 36px; }
.t-pick input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--day); }
tr.is-picked { background: var(--day-soft); }

/* A pill that is a control. Looks like the label it replaces so the table
   does not sprout buttons, but says it is clickable when pointed at. */
.pill--button {
  border: 1px solid transparent; cursor: pointer; font: inherit;
  font-size: var(--t-xs); font-weight: 600;
}
.pill--button:hover { border-color: currentColor; }
.pill--button:focus-visible { outline: 2px solid var(--day); outline-offset: 2px; }

@media (max-width: 760px) {
  .statrow { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
  .statcard { padding: 10px 12px; }
  .statcard__n { font-size: 1.25rem; }
  .t--customers .t-pick { width: auto; }
}

/* ---- picking customers into a campaign ---------------------------------
   A search that lands on names, not a multi-select of four hundred rows.
   The chips below it say per person whether the chosen channel can
   actually reach them, because finding that out in the held list after
   pressing send is too late to be useful. */
.picklist {
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: var(--surface);
}
.picklist__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 9px 12px; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.picklist__row + .picklist__row { border-top: 1px solid var(--line-soft); }
.picklist__row:hover { background: var(--day-soft); }
.picklist__row:focus-visible { outline: 2px solid var(--day); outline-offset: -2px; }

.pill__x {
  border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-size: 13px; line-height: 1; padding: 0 0 0 4px;
  opacity: .65;
}
.pill__x:hover { opacity: 1; }
.pill__x:focus-visible { outline: 2px solid var(--day); outline-offset: 2px; }

/* ---------- the email composer --------------------------------------------
   Two columns: what the administrator is assembling, and what the customer
   will actually receive. The preview is a sandboxed iframe because it holds
   email HTML, and email HTML has no business running inside the admin
   screen even when this platform is the thing that produced it. */
.mailer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.mailer__edit { min-width: 0; }
.mailer__preview { min-width: 0; display: flex; flex-direction: column; }
.mailer__preview iframe {
  flex: 1; width: 100%; min-height: 420px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: #fff;
}
@media (max-width: 860px) {
  .mailer { grid-template-columns: minmax(0, 1fr); }
  /* On a phone the preview goes under the editor and stops competing with
     it for the screen; it is still there to scroll to. */
  .mailer__preview iframe { min-height: 320px; }
}
.note--warn { border-color: var(--warn); background: var(--warn-soft); }
.note--good { border-color: var(--good); background: var(--good-soft); }
.note--bad  { border-color: var(--bad);  background: var(--bad-soft); }

/* ---------- composer blocks, dragged into order ---------------------------- */
.mail-block { cursor: default; transition: border-color .12s, opacity .12s; }
.mail-block__grip { color: var(--ink-3); cursor: grab; letter-spacing: -1px; }
.mail-block.is-dragging { opacity: .45; }
.mail-block.is-over { border-color: var(--day); box-shadow: inset 0 0 0 1px var(--day); }
