/* Pathir onboarding. Layout from the designer's mockups; colours and style inspired by Lifemed. */
:root {
  /* Inspired by Lifemed: near-white canvas, black type and buttons, one iridescent accent */
  --bg: #F5F5F3;
  --surface: #FFFFFF;
  --band: #F0EFF5;
  --ink: #111113;
  --muted: #7E7E86;
  --border: #E6E6EA;
  --primary: #111113;
  --primary-hover: #2A2A2E;
  --accent: #7C5CFF;          /* violet */
  --accent-dark: #6A47F5;
  --accent-light: #B9A7FF;
  --accent-soft: #EEE9FF;
  --pink: #E7A2F0;
  --sky: #8EC9F5;
  --iridescent: linear-gradient(120deg, #7C5CFF 0%, #B07CF7 35%, #E7A2F0 60%, #8EC9F5 100%);
  --iridescent-text: linear-gradient(100deg, #5B3DF0 0%, #9A4FE0 40%, #C855C8 70%, #3F8FDB 100%); /* deeper, readable on white */
  --ok: #3BAA6E;
  --ok-soft: #EEE9FF;
  --danger: #D03A3A;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17,17,19,.04), 0 8px 24px rgba(17,17,19,.05);

  /* One spacing system. Gutter = left/right margin on every screen. */
  --gutter: 20px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --max: 560px;

  --display: "Inter Tight", system-ui, -apple-system, sans-serif;
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif;

  /* Notch and home-bar safe areas (needs viewport-fit=cover) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 420px) { :root { --gutter: 24px; } }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

/* The app column: full-bleed background, content centred with equal gutters */
.app {
  min-height: 100dvh;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--safe-top) var(--gutter) calc(var(--s7) + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 64px;
  margin: 0 calc(-1 * var(--gutter));
  padding: var(--s3) var(--gutter);
  border-bottom: 1px solid var(--border);
}
/* Logo: three tall ovals + wide wordmark (rebuild of the brand logo; swap for the official SVG when available) */
.logo { display: inline-flex; align-items: center; gap: 10px; color: #1A1715; text-decoration: none; }
.logo-svg { height: 20px; width: auto; display: block; flex: none; }   /* the traced brand logo (static/pathir-logo.svg) */
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.exit { font-size: 15px; color: var(--muted); white-space: nowrap; }

/* ---------- Progress: three thin bars ---------- */
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: var(--s4) 0 0; }
.progress i { height: 3px; border-radius: 2px; background: var(--border); }
.progress i.on { background: var(--iridescent); }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 var(--s3); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.display {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 12vw, 56px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 var(--s4);
}
.display em { font-style: italic; color: var(--accent); }
.serif-title { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 var(--s6); }
.lead.tight { margin-bottom: var(--s5); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.error { color: var(--danger); margin: var(--s3) 0 0; }
.error.pad { padding: 0 var(--gutter); }
.notice { margin-top: var(--s5); padding: var(--s3) var(--s4); background: var(--accent-soft); font-size: 14px; }
code { font-size: 13px; }

.screens { flex: 1; padding-top: var(--s7); }
.screen > :last-child { margin-bottom: 0; }

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-icon { font-family: var(--display); font-size: 22px; line-height: 1; }

/* ---------- Forms and buttons ---------- */
.stack { display: flex; flex-direction: column; gap: var(--s3); }
.input-wrap {
  display: flex; align-items: center; gap: var(--s3);
  background: var(--surface); border: 1.5px solid var(--border); padding: 0 var(--s4); min-height: 60px;
}
.input-wrap:focus-within { border-color: var(--primary); }
.input-wrap input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 18px; color: var(--ink); outline: none; padding: var(--s4) 0; }
.input-wrap input::placeholder { color: #A7A69E; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 56px; padding: 0 var(--s5); border: 1.5px solid transparent; border-radius: 0;
  font-size: 18px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn-block { width: 100%; justify-content: space-between; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }
.btn .arrow { font-size: 22px; font-weight: 400; }

.center-line { text-align: center; color: var(--muted); margin: var(--s5) 0 0; }
.underline { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--ink); }


/* ---------- Loading ---------- */

.checklist { list-style: none; margin: var(--s5) 0 0; padding: 0; border-top: 1px solid var(--border); }
.checklist li {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) 0; border-bottom: 1px solid var(--border); font-size: 16px; color: #B5B4AC;
}
.checklist li::before {
  content: "✓"; width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ink); font-size: 14px; opacity: .35;
}
.checklist li.working { color: var(--ink); }
/* In progress: a spinning ring in place of the tick */
.checklist li.working::before {
  content: ""; opacity: 1; background: none;
  border: 2.5px solid var(--accent-soft); border-top-color: var(--accent);
  width: 28px; height: 28px; margin: 0; animation: spin .8s linear infinite;
}
/* Done: the tick pops in */
.checklist li.done { color: var(--ink); }
.checklist li.done::before { opacity: 1; background: var(--accent); color: #fff; animation: pop .35s ease-out; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Waiting bar + note */
.load-bar { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: var(--s2); }
.load-bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--iridescent); background-size: 200% 100%; animation: sheen 1.6s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }
.load-note { font-size: 14px; color: var(--muted); margin: var(--s2) 0 0; }

/* ---------- Editable facts (ready screen) ---------- */
.fact-body { min-width: 0; }
.fact-title { font-weight: 600; margin: 0 0 var(--s2); }
.fact-value { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.unknown { color: var(--muted); font-style: italic; }
.edit-link { align-self: start; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--muted); padding: 0 0 1px; line-height: 1.3; }

.edit-form { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.edit-form textarea {
  outline: none;
  width: 100%; font: inherit; font-size: 16px; padding: var(--s3); border: 1.5px solid var(--primary); background: #fff; color: var(--ink); resize: vertical; min-height: 72px;
}
.edit-form .edit-actions { display: flex; gap: var(--s2); }
.edit-form .btn { min-height: 40px; font-size: 15px; padding: 0 var(--s4); }
.edit-hint { font-size: 13px; color: var(--muted); }

.eyebrow
/* ---------- Poppy mark ---------- */
.poppy-mark { width: 100%; height: 100%; overflow: hidden; display: block; }
/* Each part turns/scales around its OWN centre, so nothing drifts out of the frame. */
.poppy-mark .pm-body, .poppy-mark .pm-ring, .poppy-mark .pm-glow { transform-box: fill-box; transform-origin: center; }
.poppy-mark .pm-glow { opacity: .45; }
.poppy-mark .pm-ring { animation: spin 14s linear infinite; }                 /* idle: colours drift slowly */
.orb.listening .pm-glow { animation: glow 2.6s ease-in-out infinite; }
.orb.speaking .pm-ring { animation-duration: 2.2s; }                          /* speaking: colours flow */
.orb.speaking .pm-glow { animation: glow 0.9s ease-in-out infinite; }
.orb.speaking .pm-body { animation: pulse 0.9s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .poppy-mark * { animation: none !important; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Call ---------- */
.call {
  /* The call fills the screen: header, then a scrolling transcript, then a dock pinned to the bottom. */
  position: fixed; inset: 0; z-index: 10; background: var(--bg);
  display: flex; flex-direction: column;
  padding-top: var(--safe-top);
  max-width: var(--max); margin: 0 auto;
}
.call-head {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--gutter); min-height: 72px;
}
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.call-title { text-align: center; font-size: 17px; font-weight: 600; }
.done-link { justify-self: end; font-size: 16px; font-weight: 600; color: var(--accent-dark); }
.coverage-bar { height: 2px; background: var(--border); }
.coverage-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }

.orb-area { display: flex; flex-direction: column; align-items: center; padding: var(--s5) var(--gutter) var(--s4); flex: none; }
.orb { width: 132px; height: 132px; transition: width .2s, height .2s; }
.orb-status { font-size: 22px; margin: var(--s4) 0 0; }
/* Typing: shrink Poppy so the transcript keeps its room when the keyboard is open. */
.call.typing .orb-area { flex-direction: row; justify-content: center; gap: var(--s3); padding: var(--s3) var(--gutter); }
.call.typing .orb { width: 48px; height: 48px; }
.call.typing .orb-status { font-size: 20px; margin: 0; }

.transcript {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s2) var(--gutter) var(--s5);
}
.bubble { max-width: 88%; padding: var(--s4) var(--s5); font-size: 17px; line-height: 1.5; }
.bubble.poppy { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); }
.bubble.owner { align-self: flex-end; background: var(--primary); color: #fff; }

.call-dock {
  border-top: 1px solid var(--border); background: var(--bg);
  padding: var(--s4) var(--gutter) calc(var(--s4) + var(--safe-bottom));
}
.chat-form { display: flex; align-items: center; gap: var(--s2); }
.chat-form .icon-btn { flex: none; }
.chat-form .send { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-form .icon-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 0 var(--s4); min-height: 48px; border-radius: 24px !important; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); }
.chat-form input:focus { outline: none; border-color: var(--primary); }
/* ---------- Ready ---------- */

.meet-card {
  margin-top: var(--s5);
  padding: var(--s5);
  display: grid; grid-template-columns: auto 1fr auto; column-gap: var(--s4); align-items: center;
}
.meet-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-family: var(--display); font-size: 24px; }
.play-btn { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); border: 0; display: grid; place-items: center; cursor: pointer; }
.play-btn .icon { width: 20px; height: 20px; margin-left: 3px; }
.play-btn.playing { box-shadow: 0 0 0 6px rgba(255,255,255,.2); }
.meet-quote { margin: 0; font-size: 15px; line-height: 1.45; }

.rows { border: 1px solid var(--border); background: var(--surface); }
.fact-row { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s4); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); }
.fact-row:last-child { border-bottom: 0; }
.fact-row .fact-title { font-weight: 400; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.fact-row .fact-value { font-size: 16px; font-weight: 500; }

.tomorrow-card { background: var(--band); border: 1px solid var(--border); margin-top: var(--s4); padding: var(--s4) var(--s5); }
.tomorrow-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.tomorrow-card li { margin-bottom: var(--s1); }

.foot-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s6); }
.foot-buttons .btn { padding: 0 var(--s4); font-size: 17px; }
.foot-buttons .btn-primary { justify-content: space-between; }
@media (max-width: 339px) { .foot-buttons { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--s5) + var(--safe-bottom)); transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter));
  background: var(--ink); color: #fff; padding: var(--s4) var(--s5); font-size: 15px; z-index: 20;
}

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .screens { padding-top: var(--s7); }
  .call { border-inline: 1px solid var(--border); }
}

/* ================= Lifemed-inspired style layer ================= */

/* Faint dot grid on the canvas */
body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(17,17,19,.07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.topbar { background: rgba(245,245,243,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Type: large, tight grotesk; the accent phrase gets the iridescent gradient */
.display { font-weight: 500; letter-spacing: -0.045em; line-height: 1.0; }
.display em {
  font-style: normal;
  background: var(--iridescent-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.serif-title { font-weight: 500; letter-spacing: -0.03em; }
.eyebrow { letter-spacing: .12em; font-weight: 500; }
.lead { color: var(--muted); }
.t-icon { font-family: var(--sans); font-weight: 500; }

/* Rounded white cards with soft shadow */
.input-wrap, .rows, .bubble.poppy, .tomorrow-card { border-radius: var(--radius); }
.rows, .bubble.poppy { border-color: var(--border); box-shadow: var(--shadow); }
.input-wrap { border-width: 1px; box-shadow: var(--shadow); }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.edit-form textarea { border-radius: var(--radius-sm); border-color: var(--accent); }

/* Buttons: black, gently rounded; outline is white */
.btn { border-radius: var(--radius-sm); font-weight: 500; }
.btn-accent { background: var(--primary); }
.btn-accent:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); }
.underline { border-bottom-width: 1px; font-weight: 500; color: var(--muted); border-color: var(--muted); }

/* Checklists */

/* Glass cards over an iridescent glow (replaces the dark-green blocks) */
.meet-card {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--ink); border-radius: 20px; border: 1px solid rgba(255,255,255,.7);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(124,92,255,.42), transparent 55%),
    radial-gradient(90% 80% at 100% 10%, rgba(231,162,240,.5), transparent 60%),
    radial-gradient(90% 90% at 70% 100%, rgba(142,201,245,.5), transparent 60%),
    #F8F7FC;
  box-shadow: var(--shadow);
}
.meet-card::before {   /* soft white sheen; no backdrop blur, which Chrome sometimes draws over the text */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.22);
}
.meet-quote { color: #3A3A42; }
.section-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: var(--s6) 0 var(--s3); }
.tomorrow-head { font-weight: 600; margin: 0 0 var(--s2); }
.meet-avatar { background: var(--iridescent); color: #fff; font-family: var(--sans); font-weight: 500; }
.play-btn { background: var(--primary); color: #fff; }
.play-btn.playing { box-shadow: 0 0 0 6px rgba(124,92,255,.2); }
.tomorrow-card { background: rgba(255,255,255,.7); backdrop-filter: blur(12px); }


/* Call */
.coverage-bar { border-radius: 2px; overflow: hidden; }
.coverage-bar span { background: var(--iridescent); }
.orb-status { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; }
.bubble.owner { background: var(--primary); border-radius: var(--radius) var(--radius) 4px var(--radius); }
.bubble.poppy { border-radius: var(--radius) var(--radius) var(--radius) 4px; }
.chat-form input { border-width: 1px; }
.chat-form input:focus { border-color: var(--accent); }
.call-dock { background: rgba(245,245,243,.92); backdrop-filter: blur(12px); }

.toast { border-radius: var(--radius-sm); }

/* Poppy: an iridescent glass ring */

/* ---------- Live ---------- */
.number-card {
  display: block; text-align: center; text-decoration: none; color: var(--ink);
  font-size: clamp(28px, 9vw, 40px); font-weight: 500; letter-spacing: -0.02em;
  padding: var(--s5); border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.fwd-code { font-size: 22px; font-weight: 600; letter-spacing: 0.02em; margin: var(--s3) 0; font-variant-numeric: tabular-nums; }

/* ---------- Forward missed calls ---------- */
.fwd-flow { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s6); padding: var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.fwd-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; flex: 1; }
.fwd-node b { font-weight: 600; font-size: 15px; }
.fwd-node > span:last-child { color: var(--muted); font-size: 13px; }
.fwd-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--band); margin-bottom: var(--s2); }
.fwd-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fwd-node.accent .fwd-ico { background: var(--accent); }
.fwd-node.accent .fwd-ico svg { stroke: #fff; }
.fwd-node.accent b { color: var(--accent-dark); }
.fwd-arrow { flex: none; width: 28px; height: 2px; background: var(--border); position: relative; }
.fwd-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--border); border-right: 0; }
.fwd-split { flex: 1.6; display: flex; flex-direction: column; gap: var(--s3); }
.fwd-branch { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3); border-radius: calc(var(--radius) - 4px); background: var(--band); }
.fwd-branch:last-child { background: var(--accent-soft); }
.fwd-when { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.fwd-node.small .fwd-ico { width: 34px; height: 34px; margin-bottom: 4px; }
.fwd-node.small .fwd-ico svg { width: 18px; height: 18px; }
.fwd-steps { margin: 0 0 var(--s4); padding-left: 22px; line-height: 1.6; }
.fwd-steps li { margin-bottom: var(--s3); }
.fwd-code-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s2); }
.fwd-code-row .fwd-code { margin: 0; padding: var(--s2) var(--s4); background: var(--band); border-radius: 10px; user-select: all; }
.fwd-tip { background: var(--accent-soft); color: var(--accent-dark); border-radius: var(--radius-sm, 10px); padding: var(--s3) var(--s4); margin: 0 0 var(--s4); }
.fwd-status { margin: var(--s4) 0; }
@media (max-width: 640px) {
  .fwd-flow { flex-direction: column; align-items: stretch; }
  .fwd-arrow { width: 2px; height: 22px; align-self: center; }
  .fwd-arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top-color: var(--border); border-bottom: 0; }
}
.enquiry { border-bottom: 1px solid var(--border); }
.enquiry:last-child { border-bottom: 0; }
.enq-row { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); cursor: pointer; }
.enq-row:hover { background: var(--band); }
.enq-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.enq-icon { width: 36px; height: 36px; position: relative; flex: none; }
.enq-disc { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); }
.enq-disc .icon { width: 18px; height: 18px; }
.enq-icon.multi { width: 40px; }
.enq-icon.multi .enq-disc { position: absolute; width: 24px; height: 24px; box-shadow: 0 0 0 2px var(--surface); }
.enq-icon.multi .enq-disc .icon { width: 13px; height: 13px; }
.enq-icon.multi .back { top: 0; left: 0; }
.enq-icon.multi .front { right: 0; bottom: 0; }
.enq-disc.mini { width: 22px; height: 22px; flex: none; }
.enq-disc.mini .icon { width: 12px; height: 12px; }
.enq-counts { margin: 0 0 var(--s3); font-size: 13px; color: var(--muted); }
.enq-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s4); }
.enq-timeline li { padding-left: var(--s3); border-left: 2px solid var(--accent-soft); }
.tl-head { display: flex; align-items: center; gap: var(--s2); font-size: 13px; margin-bottom: 4px; flex-wrap: wrap; }
.tl-head b { font-weight: 600; }
.tl-headline { color: var(--muted); }
.tl-transcript { margin-top: 6px; font-size: 13px; }
.tl-photos { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tl-photos a { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--band); }
.tl-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-transcript summary { cursor: pointer; color: var(--muted); }
.tl-transcript .enquiry-transcript { margin-top: var(--s2); padding-top: var(--s2); }
.enq-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.enq-top { display: flex; align-items: center; gap: var(--s2, 8px); min-width: 0; }
.enq-who { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enq-headline { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enq-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.enq-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.enquiry.open .enq-chevron { transform: rotate(180deg); }
.enquiry.done .enq-who, .enquiry.done .enq-headline { opacity: .55; }
.enq-body { padding: 0 var(--s4) var(--s4) calc(var(--s4) + 36px + var(--s3)); }
.enq-summary { margin: 0; font-size: 14px; line-height: 1.5; }
.enq-actions { display: flex; gap: var(--s3); margin-top: var(--s4); flex-wrap: wrap; }
.enq-actions .btn { min-height: 40px; font-size: 14px; padding: 0 var(--s4); }
@media (max-width: 480px) { .enq-body { padding-left: var(--s4); } }
/* Older list on the onboarding live screen */
#enquiry-list .enquiry { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s3); padding: var(--s4) var(--s5); }
.enquiry-meta { font-size: 13px; color: var(--muted); }
.enquiry-summary { grid-column: 1 / -1; margin: 0; }
#enquiry-list .link-btn { justify-self: end; font-size: 14px; color: var(--muted); }
.tag { white-space: nowrap; flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); }
.tag.urgent { background: #FDE8E8; color: var(--danger); }
.empty { padding: var(--s5); color: var(--muted); margin: 0; }

/* ---------- Owner dashboard ---------- */
.checkin-card { grid-template-columns: auto 1fr auto; margin-top: 0; }
.small-orb { width: 52px; height: 52px; }
.checkin-card .tomorrow-head { margin: 0 0 2px; }
.checkin-card .muted { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s4); }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s4); display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.stat-name { font-size: 13px; color: var(--muted); }
.summary-card { margin-top: var(--s4); }
.summary-text { margin: 0; line-height: 1.55; }
.enquiry-transcript { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px dashed var(--border); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.enquiry-transcript b { font-weight: 600; }
.countdown { justify-self: end; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; font-size: 15px; }
.countdown.low { color: var(--accent); }
.call-explain { margin: var(--s3) auto 0; padding: 0 var(--gutter); max-width: 34em; text-align: center; font-size: 15px; color: var(--ink); opacity: .72; line-height: 1.45; min-height: 2.9em; transition: opacity .3s; }
.finish-btn { margin-top: var(--s3); }
.login-card { margin-top: var(--s4); }
.login-card .stack { margin-top: var(--s3); }

/* Tap-to-talk: the whole orb is the button */
.orb-area { position: relative; }
.tap-to-talk { position: absolute; top: var(--s5); left: 50%; transform: translateX(-50%); width: 132px; height: 132px;
  border-radius: 50%; border: 0; background: transparent; cursor: pointer; z-index: 2; }
.tap-to-talk:not([hidden]) + .orb { animation: invite 1.8s ease-in-out infinite; }
@keyframes invite { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* Voice switch on the ready screen */
.pill { font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Welcome */
.welcome { padding-top: var(--s6); }
.welcome .stack { gap: var(--s3); }
.welcome .btn { justify-content: center; text-decoration: none; }  /* both buttons centred, arrow sits after the text */
.center-line.small { font-size: 14px; }

/* ================= Desktop layout =================
   Phones keep the single column above. From 960px the page widens, type scales up,
   single-step screens sit in a centred reading column, and the ready / live / dashboard
   screens split into two columns. */
.cols { display: block; }
@media (min-width: 960px) {
  :root { --gutter: 40px; --max: 1120px; }
  .topbar { width: 100vw; margin-left: calc(50% - 50vw); padding-inline: max(var(--gutter), calc(50vw - var(--max) / 2 + var(--gutter))); min-height: 72px; }
  .screens { padding-top: 64px; }
  .display { font-size: 64px; }
  .lead { font-size: 20px; }

  /* Single-step screens: centred reading column */
  .screen:not(.has-cols), #login-main { max-width: 640px; margin-inline: auto; width: 100%; }
  .progress { max-width: 640px; margin-inline: auto; width: 100%; }
  #screen-done #result { max-width: none; }
  #screen-done:has(#result:not([hidden])) { max-width: none; }

  /* Two columns */
  .cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .col-side .section-title:first-child { margin-top: var(--s2); }
  .col-side { position: sticky; top: var(--s5); }
  .meet-card { padding: var(--s6); }
  .stats { gap: var(--s4); }
  .stat-tile { padding: var(--s5); }
  .stat-value { font-size: 40px; }

  /* Poppy call: a wide chat panel, not a thin strip */
  .call { max-width: 820px; border-inline: 1px solid var(--border); }
  .bubble { max-width: 72%; }
  .orb-area .orb { width: 150px; height: 150px; }
  .call.typing .orb-area .orb { width: 48px; height: 48px; }
  .tap-to-talk { width: 150px; height: 150px; }

  .welcome { padding-top: 96px; }
  .welcome .display { font-size: 72px; }
  .welcome .stack { flex-direction: row; max-width: 520px; }
  .welcome .stack .btn { flex: 1; }
}
@media (min-width: 960px) and (max-height: 760px) {
  .col-side { position: static; }
}

a.btn { text-decoration: none; }

/* Calendar card */
.cal-card { margin-top: var(--s4); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.cal-head .tomorrow-head { margin: 0 0 2px; }
.cal-head .muted { margin: 0; }
.cal-connect { min-height: 44px; font-size: 15px; }
.cal-form { margin-top: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.day-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.cal-row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.cal-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.cal-row input, .cal-row select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.cal-row .btn { min-height: 44px; font-size: 15px; }
.cal-card .cal-upcoming { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.cal-upcoming b { font-weight: 600; }
.cal-section .cal-card { margin-top: 0; margin-bottom: var(--s4); }
.bk { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--border); }
.bk:first-child { border-top: 0; padding-top: 0; }
.bk-date { width: 44px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; border-radius: 10px; background: var(--accent-soft); }
.bk-date b { font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.bk-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bk-top { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-time { font-variant-numeric: tabular-nums; color: var(--accent-dark); margin-right: 4px; }
.bk-details { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-call { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--border); }
.bk-call .icon { width: 16px; height: 16px; }
.cal-card .cal-upcoming li { margin: 0; }

/* Ready screen: on phones the two columns flatten so Test call / Go live stay at the very bottom;
   on desktop they sit in the left column, above the fold. */
@media (max-width: 959px) {
  .cols { display: flex; flex-direction: column; }
  .col-main, .col-side { display: contents; }
  .cols .foot-buttons { order: 99; }
}
@media (min-width: 960px) {
  .col-main .foot-buttons { margin-top: var(--s5); }
}

/* Reviewing the first 100 conversations */
.conv-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.review-progress { display: flex; align-items: center; gap: var(--s2); font-size: 13px; color: var(--muted); }
.review-bar { width: 80px; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.review-bar span { display: block; height: 100%; width: 0; background: var(--iridescent, var(--accent)); }
.tag.review { background: var(--band); color: var(--muted); }

/* Bookings: one-line summary, opens to the list; tap a booking for its full details */
.bk-toggle { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  margin-top: var(--s4); padding: var(--s3) 0 0; border-top: 1px solid var(--border); font-size: 14px; cursor: pointer; }
.bk-toggle span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-toggle b { font-weight: 600; }
.bk-toggle:disabled { cursor: default; }
.bk-toggle:disabled .enq-chevron { display: none; }
.bk-toggle.open .enq-chevron { transform: rotate(180deg); }
.bk-toggle:focus-visible, .bk-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-card .cal-upcoming { margin-top: var(--s3); }
.bk-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s3); min-width: 0; cursor: pointer; }
.bk.open .bk-details { white-space: normal; overflow: visible; }
/* Save stays grey until the hours are changed */
.cal-row .btn-primary:disabled { background: var(--border); color: var(--muted); opacity: 1; }
/* Show/hide password */
.has-eye { position: relative; }
.has-eye input { padding-right: 52px; }
.eye-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; }
.eye-btn:hover { color: var(--ink); }
.eye-btn:focus-visible { outline: 2px solid var(--accent); }
.eye-btn .icon { width: 20px; height: 20px; }
/* Owner dashboard: one column that reads top to bottom */
.dash-single { width: 100%; padding-bottom: var(--s7); }   /* same width as the header, like the admin page */
.dash-single .stats, #page-today .stats { margin-top: var(--s5); }
.dash-single .checkin-card, #page-today .checkin-card { margin-top: var(--s4); }
.dash-single .cal-section .section-title, .dash-single .conv-head .section-title { margin-top: var(--s6); }
/* Review with Poppy: a side panel on desktop (the conversation stays visible), full screen on phones */
.review-btn { min-height: 38px; font-size: 14px; padding: 0 var(--s4); margin-top: var(--s2); }
.tl-learned { margin: 6px 0 0; font-size: 13px; color: var(--accent-dark); background: var(--accent-soft); padding: 6px 10px; border-radius: 10px; }
@media (min-width: 960px) {
  .call.side { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: 420px; max-width: 100vw; z-index: 50; margin: 0;
    background: var(--bg); border-left: 1px solid var(--border); box-shadow: -12px 0 40px rgba(17,17,19,.08); }
  body.reviewing .dash-main { padding-right: calc(420px + 40px); max-width: none; }
}

/* ---------- App shell: sidebar (desktop) / bottom tabs (phone) ---------- */
.shell { min-height: 100dvh; }
.dash-main { width: 100%; box-sizing: border-box; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: var(--ink);
  text-decoration: none; font: inherit; font-size: 16px; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; }
.nav-link .icon { width: 22px; height: 22px; color: var(--ink); }
.nav-link:hover { background: var(--band); }
.nav-link.active { background: var(--accent-soft); font-weight: 600; }
.nav-link.active .icon { color: var(--accent-dark); }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-spacer { flex: 1; }
.page .display { margin-top: 0; }
.page .section-title:first-of-type { margin-top: var(--s5); }

@media (min-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 232px; padding: 28px 16px 24px; display: flex; flex-direction: column; gap: 4px;
    background: var(--surface); z-index: 20; }
  .sidebar .logo { padding: 0 14px 28px; }
  .dash-main { margin-left: 232px; padding: 56px 56px 72px; width: auto; }
  .dash-main > main, .dash-main > .topbar { max-width: 1120px; margin-inline: auto; }   /* equal space either side of the content */
  .mobile-only { display: none !important; }
}
@media (max-width: 959px) {
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
    background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + var(--safe-bottom)); }
  .sidebar .logo, .sidebar .nav-spacer, .sidebar #logout { display: none; }
  .sidebar .nav-link { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 10px; border-radius: 10px; }
  .dash-main { padding: 0 var(--gutter) calc(96px + var(--safe-bottom)); }
  .dash-main .topbar { margin-bottom: var(--s5); }
}

/* Today: links through to the other pages */
.quick-links { margin-top: var(--s5); border-radius: var(--radius); overflow: hidden; }
.quick-link { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5);
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); }
.quick-link:last-child { border-bottom: 0; }
.quick-link:hover { background: var(--band); }
.quick-link .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.quick-link b { font-weight: 600; }

/* Conversations: date range */
.range-pills .pill { font-size: 14px; }

/* Settings */
.settings-list { border-radius: var(--radius); overflow: hidden; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
.setting-label { margin: 0 0 4px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: var(--s2); }
.setting-value { font-size: 16px; }
.setting-value p { margin: 6px 0 0; }
.small-btn { min-height: 38px; font-size: 14px; padding: 0 var(--s4); flex: none; }
.status-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--band); color: var(--muted); }
.status-badge.on { background: var(--accent-soft); color: var(--accent-dark); }
/* Space between the date range pills and the conversation list */
#page-conversations .conv-head { margin-bottom: var(--s4); align-items: center; }
#page-conversations .conv-head .section-title { margin: 0; }
/* Today's results: five tiles in a row on desktop, wrapping on phones */
#page-today .stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
/* Settings: delete account */
.danger-outline { color: var(--danger); }
.danger-outline:hover { border-color: var(--danger); }
.danger-btn { background: var(--danger); color: #fff; }
.delete-account .setting-value { max-width: 560px; }
.delete-confirm, .cliniko-form { margin-top: var(--s3); display: flex; flex-direction: column; gap: var(--s3); }
.delete-confirm p, .cliniko-form p { margin: 0; font-size: 14px; }
/* Live screen: space between the forwarding card and the dashboard button */
#open-dashboard { margin-top: var(--s5); }
/* Check-in card: how much the receptionist handles on her own */
.checkin-accuracy { margin: 8px 0 0; display: flex; align-items: center; gap: var(--s2); font-size: 13px; color: var(--accent-dark); flex-wrap: wrap; }
.checkin-accuracy .review-bar { width: 96px; }
#page-bookings .bk-range { margin-bottom: var(--s4); }

/* ---------- Poppy call on desktop: two panels instead of a phone-width column ----------
   Left: Poppy (orb, status, what's happening). Right: the conversation and the message box.
   Applies to the onboarding call and the daily check-in; the review side panel keeps its own layout. */
@media (min-width: 960px) {
  .call:not(.side) {
    max-width: none; margin: 0; display: grid;
    grid-template-columns: minmax(340px, 34%) 1fr;
    grid-template-rows: auto auto auto 1fr auto auto;
    grid-template-areas: "head head" "bar bar" "explain convo" "orb convo" "orb err" "orb dock";
  }
  .call:not(.side) .call-head { grid-area: head; padding: var(--s3) 40px; }
  .call:not(.side) .coverage-bar { grid-area: bar; }
  .call:not(.side) .call-explain { grid-area: explain; margin: 0; padding: 40px 48px 0; max-width: none; text-align: center;
    background: var(--surface); border-right: 1px solid var(--border); }
  .call:not(.side) .orb-area, .call.typing:not(.side) .orb-area {
    grid-area: orb; flex-direction: column; justify-content: center; gap: 0; padding: 40px;
    background: var(--surface); border-right: 1px solid var(--border);
  }
  .call:not(.side) .orb-area .orb, .call.typing:not(.side) .orb-area .orb { width: 200px; height: 200px; }
  .call:not(.side) .orb-status, .call.typing:not(.side) .orb-status { font-size: 24px; margin: var(--s5) 0 0; }
  .call:not(.side) .transcript { grid-area: convo; padding: 40px max(48px, calc((100% - 760px) / 2)) 24px; }
  .call:not(.side) .bubble { max-width: 78%; }
  .call:not(.side) > .error { grid-area: err; margin: 0 max(48px, calc((100% - 760px) / 2)) var(--s3); }
  .call:not(.side) .call-dock { grid-area: dock; padding: var(--s4) max(48px, calc((100% - 760px) / 2)) var(--s5); }
}

/* Reviews page */
.rv-form .rv-block { display: block; }
.rv-field { display: flex; flex-direction: column; gap: 6px; }
.rv-field .setting-label { margin: 0; }
.rv-grid { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .rv-grid { grid-template-columns: 1fr 1fr; } }
.rv-form select, .rv-form textarea { width: 100%; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.rv-form .input-wrap { display: flex; align-items: center; }
.textarea-wrap { padding: var(--s3) var(--s4); }
.rv-form textarea { resize: vertical; line-height: 1.45; min-height: 180px; }
.rv-search, .rv-test { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.rv-search .input-wrap { flex: 1; min-width: 200px; }
.rv-test .input-wrap { width: 180px; }
.rv-actions { flex-wrap: wrap; }
.rv-results { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.rv-result { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.rv-result:hover { border-color: var(--accent); }
.rv-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); }
.rv-row:last-child { border-bottom: 0; }
.rv-row p { margin: 0; }
.rv-row .row-title { font-weight: 500; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--border); cursor: pointer; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
#page-reviews .stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.cal-connects { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: flex-end; }
.rv-stars { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.rv-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-date, .rv-row .status-badge { white-space: nowrap; flex: none; }
.rv-preview-row { display: flex; gap: var(--s5); align-items: flex-start; margin-top: var(--s3); flex-wrap: wrap; }
.rv-bubble { flex: 1 1 320px; max-width: 520px; background: var(--band); border-radius: 18px 18px 18px 6px; padding: var(--s4); font-size: 15px; line-height: 1.45; }
.rv-link { color: var(--accent-dark); text-decoration: underline; }
.rv-preview-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.rv-place-line { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
/* Review requests: status header + setup steps */
.rv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5); border-bottom: 1px solid var(--border); }
.rv-head p { margin: 0; }
.rv-headline { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px !important; }
.rv-steps { display: grid; gap: var(--s4); padding: var(--s5); align-items: start; }
@media (min-width: 900px) { .rv-steps { grid-template-columns: repeat(3, 1fr); } .rv-step.wide { grid-column: 1 / -1; } }
.rv-step { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.rv-step p { margin: 0; }
.rv-step .btn { align-self: flex-start; margin-top: var(--s2); }
.rv-step-title { display: flex; align-items: center; gap: var(--s2); font-weight: 600; margin-bottom: var(--s1) !important; }
.rv-num { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--band); color: var(--muted); flex: none; }
.rv-step.done .rv-num { background: var(--accent); color: #fff; font-size: 0; }
.rv-step.done .rv-num::before { content: "✓"; font-size: 13px; }
.rv-step.done { border-color: var(--accent-soft); }
.rv-bubble-sm { flex: none; max-width: none; font-size: 13px; padding: var(--s3); border-radius: 14px 14px 14px 4px; }
.rv-step-actions { display: flex; gap: var(--s4); margin-top: var(--s1); }
.rv-step .rv-search { flex-direction: row; }
#rv-custom { border-top: 1px solid var(--border); }
#rv-custom .setting-row:last-child { border-bottom: 0; }
.switch input:disabled + span { opacity: .45; cursor: not-allowed; }
.rv-cal-options { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s2); }
.rv-cal-options .btn { margin-top: 0 !important; }
.rv-cliniko { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.rv-cliniko .input-wrap input { width: 100%; }
/* Connect-a-calendar popup */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(17,17,19,.35); display: grid; place-items: center; padding: var(--gutter); }
.modal { position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: 20px; box-shadow: 0 24px 60px rgba(17,17,19,.2); padding: var(--s6) var(--s5) var(--s5); }
.modal p { margin: 0; }
.modal-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px !important; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--band); cursor: pointer; display: grid; place-items: center; }
.modal-close svg { width: 14px; height: 14px; }
.connect-options { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s4); }
.connect-option { display: flex; align-items: center; gap: var(--s3); text-align: left; width: 100%; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font: inherit; color: var(--ink); }
.connect-option:hover:not(:disabled) { border-color: var(--accent); }
.connect-option:disabled { cursor: default; opacity: .6; }
.connect-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; flex: none; }
.connect-icon svg { width: 18px; height: 18px; }
.connect-text { flex: 1; display: flex; flex-direction: column; }
.connect-chevron { width: 16px; height: 16px; color: var(--muted); flex: none; }
#connect-cliniko { display: flex; flex-direction: column; gap: var(--s3); }
#connect-cliniko[hidden] { display: none; }
#connect-cliniko .link-btn { align-self: flex-start; }
.connect-done { display: flex; flex-direction: column; gap: var(--s3); }
.connect-done[hidden] { display: none; }
.connect-done .connect-icon.done { background: var(--accent); color: #fff; }
/* Trial + plans */
.trial-pill { display: block; margin: -16px 14px 20px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 500; text-decoration: none; text-align: center; }
.trial-pill.urgent { background: #FDECEC; color: var(--danger); }
@media (max-width: 899px) { .trial-pill { display: none !important; } }
.bill-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; background: var(--accent-soft); color: var(--accent-dark); border-radius: var(--radius); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); font-weight: 500; }
.bill-banner.urgent { background: #FDECEC; color: var(--danger); }
.trial-report { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); margin: 0 0 var(--s5); }
.trial-report .tr-title { margin: 0 0 var(--s3); font-weight: 600; }
.tr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.tr-tile { background: var(--band); border-radius: calc(var(--radius) - 4px); padding: var(--s3) var(--s4); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tr-value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.tr-tile:last-child .tr-value { color: var(--accent-dark); }
.tr-label { color: var(--muted); font-size: 13px; }
.tr-note { margin: var(--s3) 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tr-note .link-btn { font-size: 13px; color: var(--accent-dark); text-decoration: underline; }
.tr-edit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink); }
.tr-edit input { width: 96px; font: inherit; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; }
@media (max-width: 520px) { .tr-value { font-size: 20px; } .tr-tile { padding: var(--s3); } }
.plans-row { display: block; }
.plans-wrap { display: flex; flex-direction: column; gap: var(--s4); }
.interval-toggle { display: flex; gap: var(--s2); }
.interval-toggle .save { color: var(--accent-dark); font-weight: 600; margin-left: 4px; }
.interval-toggle .pill.active .save { color: #fff; }
.plan-cards { display: grid; gap: var(--s3); }
@media (min-width: 720px) { .plan-cards { grid-template-columns: repeat(3, 1fr); } }
.plan-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--s4); display: flex; flex-direction: column; gap: 6px; }
.plan-card p { margin: 0; }
.plan-card.recommended { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-card .btn { margin-top: auto; align-self: flex-start; }
.plan-flag { position: absolute; top: -10px; left: 14px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.plan-name { font-weight: 600; }
.plan-who { color: var(--accent); font-size: 13px; margin-top: 2px; }
.plan-price { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
/* Leaving: reason + stay offer */
.leave-step { margin-top: var(--s3); display: flex; flex-direction: column; gap: var(--s3); }
.leave-step[hidden] { display: none; }
.leave-step p { margin: 0; }
.leave-title { font-weight: 600; color: var(--ink); }
.leave-reasons { display: grid; gap: 6px; }
@media (min-width: 720px) { .leave-reasons { grid-template-columns: 1fr 1fr; } }
.leave-reason { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 15px; color: var(--ink); }
.leave-reason:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.leave-reason input { accent-color: var(--accent); }
.stay-offer { background: var(--accent-soft); border-radius: var(--radius-sm); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; color: var(--accent-dark); }
.stay-offer[hidden] { display: none; }
#leave-continue:disabled { opacity: .4; cursor: default; }
.leave-loss { background: var(--band); border-radius: var(--radius-sm); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.leave-loss:empty { display: none; }
.leave-hours { font-size: 17px; color: var(--ink); }
.leave-hours b { color: var(--accent-dark); }
.leave-warn { font-weight: 600; color: var(--danger); }
.leave-loss ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.fwd-code-row .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
