/* Vesper dashboard. Same family as vesperphone.com: Instrument Sans, cool fog, the periwinkle
   evening star. One bold element, the night band at the top of every page; everything below it
   stays quiet: white grouped lists on fog, hairlines instead of boxes, status as a dot and a word. */
:root {
  --night: #161a24; --night-2: #232a39; --on-night: #e9ecf2; --on-night-muted: #9aa3b5;
  --page: #eef0f4; --paper: #ffffff; --ink: #1b2029; --haze: #636b7c;
  --rule: rgba(27, 32, 41, .08); --field: #f5f6f9;
  --glow: #c9d6ff; --star: #c9d6ff; --accent: #3e52a3; --urgent: #b42318;
  --radius: 16px; --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --night: #0b0e13; --night-2: #1a1f2a; --page: #12151b; --paper: #1a1e26; --ink: #e6e9f0;
    --haze: #959eb0; --rule: rgba(230, 233, 240, .08); --field: #222733; --glow: #3f5185;
    --accent: #a9b9f5; --urgent: #f97066; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1rem/1.5 var(--font);
  font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 1.75rem; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: .2rem 0 .5rem; }
h2.section, h1.section { margin: 1.75rem 0 .6rem; }
h2.section { font-size: 1.05rem; font-weight: 600; letter-spacing: -.005em; }
h2.day { font-size: .9rem; font-weight: 600; color: var(--haze); margin: 1.5rem 0 .5rem 4px; }
p { margin: .25rem 0 .75rem; }
.muted { color: var(--haze); }
.small { font-size: .9rem; }
.urgent-text { color: var(--urgent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The night band: brand, business, tabs. */
.mark { width: 24px; height: 24px; flex-shrink: 0; margin-left: -4px; }
.mark .star { fill: var(--star); }
.brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .01em; margin: 0; }
.band { background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--rule); }
.band-in > .biz:last-child { margin-bottom: 22px; }
.band-in { max-width: 720px; margin: 0 auto; padding: 14px 16px 0; }
.band-top { display: flex; align-items: center; justify-content: space-between; }
.band-top form { margin: 0; }
.band button.link { color: var(--on-night-muted); font-size: .9rem; }
.band button.link:hover { color: var(--on-night); }
.biz { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin: 18px 0 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 4px 0 13px; color: var(--on-night-muted); text-decoration: none;
  font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs a:hover { color: var(--on-night); }
.tabs a.on { color: var(--on-night); }
.tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--star); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--urgent);
  color: #fff; font-size: .75rem; font-weight: 600; display: inline-grid; place-items: center; }

.page { max-width: 720px; margin: 0 auto; padding: 8px 16px 56px; }
.page > p.small:first-child { margin-top: 16px; }

/* Grouped lists: one white surface per group, hairlines between rows. */
.list { list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.list li { position: relative; }
.list li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--rule); }
.list a:hover { background: color-mix(in srgb, var(--page) 55%, var(--paper)); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 16px; text-decoration: none; }
.row .muted { white-space: nowrap; }
.call { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; text-decoration: none; }
.call.done { opacity: .55; }
.call-top, .call-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.call-top strong { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.when { color: var(--haze); font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.call-line { min-width: 0; color: var(--haze); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Status: a dot and a word, never a pill. */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 500;
  color: var(--haze); white-space: nowrap; flex-shrink: 0; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.status.booked, .status.waiting { color: var(--accent); }
.status.message, .status.answered, .status.transferred { color: var(--ink); }
.status.urgent { color: var(--urgent); }
.status.quiet, .status.hung_up, .status.error { color: var(--haze); }
.status.quiet::before, .status.hung_up::before, .status.error::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; color: var(--haze); font-size: .9rem; }
.tag { font-size: .8rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--field); white-space: nowrap; }
.tag.urgent { background: var(--urgent); color: #fff; }

/* Surfaces and forms. */
.card { background: var(--paper); border-radius: var(--radius); padding: 20px; }
.card p { margin: .2rem 0 .6rem; }
.card > :last-child { margin-bottom: 0; }
.empty { background: var(--paper); border-radius: var(--radius); padding: 28px 20px; margin-top: 20px; }
.empty p { margin: 0 0 4px; max-width: 46ch; }
label { display: block; font-weight: 500; margin: 1rem 0 .35rem; }
input[type=email] { width: 100%; font: inherit; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--rule); background: var(--field); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
button, .button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px;
  margin-top: 1rem; font: 600 1rem var(--font); padding: 12px 20px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--paper); text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
button.secondary, a.button.secondary { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
button.secondary:hover, a.button.secondary:hover { background: var(--field); }
button.link { width: auto; min-height: 0; margin: 0; padding: 6px 0; background: none; color: var(--haze); font-weight: 500; }
button.link:hover { background: none; color: var(--ink); }
.notice { background: var(--glow); padding: 12px 14px; border-radius: 12px; margin: 16px 0; }
.notice.bad { background: var(--urgent); color: #fff; }
.quote { background: var(--field); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 8px; }

/* Sign in. */
.center { min-height: 100svh; display: grid; place-items: center; padding: 16px; }
.center.night { background: var(--night); color: var(--on-night); }
.center.night .brand { margin-bottom: 28px; font-size: 1.1rem; }
.center.night .mark { width: 26px; height: 26px; }
.narrow { width: 100%; max-width: 400px; }
.center.night .card { background: transparent; padding: 0; }
.center.night .muted { color: var(--on-night-muted); }
.center.night input[type=email] { background: var(--night-2); border-color: transparent; color: var(--on-night); }
.center.night button, .center.night .button { background: var(--on-night); color: var(--night); }

/* One call. */
.call-head { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.call-head h1 { margin: 0; }
.meta { color: var(--haze); font-variant-numeric: tabular-nums; margin: 4px 0 16px; }
.recap { padding: 20px; }
.recap-head { font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.saved { display: flex; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--rule); }
.saved .label { flex: 0 0 6.5rem; color: var(--haze); font-size: .9rem; padding-top: 1px; }
.actions { display: grid; gap: 8px; margin: 12px 0 4px; }
.actions.two { grid-template-columns: 1fr 1fr; }
.actions form { margin: 0; }
.actions button, .actions .button { margin-top: 0; }
audio { width: 100%; margin-top: 4px; }
.transcript { margin-top: 1.5rem; background: var(--paper); border-radius: var(--radius); padding: 16px 20px; }
.transcript summary { font-weight: 600; cursor: pointer; }
.transcript .line { margin: .9rem 0 0; max-width: 60ch; }
.transcript .who { display: block; font-size: .8rem; font-weight: 600; color: var(--haze); margin-bottom: 1px; }
.transcript .line.us { padding-left: 14px; border-left: 2px solid var(--glow); color: color-mix(in srgb, var(--ink) 82%, var(--paper)); }
.fix { display: inline-block; margin-top: 4px; font-size: .85rem; color: var(--accent); }

/* Appointments. */
.appt { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.appt-line { color: var(--haze); }
.appt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.appt-actions form { margin: 0; }
.appt-actions button, .appt-actions .button { margin-top: 0; min-height: 42px; padding: 8px 12px; font-size: .95rem; }

/* Admin. */
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; }
.totals p { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 14px; color: var(--haze);
  font-size: .85rem; line-height: 1.3; }
.totals .big { display: block; color: var(--ink); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; margin-bottom: 2px; }

/* My receptionist. */
.setting { display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-decoration: none; }
.setting-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setting-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chev { color: var(--haze); font-size: 1.3rem; line-height: 1; }
.memo { margin: 4px 0 18px; padding: 0 0 0 14px; border-left: 2px solid var(--glow); max-width: 62ch; }
.memo p { margin: 0 0 6px; }
.memo p:last-child { margin-bottom: 0; }
.need { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: var(--haze);
  background: var(--field); white-space: nowrap; vertical-align: middle; }
.need-needed { background: var(--glow); color: var(--ink); }
h1 .need { font-size: .78rem; position: relative; top: -4px; }
.settings-form input:not([type=checkbox]):not([type=radio]), .settings-form select, .settings-form textarea {
  width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--rule);
  background: var(--field); color: var(--ink); }
.settings-form textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: .6rem 0; }
.day-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.day-row .check { margin: 0; font-weight: 500; }
.times { display: flex; align-items: center; gap: 8px; color: var(--haze); padding-left: 28px; }
.settings-form .times input { flex: 1; min-width: 0; padding: 6px 8px; }
.settings-form input.short:not([type=checkbox]):not([type=radio]) { width: 7rem; }
.day-row.closed .times, .closed-times { opacity: .35; }
.rowbox { background: var(--paper); border-radius: var(--radius); padding: 6px 16px 12px; margin: 0 0 10px; }
.rowbox.inline { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.rowbox label { margin-top: .6rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
button.link.add { color: var(--accent); font-weight: 600; margin: 4px 0 8px; }
button.link.remove { color: var(--haze); font-size: .9rem; margin-top: 6px; }

@media (min-width: 640px) {
  .band-in, .page { padding-left: 24px; padding-right: 24px; }
  .biz { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Audit fixes: small field hints, a Save button that stays in reach on long forms. */
.hint { color: var(--haze); font-size: .85rem; margin: 6px 2px 0; }
.savebar { position: sticky; bottom: 0; margin: 16px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(8px); }
.savebar button { margin-top: 0; }
.mail-apps { margin-top: 16px; line-height: 1.9; }
.mail-apps a { white-space: nowrap; }
.center.night label.check.remember { margin: 18px 0 2px; color: var(--on-night); }
.center.night label.check.remember + .muted { margin: 0 0 4px 28px; }

/* Go live */
.list.golive { margin-bottom: 14px; }
.big-number { font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin: 0 0 4px; }
select.carrier { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); }
.code-card { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 10px; }
.code-card .button { margin-top: 8px; font-variant-numeric: tabular-nums; }
.code-card p { margin: 0 0 4px; }
.code-card .button + p { margin-top: 10px; }

/* Signup */
.signup h1 { margin-top: 4px; }
.center.night .signup-form input, .center.night .signup-form select { width: 100%; font: inherit; padding: 12px 14px;
  border-radius: 12px; border: 0; background: var(--night-2); color: var(--on-night); }
.center.night .signup-form label { margin-top: 1.1rem; color: var(--on-night); }
.center.night .hint { color: var(--on-night-muted); }
.opt { font-weight: 400; color: var(--on-night-muted); font-size: .85rem; margin-left: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center.night .notice.bad p { margin: 0; }
.center.night .steps { padding-left: 20px; color: var(--on-night-muted); }
.center.night .steps li { margin: 0 0 10px; }
.center.night .steps strong { color: var(--on-night); }
.center.night .narrow { padding: 24px 0; }
.row.assign { flex-wrap: wrap; }
.assign-in { display: flex; gap: 8px; width: 100%; }
.assign-in input { flex: 1; font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--field); color: var(--ink); }
.assign-in button { width: auto; margin: 0; min-height: 40px; padding: 8px 14px; }

/* Icons and groups (Nov 8) */
.ico { width: 20px; height: 20px; flex-shrink: 0; }
h2.group { font-size: .85rem; font-weight: 600; color: var(--haze); margin: 22px 0 8px 4px; }
.s-ico { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  background: var(--field); color: var(--ink); }
.setting { gap: 12px; }
.tabs a .ico { width: 17px; height: 17px; opacity: .85; }
button .ico, .button .ico { width: 18px; height: 18px; margin-right: 8px; }

/* Collapsible days on Calls */
.day-group > summary { list-style: none; display: flex; align-items: baseline; gap: 10px; cursor: pointer;
  margin: 1.5rem 0 .5rem 4px; }
.day-group > summary::-webkit-details-marker { display: none; }
.day-group > summary h2.day { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.day-group > summary h2.day::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.day-group:not([open]) > summary h2.day::before { transform: rotate(-45deg); }
.day-count { font-size: .8rem; color: var(--haze); }
.day-group:not([open]) > summary { margin-bottom: 0; }

/* Test dashboard (/admin/tests). Stage colors: the validated categorical order (adjacent
   stack segments stay apart for color-blind readers), stepped separately for dark mode. */
:root { --st-1: #257de0; --st-2: #f47230; --st-3: #00b894; --st-4: #f2a600; --st-5: #ee7fac; --st-6: #008a17; }
@media (prefers-color-scheme: dark) {
  :root { --st-1: #338ced; --st-2: #e76624; --st-3: #00a888; --st-4: #d28e05; --st-5: #e24d8b; --st-6: #0aac23; }
}
.st-turn_wait { background: var(--st-1); } .st-stt { background: var(--st-2); } .st-ai { background: var(--st-3); }
.st-voice { background: var(--st-4); } .st-other { background: var(--st-5); } .st-network { background: var(--st-6); }
.lab .card + .card { margin-top: 10px; }
.lab .card.tight { padding: 8px 16px; overflow-x: auto; }
.sbar { display: flex; gap: 2px; height: 14px; margin: 10px 0 6px; border-radius: 4px; overflow: hidden; background: var(--field); }
.sbar .seg { display: block; height: 100%; min-width: 2px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 6px 0 10px; font-size: .85rem; color: var(--haze); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
table.nums { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
table.nums th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--haze); padding: 8px 8px 6px 0; }
table.nums td { padding: 8px 8px 8px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.cols { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 200px; margin: 8px 0 30px; padding-right: 38px;
  border-bottom: 1px solid var(--rule); }
.col { position: relative; flex: 1 1 0; max-width: 48px; height: 100%; display: flex; align-items: flex-end; text-decoration: none; }
.col:hover .stack { opacity: .85; }
.col .stack { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; width: 100%; height: 100%; }
.col .stack .seg { display: block; width: 100%; min-height: 1px; }
.col .stack .seg:first-child { border-radius: 4px 4px 0 0; }
.col .heard { position: absolute; left: 50%; width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.col .xl { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; font-size: .72rem;
  color: var(--haze); white-space: nowrap; }
.cols .target { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--haze); z-index: 1; pointer-events: none; }
.cols .target span { position: absolute; right: 0; top: -.7em; line-height: 1.3; font-size: .72rem; color: var(--haze); background: var(--paper); padding: 0 4px; }
.now pre, .log pre { max-height: 320px; overflow: auto; background: var(--field); border-radius: 10px; padding: 10px 12px;
  font-size: .78rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; }
.now form { margin: 0; }
.log summary, .explain summary { cursor: pointer; font-weight: 500; margin-top: 10px; }
.explain p { margin: .5rem 0; max-width: 62ch; }
.start fieldset { border: 0; padding: 0; margin: 0; }
label.pick { align-items: flex-start; margin: .2rem 0 .8rem; }
label.pick input { margin-top: 3px; flex-shrink: 0; }
.totals.confirm { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 12px 0; }
.totals.confirm p { background: var(--field); }
.calls { display: grid; gap: 8px; }
.tcall { padding: 14px 16px; }
.tcall > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.tcall > summary::-webkit-details-marker { display: none; }
.tcall[open] > summary { margin-bottom: 10px; }
.why { border-left: 3px solid var(--rule); padding: 4px 0 4px 12px; margin: 8px 0; }
.why.bad { border-left-color: var(--urgent); }
.why p { margin: 2px 0 0; color: var(--haze); font-size: .92rem; }
ul.passed { margin: 6px 0; padding-left: 18px; }
h3.sub { font-size: .9rem; font-weight: 600; margin: 14px 0 4px; }
ol.turns { list-style: none; padding: 0; margin: 0 0 8px; }
ol.turns li { padding: 8px 0; border-top: 1px solid var(--rule); }
.turn-top { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.turn-top .said { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transcript.flat { margin-top: 12px; padding: 0; background: none; }
.transcript .line.tool { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--haze); }
.lab .settings-form input:not([type=radio]) { font: inherit; }

/* Admin (Dec 4): a work tool, not a showcase. Dense rows, one line each, clear sections,
   paged lists. Scoped to .adm so the owner's pages are untouched. */
.page.wide, .band-in.wide { max-width: 1240px; }
.band.compact .band-in { display: flex; align-items: center; gap: 28px; padding-top: 0; }
.band.compact .brand { padding: 12px 0; }
.band.compact .tabs { flex: 1; align-self: flex-end; }
.band.compact .tabs a { padding: 12px 0 11px; font-size: .92rem; }
.band.compact form { margin: 0; }
.as-admin { margin: -6px 0 12px; font-size: .85rem; color: var(--on-night-muted); }
.as-admin a { color: var(--on-night); }
.adm { font-size: .9rem; padding-top: 16px; }
.adm a { text-decoration: none; }
.adm a:hover { text-decoration: underline; }
.adm .notice { margin: 0 0 12px; padding: 8px 12px; }
.adm .neg { color: var(--urgent); font-style: normal; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--haze); vertical-align: middle; }
.dot.bad { background: var(--urgent); }
.dot.warn { background: #d68a00; }
.dot.ok { background: #1f9d55; }
.dot.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--haze); }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-radius: 10px; margin-bottom: 14px; }
.kpis > div { padding: 10px 14px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kpis > div + div { border-left: 1px solid var(--rule); }
.kpis b { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpis span { color: var(--haze); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel { background: var(--paper); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.panel-head h1, .panel-head h2 { font-size: .95rem; font-weight: 600; margin: 0; letter-spacing: 0; }
.panel-head .n { color: var(--haze); font-weight: 500; margin-left: 4px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--field); border-radius: 8px; padding: 2px; gap: 2px; }
.seg a { padding: 3px 10px; border-radius: 6px; font-size: .82rem; font-weight: 500; color: var(--haze); display: inline-flex; align-items: center; gap: 5px; }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg a span { opacity: .7; font-variant-numeric: tabular-nums; }
.find { margin: 0 0 0 auto; }
.find input { width: 240px; font: inherit; font-size: .85rem; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--rule); background: var(--field); color: var(--ink); }
.table-wrap { overflow-x: auto; max-height: 70vh; overflow-y: auto; }
table.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grid th { position: sticky; top: 0; z-index: 1; background: var(--paper); text-align: left; font-size: .75rem; font-weight: 600;
  color: var(--haze); text-transform: uppercase; letter-spacing: .03em; padding: 7px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.grid th a { color: inherit; }
.grid td { padding: 6px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: middle; height: 36px; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover td { background: color-mix(in srgb, var(--page) 50%, var(--paper)); }
.grid .num { text-align: right; }
.grid .strong, .grid a.strong { font-weight: 600; }
.grid .c-dot { width: 14px; padding-right: 0; }
.grid .c-pick { width: 18px; padding-right: 0; }
.grid .c-pick input { width: 15px; height: 15px; vertical-align: middle; }
.grid .c-what { max-width: 460px; overflow: hidden; text-overflow: ellipsis; }
.grid .c-issues { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.grid .c-act { width: 1%; text-align: right; }
.grid tr.off td:not(.c-pick) { opacity: .5; }
.grid .empty-row { padding: 14px 10px; }
.pill { font-size: .7rem; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: var(--field); color: var(--haze); vertical-align: 1px; }
.adm .btn, .adm .table-foot button { display: inline-flex; align-items: center; width: auto; min-height: 0; margin: 0; padding: 4px 10px; border-radius: 6px;
  font: 500 .82rem var(--font); background: var(--field); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; white-space: nowrap; }
.adm .btn:hover, .adm .table-foot button:hover { background: color-mix(in srgb, var(--field) 70%, var(--ink) 8%); text-decoration: none; }
.adm .btn.primary { background: var(--ink); color: var(--paper); box-shadow: none; }
.clear { margin: 0; padding: 14px; color: var(--haze); }
.pager { display: flex; align-items: center; gap: 12px; padding: 8px 14px; font-size: .82rem; }
.pager span:not(.muted) { color: var(--haze); opacity: .5; }
.table-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 14px; border-top: 1px solid var(--rule); font-size: .82rem; }
.table-foot .bulk { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.table-foot .pager { padding: 0; }
.table-foot .csv { margin-left: auto; }
.foot { color: var(--haze); font-size: .78rem; margin: 0 2px; }
/* One business */
.crumbs { margin: 0 0 6px; font-size: .85rem; }
.biz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.biz-head h1 { font-size: 1.35rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.biz-head h1 .dot { width: 10px; height: 10px; }
.biz-actions { display: flex; gap: 6px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols-2 > .panel { margin-bottom: 14px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.plist li .dot { margin-top: 6px; flex-shrink: 0; }
.plist p { margin: 2px 0 4px; }
.sub { padding: 10px 14px; }
.sub h3 { font-size: .85rem; margin: 0 0 4px; }
.sub p { margin: 0 0 8px; }
.number-row { display: flex; flex-wrap: wrap; gap: 6px; }
.number-row form { margin: 0; display: flex; gap: 6px; }
.number-row input { font: inherit; font-size: .85rem; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--rule); background: var(--field); color: var(--ink); width: 170px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; }
.facts dt, .facts dd { padding: 6px 14px; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { color: var(--haze); }
.switches { display: flex; gap: 6px; padding: 10px 14px; margin: 0; }
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis > div { border-left: 0 !important; border-top: 1px solid var(--rule); }
  .cols-2 { grid-template-columns: 1fr; }
  .find { margin-left: 0; width: 100%; }
  .find input { width: 100%; }
  .grid .c-what { max-width: 220px; }
  .band.compact .band-in { flex-wrap: wrap; gap: 0 20px; }
  .band.compact .tabs { order: 3; flex-basis: 100%; }
}
/* Go live and setup status (Dec 4): one status box, numbered steps, "you keep your number". */
.step .muted { white-space: normal; }
.setup-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; background: var(--paper);
  border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; border-left: 4px solid var(--accent); }
.setup-box.bad { border-left-color: var(--urgent); }
.setup-box.wait { border-left-color: var(--haze); }
.setup-box.ok { border-left-color: #12a150; padding: 10px 16px; }
.setup-text { flex: 1 1 280px; min-width: 0; }
.setup-title { margin: 0; font-weight: 600; display: flex; align-items: flex-start; gap: 8px; }
.setup-body { margin: 2px 0 0; color: var(--haze); font-size: .92rem; }
.setup-box .dot { margin-top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.setup-box.bad .dot { background: var(--urgent); } .setup-box.wait .dot { background: var(--haze); }
.setup-box.ok .dot { background: #12a150; }
.setup-box form, .setup-box > .button { flex: 0 0 auto; margin: 0; }
.setup-box button, .setup-box .button { margin-top: 0; width: auto; min-height: 42px; }
@media (max-width: 560px) { .setup-box form, .setup-box > .button, .setup-box button { width: 100%; } }
.keep { margin: 12px 0 20px; }
.keep-head { margin: 0 0 12px !important; }
.flow { list-style: none; margin: 0 0 10px; padding: 0; display: flex; align-items: stretch; gap: 6px; }
.flow-node { flex: 1 1 0; background: var(--field); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.flow-node strong { font-variant-numeric: tabular-nums; }
.flow-node.missing strong { color: var(--haze); }
.flow-label, .flow-note { font-size: .78rem; color: var(--haze); }
.flow-arrow { display: grid; place-items: center; font-size: .75rem; color: var(--haze); text-align: center; flex: 0 0 auto; max-width: 64px; }
@media (max-width: 560px) {
  .flow { flex-direction: column; }
  .flow-arrow { max-width: none; padding: 0 0 0 14px; justify-items: start; }
  .flow-arrow span::before { content: "↓ "; }
}
.gsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gstep { background: var(--paper); border-radius: var(--radius); padding: 14px 18px; scroll-margin-top: 12px; }
.gstep-head { display: flex; align-items: center; gap: 12px; }
.gstep-head h2 { margin: 0; font-size: 1.05rem; flex: 1; }
.gnum { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--field); color: var(--haze); font-weight: 600; font-size: .9rem; }
.gstep.now { box-shadow: inset 0 0 0 2px var(--accent); }
.gstep.now .gnum { background: var(--accent); color: var(--paper); }
.gstep.done .gnum { background: #12a150; color: #fff; }
.gstep.done h2, .gstep.later h2 { color: var(--haze); }
.gstep-body { padding-left: 40px; }
.gstep-body > :first-child { margin-top: 8px; }
.gstep-body p { margin: 6px 0; }
.gstep-body select.carrier { margin: 8px 0 10px; background: var(--field); }
.gstep-body .code-card { background: var(--field); }
.gstep-body .big-number { margin-top: 8px; }
@media (max-width: 560px) { .gstep-body { padding-left: 0; } }
/* Signup: what happens, in order */
.center.night .how { list-style: none; counter-reset: how; padding: 0; margin: 18px 0 10px; }
.center.night .how li { counter-increment: how; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; margin: 0 0 8px; }
.center.night .how li::before { content: counter(how); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--night-2); color: var(--on-night); font-size: .8rem; font-weight: 600; }
.center.night .how strong { color: var(--on-night); font-weight: 500; }
.center.night .how span { color: var(--on-night-muted); font-size: .85rem; }
.center.night .keep-note { background: var(--night-2); border-radius: 12px; padding: 10px 14px; margin: 0 0 8px; font-size: .92rem; }
.center.night .signup-form input[type=checkbox] { width: 18px; height: 18px; padding: 0; flex: 0 0 auto; }
.center.night .signup-form label.check.remember { margin: 1.2rem 0 0; }
