/* ==========================================================================
   Rendezvous — design system
   Warm paper, confident ink, coral × violet accents.
   ========================================================================== */
:root {
  --ink: #17151f;
  --ink-2: #45414f;
  --muted: #8a8597;
  --faint: #b9b4c2;
  --paper: #f7f4ef;
  --paper-2: #efebe3;
  --card: #fff;
  --line: #ece7df;
  --line-2: #ddd6ca;

  --coral: #ff5b3a;
  --violet: #6d4dff;
  --peach: #ffe6db;  --peach-ink: #c2410c;
  --lilac: #ece6ff;  --lilac-ink: #5b3fd6;
  --mint: #d9f4e7;   --mint-ink: #12805a;
  --butter: #fff0c2; --butter-ink: #a16207;
  --sky: #dfeeff;    --sky-ink: #1d64d8;
  --rose: #ffe1ea;   --rose-ink: #c0265f;

  --danger: #e5484d;
  --brand: var(--violet);
  --brand-soft: color-mix(in srgb, var(--brand) 12%, white);
  --brand-ink: color-mix(in srgb, var(--brand) 82%, black);

  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 26px;
  --shadow-xs: 0 1px 2px rgba(23, 21, 31, .06);
  --shadow: 0 1px 2px rgba(23, 21, 31, .04), 0 8px 24px -12px rgba(23, 21, 31, .14);
  --shadow-lg: 0 2px 6px rgba(23, 21, 31, .05), 0 28px 56px -20px rgba(23, 21, 31, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Geologica', 'Inter', system-ui, sans-serif;
  --serif: 'Literata', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font: 15px/1.55 var(--font); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
a, button, label { -webkit-tap-highlight-color: transparent; }
p a, .link, .auth-switch a, .fine a { color: var(--violet); font-weight: 600; }
p a:hover, .auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
h1 em { color: var(--coral); }
small { font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn-text { color: var(--peach-ink); font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.eyebrow a:hover { color: var(--ink); }
::selection { background: color-mix(in srgb, var(--coral) 25%, white); }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.muted { color: var(--faint); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.logo-mark { width: 26px; height: 26px; }
.logo-word { font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -.045em; }
.logo-light { color: #fff; }
.logo-word i { font-style: normal; color: var(--coral); }

/* ---------- buttons ---------- */
.btn {
  --bg: #fff; --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 600 14px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-primary:hover { --bg: #2a2635; }
.btn-brand { --bg: var(--brand); --fg: #fff; --bd: var(--brand); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-brand:hover { --bg: var(--brand-ink); }
.btn-soft { --bg: rgba(23, 21, 31, .05); --bd: transparent; }
.btn-soft:hover { --bg: rgba(23, 21, 31, .08); box-shadow: none; }
.btn-ghost { --bg: transparent; --bd: transparent; --fg: var(--ink-2); }
.btn-ghost:hover { --bg: rgba(23, 21, 31, .05); box-shadow: none; }
.btn-light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-glass { --bg: rgba(255, 255, 255, .1); --fg: #fff; --bd: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.btn-glass:hover { --bg: rgba(255, 255, 255, .18); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row.center { justify-content: center; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: rgba(23, 21, 31, .06); color: var(--ink); }
.icon-btn-dark { background: var(--ink); color: #fff; }
.icon-btn-dark:hover { background: #2a2635; color: #fff; }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.link .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link:hover .icon { transform: translateX(3px); }
.link-danger { background: none; border: 0; color: var(--muted); font: 500 13px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-danger:hover { color: var(--danger); }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field > input, .field > select, .field > textarea, .field > .suffixed, .field > .swatches { margin-top: 7px; }
.field small { font-weight: 500; color: var(--faint); margin-left: 4px; }
input, select, textarea {
  width: 100%; font: 500 15px/1.4 var(--font); color: var(--ink); padding: 11px 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); outline: none;
  transition: border-color .15s, box-shadow .2s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); font-weight: 400; }
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23, 21, 31, .07); }
.public input:focus, .public textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
select { appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8597' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
textarea { resize: vertical; min-height: 80px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--ink); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 0; }
.check-warn { color: var(--peach-ink); }
.suffixed { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .2s; }
.suffixed:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23, 21, 31, .07); }
.suffixed input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }
.suffixed span { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-weight: 500; font-size: 13px; background: var(--paper); white-space: nowrap; }
.suffixed.prefix span { order: -1; padding-right: 2px; background: transparent; }
.suffixed.prefix input { padding-left: 4px; }

.toggle { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle.has-hint { align-items: flex-start; }
.toggle.has-hint .toggle-ui { margin-top: 1px; }
.toggle small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.toggle-ui { width: 40px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; transition: background .2s var(--ease); }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform .25s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--ink); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { box-shadow: 0 0 0 4px rgba(23, 21, 31, .1); }
.toggle-sm .toggle-ui { width: 34px; height: 20px; }
.toggle-sm .toggle-ui::after { width: 14px; height: 14px; }
.toggle-sm input:checked + .toggle-ui::after { transform: translateX(14px); }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-box { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 40px 12px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: all .15s; flex-wrap: wrap; }
.pick-box b { font-size: 14px; }
.pick-box small { color: var(--muted); width: 100%; margin-top: -6px; }
.pick-box .avatar + b + small { width: auto; margin: 0; }
.pick-box i { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: all .15s; }
.pick-box i .icon { width: 13px; height: 13px; stroke-width: 3; }
.pick-box:hover { border-color: var(--line-2); }
.pick input:checked + .pick-box { border-color: var(--ink); background: #fcfbf9; }
.pick input:checked + .pick-box i { background: var(--ink); border-color: var(--ink); color: #fff; }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .15s var(--ease), box-shadow .15s; }
.swatch span:hover { transform: scale(1.1); }
.swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }

.form-layout { display: flex; flex-direction: column; gap: 16px; }
.form-section { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 26px; margin: 0; }
.form-section.wide { grid-template-columns: 1fr; gap: 18px; }
.form-section.wide .fs-intro { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.form-section.wide .fs-intro h2 { margin: 0; }
.form-section.wide .fs-intro p { grid-column: 2; }
.form-section.wide .fs-num { grid-row: span 2; }
.fs-intro h2 { margin: 12px 0 6px; font-size: 17px; }
.fs-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.fs-num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--paper); color: var(--ink-2); font: 700 14px var(--display); }
.fs-num .icon { width: 17px; height: 17px; }
.fs-fields { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 4px 0; }
.form-actions.sticky { position: sticky; bottom: 16px; }
.form-actions.sticky .btn { box-shadow: var(--shadow-lg); }

/* ---------- feedback ---------- */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; animation: drop .4s var(--ease); }
.flash .icon { margin-top: 1px; width: 17px; height: 17px; stroke-width: 2.4; }
.flash ul { margin: 0; padding-left: 16px; }
.flash-ok { background: var(--mint); color: var(--mint-ink); }
.flash-error { background: #fff0ef; color: #b42318; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px 4px 9px; border-radius: 99px; white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-confirmed { background: var(--lilac); color: var(--lilac-ink); }
.badge-completed { background: var(--mint); color: var(--mint-ink); }
.badge-no_show { background: var(--butter); color: var(--butter-ink); }
.badge-cancelled { background: var(--paper-2); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--paper); color: var(--muted); }
.tag .icon { width: 12px; height: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: rgba(23, 21, 31, .05); color: var(--ink-2); }
.chip .icon { width: 14px; height: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; }
.pill .icon { width: 15px; height: 15px; }
.pill-glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.pill-live { background: #ffe9e4; color: var(--coral); font-size: 12px; padding: 4px 10px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 91, 58, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 91, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 58, 0); } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* avatars */
.avatar { --av: var(--ink); width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  font: 650 13px/1 var(--display); letter-spacing: -.02em; color: #fff; background: var(--av); }
.avatar.xs { width: 22px; height: 22px; font-size: 9px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 46px; height: 46px; font-size: 16px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; border-radius: 24px; }
.avatar.tone-0 { background: var(--peach); color: var(--peach-ink); }
.avatar.tone-1 { background: var(--lilac); color: var(--lilac-ink); }
.avatar.tone-2 { background: var(--mint); color: var(--mint-ink); }
.avatar.tone-3 { background: var(--butter); color: var(--butter-ink); }
.avatar.tone-4 { background: var(--sky); color: var(--sky-ink); }
.avatar.tone-5 { background: var(--rose); color: var(--rose-ink); }
.avatar.any { background: var(--brand-soft); color: var(--brand); }
.avatar.any .icon { width: 15px; height: 15px; }

.datechip { width: 48px; flex: none; display: inline-flex; flex-direction: column; align-items: center; padding: 6px 0 7px; border-radius: 13px; background: var(--paper); line-height: 1.1; }
.datechip span { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.datechip b { font: 650 19px/1.1 var(--display); letter-spacing: -.03em; }

.empty-state { text-align: center; padding: 34px 20px 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-state h3 { font-size: 17px; margin-top: 10px; }
.empty-state p { margin: 0 0 12px; color: var(--muted); font-size: 14px; max-width: 320px; }
.empty-art { position: relative; width: 84px; height: 72px; display: grid; place-items: center; }
.empty-art span { position: absolute; border-radius: 50%; }
.empty-art span:nth-child(1) { width: 64px; height: 64px; left: 10px; top: 4px; border-radius: 22px; background: var(--lilac); transform: rotate(-8deg); }
.empty-art span:nth-child(2) { width: 16px; height: 16px; right: 8px; bottom: 2px; background: var(--coral); }
.empty-art .icon { position: relative; width: 26px; height: 26px; color: var(--ink); }

/* ---------- cards & grids ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; border: 1px solid rgba(23, 21, 31, .035); }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head.sub { margin: 22px 0 10px; }
.card-head.sub h3 { font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-2.wide-left { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); }
.grid-2.wide-right { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr); }
.grid-2 > .card, .grid-2 > div > .card, .grid-2 > aside > .card { margin-bottom: 16px; }

/* ==========================================================================
   Admin shell
   ========================================================================== */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); background: var(--paper); }
.sidebar-brand { padding: 2px 8px 16px; }
.nav-new { margin-bottom: 14px; height: 42px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; font-size: 14px; transition: background .15s, color .15s; }
.nav-item .icon { width: 19px; height: 19px; color: var(--muted); transition: color .15s; }
.nav-item:hover { background: rgba(23, 21, 31, .045); color: var(--ink); }
.nav-item.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-xs), 0 0 0 1px rgba(23, 21, 31, .04); }
.nav-item.active .icon { color: var(--coral); }
.nav-item.active::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--coral); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.side-biz { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-xs); transition: box-shadow .2s; }
.side-biz:hover { box-shadow: var(--shadow); }
.side-biz > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; }
.side-biz b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-biz small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.side-biz small .icon { width: 12px; height: 12px; }
.nav-out { color: var(--muted); }
.scrim { display: none; }
.main { min-width: 0; }
.topbar { display: none; }
.page { max-width: 1240px; margin: 0 auto; padding: 34px 40px 80px; animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.reminder-card .muted { margin: 10px 0 0; }
.dialog { border: 0; padding: 26px; width: min(420px, calc(100vw - 32px)); border-radius: var(--r-lg); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); }
.dialog[open] { animation: rise .25s var(--ease); }
.dialog::backdrop { background: rgba(23, 21, 31, .35); backdrop-filter: blur(2px); }
.dialog h2 { margin: 0 0 8px; font: 600 20px var(--display); letter-spacing: -.02em; }
.dialog p { margin: 0 0 12px; color: var(--muted); }
.dialog p b { color: var(--ink); }
.dialog-when { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.dialog .btn-solid-danger { --bg: var(--danger); --fg: #fff; --bd: var(--danger); }
.dialog .btn-solid-danger:hover { --bg: #d13438; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 560px) { .dialog-actions { flex-direction: column-reverse; } .dialog-actions .btn { width: 100%; justify-content: center; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title .eyebrow { margin-bottom: 8px; }
.page-head h1 { font-size: 34px; letter-spacing: -.035em; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs { display: inline-flex; padding: 4px; gap: 2px; background: var(--paper-2); border-radius: 99px; }
.tabs a { padding: 7px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; white-space: nowrap; }
.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { width: 300px; padding-left: 42px; border-radius: 99px; background: #fff; }

/* ---------- dashboard ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.upnext { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: 26px 28px; color: #fff; background: var(--ink); box-shadow: var(--shadow-lg); min-height: 280px; display: flex; flex-direction: column; }
.upnext-glow { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(420px 260px at 105% -10%, rgba(255, 91, 58, .55), transparent 65%),
    radial-gradient(380px 300px at 85% 120%, rgba(109, 77, 255, .65), transparent 65%),
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent), var(--ink); }
.upnext-glow::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(120deg, transparent 40%, #000); }
.upnext-top { display: flex; justify-content: space-between; align-items: center; }
.upnext-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.upnext-time { margin-top: auto; padding-top: 20px; font: 600 64px/1 var(--display); letter-spacing: -.05em; }
.upnext-time span { font-size: 26px; color: rgba(255, 255, 255, .45); letter-spacing: -.03em; margin-left: 4px; }
.upnext-date { color: rgba(255, 255, 255, .6); font-size: 14px; margin-top: 6px; }
.upnext-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.upnext-who b { display: block; font-size: 16px; }
.upnext-who span { color: rgba(255, 255, 255, .65); font-size: 13px; }
.upnext-actions { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.upnext-empty { margin-top: auto; font-size: 30px; letter-spacing: -.035em; color: #fff; }
.upnext-sub { color: rgba(255, 255, 255, .65); margin: 8px 0 0; max-width: 340px; }

.share { display: flex; gap: 22px; align-items: center; margin: 0; border-radius: var(--r-lg); padding: 24px; }
.share-qr { position: relative; flex: none; width: 150px; height: 150px; padding: 14px; border-radius: 20px; background: var(--paper); }
.share-qr svg.segno { width: 100%; height: 100%; display: block; }
.share-qr-logo { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 38px; height: 30px; display: grid; place-items: center; background: var(--paper); border-radius: 8px; }
.share-qr-logo svg { width: 24px; height: 24px; }
.share-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.share-url { font: 600 17px/1.3 var(--display); letter-spacing: -.02em; word-break: break-all; }
.share-url:hover { color: var(--violet); }
.share-body p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }

.setup { padding: 24px; }
.setup-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.setup-head h2 { margin-top: 4px; }
.setup-progress { display: flex; align-items: center; gap: 10px; }
.setup-progress span { width: 120px; height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; position: relative; }
.setup-progress span::after { content: ""; position: absolute; inset: 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--violet)); }
.setup-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.setup-step { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line-2); transition: all .2s; }
.setup-step:hover { border-color: var(--ink); border-style: solid; }
.setup-step i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); margin-bottom: 8px; }
.setup-step i .icon { width: 17px; height: 17px; }
.setup-step b { font-size: 14px; }
.setup-step span { font-size: 12px; color: var(--muted); }
.setup-step.done { border-style: solid; border-color: transparent; background: var(--paper); }
.setup-step.done i { background: var(--mint); color: var(--mint-ink); }
.setup-step.done b { color: var(--muted); text-decoration: line-through; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat { position: relative; overflow: hidden; border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); }
.stat i { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .6); }
.stat span { font-size: 13px; font-weight: 600; opacity: .8; }
.stat b { font: 650 34px/1.1 var(--display); letter-spacing: -.045em; margin-top: 14px; color: var(--ink); }
.stat small { font-size: 12px; opacity: .75; }
.tone-peach { --bg: var(--peach); --fg: var(--peach-ink); }
.tone-lilac { --bg: var(--lilac); --fg: var(--lilac-ink); }
.tone-mint { --bg: var(--mint); --fg: var(--mint-ink); }
.tone-butter { --bg: var(--butter); --fg: var(--butter-ink); }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item a { display: grid; grid-template-columns: 54px 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px 8px 6px; border-radius: 14px; transition: background .15s; }
.tl-item a:hover { background: var(--paper); }
.tl-time { font: 600 15px/1.2 var(--display); letter-spacing: -.02em; display: flex; flex-direction: column; }
.tl-time small { color: var(--faint); font: 500 11px var(--font); }
.tl-rail { align-self: stretch; position: relative; display: grid; place-items: center; }
.tl-rail::before { content: ""; position: absolute; top: -10px; bottom: -10px; left: 50%; width: 2px; translate: -50% 0; background: var(--line); }
.tl-item:first-child .tl-rail::before { top: 50%; }
.tl-item:last-child .tl-rail::before { bottom: 50%; }
.tl-rail i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--c); }
.tl-body { display: flex; flex-direction: column; min-width: 0; }
.tl-body b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-body span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item.past { opacity: .45; }
.tl-item.now a { background: #fff6f3; }
.tl-item.now .tl-rail i { background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }

.weekbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; }
.wb { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wb-n { font: 600 13px var(--display); color: var(--ink-2); height: 18px; }
.wb-track { flex: 1; width: 100%; max-width: 38px; display: flex; align-items: flex-end; border-radius: 10px; background: var(--paper); overflow: hidden; }
.wb-bar { width: 100%; height: var(--h); border-radius: 10px; background: var(--lilac); transition: height .6s var(--ease); }
.wb:hover .wb-bar { background: color-mix(in srgb, var(--violet) 40%, white); }
.wb.today .wb-bar { background: linear-gradient(180deg, var(--coral), var(--violet)); }
.wb-d { font-size: 12px; font-weight: 600; color: var(--muted); }
.wb.today .wb-d { color: var(--ink); }

.mini-list, .history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mini-list a, .history a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 14px; transition: background .15s; }
.mini-list a:hover, .history a:hover { background: var(--paper); }
.ml-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ml-body b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-body span { font-size: 13px; color: var(--muted); }
.history a { border-left: 3px solid var(--c); border-radius: 4px 14px 14px 4px; padding-left: 12px; }

/* ---------- appointment rows ---------- */
.rows { display: flex; flex-direction: column; }
.row-item { display: grid; grid-template-columns: 48px 66px minmax(0, 1.4fr) minmax(0, 1.2fr) 80px 180px; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.row-item:last-child { border-bottom: 0; }
.row-item:hover { background: #fcfbf9; }
.ri-time { font: 600 15px/1.2 var(--display); letter-spacing: -.02em; display: flex; flex-direction: column; }
.ri-time small { font: 500 12px var(--font); color: var(--muted); letter-spacing: 0; }
.ri-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ri-person > span:not(.avatar), .ri-service { display: flex; flex-direction: column; min-width: 0; }
.ri-person b, .ri-service b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-person small, .ri-service small { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-price { font-weight: 600; font-size: 14px; text-align: right; }
.ri-status { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }

/* ---------- calendar ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #fff; border-radius: 99px; padding: 3px; box-shadow: var(--shadow-xs), 0 0 0 1px var(--line); }
.seg-btn { height: 34px; min-width: 34px; display: grid; place-items: center; border-radius: 99px; color: var(--ink-2); transition: background .15s; }
.seg-btn:hover { background: var(--paper); color: var(--ink); }
.seg-text { padding: 0 14px; font-size: 13px; font-weight: 600; }
.cal-range { font: 600 18px var(--display); letter-spacing: -.02em; flex: 1; }
.staff-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.sf { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 6px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: all .15s; }
.sf:first-child { padding-left: 13px; }
.sf:hover { box-shadow: 0 0 0 1px var(--line-2); }
.sf.active { background: var(--ink); color: #fff; box-shadow: none; }
.bookings-staff { margin: -4px 0 12px; }
.bk-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.bk-dates { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.bk-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; box-shadow: 0 0 0 1px var(--line); white-space: nowrap; cursor: pointer; list-style: none; }
.bk-chip .icon { width: 14px; height: 14px; }
.bk-chip.active { background: var(--ink); color: #fff; box-shadow: none; }
.bk-custom-form { display: none; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; padding: 12px; border-radius: var(--r-sm); background: #fff; box-shadow: var(--shadow); }
.bk-custom-form.open { display: flex; }
.bk-custom-form .field { margin: 0; font-size: 12px; flex: 1 1 140px; max-width: 220px; }
.bk-custom-form input { height: 38px; }
.bk-selects { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bk-selects select { width: auto; max-width: 100%; height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.bk-count { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.bk-count-actions { display: inline-flex; gap: 16px; margin-left: auto; }
.bk-count a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.bk-clear { color: var(--violet); }
.bk-order { color: var(--ink-2); }
.bk-count .icon { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .bk-dates { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 1px 16px; }
  .bk-dates::-webkit-scrollbar { display: none; }
  .bk-selects select { flex: 1; min-width: 0; }
}
.cal { margin: 0; }
.cal-grid { display: grid; grid-template-columns: 62px repeat(7, minmax(108px, 1fr)); min-width: calc(62px + 7 * 108px); }
.cal-head { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 6; background: #fff; }
.cal-corner, .cal-times { position: sticky; left: 0; z-index: 5; background: #fff; }
.cal-dayhead { text-align: center; padding: 12px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cal-dayhead span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal-dayhead b { font: 600 22px/1 var(--display); letter-spacing: -.03em; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.cal-dayhead small { display: flex; gap: 3px; height: 14px; align-items: center; }
.cal-dayhead small i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.cal-dayhead.today small i { background: color-mix(in srgb, var(--coral) 50%, white); }
.cal-dayhead.today b { background: var(--coral); color: #fff; box-shadow: 0 6px 16px -6px var(--coral); }
.cal-dayhead.today span { color: var(--coral); }
.cal-scroll { max-height: calc(100vh - 250px); overflow: auto; overscroll-behavior: contain; }
.cal-times div { position: relative; }
.cal-times span { position: absolute; top: -8px; right: 10px; font-size: 11px; font-weight: 500; color: var(--faint); }
.cal-times div:first-child span { display: none; }
.cal-col { position: relative; border-left: 1px solid var(--line); }
.cal-col.weekend { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(23, 21, 31, .015) 8px 16px); }
.cal-col.today { background: color-mix(in srgb, var(--coral) 3.5%, white); }
.cal-cell { display: grid; place-items: center; border-top: 1px solid #f3efe8; color: transparent; transition: background .15s, color .15s; }
.cal-cell:first-child { border-top: 0; }
.cal-cell:hover { background: rgba(23, 21, 31, .03); color: var(--muted); }
.cal-cell .icon { width: 16px; height: 16px; }
.cal-event { position: absolute; z-index: 1; border-radius: 10px; padding: 6px 8px; font-size: 12px; line-height: 1.3; overflow: hidden;
  background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 55%, var(--ink));
  box-shadow: inset 3px 0 0 var(--c); transition: transform .15s var(--ease), box-shadow .2s; }
.cal-event:hover { z-index: 3; transform: scale(1.02); box-shadow: inset 3px 0 0 var(--c), var(--shadow); }
.cal-event b { display: block; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.cal-event.short { padding-top: 3px; }
.cal-event.short span { display: none; }
.cal-event.status-completed { opacity: .6; }
.cal-event.status-no_show { opacity: .45; background: repeating-linear-gradient(-45deg, #fff 0 6px, color-mix(in srgb, var(--c) 10%, white) 6px 12px); }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--coral); z-index: 4; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px #fff; }

/* ---------- appointment detail / ticket ---------- */
.ticket { --c: var(--brand); position: relative; display: flex; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); margin-bottom: 16px; }
.ticket-stub { flex: none; width: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 0; border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: var(--c); color: #fff; position: relative; }
.ticket-stub span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.ticket-stub b { font: 600 46px/1 var(--display); letter-spacing: -.05em; margin: 4px 0; }
.ticket-stub::after { content: ""; position: absolute; right: -1px; top: 14px; bottom: 14px; border-right: 2px dashed rgba(255, 255, 255, .55); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 98px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); z-index: 1; }
.ticket::before { top: -10px; }
.ticket::after { bottom: -10px; }
.ticket-main { flex: 1; min-width: 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
.ticket-top { display: flex; gap: 8px; margin-bottom: 6px; }
.ticket-main h2 { font-size: 22px; }
.ticket-time { font: 600 28px/1.15 var(--display); letter-spacing: -.035em; margin-top: 4px; }
.ticket-time span { display: block; font: 500 14px var(--font); letter-spacing: 0; color: var(--muted); }
.ticket-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.ticket-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ticket-meta .icon { width: 15px; height: 15px; color: var(--muted); }
.admin-ticket.status-cancelled .ticket-stub { background: var(--faint); }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.status-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; transition: all .15s; }
.status-opt:hover:not([disabled]) { border-color: var(--line-2); transform: translateY(-1px); }
.status-opt .icon { width: 20px; height: 20px; }
.status-opt.active { cursor: default; }
.status-opt.status-confirmed.active { background: var(--lilac); border-color: transparent; color: var(--lilac-ink); }
.status-opt.status-completed.active { background: var(--mint); border-color: transparent; color: var(--mint-ink); }
.status-opt.status-no_show.active { background: var(--butter); border-color: transparent; color: var(--butter-ink); }
.status-opt.status-cancelled.active { background: var(--paper-2); border-color: transparent; color: var(--muted); }
.status-opt.status-cancelled:hover:not([disabled]) { border-color: #f4b4b1; color: var(--danger); }
.span-all { grid-column: 1 / -1; margin-top: 6px; }

.person-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 22px 22px; }
.person-card h2 { font-size: 21px; margin-top: 8px; }
.person-lines { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 14px; }
.person-lines a { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-size: 14px; color: var(--ink-2); }
.person-lines a:hover { color: var(--violet); }
.person-lines .icon { width: 15px; height: 15px; color: var(--muted); }
.person-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.person-stats div { display: flex; flex-direction: column; }
.person-stats b { font: 650 20px var(--display); letter-spacing: -.03em; }
.person-stats span { font-size: 12px; color: var(--muted); }
.quote { display: flex; gap: 10px; text-align: left; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--butter); color: var(--butter-ink); width: 100%; }
.quote p { margin: 0; font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.copy-card .eyebrow { display: block; margin-bottom: 4px; }
.copy-card p { margin: 0 0 12px; }
.copy-field { display: flex; gap: 6px; align-items: center; padding: 4px 4px 4px 12px; border-radius: 12px; background: var(--paper); }
.copy-field input { border: 0; background: transparent; padding: 6px 0; font-size: 13px; color: var(--ink-2); box-shadow: none !important; }

/* ---------- customers ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.person-tile { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin: 0; padding: 18px; transition: transform .2s var(--ease), box-shadow .2s; }
.person-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pt-body { display: flex; flex-direction: column; min-width: 0; }
.pt-body b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-body span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pt-stats span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.pt-stats b { font: 600 15px var(--display); color: var(--ink); letter-spacing: -.02em; }

/* ---------- services & team ---------- */
.service-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.service-card { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 20px; transition: transform .2s var(--ease), box-shadow .2s; }
.service-card:hover, .team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card.inactive { opacity: .6; }
.sc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sc-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; }
.service-card.tone-0 .sc-icon { background: var(--peach); color: var(--peach-ink); }
.service-card.tone-1 .sc-icon { background: var(--lilac); color: var(--lilac-ink); }
.service-card.tone-2 .sc-icon { background: var(--mint); color: var(--mint-ink); }
.service-card.tone-3 .sc-icon { background: var(--butter); color: var(--butter-ink); }
.service-card.tone-4 .sc-icon { background: var(--sky); color: var(--sky-ink); }
.service-card.tone-5 .sc-icon { background: var(--rose); color: var(--rose-ink); }
.service-card h3 { font-size: 18px; }
.service-card p { margin: 0; font-size: 13px; color: var(--muted); }
.sc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.sc-price { font: 650 22px var(--display); letter-spacing: -.035em; }
.sc-staff { border-top: 1px solid var(--line); padding-top: 10px; }
.add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 200px; padding: 20px;
  border-radius: var(--r); border: 2px dashed var(--line-2); color: var(--ink-2); transition: all .2s; }
.add-card:hover { border-color: var(--ink); background: #fff; }
.add-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; margin-bottom: 6px; transition: transform .3s var(--ease); }
.add-card:hover .add-icon { transform: rotate(90deg) scale(1.05); }
.team-card { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 22px; transition: transform .2s var(--ease), box-shadow .2s; position: relative; overflow: hidden; }
.team-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.team-card.add-card::before { display: none; }
.team-card.inactive { opacity: .6; }
.team-top { display: flex; gap: 14px; align-items: center; }
.team-top h3 { font-size: 19px; margin-bottom: 2px; }
.week-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wm { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wm-track { width: 100%; height: 46px; border-radius: 8px; background: var(--paper); display: flex; align-items: flex-end; overflow: hidden; }
.wm-bar { width: 100%; height: var(--h); background: color-mix(in srgb, var(--c) 70%, white); border-radius: 8px; }
.wm small { font-size: 11px; font-weight: 600; color: var(--muted); }
.wm.off small { color: var(--faint); }

.hours { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.hours-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); transition: background .15s; }
.hours-row:last-child { border-bottom: 0; }
.hours-row b { font-size: 14px; font-weight: 600; }
.hours-ranges { display: flex; gap: 10px; flex-wrap: wrap; }
.range { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 10px; background: var(--paper); }
.range input { width: 124px; padding: 6px 8px; border: 0; background: #fff; border-radius: 8px; font-size: 14px; }
.range i { color: var(--faint); font-style: normal; }
.range-2.empty { opacity: .5; }
.range-2.empty:focus-within, .range-2.empty:hover { opacity: 1; }
.hours-row .closed { display: none; color: var(--faint); font-size: 13px; font-weight: 500; }
.hours-row.off { background: #fcfbf9; }
.hours-row.off .hours-ranges { display: none; }
.hours-row.off .closed { display: block; }
.hours-row.off b { color: var(--muted); }
.timeoff .card-head { margin-bottom: 6px; }
.timeoff > p { margin: 0 0 14px; }
.off-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.off-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 8px 10px 14px; border-radius: 14px; background: var(--sky); }
.off-list b { display: block; font-size: 14px; }
.off-list span { font-size: 12px; color: var(--sky-ink); }
.timeoff-form { padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- language switch ---------- */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 99px; background: rgba(23, 21, 31, .06); vertical-align: middle; }
.lang-switch a { font: 600 11px/1 var(--font); letter-spacing: .04em; padding: 5px 8px; border-radius: 99px; color: var(--muted); transition: all .15s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.side-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.side-row .nav-out { flex: 1; }
.auth-main { position: relative; }
.auth-lang { position: absolute; top: 22px; right: 24px; }
.pub-foot .lang-switch { margin-left: 8px; }

/* ---------- sender email ---------- */
.mail-form { margin-top: 16px; }
.mail-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 500; }
.mail-opt:has(input:checked) { border-color: var(--ink); background: #fcfbf9; }
.mail-opt input { margin-top: 3px; width: 17px; height: 17px; }
.mail-opt b { display: block; font-size: 15px; color: var(--ink); }
.mail-opt small { color: var(--muted); font-size: 13px; }
.own-fields { display: none; flex-direction: column; gap: 14px; }
.mail-form:has(input[value=own]:checked) .own-fields { display: flex; }
.mail-form .lbl-own { display: none; }
.mail-form:has(input[value=own]:checked) .lbl-own { display: inline; }
.mail-form:has(input[value=own]:checked) .lbl-platform { display: none; }
.smtp-adv summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.smtp-adv .row-3 { margin-top: 12px; }
.help-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--sky); color: var(--ink-2); font-size: 13px; }
.help-box .icon { color: var(--sky-ink); flex: none; margin-top: 2px; }
.help-box ol { margin: 6px 0 0; padding-left: 18px; }

/* ---------- billing ---------- */
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; margin-bottom: 18px; font-size: 14px; transition: transform .2s var(--ease); }
.banner:hover { transform: translateY(-1px); }
.banner > .icon { width: 20px; height: 20px; flex: none; }
.banner span { flex: 1; }
.banner em { font: 600 13px var(--font); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.banner em .icon { width: 15px; height: 15px; }
.banner-trial { background: linear-gradient(90deg, var(--lilac), var(--peach)); color: var(--ink); }
.banner-trial > .icon { color: var(--violet); }
.banner-grace { background: #fff1ec; color: #a3300f; box-shadow: inset 0 0 0 1.5px #ffd0c2; }
.plan-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: 30px; color: #fff; background: var(--ink); box-shadow: var(--shadow-lg); margin-bottom: 16px; }
.plan-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 260px at 100% 0%, rgba(255, 91, 58, .5), transparent 65%), radial-gradient(420px 320px at 0% 110%, rgba(109, 77, 255, .6), transparent 65%), var(--ink); }
.plan-locked .plan-glow, .plan-grace .plan-glow { background: radial-gradient(460px 300px at 100% 0%, rgba(255, 91, 58, .65), transparent 65%), var(--ink); }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan-name { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.plan-price { font: 600 72px/1 var(--display); letter-spacing: -.05em; margin-top: 30px; }
.plan-price span { font-size: 22px; color: rgba(255, 255, 255, .5); letter-spacing: -.02em; margin-left: 4px; }
.plan-vat { color: rgba(255, 255, 255, .6); font-size: 14px; margin-top: 6px; }
.plan-status { margin-top: 26px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 4px; }
.plan-status b { font-size: 15px; }
.plan-status span { color: rgba(255, 255, 255, .7); font-size: 14px; }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.plan-secure { display: flex; align-items: center; gap: 6px; margin: 18px 0 0; font-size: 12px; color: rgba(255, 255, 255, .5); }
.plan-secure .icon { width: 14px; height: 14px; }
.included { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.included li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.included .icon { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--mint); color: var(--mint-ink); flex: none; }

/* ---------- owner: invoices ---------- */
.howto { display: flex; gap: 14px; align-items: flex-start; background: var(--sky); box-shadow: none; }
.howto > .icon { width: 22px; height: 22px; color: var(--sky-ink); margin-top: 2px; }
.howto p { margin: 0; font-size: 14px; color: var(--ink-2); }
.inv-list { display: flex; flex-direction: column; gap: 14px; }
.inv { margin: 0; border-left: 4px solid var(--butter); }
.inv.done { border-left-color: var(--mint); }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.inv-head b { display: block; font: 600 17px var(--display); letter-spacing: -.02em; }
.inv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.inv-field { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: copy; font: inherit; color: inherit; min-width: 0; transition: border-color .15s, background .15s; }
.inv-field:hover:not([disabled]) { border-color: var(--ink); background: #fcfbf9; }
.inv-field[disabled], .inv-field.static { cursor: default; background: var(--paper); border-color: transparent; }
.inv-field.wide { grid-column: span 2; }
.inv-field span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.inv-field b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.inv-field.copied { border-color: var(--mint-ink); background: var(--mint); }
.inv-mark { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.inv-mark input { max-width: 260px; }
.inv-mark .inv-hide { margin-left: auto; color: var(--danger); }
.inv-hidden { margin-top: 14px; }
.inv-hidden summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.inv-hidden-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 0; }
.inv-hidden-row span { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 860px) { .inv-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Auth
   ========================================================================== */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(440px, 1fr); min-height: 100vh; min-height: 100dvh; }

/* art panel: a living day dial */
.auth-art { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; background: #110f19; color: #fff; padding: 40px 56px; display: flex; flex-direction: column; }
.aurora { position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg at 60% 45%, #ff5b3a, #ff4f9a, #6d4dff, #2b1d7a, #110f19, #ff5b3a);
  filter: blur(90px); opacity: .5; animation: aurora 26s linear infinite; }
@keyframes aurora { to { transform: rotate(360deg); } }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, rgba(17, 15, 25, .9), transparent 60%),
              radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 22px 22px; }
.auth-logo { align-self: flex-start; }
.auth-copy { margin-top: clamp(24px, 6vh, 72px); max-width: 520px; }
.auth-copy h2 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.05em; font-weight: 600; }
.auth-copy h2 em { color: #ffb39f; font-weight: 400; }
.auth-copy p { font-size: 16px; color: rgba(255, 255, 255, .66); max-width: 400px; margin: 16px 0 0; }

.dial-wrap { --size: clamp(240px, min(44vh, 32vw), 420px); position: relative; width: var(--size); height: var(--size); margin: auto auto 0; flex: none; }
.dial { width: 100%; height: 100%; display: block; overflow: visible; }
.dial circle { fill: none; }
.dial-track { stroke: rgba(255, 255, 255, .07); stroke-width: 22; }
.dial-ticks { stroke: rgba(255, 255, 255, .22); stroke-width: 6; stroke-dasharray: 1.2 11.786; }
.dial-hours { stroke: rgba(255, 255, 255, .6); stroke-width: 12; stroke-dasharray: 2.4 61.43; }
.dial-arc { stroke-width: 22; stroke-linecap: round; stroke-dasharray: var(--len) 1000;
  animation: arc-in 1.1s var(--ease) calc(.25s + var(--i) * .12s) backwards; }
@keyframes arc-in { from { stroke-dasharray: 0 1000; } }
.dial-sec, .dial-now { transform-box: view-box; transform-origin: 200px 200px; }
.dial-sec { animation: spin 60s linear infinite; }
.dial .dial-sec circle { fill: #ff8a6e; }
@keyframes spin { to { transform: rotate(360deg); } }
.dial-now { transition: transform .8s var(--ease); }
.dial .now-dot { fill: #fff; stroke: #110f19; stroke-width: 3; }
.dial .now-pulse { fill: rgba(255, 255, 255, .5); transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.dial-date { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.dial-time { font: 600 calc(var(--size) * .2)/1 var(--display); letter-spacing: -.05em; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.dial-count { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255, 255, 255, .75); padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.dial-count i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .2); }

.chip { position: absolute; display: flex; align-items: center; gap: 11px; padding: 10px 16px 10px 10px; border-radius: 16px; white-space: nowrap;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6); animation: chip-in .7s var(--ease) var(--d) backwards, bob 7s ease-in-out var(--d) infinite; }
.chip b { display: block; font-size: 13.5px; font-weight: 600; color: #fff; }
.chip div span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.chip-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--c); color: #110f19; }
.chip-ic .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.chip-a { --d: .9s; top: 4%; left: 72%; }
.chip-b { --d: 1.3s; top: 40%; right: 84%; }
.chip-c { --d: 1.7s; bottom: 2%; left: 66%; }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* form side */
.auth-main { position: relative; display: grid; place-items: center; padding: 64px 32px; overflow: hidden; isolation: isolate;
  background: radial-gradient(520px 380px at 100% 0%, rgba(255, 91, 58, .1), transparent 70%),
              radial-gradient(520px 420px at 0% 100%, rgba(109, 77, 255, .1), transparent 70%), var(--paper); }
.auth-lang { position: absolute; top: 22px; right: 24px; }
.auth-hero { display: none; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 28px; padding: 40px 36px 32px;
  box-shadow: 0 1px 2px rgba(23, 21, 31, .04), 0 40px 80px -40px rgba(23, 21, 31, .25); animation: rise .6s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.auth-card h1 { font-size: 32px; letter-spacing: -.04em; }
.auth-card .lead { color: var(--muted); margin: 8px 0 24px; font-size: 15px; }
.auth-hi { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px; padding: 5px 12px 5px 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--peach), var(--lilac)); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.auth-hi .icon { width: 16px; height: 16px; color: var(--coral); stroke-width: 2.2; }
.auth-card input, .auth-card select { height: 50px; padding: 0 16px; border-radius: 14px; background-color: #fbfaf8; }
.auth-card select { padding-right: 38px; }
.auth-card input:focus, .auth-card select:focus { background-color: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 14%, transparent); }
.auth-card .btn-lg { height: 52px; border-radius: 16px; }
.auth-card .btn-primary { background: linear-gradient(135deg, #17151f 0%, #2a2140 100%); border: 0; box-shadow: 0 14px 28px -14px rgba(45, 30, 110, .7); }
.auth-card .btn-primary:hover { background: linear-gradient(135deg, #221e30 0%, #3a2d5c 100%); }
.auth-card .btn-primary .icon { transition: transform .2s var(--ease); }
.auth-card .btn-primary:hover .icon { transform: translateX(3px); }
.auth-card .btn-google { border-radius: 16px; }
.pw-wrap { position: relative; display: block; margin-top: 7px; }
.pw-wrap input { padding-right: 52px; }
.pw-eye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed=true] { color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--violet); outline-offset: -4px; }
.auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.auth-logo-mobile { display: none; }
@media (max-width: 1280px) {
  .chip-a { left: 64%; }
  .chip-b { right: 76%; }
  .chip-c { left: 58%; }
}
@media (max-height: 760px) and (min-width: 981px) {
  .auth-copy p { display: none; }
}

/* error */
.error-page { min-height: 100vh; display: grid; place-items: center; }
.error-wrap { text-align: center; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.error-code { display: flex; align-items: center; gap: 4px; margin: 34px 0 14px; font: 650 120px/1 var(--display); letter-spacing: -.06em; }
.error-code i { width: 110px; height: 110px; margin: 0 6px; animation: drift 2.6s ease-in-out infinite alternate; }
.error-code i svg { width: 100%; height: 100%; display: block; }
@keyframes drift { to { transform: translateY(-10px) rotate(-6deg); } }
.error-wrap p { color: var(--muted); margin: 0 0 18px; }

/* ==========================================================================
   Public booking pages
   ========================================================================== */
body.public { background: var(--paper); }
.pub-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pub-bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.pub-bg span:first-child { width: 560px; height: 560px; top: -260px; left: 50%; translate: -70% 0; background: color-mix(in srgb, var(--brand) 45%, white); }
.pub-bg span:last-child { width: 420px; height: 420px; top: -160px; left: 50%; translate: 20% 0; background: color-mix(in srgb, var(--coral) 30%, white); opacity: .4; }
.pub-wrap { max-width: 640px; margin: 0 auto; padding: 36px 18px 48px; animation: rise .5s var(--ease); }
.pub-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pub-avatar { width: 58px; height: 58px; border-radius: 20px; flex: none; display: grid; place-items: center; color: #fff; font: 650 22px var(--display); letter-spacing: -.03em;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, white), var(--brand-ink)); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
.pub-id { min-width: 0; }
.pub-name { font: 650 24px/1.15 var(--display); letter-spacing: -.035em; }
.pub-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.pub-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.pub-meta .icon { width: 14px; height: 14px; color: var(--muted); }
.pub-meta a:hover { color: var(--brand); }
.pub-head.big { flex-direction: column; text-align: center; margin: 18px 0 26px; }
.pub-head.big .pub-avatar { width: 84px; height: 84px; border-radius: 28px; font-size: 32px; }
.pub-head.big .pub-name { font-size: 34px; }
.pub-head.big .pub-meta { justify-content: center; }
.pub-desc { text-align: center; color: var(--ink-2); max-width: 460px; margin: -14px auto 22px; font-size: 15px; }

.steps { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--faint); }
.steps li:not(:last-child)::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--line-2); margin-left: 3px; }
.steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; border: 1.5px solid var(--line-2); background: #fff; }
.steps span .icon { width: 12px; height: 12px; stroke-width: 3; }
.steps em { font: inherit; letter-spacing: 0; }
.steps li.done { color: var(--ink-2); }
.steps li.done span { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.done::after { background: var(--brand); }
.steps li.current { color: var(--ink); }
.steps li.current span { border-color: var(--ink); background: var(--ink); color: #fff; }

.pub-card { position: relative; background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-lg); margin-bottom: 16px; }
.pub-h { font-size: 18px; margin: 0 0 16px; }
.pub-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 24px 0 10px; font-family: var(--font); }
.pub-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.month { font: 600 14px var(--display); color: var(--ink-2); }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); margin: -4px 0 14px -4px; padding: 4px 8px 4px 4px; border-radius: 99px; }
.back:hover { color: var(--ink); background: var(--paper); }
.back .icon { width: 16px; height: 16px; }

.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 18px; border: 1.5px solid var(--line);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.svc:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--brand) 60%, transparent); }
.svc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.svc-body b { font: 600 16px var(--display); letter-spacing: -.02em; }
.svc-desc { font-size: 13px; color: var(--muted); }
.svc-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.svc-meta .icon { width: 14px; height: 14px; color: var(--muted); }
.svc-side { display: flex; align-items: center; gap: 12px; flex: none; }
.svc-price { font: 650 17px var(--display); letter-spacing: -.03em; }
.svc-price.big { font-size: 24px; }
.svc-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: all .2s var(--ease); }
.svc:hover .svc-go { background: var(--brand); color: #fff; transform: translateX(2px); }
.chosen { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 6px; }
.chosen h2 { font-size: 22px; margin-bottom: 4px; }

.who { display: flex; gap: 8px; flex-wrap: wrap; }
.who-opt { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 6px; border-radius: 99px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; transition: all .15s; }
.who-opt:hover { border-color: var(--line-2); }
.who-opt.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

.dates { display: flex; align-items: center; gap: 6px; }
.date-scroll { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: none; flex: 1; min-width: 0; }
.date-scroll::-webkit-scrollbar { display: none; }
.date { position: relative; flex: 0 0 56px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 12px; border-radius: 16px; border: 1.5px solid var(--line); transition: all .15s var(--ease); }
.date span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.date b { font: 600 20px/1.1 var(--display); letter-spacing: -.03em; }
.date i { position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }
.date:hover { border-color: var(--brand); transform: translateY(-2px); }
.date.active { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(23, 21, 31, .6); }
.date.active span { color: rgba(255, 255, 255, .6); }
.date.active i { background: #fff; }
.date.off { opacity: .35; border-style: dashed; }
.date-nav { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); background: var(--paper); }
.date-nav:hover { background: var(--ink); color: #fff; }

/* moving an appointment, waiting list */
.move-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--brand) 10%, white); font-size: 14px; }
.move-note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
.move-note span { display: flex; flex-direction: column; gap: 2px; color: var(--ink-2); }
.move-note b { color: var(--ink); }
.slot.current { border-style: dashed; color: var(--muted); }
.move-from { display: flex; gap: 8px; align-items: baseline; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.move-from s { color: var(--muted); }
.move-btn { margin-top: 14px; }
.waitlist-link { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm);
  border: 1.5px dashed var(--line-2); color: var(--ink-2); font-size: 13px; transition: border-color .15s, background .15s; }
.waitlist-link:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, white); }
.waitlist-link > .icon { flex: none; width: 20px; height: 20px; color: var(--brand); }
.waitlist-link > .icon:last-child { width: 16px; height: 16px; color: var(--muted); }
.waitlist-link span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.waitlist-link b { font-size: 14px; color: var(--ink); }
.lead-muted { color: var(--muted); font-size: 14px; margin: -6px 0 14px; }
.chosen.small h2 { font-size: 18px; }
.field-hint { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.wl-intro { margin: -4px 0 16px; font-size: 14px; max-width: 640px; }
.wl-auto { padding: 16px 20px; }
.wl-day-card { margin-bottom: 14px; }
.wl-day-head { margin: 0; padding: 14px 20px 10px; font-size: 15px; border-bottom: 1px solid var(--line); }
.wl-rows { list-style: none; margin: 0; padding: 0; }
.wl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); }
.wl-row:first-child { border-top: 0; }
.wl-row.status-freed { background: color-mix(in srgb, var(--mint) 30%, transparent); }
.wl-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tag-freed { background: var(--mint); color: var(--mint-ink); }
@media (max-width: 560px) { .wl-row { padding: 12px 14px; } .wl-actions { margin-left: 0; width: 100%; } .wl-actions form:last-child { margin-left: auto; } }
.holidays { margin: -4px 0 4px 51px; font-size: 13px; }
.holidays summary { cursor: pointer; color: var(--muted); list-style: none; }
.holidays summary::-webkit-details-marker { display: none; }
.holidays ul { list-style: none; margin: 10px 0 0; padding: 4px 14px; border-radius: var(--r-sm); background: var(--paper); }
.holidays li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.holidays li:first-child { border-top: 0; }
.holidays li > span { display: flex; flex-direction: column; }
.holidays li small { color: var(--muted); }
.cal-dayhead.holiday b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-holiday { font: normal 600 10px var(--font); font-size: 10px; font-weight: 600; color: var(--coral); line-height: 1.2; max-width: 100%; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .holidays { margin-left: 0; } }
.wl-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wl-who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-who a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); }
.slot-group { margin-bottom: 16px; }
.slot-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.slot-label .icon { width: 15px; height: 15px; color: var(--muted); }
.slot-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 14px; border-radius: 99px; background: var(--paper); }
.slot-tabs { border-radius: 16px; }
.slot-tab { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; padding: 7px 4px;
  border: 0; border-radius: 12px; background: transparent; font: 600 14px var(--font); color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.slot-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-tab small { font-size: 11.5px; font-weight: 500; opacity: .8; }
.slot-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.slot-tab.active small { color: var(--brand-ink); opacity: 1; }
.slot-picker.tabbed .slot-label { display: none; }
.slot-picker.tabbed .slot-group:not(.active) { display: none; }
@media (max-width: 380px) { .slot-tabs { gap: 2px; padding: 3px; } .slot-tab { font-size: 13px; padding: 7px 3px; } }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.slot { text-align: center; padding: 11px 0; border-radius: 99px; border: 1.5px solid var(--line); font: 600 15px var(--display); letter-spacing: -.01em;
  transition: all .15s var(--ease); animation: pop .35s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.slot:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -10px var(--brand); }
.pub-empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.pub-empty .icon { width: 30px; height: 30px; color: var(--faint); }
.pub-empty p { margin: 8px 0 0; }
.fine { text-align: center; font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.ticket.mini { box-shadow: none; border: 1.5px solid var(--line); margin-bottom: 26px; }
.ticket.mini::before, .ticket.mini::after { background: #fff; border: 1.5px solid var(--line); }
.ticket.mini::before { border-top-color: transparent; border-left-color: transparent; transform: rotate(45deg); }
.ticket.mini::after { border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); }
.ticket.mini .ticket-stub { width: 92px; }
.ticket.mini .ticket-stub b { font-size: 38px; }
.ticket.mini::before, .ticket.mini::after { left: 82px; }
.ticket.mini .ticket-main { padding: 16px 20px; }
.ticket.mini .ticket-main h2 { font-size: 18px; }
.ticket.mini .ticket-time { font-size: 24px; }
.ticket.mini .ticket-meta { margin-top: 6px; }

.confirm { text-align: center; overflow: hidden; }
.confirm-title { font-size: 32px; letter-spacing: -.045em; margin-top: 6px; }
.confirm-title.left { text-align: left; font-size: 24px; margin-bottom: 18px; }
.confirm-sub { color: var(--muted); margin: 8px 0 26px; }
.seal { width: 76px; height: 76px; margin: 6px auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff;
  box-shadow: 0 0 0 10px var(--brand-soft), 0 20px 40px -14px var(--brand); animation: seal .6s var(--ease) both; }
.seal svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s .35s var(--ease) forwards; }
.seal-off { background: var(--paper-2); color: var(--muted); box-shadow: none; }
.seal-off .icon { width: 32px; height: 32px; }
@keyframes seal { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: 70px; left: 50%; width: 8px; height: 12px; border-radius: 2px; opacity: 0;
  background: hsl(calc(var(--i) * 47deg) 90% 62%); animation: burst 1.3s .2s var(--ease) forwards; --a: calc(var(--i) * 20deg); }
.confetti i:nth-child(3n) { border-radius: 50%; width: 9px; height: 9px; }
@keyframes burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(0) rotate(0); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-150px) rotate(540deg); }
}
.ticket.big { text-align: left; flex-direction: row; margin: 0 0 22px; box-shadow: none; border: 1.5px solid var(--line); }
.ticket.big .ticket-stub { order: 2; border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.ticket.big .ticket-stub::after { right: auto; left: -1px; }
.ticket.big::before, .ticket.big::after { left: auto; right: 98px; background: #fff; border: 1.5px solid var(--line); }
.ticket.big::before { border-top-color: transparent; border-left-color: transparent; transform: rotate(45deg); }
.ticket.big::after { border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); }
.ticket.big .ticket-main .eyebrow { margin-bottom: 4px; }
.ticket.status-cancelled .ticket-stub { background: var(--faint); }
.ticket.status-cancelled .ticket-main { opacity: .6; }
.cancel-form { margin-top: 18px; }

.pub-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 8px; font-size: 12px; color: var(--muted); margin-top: 28px; }
.pub-foot > span, .pub-legal { white-space: nowrap; }  /* on phones whole items wrap, never the words inside */
.pub-foot .logo-word { font-size: 14px; }
.pub-foot .logo-mark { width: 18px; height: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .setup-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 48px 60px minmax(0, 1fr) minmax(0, 1fr) auto; }
  .ri-price { display: none; }
}
@media (max-width: 980px) {
  .grid-2, .grid-2.wide-left, .grid-2.wide-right { grid-template-columns: minmax(0, 1fr); }
  .form-section { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; left: 0; top: 0; width: 280px; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .sidebar.open + .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(23, 21, 31, .35); backdrop-filter: blur(2px); }
  .nav-item.active::before { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; justify-content: space-between; align-items: center; padding: 10px 14px; background: rgba(247, 244, 239, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .page { padding: 20px 16px 60px; }
  .page-head h1 { font-size: 28px; }
  .page-head .actions { display: none; }
  .search input { width: 100%; }
  .search, .toolbar form { flex: 1; min-width: 220px; }
  .row-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .ri-time, .ri-service { display: none; }
  .ri-status .tag { display: none; }
  .upnext-time { font-size: 52px; }
  .share { flex-direction: column; text-align: center; }
  .share .btn-row { justify-content: center; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-grid { grid-template-columns: 48px repeat(7, minmax(92px, 1fr)); min-width: calc(48px + 7 * 92px); }
}
@media (max-width: 560px) {
  input, select, textarea { font-size: 16px; } /* stops iOS Safari zooming on focus */
  .stats { gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat b { font-size: 26px; }
  .stat i { display: none; }
  .setup-steps { grid-template-columns: 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .weekbars { height: 120px; gap: 4px; }
  .pub-wrap { padding: 22px 12px 36px; }
  .pub-card { padding: 20px 16px; border-radius: 22px; }
  .pub-head.big .pub-name { font-size: 28px; }
  .steps em { display: none; }
  .ticket-stub { width: 84px; }
  .ticket::before, .ticket::after { left: 74px; }
  .ticket.big::before, .ticket.big::after { right: 74px; left: auto; }
  .ticket-main { padding: 16px; }
  .hours-row { grid-template-columns: 1fr; }
  .tl-item .badge { display: none; }
  .tl-item a { grid-template-columns: 48px 16px minmax(0, 1fr) auto; }
}
/* ---------- auth on tablets & phones ---------- */
@media (max-width: 980px) {
  .auth { display: block; }
  .auth-art, .auth-lang { display: none; }
  .auth-main { display: flex; flex-direction: column; align-items: stretch; justify-items: stretch; min-height: 100vh; min-height: 100dvh; padding: 0; background: var(--paper); }
  .auth-hero { min-width: 0; }
  .auth-hero { display: block; position: relative; overflow: hidden; isolation: isolate; background: #110f19; color: #fff;
    padding: calc(12px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 50px max(20px, env(safe-area-inset-left)); }
  .auth-hero .aurora { inset: -60% -20%; opacity: .55; filter: blur(60px); }
  .hero-top, .hero-line, .ticker { position: relative; z-index: 1; }
  .hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
  .hero-top .lang-switch { background: rgba(255, 255, 255, .1); }
  .hero-top .lang-switch a { color: rgba(255, 255, 255, .65); padding: 13px 13px; }
  .auth-card .field-link, .auth-switch a, .auth-legal a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .hero-top .lang-switch a.active { background: #fff; color: var(--ink); }
  .hero-line { font: 600 26px/1.1 var(--display); letter-spacing: -.04em; margin: 16px 0 18px; }
  .hero-line em { color: #ffb39f; font-weight: 400; }
  .ticker { display: flex; width: max-content; animation: ticker 30s linear infinite; }
  .ticker-run { display: flex; gap: 8px; padding-right: 8px; }
  .tick { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border-radius: 99px; white-space: nowrap;
    font: 600 13px/1 var(--display); background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); }
  .tick i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
  .tick small { font: 500 12px var(--font); color: rgba(255, 255, 255, .6); }
  .auth-card { flex: 1; max-width: none; margin-top: -28px; position: relative; border-radius: 28px 28px 0 0; box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .4);
    padding: 28px max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); animation: none; }
  .auth-card > *, .auth-card > .lead { max-width: 460px; margin-left: auto; margin-right: auto; }
  .auth-card > .auth-hi { display: flex; width: max-content; max-width: 100%; margin-left: max(0px, calc(50% - 230px)); }
  .auth-card > .auth-hi[hidden] { display: none; }
  .auth-card h1 { font-size: 28px; }
  .typing .hero-line, .typing .ticker { display: none; }
  .typing .auth-hero { padding-bottom: 40px; }
  .typing .auth-card { padding-bottom: 50vh; }
}
@media (max-width: 380px) {
  .hero-line { font-size: 23px; }
  .auth-card h1 { font-size: 25px; }
  .auth-card .lead { font-size: 14px; }
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- sign-in extras (Firebase) ---------- */
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field-link { font-size: 13px; font-weight: 600; color: var(--violet, #6d4dff); text-decoration: none; }
.field-link:hover { text-decoration: underline; }
.btn-google { gap: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn-google:hover { background: #fcfbf9; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
form.is-busy { opacity: .65; pointer-events: none; }
[hidden] { display: none !important; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 22px 20px 70px; }
.legal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.legal-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.legal-tabs a { padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; background: var(--paper-2); }
.legal-tabs a.on { background: var(--ink); color: #fff; }
.legal-body { background: #fff; border-radius: 22px; padding: 30px 28px; box-shadow: 0 8px 24px rgba(23,21,31,.06); line-height: 1.65; }
.legal-body h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -.02em; }
.legal-body h2 { margin: 26px 0 8px; font-size: 18px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin: 4px 0; }
.legal-date { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.legal-body mark { background: #fff0c2; color: #a16207; padding: 0 4px; border-radius: 4px; font-weight: 700; }
@media (max-width: 560px) { .legal-body { padding: 22px 18px; } .legal-body h1 { font-size: 25px; } }
.auth-legal { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; line-height: 1.5; }
.auth-legal a { color: var(--ink-2); }
.pub-legal { font-size: 12px; color: var(--muted); margin-left: 6px; }

.pw-rules { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -6px 0 2px; padding: 0; font-size: 12.5px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 6px; transition: color .15s; }
.pw-rules li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #cfc9bf; box-sizing: border-box; transition: all .15s; }
.pw-rules li.ok { color: #12805a; }
.pw-rules li.ok::before { border-color: #12a06a; background: #12a06a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.plan-options { display: flex; flex-direction: column; gap: 10px; }
.plan-option { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); margin: 0;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease), background .25s var(--ease); }
.plan-option-row { display: flex; align-items: center; gap: 14px; }
.plan-option.current { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.plan-option .plan-current, .plan-option.current .plan-choose { display: none; }
.plan-option.current .plan-current { display: inline-flex; animation: pop .3s var(--ease); }
.plan-ask { display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.plan-ask > div { display: flex; gap: 8px; margin-left: auto; }
.plan-option.asking { background: var(--paper); }
.plan-option.asking .plan-ask { display: flex; animation: drop .25s var(--ease); }
.plan-option.asking .plan-choose { visibility: hidden; }
#billing-view.switching .plan-option:not(.current) { opacity: .5; pointer-events: none; }
#billing-view.switching .plan-option.current .plan-current .icon { animation: spin .8s linear infinite; }
[data-plan-amount] { font-weight: inherit; display: inline-block; }
.plan-bump { animation: plan-bump .35s var(--ease); }
@keyframes plan-bump { 40% { opacity: .2; transform: translateY(6px); } }
.plan-option-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-option-price { text-align: right; white-space: nowrap; }
.plan-option-price b { font: 600 20px var(--display); letter-spacing: -.02em; }
.plan-option-price span { color: var(--muted); font-size: 13px; margin-left: 2px; }

/* SMS reminders (sent from the owner's phone) */
.sms-progress { font-size: 14px; color: var(--muted); }
.sms-progress b { color: var(--ink); font-size: 16px; }
.sms-intro, .sms-desktop-hint { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 0 0 16px; }
.sms-intro .icon, .sms-desktop-hint .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.sms-desktop-hint { display: none; padding: 12px 16px; border-radius: var(--r-sm); background: var(--lilac); color: var(--ink); }
/* On a computer the SMS can't be sent: show only the hint and the message text. */
@media (hover: hover) and (pointer: fine) { .sms-desktop-hint { display: flex; } .phone-only { display: none !important; } }
.sms-list { list-style: none; margin: 0; padding: 0; }
.sms-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .25s var(--ease); }
.sms-row:last-child { border-bottom: 0; }
.sms-time { font: 600 16px var(--display); min-width: 48px; }
.sms-person { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.sms-person b, .sms-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sms-person small { color: var(--muted); font-size: 13px; }
.sms-send { flex: none; }
.sms-done, .sms-again { display: none; }
.sms-row.sent { background: color-mix(in srgb, var(--mint) 35%, transparent); }
.sms-row.sent .sms-send { display: none; }
.sms-row.sent .sms-done { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--mint-ink); animation: pop .3s var(--ease); }
.sms-row.sent .sms-done .icon { width: 15px; height: 15px; }
.sms-row.sent .sms-again { display: inline; font-size: 13px; color: var(--muted); text-decoration: underline; }
.sms-text { margin-top: 16px; }
.sms-text summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.sms-text summary::-webkit-details-marker { display: none; }
.sms-text summary > span { display: flex; flex-direction: column; gap: 2px; }
.sms-text[open] summary { margin-bottom: 16px; }
.sms-text code { font-size: 12px; padding: 1px 5px; border-radius: 6px; background: var(--paper-2); }
.sms-bubble { align-self: flex-start; max-width: 420px; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--paper-2); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.sms-bubble small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.nd-card { margin-bottom: 16px; }
.nd-card .sms-list { margin: 0 -22px; border-top: 1px solid var(--line); }
.nd-card .sms-row { padding-left: 22px; padding-right: 22px; }
.nd-card .nd-email { flex: none; }
.nd-none { margin: 0; }
.nd-settings { margin-top: 14px; font-size: 14px; }
.nd-settings summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; }
.nd-settings form { margin-top: 12px; }
.nd-form .check { display: flex; align-items: center; gap: 10px; }
.nd-form .check > span { flex: 1; min-width: 0; }
.nd-form .check .nd-date { width: 160px; flex: none; height: 38px; margin: 0; }
@media (max-width: 560px) { .nd-card .card-head, .nd-cust .card-head { flex-direction: column; align-items: flex-start; gap: 2px; } }
.sms-nudge > i:not(:has(svg)) { font-style: normal; font-size: 20px; }
.sms-nudge { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: inherit; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.sms-nudge:hover { transform: translateY(-2px); }
.sms-nudge > i { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--lilac); }
.sms-nudge > span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sms-nudge small { color: var(--muted); font-size: 13px; }
.sms-nudge em { flex: none; font-style: normal; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .sms-nudge em { display: none; } .sms-row { padding: 12px 14px; gap: 10px; } }

/* delete a team member / service */
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.danger-zone > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 260px; }
.danger-zone span { color: var(--muted); font-size: 13px; }
.danger-zone form { margin: 0; }
.btn-danger { --bg: #fff; --fg: var(--danger); --bd: #f4b4b1; }
.btn-danger:hover { --bg: #fff0ef; }

.plan-option.blocked .plan-option-info, .plan-option.blocked .plan-option-price { opacity: .5; }
.plan-blocked-why { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.plan-blocked-why a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Terms acceptance checkbox (sign-up and the "updated terms" page) */
.terms-check { align-items: flex-start; font-size: 13px; font-weight: 400; line-height: 1.5; }
.terms-check input { flex: none; margin-top: 2px; }
.terms-check a { color: var(--ink-2); text-decoration: underline; }
