/* ── Barber SaaS editorial design system ── */
/* Fonts: Newsreader (serif dates), Inter Tight (UI labels), JetBrains Mono (times/numbers) */

:root {
  --ink:         #0f1117;
  --ink-mid:     #4a5568;
  --ink-soft:    #9ca3af;
  --ink-ghost:   #d1d5db;
  --surface:     #ffffff;
  --surface-2:   #f9fafb;
  --surface-3:   #f3f4f6;
  --border:      #e5e7eb;
  --success:     #059669;
  --danger:      #dc2626;
  --warn-color:  #b45309;
  --warn-bg:     #fffbeb;
  --warn-border: #fcd34d;
  --brand:       var(--brand-color, #b5532a);
  --accent-warm: #7a3e2a;
  --r-sm:        6px;
  --r:           12px;
  --r-lg:        20px;
}

/* Without this, any width:100% element with padding/border (e.g. .ov-input)
   renders wider than its container under the browser's content-box default —
   the overflow doesn't reflow, it silently pushes past the viewport edge. */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ── Background themes (applied via data-theme on any wrapper: .screen for barber
   pages, .bk-screen/.dr-wrap for the public booking flow) ── */
[data-theme="warm"] {
  --surface:   #faf8f4;
  --surface-2: #f4f0e8;
  --surface-3: #ece7dc;
  --border:    #ddd5c4;
  --ink:       #1c1208;
  --ink-mid:   #5c4c38;
  --ink-soft:  #9c8c78;
  --ink-ghost: #c8beb2;
}

[data-theme="cool"] {
  --surface:   #f8fafc;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --border:    #cbd5e1;
  --ink:       #0f172a;
  --ink-mid:   #475569;
  --ink-soft:  #94a3b8;
  --ink-ghost: #cbd5e1;
}

[data-theme="dark"] {
  --surface:   #18181b;
  --surface-2: #1e1e24;
  --surface-3: #27272e;
  --border:    #3f3f46;
  --ink:       #fafafa;
  --ink-mid:   #a1a1aa;
  --ink-soft:  #71717a;
  --ink-ghost: #52525b;
  --warn-bg:     #2e2410;
  --warn-border: #7c5c1a;
}

/* ── Layout ── */
.screen {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}

.scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/* ── Header ── */
.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 11px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hd-left { display: flex; align-items: center; gap: 10px; }

.monogram, .profile-mono, .ma-mono {
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.monogram { width: 34px; height: 34px; font-size: 13px; }
.profile-mono { width: 52px; height: 52px; font-size: 20px; margin-bottom: 6px; }
.ma-mono { width: 36px; height: 36px; font-size: 14px; }

.hd-text { display: flex; flex-direction: column; gap: 1px; }

.hd-business {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'Inter Tight', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.hd-name { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

.hd-more {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: none; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mid);
  flex-shrink: 0;
  transition: background 0.1s;
}
.hd-more:active { background: var(--surface-3); }

/* Push-nav header */
.hd-push { padding: 10px 14px; }
.hd-push-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  font-family: 'Inter Tight', sans-serif; letter-spacing: -0.01em;
}

.back-btn {
  display: flex; align-items: center; gap: 4px;
  color: var(--brand); font-size: 14px; font-weight: 600;
  text-decoration: none; padding: 6px 8px 6px 2px;
}
.back-btn:active { opacity: 0.7; }

/* ── Day block ── */
.day {
  padding: 22px 22px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.day-wk {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 4px;
}

.day-date {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 34px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.05;
}

.day-bar {
  height: 3px; width: 28px; border-radius: 2px;
  background: var(--brand); margin: 10px 0 8px;
}

.day-meta { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.day-rev { font-size: 20px; font-weight: 700; color: var(--success); font-family: 'Inter Tight', sans-serif; margin-top: 8px; letter-spacing: -0.02em; }

/* ── Walk-in queue ── */
.walkins {
  margin: 10px 14px;
  border-radius: var(--r);
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  overflow: hidden;
}

.walkins-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px;
}

.walkins-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-mid);
  font-family: 'Inter Tight', sans-serif;
}

.walkins-count { font-size: 12px; font-weight: 600; color: var(--warn-color); }
.walkins-list { display: flex; flex-direction: column; }

.walkin {
  display: flex; align-items: center;
  padding: 10px 14px; width: 100%;
  background: none; border: none; border-top: 1px solid var(--warn-border);
  cursor: pointer; text-align: left; gap: 10px;
}
.walkin:active { background: color-mix(in srgb, var(--warn-border) 20%, transparent); }

.walkin-name { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; }
.walkin-meta { font-size: 12px; color: var(--ink-soft); }
.walkin-seat {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700; color: var(--brand);
}

/* ── Section label ── */
.sec-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-soft);
  font-family: 'Inter Tight', sans-serif;
}

.sec-label-r {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--ink-soft);
}

/* ── Appointment list ── */
.list { padding: 0 14px 6px; display: flex; flex-direction: column; gap: 3px; }

.list-end {
  font-size: 12px; color: var(--ink-ghost);
  text-align: center; padding: 16px 0 8px; font-weight: 500;
}

/* ── Now divider ── */
.now-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0; margin: 2px 0;
}
.now-line { flex: 1; height: 1px; background: var(--brand); opacity: 0.4; }
.now-label { display: flex; align-items: center; gap: 4px; }
.now-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.now-text {
  font-size: 11px; font-weight: 700; color: var(--brand);
  font-family: 'JetBrains Mono', monospace; letter-spacing: -0.01em;
}

/* ── Appointment card ── */
.appt {
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.appt.is-past { opacity: 0.5; }
.appt.is-chair {
  border-color: var(--brand);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 20px -10px rgba(0,0,0,0.18);
}

.appt-head {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 12px; width: 100%;
  background: none; border: none;
  cursor: pointer; text-align: left;
  transition: background 0.1s;
}
.appt-head:active { background: var(--surface-3); }

/* ── Person avatar — colored by customer tier, same signal as the tag ── */
.appt-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: -0.01em; margin-top: 1px;
}
.appt-avatar-vip { background: var(--accent-warm); color: #fff; }
.appt-avatar-regular { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); color: var(--brand); }
.appt-avatar-new,
.appt-avatar-walk { background: var(--surface-3); color: var(--ink-mid); }

/* ── In-chair elapsed-time indicator — only rendered when apt.in_chair ── */
.chair-progress { padding: 0 12px 10px; }
.chair-progress-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
  font-family: 'Inter Tight', sans-serif; margin-bottom: 5px;
}
.chair-progress-meta .mins { font-family: 'JetBrains Mono', monospace; color: var(--brand); font-weight: 700; }
.chair-progress-track { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.chair-progress-fill { height: 100%; border-radius: 4px; background: var(--success); }

.appt-time {
  display: flex; flex-direction: column; align-items: flex-end;
  flex-shrink: 0; width: 46px;
}

.appt-time-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.2;
}

.appt-time-dur {
  font-size: 11px; color: var(--ink-soft); font-weight: 500;
  font-family: 'JetBrains Mono', monospace; margin-top: 1px;
}

.appt-body { flex: 1; min-width: 0; }

.appt-name-row {
  display: flex; align-items: center; gap: 5px;
  flex-wrap: wrap; margin-bottom: 2px;
}

.appt-name {
  font-size: 14px; font-weight: 700; color: var(--ink);
  font-family: 'Inter Tight', sans-serif; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.appt-svc { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

.appt-status {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 3px; flex-shrink: 0;
}

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.status-label {
  font-size: 10px; font-weight: 700; color: var(--ink-soft);
  letter-spacing: 0.03em; text-transform: uppercase;
  font-family: 'Inter Tight', sans-serif;
}

/* ── Tags — same tier signal as .appt-avatar-*, kept in sync deliberately ── */
.tag {
  display: inline-flex; align-items: center;
  box-sizing: border-box;
  padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  font-family: 'Inter Tight', sans-serif;
  letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
}
.tag-new  { background: transparent; color: var(--ink-mid); border: 1px solid var(--border); }
.tag-vip  { background: var(--accent-warm); color: #fff; }
.tag-reg  { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.tag-walk { background: #f3f4f6; color: var(--ink-mid); }
.tag-comp { background: #fef9c3; color: #854d0e; }

/* ── Detail panel ── */
.appt-detail {
  padding: 0 12px 12px;
  border-top: 1px solid var(--surface-3);
}

.appt-note {
  font-size: 13px; color: var(--ink-mid);
  padding: 10px 0 8px; display: flex; gap: 6px;
}

.note-glyph {
  color: var(--brand); font-weight: 700; font-size: 15px;
  line-height: 1.2; flex-shrink: 0;
}

.appt-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px; padding-top: 2px;
}

.meta-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none;
}
.meta-link:active { opacity: 0.7; }

.meta-sep { color: var(--ink-ghost); font-size: 11px; }
.meta-soft { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

.meta-link-btn {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 13px; font-weight: 600; color: var(--ink-mid); text-decoration: none;
  background: var(--surface-3); padding: 3px 8px; border-radius: var(--r-sm);
}
.meta-link-btn:active { background: var(--border); }

.appt-actions { display: flex; gap: 8px; padding-top: 2px; }

/* ── Action buttons ── */
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 16px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700;
  font-family: 'Inter Tight', sans-serif; letter-spacing: -0.01em;
  border: none; cursor: pointer; text-decoration: none;
  transition: opacity 0.1s, background 0.1s; -webkit-tap-highlight-color: transparent;
}
.act:active { opacity: 0.75; }
.act-primary { background: var(--brand); color: #fff; }
.act-ghost { background: var(--surface-3); color: var(--ink); }
.act-ghost:active { background: var(--border); }
.act-danger { background: var(--surface-3); color: #dc2626; }
.is-disabled { opacity: 0.4; pointer-events: none; }

/* ── FAB ── */
.fab {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  right: 20px;
  display: flex; align-items: center; gap: 6px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--brand); color: #fff;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 700;
  font-family: 'Inter Tight', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 20; transition: transform 0.1s;
}
.fab:active { transform: scale(0.96); }

/* ── Sheet overlay ── */
.sheet-wrap {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 100;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.sheet {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  overflow: hidden; max-width: 448px;
  margin: 0 auto; width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.sheet-grab {
  width: 36px; height: 4px;
  background: var(--border); border-radius: 2px;
  margin: 10px auto 0;
}

.sheet-tall { max-height: 80dvh; display: flex; flex-direction: column; }

.sheet-title {
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}

.sheet-title-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-soft);
  font-family: 'Inter Tight', sans-serif; margin-bottom: 2px;
}
.sheet-title-eyebrow.warn   { color: var(--warn-color); }
.sheet-title-eyebrow.danger { color: #dc2626; }

.sheet-title-h {
  font-size: 18px; font-weight: 700; color: var(--ink);
  font-family: 'Inter Tight', sans-serif; letter-spacing: -0.02em;
}

.sheet-field { padding: 0 18px 12px; }
.sheet-actions {
  display: flex; gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.sheet-act { flex: 1; justify-content: center; }

/* ── Walk-in sheet service picker ──────────────────────────────────────────
   Namespaced .wk-* deliberately, not .svc-list/.svc-row — those two class
   names are also used (with different, conflicting rules) by the settings
   services list below. They used to collide silently here; renaming this
   one fully decouples the two contexts instead of relying on CSS source
   order to sort it out. ── */
.wk-svc-list { flex: 1; overflow-y: auto; padding: 6px 0; }

.wk-svc-row {
  display: flex; align-items: center;
  padding: 13px 20px; width: 100%;
  background: none; border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer; text-align: left; gap: 12px;
  transition: background 0.1s;
}
.wk-svc-row:last-child { border-bottom: none; }
.wk-svc-row:active { background: var(--surface-3); }

.wk-svc-row-main { flex: 1; }
.svc-name { font-size: 15px; font-weight: 600; color: var(--ink); display: block; font-family: 'Inter Tight', sans-serif; }
.svc-dur  { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-top: 2px; display: block; }
.svc-price { font-size: 14px; font-weight: 700; color: var(--ink-mid); font-family: 'JetBrains Mono', monospace; }

/* ── Confirm / compression / error bodies ── */
.confirm-body { padding: 14px 20px; flex: 1; overflow-y: auto; }

.confirm-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.confirm-row:last-child { border-bottom: none; }

.confirm-k {
  font-weight: 600; color: var(--ink-soft);
  font-family: 'Inter Tight', sans-serif; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.confirm-v { font-weight: 600; color: var(--ink); font-size: 14px; }

.warn-body { padding: 16px 20px; flex: 1; overflow-y: auto; }

.warn-stat {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 16px; padding: 16px;
  background: var(--warn-bg); border-radius: var(--r); border: 1px solid var(--warn-border);
}

.warn-gap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 40px; font-weight: 500; color: var(--warn-color); line-height: 1;
}
.warn-unit { font-size: 18px; font-weight: 500; margin-left: 2px; }
.warn-gap-label { font-size: 12px; color: var(--warn-color); font-weight: 600; margin-top: 4px; font-family: 'Inter Tight', sans-serif; }

.warn-text { font-size: 14px; color: var(--ink-mid); line-height: 1.5; margin-bottom: 14px; }

.warn-table {
  display: flex; flex-direction: column;
  border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border);
}
.warn-table-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; font-size: 13px;
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.warn-table-row:last-child { border-bottom: none; }

.err-body { padding: 16px 20px; flex: 1; }
.err-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto 16px;
}
.err-text { font-size: 14px; color: var(--ink); line-height: 1.5; margin-bottom: 10px; text-align: center; }
.err-text-mute { font-size: 13px; color: var(--ink-soft); line-height: 1.5; text-align: center; }

/* ── Status banner — one component instead of every page hand-rolling its own
   inline-styled colored box. color-mix against var(--surface) means the tint
   is computed relative to whichever theme/background is active, so it stays
   correct on warm/cool/dark without a separate override per theme. ── */
.banner { padding: 12px 14px; border-radius: var(--r); margin-bottom: 16px; font-size: 13px; line-height: 1.45; font-weight: 500; }
.banner-neutral { background: var(--surface-3); color: var(--ink-mid); }
.banner-success { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }
.banner-danger  { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }

/* ── Customer profile ── */
.profile-hd {
  padding: 24px 22px 18px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}

.profile-name-row { display: flex; align-items: center; gap: 8px; }

.profile-name {
  font-size: 22px; font-weight: 700; color: var(--ink);
  font-family: 'Inter Tight', sans-serif; letter-spacing: -0.02em; margin: 0;
}

.profile-meta { font-size: 13px; color: var(--ink-soft); font-weight: 500; }

/* ── Contact strip ── */
.contact-strip {
  display: flex; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.contact-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink);
  font-size: 13px; font-weight: 700; text-decoration: none;
  font-family: 'Inter Tight', sans-serif;
  flex: 1; justify-content: center; transition: background 0.1s;
}
.contact-btn:active { background: var(--border); }

/* ── Preferences ── */
.prefs { background: var(--surface); margin-top: 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.prefs-note { padding: 10px 22px 16px; font-size: 14px; color: var(--ink-mid); line-height: 1.55; display: flex; gap: 4px; }
.prefs-quote { font-size: 24px; color: var(--brand); font-family: 'Newsreader', serif; line-height: 1; flex-shrink: 0; }

/* ── SMS consent ── */
.consent-card { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 22px; }
.consent-state { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.consent-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.consent-dot-opted_in  { background: var(--success); }
.consent-dot-opted_out { background: var(--danger); }
.consent-dot-not_set   { background: var(--ink-ghost); }
.consent-label { font-size: 14px; font-weight: 700; color: var(--ink); font-family: 'Inter Tight', sans-serif; }
.consent-since { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-left: 2px; }
.consent-source { font-size: 12px; color: var(--ink-soft); font-weight: 500; padding-left: 15px; }

/* ── Stats grid ── */
.stats-grid { display: flex; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 16px 8px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-n { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.stat-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); font-family: 'Inter Tight', sans-serif; margin-top: 3px; }

/* ── Visit history ── */
.history { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hist-row { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid var(--border); }
.hist-row:last-child { border-bottom: none; }
.hist-date { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-soft); width: 56px; flex-shrink: 0; }
.hist-body { flex: 1; }
.hist-svc { font-size: 14px; font-weight: 600; color: var(--ink); font-family: 'Inter Tight', sans-serif; }
.hist-status { font-size: 12px; color: var(--ink-soft); font-weight: 500; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.hist-price { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; color: var(--ink-mid); flex-shrink: 0; }

/* ── Bottom bar ── */
.bottom-bar { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.bottom-act { width: 100%; justify-content: center; }

/* ── Settings ── */
.settings-list { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 16px; }
.settings-row { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); text-decoration: none; gap: 12px; transition: background 0.1s; }
.settings-row:active { background: var(--surface-3); }
.settings-row.is-last { border-bottom: none; }
.settings-row-body { flex: 1; }
.settings-row-label { font-size: 15px; font-weight: 600; color: var(--ink); font-family: 'Inter Tight', sans-serif; }
.settings-row-value { font-size: 13px; color: var(--ink-soft); font-weight: 500; margin-top: 2px; }
.settings-footer { padding: 20px 22px; }
.settings-foot-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); padding: 4px 0; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* ── Working hours ── */
.wh-intro { font-size: 13px; color: var(--ink-soft); padding: 14px 22px 6px; line-height: 1.5; }
.wh-list { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 8px; }
.wh-row { display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.wh-row:last-child { border-bottom: none; }
.wh-toggle { display: flex; align-items: center; gap: 12px; padding: 14px 18px; flex: 1; background: none; border: none; cursor: pointer; text-align: left; transition: background 0.1s; }
.wh-toggle:active { background: var(--surface-3); }
.wh-day { font-size: 15px; font-weight: 600; color: var(--ink); font-family: 'Inter Tight', sans-serif; width: 90px; }
.wh-switch { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--border); flex-shrink: 0; transition: background 0.2s; }
.wh-switch.is-on { background: var(--brand); }
.wh-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s; font-style: normal; display: block; }
.wh-switch.is-on i { transform: translateX(16px); }
.wh-times { display: flex; align-items: center; gap: 6px; padding-right: 18px; }
.wh-time { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; color: var(--brand); background: none; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 5px 9px; cursor: pointer; transition: background 0.1s; }
.wh-time:active { background: var(--surface-3); }
.wh-dash { color: var(--ink-ghost); font-size: 13px; }
.wh-closed { font-size: 13px; color: var(--ink-ghost); padding-right: 18px; font-style: italic; }
.wh-row.is-closed .wh-day { color: var(--ink-ghost); }

/* ── Overrides ── */
.override-list { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.override-row { display: flex; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); text-decoration: none; gap: 12px; transition: background 0.1s; }
.override-row:last-child { border-bottom: none; }
.override-row:active { background: var(--surface-3); }
.override-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-soft); width: 50px; flex-shrink: 0; }
.override-body { flex: 1; }
.override-title { font-size: 14px; font-weight: 600; color: var(--ink); font-family: 'Inter Tight', sans-serif; }
.override-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ── Time picker grid ── */
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 18px; flex: 1; overflow-y: auto; }
.time-pill { padding: 10px 6px; border-radius: var(--r-sm); border: 1px solid var(--border); background: none; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500; color: var(--ink); text-align: center; transition: background 0.1s, border-color 0.1s; }
.time-pill.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.time-pill:active { background: var(--surface-3); }

/* ── Kebab / generic sheet rows ── */
.kebab-list { display: flex; flex-direction: column; padding: 6px 0 2px; }
.kebab-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; width: 100%;
  background: none; border: none; border-bottom: 1px solid var(--border);
  cursor: pointer; text-align: left; text-decoration: none;
  color: var(--ink); transition: background 0.1s;
}
.kebab-row:last-child { border-bottom: none; }
.kebab-row:active { background: var(--surface-3); }
.kebab-row.is-danger { color: #dc2626; }
.kebab-row-label { font-size: 15px; font-weight: 600; font-family: 'Inter Tight', sans-serif; }
.kebab-row-sub { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-top: 1px; }

/* ── Manage appointment (customer-facing) ── */
.ma-scroll { background: var(--surface); }

.ma-top {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px 16px; border-bottom: 1px solid var(--border);
}
.ma-top-text { display: flex; flex-direction: column; gap: 1px; }
.ma-top-business { font-size: 15px; font-weight: 700; color: var(--ink); font-family: 'Inter Tight', sans-serif; }
.ma-top-name { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

.ma-hero { padding: 28px 22px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.ma-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); font-family: 'Inter Tight', sans-serif; margin-bottom: 6px; }
.ma-date { font-family: 'Newsreader', Georgia, serif; font-size: 32px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.ma-time { font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 500; color: var(--brand); margin-top: 4px; }
.ma-time-end { color: var(--ink-soft); font-size: 14px; }

.ma-card { margin: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.ma-card-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.ma-card-row:last-child { border-bottom: none; }
.ma-card-row-stack { align-items: flex-start; }
.ma-card-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); font-family: 'Inter Tight', sans-serif; }
.ma-card-v { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.ma-soft { color: var(--ink-soft); font-size: 13px; }

.ma-link { display: flex; align-items: center; gap: 7px; margin: 0 18px 16px; padding: 12px 16px; background: var(--surface-3); border-radius: var(--r-sm); text-decoration: none; color: var(--brand); font-size: 14px; font-weight: 700; font-family: 'Inter Tight', sans-serif; transition: background 0.1s; }
.ma-link:active { background: var(--border); }

.ma-action-stack { display: flex; flex-direction: column; gap: 8px; padding: 0 18px; }
.ma-act { justify-content: center; }
.ma-act-danger { background: var(--surface-3); color: #dc2626; }
.ma-act-danger:active { background: #fee2e2; }

.ma-notice { font-size: 12px; color: var(--ink-soft); text-align: center; padding: 16px 22px 24px; line-height: 1.5; }

.ma-mod { padding: 22px 20px; }
.ma-mod-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; font-family: 'Inter Tight', sans-serif; color: var(--ink-soft); margin-bottom: 6px; }
.ma-mod-eyebrow.danger { color: #dc2626; }
.ma-mod-eyebrow.warn   { color: var(--warn-color); }
.ma-mod-h { font-size: 22px; font-weight: 700; color: var(--ink); font-family: 'Inter Tight', sans-serif; letter-spacing: -0.02em; margin-bottom: 10px; }
.ma-mod-text { font-size: 14px; color: var(--ink-mid); line-height: 1.55; }

.ma-final { padding: 40px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ma-final-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--success); display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 16px; }
.ma-final-mark-cancelled { background: var(--danger); }
.ma-final-h { font-size: 24px; font-weight: 700; color: var(--ink); font-family: 'Inter Tight', sans-serif; letter-spacing: -0.02em; margin-bottom: 8px; }
.ma-final-sub { font-size: 14px; color: var(--ink-mid); line-height: 1.55; max-width: 280px; }

/* Reschedule day strip */
.ma-day-strip { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ma-day-strip::-webkit-scrollbar { display: none; }
.ma-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: none; cursor: pointer; min-width: 52px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); font-family: 'Inter Tight', sans-serif; white-space: nowrap; transition: background 0.1s, border-color 0.1s; }
.ma-day.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.ma-day:active { background: var(--surface-3); }
.ma-day-n { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: inherit; }

.ma-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.ma-slot { padding: 10px 4px; border-radius: var(--r-sm); border: 1px solid var(--border); background: none; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink); text-align: center; transition: background 0.1s, border-color 0.1s; }
.ma-slot.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.ma-slot:active { background: var(--surface-3); }
.ma-slot-empty { grid-column: 1 / -1; text-align: center; padding: 20px; color: var(--ink-soft); font-size: 13px; }

/* ── Override form ── */
.ov-body { padding: 6px 20px 4px; overflow-y: auto; flex: 1; }
.ov-field { margin-bottom: 16px; }
.ov-field label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 6px; font-family: 'Inter Tight', sans-serif; }
.ov-input { width: 100%; background: var(--surface-2, #f5f5f5); border: 1px solid var(--border); border-radius: var(--r); padding: 11px 14px; font-size: 15px; color: var(--ink); outline: none; font-family: inherit; appearance: none; -webkit-appearance: none; }
.ov-input:focus { border-color: var(--ink); }
.ov-seg { display: flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.ov-seg-btn { flex: 1; padding: 11px 0; font-size: 14px; font-weight: 600; font-family: 'Inter Tight', sans-serif; background: none; border: none; cursor: pointer; color: var(--ink-soft); transition: background .12s, color .12s; }
.ov-seg-btn.is-on { background: var(--ink); color: #fff; }
.ov-times { display: flex; gap: 10px; }
.ov-times .ov-field { flex: 1; margin-bottom: 0; }
.ov-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; color: var(--danger); margin-bottom: 14px; line-height: 1.4; }

/* ── Date strip ── */
.date-strip-wrap { border-bottom: 1px solid var(--border); background: var(--surface); }
.date-strip { display: flex; gap: 2px; overflow-x: auto; padding: 8px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.date-strip::-webkit-scrollbar { display: none; }
.date-chip { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 8px 5px; border-radius: var(--r-sm); border: none; background: none; cursor: pointer; flex-shrink: 0; min-width: 42px; transition: background 0.1s; -webkit-tap-highlight-color: transparent; }
.date-chip:active { background: var(--surface-3); }
.date-chip.is-on { background: var(--brand); }
.date-chip-wk { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-family: 'Inter Tight', sans-serif; line-height: 1; }
.date-chip.is-on .date-chip-wk { color: rgba(255,255,255,0.65); }
.date-chip-day { font-size: 19px; font-weight: 700; color: var(--ink); font-family: 'Inter Tight', sans-serif; line-height: 1.1; }
.date-chip.is-on .date-chip-day { color: #fff; }
.date-chip-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); margin-top: 3px; flex-shrink: 0; }
.date-chip.is-on .date-chip-dot { background: rgba(255,255,255,0.6); }
.list-end-closed { color: var(--ink-soft); font-style: italic; }

/* ── Logo image (header, replaces monogram) ── */
.logo-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ── Branding page ── */
.branding-color-row { display: flex; align-items: center; gap: 10px; }
.branding-swatch { width: 48px; height: 48px; padding: 3px; border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; background: none; flex-shrink: 0; -webkit-appearance: none; }
.branding-swatch::-webkit-color-swatch-wrapper { padding: 0; border-radius: calc(var(--r) - 3px); }
.branding-swatch::-webkit-color-swatch { border: none; border-radius: calc(var(--r) - 3px); }
.branding-hex { flex: 1; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.04em; }
.branding-hint { font-size: 12px; color: var(--ink-soft); margin-top: 7px; line-height: 1.45; }
.branding-preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.branding-preview-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.branding-preview-mono { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; font-family: 'Inter Tight', sans-serif; flex-shrink: 0; overflow: hidden; letter-spacing: -0.01em; transition: background 0.15s; }
.branding-preview-logo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.branding-preview-biz { font-size: 14px; font-weight: 700; color: var(--ink); font-family: 'Inter Tight', sans-serif; }
.branding-preview-name { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.branding-preview-bar { height: 3px; width: 28px; border-radius: 2px; background: var(--brand); transition: background 0.15s; }

/* ── Profile page ── */
.prof-section { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.prof-section-meta { background: var(--surface); border-top: 1px solid var(--border); padding: 0; gap: 0; }
.prof-meta-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 13px; }
.prof-meta-k { color: var(--ink-soft); font-weight: 600; font-family: 'Inter Tight', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.prof-meta-v { color: var(--ink-mid); font-weight: 500; }
.prof-bio { resize: vertical; min-height: 90px; line-height: 1.5; }
.prof-label-opt { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; }

/* ── Service list ── */
.svc-list { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 16px; }
.svc-row { display: flex; align-items: center; width: 100%; padding: 14px 18px; border-bottom: 1px solid var(--border); background: none; border-left: none; border-right: none; border-top: none; text-align: left; gap: 12px; cursor: pointer; transition: background 0.1s; }
.svc-row:last-child { border-bottom: none; }
.svc-row:active { background: var(--surface-3); }
.svc-row.is-inactive { opacity: 0.5; }
.svc-row-body { flex: 1; }
.svc-row-name { font-size: 15px; font-weight: 600; color: var(--ink); font-family: 'Inter Tight', sans-serif; }
.svc-row-meta { font-size: 13px; color: var(--ink-soft); font-weight: 500; margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
.svc-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); background: var(--surface-3); border-radius: 4px; padding: 3px 7px; font-family: 'Inter Tight', sans-serif; white-space: nowrap; }
.svc-empty { padding: 28px 18px; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* ── Theme picker ── */
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border-radius: var(--r); border: 2px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color 0.15s; position: relative; }
.theme-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.theme-card.is-on { border-color: var(--brand); }
.theme-card:active { background: var(--surface-3); }
.theme-swatches { display: flex; gap: 5px; }
.theme-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); flex-shrink: 0; }
.theme-name { font-size: 12px; font-weight: 600; color: var(--ink-mid); font-family: 'Inter Tight', sans-serif; }

/* ── Blocked time agenda row ───────────────────────────────────────────── */
.blk-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 6px 0; background: repeating-linear-gradient(45deg, var(--surface-2, #f5f5f5), var(--surface-2, #f5f5f5) 8px, var(--surface, #fff) 8px, var(--surface, #fff) 16px); border: 1px dashed var(--border); border-radius: var(--r); }
.blk-row-past { opacity: 0.55; }
.blk-time { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-mid); white-space: nowrap; }
.blk-dash { margin: 0 2px; color: var(--ink-soft); }
.blk-body { flex: 1; min-width: 0; }
.blk-label { display: flex; align-items: center; gap: 7px; font-family: 'Inter Tight', sans-serif; font-size: 14px; font-weight: 600; color: var(--ink); }
.blk-label svg { color: var(--ink-soft); flex-shrink: 0; }
.blk-remove { flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: none; background: transparent; color: var(--ink-soft); border-radius: var(--r-sm); cursor: pointer; }
.blk-remove:active { background: var(--surface-3, #eee); color: var(--ink); }

/* ── Customer directory ── */
.dir-controls { padding: 4px 14px 0; }
.dir-search {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; height: 40px;
  background: var(--surface-3); border-radius: var(--r);
  color: var(--ink-soft);
}
.dir-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: 'Inter Tight', sans-serif; font-size: 15px; color: var(--ink);
}
.dir-search input::placeholder { color: var(--ink-soft); }

.seg { display: flex; gap: 4px; margin-top: 10px; background: var(--surface-3); border-radius: var(--r); padding: 3px; }
.seg-opt { flex: 1; position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: flex; align-items: center; justify-content: center;
  height: 30px; border-radius: calc(var(--r) - 3px);
  font-family: 'Inter Tight', sans-serif; font-size: 12px; font-weight: 600;
  color: var(--ink-soft); transition: background 0.12s, color 0.12s;
}
.seg-opt.is-on span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }

.dir-list { display: flex; flex-direction: column; }
.dir-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px; text-decoration: none;
  border-bottom: 1px solid var(--surface-3);
}
.dir-row:active { background: var(--surface-3); }
.dir-mono { width: 40px; height: 40px; font-size: 15px; margin-bottom: 0; }
.dir-body { flex: 1; min-width: 0; }
.dir-name-row { display: flex; align-items: center; gap: 6px; }
.dir-name {
  font-family: 'Inter Tight', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dir-meta { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.dir-spend { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink-mid); flex-shrink: 0; }
.dir-empty { padding: 40px 28px; text-align: center; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* ── Auth pages (signup / login) — pre-tenant, so no barber.primary_color or
   background_theme to read; callers set data-theme="neutral" and the house
   --brand-color default (#b5532a), same fallback the public booking page
   uses for a barber who hasn't set a color. ── */
.auth-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.auth-wordmark {
  font-family: 'Newsreader', Georgia, serif; font-size: 19px; font-weight: 500;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.auth-top-link {
  font-size: 13px; font-weight: 600; color: var(--ink-mid);
  font-family: 'Inter Tight', sans-serif; text-decoration: none;
}
.auth-top-link:active { opacity: 0.7; }

.auth-hero { padding: 28px 22px 8px; }
.auth-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); font-family: 'Inter Tight', sans-serif; margin-bottom: 6px;
}
.auth-h1 {
  font-family: 'Newsreader', Georgia, serif; font-size: 30px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px;
}
.auth-sub { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }

.auth-foot { text-align: center; font-size: 13px; color: var(--ink-soft); padding: 4px 22px 32px; }
.auth-foot a { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-foot a:active { opacity: 0.7; }

/* ── Marketing home ── */
.mkt-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; position: sticky; top: 0; z-index: 10;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.mkt-nav-links { display: flex; align-items: center; gap: 18px; }
.mkt-nav-link {
  font-size: 13px; font-weight: 600; color: var(--ink-mid);
  font-family: 'Inter Tight', sans-serif; text-decoration: none;
}
.mkt-nav-cta {
  font-size: 13px; font-weight: 700; color: #fff; background: var(--brand);
  font-family: 'Inter Tight', sans-serif; text-decoration: none;
  padding: 8px 14px; border-radius: var(--r-sm);
}

.mkt-hero { padding: 44px 22px 32px; text-align: center; }
.mkt-hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); font-family: 'Inter Tight', sans-serif; margin-bottom: 12px;
}
.mkt-hero-h1 {
  font-family: 'Newsreader', Georgia, serif; font-size: 38px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.08; margin: 0 auto 14px;
  max-width: 15ch;
}
.mkt-hero-sub {
  font-size: 16px; color: var(--ink-mid); line-height: 1.55;
  max-width: 34ch; margin: 0 auto 24px;
}
.mkt-hero-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mkt-hero-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  font-family: 'Inter Tight', sans-serif; padding: 13px 28px; border-radius: var(--r);
  text-decoration: none;
}
.mkt-hero-cta:active { opacity: 0.85; }
.mkt-hero-note { font-size: 12px; color: var(--ink-soft); }

.mkt-section { padding: 40px 22px; border-top: 1px solid var(--border); }
.mkt-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); font-family: 'Inter Tight', sans-serif; margin-bottom: 18px;
}

.mkt-features { display: flex; flex-direction: column; gap: 22px; }
.mkt-feature-name {
  font-size: 16px; font-weight: 700; color: var(--ink);
  font-family: 'Inter Tight', sans-serif; letter-spacing: -0.01em; margin-bottom: 4px;
}
.mkt-feature-desc { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }

.mkt-pricing {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px 22px; text-align: center;
}
.mkt-price {
  font-family: 'JetBrains Mono', monospace; font-size: 40px; font-weight: 500;
  color: var(--ink); line-height: 1;
}
.mkt-price span { font-size: 15px; color: var(--ink-soft); font-family: 'Inter Tight', sans-serif; }
.mkt-price-note { font-size: 13px; color: var(--ink-mid); margin-top: 8px; line-height: 1.5; }
.mkt-price-promo {
  display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-warm); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; font-family: 'Inter Tight', sans-serif;
}

.mkt-cta-band { padding: 44px 22px; text-align: center; background: var(--surface); border-top: 1px solid var(--border); }
.mkt-cta-band .auth-h1 { margin: 0 auto 16px; max-width: 14ch; }

.mkt-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px max(20px, env(safe-area-inset-bottom));
  font-size: 12px; color: var(--ink-soft);
}
.mkt-foot a { color: var(--ink-soft); text-decoration: none; }

/* ── Public booking flow (booking/public_booking.html + partials) ──────────
   Pre-tenant-styled but IS scoped to one barber (unlike auth/marketing) —
   reads barber.background_theme + primary_color like the rest of the
   product. Reuses .date-chip and .time-pill as-is (same components the
   barber's own settings pages use) rather than duplicating them. Service
   picker gets its own .bk-svc-row instead of reusing .svc-row/.svc-list —
   those two class names are already defined twice elsewhere in this file
   with conflicting rules (walk-in sheet vs. settings services list); adding
   a third consumer to that collision would make it worse, not better. ── */
.bk-hd { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.bk-mono { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; letter-spacing: .02em; overflow: hidden; font-family: 'Inter Tight', sans-serif; }
.bk-logo { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.bk-hd-biz { font-family: 'Newsreader', Georgia, serif; font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.bk-hd-name { font-size: 13px; color: var(--ink-mid); }
.bk-bio { padding: 12px 20px 14px; font-size: 14px; color: var(--ink-mid); line-height: 1.55; border-bottom: 1px solid var(--border); }

.bk-body { padding: 20px; }
.bk-label { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; font-family: 'Inter Tight', sans-serif; }

/* Step indicator — the flow is really two screens (pick a time / your
   details) plus a terminal confirmation, not five; label it that way. */
.bk-steps { display: flex; align-items: center; gap: 6px; padding: 14px 20px 0; }
.bk-step { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ink-ghost); font-family: 'Inter Tight', sans-serif; }
.bk-step-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-ghost); }
.bk-step.is-done, .bk-step.is-on { color: var(--brand); }
.bk-step.is-done .bk-step-dot, .bk-step.is-on .bk-step-dot { background: var(--brand); }
.bk-step-line { flex: 1; height: 1px; background: var(--border); min-width: 16px; }

/* Service picker — a proper tappable list (name/duration/price all visible
   at once) instead of a native <select> that hides price behind a click. */
.bk-svc-list { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; }
.bk-svc-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 16px; background: var(--surface); border: none; border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent; text-align: left; cursor: pointer; transition: background 0.12s, border-color 0.12s;
}
.bk-svc-row:last-child { border-bottom: none; }
.bk-svc-row:active { background: var(--surface-3); }
.bk-svc-row.is-selected { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border-left-color: var(--brand); }
.bk-svc-name { font-size: 15px; font-weight: 600; color: var(--ink); font-family: 'Inter Tight', sans-serif; display: block; }
.bk-svc-dur { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-top: 2px; display: block; }
.bk-svc-price { font-size: 14px; font-weight: 700; color: var(--ink-mid); font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.bk-svc-row.is-selected .bk-svc-price { color: var(--brand); }
.bk-svc-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.4; margin-top: 3px; display: block; max-width: 34ch; }
.bk-svc-from { font-size: 11px; font-weight: 500; color: var(--ink-soft); font-family: 'Inter Tight', sans-serif; }

/* Slots — reuse .time-pill as-is (same component the barber's own working-
   hours/override pickers already use). .bk-empty stays booking-specific. */
.bk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-empty { grid-column: 1/-1; text-align: center; padding: 32px 0; font-size: 14px; color: var(--ink-soft); }

.bk-form { display: flex; flex-direction: column; gap: 0; }
.bk-slot-banner { background: var(--brand); color: #fff; border-radius: var(--r-lg); padding: 16px; margin-bottom: 16px; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--brand) 60%, transparent); }
.bk-slot-banner-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; opacity: .75; font-family: 'Inter Tight', sans-serif; margin-bottom: 4px; }
.bk-slot-banner-svc { font-family: 'Newsreader', Georgia, serif; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.bk-slot-banner-meta { font-family: 'JetBrains Mono', monospace; font-size: 13px; opacity: .85; margin-top: 4px; }

.bk-field { margin-bottom: 12px; }
.bk-field label { display: block; font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; font-family: 'Inter Tight', sans-serif; }
.bk-input { width: 100%; background: var(--surface-3); border: none; border-radius: 14px; padding: 13px 16px; font-size: 15px; color: var(--ink); outline: none; font-family: inherit; }
.bk-input:focus { box-shadow: 0 0 0 2px var(--brand); }
.bk-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--danger); margin-bottom: 12px; }
.bk-back { background: none; border: none; font-size: 13px; color: var(--ink-mid); padding: 0; margin-bottom: 16px; cursor: pointer; display: flex; align-items: center; gap: 4px; font-family: 'Inter Tight', sans-serif; }
.bk-note { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-3); font-size: 13px; color: var(--ink-mid); line-height: 1.45; }
.bk-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 12px; color: var(--ink-soft); line-height: 1.45; }

/* ── Marketing homepage — real-app phone previews ───────────────────────────
   Each preview is a live iframe onto the actual rendered app (dashboard_preview.html
   / booking_preview.html — real Django templates, not a screenshot), scaled down
   into a phone-sized frame with CSS transform. transform-origin:top-left plus a
   wrapper sized to the *scaled* dimensions keeps no dead space around it. ── */
.mkt-previews { display: flex; flex-direction: column; gap: 28px; align-items: center; padding: 0 22px; }
.mkt-preview { text-align: center; }
.mkt-preview-label { font-size: 13px; font-weight: 700; color: var(--ink-mid); font-family: 'Inter Tight', sans-serif; margin-bottom: 12px; }
.mkt-preview-frame {
  width: 248px; height: 460px; overflow: hidden; border-radius: 28px;
  border: 8px solid var(--ink); box-shadow: 0 20px 44px -20px rgba(0,0,0,0.35);
  background: var(--surface); margin: 0 auto;
}
.mkt-preview-frame iframe {
  width: 400px; height: 740px;
  border: none; transform: scale(0.62); transform-origin: top left;
  pointer-events: none;
}

/* ── Legal pages (Terms / Privacy / SMS terms / Contact) ── */
.mkt-legal { padding: 8px 22px 40px; max-width: 640px; margin: 0 auto; }
.mkt-legal-updated { font-size: 12px; color: var(--ink-soft); margin-bottom: 28px; }
.mkt-legal h2 { font-family: 'Inter Tight', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin: 28px 0 10px; }
.mkt-legal h2:first-of-type { margin-top: 0; }
.mkt-legal p { font-size: 14px; color: var(--ink-mid); line-height: 1.6; margin-bottom: 12px; }
.mkt-legal ul { margin: 0 0 12px; padding-left: 20px; }
.mkt-legal li { font-size: 14px; color: var(--ink-mid); line-height: 1.6; margin-bottom: 4px; }
.mkt-legal a { color: var(--brand); }

/* ── Dashboard first-run checklist (§13) — dismissible, auto-hides once a
   barber has a service AND a real booking. ── */
.onboard {
  margin: 14px 16px 2px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.onboard-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 14px 14px 2px 16px;
}
.onboard-title { font-family: 'Newsreader', serif; font-size: 16px; font-weight: 600; color: var(--ink); }
.onboard-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.onboard-dismiss {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: none;
  background: none; color: var(--ink-soft); font-size: 16px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.onboard-dismiss:active { background: var(--surface-3); }
.onboard-steps { padding: 6px 16px 12px; display: flex; flex-direction: column; }
.onboard-step {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--ink); text-decoration: none; text-align: left;
  background: none; border-left: none; border-right: none; border-bottom: none;
  width: 100%; cursor: pointer; font-family: 'Inter Tight', sans-serif;
}
.onboard-step:first-child { border-top: none; }
.onboard-step.is-done { color: var(--ink-soft); }
.onboard-step.is-done .onboard-step-label { text-decoration: line-through; text-decoration-color: var(--ink-ghost); }
.onboard-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); color: transparent;
}
.onboard-step.is-done .onboard-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.onboard-step-label { flex: 1; font-weight: 500; }
.onboard-arrow { color: var(--ink-ghost); flex-shrink: 0; }

/* ── Reports page (§13 follow-on) ── */
.rpt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; margin-bottom: 10px; }
.rpt-stat { border: 1px solid var(--border); border-radius: var(--r); padding: 14px 14px 12px; background: var(--surface); }
.rpt-stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); font-family: 'Inter Tight', sans-serif; margin-bottom: 6px; }
.rpt-stat-num { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rpt-stat-delta { font-size: 12px; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.rpt-stat-delta.is-up { color: var(--success); }
.rpt-stat-delta.is-down { color: var(--ink-mid); }
.rpt-stat-delta.is-flat { color: var(--ink-soft); font-weight: 500; }

.rpt-section { padding: 20px 16px 4px; }
.rpt-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); font-family: 'Inter Tight', sans-serif; margin-bottom: 14px;
}

/* Single-series weekly revenue bars — thin marks, rounded data-end anchored to
   baseline, 2px gap, current week in full brand, past weeks a muted tint of
   the same hue (an entity highlight, not a magnitude encoding). */
.rpt-chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-bottom: 2px; }
.rpt-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.rpt-bar {
  width: 100%; max-width: 22px; min-height: 3px; border-radius: 4px 4px 2px 2px;
  background: color-mix(in srgb, var(--brand) 35%, var(--surface-3));
}
.rpt-bar.is-current { background: var(--brand); }
.rpt-bar-label { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--ink-soft); margin-top: 6px; white-space: nowrap; }

.rpt-table { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.rpt-table-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); }
.rpt-table-row:first-child { border-top: none; }
.rpt-table-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--ink); }
.rpt-table-meta { font-size: 12px; color: var(--ink-soft); }
.rpt-table-rev { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rpt-empty { font-size: 13px; color: var(--ink-soft); padding: 16px 0 24px; text-align: center; }
