/* ============================================================================
   Pylon Solus app shell: shared by /admin (dark) and, later, /account (light).
   Layout and components transcribed from the Taylor-approved mockup set
   (mockups/2026-08-22_platform_rebuild/, approved 2026-08-22, no changes).
   Every color/size comes from css/tokens.css. No raw hex belongs in this file.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; cursor: pointer; }
a:hover { color: var(--accent-hover); }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-ctl);
}

/* ---- app frame ---- */
.app { display: flex; height: 100%; min-height: 100vh; }
.side {
  width: var(--sidebar-w); flex: none;
  padding: var(--sp-4) 10px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-side); border-right: 1px solid var(--border);
}
.main {
  flex: 1; min-width: 0;
  padding: var(--sp-5) var(--sp-6);
  overflow-y: auto;
}

/* ---- sidebar ---- */
.brand { display: flex; align-items: center; gap: 12px; padding: 8px 8px 22px; }
.brand svg { width: 34px; height: 36px; flex: none; }
.brand .wm { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.brand .wm .o { color: var(--accent); }

/* The booking page and the sign-in cards give the mark a whole header to
   itself rather than a sidebar rail, so it goes bigger again. */
.brand-lg { gap: 16px; padding: 4px 0 26px; }
.brand-lg svg { width: 52px; height: 55px; }
.brand-lg .wm { font-size: 34px; letter-spacing: -0.025em; }

@media (max-width: 640px) {
  .brand-lg { gap: 12px; padding: 2px 0 20px; }
  .brand-lg svg { width: 40px; height: 42px; }
  .brand-lg .wm { font-size: 26px; }
}
.navsec {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 14px 8px 6px; color: var(--text-faint);
}
.nav {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px; border-radius: var(--radius-ctl);
  font-size: 13.5px; line-height: 1; color: var(--text-subtle);
  width: 100%; text-align: left;
}
.nav:hover { color: var(--text); background: var(--row-selected); }
.nav svg { width: 15px; height: 15px; flex: none; opacity: 0.8; }
.nav .ct {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent);
}
.nav.on {
  background: var(--nav-active); color: var(--text); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}
.sidefoot {
  margin-top: auto; padding: var(--sp-2); font-size: 11.5px;
  display: flex; align-items: center; gap: var(--sp-2);
  border-top: 1px solid var(--border); color: var(--text);
}
.avat {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}

/* ---- top bar ---- */
.top { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: 18px; flex-wrap: wrap; }
.h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.sub { font-size: 12.5px; margin-top: 2px; color: var(--text-subtle); }

/* ---- controls ---- */
.inp {
  border-radius: var(--radius-ctl); padding: 8px 11px; font-size: 12.5px;
  background: var(--surface-input); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-sans);
}
.inp::placeholder { color: var(--text-faint); }
select.inp { appearance: auto; }
textarea.inp { resize: vertical; min-height: 72px; }
.btn {
  font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-ctl);
  background: var(--accent); color: var(--on-accent); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
.ghost {
  border: 1px solid var(--border-ghost); color: var(--text-ghost); background: transparent;
  border-radius: var(--radius-ctl); padding: 8px 13px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.ghost:hover { color: var(--text); border-color: var(--text-faint); }
.ghost:disabled { opacity: 0.5; cursor: not-allowed; }
.ghost svg { width: 14px; height: 14px; }
/* A ghost control rendered as a <span> because the action genuinely is not
   available (no phone number on the lead, already converted). Reads the same
   as :disabled but works on a non-form element. */
.ghost.is-off { opacity: 0.42; cursor: not-allowed; }
.ghost.is-off:hover { color: var(--text-ghost); border-color: var(--border-ghost); }
a.ghost { text-decoration: none; }
.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 42%, transparent); }
.danger:hover { color: var(--danger); border-color: var(--danger); }

/* ---- cards + tables ---- */
.card { border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); }
.pad { padding: var(--sp-4) 18px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em; padding: 9px 10px; white-space: nowrap;
  color: var(--text-faint); border-bottom: 1px solid var(--border);
}
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text-subtle); }
td { padding: 11px 10px; white-space: nowrap; border-bottom: 1px solid var(--border-soft); color: var(--text-subtle); }
td.k { color: var(--text); font-weight: 500; }
tr.rowsel td { background: var(--row-selected); }
tr.rowable { cursor: pointer; }
tr.rowable:hover td { background: var(--tint-cobalt-06); }
tr:last-child td { border-bottom: 0; }

/* checkbox */
.cb {
  width: 13px; height: 13px; border: 1.5px solid var(--text-faint); border-radius: 3px;
  display: inline-block; vertical-align: middle; position: relative; flex: none;
  background: transparent; cursor: pointer;
}
.cb.on { background: var(--accent); border-color: var(--accent); }
.cb.on::after {
  content: ""; position: absolute; left: 3.5px; top: 1px; width: 3px; height: 6.5px;
  border: solid var(--on-accent); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}

/* ---- status pills ---- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: var(--radius-pill); border: 1px solid;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.ok  { color: var(--ok);      border-color: color-mix(in srgb, var(--ok) 36%, transparent);      background: color-mix(in srgb, var(--ok) 9%, transparent); }
.pill.go  { color: var(--accent);  border-color: color-mix(in srgb, var(--accent) 42%, transparent);  background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pill.wa  { color: var(--warn);    border-color: color-mix(in srgb, var(--warn) 38%, transparent);    background: color-mix(in srgb, var(--warn) 10%, transparent); }
.pill.no  { color: var(--neutral); border-color: color-mix(in srgb, var(--neutral) 34%, transparent); background: color-mix(in srgb, var(--neutral) 7%, transparent); }
.pill.bad { color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 36%, transparent);  background: color-mix(in srgb, var(--danger) 9%, transparent); }
button.pill { cursor: pointer; }

/* ---- stat tiles ---- */
.stat { border-radius: var(--radius-stat); padding: var(--sp-3) 14px; flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); }
.stat .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.stat .l { font-size: 11px; margin-top: 3px; color: var(--text-subtle); }

/* ---- layout helpers ---- */
.row { display: flex; gap: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; font-size: 12.5px; align-items: baseline; }
.kv dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: var(--text-faint); }
.kv dd { margin: 0; color: var(--text-subtle); overflow-wrap: anywhere; white-space: normal; }
.sec { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 9px; }
.subtle { color: var(--text-subtle); }
.faint { color: var(--text-faint); }

/* ---- dropdown menu ---- */
.dd {
  border-radius: var(--radius-md); padding: 5px; min-width: 150px;
  position: absolute; z-index: 40; box-shadow: var(--shadow-pop);
  background: var(--surface); border: 1px solid var(--border);
}
.dd .o {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px;
  border-radius: 5px; font-size: 12px; color: var(--text-subtle);
  width: 100%; text-align: left;
}
.dd .o:hover { background: var(--row-selected); color: var(--text); }
.dd .o .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ---- note ---- */
.note {
  border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 11px 14px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-subtle);
}

/* ---- progress bar ---- */
.bar { height: 6px; border-radius: var(--radius-pill); overflow: hidden; background: var(--track); }
.bar i { display: block; height: 100%; background: var(--accent); }

/* ---- modal ---- */
.modal-veil {
  position: fixed; inset: 0; z-index: 90;
  background: var(--veil);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-5);
}
.modal {
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-pop); padding: 18px 20px;
}
.modal .mh { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.modal .mb { font-size: 12.5px; color: var(--text-subtle); line-height: 1.55; }
.modal .mf { display: flex; gap: var(--sp-2); justify-content: flex-end; margin-top: var(--sp-4); }

/* ---- toasts ---- */
.toasts {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 95;
  display: flex; flex-direction: column; gap: var(--sp-2); max-width: 380px;
}
.toast {
  border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-pop); padding: 11px 14px; font-size: 12.5px;
  display: flex; align-items: center; gap: 10px; color: var(--text);
}
.toast .undo { color: var(--accent); font-weight: 600; white-space: nowrap; }
.toast .cnt { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); min-width: 24px; text-align: right; }
.toast.err { border-color: color-mix(in srgb, var(--danger) 42%, transparent); }

/* ---- detail pane (opens under the table on row click) ---- */
.detail-enter { animation: dp-in 0.14s ease-out; }
@keyframes dp-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---- pagination ---- */
.pager { display: flex; align-items: center; gap: var(--sp-2); padding: 10px 12px; font-size: 12px; color: var(--text-subtle); }
.pager .spacer { flex: 1; }

/* ---- empty + loading states ---- */
.empty { padding: 44px 20px; text-align: center; color: var(--text-faint); font-size: 13px; }
.empty .big { font-size: 15px; font-weight: 600; color: var(--text-subtle); margin-bottom: 6px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- login screen ---- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); background: var(--bg); }
.login-card { width: 100%; max-width: 380px; }

/* ---- responsive ---- */
.menu-btn { display: none; }
@media (max-width: 860px) {
  .side { position: fixed; inset: 0 auto 0 0; z-index: 60; transform: translateX(-100%); transition: transform 0.18s ease; }
  .side.open { transform: none; }
  .main { padding: var(--sp-4); }
  .menu-btn { display: inline-flex; }
}

/* ---- utility ---- */
.hide { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================================
   Client portal additions (Phase 3, 2026-08-23). Same token vocabulary as
   everything above; no raw color literal belongs here either.
   ========================================================================== */

/* ---- progress tracker (portal Overview) ---- */
.steps { display: flex; gap: var(--sp-3); }
.steps .st { flex: 1; min-width: 0; }
.steps .dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  border: 1px solid var(--border-ghost); color: var(--text-faint);
  margin-bottom: 7px;
}
.steps .st.done .dot { background: var(--ok); border-color: var(--ok); color: var(--on-accent); }
.steps .st.now  .dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.steps .lb { font-size: 11.5px; color: var(--text-subtle); line-height: 1.4; }
.steps .st.now .lb { color: var(--text); font-weight: 600; }
.steps .dot svg { width: 11px; height: 11px; }

/* ---- message thread ---- */
.thread { display: flex; flex-direction: column; gap: var(--sp-3); }
.bub { max-width: 64%; border-radius: 10px; padding: 11px 14px; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.bub.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.bub.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); }
.bmeta { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 5px; }
.bub.me .bmeta { color: var(--on-accent); opacity: 0.75; text-align: right; }
@media (max-width: 640px) { .bub { max-width: 88%; } }

/* ---- upload dropzone ---- */
.drop {
  border: 1px dashed var(--border-ghost); border-radius: var(--radius-card);
  padding: 26px 20px; text-align: center; background: var(--surface);
  display: block; width: 100%; color: var(--text-subtle);
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--tint-cobalt-06); }
.drop .dh { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.drop .db { font-size: 11.5px; line-height: 1.5; }

/* ---- two-column content grid ---- */
.cols { display: flex; gap: var(--sp-4); align-items: flex-start; }
.cols > .grow { flex: 1; min-width: 0; }
.cols > .rail { width: 310px; flex: none; }
@media (max-width: 900px) { .cols { flex-direction: column; } .cols > .rail { width: 100%; } }

/* ---- eyebrow label ---- */
.eyebrow {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px;
}
.big-v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }

/* ---- field (a labelled read-only or editable value) ---- */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field .fl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 5px;
}
.field .fh { font-size: 11px; color: var(--text-faint); margin-top: 5px; }
.field .ro {
  border-radius: var(--radius-ctl); padding: 8px 11px; font-size: 12.5px;
  background: var(--bg-side); border: 1px solid var(--border); color: var(--text-subtle);
}

/* ---- stat row that wraps on a phone ---- */
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.stats > .stat { min-width: 140px; }

/* ---- mobile menu button + veil (portal only; the admin is a desktop tool) ---- */
.menu-btn {
  position: fixed; top: 12px; left: 12px; z-index: 70;
  background: var(--surface); padding: 7px 9px;
}
.menu-btn svg { width: 16px; height: 16px; }
.side-veil { position: fixed; inset: 0; z-index: 55; background: var(--veil); }
@media (min-width: 861px) { .side-veil { display: none !important; } }
@media (max-width: 860px) { .main { padding-top: 56px; } }

/* ---- month calendar (admin Meetings, Pylon Meet) ---- */
.cal-head {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-faint);
}
.cal-head > div { padding: 0 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  min-height: 84px; padding: 5px 6px; text-align: left; vertical-align: top;
  border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  background: var(--surface); display: flex; flex-direction: column; gap: 3px;
  overflow: hidden;
}
.cal-cell.out { background: transparent; border-color: transparent; min-height: 0; }
.cal-cell:not(.out):hover { border-color: var(--text-faint); }
.cal-cell.today { border-color: var(--accent); }
.cal-cell.sel { background: var(--row-selected); border-color: var(--accent); }
.cal-n { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-subtle); }
.cal-cell.today .cal-n { color: var(--accent); font-weight: 700; }
.cal-ev {
  font-size: 10px; line-height: 1.3; padding: 2px 5px; border-radius: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid;
}
.cal-ev.go  { color: var(--accent);  border-color: color-mix(in srgb, var(--accent) 40%, transparent);  background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cal-ev.ok  { color: var(--ok);      border-color: color-mix(in srgb, var(--ok) 36%, transparent);      background: color-mix(in srgb, var(--ok) 9%, transparent); }
.cal-ev.no  { color: var(--neutral); border-color: color-mix(in srgb, var(--neutral) 34%, transparent); background: color-mix(in srgb, var(--neutral) 7%, transparent); }
.cal-ev.bad { color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 36%, transparent); background: color-mix(in srgb, var(--danger) 9%, transparent); }
.cal-more { font-size: 9.5px; color: var(--text-faint); }
@media (max-width: 720px) {
  .cal-cell { min-height: 62px; }
  .cal-ev { font-size: 9px; }
}


/* ============================================================================
   Pylon Meet slot picker. Direction A (calendar + ledger) at >= 880px,
   direction B (date rail + time grid) below it, per Taylor 2026-08-23.
   The old flat .slot / .slotgrid / .daycol rules are gone with the wall of
   buttons they drew.
   ========================================================================== */

.sp-two { display: grid; grid-template-columns: minmax(0, 1fr) 244px; min-height: 428px; }
.sp-cal { padding: 20px 22px; min-width: 0; }
.sp-rail { border-left: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; min-width: 0; }

.sp-calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sp-month { font-size: 15px; font-weight: 600; }
.sp-yr { color: var(--text-faint); }
.sp-nav { display: flex; gap: 4px; }
.sp-nav button {
  width: 30px; height: 30px; border-radius: var(--radius-ctl); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-subtle);
  transition: border-color .14s, color .14s;
}
.sp-nav button:hover:not([disabled]) { border-color: var(--text-faint); color: var(--text); }
.sp-nav button[disabled] { opacity: .35; cursor: not-allowed; }
.sp-nav svg { width: 14px; height: 14px; }

.sp-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 5px; }
.sp-dow div {
  text-align: center; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
}
.sp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sp-day {
  aspect-ratio: 1 / 0.86; border-radius: var(--radius-ctl); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.sp-dn { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--text); }
.sp-ct { font-family: var(--font-mono); font-size: 8.5px; color: var(--text-faint); }
.sp-blank { visibility: hidden; }
.sp-off { cursor: default; }
.sp-off .sp-dn { color: var(--text-faint); opacity: .5; }
.sp-free { cursor: pointer; transition: background .12s, box-shadow .12s; }
.sp-free:hover { background: var(--tint-cobalt-10); }
.sp-free.sp-sel { background: var(--accent); box-shadow: 0 4px 12px var(--tint-cobalt-14); }
.sp-free.sp-sel .sp-dn, .sp-free.sp-sel .sp-ct { color: var(--on-accent); }
.sp-today::after {
  content: ""; position: absolute; bottom: 5px; width: 3px; height: 3px;
  border-radius: 50%; background: var(--accent);
}
.sp-free.sp-sel.sp-today::after { background: var(--on-accent); }

.sp-railhead { margin-bottom: 12px; }
.sp-dayname { font-size: 14px; font-weight: 600; }
.sp-daysub { font-size: 11.5px; color: var(--text-faint); margin-top: 1px; }
.sp-scroll { overflow-y: auto; flex: 1; margin: 0 -20px; padding: 0 20px; }
.sp-group + .sp-group { margin-top: 14px; }
.sp-gl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-faint);
  padding-bottom: 6px; border-bottom: 1px solid var(--border-soft); margin-bottom: 2px;
}
/* The times read as a ledger column: mono, hairline-ruled, the selection
   marked by a rule in the margin rather than a filled pill. */
.sp-slot {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 10px 13px; border-bottom: 1px solid var(--border-soft);
  font-size: 13px; color: var(--text); position: relative;
  transition: background .12s, color .12s;
}
.sp-slot::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: transparent; border-radius: 2px; transition: background .12s;
}
.sp-slot:hover { background: var(--tint-cobalt-10); }
.sp-slot:hover::before { background: var(--accent); }
.sp-go { font-size: 11.5px; font-weight: 600; color: var(--accent); opacity: 0; transition: opacity .12s; }
.sp-slot:hover .sp-go { opacity: 1; }
.sp-slot.sp-on { background: var(--accent); color: var(--on-accent); }
.sp-slot.sp-on::before { background: var(--on-accent); }
.sp-slot.sp-on .sp-go { opacity: 1; color: var(--on-accent); }
.sp-empty { color: var(--text-faint); font-size: 13px; padding: 28px 0; text-align: center; }
.sp-hint { font-size: 13px; color: var(--text-faint); margin-top: 16px; }

/* ---- direction B: the rail ---- */
.sp-railview { min-width: 0; padding: 20px; }
.sp-q { font-size: 15px; font-weight: 600; margin: 0 0 11px; }
.sp-daterail {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.sp-daterail::-webkit-scrollbar { height: 5px; }
.sp-daterail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.sp-chip {
  flex: none; scroll-snap-align: start; width: 68px; padding: 11px 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-ctl); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: border-color .14s, background .14s, transform .1s;
}
.sp-wd { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.sp-dnum { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.sp-av { font-size: 9px; color: var(--text-faint); }
.sp-chip:hover { border-color: var(--text-faint); }
.sp-chip.sp-on { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.sp-chip.sp-on .sp-wd, .sp-chip.sp-on .sp-dnum, .sp-chip.sp-on .sp-av { color: var(--on-accent); }

.sp-tgroup { margin-top: 16px; }
.sp-tgroup .sp-gl { border-bottom: 0; padding-bottom: 0; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.sp-tgroup .sp-gl::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.sp-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sp-tbtn {
  padding: 13px 6px; border: 1px solid var(--border); border-radius: var(--radius-ctl);
  background: var(--surface); font-variant-numeric: tabular-nums; font-size: 13.5px;
  transition: border-color .14s, background .14s, color .14s;
}
.sp-tbtn:hover { border-color: var(--accent); color: var(--accent); }
.sp-tbtn.sp-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }

@media (max-width: 879px) {
  .sp-two { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sp-rail { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---- booking page furniture ---- */
.bk-wrap { min-height: 100vh; padding: 34px 20px 70px; background: var(--bg); }
.bk-inner { width: 100%; max-width: 1000px; margin: 0 auto; }
.bk-shell { display: grid; grid-template-columns: 262px minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.bk-docket { padding: 24px 22px; border-right: 1px solid var(--border); }
.bk-docket h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; text-wrap: balance; }
.bk-who { font-size: 13px; color: var(--text-subtle); margin: 0 0 18px; }
.bk-facts { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.bk-fact { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-subtle); }
.bk-fact svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--text-faint); }
.bk-fact b { color: var(--text); font-weight: 600; }
.bk-blurb { font-size: 12.5px; line-height: 1.6; color: var(--text-subtle); border-top: 1px solid var(--border-soft); padding-top: 15px; margin: 0; }
@media (max-width: 879px) {
  .bk-shell { grid-template-columns: minmax(0, 1fr); }
  .bk-docket { border-right: 0; border-bottom: 1px solid var(--border); }
  .bk-wrap { padding: 20px 14px 60px; }
}

.bk-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-steps .s { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-faint); }
.bk-steps .s .n {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-faint);
}
.bk-steps .s.on { color: var(--text); font-weight: 600; }
.bk-steps .s.on .n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bk-steps .s.done .n { background: var(--ok); border-color: var(--ok); color: var(--on-accent); }
.bk-steps .bar { width: 20px; height: 1px; background: var(--border); }

.bk-tz { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--text-subtle); }
.bk-tz .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); flex: none; }
.bk-tz b { color: var(--text); font-weight: 600; }
.bk-tz .z { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.bk-tz button { color: var(--accent); font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.bk-pinned {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; margin-bottom: 20px;
  background: var(--tint-cobalt-10); border: 1px solid var(--accent); border-radius: var(--radius-ctl);
}
.bk-pinned .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.bk-pinned .ic svg { width: 15px; height: 15px; }
.bk-pinned .t { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; display: block; }
.bk-pinned .s { font-size: 11.5px; color: var(--text-subtle); display: block; }

.bk-form { padding: 24px 26px; }
.bk-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-subtle); margin-bottom: 15px; }
.bk-back:hover { color: var(--text); }
.bk-back svg { width: 13px; height: 13px; }
.bk-fields { display: flex; flex-direction: column; gap: 14px; }
.bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .bk-two { grid-template-columns: 1fr; } }
.bk-lab { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.bk-lab .opt { font-weight: 400; color: var(--text-faint); }
.bk-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }

.bk-sticky {
  position: sticky; bottom: 12px; margin-top: 16px; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop); display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
}
.bk-sticky .c { flex: 1; min-width: 0; }
.bk-sticky .c .l { font-size: 11px; color: var(--text-faint); }
.bk-sticky .c .v { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

.bk-done { padding: 40px 28px; text-align: center; }
.bk-tick { width: 52px; height: 52px; border-radius: 50%; background: var(--ok); color: var(--on-accent); display: grid; place-items: center; margin: 0 auto 16px; }
.bk-tick svg { width: 26px; height: 26px; }
.bk-done h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.bk-lede { font-size: 13.5px; color: var(--text-subtle); margin: 0 auto 20px; max-width: 46ch; line-height: 1.6; }
.bk-receipt { text-align: left; max-width: 380px; margin: 0 auto 18px; border: 1px solid var(--border); border-radius: var(--radius-ctl); overflow: hidden; }
.bk-receipt .r { display: flex; justify-content: space-between; gap: 16px; padding: 11px 15px; font-size: 12.5px; border-bottom: 1px solid var(--border-soft); }
.bk-receipt .r:last-child { border-bottom: 0; }
.bk-receipt .r .k { color: var(--text-subtle); }
.bk-receipt .r .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }

/* ---- /book inside an iframe (the booking section of /schedule-consultation) ----
   The parent page already carries the brand, the heading and the page padding,
   so the framed copy drops all three and lets the parent own the chrome. */
.is-embed body { background: transparent; }
.is-embed .bk-wrap { padding: 0; min-height: 0; background: transparent; }
.is-embed .bk-inner { max-width: none; }
.is-embed .bk-inner > .brand,
.is-embed .bk-inner > .brand-lg { display: none; }
.is-embed .bk-inner > p.faint:last-child { display: none; }
