/* Agshin Online by Runestone — one design system.
   Warm paper + deep ink, one accent (kiln rust). Light/dark via prefers-color-scheme.
   Contrast (WCAG 2.x), verified by calculation:
   light  accent #b5401a: on white 5.66 · on --bg 5.11 · white text on fill 5.66
          muted #6a6258 on --bg 5.42 · on --surface-sunken 5.00
          --border-input #8d8579 ≥3.04 on every surface
   dark   accent #f08a5c: on --bg 7.50 · on --surface 7.01 · --on-accent text on fill 7.69
          muted #a79f93 on --bg 7.08 · --border-input #6f675c ≥3.11
   chart  bar marks ≥3:1 on --surface (light 3.21 / dark 3.46); status text ≥5.5 on its tint */

:root {
  color-scheme: light;
  --font: TimeSans, Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;

  --bg: #f6f3ee;
  --bg-subtle: #efebe4;
  --surface: #fffdfa;
  --surface-2: #faf8f4;
  --surface-sunken: #eeeae3;
  --ink: #1d1a16;
  --ink-2: #3d372f;
  --muted: #6a6258;
  --border: #e4dfd6;
  --border-strong: #cdc6ba;
  --border-input: #8d8579;

  --accent: #b5401a;
  --accent-hover: #9c3613;
  --accent-ink: #9c3613;
  --accent-subtle: #f9e9e1;
  --accent-line: #e9b7a1;
  --on-accent: #ffffff;
  --ring: #b5401a;

  --inverse: #1d1a16;
  --inverse-2: #2a2620;
  --on-inverse: #f6f3ee;
  --inverse-muted: #b5ac9f;
  --accent-on-inverse: #f08a5c;
  --select: #1d1a16;
  --on-select: #f6f3ee;
  --select-muted: #b5ac9f;
  --success-on-inverse: #8fd19e;
  --danger-on-inverse: #f4a3af;

  --success: #2e6b3a;
  --success-subtle: #e6f1e6;
  --warning: #7f5300;
  --warning-subtle: #fbf0d6;
  --danger: #b0263e;
  --danger-subtle: #fbe8eb;

  --chart-1: #3d372f;
  --chart-1-soft: #988d7c;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 20px 48px rgb(0 0 0 / 0.16), 0 2px 6px rgb(0 0 0 / 0.06);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --fast: 120ms;
  --base: 160ms;
  --slow: 240ms;

  --z-sticky: 1100;
  --z-overlay: 1200;
  --z-modal: 1300;
  --z-toast: 1500;

  --sidebar: 248px;
  --topbar: 56px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #151311;
    --bg-subtle: #1a1815;
    --surface: #1d1a17;
    --surface-2: #211e1a;
    --surface-sunken: #272420;
    --ink: #f3efe8;
    --ink-2: #ddd6cb;
    --muted: #a79f93;
    --border: #312d27;
    --border-strong: #433e36;
    --border-input: #6f675c;

    --accent: #f08a5c;
    --accent-hover: #f5a07a;
    --accent-ink: #f5a07a;
    --accent-subtle: #3a2116;
    --accent-line: #7a3f25;
    --on-accent: #1a0d07;
    --ring: #f08a5c;

    --inverse: #2b2722;
    --inverse-2: #34302a;
    --select: #f3efe8;
    --on-select: #151311;
    --select-muted: #5a5249;
    --on-inverse: #f3efe8;
    --inverse-muted: #a79f93;

    --success: #7cc68a;
    --success-subtle: #1b2a1d;
    --warning: #e8b54d;
    --warning-subtle: #2d2412;
    --danger: #f28b9b;
    --danger-subtle: #3a1b21;

    --chart-1: #d9d1c4;
    --chart-1-soft: #776e62;

    --shadow-md: 0 4px 12px rgb(0 0 0 / 0.4), 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 20px 48px rgb(0 0 0 / 0.55), 0 2px 6px rgb(0 0 0 / 0.3);
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--text-lg);
}
h3 {
  font-size: var(--text-md);
}
p {
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
table {
  border-collapse: collapse;
  width: 100%;
}
small {
  font-size: var(--text-xs);
}
strong,
b {
  font-weight: 600;
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--text-sm);
}
::selection {
  background: var(--accent-subtle);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.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;
}
.skip {
  position: fixed;
  left: var(--space-4);
  top: -80px;
  z-index: var(--z-toast);
  background: var(--inverse);
  color: var(--on-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 500;
}
.skip:focus-visible {
  top: var(--space-4);
}
/* Onest's tabular figures give "1" a full-width slot ("1 1:00"); proportional
   figures read better, so tabular-nums is limited to chart axes. */

/* ---------- Utilities ---------- */
.row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.row.wrap {
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: grid;
  gap: var(--space-5);
  align-content: start;
  min-width: 0;
}
.grid-2,
.grid-3 {
  display: grid;
  gap: var(--space-4);
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 > *,
.grid-3 > * {
  min-width: 0;
}
.section-gap {
  margin-top: var(--space-5);
}
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: var(--text-xs);
}
.strong {
  font-weight: 600;
  color: var(--ink);
}
.text-accent {
  color: var(--success);
}
.full {
  width: 100%;
}
.eyebrow {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-ink);
  margin-bottom: var(--space-2);
}
.description {
  margin-top: var(--space-1);
  margin-bottom: var(--space-5);
}
.panel-text {
  margin-top: var(--space-2);
  line-height: 1.7;
}
.panel-sub {
  font-size: var(--text-sm);
  margin: var(--space-1) 0 var(--space-4);
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  min-height: 44px;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--inverse);
  color: var(--on-inverse);
}
.brand-symbol .icon {
  width: 18px;
  height: 18px;
}
.brand-word {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-dot {
  color: var(--accent);
}
.brand-light {
  color: var(--on-inverse);
}
.brand-light .brand-symbol {
  background: var(--on-inverse);
  color: var(--inverse);
}
.brand-light .brand-dot {
  color: var(--accent-on-inverse);
}
.brand-light small {
  color: var(--inverse-muted);
  border-color: rgb(255 255 255 / 0.2);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-h);
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  transition:
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}
.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.btn.primary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--bg);
}
.btn.secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn.secondary:hover:not(:disabled) {
  background: var(--surface-sunken);
  border-color: var(--border-input);
}
.btn.ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn.ghost:hover:not(:disabled) {
  background: var(--surface-sunken);
}
.btn.ink {
  background: var(--inverse);
  color: var(--on-inverse);
}
.btn.danger {
  background: var(--surface);
  border-color: var(--danger);
  color: var(--danger);
}
.btn.danger:hover:not(:disabled) {
  background: var(--danger-subtle);
}
.btn.sm {
  --btn-h: 32px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
}
.btn.lg {
  --btn-h: 44px;
  padding: 0 var(--space-5);
  font-size: var(--text-md);
}
.btn.full {
  width: 100%;
}
.btn:disabled {
  opacity: 0.45;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  transition: background-color var(--fast) var(--ease);
}
.icon-btn:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--accent-ink);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}
.text-link:hover {
  text-decoration-color: currentColor;
}
.text-link .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Forms ---------- */
.form-stack {
  display: grid;
  gap: var(--space-4);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.form-grid > * {
  min-width: 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  padding-top: var(--space-2);
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field > span,
.inline-field > span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
}
.field-hint {
  margin-top: calc(var(--space-2) * -1);
  font-size: var(--text-xs);
  color: var(--muted);
  overflow-wrap: anywhere;
}
input:not([type="checkbox"], [type="radio"], [type="color"]),
select,
textarea {
  width: 100%;
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-base);
  transition:
    border-color var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}
textarea {
  padding: var(--space-2) var(--space-3);
  min-height: 88px;
  line-height: 1.5;
  resize: vertical;
}
select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238d8579' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
input:not([type="checkbox"], [type="radio"], [type="color"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 0;
  border-color: var(--ring);
}
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-sunken);
  color: var(--muted);
}
input[type="color"] {
  width: 56px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius);
  background: var(--surface);
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  min-height: 24px;
  font-size: var(--text-base);
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  margin-top: 2px;
}
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  margin-top: 6px;
}
.form-error {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--danger-subtle);
  color: var(--danger);
  font-size: var(--text-sm);
  font-weight: 500;
}
.inline-field {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.inline-field input {
  width: auto;
}
.hours-fields {
  display: grid;
  gap: var(--space-2);
}
.hours-fields > div {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(0, 120px) auto minmax(
      0,
      120px
    );
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.hours-fields > div > span {
  color: var(--muted);
}
.url-box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-sunken);
  min-width: 0;
}
.url-box code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink-2);
}
.searchbox {
  position: relative;
  flex: 1;
  max-width: 360px;
  min-width: 0;
}
.searchbox .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.searchbox input {
  padding-left: 36px;
}

/* ---------- Feedback ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.notice .icon {
  margin-top: 2px;
  color: var(--muted);
}
.notice.warning {
  background: var(--warning-subtle);
  border-color: transparent;
  color: var(--warning);
}
.notice.warning .icon {
  color: var(--warning);
}
.page-notice {
  margin-bottom: var(--space-5);
}
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 24px;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.tag {
  border-radius: var(--radius-sm);
  white-space: normal;
}
.pill .icon {
  width: 12px;
  height: 12px;
}
.pill.green {
  background: var(--success-subtle);
  color: var(--success);
}
.pill.yellow {
  background: var(--warning-subtle);
  color: var(--warning);
}
.pill.accent {
  background: var(--accent-subtle);
  color: var(--accent-ink);
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: var(--space-1);
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: 600;
  vertical-align: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface-sunken);
  color: var(--ink-2);
}
.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.pending {
  background: var(--warning-subtle);
  color: var(--warning);
}
.badge.confirmed {
  background: var(--accent-subtle);
  color: var(--accent-ink);
}
.badge.arrived {
  background: var(--success-subtle);
  color: var(--success);
}
.badge.completed {
  background: var(--surface-sunken);
  color: var(--ink-2);
}
.badge.cancelled {
  background: var(--danger-subtle);
  color: var(--danger);
}
.badge.no_show {
  background: var(--surface-sunken);
  color: var(--muted);
}
.badge.no_show i {
  background: transparent;
  border: 1.5px solid currentColor;
}
.empty {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-7) var(--space-5);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--muted);
}
.empty-icon .icon {
  width: 20px;
  height: 20px;
}
.empty h3 {
  font-size: var(--text-md);
}
.empty p {
  max-width: 44ch;
}
.empty .btn {
  margin-top: var(--space-3);
}
.panel-empty {
  padding: var(--space-5);
  color: var(--muted);
}
.loader {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.initial-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 100dvh;
  color: var(--muted);
}
#toasts {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: var(--z-toast);
  display: grid;
  gap: var(--space-2);
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: var(--text-base);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toast-in var(--slow) var(--ease);
}
.toast .icon {
  margin-top: 3px;
  color: var(--success-on-inverse);
}
.toast.error .icon {
  color: var(--danger-on-inverse);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.demo-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--ink-2);
  font-size: var(--text-sm);
}
.demo-banner > span {
  flex: 1 1 240px;
  min-width: 0;
}
.demo-banner a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 32px;
  color: var(--accent-ink);
  font-weight: 500;
}

/* ---------- Dialog ---------- */
dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(88dvh, 860px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog[open] {
  animation: dialog-in var(--slow) var(--ease);
}
dialog::backdrop {
  background: rgb(20 17 14 / 0.48);
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.modal-head h2 {
  font-size: var(--text-lg);
}
.modal-body {
  padding: var(--space-5);
}
.modal-body h3 {
  font-size: var(--text-base);
}
.modal-body .booking-option + .booking-option {
  margin-top: var(--space-2);
}
.modal-lead {
  margin-bottom: var(--space-4);
}
.detail-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.detail-top h3 {
  font-size: var(--text-lg);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: var(--space-4) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--border);
  overflow: hidden;
}
.detail-grid > div {
  display: grid;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  min-width: 0;
}
.detail-grid small {
  color: var(--muted);
}
.detail-grid strong {
  font-size: var(--text-base);
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.detail-note {
  margin-top: var(--space-4);
}

/* ---------- App shell ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  padding: var(--space-3) var(--space-3) var(--space-4);
  border-right: 1px solid var(--border);
  background: var(--bg-subtle);
  overflow-y: auto;
}
.sidebar-top {
  padding: 0 var(--space-2);
  margin-bottom: var(--space-3);
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  transition: border-color var(--fast) var(--ease);
}
.workspace-switch:hover {
  border-color: var(--border-strong);
}
.workspace-switch > div {
  flex: 1;
  min-width: 0;
  display: grid;
}
.workspace-switch strong,
.profile strong,
.team-person strong,
.person-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-base);
}
.workspace-switch small,
.profile small {
  color: var(--muted);
}
.workspace-switch > .icon {
  color: var(--muted);
}
.nav-label {
  margin: var(--space-5) var(--space-3) var(--space-1);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
}
.nav {
  display: grid;
  gap: 2px;
}
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: var(--text-base);
  transition: background-color var(--fast) var(--ease);
}
.nav a:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}
.nav a .icon {
  color: var(--muted);
}
.nav a.active {
  background: var(--accent-subtle);
  color: var(--accent-ink);
  font-weight: 600;
}
.nav a.active .icon {
  color: var(--accent-ink);
}
.nav a.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.sidebar-bottom {
  display: grid;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-5);
}
.upgrade {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.upgrade strong {
  font-size: var(--text-sm);
}
.upgrade p {
  font-size: var(--text-xs);
}
.upgrade .text-link {
  font-size: var(--text-xs);
}
.profile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}
.profile .grow {
  display: grid;
}
.mobile-overlay {
  display: none;
}
#app:has(> .sidebar) {
  position: relative;
  min-height: 100dvh;
}
#app:has(> .sidebar)::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  border-right: 1px solid var(--border);
  background: var(--bg-subtle);
}
.main-shell {
  margin-left: var(--sidebar);
  min-width: 0;
  min-height: 100dvh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--topbar);
  padding: 0 var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu {
  display: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  flex: 1;
  font-size: var(--text-sm);
  color: var(--muted);
}
.breadcrumb .icon {
  width: 14px;
  height: 14px;
}
.breadcrumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb span[aria-current] {
  color: var(--ink);
  font-weight: 500;
}
.top-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.today {
  margin-right: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
  white-space: nowrap;
}
.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-8);
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.page-heading > div {
  min-width: 0;
}
.page-heading p {
  margin-top: var(--space-1);
}
.page-heading .btn {
  flex: none;
}

/* ---------- Panels & tables ---------- */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-width: 0;
}
.panel > h2,
.settings-body .panel > h2 {
  font-size: var(--text-lg);
}
.panel-pad {
  padding: var(--space-5);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}
.panel-head h2 {
  font-size: var(--text-md);
}
.panel-head p {
  font-size: var(--text-sm);
  margin-top: 2px;
}
.panel-head > .icon {
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  min-width: 0;
}
.table {
  font-size: var(--text-base);
}
.table th {
  height: 40px;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.table td {
  height: 52px;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--ink-2);
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table td small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.table td.strong {
  font-weight: 600;
  color: var(--ink);
}
.table td:last-child {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}
.click-row {
  cursor: pointer;
  transition: background-color var(--fast) var(--ease);
}
.click-row:hover {
  background: var(--surface-2);
}
.click-row:focus-visible {
  outline-offset: -2px;
}
.click-row td:last-child .icon {
  color: var(--muted);
}
.time-cell {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.person-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.person-cell > div {
  display: grid;
  min-width: 0;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted);
}
.list-row,
.metric-row,
.channel-row,
.team-person {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.list-row:last-of-type,
.metric-row:last-of-type,
.channel-row:last-of-type {
  border-bottom: 0;
}
.metric-row {
  justify-content: space-between;
}
.list-row p,
.metric-row p,
.channel-row p {
  font-size: var(--text-xs);
  margin-top: 2px;
}
.metric-row > strong {
}
.request-row {
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ---------- Avatar ---------- */
.avatar {
  --avatar: #6b6358;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--avatar) 16%, var(--surface));
  color: color-mix(in srgb, var(--avatar) 68%, var(--ink));
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 0.6875rem;
}
.avatar.lg {
  width: 48px;
  height: 48px;
  font-size: var(--text-base);
}
.avatar.xl {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
}

/* ---------- Dashboard ---------- */
.onboarding {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
}
.onboarding h2 {
  font-size: var(--text-md);
}
.onboarding p {
  color: var(--ink-2);
  margin-top: 2px;
}
.onboarding-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--accent-ink);
  flex: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.stat {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-width: 0;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
}
.stat-icon {
  color: var(--muted);
  display: grid;
}
.stat strong {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.stat small {
  color: var(--muted);
}
.primary-stat {
  background: var(--inverse);
  border-color: var(--inverse);
}
.primary-stat strong {
  color: var(--on-inverse);
}
.primary-stat .stat-label,
.primary-stat small,
.primary-stat .stat-icon {
  color: var(--inverse-muted);
}
.home-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-5);
  align-items: start;
}
.home-revenue-total {
  display: block;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  min-width: 0;
}
.chart-plot {
  position: relative;
  height: 180px;
  padding-left: 52px;
}
.chart-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chart-grid span {
  position: relative;
  height: 0;
  border-top: 1px solid var(--border);
  margin-left: 52px;
}
.chart-grid span:last-child {
  border-top-color: var(--border-strong);
}
.chart-grid small {
  position: absolute;
  right: calc(100% + 8px);
  top: -9px;
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chart-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  height: 100%;
  padding: 0 var(--space-2);
}
.chart-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  min-width: 0;
}
.chart-col i {
  display: block;
  width: 100%;
  max-width: 48px;
  margin: 0 auto;
  border-radius: 3px 3px 0 0;
  background: var(--chart-1-soft);
  transition: background-color var(--fast) var(--ease);
}
.chart-col.current i,
.chart-col:hover i {
  background: var(--chart-1);
}
.chart-x {
  display: flex;
  gap: var(--space-3);
  padding: 0 var(--space-2) 0 calc(52px + var(--space-2));
}
.chart-x span {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  white-space: nowrap;
}
.next-appointment {
  padding: var(--space-5);
}
.next-appointment header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.next-time {
  display: block;
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.next-appointment h3 {
  margin-top: var(--space-2);
  font-size: var(--text-lg);
}
.next-appointment > p {
  margin-top: 2px;
}
.next-person {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.next-person .grow {
  display: grid;
}
.next-person small {
  color: var(--muted);
}
.team-list {
  padding: var(--space-1) var(--space-5);
}
.team-person:last-child {
  border-bottom: 0;
}
.team-person .grow {
  display: grid;
}
.team-person small {
  color: var(--muted);
}
.team-person > span {
  font-size: var(--text-xs);
  color: var(--muted);
  white-space: nowrap;
}
.home-share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}
.home-share > .icon {
  color: var(--accent-ink);
}
.home-share p {
  font-size: var(--text-xs);
}
.home-footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--text-xs);
}

/* ---------- Calendar ---------- */
.filterbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}
.date-controls {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.date-controls input {
  width: auto;
}
.staff-filter {
  width: auto;
  max-width: 200px;
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-sunken);
}
.segmented button {
  min-height: 30px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}
.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}
.calendar-scroll {
  overflow: auto;
  max-height: 72dvh;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.calendar-grid {
  display: grid;
  min-width: 100%;
}
.cal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 56px;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
}
.cal-head > div {
  display: grid;
  min-width: 0;
}
.cal-head strong {
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-head small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-head.today strong {
  color: var(--accent-ink);
}
.cal-corner {
  left: 0;
  z-index: 4;
  border-left: 0;
  font-size: 0.6875rem;
  color: var(--muted);
  justify-content: center;
}
.cal-time-axis {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
}
.cal-time {
  position: absolute;
  right: var(--space-2);
  transform: translateY(-50%);
  font-size: 0.6875rem;
  color: var(--muted);
}
.cal-time:first-child {
  transform: none;
  top: 4px !important;
}
.cal-column {
  position: relative;
  border-left: 1px solid var(--border);
  min-width: 0;
}
.cal-column.today {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.cal-hour {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid var(--border);
}
.cal-hour:first-child {
  border-top: 0;
}
.cal-event {
  --event: #6b6358;
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px var(--space-2) 4px 10px;
  border: 0;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--event) 14%, var(--surface));
  color: var(--ink);
  text-align: left;
  font-size: var(--text-xs);
  line-height: 1.3;
  overflow: hidden;
  transition: transform var(--fast) var(--ease);
}
.cal-event::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--event);
}
.cal-event:hover {
  background: color-mix(in srgb, var(--event) 22%, var(--surface));
}
.cal-event strong {
  font-size: var(--text-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-event span,
.cal-event small {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-event small {
  color: var(--muted);
}
.cal-event.pending {
  background: var(--surface);
  outline: 1px dashed color-mix(in srgb, var(--event) 70%, var(--ink));
  outline-offset: -1px;
}
.cal-event.cancelled,
.cal-event.no_show {
  opacity: 0.55;
}
.cal-event.cancelled strong {
  text-decoration: line-through;
}
.cal-event.completed {
  background: var(--surface-sunken);
}
.cal-event:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
  z-index: 2;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted);
}
.calendar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.legend-swatch {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--muted) 22%, var(--surface));
  border-left: 3px solid var(--muted);
}
.legend-swatch.pending {
  background: var(--surface);
  outline: 1px dashed var(--muted);
  outline-offset: -1px;
}
.legend-hint {
  margin-left: auto;
}

/* ---------- Catalog cards ---------- */
.staff-card,
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
}
.staff-card .row.between:first-child {
  align-items: flex-start;
}
.staff-title {
  margin-top: var(--space-3);
}
.staff-title h3 {
  font-size: var(--text-lg);
}
.staff-title p {
  margin-top: 2px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}
.staff-card .tags {
  margin-bottom: var(--space-4);
}
.staff-card .divider {
  margin: auto 0 var(--space-3);
}
.service-card {
  --service: #6b6358;
  border-top: 3px solid var(--service);
}
.service-card .category {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--muted);
}
.service-card h3 {
  margin-top: var(--space-1);
  font-size: var(--text-lg);
  padding-right: var(--space-7);
}
.service-card > p {
  margin: var(--space-2) 0 var(--space-4);
  font-size: var(--text-sm);
  flex: 1;
}
.service-price {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card-edit {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}
.service-card > .row:last-child,
.service-card > .row.between {
  margin-bottom: 0;
}
.service-card .divider {
  margin: var(--space-4) 0 var(--space-3);
}

/* ---------- Settings ---------- */
.settings-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: var(--space-6);
  align-items: start;
}
.settings-nav {
  position: sticky;
  top: calc(var(--topbar) + var(--space-5));
  display: grid;
  gap: 2px;
}
.settings-nav button {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  font-size: var(--text-base);
  white-space: nowrap;
}
.settings-nav button .icon {
  color: var(--muted);
}
.settings-nav button:hover {
  background: var(--surface-sunken);
}
.settings-nav button.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--border);
}
.settings-nav button.active .icon {
  color: var(--accent-ink);
}
.settings-body .panel {
  padding: var(--space-6);
}
.settings-body .list-row {
  flex-wrap: wrap;
}

/* ---------- Plans ---------- */
.current-plan {
  margin-bottom: var(--space-6);
}
.current-plan h2 {
  font-size: var(--text-xl);
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}
.plan-card.recommended {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.plan-toplabel {
  align-self: flex-start;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent-ink);
  font-size: var(--text-xs);
  font-weight: 500;
}
.plan-price {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.plan-price small {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.plan-card ul {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  flex: 1;
}
.plan-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--ink-2);
}
.plan-card li .icon {
  margin-top: 3px;
  color: var(--success);
}

/* ---------- Reception ---------- */
.reception-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--inverse);
  color: var(--on-inverse);
}
.reception-hero h2 {
  margin: var(--space-3) 0 var(--space-2);
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  color: var(--on-inverse);
}
.reception-hero p {
  max-width: 56ch;
  margin-bottom: var(--space-4);
  color: var(--inverse-muted);
}
.reception-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--inverse-muted);
}
.reception-art {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 50%;
  color: var(--accent-on-inverse);
}
.reception-art .icon {
  width: 40px;
  height: 40px;
}
.chat-messages {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  min-height: 260px;
  max-height: 420px;
  padding: var(--space-5);
  overflow-y: auto;
  background: var(--surface-2);
}
.bubble {
  justify-self: start;
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg)
    var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.bubble.user {
  justify-self: end;
  border-color: transparent;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm)
    var(--radius-lg);
  background: var(--inverse);
  color: var(--on-inverse);
}
.chat-form {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
}
.chat-form .check {
  font-size: var(--text-xs);
  color: var(--muted);
}
.channel-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface-sunken);
  color: var(--ink-2);
  flex: none;
}
.channel-row .grow strong {
  font-size: var(--text-sm);
}
.public-chat {
  min-height: 96px;
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
}
.public-chat-form {
  margin-top: var(--space-3);
}

/* ---------- Public pages ---------- */
.public-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
}
.public-nav .secure {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}
.public-page > main {
  flex: 1;
  width: 100%;
}
.public-footer {
  padding: var(--space-6) var(--space-5);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--muted);
}
.public-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.public-wrap {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6) var(--space-7);
}
.business-card {
  position: sticky;
  top: var(--space-5);
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-width: 0;
}
.business-head {
  display: grid;
  gap: var(--space-3);
}
.business-head h1 {
  font-size: var(--text-xl);
}
.business-head p {
  margin-top: var(--space-1);
}
.business-metas {
  display: grid;
  gap: var(--space-2);
}
.business-meta {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.business-meta .icon {
  margin-top: 3px;
  color: var(--muted);
}
.business-hours {
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
}
.business-hours summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.business-hours summary::-webkit-details-marker {
  display: none;
}
.business-hours summary .icon {
  color: var(--muted);
  transition: transform var(--base) var(--ease);
}
.business-hours[open] summary .icon {
  transform: rotate(180deg);
}
.business-hours > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.booking-pane {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  min-width: 0;
}
.booking-pane > h2 {
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}
.step-description {
  margin: var(--space-1) 0 var(--space-5);
}
.booking-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.booking-step {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  padding-top: var(--space-3);
  border-top: 3px solid var(--border);
  color: var(--muted);
  font-size: var(--text-xs);
}
.booking-step b {
  display: none;
}
.booking-step span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-step.done {
  border-color: var(--ink-2);
  color: var(--ink-2);
}
.booking-step.active {
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.booking-options {
  display: grid;
  gap: var(--space-2);
}
.booking-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 64px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  transition:
    border-color var(--fast) var(--ease),
    background-color var(--fast) var(--ease);
}
.booking-option:hover {
  border-color: var(--border-input);
  background: var(--surface-2);
}
.booking-option > div {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.booking-option strong {
  font-size: var(--text-md);
}
.booking-option small {
  color: var(--muted);
}
.option-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.booking-option .price {
  font-weight: 600;
  white-space: nowrap;
}
.booking-option > .icon {
  color: var(--accent-ink);
}
.radio {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1.5px solid var(--border-input);
  border-radius: 50%;
}
.booking-option.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--surface);
}
.booking-option.selected .radio {
  border-color: var(--accent);
  border-width: 6px;
}
.date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.date-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.date-pick .icon {
  position: absolute;
  left: 10px;
  color: var(--muted);
  pointer-events: none;
}
.date-pick input {
  width: auto;
  padding-left: 34px;
}
.booking-date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: var(--space-5);
}
.booking-date {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 56px;
  padding: var(--space-2) 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
.booking-date small {
  color: var(--muted);
  font-size: var(--text-xs);
}
.booking-date strong {
  font-size: var(--text-md);
}
.booking-date:hover:not(:disabled) {
  border-color: var(--border-input);
}
.booking-date.selected {
  border-color: var(--select);
  background: var(--select);
  color: var(--on-select);
}
.booking-date.selected small {
  color: var(--select-muted);
}
.booking-date:disabled {
  opacity: 0.4;
  background: transparent;
  border-style: dashed;
}
.slots-label {
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--space-2);
}
.slot {
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 500;
  transition:
    border-color var(--fast) var(--ease),
    background-color var(--fast) var(--ease);
}
.slot:hover {
  border-color: var(--ink-2);
}
.slot.selected {
  border-color: var(--select);
  background: var(--select);
  color: var(--on-select);
}
.slots > .muted {
  grid-column: 1 / -1;
  padding: var(--space-3) 0;
}
#modal-slot-area .slots {
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}
#modal-slot-area .slot {
  min-height: 36px;
  font-size: var(--text-sm);
}
.booking-selection {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.booking-selection-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}
.booking-selection p {
  margin-top: 2px;
  font-size: var(--text-sm);
}
.booking-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) calc(var(--space-6) * -1) calc(var(--space-6) * -1);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--surface);
}
.booking-bar.static {
  position: static;
}
.booking-summary {
  flex: 1;
  display: grid;
  min-width: 0;
}
.booking-summary strong {
  font-size: var(--text-base);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.booking-summary small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.booking-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}
.booking-bar.static .booking-actions {
  flex: 1;
}
.booking-actions .btn {
  --btn-h: 44px;
}
.booking-success {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  text-align: center;
}
.booking-success > p {
  max-width: 46ch;
}
.booking-success .booking-selection {
  width: 100%;
  margin: var(--space-2) 0;
  text-align: left;
}
.success-orb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  background: var(--success-subtle);
  color: var(--success);
}
.success-orb .icon {
  width: 28px;
  height: 28px;
}
.booking-success h2 {
  font-size: var(--text-xl);
}
.booking-management {
  width: 100%;
  max-width: 640px;
  margin: var(--space-4) auto var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.booking-management h1 {
  font-size: var(--text-2xl);
}
.manage-status {
  margin-top: var(--space-3);
}
.booking-management .business-meta {
  margin-top: var(--space-2);
}

/* ---------- Auth ---------- */
.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 100dvh;
}
.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  padding: var(--space-6) var(--space-7);
  background: var(--inverse);
  color: var(--on-inverse);
  overflow: hidden;
}
.auth-copy {
  max-width: 440px;
}
.auth-eyebrow {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-on-inverse);
  margin-bottom: var(--space-4);
}
.auth-display {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--on-inverse);
}
.auth-display span {
  color: var(--inverse-muted);
}
.auth-copy > p:not(.auth-display, .auth-eyebrow) {
  margin-top: var(--space-4);
  color: var(--inverse-muted);
  font-size: var(--text-md);
}
.auth-points {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.auth-points li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--on-inverse);
}
.auth-points .icon {
  color: var(--accent-on-inverse);
}
.auth-art-footer {
  font-size: var(--text-xs);
  color: var(--inverse-muted);
}
.auth-form-side {
  display: grid;
  place-items: center;
  padding: var(--space-7) var(--space-5);
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: var(--text-2xl);
}
.auth-card > p {
  margin: var(--space-2) 0 var(--space-5);
}
.mobile-brand {
  display: none;
  margin-bottom: var(--space-5);
}
.auth-card .btn.primary {
  --btn-h: 44px;
  margin-top: var(--space-2);
  font-size: var(--text-md);
}
.auth-switch {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--muted);
}
.auth-note {
  margin: var(--space-4) 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
}
.back-home .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Legal / admin / errors ---------- */
.legal-page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-8);
}
.legal-page h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}
.legal-page h2 {
  margin: var(--space-6) 0 var(--space-2);
}
.legal-page p {
  max-width: 65ch;
  color: var(--ink-2);
  line-height: 1.75;
  font-size: var(--text-md);
}
.legal-page > .brand {
  margin-bottom: var(--space-5);
}
.legal-page > .btn {
  margin-top: var(--space-3);
}
.error-links {
  justify-content: center;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}
.admin-page {
  max-width: 1400px;
}
.public-page .page {
  padding-top: var(--space-4);
}

/* ---------- Landing ---------- */
.site {
  --site-max: 1200px;
  font-size: var(--text-md);
  overflow-x: clip;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: var(--site-max);
  height: 64px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.site-links {
  display: flex;
  gap: var(--space-1);
  margin-right: auto;
}
.site-links a,
.site-login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: var(--text-base);
  font-weight: 500;
}
.site-links a:hover,
.site-login:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}
.site-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.site-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-ink);
}
.site-eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
}
.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: var(--space-7);
  max-width: var(--site-max);
  min-height: 600px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-8);
}
.site-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.site-hero h1 span {
  color: var(--accent);
}
.site-lede {
  max-width: 34rem;
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-2);
}
.site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.site-assurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}
.site-assurance .icon {
  width: 14px;
  height: 14px;
  color: var(--success);
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 580px;
}
.hv-dial {
  position: absolute;
  width: min(520px, 100%);
  height: auto;
  color: var(--border-strong);
}
.hv-dial circle:first-of-type {
  fill: var(--bg-subtle);
  stroke: var(--border);
  stroke-width: 1;
}
.hv-dial line {
  stroke: var(--border-strong);
  stroke-width: 1.5;
}
.hv-dial line.major {
  stroke: var(--muted);
  stroke-width: 3;
}
.hv-hand {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linecap: round;
}
.hv-hand.short {
  stroke: var(--accent);
}
.hv-pin {
  fill: var(--ink);
}
.hv-card {
  position: relative;
  width: min(340px, 100%);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  transform: translate(40px, -56px);
}
.hv-business {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.hv-business > div {
  display: grid;
}
.hv-business small,
.hv-service small {
  color: var(--muted);
}
.hv-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--inverse);
  color: var(--on-inverse);
  font-weight: 600;
}
.hv-step {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-3);
}
.hv-step span {
  font-size: var(--text-xs);
  color: var(--muted);
}
.hv-step b {
  font-size: var(--text-md);
}
.hv-service {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.hv-service > .icon {
  color: var(--muted);
}
.hv-service > div {
  flex: 1;
  display: grid;
  min-width: 0;
}
.hv-service b {
}
.hv-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: var(--space-3) 0;
}
.hv-days span,
.hv-slots span {
  display: grid;
  justify-items: center;
  padding: 6px 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.hv-days small {
  color: var(--muted);
}
.hv-days .selected,
.hv-slots .selected {
  border-color: var(--select);
  background: var(--select);
  color: var(--on-select);
}
.hv-days .selected small {
  color: var(--select-muted);
}
.hv-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.hv-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  margin-top: var(--space-4);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}
.hv-request {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 260px;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
}
.hv-request-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}
.hv-request-top small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
}
.hv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}
.hv-request-body {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}
.hv-request-body > div {
  display: grid;
}
.hv-request-body small {
  color: var(--muted);
}
.hv-request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.hv-request-actions span {
  display: grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: 500;
}
.hv-request-actions span:first-child {
  border-color: var(--select);
  background: var(--select);
  color: var(--on-select);
}
.site-industries {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  max-width: var(--site-max);
  margin: 0 auto;
  padding: var(--space-5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.site-industries p {
  font-size: var(--text-sm);
}
.site-industries ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}
.site-industries li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  color: var(--ink-2);
}
.site-industries .icon {
  color: var(--muted);
}
.site-section {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: var(--space-9) var(--space-5);
}
.site-section-heading {
  max-width: 640px;
  margin-bottom: var(--space-7);
}
.site-section-heading h2,
.site-closing h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.site-section-heading > p:last-child {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  max-width: 54ch;
}
.product-frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.product-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 40px;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: var(--text-xs);
  color: var(--muted);
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.product-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.product-url .icon {
  width: 12px;
  height: 12px;
}
.product-tag {
  font-weight: 500;
}
.product-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}
.product-rail {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: var(--space-3);
  border-right: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: var(--text-sm);
}
.preview-workspace {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.preview-workspace span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--inverse);
  color: var(--on-inverse);
  font-weight: 600;
  font-size: var(--text-xs);
}
.preview-workspace strong {
  display: grid;
  font-size: var(--text-sm);
}
.preview-workspace small {
  color: var(--muted);
  font-weight: 400;
}
.product-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  padding: 0 var(--space-2);
  border-radius: var(--radius);
  color: var(--ink-2);
}
.product-nav .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.product-nav.selected {
  background: var(--accent-subtle);
  color: var(--accent-ink);
  font-weight: 600;
}
.product-nav.selected .icon {
  color: var(--accent-ink);
}
.product-main {
  padding: var(--space-5);
  min-width: 0;
}
.preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.preview-heading h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}
.preview-heading small {
  color: var(--muted);
  font-size: var(--text-sm);
}
.preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.preview-btn .icon {
  width: 14px;
  height: 14px;
}
.preview-schedule {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.preview-schedule-head {
  display: grid;
  grid-template-columns: 56px repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.preview-schedule-head > span {
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  color: var(--muted);
}
.preview-schedule-head > div {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-left: 1px solid var(--border);
  min-width: 0;
}
.preview-schedule-head strong {
  display: grid;
  font-size: var(--text-sm);
  min-width: 0;
}
.preview-schedule-head small {
  color: var(--muted);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-schedule-body {
  position: relative;
  display: grid;
  grid-template-columns: 56px repeat(3, minmax(0, 1fr));
  height: 300px;
}
.preview-hours {
  display: grid;
  grid-template-rows: repeat(5, 64px);
}
.preview-hours span {
  padding: var(--space-1) var(--space-2) 0 0;
  text-align: right;
  font-size: var(--text-xs);
  color: var(--muted);
}
.preview-track {
  position: relative;
  border-left: 1px solid var(--border);
}
.preview-event {
  position: absolute;
  left: 6px;
  right: 6px;
  display: grid;
  align-content: start;
  gap: 1px;
  padding: 6px var(--space-2) 6px 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--event) 14%, var(--surface));
  font-size: var(--text-xs);
  overflow: hidden;
}
.preview-event::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--event);
}
.preview-event span,
.preview-event small {
  color: var(--muted);
}
.preview-event strong {
  font-size: var(--text-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-now {
  position: absolute;
  left: 56px;
  right: 0;
  top: 118px;
  height: 0;
  border-top: 2px solid var(--accent);
}
.preview-now::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.site-inline-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-4);
  color: var(--accent-ink);
  font-weight: 500;
}
.site-features {
  max-width: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.site-features > * {
  max-width: calc(var(--site-max) - 2 * var(--space-5));
  margin-left: auto;
  margin-right: auto;
}
.site-features .site-section-heading {
  margin-bottom: var(--space-7);
}
.site-features .site-section-heading > * {
  max-width: 640px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.feature-card {
  padding: var(--space-6) var(--space-5);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent-ink);
}
.feature-icon .icon {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: var(--text-lg);
}
.feature-card p {
  margin-top: var(--space-2);
}
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  counter-reset: none;
}
.step-list li {
  position: relative;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-strong);
  min-width: 0;
}
.step-num {
  display: block;
  margin-bottom: var(--space-6);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.step-list h3 {
  font-size: var(--text-lg);
}
.step-list p {
  margin-top: var(--space-2);
}
.site-pricing {
  border-top: 1px solid var(--border);
}
.site-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}
.site-plan {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  gap: var(--space-4);
}
.site-plan.featured {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.site-plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.site-plan-name h3 {
  font-size: var(--text-xl);
}
.site-plan > p {
  margin-top: calc(var(--space-3) * -1);
}
.site-plan-price {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.site-plan-price small {
  margin-left: var(--space-1);
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.site-plan ul {
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.site-faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-7);
  border-top: 1px solid var(--border);
}
.site-faq .site-section-heading {
  margin-bottom: 0;
}
.faq-list {
  border-top: 1px solid var(--border-strong);
}
.faq-list details {
  border-bottom: 1px solid var(--border-strong);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding: var(--space-3) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform var(--base) var(--ease);
}
.faq-list details[open] summary .icon {
  transform: rotate(45deg);
}
.faq-list details p {
  max-width: 60ch;
  padding-bottom: var(--space-5);
}
.site-closing {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-9) var(--space-5);
  background: var(--inverse);
  color: var(--on-inverse);
  text-align: center;
}
.site-closing .site-eyebrow {
  margin-bottom: 0;
  color: var(--accent-on-inverse);
}
.site-closing .site-eyebrow::before {
  background: var(--accent-on-inverse);
}
.site-closing h2 {
  color: var(--on-inverse);
}
.site-closing p {
  max-width: 44ch;
  color: var(--inverse-muted);
  font-size: var(--text-lg);
}
.site-closing .btn {
  margin-top: var(--space-3);
}
.site-closing .btn.primary:focus-visible {
  box-shadow: 0 0 0 2px var(--inverse);
}
.site-closing small {
  color: var(--inverse-muted);
  font-size: var(--text-sm);
}
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  max-width: var(--site-max);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-6);
}
.site-footer-brand p {
  max-width: 32ch;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, auto));
  gap: var(--space-6);
}
.site-footer-cols h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}
.site-footer-cols a {
  display: flex;
  align-items: center;
  min-height: 32px;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.site-footer-cols a:hover {
  color: var(--accent-ink);
}
.site-copy {
  grid-column: 1 / -1;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-main {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--slow) var(--ease);
    box-shadow: none;
  }
  .sidebar.open {
    transform: none;
    box-shadow: var(--shadow-lg);
  }
  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-overlay) - 1);
    background: rgb(20 17 14 / 0.48);
  }
  .mobile-overlay.open {
    display: block;
  }
  .main-shell {
    margin-left: 0;
  }
  #app:has(> .sidebar)::before {
    display: none;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .topbar {
    padding: 0 var(--space-4);
  }
  .home-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }
  .settings-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: var(--space-1);
    padding-bottom: var(--space-1);
  }
  .site-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    min-height: 0;
    padding-top: var(--space-7);
  }
  .site-links {
    display: none;
  }
  .site-nav {
    justify-content: space-between;
  }
  .feature-grid,
  .site-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
  .public-wrap {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }
  .business-card {
    position: static;
  }
  .auth-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-art {
    display: none;
  }
  .mobile-brand {
    display: block;
  }
}
@media (max-width: 768px) {
  body {
    font-size: var(--text-base);
  }
  .btn {
    --btn-h: 44px;
  }
  .btn.sm {
    --btn-h: 36px;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
  }
  input:not([type="checkbox"], [type="radio"], [type="color"]),
  select,
  textarea {
    min-height: 44px;
    font-size: var(--text-md);
  }
  input[type="color"] {
    height: 44px;
  }
  .nav a,
  .settings-nav button {
    min-height: 44px;
  }
  .segmented button {
    min-height: 38px;
  }
  .page {
    padding: var(--space-5) var(--space-4) var(--space-7);
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .page-heading h1 {
    font-size: var(--text-xl);
  }
  .today,
  .top-tools .btn span {
    display: none;
  }
  .top-tools .btn.sm {
    width: 44px;
    padding: 0;
  }
  .breadcrumb-root,
  .breadcrumb > .icon {
    display: none;
  }
  .breadcrumb span[aria-current] {
    font-size: var(--text-md);
  }
  .stats {
    gap: var(--space-3);
  }
  .stat {
    padding: var(--space-4);
  }
  .stat strong {
    font-size: var(--text-xl);
  }
  .stat-icon {
    display: none;
  }
  .grid-2,
  .grid-3,
  .form-grid,
  .checklist {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel-pad,
  .settings-body .panel {
    padding: var(--space-4);
  }
  .panel-head,
  .table-footer {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  .team-list {
    padding: var(--space-1) var(--space-4);
  }
  .table th,
  .table td {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
  .table th:first-child,
  .table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
  }
  .table th:first-child {
    background: var(--surface-2);
  }
  .filterbar > * {
    min-width: 0;
  }
  .date-controls {
    flex: 1 1 100%;
  }
  .date-controls input {
    flex: 1;
    min-width: 0;
  }
  .staff-filter {
    flex: 1 1 100%;
    max-width: none;
  }
  .segmented {
    flex: 1 1 100%;
  }
  .segmented button {
    flex: 1;
  }
  .searchbox {
    max-width: none;
    flex: 1 1 100%;
  }
  .range-form .inline-field {
    flex: 1 1 140px;
  }
  .range-form .inline-field input {
    flex: 1;
    min-width: 0;
  }
  .range-form .btn {
    flex: 1 1 100%;
  }
  .legend-hint {
    margin-left: 0;
  }
  .hours-fields > div {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .hours-fields > div > .check {
    grid-column: 1 / -1;
  }
  .reception-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-5);
  }
  .reception-art {
    display: none;
  }
  dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 0;
  }
  .modal-body {
    padding: var(--space-4) var(--space-4)
      calc(var(--space-5) + env(safe-area-inset-bottom));
  }
  .modal-head {
    padding-left: var(--space-4);
  }
  .form-actions {
    flex-direction: column-reverse;
  }
  .form-actions .btn {
    width: 100%;
  }
  #toasts {
    left: var(--space-4);
    right: var(--space-4);
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
    width: auto;
  }
  .public-nav {
    padding: var(--space-2) var(--space-4);
  }
  .public-nav .secure {
    display: none;
  }
  .public-wrap {
    gap: var(--space-3);
    padding: 0 0 var(--space-5);
  }
  .business-card {
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .business-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .business-head .avatar.xl {
    width: 48px;
    height: 48px;
    font-size: var(--text-md);
  }
  .business-head h1 {
    font-size: var(--text-lg);
  }
  .business-head p {
    font-size: var(--text-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .business-metas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
  }
  .business-meta {
    font-size: var(--text-xs);
  }
  .business-meta .icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
  }
  .business-hours {
    padding-top: 0;
  }
  .booking-pane {
    padding: var(--space-5) var(--space-4) 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .booking-pane > h2 {
    font-size: var(--text-lg);
  }
  .booking-steps {
    margin-bottom: var(--space-5);
  }
  .booking-step span {
    display: none;
  }
  .booking-step.active span {
    display: block;
  }
  .booking-step {
    padding-top: var(--space-2);
  }
  .booking-bar {
    margin: var(--space-5) calc(var(--space-4) * -1) 0;
    padding: var(--space-3) var(--space-4)
      calc(var(--space-3) + env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: 0 -4px 12px rgb(0 0 0 / 0.06);
  }
  .booking-bar.static {
    box-shadow: none;
    padding-bottom: var(--space-5);
  }
  .booking-bar .booking-actions .btn.ghost span {
    display: none;
  }
  .booking-bar .booking-actions .btn.ghost {
    width: 44px;
    padding: 0;
  }
  .booking-bar.static .booking-actions .btn.ghost span {
    display: inline;
  }
  .booking-bar.static .booking-actions .btn.ghost {
    width: auto;
    padding: 0 var(--space-4);
  }
  .booking-success {
    padding-bottom: var(--space-6);
  }
  .booking-management {
    margin: 0 0 var(--space-6);
    padding: var(--space-5) var(--space-4);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .detail-actions .btn {
    flex: 1 1 auto;
  }
  .site-nav {
    height: 56px;
    padding: 0 var(--space-4);
    gap: var(--space-2);
  }
  .site-login {
    padding: 0 var(--space-2);
  }
  .site-nav-actions .btn .icon {
    display: none;
  }
  .site-nav-actions .btn {
    padding: 0 var(--space-3);
  }
  .site-hero {
    padding: var(--space-6) var(--space-4) var(--space-7);
  }
  .site-hero h1 {
    font-size: clamp(2.375rem, 11vw, 3.25rem);
  }
  .site-lede {
    font-size: var(--text-md);
  }
  .site-hero-actions .btn {
    flex: 1 1 100%;
  }
  .hero-visual {
    min-height: 0;
    padding: var(--space-4) 0 0;
  }
  .hv-card {
    transform: none;
  }
  .hv-submit {
    margin-bottom: var(--space-3);
  }
  .hv-dial {
    width: 120%;
    max-width: 440px;
    top: -10px;
  }
  .hero-visual {
    justify-items: center;
  }
  .hv-request {
    position: relative;
    left: auto;
    bottom: auto;
    justify-self: end;
    width: min(260px, 85%);
    margin-top: calc(var(--space-5) * -1);
  }
  .site-industries {
    padding: var(--space-5) var(--space-4);
  }
  .site-industries ul {
    gap: var(--space-2) var(--space-4);
  }
  .site-section {
    padding: var(--space-8) var(--space-4);
  }
  .site-section-heading {
    margin-bottom: var(--space-6);
  }
  .site-section-heading > p:last-child {
    font-size: var(--text-md);
  }
  .product-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-rail,
  .product-tag,
  .window-dots {
    display: none;
  }
  .product-main {
    padding: var(--space-3);
  }
  .preview-heading h3 {
    font-size: var(--text-lg);
  }
  .preview-btn span,
  .preview-heading .preview-btn {
    font-size: var(--text-xs);
  }
  .preview-schedule-head,
  .preview-schedule-body {
    grid-template-columns: 40px repeat(3, minmax(0, 1fr));
  }
  .preview-schedule-head > div {
    padding: var(--space-2);
  }
  .preview-schedule-head .avatar {
    display: none;
  }
  .preview-now {
    left: 40px;
  }
  .preview-event {
    left: 3px;
    right: 3px;
    padding-left: 8px;
  }
  .preview-event small {
    display: none;
  }
  .feature-grid,
  .site-plans,
  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: var(--space-4);
    padding: var(--space-5) var(--space-4);
  }
  .feature-icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .feature-card p {
    margin-top: var(--space-1);
  }
  .step-list {
    gap: var(--space-6);
  }
  .step-num {
    margin-bottom: var(--space-3);
  }
  .site-plan {
    padding: var(--space-5);
  }
  .faq-list summary {
    font-size: var(--text-md);
  }
  .site-closing {
    padding: var(--space-8) var(--space-4);
  }
  .site-closing .btn {
    width: 100%;
  }
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-6) var(--space-4);
  }
  .site-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }
  .auth-form-side {
    place-items: start center;
    padding: var(--space-5) var(--space-4) var(--space-7);
  }
  .legal-page {
    padding: var(--space-5) var(--space-4) var(--space-7);
  }
  .legal-page h1 {
    font-size: var(--text-2xl);
  }
}
@media (max-width: 480px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat strong {
    font-size: var(--text-lg);
  }
  .home-share {
    flex-wrap: wrap;
  }
  .home-share .btn {
    flex: 1 1 100%;
  }
  .chart-plot {
    padding-left: 44px;
    height: 150px;
  }
  .chart-grid span {
    margin-left: 44px;
  }
  .chart-bars,
  .chart-x {
    gap: var(--space-2);
  }
  .chart-x {
    padding-left: calc(44px + var(--space-2));
  }
  .booking-date-strip {
    gap: 4px;
  }
  .booking-date strong {
    font-size: var(--text-base);
  }
  .slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .booking-option {
    padding: var(--space-3);
  }
  .booking-option .price {
    font-size: var(--text-sm);
  }
  .site-assurance {
    font-size: var(--text-xs);
  }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
@media (prefers-contrast: more) {
  :root {
    --border: var(--border-strong);
    --muted: var(--ink-2);
  }
}
@media print {
  :root {
    color-scheme: light;
  }
  .sidebar,
  .topbar,
  .mobile-overlay,
  #toasts,
  .demo-banner,
  .page-heading .btn,
  .booking-bar,
  .site-header {
    display: none !important;
  }
  .main-shell {
    margin: 0;
  }
  .page {
    max-width: none;
    padding: 0;
  }
  * {
    box-shadow: none !important;
  }
  thead {
    display: table-header-group;
  }
  tr {
    break-inside: avoid;
  }
  @page {
    margin: 16mm;
  }
}

/* Native SMS handoff keeps the registration form in place on mobile. */
.phone-verification{display:grid;gap:10px;min-width:0}
.phone-input-row{display:flex;gap:10px;align-items:flex-end}
.phone-input-row .field{flex:1;min-width:0;margin:0}
.phone-input-row .btn{min-height:48px;white-space:nowrap}
.phone-instructions{display:grid;gap:14px;padding:20px;border:1px solid var(--border);border-radius:16px;background:rgba(203,250,92,.035)}
.phone-instructions p{margin:0}
.phone-code{display:grid;grid-template-columns:1fr auto;gap:6px 12px;align-items:center}
.phone-code span{grid-column:1/-1;font-size:12px;color:var(--muted)}
.phone-code strong{font-size:28px;letter-spacing:.18em;font-variant-numeric:tabular-nums}
.phone-verified,.phone-waiting{display:flex;gap:8px;align-items:center}
.phone-verified{color:var(--lime,#cfff61);margin:0}
.phone-waiting,.phone-hint{font-size:13px}
.phone-verified svg,.phone-waiting svg{width:18px;height:18px;flex-shrink:0}
@media(max-width:480px){.phone-input-row{align-items:stretch;flex-direction:column}.phone-input-row .btn{align-self:flex-start;min-height:44px}.phone-instructions{padding:16px}}
