/* VoxDesk — "Paper & Ink". Tokens documented in DESIGN.md. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/static/fonts/geist.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --sheet: #fffdf8;
  --sheet-2: #eee8db;
  --rule: #ddd5c5;
  --rule-strong: #c9bfac;
  --ink: #1a2230;
  --ink-2: #485263;
  --ink-3: #6a655a;
  --live: #0e6b5c;
  --live-soft: #dcede7;
  --amber: #9a4a08;
  --amber-soft: #f8ebd6;
  --red: #a8231a;
  --red-soft: #f8e1dd;

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;

  --r-ctl: 6px;
  --r-panel: 12px;
  --lift: 0 12px 32px -12px rgb(26 34 48 / 0.18), 0 2px 6px -2px rgb(26 34 48 / 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
  accent-color: var(--live);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--live-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; border-radius: 3px; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--live); }
* { scrollbar-color: var(--rule-strong) transparent; scrollbar-width: thin; }
.num, time, td.num, .tabular { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: 2.1rem; font-weight: 600; line-height: 1.15; }
h2 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 0.87rem; }

svg.i { width: 18px; height: 18px; flex: none; stroke-width: 1.75; vertical-align: -3px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px; border-right: 1px solid var(--rule);
}
.brand { display: flex; align-items: baseline; gap: 8px; padding: 4px 10px 18px; text-decoration: none; }
.brand b { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.04em; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); align-self: center; }
.tenant-name { padding: 0 10px 14px; color: var(--ink-3); font-size: 0.85rem; line-height: 1.3; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-ctl);
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--sheet-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.nav a .count { margin-left: auto; font-size: 0.78rem; font-variant-numeric: tabular-nums; background: var(--amber-soft); color: var(--amber); padding: 0 7px; border-radius: 99px; font-weight: 600; }
.nav-sep { height: 1px; background: var(--rule); margin: 10px 10px; }
.rail-foot { margin-top: auto; display: grid; gap: 4px; }
.rail-foot form { margin: 0; }
.rail-foot button.btn.ghost { width: 100%; justify-content: flex-start; gap: 10px; padding: 8px 10px; min-height: 0; font: 500 15px/1.5 var(--sans); color: var(--ink-2); }
.rail-foot button.btn.ghost:hover { background: var(--sheet-2); color: var(--ink); }
.lang-switch { display: inline-flex; margin: 0 10px 8px; padding: 2px; border: 1px solid var(--rule); border-radius: 99px; background: var(--sheet); justify-self: start; align-self: flex-start; }
.lang-switch button, .lang-switch a { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.06em; padding: 6px 11px; border: 0; border-radius: 99px; background: transparent; color: var(--ink-3); cursor: pointer; text-decoration: none; }
.lang-switch button:hover, .lang-switch a:hover { color: var(--ink); }
.lang-switch [aria-current="true"] { background: var(--ink); color: var(--sheet); }
.lang-switch [aria-current="true"]:hover { color: var(--sheet); }

main { min-width: 0; padding: 32px clamp(16px, 4vw, 48px) 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin-top: 6px; color: var(--ink-2); max-width: 65ch; }
.content { width: 100%; }

.banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-ctl); margin-bottom: 20px; font-size: 0.92rem; }
.banner.warn { background: var(--amber-soft); color: var(--amber); }
.banner.ok { background: var(--live-soft); color: var(--live); }
.banner.err { background: var(--red-soft); color: var(--red); }

/* ---------- panels & tables ---------- */
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-panel); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.panel-body { padding: 20px; }
.panel + .panel, .stack > * + * { margin-top: 20px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 20px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 12px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td { background: var(--sheet-2); }
td a.row-link { text-decoration: none; font-weight: 500; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-2); }
.empty h3 { margin-bottom: 4px; color: var(--ink); }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.good::before { background: var(--live); }
.status.warn::before { background: var(--amber); }
.status.bad::before { background: var(--red); }
.status.good { color: var(--live); }
.status.warn { color: var(--amber); }
.status.bad { color: var(--red); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--sheet-2); color: var(--ink-2); }
.tag.urgent { background: var(--red-soft); color: var(--red); }
.tag.test { background: var(--live-soft); color: var(--live); }

/* ---------- today strip (overview) ---------- */
.today { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--sheet); margin-bottom: 24px; }
.today > div { padding: 18px 20px; }
.today > div + div { border-left: 1px solid var(--rule); }
.today .n { font-family: var(--display); font-size: 2.4rem; font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.today .l { color: var(--ink-2); font-size: 0.88rem; margin-top: 6px; }
.today .l a { color: inherit; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
@media (min-width: 1500px) {
  .two-col.wide-3 { grid-template-columns: 1.5fr 1fr 1fr; }
  .two-col.wide-3 > .stack { display: contents; }
  .two-col.wide-3 > .stack > .panel { margin-top: 0; }
}

/* ---------- forms ---------- */
form { margin: 0; }
.field { display: grid; gap: 6px; }
.field + .field, .fields > * + * { margin-top: 16px; }
label, .label { font-weight: 600; font-size: 0.9rem; }
.hint { color: var(--ink-3); font-size: 0.84rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--r-ctl);
  padding: 8px 11px; min-height: 40px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--live); box-shadow: 0 0 0 3px var(--live-soft); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row > .field { flex: 1 1 160px; margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 > .field { margin-top: 0; }
.grid-2 + .field, .field + .grid-2 { margin-top: 16px; }
.form-foot { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.err-text { color: var(--red); font-size: 0.88rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.92rem/1 var(--sans); padding: 10px 16px; min-height: 40px;
  border-radius: var(--r-ctl); border: 1px solid var(--ink); background: var(--ink); color: var(--sheet);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms var(--ease), border-color 120ms var(--ease);
}
.btn:hover { background: #2a3548; color: var(--sheet); }
.btn.secondary { background: var(--sheet); color: var(--ink); border-color: var(--rule-strong); }
.btn.secondary:hover { background: var(--sheet-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--sheet-2); color: var(--ink); }
.btn.danger { background: var(--sheet); color: var(--red); border-color: #e3b8b1; }
.btn.danger:hover { background: var(--red-soft); }
.btn.live { background: var(--live); border-color: var(--live); }
.btn.live:hover { background: #0b5a4d; }
.btn.sm { padding: 6px 10px; min-height: 32px; font-size: 0.85rem; }
.btn:disabled, .btn[aria-disabled=true] { opacity: 0.5; cursor: not-allowed; }
.htmx-request .btn, .btn.htmx-request { opacity: 0.6; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--rule); background: var(--sheet); text-decoration: none; font-size: 0.87rem; color: var(--ink-2); font-weight: 500; }
.filters a[aria-current="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }

/* ---------- transcript ---------- */
.transcript { display: grid; gap: 14px; padding: 20px; }
.turn { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.turn .who { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); padding-top: 2px; }
.turn .who time { display: block; font-weight: 400; }
.turn .say { max-width: 68ch; }
.turn.agent .who { color: var(--live); }
.turn.tool .say { font-size: 0.85rem; color: var(--ink-2); background: var(--sheet-2); padding: 6px 10px; border-radius: var(--r-ctl); overflow-wrap: anywhere; }
.turn .cut { color: var(--ink-3); font-size: 0.8rem; font-style: italic; }
.summary { padding: 20px; border-bottom: 1px solid var(--rule); }
.summary p { font-size: 1.05rem; max-width: 68ch; }
dl.meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; padding: 20px; font-size: 0.92rem; }
dl.meta dt { color: var(--ink-3); }
dl.meta dd { margin: 0; }

/* ---------- appointments ---------- */
.daynav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daynav .when { font-family: var(--display); font-size: 1.15rem; font-weight: 600; min-width: 14ch; text-align: center; }
.agenda-day + .agenda-day { border-top: 1px solid var(--rule); }
.agenda-day > h3 { padding: 14px 20px 6px; font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.appt { display: grid; grid-template-columns: minmax(110px, max-content) 1fr auto; gap: 16px; padding: 12px 20px; align-items: start; }
.appt + .appt { border-top: 1px dashed var(--rule); }
.appt .time { font-weight: 600; font-variant-numeric: tabular-nums; }
.appt.cancelled { color: var(--ink-3); }
.appt.cancelled .who { text-decoration: line-through; }
.appt-actions { display: flex; gap: 6px; }
details.inline > summary { list-style: none; cursor: pointer; }
details.inline > summary::-webkit-details-marker { display: none; }
details.inline[open] { grid-column: 1 / -1; }
.move-form { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 24px 20px; border-bottom: 1px solid var(--rule); }
.settings-grid:last-child { border-bottom: 0; }
.settings-grid > :nth-child(2) { max-width: 920px; min-width: 0; }
.settings-grid .intro p { color: var(--ink-2); font-size: 0.9rem; margin-top: 4px; }
.hours-row { display: grid; grid-template-columns: 120px 1fr 1fr auto; gap: 10px; align-items: center; }
.hours-row + .hours-row { margin-top: 8px; }
.faq-row { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--paper); }
.faq-row + .faq-row { margin-top: 10px; }
.faq-row .faq-foot { display: flex; justify-content: flex-end; }
.disclosure { background: var(--live-soft); color: var(--live); padding: 10px 12px; border-radius: var(--r-ctl); font-size: 0.9rem; }

.hours-row .day { font-weight: 600; }
.add-interval { margin: 4px 0 0 130px; }
.service-summary { cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; list-style: none; }
.service-summary::-webkit-details-marker { display: none; }
.service-summary .muted { font-weight: 400; }
details.faq-row + details.faq-row { margin-top: 10px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
label.check input { width: 16px; height: 16px; }

/* ---------- test phone ---------- */
.phone { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.phone > .panel + .panel { margin-top: 0; }
.phone-card { padding: 28px 24px; text-align: center; }
.orb {
  width: 132px; height: 132px; margin: 8px auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sheet-2); color: var(--ink-2);
  position: relative;
}
.orb svg.i { width: 40px; height: 40px; stroke-width: 1.5; }
.orb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--live); opacity: 0; transform: scale(0.92); }
.phone[data-state="live"] .orb { background: var(--live-soft); color: var(--live); }
.phone[data-state="live"] .orb::after { animation: listen 1.8s var(--ease) infinite; }
.phone[data-state="speaking"] .orb { background: var(--live); color: var(--sheet); }
@keyframes listen { 0% { opacity: 0.55; transform: scale(0.92); } 100% { opacity: 0; transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .phone[data-state="live"] .orb::after { animation: none; opacity: 0.5; transform: none; } }
.phone-state { font-weight: 600; margin-bottom: 4px; }
.mode-switch { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); overflow: hidden; margin-bottom: 20px; }
.mode-switch label { padding: 7px 14px; font-weight: 500; cursor: pointer; font-size: 0.88rem; }
.mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mode-switch input:checked + span { color: var(--sheet); }
.mode-switch label:has(input:checked) { background: var(--ink); color: var(--sheet); }
.mode-switch label:has(input:focus-visible) { outline: 2px solid var(--live); outline-offset: -2px; }
.log { min-height: 360px; max-height: 60vh; overflow-y: auto; padding: 20px; display: grid; gap: 12px; align-content: start; }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 14px; line-height: 1.45; }
.bubble.agent { background: var(--sheet-2); border-top-left-radius: 4px; }
.bubble.caller { justify-self: end; background: var(--ink); color: var(--sheet); border-top-right-radius: 4px; }
.bubble.system { justify-self: center; background: transparent; color: var(--ink-3); font-size: 0.85rem; padding: 2px; }
.composer { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--rule); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: min(400px, 100%); background: var(--sheet); border-radius: var(--r-panel); box-shadow: var(--lift); padding: 36px 32px; }
.login .brand { padding: 0; }
.login-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; }
.login-top .lang-switch { margin: 0; }
.login h1 { font-size: 1.6rem; margin-bottom: 6px; }
.login p.lead { color: var(--ink-2); margin-bottom: 24px; }
.login .btn { width: 100%; margin-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .two-col, .phone { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--rule); gap: 2px; }
  .brand { padding: 0 10px 0 4px; }
  .tenant-name, .nav-sep { display: none; }
  .nav a[aria-current="page"]::before { left: 8px; right: 8px; top: auto; bottom: -11px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .nav { display: flex; gap: 2px; }
  .nav a { white-space: nowrap; padding: 8px; }
  .nav a span.label-text { display: none; }
  .rail-foot { margin: 0 0 0 auto; display: flex; }
  .rail-foot .label-text { display: none; }
  .rail-foot { align-items: center; }
  .lang-switch { margin: 0 4px; }
  main { padding-top: 24px; }
  h1 { font-size: 1.7rem; }
  .today { grid-template-columns: 1fr 1fr; }
  .today > div:nth-child(3) { border-left: 0; }
  .today > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  th, td { padding-left: 14px; padding-right: 14px; }
  td.num { white-space: normal !important; }
  .panel { overflow-x: auto; }
  .hide-sm { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .appt { grid-template-columns: 70px 1fr; }
  .appt-actions { grid-column: 2; }
  .hours-row { grid-template-columns: 1fr 1fr auto; }
  .hours-row .day { grid-column: 1 / -1; }
  .hours-row .day:empty { display: none; }
  .add-interval { margin-left: 0; }
  .turn { grid-template-columns: 1fr; gap: 2px; }
  .bubble { max-width: 90%; }
}

/* ---------- motion ----------
   Quiet by default: everything eases, nothing loops except the live call pulse.
   All of it is switched off for prefers-reduced-motion at the end. */

@view-transition { navigation: auto; }
.rail { view-transition-name: rail; }
::view-transition-old(root) { animation: 160ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 260ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* Staggered entrance of the page's blocks. */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.content > *, .two-col > *, .two-col > .stack > *, .today > div { animation: rise 520ms var(--ease) both; }
.content > :nth-child(2) { animation-delay: 40ms; }
.content > :nth-child(3) { animation-delay: 80ms; }
.content > :nth-child(4) { animation-delay: 120ms; }
.content > :nth-child(n+5) { animation-delay: 160ms; }
.today > div:nth-child(1) { animation-delay: 90ms; }
.today > div:nth-child(2) { animation-delay: 140ms; }
.today > div:nth-child(3) { animation-delay: 190ms; }
.today > div:nth-child(4) { animation-delay: 240ms; }
.two-col > :nth-child(1) { animation-delay: 160ms; }
.two-col > :nth-child(2), .two-col > .stack > :nth-child(1) { animation-delay: 220ms; }
.two-col > .stack > :nth-child(2) { animation-delay: 280ms; }
.banner { animation: rise 420ms var(--ease) both; }

/* Surfaces respond to the pointer. */
.panel { transition: border-color 200ms var(--ease), box-shadow 300ms var(--ease); }
.panel:hover { border-color: var(--rule-strong); }
.today { transition: box-shadow 300ms var(--ease); }
.today > div { transition: background-color 200ms var(--ease); }
.today > div:hover { background: var(--paper); }
.today > div:first-child:hover { border-radius: var(--r-panel) 0 0 var(--r-panel); }
.today > div:last-child:hover { border-radius: 0 var(--r-panel) var(--r-panel) 0; }
td, .appt, .faq-row, .filters a, .lang-switch button, .lang-switch a, .nav a, input, select, textarea {
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.appt:hover { background: var(--paper); }
.filters a:hover { border-color: var(--rule-strong); color: var(--ink); }

/* Buttons: soft lift, firm press. */
.btn { transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease), box-shadow 200ms var(--ease); }
.btn:not(.ghost):hover { transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgb(26 34 48 / 0.45); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; transition-duration: 60ms; }

/* Nav: the current item carries a small ink marker. */
.nav a { position: relative; }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--live); animation: marker 360ms var(--spring) both;
}
@keyframes marker { from { transform: scaleY(0); } }

/* Icons animate on hover of the control they sit in. */
svg.i { transition: transform 260ms var(--spring); transform-origin: center; }
svg.i * { transform-box: fill-box; transform-origin: center; }
a:hover > svg.i-house, button:hover > svg.i-house { animation: hop 520ms var(--ease); }
a:hover > svg.i-phone, a:hover > svg.i-phone-incoming, button:hover > svg.i-phone, .tag:hover > svg.i-phone { animation: ring 620ms var(--ease); }
a:hover > svg.i-calendar-days { animation: hop 520ms var(--ease); }
a:hover > svg.i-message-square-text { animation: pop 420ms var(--spring); }
a:hover > svg.i-audio-lines path { animation: eq 700ms var(--ease); }
a:hover > svg.i-audio-lines path:nth-child(2n) { animation-delay: 90ms; }
a:hover > svg.i-audio-lines path:nth-child(3n) { animation-delay: 180ms; }
a:hover > svg.i-building-2 { transform: translateY(-2px); }
a:hover > svg.i-shield-check { animation: pop 420ms var(--spring); }
a:hover > svg.i-user-round { transform: scale(1.12); }
button:hover > svg.i-log-out { transform: translateX(3px); }
a:hover > svg.i-chevron-right, button:hover > svg.i-chevron-right { transform: translateX(3px); }
a:hover > svg.i-chevron-left, button:hover > svg.i-chevron-left { transform: translateX(-3px); }
a:hover > svg.i-plus, button:hover > svg.i-plus { transform: rotate(90deg); }
button:hover > svg.i-x { transform: rotate(90deg); }
button:hover > svg.i-trash-2 { animation: ring 520ms var(--ease); }
button:hover > svg.i-send { transform: translate(2px, -2px); }
button:hover > svg.i-mic, button:hover > svg.i-mic-off { transform: scale(1.15); }
button:hover > svg.i-phone-off { animation: ring 520ms var(--ease); }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(-3px); } 70% { transform: translateY(1px); } }
@keyframes ring { 0%, 100% { transform: none; } 15% { transform: rotate(-14deg); } 30% { transform: rotate(12deg); } 45% { transform: rotate(-9deg); } 60% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 35% { transform: scaleY(0.45); } 65% { transform: scaleY(1.25); } }

/* A message count that needs attention breathes once on load. */
.nav a .count { animation: pop 600ms var(--spring) 500ms both; }
.status.warn::before, .tag.urgent { position: relative; }

/* Language pill: the active option slides. */
.lang-switch { position: relative; isolation: isolate; }
.lang-switch [aria-current="true"] { transition: background-color 220ms var(--ease), color 220ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:not(.ghost):hover { transform: none; }
}

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 50; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  width: min(400px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 10px 12px 14px; border-radius: 10px;
  background: var(--ink); color: var(--sheet); box-shadow: var(--lift);
  font-size: 0.92rem; line-height: 1.4;
  animation: toast-in 380ms var(--spring) both;
}
.toast > svg { flex: none; width: 18px; height: 18px; }
.toast.ok > svg { color: #7fd1bd; }
.toast.err { background: var(--sheet); color: var(--red); box-shadow: var(--lift), inset 0 0 0 1px #e3b8b1; }
.toast.info::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #7fd1bd; box-shadow: 0 0 0 4px rgb(127 209 189 / 0.18); }
.toast-msg { flex: 1; min-width: 0; }
.toast-link { color: inherit; font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.toast-x {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: inherit; opacity: 0.65; cursor: pointer; font-size: 18px; line-height: 1;
}
.toast-x:hover { opacity: 1; background: rgb(255 255 255 / 0.12); }
.toast.err .toast-x:hover { background: var(--red-soft); }
.toast-x svg { width: 16px; height: 16px; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #7fd1bd; transform-origin: left; display: none; }
.toast.ok .toast-bar, .toast.info .toast-bar { display: block; animation: toast-bar 5000ms linear both; }
.toast.paused .toast-bar { animation-play-state: paused; }
.toast.leaving { animation: toast-out 240ms var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes toast-bar { to { transform: scaleX(0); } }
@media (max-width: 760px) { .toasts { right: 16px; left: 16px; bottom: 16px; width: auto; } }

/* ---------- Confirm dialog ---------- */
dialog.confirm {
  width: min(420px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: var(--r-panel);
  background: var(--sheet); color: var(--ink); box-shadow: var(--lift);
}
dialog.confirm[open] { animation: dlg-in 260ms var(--spring) both; }
dialog.confirm::backdrop { background: rgb(26 34 48 / 0.35); backdrop-filter: blur(2px); animation: fade-in 200ms var(--ease) both; }
.confirm-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red-soft); color: var(--red); margin-bottom: 14px; }
.confirm-icon svg { width: 20px; height: 20px; }
dialog.confirm h2 { margin: 0 0 6px; font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.02em; }
.confirm-msg { margin: 0 0 22px; color: var(--ink-2); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.btn.danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger-solid:hover { background: #8c1d15; color: #fff; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Busy buttons ---------- */
.btn[aria-busy="true"] { position: relative; color: transparent !important; opacity: 1; cursor: progress; }
.btn[aria-busy="true"] > * { visibility: hidden; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--sheet) var(--sheet) transparent transparent;
  animation: spin 700ms linear infinite;
}
.btn.secondary[aria-busy="true"]::after, .btn.danger[aria-busy="true"]::after { border-color: var(--ink) var(--ink) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Unsaved changes ---------- */
.unsaved-dot { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; color: var(--amber); font-size: 0.85rem; font-weight: 500; animation: fade-in 200ms var(--ease) both; }
.unsaved-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .toast, .toast.leaving, dialog.confirm[open], dialog.confirm::backdrop { animation: none; }
  .toast.ok .toast-bar, .toast.info .toast-bar { animation-duration: 5000ms !important; }
  .btn[aria-busy="true"]::after { animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
}

/* ---------- Resources ---------- */
.res-filter { margin: -4px 0 16px; flex-wrap: wrap; }
.with { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 500; }
.with svg { width: 13px; height: 13px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 20px; }
.res-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 0; text-decoration: none; color: inherit; transition: box-shadow 200ms var(--ease), transform 200ms var(--ease), border-color 200ms var(--ease); }
.res-card:hover { box-shadow: var(--lift); transform: translateY(-2px); border-color: var(--rule-strong); }
.res-card > svg { margin-left: auto; color: var(--ink-3); transition: transform 200ms var(--ease); }
.res-card:hover > svg { transform: translateX(3px); }
.res-card.inactive { opacity: 0.6; }
.res-main { display: grid; gap: 2px; min-width: 0; }
.res-main b { font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.01em; }
.res-meta { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.res-meta svg { width: 13px; height: 13px; }
.res-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--live-soft); color: var(--live); font: 600 0.95rem/1 var(--display); letter-spacing: 0.02em; }
.res-avatar.kind-table { background: var(--amber-soft); color: var(--amber); border-radius: 12px; }
.res-avatar.kind-room, .res-avatar.kind-equipment { background: var(--sheet-2); color: var(--ink-2); border-radius: 12px; }
.res-avatar svg { width: 20px; height: 20px; }
.empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--live-soft); color: var(--live); margin-bottom: 12px; }
.empty-icon svg { width: 26px; height: 26px; }
.empty .btn { margin-top: 14px; }
.how h2 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 10px; }
.steps { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; align-content: start; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--sheet-2); gap: 2px; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; cursor: pointer; font-weight: 500; font-size: 0.9rem; color: var(--ink-2); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgb(26 34 48 / 0.12); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--live); outline-offset: 1px; }
.form-bar { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--rule); }
.form-bar .btn:only-child { margin-left: auto; }
.danger-text { color: var(--red) !important; }

/* Calendar connections */
.cal-conn { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.cal-conn:first-child { padding-top: 0; }
.cal-info { display: grid; gap: 3px; min-width: 0; flex: 1; }
.cal-info svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; color: var(--live); }
.cal-state { color: var(--ink-2); }
.cal-actions { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.cal-actions form { margin: 0; }
.cal-logo { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; font: 700 0.8rem/1 var(--display); color: #fff; background: var(--ink-2); letter-spacing: 0.02em; }
.cal-logo.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 0.68rem; vertical-align: middle; margin-right: 6px; }
.cal-logo.p-google { background: #1a73e8; }
.cal-logo.p-microsoft { background: #0f6cbd; }
.cal-logo.p-icloud { background: #3a3a3c; }
.cal-logo.p-caldav { background: var(--live); }
.cal-logo.p-calendly { background: #006bff; }
.cal-logo.p-ical { background: var(--amber); }
.cal-add-title { font: 600 0.95rem/1.3 var(--sans); margin: 18px 0 10px; color: var(--ink-2); }
.cal-conn + .cal-add-title, .cal-add-title:first-child { margin-top: 0; }
.cal-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 10px; }
.cal-option { margin: 0; display: grid; gap: 4px; }
.cal-tile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: border-color 160ms var(--ease), box-shadow 200ms var(--ease), transform 160ms var(--ease); }
.cal-tile > span:last-child { display: grid; gap: 1px; }
.cal-tile:hover:not(:disabled) { border-color: var(--rule-strong); box-shadow: var(--lift); transform: translateY(-1px); }
.cal-tile:disabled { cursor: not-allowed; opacity: 0.55; }
.cal-form form { margin-top: 10px; }
.choice-list { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.choice:has(input:checked) { border-color: var(--live); background: var(--live-soft); }

/* Industry templates */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.industry-card { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); cursor: pointer; transition: border-color 160ms var(--ease), box-shadow 200ms var(--ease), transform 160ms var(--ease); }
.industry-card:hover { border-color: var(--rule-strong); transform: translateY(-1px); }
.industry-card input { position: absolute; opacity: 0; pointer-events: none; }
.industry-card:has(input:checked) { border-color: var(--live); box-shadow: inset 0 0 0 1px var(--live); background: var(--live-soft); }
.industry-card:has(input:focus-visible) { outline: 2px solid var(--live); outline-offset: 2px; }
.industry-card .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--sheet-2); color: var(--ink-2); margin-bottom: 4px; }
.industry-card:has(input:checked) .ic { background: var(--live); color: #fff; }
.industry-card .ic svg { width: 18px; height: 18px; }
.industry-card .current { position: absolute; top: 10px; right: 10px; }
a:hover > svg.i-users, .cal-tile:hover svg.i-users { animation: pop 420ms var(--spring); }
.res-grid > .panel + .panel { margin-top: 0; }
.res-grid + .panel { margin-top: 0; }
.industry-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.ia { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 14px; border: 1px dashed var(--rule-strong); border-radius: 10px; }
.ia .check { font-weight: 500; color: var(--ink-2); align-items: flex-start; }
.ia .check input { margin-top: 3px; }
.num-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--rule); margin: 0; }
.num-row form { margin: 0 0 0 auto; }
.num-row > .btn { margin-left: auto; }
.num-main { display: grid; gap: 1px; }
.cal-logo.p-twilio { background: #f22f46; }
.cal-logo svg { width: 16px; height: 16px; }
code.copy { user-select: all; background: var(--sheet-2); padding: 2px 6px; border-radius: 4px; font-size: 0.82rem; word-break: break-all; }
.sys-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; }
.sys-row + .sys-row { border-top: 1px dashed var(--rule); }
.sys-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.sys-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.st-ok .sys-dot { background: var(--live); box-shadow: 0 0 0 4px var(--live-soft); }
.st-warning .sys-dot { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.st-error .sys-dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.st-error .sys-main .small { color: var(--red); }
.st-off { opacity: 0.6; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; align-items: center; }
.kv > span { color: var(--ink-3); }

/* ---------- first-run setup ---------- */
.setup-body { background: var(--paper); }
.setup-shell {
  min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  max-width: 1240px; margin: 0 auto;
}
.setup-aside {
  position: sticky; top: 0; align-self: start; min-height: 100vh;
  background: var(--ink); color: #ece6d9; padding: 40px 44px;
  display: flex; flex-direction: column; gap: 18px;
}
.setup-aside .brand { padding: 0 0 28px; }
.setup-aside .brand b { color: #fffdf8; }
.setup-aside .brand .dot { background: #3fbf9f; box-shadow: 0 0 0 4px rgb(63 191 159 / 0.18); }
.setup-aside h1 { font: 650 clamp(1.9rem, 1.2rem + 1.6vw, 2.6rem)/1.08 var(--display); letter-spacing: -0.03em; color: #fffdf8; margin: 0; text-wrap: balance; }
.setup-pitch { color: #c9c3b6; font-size: 1.02rem; max-width: 36ch; margin: 0; }
.setup-next { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid rgb(255 253 248 / 0.12); display: grid; gap: 18px; }
.setup-next li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.setup-next .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgb(63 191 159 / 0.14); color: #6fd6bb; }
.setup-next .ic svg { width: 17px; height: 17px; stroke-width: 1.75; }
.setup-next b { display: block; color: #fffdf8; font-weight: 600; }
.setup-next span:not(.ic) { display: block; color: #aca596; font-size: 0.9rem; margin-top: 2px; }

.setup-main { position: relative; padding: 40px clamp(20px, 5vw, 72px) 56px; max-width: 720px; width: 100%; }
.setup-main > .lang-switch { position: absolute; top: 36px; right: clamp(20px, 5vw, 72px); margin: 0; }
.setup-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.setup-form fieldset + fieldset { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.setup-step { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 18px; font: 600 1.2rem/1.2 var(--display); letter-spacing: -0.02em; }
.setup-step + * { clear: both; }
.setup-step .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--sheet); font: 600 0.8rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.setup-main .banner { margin-top: 44px; }

.industry-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.industry-tile {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 9px 12px;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); cursor: pointer;
  font-weight: 550; font-size: 0.9rem; line-height: 1.25;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}
.industry-tile:hover { border-color: var(--rule-strong); background: #fffefb; }
.industry-tile input { position: absolute; opacity: 0; pointer-events: none; }
.industry-tile .ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--sheet-2); color: var(--ink-2); transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.industry-tile .ic svg { width: 16px; height: 16px; stroke-width: 1.75; }
.industry-tile:has(input:checked) { border-color: var(--live); box-shadow: inset 0 0 0 1px var(--live); background: var(--live-soft); }
.industry-tile:has(input:checked) .ic { background: var(--live); color: #fff; }
.industry-tile:has(input:focus-visible) { outline: 2px solid var(--live); outline-offset: 2px; }
.setup-prepared { margin: 10px 0 0; min-height: 1.5em; color: var(--ink-2); font-size: 0.9rem; }

.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw-toggle { position: absolute; top: 4px; right: 4px; width: 34px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--ink-3); cursor: pointer; }
.pw-toggle:hover { background: var(--sheet-2); color: var(--ink); }
.pw-toggle[aria-pressed="true"] { color: var(--live); }
.pw-toggle svg { width: 18px; height: 18px; }

.setup-submit { width: 100%; min-height: 48px; margin-top: 32px; font-size: 1rem; }
.setup-submit svg { width: 18px; height: 18px; }
.setup-later { margin: 12px 0 0; text-align: center; color: var(--ink-3); font-size: 0.86rem; }

@media (max-width: 900px) {
  .setup-shell { grid-template-columns: 1fr; }
  .setup-aside { position: static; min-height: 0; padding: 24px 20px 28px; gap: 10px; }
  .setup-aside .brand { padding-bottom: 12px; }
  .setup-next { display: none; }
  .setup-main { padding: 28px 16px 40px; max-width: none; }
  .setup-main > .lang-switch { position: static; display: inline-flex; margin-bottom: 20px; }
  .setup-main .banner { margin-top: 0; }
  .industry-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- getting started (overview) ---------- */
.onboard { margin-bottom: 24px; }
.onboard .panel-head { align-items: center; }
.onboard-progress { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--ink-2); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.onboard-bar { width: 120px; height: 6px; border-radius: 99px; background: var(--sheet-2); overflow: hidden; }
.onboard-bar i { display: block; height: 100%; background: var(--live); border-radius: inherit; transition: width 600ms var(--ease); }
.onboard ol { list-style: none; margin: 0; padding: 0; }
.onboard li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--rule); }
.onboard li:first-child { border-top: 0; }
.onboard .st { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--rule-strong); color: var(--ink-3); font: 600 0.78rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.onboard li.done .st { border-color: var(--live); background: var(--live); color: #fff; }
.onboard li.done .st svg { width: 15px; height: 15px; stroke-width: 2.5; }
.onboard li.done b { color: var(--ink-2); }
.onboard li b { display: block; font-weight: 600; }
.onboard li .muted { font-size: 0.88rem; }
.onboard li.next { background: #fbf8f0; }
.onboard li.next .st { border-color: var(--ink); color: var(--ink); }
.onboard .done-tag { color: var(--live); font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .onboard li { grid-template-columns: 28px minmax(0, 1fr); padding: 14px 16px; }
  .onboard li > :last-child { grid-column: 2; justify-self: start; }
  .onboard-bar { width: 72px; }
  .onboard .panel-head { flex-wrap: wrap; row-gap: 8px; }
  .onboard-progress { width: 100%; }
  .onboard-progress form { margin-left: auto; }
}
