/* ═══════════════════════════════════════════════════════════════════════════
   Nexus Tattoo Booking — one shared stylesheet.
   Design tokens live at the top; everything else references them.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* palette — neo american traditional: jewel tones on deep cool ink,
     warm cream text. Oxblood red + ochre gold + a teal secondary. */
  --ink: #14181c;          /* deep cool ink-black background */
  --ink-2: #1b2127;        /* raised surface */
  --ink-3: #222a31;        /* card / input */
  --paper: #f2e8d5;        /* warm cream text */
  --paper-dim: #c3b7a0;    /* muted body */
  --paper-faint: #8a8172;  /* labels, hints */
  --red: #b83a34;          /* neo-trad oxblood/vermilion */
  --red-deep: #8f2a26;
  --gold: #d0a03f;         /* ochre / mustard gold */
  --gold-soft: #e6bf6f;
  --teal: #2f8f86;         /* neo-trad teal secondary */
  --teal-soft: #49b3a8;
  --line: #2f3941;         /* hairline borders */
  --danger: #cf5b57;
  --ok: #7ba05b;           /* sage */

  /* type */
  --font-display: 'Alfa Slab One', 'Georgia', serif;   /* bold vintage wordmark/h1 */
  --font-signature: 'Dancing Script', 'Segoe Script', cursive; /* the signature only */
  --font-label: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Crimson Pro', 'Georgia', 'Times New Roman', serif;

  --radius: 8px;
  --maxw: 1040px;
  --pad: 24px;
}

/* ── Fonts (Google Fonts; system fallbacks above) ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Oswald:wght@400;500;600&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=Dancing+Script:wght@600;700&display=swap');

* { box-sizing: border-box; }
/* The `hidden` attribute must win over component display rules (e.g. .btn uses
   display:inline-flex, which would otherwise keep hidden buttons visible — this
   is what left a dead "Continue" button on the onboarding wizard's last step). */
[hidden] { display: none !important; }

/* Always reserve the scrollbar gutter so content width doesn't jump between
   scrolling and non-scrolling pages (keeps tab widths consistent). */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-soft); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--paper); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* ── Typographic primitives ────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 13px;
  color: var(--gold);
  margin: 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--paper);
  line-height: 0.95;
  margin: 8px 0 4px;
  letter-spacing: 0.5px;
}
h1.wordmark { font-size: clamp(2.6rem, 8vw, 4.8rem); }
h2 {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper);
  font-size: 1.4rem;
  margin: 0 0 4px;
}
label, .label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--paper-faint);
}
.muted { color: var(--paper-dim); }
.small { font-size: 15px; }

/* ── Spacing / alignment utilities ─────────────────────────────────────────────
   Prefer these over inline style="margin:…" in new markup. The scale matches the
   values already used across the views, so an inline style can be swapped 1:1. */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }

/* needle divider */
.needle { display: block; margin: 18px auto; }
.needle svg { display: block; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 72px 20px 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 260px at 30% -60px, rgba(47,143,134,0.16), transparent 70%),
    radial-gradient(1000px 300px at 72% -80px, rgba(208,160,63,0.14), transparent 70%),
    var(--ink);
}
.hero .tagline { color: var(--paper-dim); font-style: italic; font-size: 1.15rem; margin: 6px 0 0; }
.hero .meta { margin-top: 18px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--paper-faint); }
.hero .meta a { color: var(--gold-soft); }

/* ── Sections ──────────────────────────────────────────────────────────────── */
section { padding: 54px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 26px; }
.section-head .eyebrow { margin-bottom: 6px; }

/* ── Portfolio grid ────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.grid .tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-3);
}
.grid .tile img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.95); }
.grid .tile img:hover { filter: saturate(1.1); }
.portfolio-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--paper-faint);
}

/* ── Rotating gallery (portfolio carousel) ─────────────────────────────────── */
.gallery { position: relative; }
.gallery-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(176,141,63,0.12), 0 18px 40px -24px rgba(0,0,0,0.8);
}
.gallery-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) { .gallery-track { transition: none; } }
.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--ink-3);
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* YouTube embeds + audio clips fill the same slide box as an image. */
.gallery-embed { width: 100%; height: 100%; }
.gallery-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.gallery-audio {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: 24px;
  background: radial-gradient(circle at 50% 35%, var(--ink-3), var(--ink-2));
}
.gallery-audio-icon { font-size: 3rem; }
.gallery-audio audio { width: 100%; max-width: 460px; }

.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold); background: rgba(20,24,28,0.7);
  color: var(--paper); font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.gallery-btn:hover { background: var(--red); border-color: var(--red); }
.gallery-btn.prev { left: 10px; }
.gallery-btn.next { right: 10px; }
.gallery-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 14px;
}
.gallery-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 1px solid var(--gold); background: transparent; cursor: pointer;
}
.gallery-dot.is-active { background: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,63,0.2); }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; }
.req { color: var(--red); }

/* invalid field highlight (client-side validation) */
.field.invalid > input,
.field.invalid > textarea,
.field.invalid > select {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(184, 58, 52, 0.35);
}
.field.invalid > label { color: var(--red); }
.field.invalid[data-field="slot_choice"] {
  border-left: 3px solid var(--red);
  padding-left: 12px;
  margin-left: -15px;
}
.field-error {
  margin: 7px 0 0;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #f0b6b1;
}
.field-error::before { content: "▲ "; color: var(--red); font-size: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .field.invalid { animation: field-shake 0.28s ease; }
  @keyframes field-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
  }
}
input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=time], input[type=number], input[type=password], input[type=file], select, textarea {
  width: 100%;
  background: var(--ink-3);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 17px;
}
/* Native file inputs render a slightly taller control — trim the padding so the box
   matches the text inputs' height, and give the "Choose file" trigger a compact
   gold-outline button. This is the ONLY file-input styling in the app; the box
   itself (width/background/solid border/radius) comes from the shared selector
   above, so file inputs line up with text inputs everywhere. */
input[type=file] { padding: 8px 12px; font-size: 14px; line-height: 1.3; }
input[type=file]::file-selector-button {
  margin-right: 12px; padding: 5px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--gold); background: var(--ink-2); color: var(--gold-soft);
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--paper-faint); }

input:focus, select:focus, textarea:focus,
button:focus-visible, a:focus-visible, input[type=radio]:focus-visible + .ticket {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}
/* always-visible focus for keyboard users */
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* ── Buttons ───────────────────────────────────────────────────────────────────
   Size contract (line-height:1 + fixed padding ⇒ every button of a variant is the
   SAME height — base 40px, .small 30px, .xsmall 26px — regardless of icons/label):
     • .btn          — public-facing CTAs (booking, sign-in, sign-up), the sticky
                       Edit-Site / onboarding save-bars, and standalone print/invoice
                       page actions. One primary per screen.
     • .btn.small    — the dashboard/account workhorse: every action inside a card
                       (saves, plan/payment CTAs, approve/decline, add-forms).
     • .btn.xsmall   — icon or one-word actions in dense table/list rows only.
   .ghost (secondary) and .danger (destructive) are colour modifiers, orthogonal to
   size — pair them with a size class, don't invent per-page sizes. */
.btn {
  /* inline-flex + line-height:1 so <a> and <button> render the SAME height
     (otherwise the anchor inherits the body's tall line-height). */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  vertical-align: middle;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--red-deep); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--gold-soft); border-color: var(--gold); }
.btn.ghost:hover { background: rgba(176,141,63,0.12); color: var(--paper); }
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn.block { display: flex; width: 100%; }
.btn.danger { border-color: var(--danger); background: transparent; color: var(--danger); }
.btn.danger:hover { background: rgba(217,83,79,0.14); }

/* ── Flash-sheet ticket cards (the slot picker) ────────────────────────────── */
.day-block { margin-bottom: 22px; }
.day-block .day-name {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--teal-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.tickets { display: flex; flex-wrap: wrap; gap: 10px; }

/* Compact chip style for open times ("Fri 2:00pm") — the artist can opt into this */
.slot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.chip-slot input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-slot .chip {
  display: inline-flex; align-items: center; cursor: pointer;
  font-family: var(--font-label); font-size: 14px; font-weight: 600;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); background: var(--paper-dim);
  transition: transform 0.08s ease, border-color 0.1s, background 0.1s, color 0.1s;
}
.chip-slot .chip:hover { transform: translateY(-1px); border-color: var(--red); }
.chip-slot input[type=radio]:checked + .chip { background: var(--red); color: var(--paper); border-color: var(--red); }
.chip-slot input[type=radio]:focus-visible + .chip { outline: 2px solid var(--gold); outline-offset: 2px; }
.slot input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.ticket {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-label);
  letter-spacing: 0.04em;
  position: relative;
  transition: transform 0.08s ease, background 0.15s ease;
}
.ticket .t-time { font-size: 16px; font-weight: 600; }
.ticket .t-dur { font-size: 11px; color: var(--paper-faint); text-transform: uppercase; letter-spacing: 0.12em; }
.slot input[type=radio]:checked + .ticket {
  background: linear-gradient(180deg, rgba(176,141,63,0.28), rgba(176,141,63,0.12));
  border-style: solid;
  border-color: var(--gold-soft);
  color: var(--paper);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.slot input[type=radio]:checked + .ticket .t-dur { color: var(--gold-soft); }
.ticket:hover { transform: translateY(-1px); }

.flex-ticket .ticket { border-color: var(--red); border-style: solid; }
.flex-ticket input[type=radio]:checked + .ticket {
  background: linear-gradient(180deg, rgba(194,64,47,0.30), rgba(194,64,47,0.12));
  border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset;
}

/* ── Public events header (rotating banner at the top of a site) ──────────── */
.event-bar {
  text-align: center; padding: 10px 20px; font-size: 14px;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
}
/* Arrows sit inline, flanking the centered event text (not pinned to the edges). */
.event-bar.has-nav { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: nowrap; }
.event-nav {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--ink-3); color: var(--paper);
  font-size: 16px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.event-nav:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.event-item { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; color: var(--paper); }
.event-item.is-past { opacity: 0.5; }
.event-when { color: var(--gold-soft); font-weight: 600; }
.event-sep { color: var(--muted); }
.event-title a { color: inherit; text-decoration: underline; }
.event-loc { color: var(--muted); }
.event-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }

/* ── Compact date picker (public booking) ─────────────────────────────────── */
.daypick-dates {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.daypick-dates::-webkit-scrollbar { height: 7px; }
.daypick-dates::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.daypick-date {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 66px; padding: 8px 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
  color: var(--paper-dim); line-height: 1.2;
}
.daypick-date:hover { border-color: var(--gold-soft); color: var(--paper); }
.daypick-date.is-active { border-color: var(--gold); background: var(--ink-3); color: var(--paper); box-shadow: 0 0 0 1px var(--gold) inset; }
.dp-dow { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; color: var(--gold-soft); }
.dp-md { font-size: 15px; font-weight: 600; }
.daypick-flex { justify-content: center; }
.dp-flex { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; text-align: center; }
.daypick-panel { display: none; margin-top: 14px; }
.daypick-panel.is-active { display: block; }
.daypick-title { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--paper); margin: 0 0 10px; }

/* Public booking: "I'm flexible" preferred-window controls (anytime/month/range). */
.flex-pref { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.flex-pref-q { margin: 0 0 8px; font-size: 14px; color: var(--paper-dim); }
.flex-pref-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.flex-pref-detail { margin-top: 4px; }
.flex-pref-detail[hidden] { display: none; }
.flex-pref-field { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; color: var(--paper-faint); }
.flex-pref-field select, .flex-pref-field input { text-transform: none; letter-spacing: normal; }
.flex-pref-range { display: flex; gap: 10px; flex-wrap: wrap; }
.flex-pref-range .flex-pref-field { flex: 1 1 140px; }

/* ── Service picker (public booking form) ─────────────────────────────────── */
.svc-picker { display: grid; gap: 10px; }
.svc-option { display: block; cursor: pointer; }
.svc-option input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.svc-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2); transition: border-color 0.12s ease, transform 0.08s ease;
}
.svc-card:hover { transform: translateY(-1px); }
.svc-option input[type=radio]:checked + .svc-card { border-color: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold) inset; }
.svc-option input[type=radio]:focus-visible + .svc-card { outline: 2px solid var(--gold); outline-offset: 2px; }
.svc-name { font-size: 1.05rem; font-weight: 600; color: var(--paper); }
.svc-meta { font-size: 14px; color: var(--gold-soft); }
.svc-desc { font-size: 14px; color: var(--muted); }
/* Limited-time offer badge on a service card */
.svc-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-soft); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; vertical-align: middle; white-space: nowrap; }
/* Upcoming (not-yet-bookable) service teaser */
.svc-soon .svc-card { opacity: 0.6; cursor: default; }
.svc-soon .svc-card:hover { transform: none; }

/* Public classes / group sessions */
.class-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.class-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: 14px 16px; }
.class-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.class-name { font-size: 1.1rem; font-weight: 600; color: var(--paper); }
.class-price { color: var(--gold-soft); font-size: 14px; white-space: nowrap; }
.class-when { display: block; color: var(--gold-soft); font-size: 14px; margin-top: 2px; }
.class-desc { color: var(--paper-dim); font-size: 14px; margin: 8px 0; }
.class-seats { margin: 8px 0; }
.class-signup > summary { list-style: none; cursor: pointer; display: inline-block; }
.class-signup > summary::-webkit-details-marker { display: none; }

/* ── Services manager (dashboard, Edit Site) ──────────────────────────────── */
.svc-admin { display: flex; flex-direction: column; gap: 10px; }
.svc-admin-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: start;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
}
.svc-admin-item.is-off { opacity: 0.6; }
.svc-admin-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svc-admin-name { font-weight: 600; color: var(--paper); }
.svc-admin-desc { overflow-wrap: anywhere; }
.svc-admin-actions { display: flex; gap: 6px; align-items: center; }
.svc-edit { grid-column: 1 / -1; }
.svc-edit > summary { cursor: pointer; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range .cur-input input { width: 90px; }
.price-dash { color: var(--muted); }

/* ── Cards / callouts ──────────────────────────────────────────────────────── */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
}
/* Constrain content on tabs that are otherwise mostly empty (e.g. Billing). */
.tab-narrow { max-width: 640px; margin: 0 auto; }
.notice {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 16px;
  border: 1px solid;
}
.notice.error { border-color: var(--danger); background: rgba(217,83,79,0.12); color: #f0c9c7; }
.notice.ok { border-color: var(--ok); background: rgba(111,156,75,0.14); color: #d6e6c4; }
.notice.info { border-color: var(--gold); background: rgba(176,141,63,0.12); color: var(--paper); }

/* ── Floating toasts ─────────────────────────────────────────────────────────
   Change confirmations pop as a floating card anchored to the viewport corner
   and auto-dismiss, rather than a banner pinned in the page flow. */
.toast-host {
  position: fixed; z-index: 1000; right: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  max-width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  pointer-events: auto; width: 100%;
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--ink-2); color: var(--paper);
  padding: 12px 12px 12px 14px; font-size: 15px; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  border-left-width: 4px;
  transform: translateY(12px); opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.hide { transform: translateY(8px); opacity: 0; }
.toast.ok { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--gold); }
.toast-msg { flex: 1 1 auto; }
.toast-close {
  flex: 0 0 auto; background: none; border: 0; cursor: pointer;
  color: var(--paper-faint); font-size: 18px; line-height: 1; padding: 0 2px;
}
.toast-close:hover { color: var(--paper); }
@media (max-width: 560px) {
  .toast-host { left: 12px; right: 12px; bottom: 12px; max-width: none; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .15s ease; transform: none; }
  .toast.show { transform: none; }
}

/* ── Consent ───────────────────────────────────────────────────────────────── */
.consent-text {
  white-space: pre-wrap;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
  max-height: 380px;
  overflow-y: auto;
  font-size: 16px;
  color: var(--paper-dim);
}
.signature {
  font-family: var(--font-signature) !important;
  font-size: 2.4rem !important;
  color: var(--gold-soft);
  letter-spacing: 0.5px;
  padding: 10px 16px !important;
}
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--red); flex: none; }

/* ── Admin ─────────────────────────────────────────────────────────────────── */
.admin-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.admin-bar .brand { font-family: var(--font-display); font-size: 1.8rem; color: var(--paper); }
.admin-bar-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.stack { display: grid; gap: 16px; }
.req-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.req-card h3 { margin: 0 0 4px; font-family: var(--font-label); letter-spacing: 0.06em; font-size: 1.15rem; }
.req-card a { overflow-wrap: anywhere; }

/* ── Requests board (pipeline: pending / waiting / upcoming) ────────────────── */
.req-board {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 8px;
}
.req-board-col {
  flex: 1 1 330px;
  min-width: 300px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
@media (min-width: 940px) {
  .req-board { overflow-x: visible; }
  .req-board-col { flex: 1 1 0; min-width: 0; }
}
/* Segmented control that switches board stages on phones (hidden on desktop). */
.board-tabs { display: none; gap: 8px; margin-bottom: 14px; }
.board-tab {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 6px; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--paper-dim);
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
}
.board-tab.is-active { color: var(--paper); background: var(--ink-3); border-color: var(--gold); }
.board-tab .bt-count { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; }
.board-tab .s-new       { color: var(--red); }
.board-tab .s-pending   { color: #e6c07a; }
.board-tab .s-waiting   { color: #7ab0e6; }
.board-tab .s-upcoming  { color: var(--ok); }
.board-tab .s-completed { color: var(--paper-faint); }
/* Phones: show one stage at a time (chosen via .board-tabs) — no endless scroll. */
@media (max-width: 640px) {
  .board-tabs { display: flex; flex-wrap: wrap; }
  .board-tab { flex: 1 1 88px; }
  .req-board { flex-direction: column; overflow-x: visible; }
  .req-board-col { flex: 1 1 auto; min-width: 0; width: 100%; }
  .req-board-col:not(.is-active) { display: none; }
  .req-board-col-body { max-height: none; overflow-y: visible; }
}
.req-board-col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px;
}
.req-board-col-title {
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 14px; color: var(--paper);
}
.req-board-col-body { display: flex; flex-direction: column; gap: 12px; }
.req-board-col-body .empty { padding: 4px 0; }
/* Show ~4–5 cards, then scroll within the column instead of growing forever. */
.req-board-col-body {
  max-height: min(560px, 64vh);
  overflow-y: auto;
  /* room so the scrollbar doesn't overlap card borders, + a fade cue at the edge */
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.req-board-col-body::-webkit-scrollbar { width: 8px; }
.req-board-col-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.req-board-col-body::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }
/* stage colour-coding via the top border + count pill */
.req-board-col.stage-new       { border-top-color: var(--red); }
.req-board-col.stage-pending   { border-top-color: #e6c07a; }
.req-board-col.stage-waiting   { border-top-color: #7ab0e6; }
.req-board-col.stage-upcoming  { border-top-color: var(--ok); }
.req-board-col.stage-completed { border-top-color: var(--paper-faint); }
.stage-new       .board-col-count { color: var(--red);         border-color: var(--red); }
.stage-pending   .board-col-count { color: #e6c07a;            border-color: #e6c07a; }
.stage-waiting   .board-col-count { color: #7ab0e6;            border-color: #7ab0e6; }
.stage-upcoming  .board-col-count { color: var(--ok);          border-color: var(--ok); }
.stage-completed .board-col-count { color: var(--paper-faint); border-color: var(--paper-faint); }
/* cards sit raised inside the column; actions stack full-width in the narrow space */
.req-board .req-card { background: var(--ink-3); padding: 16px; }
.req-board .req-card h3 { font-size: 1.05rem; }
.req-board .actions { gap: 8px; margin-top: 10px; }
.req-board .actions input[type=text],
.req-board .actions select { flex: 1 1 100%; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0; font-size: 16px; }
.dl dt { color: var(--paper-faint); font-family: var(--font-label); text-transform: uppercase; font-size: 12px; letter-spacing: 0.1em; padding-top: 2px; }
.dl dd { margin: 0; color: var(--paper); overflow-wrap: anywhere; }
/* In the narrow pipeline cards, a long custom intake label (e.g. "Tell us what
   you're looking for") would make the max-content label column enormous and crush
   the value column. Stack label-over-value there so both get the full width. */
.req-board .dl { grid-template-columns: 1fr; gap: 2px 0; }
.req-board .dl dt { padding-top: 10px; }
.req-board .dl dt:first-of-type { padding-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.actions input[type=text] { flex: 1 1 220px; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--font-label); text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.badge.open { color: var(--gold-soft); border-color: var(--gold); }
.badge.held { color: #e6c07a; border-color: #e6c07a; }
.badge.booked { color: var(--ok); border-color: var(--ok); }
.badge.signed { color: var(--ok); border-color: var(--ok); }
.badge.unsigned { color: var(--danger); border-color: var(--danger); }
.badge.priority { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 14px; font-family: var(--font-label); background: var(--ink-3); }

/* weekday chips for the bulk generator */
.dow-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dow input { position: absolute; opacity: 0; width: 0; height: 0; }
.dow span {
  display: inline-block; min-width: 46px; text-align: center;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-3); color: var(--paper-dim);
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 13px; cursor: pointer; user-select: none;
}
.dow input:checked + span {
  background: linear-gradient(180deg, rgba(47,143,134,0.30), rgba(47,143,134,0.12));
  border-color: var(--teal-soft); color: var(--paper);
  box-shadow: 0 0 0 1px var(--teal) inset;
}
.dow input:focus-visible + span { outline: 2px solid var(--gold-soft); outline-offset: 2px; }

details.card summary { list-style: revert; }
details.card summary::-webkit-details-marker { color: var(--gold); }

/* ── Calendar board view (availability) ────────────────────────────────────── */
.board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.board-col {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.board-col.is-past { opacity: 0.5; }
.board-col-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.board-col-day {
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 14px; color: var(--teal-soft);
}
.board-col-year { margin-top: 1px; }
.board-col-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 8px;
  font-family: var(--font-label); font-size: 12px; line-height: 1; color: var(--paper-faint);
  border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
}
.board-col-body { display: flex; flex-direction: column; gap: 8px; min-height: 8px; }
.slot-card {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink-3); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 8px 10px;
}
.slot-card.status-open   { border-left-color: var(--gold); }
.slot-card.status-held   { border-left-color: #e6c07a; }
.slot-card.status-booked { border-left-color: var(--ok); }
.slot-card-time {
  font-family: var(--font-label); font-size: 14px; color: var(--paper);
  flex: 1 1 auto; white-space: nowrap;
}
.slot-card-x {
  border: 1px solid var(--danger); background: transparent; color: var(--danger);
  border-radius: var(--radius); width: 24px; height: 24px; cursor: pointer; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.slot-card-x:hover { background: rgba(207,91,87,0.16); }
.board-col-clear { width: 100%; margin-top: auto; }

/* ── In-page confirmation popover ──────────────────────────────────────────── */
.confirm-pop {
  position: fixed;
  z-index: 1100; /* above the booking-card modal (1000), not just later in the DOM */
  width: max-content;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 16px));
  background: var(--ink-2);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.85);
}
/* Close × in the corner (the message keeps clear of it). 32px keeps it tappable. */
.confirm-x {
  position: absolute; top: 4px; right: 4px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--paper-faint); font-size: 20px; line-height: 1; cursor: pointer;
}
.confirm-x:hover { color: var(--paper); background: var(--ink-3); }
.confirm-msg {
  padding-right: 24px;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--paper);
}
.confirm-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.confirm-actions .btn { cursor: pointer; }
/* little arrow pointing at the button */
.confirm-pop::after {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--ink-2);
  border: 1px solid var(--gold);
}
.confirm-pop.arrow-down::after { bottom: -7px; border-top: none; border-left: none; }
.confirm-pop.arrow-up::after   { top: -7px;    border-bottom: none; border-right: none; }
@media (prefers-reduced-motion: no-preference) {
  .confirm-pop.pop-in { animation: pop-in 0.12s ease-out; }
  @keyframes pop-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
  }
}
.ref-thumb { max-width: 220px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 8px; }
.empty { color: var(--paper-faint); font-style: italic; padding: 8px 0; }

footer.site {
  text-align: center; padding: 34px 20px; color: var(--paper-faint);
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Platform + multi-tenant dashboard (SaaS layer)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Dashboard top bar ─────────────────────────────────────────────────────── */
.dash-topbar { border-bottom: 1px solid var(--line); background: var(--ink-2); }
.dash-topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.dash-brand {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--paper);
  text-decoration: none; margin-right: 2px;
}
.dash-brand:hover { color: var(--gold-soft); }
.dash-nav { display: flex; gap: 4px; flex: 1 1 auto; }
.dash-nav a {
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 13px; color: var(--paper-dim); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius);
}
.dash-nav a:hover { color: var(--paper); background: var(--ink-3); }
.dash-nav a.active { color: var(--ink); background: var(--gold); }
.dash-actions { display: flex; align-items: center; gap: 10px; flex: none; }
/* Desktop: the menu wrapper is transparent so nav + actions flow inline as before.
   On phones (see the 720px block) it becomes a collapsible hamburger panel. */
.dash-menu { display: contents; }
.dash-burger { display: none; }

.trial-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.trial-strip .btn { flex: none; }

/* ── Publish card ──────────────────────────────────────────────────────────── */
.publish-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.publish-card p { color: var(--paper-dim); }
.publish-card .badge { vertical-align: middle; }

/* ── Slug / address input ──────────────────────────────────────────────────── */
.slug-input { display: flex; align-items: stretch; }
.slug-prefix {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--ink-2); border: 1px solid var(--line); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--paper-faint); font-family: var(--font-label); font-size: 14px;
  white-space: nowrap; overflow-wrap: normal;
}
.slug-input input {
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  flex: 1 1 auto; min-width: 0;
}

/* ── Color pickers ─────────────────────────────────────────────────────────── */
.color-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.color-pick {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; min-width: 132px;
}
.color-pick input[type="color"] {
  width: 100%; height: 40px; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: none; cursor: pointer;
}
.color-name { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--paper); }

/* ── Portfolio image grid ──────────────────────────────────────────────────── */
.img-grid {
  display: grid; gap: 12px; margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.img-tile { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.img-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-tile-audio { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 1.8rem; color: var(--gold-soft); background: var(--ink-3); }
.img-tile-audio span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-dim); }
.img-tile-tag { position: absolute; left: 6px; bottom: 6px; font-size: 11px; padding: 2px 7px; border-radius: 20px; background: rgba(0,0,0,0.65); color: #fff; letter-spacing: 0.04em; }
.img-tile-x {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20,24,28,0.82); color: var(--paper); font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.img-tile-x:hover { background: var(--danger); }

/* ── Platform landing ──────────────────────────────────────────────────────── */
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature-grid h3 { margin: 0 0 6px; font-family: var(--font-label); letter-spacing: 0.04em; color: var(--gold-soft); }
.feature-grid p { margin: 0; }
.steps { margin: 0; padding-left: 22px; font-size: 1.1rem; }
.steps li { margin: 10px 0; }
.steps strong { color: var(--paper); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .dash-topbar-inner { gap: 10px; }
  .publish-card, .trial-strip { flex-direction: column; align-items: flex-start; }
}

/* Phones/tablets: collapse the dashboard nav + actions into a hamburger menu so the
   top bar stays a single tidy row instead of wrapping into three. */
@media (max-width: 720px) {
  .dash-topbar-inner { gap: 12px; }
  .dash-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; margin-left: auto; flex: none; cursor: pointer;
    background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  }
  .dash-burger span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--paper); border-radius: 2px; }
  .dash-menu { display: none; order: 3; flex-basis: 100%; width: 100%; }
  .dash-menu.open { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
  .dash-nav { flex-direction: column; gap: 2px; }
  .dash-nav a { padding: 12px 14px; font-size: 14px; }
  .dash-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .dash-actions .btn,
  .dash-actions form,
  .dash-actions form .btn { width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Socials, editor grid, admin table, themed date/time pickers
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Social icon links (public site) ───────────────────────────────────────── */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.hero .socials { justify-content: center; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--teal-soft);
  background: var(--ink-2); text-decoration: none; transition: transform .12s ease;
}
.social-link:hover { color: var(--ink); background: var(--teal-soft); border-color: var(--teal-soft); transform: translateY(-2px); }

/* ── Site builder ──────────────────────────────────────────────────────────── */
/* One consistent vertical rhythm for every top-level block on the page. */
.builder { display: flex; flex-direction: column; gap: 20px; }
/* One sticky "Save changes" for the whole Edit-Site page */
.save-bar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  padding: 12px 16px; margin: 4px 0 0;
  background: linear-gradient(to top, var(--ink) 40%, rgba(20,24,28,0.9));
  border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
}
.save-bar-note { margin-right: auto; }
.save-bar .btn { min-width: 150px; }
@supports (backdrop-filter: blur(4px)) { .save-bar { backdrop-filter: blur(4px); } }
.builder-head { margin: 0; }
.builder-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 820px) { .builder-grid { grid-template-columns: 1fr 1fr; } }
.builder-card { margin: 0; }
.builder-card-head { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.builder-card .field { margin-bottom: 12px; }
.builder-card .btn { margin-top: 4px; }
/* horizontal divider inside a card that groups two sub-sections */
.rule { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

/* uniform, equal-sized color swatches (2×2) */
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.color-grid .color-pick {
  display: flex; flex-direction: column; gap: 4px; align-items: stretch;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  min-width: 0;
}

/* consent template picker row */
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.load-template { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Admin: stats + client table ───────────────────────────────────────────── */
.admin-link.active, .dash-nav a.admin-link.active { background: var(--red); color: var(--paper); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 18px; }
.stat { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-align: center; }
.stat-n { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-soft); line-height: 1; }
.stat-l { display: block; margin-top: 6px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--paper-faint); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--paper-faint); background: var(--ink-2); }
.admin-table tr:last-child td { border-bottom: none; }
.cell-strong { color: var(--paper); font-weight: 600; }
.ta-actions { white-space: nowrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.xsmall { font-size: 12px; padding: 6px 10px !important; }
@media (max-width: 560px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ── Themed date & time pickers (replace native popups) ────────────────────── */
.pick-field { position: relative; }
.dp, .tp {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 60;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5); padding: 12px;
}
.dp { width: 288px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.dp-title { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--paper); }
.dp-nav {
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: none; color: var(--paper); cursor: pointer; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.dp-nav:hover { border-color: var(--gold); color: var(--gold); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: 10px; color: var(--paper-faint); font-family: var(--font-label); text-transform: uppercase; padding: 4px 0; }
.dp-day {
  text-align: center; padding: 7px 0; border-radius: var(--radius); cursor: pointer;
  color: var(--paper); font-size: 14px; border: 1px solid transparent; background: none;
}
.dp-day:hover { background: var(--ink-3); }
.dp-day.is-today { border-color: var(--gold); }
.dp-day.is-selected { background: var(--gold); color: var(--ink); }
.dp-day.is-disabled { color: var(--paper-faint); opacity: 0.3; cursor: default; }
.dp-day.is-empty { cursor: default; }

.tp { width: 150px; max-height: 244px; overflow-y: auto; padding: 6px; }
.tp-opt { padding: 8px 12px; border-radius: var(--radius); cursor: pointer; color: var(--paper); font-size: 14px; }
.tp-opt:hover { background: var(--ink-3); }
.tp-opt.is-selected { background: var(--gold); color: var(--ink); }

/* ── Tsoona tuna mascot ─────────────────────────────────────────────────────── */
.tuna { width: clamp(120px, 24vw, 190px); height: auto; display: block; margin: 0 auto 4px; }
.hero .tuna { animation: tuna-bob 4.2s ease-in-out infinite; transform-origin: 60% 50%; }
@keyframes tuna-bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-9px) rotate(1.5deg); }
}

/* ── Platform top nav (landing / login / signup) ───────────────────────────── */
.site-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 20px;
}
.site-nav-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--paper);
  text-decoration: none; line-height: 1;
}
.site-nav-brand:hover { color: var(--gold-soft); }
.site-nav-brand svg { flex: none; }
.site-nav-links { display: flex; align-items: center; gap: 10px; flex: none; }

/* A single-button <form> (e.g. Log out / Skip) in a button row must hug its
   button — a block <form> inherits the body's tall line-height and grows a few
   px taller than a sibling .btn anchor, throwing the row out of alignment. */
.site-nav-links > form,
.dash-actions > form,
.tenant-topbar > form,
.onb-top > form { display: inline-flex; align-items: center; margin: 0; }

/* ── Profile picture (settings + public hero) ──────────────────────────────── */
.avatar-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.avatar-preview {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none;
  border: 2px solid var(--gold); background: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-empty { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; color: var(--paper-faint); text-align: center; padding: 0 8px; }
.avatar-controls { flex: 1 1 200px; }
.hero-avatar {
  width: clamp(96px, 22vw, 128px); height: clamp(96px, 22vw, 128px);
  border-radius: 50%; object-fit: cover; border: 3px solid var(--gold);
  display: block; margin: 0 auto 16px;
}

/* ── Tenant public: top-right studio login (styled like the dashboard Log out) ── */
.tenant-topbar { display: flex; justify-content: flex-end; max-width: var(--maxw); margin: 0 auto; padding: 14px 20px 12px; }

/* ── Booking-form editor (configurable intake fields) ──────────────────────── */
.intake-list { display: flex; flex-direction: column; gap: 8px; }
.intake-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; flex-wrap: wrap;
}
.intake-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.intake-label { color: var(--paper); font-family: var(--font-label); letter-spacing: 0.04em; }
.intake-item-actions { display: flex; gap: 6px; flex: none; }
.toggle-row {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  text-transform: none; letter-spacing: normal; color: var(--paper-dim);
  font-family: var(--font-body); font-size: 16px;
}
.toggle-row input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }

/* ── Full-width trial banner (below the dashboard top bar) ──────────────────── */
.trial-banner { background: rgba(208,160,63,0.14); border-bottom: 1px solid var(--gold); margin-bottom: 22px; }
.trial-banner-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--paper);
}
.trial-banner-inner .btn { flex: none; }

/* Full-width field grids (e.g. Links & socials) flow into as many columns as fit */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: 16px; }

/* Avatar action buttons sit in a row (Upload · Remove) */
.avatar-btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── Themed scrollbars ─────────────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 3px solid var(--ink-2); }
::-webkit-scrollbar-thumb:hover { background: var(--paper-faint); }
::-webkit-scrollbar-corner { background: var(--ink-2); }

/* consent template select sized to sit inline with the action buttons */
.tpl-select { padding: 8px 12px; font-size: 14px; max-width: 200px; }
/* "Powered by Tsoona" line in the tenant footer */
.powered-by { margin-top: 8px; }
.powered-by a { color: var(--gold-soft); }

/* ── Admin: 6-up metrics + impersonation banner ────────────────────────────── */
.stat-row-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 720px) { .stat-row-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .stat-row-6 { grid-template-columns: repeat(2, 1fr); } }

.imp-banner { background: rgba(184,58,52,0.18); border-bottom: 1px solid var(--red); margin-bottom: 22px; }
.imp-banner-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--paper);
}
.imp-banner-inner .btn { flex: none; }

/* ─────────────────────────────────────────────────────────────────────────────
   New features: security/2FA, availability, clients, calendar, print, feedback
   ───────────────────────────────────────────────────────────────────────────── */

/* Dashboard nav can get wide — let it wrap gracefully */
.dash-nav { flex-wrap: wrap; }

/* Two-factor setup: the base32 key + otpauth link */
.totp-key {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 1.15rem; letter-spacing: 0.12em; color: var(--paper);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; word-break: break-all; user-select: all;
}
.totp-otpauth {
  display: block; margin-top: 8px; font-size: 12px; color: var(--paper-dim);
  word-break: break-all; background: var(--ink-2); border-radius: 6px; padding: 8px 10px;
}
/* Scannable QR — always on a white quiet-zone so any camera reads it */
.totp-qr {
  display: inline-block; background: #fff; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line); line-height: 0;
}
.totp-qr svg { display: block; width: 200px; height: 200px; }
.totp-manual summary { user-select: none; }

/* Availability: inline duration input on an approve action */
.inline-dur { display: block; font-size: 12px; color: var(--paper-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.inline-dur input { display: block; width: 100%; margin-top: 4px; }

/* Open-day options on the public booking form */
.open-day .day-name .badge { vertical-align: middle; }
.open-day-time { margin-top: 8px; }
.open-day-time input { max-width: 220px; }

/* Blocked slot mini-controls (reopen / delete) */
.slot-card-tools { display: inline-flex; gap: 6px; align-items: center; }
.slot-card-mini {
  border: 1px solid var(--line); background: transparent; color: var(--gold-soft);
  border-radius: 6px; padding: 1px 7px; font-size: 11px; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.slot-card-mini:hover { border-color: var(--gold); color: var(--paper); }

/* Open-days chip row */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.day-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 6px 5px 14px; color: var(--paper);
}
.day-chip.is-past { opacity: 0.5; }

/* Dashboard toolbar (Print calendar, etc.) */
/* Wrapper for a horizontally-scrollable row: shows a soft fade on whichever edge
   has more content (JS toggles .can-left/.can-right), so it's clear you can swipe. */
.hscroll { position: relative; }
.hscroll::before, .hscroll::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 32px; z-index: 2;
  pointer-events: none; opacity: 0; transition: opacity 0.15s ease;
}
.hscroll::before { left: 0; background: linear-gradient(to right, var(--ink), rgba(20, 24, 28, 0)); }
.hscroll::after { right: 0; background: linear-gradient(to left, var(--ink), rgba(20, 24, 28, 0)); }
.hscroll.can-left::before { opacity: 1; }
.hscroll.can-right::after { opacity: 1; }

.dash-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 14px; }
/* On phones, keep the actions on ONE row that scrolls horizontally instead of
   wrapping or clipping off the left edge (flex-end used to hide the first button). */
@media (max-width: 640px) {
  .dash-toolbar {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; scroll-padding-left: 2px;
  }
  .dash-toolbar::-webkit-scrollbar { display: none; }
  .dash-toolbar > * { flex: 0 0 auto; white-space: nowrap; }
}

/* QR code page */
.qr-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.qr-preview { flex: 0 0 auto; }
.qr-preview img { display: block; width: 320px; height: 320px; max-width: 100%; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.qr-controls { flex: 1 1 300px; min-width: 260px; }
.qr-url-row { display: flex; gap: 8px; }
.qr-url-row input { flex: 1 1 auto; min-width: 0; }
.qr-logo-opts { display: flex; flex-direction: column; gap: 8px; }

/* Client detail: history rows + document lists */
.hist-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist-row:last-child { border-bottom: none; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.doc-list li:last-child { border-bottom: none; }
.doc-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-photos .ref-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }

/* ── Compact request cards → detail modal (HubSpot-style board) ────────────── */
.req-card { position: relative; }
.req-card.is-deleted { opacity: 0.55; }
.req-card-open {
  display: flex; flex-direction: column; gap: 4px;
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit;
}
/* Quick-delete ✕ in the card's top-right (sits above the click-to-open button). */
.req-card-del { position: absolute; top: 6px; right: 6px; z-index: 2; }
.req-card-x {
  background: none; border: 0; cursor: pointer; color: var(--paper-faint);
  font-size: 14px; line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.req-card-x:hover { color: var(--danger); background: var(--ink-2); }
/* keep the top row (name + badges) clear of the ✕ */
.req-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 22px; }
.req-card-name { font-family: var(--font-label); letter-spacing: 0.06em; font-size: 1.05rem; color: var(--paper); }
.req-card-service { color: var(--paper); font-size: 13px; font-weight: 600; }
.req-card-when { color: var(--gold-soft); font-size: 14px; }
.req-card-contact { color: var(--paper-faint); font-size: 13px; overflow-wrap: anywhere; }
/* Full-width accent block (not a shrink-wrapped pill) so the countdown wraps
   gracefully in a narrow column instead of looking squished. */
.req-card-followup { display: block; align-self: stretch; margin-top: 4px; padding: 6px 10px; border-radius: 8px;
  background: rgba(200,164,92,0.12); border: 1px solid rgba(200,164,92,0.32); border-left: 3px solid var(--gold-soft);
  color: var(--gold-soft); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.req-card-followup strong { color: var(--paper); white-space: nowrap; }
/* Day-off marker card — muted, dashed, clearly not a client booking. */
/* Payment rows in a card's detail (Stripe + off-Stripe entries) */
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.pay-row-x { background: none; border: 0; cursor: pointer; color: var(--paper-faint); font-size: 13px; line-height: 1; padding: 2px 5px; border-radius: 5px; }
.pay-row-x:hover { color: var(--danger); background: var(--ink-2); }
/* Class roster card + attendee rows */
.roster-card { border-left: 3px solid var(--gold-soft); }
.req-card-seats { color: var(--paper-dim); font-size: 13px; }
.roster-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.roster-row:last-of-type { border-bottom: none; }
.roster-row-actions { display: inline-flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.dayoff-card { border-style: dashed; background: rgba(127,127,127,0.05); }
.dayoff-card .req-card-name { color: var(--paper-dim); }
.dayoff-card.is-past { opacity: 0.55; }
.req-board .req-card { transition: border-color .12s ease, transform .12s ease; }
.req-board .req-card:hover { border-color: var(--gold-soft); }
.req-card-open:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; border-radius: 6px; }

/* Modal dialog */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.62); }
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5); padding: 20px 22px;
  animation: modal-in .14s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.modal-title { margin: 0; font-family: var(--font-label); letter-spacing: 0.06em; font-size: 1.3rem; color: var(--paper); }
.modal-x { flex: none; background: none; border: 0; color: var(--paper-dim); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.modal-x:hover { color: var(--paper); }
.modal-body .actions:first-child { margin-top: 4px; }

/* ── Card conversation (ticket thread) ─────────────────────────────────────── */
/* "New reply" on a card: an accent bar down its left edge + a dot-and-label line
   under the date (no emoji, never squeezed by the badge row). --teal-soft follows
   the artist's accent color. */
.req-card.has-unread { box-shadow: inset 3px 0 0 var(--teal-soft); }
.req-card-unread {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 2px;
  color: var(--teal-soft); font-family: var(--font-label); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px;
}
.unread-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--teal-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-soft) 25%, transparent);
}
/* Card header: ↻ refresh + ✕ close. */
.modal-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.modal-x.is-spinning { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .modal-x.is-spinning { animation: none; opacity: 0.5; } }
.thread-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
.msg { max-width: 88%; padding: 8px 11px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-3); }
.msg-client { align-self: flex-start; }
.msg-artist { align-self: flex-end; border-color: var(--gold); }
.msg-note { align-self: stretch; max-width: none; border-style: dashed; background: rgba(176,141,63,0.07); }
.msg-meta { font-size: 12px; color: var(--paper-faint); margin-bottom: 3px; }
.msg-meta strong { color: var(--paper); font-weight: 600; }
.msg-note .msg-meta strong { color: var(--gold-soft); }
.msg-body { white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.msg-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.msg-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.msg-photo { position: relative; }
.msg-photo-del { position: absolute; top: 3px; right: 3px; margin: 0; }
.msg-photo-x {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(20,24,28,0.82); color: var(--paper);
  font-size: 12px; line-height: 1; cursor: pointer;
}
.msg-photo-x:hover { background: var(--danger); }
/* Channel chip (Email / Text) on each client/artist message, plus a matching
   inner edge so a thread that mixes texts and emails scans at a glance. */
.msg-ch {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: 1px;
  padding: 0 6px; border: 1px solid currentColor; border-radius: 999px; line-height: 16px;
  font-family: var(--font-label); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
}
.msg-ch-email { color: var(--paper-faint); }
.msg-ch-sms { color: var(--ok); }
.ch-ico { width: 11px; height: 11px; flex: none; }
.msg-via-sms { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--ok) 70%, transparent); }
.msg-sys .ch-ico { vertical-align: -1px; }
.msg-sys { align-self: center; text-align: center; font-size: 12px; color: var(--paper-faint); max-width: 92%; }
.msg-sys-sms { color: color-mix(in srgb, var(--ok) 80%, var(--paper-faint)); }
.msg-sys-note { margin-top: 2px; white-space: pre-line; font-style: italic; }
.msg-when { opacity: 0.85; }
.thread-compose { margin-top: 10px; }
.thread-compose textarea { min-height: 76px; }

/* ── Printable agenda calendar (weekly / bi-weekly) ────────────────────────── */
.cal-wrap { padding: 8px 0 32px; }
.cal-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-nav { display: inline-flex; gap: 6px; }
.cal-title { font-family: var(--font-display, Georgia, serif); font-size: 1.4rem; color: var(--paper); }
.cal-controls { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.cal-jump { display: inline-flex; align-items: center; gap: 6px; }
.cal-jump input { width: 140px; }
.cal-span { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal-span-btn { padding: 6px 12px; font-size: 13px; font-family: var(--font-label); color: var(--paper-dim); text-decoration: none; }
.cal-span-btn + .cal-span-btn { border-left: 1px solid var(--line); }
.cal-span-btn.is-active { background: var(--gold); color: var(--ink); }

.agenda-week { margin-bottom: 22px; }
.agenda-week-label { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--paper-dim); margin: 0 0 10px; }
.agenda { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.agenda-day { display: grid; grid-template-columns: 118px 1fr; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.agenda-day:last-child { border-bottom: none; }
.agenda-day.is-weekend { background: var(--ink-2); }
.agenda-day.is-past { opacity: 0.5; }
.agenda-day.is-today { box-shadow: inset 3px 0 0 var(--gold); }
.agenda-date { display: flex; flex-direction: column; gap: 1px; }
.agenda-dow { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--gold-soft); }
.agenda-md { font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; color: var(--paper); }
.agenda-today-tag { align-self: flex-start; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--gold); color: var(--ink); border-radius: 4px; padding: 1px 5px; margin-top: 2px; }
.agenda-appts { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.agenda-none { color: var(--paper-faint); }
.agenda-appt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.agenda-time { font-variant-numeric: tabular-nums; color: var(--gold-soft); font-size: 14px; min-width: 130px; }
.agenda-name { color: var(--paper); font-weight: 600; }
.agenda-phone { color: var(--paper-faint); font-size: 13px; }
@media (max-width: 560px) { .agenda-day { grid-template-columns: 1fr; gap: 6px; } }

.cal-print-head { display: none; }
.cal-print-title { font-family: var(--font-display, Georgia, serif); font-size: 1.6rem; }
.cal-print-range { color: #555; margin-top: 2px; }

/* ── Print-optimized documents (consent form, calendar) ────────────────────── */
.print-doc { max-width: 820px; margin: 0 auto; padding: 24px; }
.print-toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.print-sheet { background: #fff; color: #1a1a1a; border-radius: 10px; padding: 40px; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.print-head { text-align: center; border-bottom: 2px solid #ddd; padding-bottom: 16px; margin-bottom: 20px; }
.print-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.print-head h1 { margin: 8px 0 2px; font-family: var(--font-display, Georgia, serif); color: #1a1a1a; }
.print-head h2 { margin: 12px 0 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: #666; }
.print-head .muted { color: #777; }
.print-consent-text { white-space: pre-line; line-height: 1.6; font-size: 14px; color: #222; }
.print-sig { margin-top: 28px; border-top: 1px solid #ddd; padding-top: 18px; }
.print-sig table { border-collapse: collapse; }
.print-sig td { padding: 4px 16px 4px 0; font-size: 14px; color: #222; vertical-align: top; }
.print-sig td:first-child { color: #777; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; white-space: nowrap; }
.print-only { display: none; }

@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff !important; }
  .print-doc { padding: 0; }
  .print-sheet { box-shadow: none; border-radius: 0; padding: 0; }
  .dash-topbar, .dash-site-foot, .site-nav, footer.site, .trial-banner, .imp-banner { display: none !important; }
  /* Agenda: ink on white, keep days from splitting across pages. */
  .cal-print-head { display: block !important; text-align: center; border-bottom: 2px solid #222; padding-bottom: 10px; margin-bottom: 16px; color: #111; }
  .agenda { border-color: #bbb !important; }
  .agenda-week-label { color: #222 !important; }
  .agenda-day { border-color: #ddd !important; break-inside: avoid; opacity: 1 !important; }
  .agenda-day.is-weekend { background: #f4f4f4 !important; }
  .agenda-day.is-today { box-shadow: none !important; }
  .agenda-dow { color: #444 !important; }
  .agenda-md, .agenda-name { color: #000 !important; }
  .agenda-time { color: #333 !important; }
  .agenda-phone { color: #555 !important; }
  .agenda-today-tag { background: #222 !important; color: #fff !important; }
}

/* ── Pricing on the landing page ───────────────────────────────────────────── */
.price-line { margin-top: 16px; font-family: var(--font-display, Georgia, serif); }
.price-amt { font-size: 2.4rem; color: var(--gold-soft); font-weight: 700; }
.price-per { color: var(--paper-dim); font-size: 1.1rem; }
.pricing-band { text-align: center; }
.pricing-band .steps { display: inline-block; text-align: left; }

/* ── Feedback disclosure (in footers) ──────────────────────────────────────── */
.feedback { margin-top: 14px; max-width: 460px; margin-left: auto; margin-right: auto; text-align: left; }
.feedback > summary {
  cursor: pointer; list-style: none; text-align: center; font-size: 13px;
  color: var(--paper-dim); font-family: var(--font-label); letter-spacing: 0.04em;
}
.feedback > summary:hover { color: var(--gold-soft); }
.feedback[open] > summary { margin-bottom: 12px; }
.feedback-form { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.feedback-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.feedback-row select { max-width: 140px; }
.feedback-row input { flex: 1 1 180px; }
.feedback-form textarea { width: 100%; margin-bottom: 10px; }
.feedback-thanks { margin: 8px 0 0; color: var(--gold); font-size: 14px; }
.feedback-thanks[hidden] { display: none; }
.dash-site-foot { border: none; margin-top: 20px; }

/* ── Admin: feedback list ──────────────────────────────────────────────────── */
.fb-tabs { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.fb-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-2); color: var(--paper-dim); font: inherit; font-size: 14px; cursor: pointer; transition: border-color 0.12s ease, color 0.12s ease; }
.fb-tab:hover { color: var(--paper); }
.fb-tab.is-active { border-color: var(--gold); color: var(--paper); }
.fb-tab .fb-count { font-size: 12px; color: var(--paper-faint); }
.fb-tab.is-active .fb-count { color: var(--gold); }
.fb-item[hidden] { display: none; }
.feedback-admin { display: flex; flex-direction: column; gap: 12px; }
.fb-item.is-done { opacity: 0.62; }
.fb-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fb-date { margin-left: auto; }
.fb-msg { margin: 0 0 8px; white-space: pre-line; color: var(--paper); }
.fb-meta { margin: 0 0 12px; }
.fb-actions { display: flex; gap: 8px; align-items: center; }

/* ─────────────────────────────────────────────────────────────────────────────
   Availability manager v2 — tabbed add-panel + unified per-day calendar list
   ───────────────────────────────────────────────────────────────────────────── */
/* No overflow:hidden here — it would clip the date-picker popover. The tab bar
   rounds its own top corners instead, so the card corners still look right. */
.avail-add { padding: 0; }
.avail-tabs {
  display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: var(--ink-2);
  border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); overflow: hidden;
}
.avail-tab {
  flex: 1 1 auto; border: none; background: transparent; color: var(--paper-dim);
  padding: 13px 14px; cursor: pointer; font-family: var(--font-label);
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.avail-tab:hover { color: var(--paper); }
.avail-tab.is-active { color: var(--paper); border-bottom-color: var(--red); background: var(--ink-3); }
.avail-panel { padding: 18px; }
/* Stack every panel in the same grid cell: the card is sized to the TALLEST tab
   and never changes height when you switch tabs (nothing below shifts). Inactive
   panels stay in layout but are hidden and non-interactive. */
/* Only the active panel takes space, so the card molds to its content (no empty
   gap under short panels). */
.avail-panels > .avail-panel { display: none; }
.avail-panels > .avail-panel.is-active { display: block; }
/* A one-line form: field(s) + submit button aligned along the bottom. */
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin: 0; }

/* Weekly recurring-hours editor: one compact row per weekday. Override the base
   2-column grid `.row` with a single flex line (day · times · length). */
.wk-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; margin-bottom: 8px; }
.wk-row .field { margin: 0; }
.wk-day { flex: 0 0 44px; }
.wk-day label { font-weight: 600; margin: 0; }
.wk-times { flex: 1 1 auto; min-width: 0; }
.wk-dur { flex: 0 0 92px; }
.wk-head { margin-bottom: 2px; align-items: flex-end; }
.wk-head label { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0; }
.wk-head .wk-times { text-align: left; }
.wk-autofill { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; background: var(--ink-2); }
.wk-autofill > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.wk-autofill[open] > summary { margin-bottom: 6px; }
/* Availability mode toggle (open days vs fixed times / one-off day):
   selectable option cards that match the site's checkbox styling. */
.wk-modes { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.wk-mode {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
}
.wk-mode:hover { border-color: var(--paper-faint); }
.wk-mode input { width: 18px; height: 18px; accent-color: var(--red); flex: none; margin: 0; }
.wk-mode:has(input:checked) { border-color: var(--red); background: rgba(184, 58, 52, 0.10); box-shadow: inset 0 0 0 1px var(--red); }
/* Open-days weekday row: a "worked" day pill (matches the .dow toggles) + a
   from–to time window. The pill is a FIXED width (not just min-width) so every
   day is identical and all the time inputs line up in a straight column. */
.wk-row > .dow { flex: none; margin: 0; }
.wk-daytoggle span { width: 58px; min-width: 58px; box-sizing: border-box; padding-left: 4px; padding-right: 4px; }
.wk-open { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; }
.wk-open input[type="text"] { flex: 1 1 0; min-width: 0; }
.wk-freqcell { flex: 0 0 104px; }
.wk-open .wk-freq { flex: 0 0 auto; width: auto; min-width: 96px; }
@media (max-width: 560px) {
  /* Give the weekday editor room to breathe: separate each day with a divider
     and generous padding so the rows no longer run together. */
  .wk-row { align-items: flex-start; margin-bottom: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .wk-row:last-child { border-bottom: none; }
  /* Open-days panel: the day pill sits on its own line above its hours, and the
     start/end times + frequency stack with real spacing (was cramped on one row). */
  [data-wk-panel="open"] .wk-row { flex-wrap: wrap; gap: 12px; }
  [data-wk-panel="open"] .wk-row > .dow { flex: 0 0 100%; }
  [data-wk-panel="open"] .wk-open { flex: 1 1 100%; flex-wrap: wrap; row-gap: 12px; gap: 10px; }
  [data-wk-panel="open"] .wk-open input[type="text"] { flex: 1 1 40%; }
  [data-wk-panel="open"] .wk-open .wk-freq { flex: 1 1 100%; width: 100%; }
}
.wk-dash { color: var(--muted); flex: none; font-size: 13px; }
.tz-note { color: var(--gold-soft); }

/* Dashboard at-a-glance stat strip. */
.stat-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.stat {
  flex: 1 1 120px; min-width: 110px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
  display: flex; flex-direction: column; gap: 2px;
}
.stat-num { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--paper); }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Account page tabs (Plan & payments / Login & security). */
.acct-tabs { display: flex; gap: 8px; margin: 8px 0 20px; flex-wrap: wrap; }
.acct-tab {
  padding: 9px 16px; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--paper-dim);
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px;
}
.acct-tab:hover { color: var(--paper); }
.acct-tab.is-active { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.acct-panel { display: none; }
.acct-panel.is-active { display: block; }

/* Admin error log. */
.err-list { display: flex; flex-direction: column; gap: 10px; }
.err-item {
  border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: var(--radius); background: var(--ink-2); padding: 12px 14px;
}
.err-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.err-msg {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13px; color: var(--paper); overflow-wrap: anywhere; white-space: pre-wrap;
}
.err-detail { margin-top: 8px; }
.err-detail summary { cursor: pointer; color: var(--paper-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.err-detail pre {
  margin: 8px 0 0; padding: 10px 12px; background: var(--ink-3); border-radius: var(--radius);
  overflow-x: auto; font-size: 12px; color: var(--paper-dim); line-height: 1.5;
}

/* Client tip section on the manage-booking page. */
.tip-block { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.tip-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tip-presets { display: flex; gap: 8px; }
.tip-presets form { margin: 0; }
.tip-btn { min-width: 58px; }
.tip-or { color: var(--muted); font-size: 13px; }
.tip-custom { display: flex; align-items: center; gap: 8px; margin: 0; }
.cur-input { position: relative; display: inline-flex; align-items: center; }
.cur-input .cur { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.cur-input input { width: 120px; padding-left: 22px; }

/* Address → maps link (public hero). */
.map-link { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.map-link:hover { color: var(--red); }

/* Invoices: per-card actions + the line-item editor. */
.invoice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.invoice-form .card { margin-bottom: 16px; }
.inv-items { display: flex; flex-direction: column; gap: 8px; }
.inv-row { display: grid; grid-template-columns: 1fr 70px 110px 90px 32px; gap: 8px; align-items: center; }
.inv-row input { margin: 0; }
.inv-row-head { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; color: var(--paper-faint); }
.inv-row-head span:nth-child(2), .inv-row-head span:nth-child(3), .inv-row-head span:nth-child(4) { text-align: right; }
.inv-amt { text-align: right; font-variant-numeric: tabular-nums; color: var(--paper-dim); }
.inv-row input[data-inv-qty], .inv-row input[data-inv-unit] { text-align: right; }
.inv-row-x { background: none; border: 0; color: var(--paper-faint); cursor: pointer; font-size: 15px; line-height: 1; }
.inv-row-x:hover { color: var(--red); }
.inv-total-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; font-size: 15px; }
@media (max-width: 640px) {
  .inv-row { grid-template-columns: 1fr 52px 84px 28px; }
  .inv-row .inv-amt, .inv-row-head span:nth-child(4) { display: none; }
}

/* Public booking: deposit-required note above the submit button. */
.deposit-note { text-align: center; margin: 4px 0 12px; padding: 10px 14px; border: 1px solid var(--gold); border-radius: var(--radius); background: rgba(208,160,63,0.10); color: var(--paper); font-size: 14px; }

/* Day-off confirmation: list of affected appointments. */
.dayoff-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dayoff-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }

/* Email-template placeholder chips. */
code.ph { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--ink-3); border: 1px solid var(--line); font-size: 12px; color: var(--gold); }
.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;
}

.avail-days { display: flex; flex-direction: column; gap: 10px; }
/* Keep the page short: after a handful of days, scroll within the list (matches
   the requests board). */
.avail-days {
  max-height: min(560px, 64vh);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.avail-days::-webkit-scrollbar { width: 8px; }
.avail-days::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.avail-days::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }
.avail-day { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.avail-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.avail-day-date { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper); font-size: 14px; }
.avail-day-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.avail-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.avail-slot {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 8px 5px 12px; color: var(--paper); font-variant-numeric: tabular-nums;
}
.avail-slot-time { font-size: 14px; }
.avail-slot-tag { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; color: var(--paper-dim); }
.avail-slot.status-booked, .avail-slot.status-held { border-color: var(--ok); }
.avail-slot.status-booked .avail-slot-tag, .avail-slot.status-held .avail-slot-tag { color: var(--ok); }
.avail-slot.status-blocked { opacity: 0.72; }
.avail-day-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ── First-run onboarding wizard ───────────────────────────────────────────── */
.onb { max-width: 960px; margin: 0 auto; padding: 22px 20px 60px; }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.onb-brand { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-soft); }
.onb-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 auto 24px; padding: 0; justify-content: center; }
.onb-step { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--paper-faint); }
.onb-step span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; }
.onb-step.is-active { color: var(--paper); }
.onb-step.is-active span { border-color: var(--gold); color: var(--gold-soft); }
.onb-step.is-done span { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.onb-head { margin-bottom: 20px; }
.onb-head h1 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 6px; color: var(--paper); }
.onb-panel[hidden] { display: none; }

.onb-split { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 780px) { .onb-split { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }
.onb-fields { display: flex; flex-direction: column; gap: 14px; }
.onb-fields-wide { max-width: 620px; }

.onb-colors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 520px) { .onb-colors { grid-template-columns: repeat(4, 1fr); } }
.onb-color { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.onb-color input[type=color] { width: 100%; height: 40px; padding: 2px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.onb-color-name { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: var(--paper); }

/* Live preview card */
.onb-preview { position: sticky; top: 16px; }
.onb-preview-label { display: block; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.onb-preview-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 28px 22px; text-align: center;
  background: var(--ink); color: var(--paper); transition: background .15s ease, color .15s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.onb-preview-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px;
  border: 3px solid var(--gold); background: rgba(255,255,255,0.06) center/cover no-repeat;
}
.onb-preview-avatar.has-img { background-color: transparent; }
.onb-preview-eyebrow { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; opacity: 0.85; margin-bottom: 6px; }
.onb-preview-name { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; margin-bottom: 8px; word-break: break-word; }
.onb-preview-tag { font-size: 15px; margin-bottom: 18px; }
.onb-preview-btn { border: 0; border-radius: 8px; padding: 10px 18px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; background: var(--gold); color: var(--ink); cursor: default; }
.onb-preview-link { display: block; margin-top: 14px; font-size: 14px; color: var(--gold-soft); text-decoration: none; }

/* Consent template picker */
.onb-tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.onb-tpl { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: var(--ink-2); }
.onb-tpl:has(input:checked) { border-color: var(--gold); background: var(--ink-3); }
.onb-tpl input { accent-color: var(--gold); flex: none; }
/* The option label inherits the app's wide uppercase label styling, which wrapped
   awkwardly in these narrow cards — tighten it and stop it clipping the radio. */
.onb-tpl span { letter-spacing: 0.03em; font-size: 12px; line-height: 1.25; }
/* One card per row on phones so no option label wraps mid-word. */
@media (max-width: 560px) { .onb-tpl-grid { grid-template-columns: 1fr; } }
/* Read-only preview of the selected consent template. */
.onb-tpl-preview { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); }
.onb-tpl-preview-head { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.onb-tpl-text { max-height: 260px; overflow-y: auto; padding: 12px 14px; white-space: pre-wrap; font-size: 13px; line-height: 1.5; color: var(--paper-dim); }

/* Nav row */
.onb-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.onb-nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.onb-skip-step { background: none; border: 0; color: var(--paper-faint); cursor: pointer; font-size: 14px; text-decoration: underline; }
.onb-skip-step:hover { color: var(--paper); }

/* ── Guided setup (accordion) ──────────────────────────────────────────────── */
.setup { max-width: 1040px; margin: 0 auto; padding: 22px 20px 80px; }
.setup-intro { margin: 0 0 20px; }
.setup-intro h1 { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 6px; color: var(--paper); }
.setup-intro p { max-width: 640px; }
.setup-layout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
@media (min-width: 900px) { .setup-layout { grid-template-columns: 1fr 320px; } }
.setup-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.setup-aside { display: none; }
@media (min-width: 900px) { .setup-aside { display: block; position: sticky; top: 16px; } }
.setup-sec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
/* Clip only while collapsed (rounds the summary corners). When open, allow
   overflow so a date-picker popover inside the section isn't cut off. */
.setup-sec:not([open]) { overflow: hidden; }
.setup-sec > summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 18px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em;
}
.setup-sec > summary::-webkit-details-marker { display: none; }
.setup-sec > summary::after { content: '▸'; color: var(--paper-faint); transition: transform .15s ease; margin-left: auto; }
.setup-sec[open] > summary::after { transform: rotate(90deg); }
.setup-sec[open] > summary { border-bottom: 1px solid var(--line); }
.setup-sec-title { color: var(--paper); font-size: 15px; }
.setup-sec-hint { color: var(--paper-faint); font-size: 12px; text-transform: none; letter-spacing: 0; }
.setup-sec-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
/* An "add" row: a field that fills the width with its action button beside it, the
   button bottom aligned to the input. Used in the guided setup AND on Edit Site so
   the portfolio/media rows look identical and never stack (no wasted height). */
.setup-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.setup-add .field { margin: 0; flex: 1 1 200px; }
/* Consistent action-button size so every field box ends at the same edge and the
   buttons line up in a column (and match the input height) across the stacked add
   rows (photos/video/audio). min-width fits the longest label ("Upload photos"). */
.setup-add .btn { flex: none; min-width: 160px; min-height: 44px; }
/* On phones the button wraps under the full-width field — make it full width too,
   matching the rest of the app's mobile buttons, instead of a stranded 160px box. */
@media (max-width: 560px) { .setup-add .btn { flex: 1 1 100%; } }
.setup-add-stack { display: flex; flex-direction: column; gap: 12px; }
/* A collapsible "Add a service / event / question" toggle: one shared look for the
   summary and one consistent gap before the form it reveals (the add/edit forms sit
   directly after the summary; in the guided setup the section's own gap spaces them,
   so the shared partials no longer hard-code a top margin). */
.add-toggle { cursor: pointer; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--paper-dim); }
summary + form { margin-top: 14px; }
/* A sub-heading that separates grouped controls inside one accordion section
   (e.g. "Days off" under "Your hours & days off"). */
.setup-subhead { margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--paper); }
.setup-finish { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: 18px; margin-top: 6px; }
/* Inside the finish card the sticky-bar chrome (gradient band, border, padding)
   looks like a box around the lone button — strip it to a plain right-aligned button. */
.setup-finish .save-bar { position: static; border: 0; background: none; padding: 0; margin-top: 14px; }

/* ── Rich-text About editor (site builder) ─────────────────────────────────── */
.rte { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--ink-3); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border-bottom: 1px solid var(--line); background: var(--ink-2); }
.rte-btn { border: 1px solid transparent; background: transparent; color: var(--paper-dim); border-radius: 6px; padding: 4px 9px; font-size: 13px; cursor: pointer; font-family: var(--font-label); }
.rte-btn:hover { background: var(--ink-3); color: var(--paper); border-color: var(--line); }
.rte-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 3px; }
.rte-area { min-height: 120px; padding: 12px 14px; color: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.5; outline: none; }
.rte-area:focus { box-shadow: inset 0 0 0 2px var(--gold-soft); }
.rte-area p { margin: 0 0 8px; }
.rte-area ul, .rte-area ol { margin: 0 0 8px; padding-left: 22px; }
.rte-area a { color: var(--gold-soft); }
.rte.is-empty .rte-area::before { content: attr(data-placeholder); color: var(--paper-faint); pointer-events: none; }

/* Rendered About blurb on the public page */
.about-rich { color: var(--paper-dim); margin-top: 0; }
.about-rich p { margin: 0 0 10px; }
.about-rich p:last-child { margin-bottom: 0; }
.about-rich ul, .about-rich ol { margin: 0 0 10px; padding-left: 22px; }
.about-rich a { color: var(--gold); text-decoration: underline; }
.about-rich a:hover { color: var(--gold-soft); }

/* ── Font pairing picker ───────────────────────────────────────────────────── */
.font-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.font-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--ink-3); text-align: center; transition: border-color .12s ease; }
.font-pick:hover { border-color: var(--gold-soft); }
.font-pick.is-selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.font-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.font-pick-sample { font-size: 30px; line-height: 1; color: var(--paper); }
.font-pick-name { font-family: var(--font-label); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-dim); }
/* Sample faces (fonts imported on the builder page) */
.font-classic   { font-family: 'Alfa Slab One', Georgia, serif; }
.font-modern    { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; }
.font-elegant   { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
.font-minimal   { font-family: 'Archivo', system-ui, sans-serif; font-weight: 700; }
.font-editorial { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; }
.font-friendly  { font-family: 'Fraunces', Georgia, serif; font-weight: 600; }

/* ── Landing showcase: mock booking-page previews ──────────────────────────── */
.showcase { text-align: center; padding: 30px 0; border: none; }
.showcase .section-head { justify-content: center; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 940px; margin: 0 auto; }
.site-preview {
  background: var(--pv-bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35); text-align: center; transition: transform .15s ease;
}
.site-preview:hover { transform: translateY(-4px); }
.pv-bar { display: flex; gap: 6px; padding: 10px 12px; background: rgba(127,127,127,0.14); }
.pv-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(127,127,127,0.5); }
.pv-body { padding: 26px 20px 28px; color: var(--pv-text); }
.pv-avatar {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  font-family: var(--pv-font); font-size: 24px; color: var(--pv-text);
  border: 3px solid var(--pv-primary); background: rgba(127,127,127,0.12);
}
.pv-eyebrow { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--pv-dim); margin-bottom: 6px; }
.pv-name { font-family: var(--pv-font); font-size: 1.7rem; line-height: 1.05; margin-bottom: 8px; color: var(--pv-text); }
.pv-tag { font-size: 14px; color: var(--pv-dim); margin-bottom: 16px; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-bottom: 18px; }
.pv-chips span {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--pv-primary); color: var(--pv-primary); background: rgba(127,127,127,0.06);
}
.pv-btn {
  display: inline-block; padding: 9px 20px; border-radius: 999px; font-size: 13px;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--pv-primary); color: var(--pv-bg); font-weight: 600;
}
/* Live example cards are real links into the demo sites. */
a.site-preview { display: block; text-decoration: none; }
a.site-preview.is-live { cursor: pointer; }
a.site-preview.is-live:hover { transform: translateY(-6px); box-shadow: 0 22px 52px rgba(0,0,0,0.42); }
a.site-preview.is-live:hover .pv-btn { filter: brightness(1.08); }

/* Public-page banner shown on the platform's example/demo sites. */
.demo-ribbon {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center;
  padding: 9px 16px; text-align: center; font-size: 13.5px;
  background: var(--red); color: #fff;
}
.demo-ribbon a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Inline date/time on the approve card (for flexible/no-time requests) */
.approve-when { border-top: 1px solid var(--line); padding-top: 10px; }
.approve-when .row { display: flex; gap: 10px; flex-wrap: wrap; }
.approve-when .field { flex: 1 1 120px; }
