:root {
  /* light: the landing page's blue on clean white */
  --bg: #f5f7fb; --panel: #fff; --ink: #0d1530; --mut: #5e6a85; --line: #e4e9f2;
  --accent: #2563eb; --accent-ink: #fff; --soft: #eef3ff;
  --ok: #15803d; --ok-bg: #e7f6ec; --warn: #8a5a00; --warn-bg: #fdf1d8;
  --bad: #b91c1c; --bad-bg: #fdecec; --info-bg: #eef1f7;
  --radius: 16px; --shadow: 0 1px 2px rgba(13,21,48,.04), 0 8px 24px -12px rgba(13,21,48,.12);
  color-scheme: light;
}
/* dark: the landing page's navy. Follows the device unless the person picked Light or Dark in Settings. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060b1d; --panel: #0d152f; --ink: #eef2fb; --mut: #8f9bba; --line: rgba(255,255,255,.09);
    --accent: #3b82f6; --accent-ink: #fff; --soft: rgba(59,130,246,.13);
    --ok: #4ade80; --ok-bg: rgba(74,222,128,.12); --warn: #f2c14e; --warn-bg: rgba(242,193,78,.12);
    --bad: #ff8a80; --bad-bg: rgba(255,138,128,.1); --info-bg: rgba(255,255,255,.05);
    --shadow: 0 30px 60px -40px rgba(0,0,0,.9); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060b1d; --panel: #0d152f; --ink: #eef2fb; --mut: #8f9bba; --line: rgba(255,255,255,.09);
  --accent: #3b82f6; --accent-ink: #fff; --soft: rgba(59,130,246,.13);
  --ok: #4ade80; --ok-bg: rgba(74,222,128,.12); --warn: #f2c14e; --warn-bg: rgba(242,193,78,.12);
  --bad: #ff8a80; --bad-bg: rgba(255,138,128,.1); --info-bg: rgba(255,255,255,.05);
  --shadow: 0 30px 60px -40px rgba(0,0,0,.9); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
a { color: var(--accent); }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 24px 0 10px; }
h3 { font-size: 15px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--mut); }
.small { font-size: 13px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 10; background: var(--panel); padding: 6px 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* layout */
:root { --top-h: 60px; --side-w: 248px; --rail-w: 68px; }
.top { display: flex; align-items: center; gap: 12px; height: var(--top-h); padding: 0 20px; background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.nav-toggle { display: none; font: inherit; width: 40px; height: 40px; margin-left: -8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; place-items: center; flex: none; }
.nav-toggle:hover { background: var(--soft); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #7b4dff)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-txt b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--mut); }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.kb { font-size: 12px; color: var(--mut); display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--info-bg); white-space: nowrap; }
.kb::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mut); flex: none; }
.kb.live { background: var(--ok-bg); color: var(--ok); } .kb.live::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.kb.draft { background: var(--warn-bg); color: var(--warn); } .kb.draft::before { background: var(--warn); }
.kb:empty { display: none; }
.kb.live.pending { background: var(--warn-bg); color: var(--warn); } .kb.live.pending::before { background: var(--warn); box-shadow: none; }
#publish-btn[hidden] { display: none; }

/* sidebar: fixed full-height column; the links scroll, the footer stays put */
.shell { min-height: calc(100vh - var(--top-h)); }
.side { position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--side-w); z-index: 30; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); transition: width .18s ease, transform .22s ease; }
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 10px 10px 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.side-h { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); margin: 18px 12px 6px; white-space: nowrap; }
.side a { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; margin: 1px 0; border-radius: 8px; color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; border: 0; background: transparent; cursor: pointer; text-align: left; white-space: nowrap; }
.side a .icon { color: var(--mut); flex: none; }
.side .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side a:hover { background: var(--soft); }
.side a:hover .icon { color: var(--ink); }
.side a[aria-current="page"] { background: var(--soft); color: var(--accent); font-weight: 600; }
.side a[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side a[aria-current="page"] .icon { color: var(--accent); }
.count:empty { display: none; }
.count { font-size: 11.5px; font-weight: 600; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; line-height: 18px; flex: none; }
main { margin-left: var(--side-w); padding: 24px 28px 40px; min-width: 0; transition: margin-left .18s ease; }
main > * { max-width: var(--content-w); margin-left: auto; margin-right: auto; }
main:focus { outline: none; }
.nav-backdrop { display: none; }
.side-head { display: none; }

/* collapsed icon rail (toggle, or automatically on mid-size screens) */
body.nav-mini .side { width: var(--rail-w); }
body.nav-mini main { margin-left: var(--rail-w); }
body.nav-mini .side-scroll { padding: 10px 8px; }
body.nav-mini .side .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.nav-mini .side-h { height: 1px; margin: 12px 6px; background: var(--line); font-size: 0; }
body.nav-mini .side-scroll a { justify-content: center; padding: 10px 0; }
body.nav-mini .side a[aria-current="page"]::before { left: -8px; }
body.nav-mini .count { position: absolute; top: 3px; right: 6px; min-width: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
body.nav-mini .side [data-tip]:hover::after, body.nav-mini .side [data-tip]:focus-visible::after {
  content: attr(data-tip); position: fixed; left: calc(var(--rail-w) + 6px); transform: translateY(-50%); margin-top: 0;
  background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 500; padding: 5px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 50;
}
/* fixed tooltips need a vertical anchor: each item sets --y from its own position (see app.js) */
body.nav-mini .side [data-tip]::after { top: var(--y, 0); }

/* phones: the sidebar becomes a drawer */
@media (max-width: 760px) {
  :root { --top-h: 56px; }
  .top { padding: 0 12px; gap: 8px; }
  .nav-toggle { display: grid; }
  .brand-sub { display: none; }
  .logo { width: 28px; height: 28px; font-size: 13px; }
  .kb { font-size: 0; gap: 0; padding: 6px; }
  .top-actions .btn { padding: 6px 12px; }
  .side { width: min(300px, 86vw); top: 0; z-index: 60; transform: translateX(-102%); box-shadow: none; }
  .side-head { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); flex: none; }
  .side-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side a[aria-current="page"]::before { display: none; }
  body.nav-open .side { transform: none; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10, 12, 16, .45); }
  main { margin-left: 0; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .side, main { transition: none; } }

/* parts */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.spread { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }
.btn { font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mut); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
label { display: block; font-weight: 550; margin-bottom: 4px; }
.help { display: block; font-weight: 400; color: var(--mut); font-size: 13px; }
input[type=text], input[type=url], input[type=tel], input[type=number], input[type=password], input[type=email], input[type=search], textarea, select {
  font: inherit; width: 100%; max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
}
textarea { min-height: 70px; resize: vertical; }
.field { margin-bottom: 14px; }
.field-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.badge { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--info-bg); color: var(--mut); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge svg { width: 11px; height: 11px; }
.dirty input, .dirty textarea, .dirty select { border-color: var(--accent); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; }
.checks label, .inline { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; }
.radio-row { display: flex; gap: 8px 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; cursor: pointer; color: var(--mut); }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.sticky-save { position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 10px 16px; margin: 0 -22px -22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 3; }
@media (max-width: 760px) { .sticky-save { margin: 0 -16px -16px; } }
.review { border-left: 4px solid var(--warn); }
.mono, code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; white-space: pre-wrap; word-break: break-all; margin: 0 0 8px; }
.token { font-size: 15px; padding: 12px; background: var(--warn-bg); border-radius: 8px; word-break: break-all; }
.empty { text-align: center; color: var(--mut); padding: 30px 10px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; margin: 0; }
.switch input { width: 36px; height: 20px; appearance: none; background: var(--line); border-radius: 999px; position: relative; cursor: pointer; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { left: 18px; }

/* progress */
.steps { list-style: none; padding: 0; margin: 16px 0; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--mut); }
.steps .ic { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.steps li.done { color: var(--ink); } .steps li.done .ic { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.now { color: var(--ink); font-weight: 600; } .steps li.now .ic { border-color: var(--accent); border-top-color: transparent; animation: spin 1s linear infinite; }
.steps li.err .ic { background: var(--bad); border-color: var(--bad); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { border-radius: 8px; padding: 12px 14px; }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat { background: var(--bg); border-radius: 8px; padding: 10px; } .stat b { display: block; font-size: 20px; }

/* answers / inbox */
.qa-q { font-weight: 600; }
.qa-alt { color: var(--mut); font-size: 13px; }
.qa-a { margin: 8px 0; white-space: pre-wrap; }
.lead { border-left: 5px solid var(--line); }
.lead.emergency { border-left-color: var(--bad); } .lead.soon { border-left-color: var(--warn); } .lead.planning { border-left-color: var(--ok); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 8px 0 0; font-size: 14px; }
dl.kv dt { color: var(--mut); } dl.kv dd { margin: 0; word-break: break-word; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.list button.item { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 6px; cursor: pointer; }
.list button.item[aria-current="true"] { border-color: var(--accent); background: var(--soft); }
.msg { margin: 8px 0; max-width: 88%; }
.msg .bubble { padding: 8px 12px; border-radius: 12px; background: var(--bg); white-space: pre-wrap; word-break: break-word; }
.msg.user { margin-left: auto; } .msg.user .bubble { background: var(--accent); color: var(--accent-ink); }
.msg .meta { font-size: 12px; color: var(--mut); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; }
.msg.user .meta { justify-content: flex-end; }
.path-bank { background: var(--ok-bg); color: var(--ok); } .path-fact { background: var(--ok-bg); color: var(--ok); }
.path-llm { background: var(--warn-bg); color: var(--warn); } .path-fallback { background: var(--bad-bg); color: var(--bad); }
.path-flow, .path-greeting { background: var(--info-bg); }
.path-safety { background: var(--bad-bg); color: var(--bad); }
.playground { width: 100%; height: 680px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; }
.toast.bad { background: var(--bad); color: #fff; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 0; background: var(--panel); color: var(--ink); width: min(560px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(0,0,0,.4); }
.dialog-body { padding: 20px; max-height: 80vh; overflow-y: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* branding */
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 14px; align-items: start; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: 1fr; } }
.bp-card { position: sticky; top: 70px; }
@media (max-width: 900px) { .bp-card { position: static; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
label.btn { display: inline-block; margin: 0; font-weight: 400; }
input[type=file]:focus-visible + label.btn { outline: 3px solid var(--accent); outline-offset: 2px; }
label.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.color-swatch { width: 48px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; }
input[aria-invalid="true"] { border-color: var(--bad); }
.logo-box { width: 96px; height: 56px; border: 1px dashed var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--bg); overflow: hidden; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.found { margin: 8px 0 0; padding-left: 18px; color: var(--mut); }
.found:empty { display: none; }
/* mock of the widget (widget.js), light/dark like the real one */
.bp-stage { --c: #1f6feb; --tc: #fff; --wbg: #fff; --wfg: #1b1f24; --wbub: #f1f3f5; --wbd: #dfe3e8;
  position: relative; height: 440px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--bg) 0 14px, var(--soft) 14px 28px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bp-stage { --wbg: #16191d; --wfg: #e8eaed; --wbub: #23272d; --wbd: #2f353c; } }
.bp-panel { position: absolute; right: 12px; bottom: 80px; left: auto; width: calc(100% - 24px); max-width: 300px; background: var(--wbg); color: var(--wfg);
  border: 1px solid var(--wbd); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); overflow: hidden; font-size: 13px; }
.bp-stage.left .bp-panel { right: auto; left: 12px; }
.bp-head { background: var(--c); color: var(--tc); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.bp-logo { height: 28px; max-width: 72px; object-fit: contain; flex: none; }
.bp-logo[hidden] { display: none; }
.bp-title { flex: 1; min-width: 0; }
.bp-title b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-title small { display: block; opacity: .85; font-size: 11.5px; }
.bp-x { display: flex; } .bp-x svg { width: 18px; height: 18px; }
.bp-log { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.bp-m { max-width: 85%; padding: 7px 10px; border-radius: 12px; line-height: 1.4; }
.bp-agent { background: var(--wbub); align-self: flex-start; border-bottom-left-radius: 4px; }
.bp-user { background: var(--c); color: var(--tc); align-self: flex-end; border-bottom-right-radius: 4px; }
.bp-bar { display: flex; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid var(--wbd); }
.bp-in { flex: 1; border: 1px solid var(--wbd); border-radius: 999px; padding: 6px 12px; color: #8a929b; }
.bp-send { width: 30px; height: 30px; border-radius: 50%; background: var(--c); flex: none; }
.bp-launch { position: absolute; right: 12px; bottom: 12px; width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: var(--tc);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); overflow: hidden; }
.bp-stage.left .bp-launch { right: auto; left: 12px; }
.bp-launch svg { width: 26px; height: 26px; display: block; }
.bp-launch span { display: flex; }
.bp-launch img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

/* ---------- voice page (#/voice): .vp- prefix ---------- */
.vp { --vp-r: 12px; --vp-hover: color-mix(in srgb, var(--accent) 40%, var(--line)); padding-bottom: 8px; }
.vp h2, .vp h3 { letter-spacing: -.005em; }
.vp-tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 500; line-height: 18px; padding: 0 7px; margin-left: 8px;
  border-radius: 999px; background: var(--info-bg); color: var(--mut); white-space: nowrap; vertical-align: 2px; }
.vp-tag.ok { background: var(--ok-bg); color: var(--ok); }
.vp-tag.warn { background: var(--warn-bg); color: var(--warn); }
.vp-tag[hidden] { display: none; }
.vp-fine { font-size: 12.5px; color: var(--mut); margin: 14px 0 0; }
.vp-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.vp-actions.left { justify-content: flex-start; }
.vp .btn.ghost.danger { color: var(--bad); }
.vp-spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite; flex: none; }
.vp-spin.lg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* current voice summary */
.vp-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--vp-r); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 16px; }
.vp-eyebrow { font-size: 12.5px; font-weight: 550; color: var(--mut); margin: 0 0 2px; display: flex; align-items: center; }
.vp-eyebrow .vp-tag { margin-left: 10px; }
.vp-sum-name { font-size: 24px; font-weight: 650; line-height: 1.2; margin: 0 0 4px; }
.vp-sum-meta { margin: 0; color: var(--mut); font-size: 14px; white-space: pre-wrap; }
.vp-sum-play { display: flex; align-items: center; gap: 14px; }
.vp-sum-wave { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vp-sum-hint { font-size: 12.5px; color: var(--mut); }
.vp-sum-line, .vp-job { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--mut); }
.vp-sum-line { font-style: italic; }
.vp-sum-line + .vp-job { border-top: 0; padding-top: 0; margin-top: 0; }
.vp-job.ok { color: var(--ok); } .vp-job.bad { color: var(--bad); }
.vp-sum-line[hidden], .vp-job[hidden] { display: none; }
.vp-wave { display: flex; align-items: center; gap: 10px; }
.vp-wave-bars { display: flex; align-items: center; gap: 2px; height: 26px; }
.vp-wave-bars i { display: block; width: 3px; border-radius: 2px; background: var(--line); transition: background-color .15s; }
.vp-wave-bars i.on { background: var(--accent); }
.vp-wave-time { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; min-width: 72px; }
.vp-wave-time:empty { display: none; }

/* play / stop button with a progress ring */
.vp-play { --p: 0%; position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.vp-play:hover { border-color: var(--vp-hover); color: var(--accent); }
.vp-play svg { width: 14px; height: 14px; display: block; }
.vp-play::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: conic-gradient(var(--accent) var(--p), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); }
.vp-play[data-state="playing"] { color: var(--accent); border-color: var(--line); }
.vp-play[data-state="playing"]::before { opacity: 1; }
.vp-play[data-state="loading"] { color: var(--mut); }
.vp-play.lg { width: 46px; height: 46px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vp-play.lg svg { width: 18px; height: 18px; }
.vp-play.lg:hover { color: var(--accent-ink); filter: brightness(1.06); }
.vp-play.lg[data-state="playing"], .vp-play.lg[data-state="loading"] { background: var(--soft); border-color: var(--soft); color: var(--accent); }
.vp-play.lg::before { inset: -3px; }

/* sections */
.vp-section { background: var(--panel); border: 1px solid var(--line); border-radius: var(--vp-r); box-shadow: var(--shadow); padding: 20px 24px 22px; margin-bottom: 16px; }
.vp-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.vp-section-head h2 { font-size: 16px; font-weight: 620; margin: 0 0 2px; }
.vp-section-head p { margin: 0; color: var(--mut); font-size: 13.5px; }

/* segmented control (radio inputs) */
.vp-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.vp-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); max-width: 100%; }
.vp-seg-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.vp-seg label { margin: 0; font-weight: 500; font-size: 13.5px; color: var(--mut); padding: 4px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.vp-seg label:hover { color: var(--ink); }
.vp-seg-in:checked + label { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.06); }
.vp-seg-in:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 1px; }

/* voice library */
.vp-voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.vp-voice { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding-right: 10px; transition: border-color .15s, box-shadow .15s; }
.vp-voice:hover { border-color: var(--vp-hover); }
.vp-voice.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vp-voice-in, .vp-tone-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.vp-voice-label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 0 11px 12px; cursor: pointer; font-weight: 400; }
.vp-voice-in:focus-visible + .vp-voice-label, .vp-tone-in:focus-visible + .vp-tone { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.vp-radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: transparent; background: var(--panel); }
.vp-radio svg { width: 12px; height: 12px; }
.vp-voice.on .vp-radio, .vp-tone-in:checked + .vp-tone .vp-radio { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vp-voice-text { display: flex; flex-direction: column; min-width: 0; }
.vp-voice-name { font-weight: 600; display: flex; align-items: center; }
.vp-voice-name .vp-tag { margin-left: 8px; }
.vp-voice-meta { font-size: 13px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-more { font: inherit; font-size: 13.5px; font-weight: 550; color: var(--accent); background: none; border: 0; padding: 6px 2px; margin-top: 10px; cursor: pointer; }
.vp-more:hover { text-decoration: underline; }
.vp-empty { color: var(--mut); font-size: 13.5px; margin: 6px 0 0; }

/* speed */
.vp-speed-val { font-size: 20px; font-weight: 620; font-variant-numeric: tabular-nums; line-height: 1.2; }
.vp-speed { display: flex; align-items: flex-start; gap: 24px; max-width: 640px; }
.vp-speed-track { flex: 1; min-width: 0; }
.vp-speed-val { flex: none; min-width: 64px; text-align: right; margin-top: -4px; }
.vp-range { --fill: 50%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.vp-range::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill)); }
.vp-range::-moz-range-track { height: 4px; border-radius: 999px; background: var(--line); }
.vp-range::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }
.vp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.vp-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.vp-range:focus-visible { outline: none; }
.vp-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.vp-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.vp-stops { position: relative; height: 26px; margin-top: 6px; }
.vp-stop { position: absolute; top: 0; transform: translateX(-50%); font: inherit; font-size: 12.5px; color: var(--mut); background: none; border: 0; padding: 2px 4px; cursor: pointer; border-radius: 4px; }
.vp-stop.first { left: 0; transform: none; padding-left: 0; }
.vp-stop.last { right: 0; transform: none; padding-right: 0; }
.vp-stop:hover { color: var(--ink); }

/* tone */
.vp-tones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .vp-tones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vp-tones { grid-template-columns: 1fr; } }
.vp-tone-wrap { display: flex; }
.vp-tone { flex: 1; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.vp-tone:hover { border-color: var(--vp-hover); }
.vp-tone-in:checked + .vp-tone { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vp-tone-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vp-tone-name { font-weight: 600; }
.vp-tone-about { font-size: 13px; color: var(--mut); }
.vp-tone-eg { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-style: italic; line-height: 1.45; color: var(--ink); opacity: .85; }

/* your own voice: stepper */
.vp-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; padding: 0; margin: 0 0 18px; }
.vp-steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mut); }
.vp-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line); margin: 0 10px; }
.vp-step-n { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; }
.vp-step-n svg { width: 12px; height: 12px; }
.vp-steps li.now { color: var(--ink); font-weight: 600; }
.vp-steps li.now .vp-step-n { border-color: var(--accent); color: var(--accent); }
.vp-steps li.done { color: var(--ink); }
.vp-steps li.done .vp-step-n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* your own voice: intro and consent */
.vp-intro-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 760px) { .vp-intro-cols { grid-template-columns: 1fr; gap: 18px; } }
.vp-intro h3, .vp-read h3, .vp-ready h3 { font-size: 14.5px; font-weight: 620; margin: 0 0 8px; }
.vp-tips { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--mut); }
.vp-tips li { position: relative; padding-left: 16px; margin-bottom: 8px; }
.vp-tips li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--mut); opacity: .6; }
.vp-tips b { color: var(--ink); font-weight: 600; }
.vp-intro-form { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; align-self: start; }
.vp-intro-form .field { margin-bottom: 12px; }
.vp-intro-form input[type=text] { background: var(--panel); }
.vp-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 0; cursor: pointer; }
.vp-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.vp-intro-form .vp-actions { margin-top: 14px; }
.vp-note { font-size: 13.5px; border-radius: 8px; padding: 10px 12px; margin: 12px 0 0; }
.vp-note.bad { background: var(--bad-bg); color: var(--bad); }

/* your own voice: reading and recording */
.vp-read-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vp-read-head h3 { margin: 0; }
.vp-read { max-width: 760px; }
.vp-script { font-size: 19px; line-height: 1.65; margin: 10px 0 0; padding: 18px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; white-space: pre-line; }
.vp-script:focus { outline: none; }
.vp-script mark { background: var(--soft); color: inherit; font-weight: 600; padding: 0 1px; border-radius: 2px; box-shadow: inset 0 -2px 0 var(--accent); }
.vp-rec-panel { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.vp-rec-panel[hidden] { display: none; }
.vp-rec { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px 0 14px; border-radius: 999px; border: 1px solid var(--bad);
  background: var(--bad); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.vp-rec:hover { filter: brightness(1.06); }
.vp-rec-ic { display: flex; } .vp-rec-ic svg { width: 20px; height: 20px; }
.vp-rec.on { background: var(--panel); color: var(--bad); }
.vp-rec.on .vp-rec-ic { animation: vp-pulse 1.4s ease-in-out infinite; }
@keyframes vp-pulse { 50% { opacity: .35; } }
.vp-rec-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vp-rec-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vp-rec-time { font-size: 20px; font-weight: 620; font-variant-numeric: tabular-nums; }
.vp-rec-hint { font-size: 13px; color: var(--mut); }
.vp-meter { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.vp-meter i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 999px; transition: width .08s linear; }
.vp-meter i.hot { background: var(--warn); }
.vp-take { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.vp-take-text { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; color: var(--mut); }
.vp-take-text b { color: var(--ink); font-size: 14.5px; }
.vp-take-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* your own voice: working, problems, ready, coming soon */
.vp-working { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--bg); border-radius: 10px; }
.vp-working p, .vp-problem p { margin: 2px 0 0; font-size: 13.5px; color: var(--mut); }
.vp-problem { padding: 14px 16px; border-radius: 10px; background: var(--bad-bg); }
.vp-problem b { color: var(--bad); }
.vp-problem p { color: var(--ink); }
.vp-ready-head { display: flex; align-items: center; gap: 14px; }
.vp-ready-text h3 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; }
.vp-ready-text p { margin: 2px 0 0; font-size: 13.5px; color: var(--mut); }
.vp-quality { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.vp-quality p { margin: 0; display: flex; align-items: center; }
.vp-quality ul { margin: 8px 0 0; padding-left: 18px; color: var(--mut); font-size: 13.5px; }
.vp-soon { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; }
.vp-soon .vp-tag { margin: 0; }
.vp-soon p { margin: 0; color: var(--mut); font-size: 14px; flex: 1; min-width: 220px; }

/* save bar */
.vp-savebar { position: sticky; bottom: 16px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 4px; padding: 10px 12px 10px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--vp-r);
  box-shadow: 0 6px 24px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.06); }
.vp-savebar[hidden] { display: none; }
.vp-savebar p { margin: 0; font-weight: 550; font-size: 14px; }
.vp-savebar-actions { display: flex; gap: 8px; }

@media (max-width: 760px) {
  .vp-sum { grid-template-columns: 1fr; padding: 18px; }
  .vp-section { padding: 18px 16px; }
  .vp-sum-name { font-size: 22px; }
}
@media (max-width: 480px) {
  .vp-rec-panel { flex-direction: column; align-items: stretch; }
  .vp-rec { justify-content: center; }
  .vp-take-actions { margin-left: 0; width: 100%; }
  .vp-take-actions .btn { flex: 1; }
  .vp-savebar { padding: 8px 8px 8px 14px; flex-wrap: nowrap; }
  .vp-savebar p { font-size: 13.5px; }
  .vp-steps { flex-wrap: nowrap; }
  .vp-steps li + li::before { width: 14px; margin: 0 6px; }
  .vp-steps li:not(.now) > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vp-script { font-size: 17.5px; padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { .vp-spin { border-right-color: currentColor; opacity: .5; } }

/* overview */
.icon { display: inline-flex; vertical-align: middle; }
.btn .icon { margin-right: 6px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.ov-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ov-head h1 { font-size: 24px; letter-spacing: -.01em; }
.ov-head p { margin: 0; }
.seg { display: inline-flex; background: var(--info-bg); border-radius: 9px; padding: 3px; }
.seg button { font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--mut); padding: 5px 12px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.ov-skel { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.skel { height: 110px; border-radius: var(--radius); background: linear-gradient(90deg, var(--panel), var(--info-bg), var(--panel)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
.card h2 { margin: 0; font-size: 15.5px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.card-head p { margin: 2px 0 0; }
.banner { display: flex; align-items: center; gap: 14px; }
.banner.link { color: inherit; text-decoration: none; }
.banner.link:hover { border-color: var(--accent); }
.banner p { margin: 2px 0 6px; }
.banner .bar { max-width: 420px; }
.banner.bad { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.banner-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.banner.bad .banner-ic { background: transparent; color: var(--bad); }
.banner-ic.spin .icon { animation: spin 2.4s linear infinite; }
.setup-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.setup-head p { margin: 2px 0 0; }
.ring { position: relative; width: 52px; height: 52px; flex: none; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 650; }
.setup-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 6px; }
.setup-list a { height: 100%; }
.setup-head .grow { min-width: 200px; }
.setup-list a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14px; }
.setup-list a:hover { border-color: var(--accent); }
.setup-list .icon { color: var(--mut); }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.setup-list li.done a { color: var(--mut); background: var(--bg); }
.setup-list li.done .tick { background: var(--ok); border-color: var(--ok); }
.setup-list li.done .tick .icon { color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
.kpi:hover { border-color: var(--accent); transform: translateY(-1px); }
.kpi-top { display: flex; justify-content: space-between; align-items: center; }
.kpi-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--accent); display: grid; place-items: center; }
.kpi-val { font-size: 28px; font-weight: 680; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 20px; }
.delta { font-size: 12px; font-weight: 600; padding: 0 6px; border-radius: 6px; }
.delta.up { color: var(--ok); background: var(--ok-bg); } .delta.down { color: var(--bad); background: var(--bad-bg); } .delta.flat { color: var(--mut); background: var(--info-bg); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ov-grid.even { grid-template-columns: 1fr 1fr; }
.ov-grid > .card { margin-bottom: 12px; }
@media (max-width: 900px) { .ov-grid, .ov-grid.even { grid-template-columns: minmax(0, 1fr); } }
.chart { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-svg .base { stroke: var(--mut); stroke-opacity: .5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-svg .axis { fill: var(--mut); font-size: 11px; }
.chart-svg .bar { fill: var(--accent); }
.chart-hit { position: absolute; inset: 0 0 22px 0; }
.chart-hit span { position: absolute; top: 0; bottom: 0; border-radius: 6px; outline-offset: -2px; }
.chart-hit span.on { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.12); border-radius: 8px; padding: 8px 10px; font-size: 13px; pointer-events: none; white-space: nowrap; z-index: 2; }
.chart-table { margin-top: 8px; } .chart-table summary { cursor: pointer; }
.chart-table table { border-collapse: collapse; margin-top: 6px; width: 100%; }
.chart-table th, .chart-table td { text-align: left; padding: 3px 8px; border-bottom: 1px solid var(--line); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li + li { border-top: 1px solid var(--line); }
.feed a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 2px; color: inherit; text-decoration: none; font-size: 14px; }
.feed a:hover b { color: var(--accent); }
.feed-sub { display: block; color: var(--mut); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--accent); }
.feed-ic.booking { background: var(--ok-bg); color: var(--ok); }
.feed-ic.bad { background: var(--bad-bg); color: var(--bad); }
.empty .icon { color: var(--mut); margin-bottom: 6px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stats > div { background: var(--bg); border-radius: 9px; padding: 10px 12px; }
.mini-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.qlist li + li { border-top: 1px solid var(--line); }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.kpi-foot .muted { white-space: nowrap; }
@media (max-width: 760px) {
  .ov-head h1 { font-size: 21px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-val { font-size: 24px; }
  .setup-head .btn { width: 100%; justify-content: center; }
  .mini-stats b { font-size: 17px; }
}

/* select (react-select style); the native <select> stays hidden underneath */
.rs { position: relative; width: 100%; min-width: 0; }
.rs-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; bottom: 0; left: 0; }
.rs-control { display: flex; align-items: center; min-height: 38px; border: 1px solid color-mix(in srgb, var(--mut) 40%, var(--line)); border-radius: 8px; background: var(--panel); cursor: default; transition: border-color .12s, box-shadow .12s; }
.rs-control:hover { border-color: color-mix(in srgb, var(--mut) 55%, var(--line)); }
.rs.focus .rs-control { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rs.disabled .rs-control { opacity: .6; background: var(--info-bg); }
.rs-value { flex: 1; min-width: 0; display: grid; align-items: center; padding: 2px 10px; }
.rs-disp { display: contents; }
.rs-value .rs-single, .rs-value .rs-ph, .rs-value > .rs-input { grid-area: 1 / 1; }
.rs-single { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rs-ph { color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs .rs-input { font: inherit; color: var(--ink); border: 0 !important; outline: 0; background: transparent !important; padding: 0 !important; margin: 0; width: 100%; min-width: 2px; box-shadow: none; }
.rs-multi .rs-value { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 6px; }
.rs-multi .rs-ph { padding-left: 4px; }
.rs-multi .rs-disp:has(.rs-ph) + .rs-input { position: absolute; opacity: 0; }
.rs-multi .rs-input { flex: 1; width: auto; min-width: 40px; padding-left: 4px !important; }
.rs-chip { display: inline-flex; align-items: center; border-radius: 4px; background: var(--info-bg); color: var(--ink); font-size: 13px; overflow: hidden; max-width: 100%; }
.rs-chip > span:first-child { padding: 2px 4px 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-chip-x { display: inline-flex; align-items: center; padding: 0 4px; align-self: stretch; color: var(--mut); cursor: pointer; }
.rs-chip-x:hover { background: #ffbdad; color: #de350b; }
.rs-ind { display: flex; align-items: center; align-self: stretch; color: var(--mut); }
.rs-clear, .rs-chev { display: inline-flex; align-items: center; padding: 0 8px; height: 100%; cursor: pointer; }
.rs-clear:hover, .rs-chev:hover { color: var(--ink); }
.rs-clear[hidden], .rs-sep[hidden] { display: none; }
.rs-sep { width: 1px; align-self: stretch; margin: 8px 0; background: var(--line); }
.rs.open .rs-chev svg { transform: rotate(180deg); }
.rs-chev svg { transition: transform .15s; }
.rs-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.14); max-height: 300px; overflow-y: auto; padding: 4px 0; overscroll-behavior: contain; }
.rs.up .rs-menu { top: auto; bottom: calc(100% + 6px); }
.rs-opt { padding: 8px 12px; border-radius: 0; cursor: default; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rs-opt.focused { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.rs-opt.selected { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.rs-opt.selected::after { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.rs-opt.off { opacity: .45; }
.rs-empty { padding: 10px; text-align: center; color: var(--mut); font-size: 14px; }
.dirty .rs-control { border-color: var(--accent); }

/* checkboxes and radios: one consistent look everywhere (switches and card pickers keep their own) */
input[type=checkbox]:not([role=switch]):not([class*="vp-"]), input[type=radio]:not([class*="vp-"]) {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 18px; height: 18px; display: inline-grid; place-content: center;
  border: 1.5px solid color-mix(in srgb, var(--mut) 60%, var(--line)); background: var(--panel); cursor: pointer; vertical-align: middle;
  transition: background-color .12s, border-color .12s, box-shadow .12s;
}
input[type=checkbox]:not([role=switch]):not([class*="vp-"]) { border-radius: 5px; }
input[type=radio]:not([class*="vp-"]) { border-radius: 50%; }
input[type=checkbox]:not([role=switch]):not([class*="vp-"])::before {
  content: ""; width: 12px; height: 12px; background: var(--accent-ink); transform: scale(0); transition: transform .12s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3 3 6.6-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3 3 6.6-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
input[type=radio]:not([class*="vp-"])::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); transform: scale(0); transition: transform .12s; }
input[type=checkbox]:not([role=switch]):not([class*="vp-"]):checked, input[type=radio]:not([class*="vp-"]):checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:not([role=switch]):not([class*="vp-"]):checked::before, input[type=radio]:not([class*="vp-"]):checked::before { transform: scale(1); }
input[type=checkbox]:not([role=switch]):not([class*="vp-"]):hover:not(:disabled), input[type=radio]:not([class*="vp-"]):hover:not(:disabled) { border-color: var(--accent); }
input[type=checkbox]:not([role=switch]):not([class*="vp-"]):focus-visible, input[type=radio]:not([class*="vp-"]):focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
input[type=checkbox]:disabled, input[type=radio]:disabled { opacity: .5; cursor: default; }
.checks label, .inline { padding: 4px 0; line-height: 1.35; cursor: pointer; }
.checks { gap: 2px 18px; }
.radio-row label.inline { padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.radio-row label.inline:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.switch input:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.switch input { transition: background-color .15s; }
.switch input::after { box-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* calendar & availability */
.bad-text { color: var(--bad); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cal-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cal-next { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.icon-btn { font: inherit; width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--mut); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--soft); color: var(--accent); }
.icon-btn[aria-expanded="true"] { background: var(--soft); color: var(--accent); }
input[type=date] { font: inherit; width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); color-scheme: light dark; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.chip.open { background: var(--ok-bg); color: var(--ok); }
.chip.off { background: var(--bad-bg); color: var(--bad); }
.chip.booked { background: var(--soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.chip.busy { background: var(--info-bg); color: var(--mut); }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.agenda li:first-child { border-top: 0; }
.agenda li.closed .ag-day { color: var(--mut); }
.ag-day { font-weight: 600; font-size: 14px; }
.ag-chips { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .agenda li { grid-template-columns: 1fr; gap: 6px; }
  .cal-next { align-items: flex-start; text-align: left; }
}
.card-head > .btn { white-space: nowrap; flex: none; }
@media (max-width: 760px) {
  .cal-top { flex-direction: column; align-items: stretch; gap: 10px; }
  .cal-top p { margin-left: 0 !important; }
  .cal-next { flex-direction: row; gap: 8px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
}
.stack > .switch { display: flex; }
@media (max-width: 760px) {
  .banner { flex-wrap: wrap; }
  .banner > .btn { width: 100%; justify-content: center; }
}

/* availability */
.warn-text { color: var(--warn); }
.avail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.avail > .card, .avail-side > .card { margin-bottom: 0; }
.avail-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--top-h) + 16px); }
@media (max-width: 1180px) { .avail { grid-template-columns: minmax(0, 1fr); } .avail-side { position: static; } }
.avail-main { padding-bottom: 0; overflow: visible; }
.preset { width: 250px; flex: none; }
.avail-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -2px 0 6px; }
.meta-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mut); background: var(--bg); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.meta-pill.soft { border-style: dashed; }
.link-btn { font: inherit; font-size: 13px; background: none; border: 0; padding: 3px 4px; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.week { display: flex; flex-direction: column; margin: 0 -18px; }
.day-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); transition: background-color .15s; }
.day-row:hover { background: color-mix(in srgb, var(--soft) 45%, transparent); }
.day-row.err { background: color-mix(in srgb, var(--bad-bg) 60%, transparent); }
.day-row.err .rs-control { border-color: var(--bad); }
.day-name { display: flex; align-items: center; gap: 12px; min-height: 38px; }
.day-name b { display: block; font-size: 14.5px; line-height: 1.2; }
.day-name .small { display: block; line-height: 1.3; }
.day-row.off .day-name b { color: var(--mut); font-weight: 600; }
.day-switch { flex: none; }
.ranges { display: flex; flex-direction: column; gap: 8px; }
.range { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.range .rs { width: 132px; flex: none; }
.range-sep { color: var(--mut); font-size: 13px; }
.range-tools { display: inline-flex; gap: 2px; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
.tools-phone { display: none; }
.range-off { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.unavail { font-size: 13px; color: var(--mut); background: var(--info-bg); padding: 4px 12px; border-radius: 999px; }
.icon-btn.rm:hover { background: var(--bad-bg); color: var(--bad); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--mut); }
.copy-box { margin-top: 10px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; max-width: 460px; }
.save-bar { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 -18px; padding: 12px 18px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
/* week at a glance */
.glance { display: flex; flex-direction: column; gap: 7px; }
.gl-axis, .gl-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: center; }
.gl-ticks { position: relative; height: 14px; }
.gl-ticks span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--mut); }
.gl-ticks span:first-child { transform: none; } .gl-ticks span:last-child { transform: translateX(-100%); }
.gl-day { font-size: 12.5px; font-weight: 600; }
.gl-day.off { color: var(--mut); font-weight: 500; }
.gl-track { position: relative; height: 16px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.gl-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.gl-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 1px var(--panel); }
/* time off */
.off-list { list-style: none; margin: 0; padding: 0; }
.off-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.off-list li:first-child { border-top: 0; padding-top: 2px; }
.date-badge { width: 42px; flex: none; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); text-align: center; background: var(--panel); }
.date-badge small { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--bad); color: #fff; padding: 1px 0; }
.date-badge b { display: block; font-size: 16px; line-height: 24px; }
.off-empty { margin: 0; }
.off-form { padding: 12px; margin-bottom: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.off-form .field { margin-bottom: 10px; }
.off-form .range { margin-top: 8px; }
.off-form .range .rs { flex: 1; width: auto; }
.off-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 760px) {
  .card-head { flex-wrap: wrap; }
  .preset { width: 100%; }
  .day-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .range { flex-wrap: wrap; }
  .range .rs { width: auto; flex: 1 1 110px; }
  .day-body .range-tools { display: none; }
  .tools-phone { display: inline-flex; }
  .tools-phone .range-tools { border-left: 0; margin: 0; padding: 0; }
}

/* sidebar footer: account card + menu; collapse handle on the edge */
.side-foot { flex: none; position: relative; padding: 10px; border-top: 1px solid var(--line); }
.acct { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; text-align: left; transition: border-color .15s, background-color .15s; }
.acct:hover, .acct[aria-expanded="true"] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--soft); }
.acct-av { width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.acct-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.acct-txt b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-txt small { font-size: 12px; color: var(--mut); }
.acct-chev { color: var(--mut); flex: none; }
.acct-menu { position: absolute; left: 10px; right: 10px; bottom: calc(100% - 4px); z-index: 45; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.06); }
.acct-head { display: flex; flex-direction: column; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.acct-head b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-head small { font-size: 12px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; text-align: left; }
.acct-menu a:hover, .acct-menu button:hover, .acct-menu a:focus-visible, .acct-menu button:focus-visible { background: var(--soft); outline: none; }
.acct-menu .icon { color: var(--mut); }
.acct-menu .danger, .acct-menu .danger .icon { color: var(--bad); }
.acct-menu .danger:hover { background: var(--bad-bg); }
.acct-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.edge-toggle { position: absolute; top: 18px; right: -13px; z-index: 35; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--mut); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.08); opacity: 0; transition: opacity .15s, color .15s, border-color .15s, transform .18s; }
.side:hover .edge-toggle, .edge-toggle:focus-visible { opacity: 1; }
.edge-toggle:hover { color: var(--accent); border-color: var(--accent); }
body.nav-mini .edge-toggle { transform: rotate(180deg); opacity: 1; }
body.nav-mini .side-foot { padding: 10px 8px; }
body.nav-mini .acct { justify-content: center; padding: 6px; border-color: transparent; background: none; }
body.nav-mini .acct-chev { display: none; }
body.nav-mini .acct-menu { left: 8px; right: auto; width: 240px; bottom: 6px; left: calc(100% + 8px); }
@media (hover: none) { .edge-toggle { opacity: 1; } }
@media (max-width: 760px) { .edge-toggle { display: none; } .acct-menu { left: 10px; right: 10px; } }
body.nav-mini .acct-menu .lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
body.nav-mini .side .acct[aria-expanded="true"]::after { display: none; }

/* test playground */
.seg.sm button { padding: 4px 10px; font-size: 12.5px; }
.tc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.tc > .card { margin-bottom: 0; }
.tc-chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: calc(100vh - var(--top-h) - 150px); min-height: 520px; }
.tc-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tc-head b { font-size: 14.5px; }
.tc-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--accent-ink); background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #7b4dff)); flex: none; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-right: 6px; vertical-align: 1px; }
.tc-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--mut) 14%, transparent) 1px, transparent 0) 0 0 / 18px 18px, var(--bg); }
.tc-row { display: flex; }
.tc-row.user { justify-content: flex-end; }
.tc-bubble { max-width: min(78%, 560px); padding: 10px 14px; border-radius: 16px; line-height: 1.45; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.tc-row.user .tc-bubble { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; }
.tc-row.agent .tc-bubble { background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 5px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tc-row.agent .tc-bubble:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tc-row.agent .tc-bubble.sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.tc-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--mut); white-space: normal; }
.path-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.path-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.path-pill.ok { background: var(--ok-bg); color: var(--ok); }
.path-pill.warn { background: var(--warn-bg); color: var(--warn); }
.path-pill.bad { background: var(--bad-bg); color: var(--bad); }
.path-pill.info { background: var(--info-bg); color: var(--mut); }
.tc-play { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--mut); cursor: pointer; }
.tc-play:hover, .tc-play.on { color: var(--accent); border-color: var(--accent); }
.tc-play.wait { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.tc-bubble.typing { display: inline-flex; gap: 4px; padding: 14px 16px; cursor: default; }
.tc-bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mut); animation: blink 1.2s infinite; }
.tc-bubble.typing i:nth-child(2) { animation-delay: .2s; } .tc-bubble.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.tc-foot { border-top: 1px solid var(--line); padding: 10px 12px 8px; background: var(--panel); }
.tc-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.tc-chip { flex: none; font: inherit; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.tc-chip b { color: var(--accent); font-weight: 600; }
.tc-chip:hover { border-color: var(--accent); background: var(--soft); }
.tc-compose { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line); border-radius: 14px; padding: 7px 7px 7px 16px; background: var(--panel); cursor: text;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, box-shadow .15s; }
.tc-compose:hover { border-color: color-mix(in srgb, var(--mut) 45%, var(--line)); }
.tc-compose:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.tc-compose textarea.tc-input, .tc-compose textarea.tc-input:hover, .tc-compose textarea.tc-input:focus { flex: 1; min-height: 24px; max-height: 140px; border: 0; background: transparent; padding: 7px 0; resize: none; outline: none; box-shadow: none; line-height: 1.45; }
.tc-input::placeholder { color: var(--mut); opacity: .75; transition: opacity .15s, transform .15s; }
.tc-input:focus::placeholder { opacity: .4; transform: translateX(3px); }
.tc-send { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.tc-send:disabled { opacity: .5; cursor: default; }
.tc-hint { margin: 6px 2px 0; font-size: 11.5px; color: var(--mut); }
.tc-inspect { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow-y: auto; }
.tc-inspect h2 { margin: 0; }
.tc-inspect h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); margin: 4px 0 8px; }
.tc-summary { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.tc-total b { display: block; font-size: 26px; line-height: 1; }
.tc-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tc-bar-row { display: grid; grid-template-columns: 112px 1fr 18px; gap: 8px; align-items: center; }
.tc-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tc-bar i { display: block; height: 100%; border-radius: 999px; }
.tc-bar i.ok { background: var(--ok); } .tc-bar i.warn { background: var(--warn); } .tc-bar i.bad { background: var(--bad); } .tc-bar i.info { background: var(--mut); }
.tc-legend { display: flex; flex-direction: column; gap: 10px; }
.tc-legend > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.tc-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--mut); background: var(--info-bg); border-radius: 8px; padding: 9px 10px; margin: 0; }
.tc-verdict { border-radius: 10px; padding: 12px; border: 1px solid var(--line); }
.tc-verdict p { margin: 8px 0 0; }
.tc-verdict.ok { background: color-mix(in srgb, var(--ok-bg) 55%, transparent); }
.tc-verdict.warn { background: color-mix(in srgb, var(--warn-bg) 55%, transparent); }
.tc-verdict.bad { background: color-mix(in srgb, var(--bad-bg) 55%, transparent); }
dl.tc-kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; margin: 0; font-size: 13.5px; }
dl.tc-kv dt { color: var(--mut); } dl.tc-kv dd { margin: 0; word-break: break-word; }
.tc-sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tc-sources li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.src-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--soft); color: var(--accent); flex: none; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-improve { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.tc-improve label { margin: 4px 0 0; }
@media (max-width: 1100px) { .tc { grid-template-columns: minmax(0, 1fr); } .tc-inspect { position: static; max-height: none; } }
@media (max-width: 760px) { .tc-chat { height: calc(100dvh - var(--top-h) - 150px); min-height: 460px; } .tc-bubble { max-width: 88%; } .tc-head .seg { display: none; } }
/* website preview */
.tp { padding: 0; overflow: hidden; }
.tp-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tp-stage { display: flex; justify-content: center; padding: 28px; background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--mut) 18%, transparent) 1px, transparent 0) 0 0 / 18px 18px, var(--bg); }
.tp-frame { background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.12); overflow: hidden; display: flex; flex-direction: column; }
.tp-frame.desktop { width: 100%; max-width: 1100px; height: 640px; border-radius: 12px; }
.tp-frame.phone { width: 390px; max-width: 100%; height: 760px; border-radius: 40px; border: 10px solid #1d1f23; position: relative; }
.tp-frame iframe { flex: 1; width: 100%; border: 0; display: block; }
.tp-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef0f3; border-bottom: 1px solid #dfe2e6; }
.tp-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d7dc; }
.tp-bar i:nth-child(1) { background: #ff5f57; } .tp-bar i:nth-child(2) { background: #febc2e; } .tp-bar i:nth-child(3) { background: #28c840; }
.tp-bar span { margin-left: 12px; flex: 1; max-width: 360px; font-size: 12px; color: #5f6873; background: #fff; border-radius: 6px; padding: 3px 10px; }
.tp-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #1d1f23; border-radius: 0 0 14px 14px; z-index: 2; }
@media (max-width: 760px) { .tp-stage { padding: 12px; } .tp-frame.desktop { height: 560px; } }

/* ---------- inbox pages: leads, calls, conversations, unanswered ---------- */
.kpis.slim { margin-bottom: 14px; }
.kpis.slim .kpi { cursor: default; }
.kpis.slim .kpi:hover { transform: none; border-color: var(--line); }
.table-card { padding: 0; overflow: hidden; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tb-select { width: 170px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 38px; border: 1px solid color-mix(in srgb, var(--mut) 40%, var(--line)); border-radius: 8px; background: var(--panel); color: var(--mut); min-width: 240px; margin: 0; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search input { border: 0 !important; background: transparent !important; padding: 0 !important; height: 100%; outline: none; color: var(--ink); box-shadow: none; }
.ftabs { display: flex; gap: 2px; background: var(--info-bg); padding: 3px; border-radius: 9px; flex-wrap: wrap; }
.ftabs button { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--mut); cursor: pointer; white-space: nowrap; }
.ftabs button:hover { color: var(--ink); }
.ftabs button[aria-selected="true"] { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.fcount { font-size: 11px; font-weight: 600; min-width: 18px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--mut) 16%, transparent); color: inherit; text-align: center; line-height: 17px; }
.ftabs button[aria-selected="true"] .fcount { background: var(--accent); color: var(--accent-ink); }
.table-wrap { overflow-x: auto; }
table.dt { width: 100%; border-collapse: collapse; font-size: 14px; }
table.dt th { text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); padding: 10px 14px; background: color-mix(in srgb, var(--bg) 70%, var(--panel)); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.dt td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.dt tbody tr { cursor: pointer; transition: background-color .12s; }
table.dt tbody tr:hover, table.dt tbody tr.on { background: color-mix(in srgb, var(--soft) 70%, transparent); }
table.dt tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
table.dt tbody tr:last-child td { border-bottom: 0; }
.th-sort { font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.sort-ic { font-size: 9px; opacity: .6; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cell-person b { display: block; font-weight: 600; }
.cell-person > div > a, .cell-person > div > span { display: block; }
.cell-job { max-width: 340px; }
.clamp1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; }
.av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--panel)); }
.av.anon { color: var(--mut); background: var(--info-bg); }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.chan { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mut); white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 6px; white-space: nowrap; border: 1px solid transparent; }
.status-pill.info { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.status-pill.warn { background: var(--warn-bg); color: var(--warn); }
.status-pill.ok { background: var(--ok-bg); color: var(--ok); }
.status-pill.bad { background: var(--bad-bg); color: var(--bad); }
.status-pill.violet { background: color-mix(in srgb, #7b4dff 12%, transparent); color: color-mix(in srgb, #7b4dff 80%, var(--ink)); }
.status-pill.muted { background: var(--info-bg); color: var(--mut); }
.path-pill.live { background: var(--bad-bg); color: var(--bad); }
.path-pill.live::before { animation: pulse 1.2s ease-in-out infinite; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 48px 20px; }
.empty-state p { max-width: 380px; margin: 0 0 6px; }
.es-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--accent); margin-bottom: 6px; }
/* drawer */
.dr-wrap { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.dr-backdrop { position: absolute; inset: 0; background: rgba(10, 12, 16, .35); opacity: 0; transition: opacity .2s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0,0,0,.14); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; outline: none; }
.dr-wrap.open { pointer-events: auto; }
.dr-wrap.open .dr-backdrop { opacity: 1; }
.dr-wrap.open .drawer { transform: none; }
.dr-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dr-title { display: flex; align-items: center; gap: 14px; }
.dr-title h2 { margin: 0 0 4px; font-size: 18px; }
.dr-body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; }
.dr-section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dr-section:last-child { border-bottom: 0; }
.dr-section h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); margin: 0 0 10px; }
.dr-status { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dr-status label { margin: 0; color: var(--mut); font-weight: 500; }
.dr-status .rs { width: 180px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick .btn .icon { margin-right: 6px; }
.lead-summary { margin: 0; padding: 12px 14px; background: var(--bg); border-radius: 10px; border: 1px solid var(--line); line-height: 1.5; }
dl.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; }
dl.dgrid dt { font-size: 12px; color: var(--mut); }
dl.dgrid dd { margin: 2px 0 0; font-size: 14px; word-break: break-word; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-grid > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat-grid b { display: block; font-size: 15px; margin-top: 2px; }
.notes { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.note { padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 8px 8px 0; }
.note p { margin: 0 0 2px; white-space: pre-wrap; }
/* transcript */
.tx { display: flex; flex-direction: column; gap: 10px; }
.tx-row { display: flex; flex-direction: column; align-items: flex-start; max-width: 85%; }
.tx-row.user { align-self: flex-end; align-items: flex-end; }
.tx-bubble { padding: 9px 13px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; line-height: 1.45; font-size: 14px; border-bottom-left-radius: 4px; }
.tx-row.user .tx-bubble { background: var(--accent); color: var(--accent-ink); border-color: transparent; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.tx-meta { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--mut); margin-top: 4px; }
/* conversations inbox */
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - var(--top-h) - 130px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.ib-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.ib-tools { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.ib-tools .search { min-width: 0; }
.ib-tools .row { flex-wrap: nowrap; }
.ib-tools .tb-select { width: auto; min-width: 0; }
.ib-list { flex: 1; overflow-y: auto; }
.ib-item { display: flex; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; cursor: pointer; position: relative; }
.ib-item:hover { background: color-mix(in srgb, var(--soft) 60%, transparent); }
.ib-item[aria-current="true"] { background: var(--soft); }
.ib-item[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.ib-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--info-bg); color: var(--mut); }
.ib-av.lg { width: 42px; height: 42px; background: var(--soft); color: var(--accent); }
.ib-row1 { display: flex; justify-content: space-between; gap: 8px; }
.ib-row1 b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-prev { font-size: 13px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 2px 0 6px; }
.ib-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ib-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ib-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ib-head h2 { margin: 0; font-size: 16px; }
.ib-back { display: none; }
.ib-paths { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--panel)); }
.ib-tx { flex: 1; overflow-y: auto; padding: 18px; background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--mut) 12%, transparent) 1px, transparent 0) 0 0 / 18px 18px, var(--bg); }
.ib-tx .tx-bubble { background: var(--panel); }
.ib-tx .tx-row.user .tx-bubble { background: var(--accent); }
.ib-loading { padding: 20px; }
/* unanswered */
.bulk { padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.uq-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, var(--panel)); }
.uq-list { list-style: none; margin: 0; padding: 0; }
.uq { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-bottom: 1px solid var(--line); }
.uq:last-child { border-bottom: 0; }
.uq.sel { background: color-mix(in srgb, var(--soft) 70%, transparent); }
.uq > input[type=checkbox] { margin-top: 3px; }
.uq-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--info-bg); color: var(--mut); flex: none; margin-top: 2px; }
.uq-q { font-weight: 600; font-size: 15px; }
.uq-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--mut); margin-top: 4px; }
.count-pill { font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--info-bg); }
.count-pill.hot { background: var(--warn-bg); color: var(--warn); }
.uq-actions { display: flex; gap: 6px; flex: none; }
.uq-actions .btn .icon { margin-right: 5px; }
.uq-compose { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.uq-answer { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--ok); background: var(--bg); border-radius: 0 8px 8px 0; }
.uq-answer p { margin: 2px 0 0; }
@media (max-width: 900px) {
  .inbox { grid-template-columns: 1fr; height: calc(100dvh - var(--top-h) - 120px); }
  .inbox .ib-detail { display: none; }
  .inbox.show-detail .ib-side { display: none; }
  .inbox.show-detail .ib-detail { display: flex; }
  .ib-back { display: grid; }
}
@media (max-width: 760px) {
  .toolbar { padding: 10px; }
  .search { min-width: 0; flex: 1 1 100%; }
  .tb-select { flex: 1; width: auto; }
  .ftabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  table.dt th:nth-child(n+5), table.dt td:nth-child(n+5) { display: none; }
  .cell-job { max-width: 160px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  dl.dgrid { grid-template-columns: 1fr; }
  .uq { flex-wrap: wrap; }
  .uq-actions { width: 100%; justify-content: flex-end; }
}

/* toolbar: tabs on their own row, then search + filters filling the width */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tb-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tb-row .search { flex: 1 1 280px; min-width: 0; }
.tb-row .tb-select { width: 190px; flex: none; }
.ftabs { justify-self: start; }
.ib-tools .tb-select { width: 100%; }
@media (max-width: 760px) { .tb-row .tb-select { flex: 1 1 140px; width: auto; } }
.search input { flex: 1; width: 100%; min-width: 0; font: inherit; color: var(--ink); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- signed out: login / sign-up ---------- */
body.signed-out main { margin-left: 0; max-width: none; padding: 0; transition: none; }
body.signed-out main > * { max-width: none; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { padding: 56px 64px; color: #fff; background: radial-gradient(circle at 20% 10%, color-mix(in srgb, #7b4dff 55%, transparent), transparent 55%), linear-gradient(150deg, #1d3fa8, #2458d6 55%, #4b3fd1); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-brand h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; max-width: 480px; margin: 0; }
.auth-brand p { font-size: 16px; opacity: .9; max-width: 460px; margin: 0; line-height: 1.55; }
.auth-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 24px; }
.auth-logo .logo { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
.auth-points { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.auth-points .icon { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 10px 40px rgba(0,0,0,.06); }
.auth-card h2 { margin: 6px 0 4px; font-size: 20px; }
.auth-tabs { display: flex; width: 100%; margin-bottom: 14px; }
.auth-tabs button { flex: 1; justify-content: center; }
.btn.block { width: 100%; justify-content: center; display: flex; padding: 10px 14px; }
.center { text-align: center; }
.grid2.tight { gap: 0 12px; grid-template-columns: 1fr 1fr; }
.ref-note { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: 13.5px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 20px; gap: 10px; }
  .auth-brand h1 { font-size: 24px; }
  .auth-points, .auth-brand p { display: none; }
  .auth-logo { margin-bottom: 4px; }
  .auth-main { padding: 20px 16px 40px; place-items: start center; }
  .auth-card { padding: 20px; }
}
@media (max-width: 480px) { .grid2.tight { grid-template-columns: 1fr; } }

/* account menu: business switcher */
.acct-orgs-h { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); padding: 8px 10px 4px; }
.acct-av.sm { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.acct-menu #acct-orgs button.on { font-weight: 600; }

/* team */
table.dt.static tbody tr { cursor: default; }
table.dt.static tbody tr:hover { background: none; }
.invite { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.invite input[type=email] { flex: 2 1 220px; width: auto; }
.invite input[type=text] { flex: 1 1 160px; width: auto; }
.invite .tb-select { width: 140px; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.role-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); }
.role-card p { margin: 8px 0 0; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }

/* billing */
.notice { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); margin-bottom: 12px; font-size: 13.5px; }
.ok-text { color: var(--ok); }
.bill-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-bottom: 8px; }
.bill-top > .card { margin-bottom: 0; }
.bill-name { margin: 2px 0 0; font-size: 22px; }
.bill-price { font-size: 26px; font-weight: 700; margin: 10px 0 4px; letter-spacing: -.01em; }
.bill-price span { font-size: 14px; font-weight: 400; }
.discount { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ok); background: var(--ok-bg); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.bill-usage h3 { margin: 0 0 12px; }
.meter { margin-bottom: 12px; }
.meter .bar { height: 8px; margin-top: 6px; }
.bar.hot > i { background: var(--bad); }
.credit { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.plans-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }
.plans-head h2 { margin: 0; }
.seg .save { font-size: 10.5px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
.code-box { display: flex; gap: 6px; align-items: center; }
.code-box input { width: 150px; text-transform: uppercase; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.plan.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px color-mix(in srgb, var(--accent) 14%, transparent); }
.plan.current { background: color-mix(in srgb, var(--soft) 50%, var(--panel)); }
.plan h3 { margin: 0; font-size: 17px; }
.plan-tag { margin: 0; min-height: 36px; }
.plan-badge { position: absolute; top: -11px; left: 20px; font-size: 11px; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 3px 10px; border-radius: 999px; }
.plan-price b { font-size: 28px; letter-spacing: -.02em; }
.plan-was { color: var(--mut); font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-right: 8px; text-decoration-thickness: 2px; }
.plan-save { display: block; margin-top: 4px; color: var(--ok); font-size: 13px; font-weight: 600; }
.plan-feats { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; }
.plan-feats .icon { color: var(--ok); margin-top: 2px; }
.plan-feats li.lim { color: var(--mut); }
@media (max-width: 900px) { .bill-top { grid-template-columns: 1fr; } }

/* referrals */
.ref-hero { display: flex; flex-direction: column; gap: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel)); }
.ref-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ref-terms > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ref-terms p { margin: 2px 0 0; }
.ref-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--accent); flex: none; }
.ref-link { display: flex; gap: 8px; }
.ref-link input { flex: 1; min-width: 0; font-size: 15px; }
.toolbar h2 { margin: 0; }

/* live handover */
.count.live { background: var(--bad); color: #fff; }
.ib-live-h { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; color: var(--bad); background: var(--bad-bg); border-bottom: 1px solid var(--line); }
.live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s ease-in-out infinite; }
.ho-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ho-bar.waiting { background: var(--bad-bg); color: var(--bad); }
.ho-bar.waiting .small { color: inherit; opacity: .85; }
.ho-bar.active { background: color-mix(in srgb, #7b4dff 10%, var(--panel)); }
.ho-bar .btn .icon { margin-right: 6px; }
.ho-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.ho-compose textarea { flex: 1; min-height: 40px; max-height: 120px; resize: none; }
.tx-row.human .tx-bubble { background: color-mix(in srgb, #7b4dff 14%, var(--panel)); border-color: color-mix(in srgb, #7b4dff 35%, transparent); }

/* ---------- interaction states: quiet and consistent everywhere ---------- */
.btn { transition: background-color .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease; }
.btn:hover { border-color: color-mix(in srgb, var(--mut) 45%, var(--line)); background: color-mix(in srgb, var(--ink) 4%, var(--panel)); }
.btn:active:not(:disabled) { background: color-mix(in srgb, var(--ink) 8%, var(--panel)); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); border-color: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.primary:active:not(:disabled) { background: color-mix(in srgb, var(--accent) 80%, #000); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: transparent; color: var(--ink); }
.btn.danger:hover { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--bad); }
.btn:disabled:hover { background: var(--panel); border-color: var(--line); }
.btn.primary:disabled:hover { background: var(--accent); border-color: var(--accent); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
input[type=text], input[type=url], input[type=tel], input[type=number], input[type=password], input[type=email], input[type=date], textarea {
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease; }
input[type=text]:hover, input[type=url]:hover, input[type=tel]:hover, input[type=number]:hover, input[type=password]:hover, input[type=email]:hover, input[type=date]:hover, textarea:hover {
  border-color: color-mix(in srgb, var(--mut) 45%, var(--line)); }
input[type=text]:focus, input[type=url]:focus, input[type=tel]:focus, input[type=number]:focus, input[type=password]:focus, input[type=email]:focus, input[type=date]:focus, textarea:focus {
  outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.ftabs button { transition: background-color .12s ease, color .12s ease; }
.ftabs button:hover:not([aria-selected="true"]) { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.link-btn, .auth a { text-decoration: none; }
.link-btn:hover, .auth a:hover { text-decoration: underline; text-underline-offset: 3px; }
.radio-row label.inline { transition: border-color .12s ease, background-color .12s ease; }
.radio-row label.inline:hover:not(:has(input:checked)) { border-color: color-mix(in srgb, var(--mut) 45%, var(--line)); }
.form-error { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-size: 13.5px; line-height: 1.4; border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); }
.form-error .icon { flex: none; margin-top: 1px; }
input[aria-invalid="true"], input[aria-invalid="true"]:hover { border-color: var(--bad); }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); border-color: var(--bad); }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.auth-legal { display: flex; gap: 16px; justify-content: center; margin-top: 16px; font-size: 12.5px; }
.auth-legal a { color: var(--mut); }
.legal-note { margin: 0; }
.legal-note a { color: var(--mut); text-decoration: underline; text-underline-offset: 2px; }
.trial-start { display: flex; gap: 18px; align-items: flex-start; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.trial-start h2 { margin: 0 0 6px; font-size: 20px; }
.trial-start p { margin: 0 0 10px; }
.trial-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; }
.trial-points { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--mut); }
.trial-points li { display: flex; gap: 6px; align-items: center; }
.trial-points .icon { color: var(--ok); }
.trial-banner { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
@media (max-width: 600px) { .trial-start { flex-direction: column; } }
/* business profile: short fields side by side on wider screens */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: start; }
.pf-grid > .wide { grid-column: 1 / -1; }
.pf-grid > .field { min-width: 0; }
.site-row { display: flex; gap: 8px; }
.site-row input { flex: 1; min-width: 0; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } .site-row { flex-wrap: wrap; } }
/* office hours: summary on the profile + popup editor */
.hours-sum { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.hours-days { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 18px; }
.hours-days li { display: flex; gap: 10px; font-size: 14px; }
.hours-days li span { width: 34px; color: var(--mut); flex: none; }
.hours-days li.closed b { color: var(--mut); font-weight: 500; }
.hours-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hours-foot .btn .icon { margin-right: 6px; }
dialog.wide { width: min(640px, calc(100vw - 32px)); }
.hd > * + * { margin-top: 12px; }
.hd-week { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.hd-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hd-row.err { background: color-mix(in srgb, var(--bad-bg) 50%, transparent); }
.hd-day { padding-top: 8px; }
.hd-ranges { display: flex; flex-direction: column; gap: 6px; }
.hd-ranges .unavail { align-self: flex-start; margin-top: 6px; }
.hd-problem { grid-column: 2; margin: 0; }
.hd-follow { gap: 10px; align-items: flex-start; }
.hd-follow .help { margin-top: 2px; }
.meta-pill { text-decoration: none; }
a.meta-pill:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) { .hd-row { grid-template-columns: 1fr; } .hd-problem { grid-column: 1; } .range .rs { flex: 1 1 100px; width: auto; } }
/* profile rows: boxes line up even when only one field in a row has a hint */
.pf-grid { align-items: stretch; }
.pf-grid > .field { display: flex; flex-direction: column; }
.pf-grid > .field > input, .pf-grid > .field > textarea, .pf-grid > .field > .rs, .pf-grid > .field > .hours-sum { margin-top: auto; }
/* the dropdown's own search box never gets the text-input frame */
.rs .rs-input, .rs .rs-input:hover, .rs .rs-input:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; outline: none; }
/* forms in a grid: boxes line up even when only some fields have a hint; dropdowns match text boxes */
.grid2 { align-items: stretch; }
.grid2 > .field { display: flex; flex-direction: column; }
.grid2 > .field > input, .grid2 > .field > textarea, .grid2 > .field > .rs { margin-top: auto; }
.rs-control { min-height: 40px; }
/* security page */
.sec-card .card-head { margin-bottom: 14px; }
.sec-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; }
.sec-row + .sec-row { border-top: 1px solid var(--line); }
.sec-row p { margin: 2px 0 0; max-width: 640px; }
.sec-row > .btn { flex: none; }
.sec-row.domain b { font-weight: 600; }
.sec-add { display: flex; gap: 8px; margin-top: 12px; }
.sec-add input { flex: 1; min-width: 0; }
.sec-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sec-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin-bottom: 16px; }
.sec-meters .meter { margin: 0; }
.sec-limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.unit-input { position: relative; }
.unit-input input { padding-right: 82px; }
.unit-input .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--mut); pointer-events: none; }
.sec-ok { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--ok); }
@media (max-width: 760px) {
  .sec-meters, .sec-limits { grid-template-columns: 1fr; }
  .sec-row { flex-direction: column; align-items: flex-start; }
}

/* price ranges: minimum and maximum per service */
.pr-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); margin-top: 4px; }
.pr-head, .pr-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 18px 150px; gap: 10px; align-items: center; padding: 8px 14px; }
.pr-head { background: var(--bg); font-size: 12px; color: var(--mut); font-weight: 600; border-bottom: 1px solid var(--line); }
.pr-row + .pr-row { border-top: 1px solid var(--line); }
.pr-label { font-size: 14px; min-width: 0; }
.pr-to { color: var(--mut); font-size: 13px; text-align: center; }
.pr-box + .help { margin-top: 8px; }
.cur-input { position: relative; }
.cur-input .cur { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--mut); font-size: 14px; pointer-events: none; }
.cur-input input { padding-left: 26px; }
@media (max-width: 560px) {
  .pr-head { display: none; }
  .pr-row { grid-template-columns: 1fr 18px 1fr; row-gap: 6px; }
  .pr-label { grid-column: 1 / -1; font-weight: 550; }
}

/* wait before a job starts: job, from, to, unit */
.wt-head, .wt-row { display: grid; grid-template-columns: minmax(140px, 2fr) minmax(64px, .8fr) auto minmax(64px, .8fr) minmax(110px, 1fr) 34px; gap: 8px; align-items: center; }
.wt-head { font-size: 12px; color: var(--mut); font-weight: 600; margin: 4px 0; }
.wt-row { margin-bottom: 8px; }
.wt-rows > .btn { margin-top: 2px; }
.wt-del { padding: 6px; justify-content: center; }
@media (max-width: 560px) {
  .wt-head { display: none; }
  .wt-row { grid-template-columns: 1fr auto 1fr 34px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .wt-row > input:first-child { grid-column: 1 / -1; }
  .wt-row > select, .wt-row > .rs { grid-column: 1 / 4; }
}

/* Answer Bank: the profile facts a starter answer repeats */
.qa-facts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -2px 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--soft); }
.qa-facts .small { flex: 1; min-width: 200px; }

/* Leads board: one column per status, drag a card to move it */
.lb { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 12px; padding: 14px; overflow-x: auto; align-items: start; }
.lb-col { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-height: 220px; transition: border-color .12s, background-color .12s; }
.lb-col.over { border-color: var(--accent); background: var(--soft); }
.lb-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; }
.lb-count { font-size: 12px; font-weight: 600; color: var(--mut); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.lb-list { display: flex; flex-direction: column; gap: 8px; padding: 6px 8px 10px; flex: 1; }
.lb-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: box-shadow .12s, border-color .12s, opacity .12s; }
.lb-card[draggable="true"] { cursor: grab; }
.lb-card:hover { border-color: color-mix(in srgb, var(--mut) 40%, var(--line)); box-shadow: 0 3px 10px rgba(16, 24, 40, .08); }
.lb-card:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.lb-card.dragging { opacity: .45; }
.lb-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.lb-who { display: flex; flex-direction: column; min-width: 0; }
.lb-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-job { margin: 8px 0; font-size: 13px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lb-meta .small { margin-left: auto; }
.lb-empty { margin: 4px; padding: 18px 8px; text-align: center; font-size: 12.5px; color: var(--mut); border: 1px dashed var(--line); border-radius: 10px; }
@media (max-width: 700px) { .lb { grid-template-columns: repeat(5, 78vw); scroll-snap-type: x mandatory; } .lb-col { scroll-snap-align: start; } }

/* Settings: change password */
.pw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; align-items: end; }
@media (max-width: 760px) { .pw-grid { grid-template-columns: 1fr; } }

/* forgot / reset password */
.forgot-link { justify-self: end; align-self: flex-end; margin-top: -6px; font-size: 13px; }
.auth-done { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }

/* Business profile: the owner's own services */
.own-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.own-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px; border: 1px solid var(--line); }
.own-chip button { border: 0; background: none; color: var(--mut); cursor: pointer; padding: 2px; border-radius: 50%; display: inline-flex; }
.own-chip button:hover { color: var(--bad); background: var(--panel); }
.own-add { display: flex; gap: 8px; max-width: 520px; }
.own-add input { flex: 1; }

/* sign-up: confirm the email */
.code-input { font-size: 22px !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

/* platform admin viewing as a business */
.imp-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 24px); padding: 8px 8px 8px 14px; border-radius: 12px; background: #3d2c00; color: #fff3cf; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.imp-bar b { color: #fff; }
.imp-bar .btn { flex: none; background: #fff3cf; color: #3d2c00; border-color: transparent; }
body.imp .sticky-save { bottom: 64px; }
@media (max-width: 640px) { .imp-bar { left: 12px; right: 12px; transform: none; flex-wrap: wrap; } }

/* caller questions + required profile facts (app/questions.py) */
.cq-list{display:flex;flex-direction:column}
.cq-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.cq-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 280px}
.cq-text input{width:100%}
.cq-ctl{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.req-badge{display:inline-block;margin-left:8px;font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--accent,#2458d6);background:var(--info-bg);padding:2px 8px;border-radius:999px;vertical-align:middle}
.req-badge.missing{color:var(--bad,#b3261e);background:var(--bad-bg,#fbe7e5)}
.field.req-missing input,.field.req-missing select,.field.req-missing textarea{border-color:var(--bad,#b3261e)}
.req-banner{border-color:var(--bad,#b3261e)}
.req-banner h2{display:flex;align-items:center;gap:8px;color:var(--bad,#b3261e)}
.req-list{margin:8px 0 0;padding-left:20px;columns:2}
@media (max-width:760px){.req-list{columns:1}.cq-ctl{width:100%;justify-content:space-between}}


/* ===== log in / sign up: the landing page's look (dark navy, photo, glass card) ===== */
.auth {
  --bg: #060b1d; --panel: rgba(14,22,49,.86); --ink: #eef2fb; --mut: #8f9bba; --line: rgba(255,255,255,.1);
  --accent: #3b82f6; --accent-ink: #fff; --soft: rgba(59,130,246,.12); --info-bg: rgba(255,255,255,.05);
  --ok: #4ade80; --ok-bg: rgba(74,222,128,.12); --bad: #ff8a80; --bad-bg: rgba(255,138,128,.1); --warn-bg: rgba(242,193,78,.12);
  --shadow: none; color-scheme: dark;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: #060b1d; color: var(--ink);
}
.auth-brand { position: relative; isolation: isolate; overflow: hidden; padding: 56px clamp(40px, 6vw, 96px); gap: 22px;
  background: linear-gradient(90deg, #060b1d 0%, rgba(6,11,29,.92) 38%, rgba(6,11,29,.55) 70%, rgba(6,11,29,.85) 100%), url(/site/hero-woman.jpg) 70% 30% / cover no-repeat; }
.auth-brand::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 0% 100%, rgba(59,130,246,.25), transparent 70%); }
.auth-logo { font-size: 20px; font-weight: 750; letter-spacing: -.02em; margin-bottom: 40px; }
.auth-logo .logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: italic; font-weight: 800; background: linear-gradient(135deg, #3b82f6, #4f46e5); border: 0; box-shadow: 0 8px 22px -6px rgba(59,130,246,.7); }
.auth-kicker { margin: 0 !important; font-size: 14px !important; color: #7fb0ff; opacity: 1 !important; }
.auth-brand h1 { font-size: clamp(36px, 3.6vw, 54px); line-height: 1.05; letter-spacing: -.04em; font-weight: 650; max-width: 560px; }
.auth-brand h1 span { background: linear-gradient(180deg, #8fb8ff, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand p { color: #b9c3dc; opacity: 1; font-size: 17px; line-height: 1.65; max-width: 470px; }
.auth-points { gap: 14px; margin-top: 8px; }
.auth-points li { color: #dbe3f5; }
.auth-points .icon { background: rgba(59,130,246,.18); border: 1px solid rgba(127,176,255,.3); color: #9cc1ff; }
.auth-main { background: radial-gradient(70% 60% at 100% 0%, rgba(59,130,246,.16), transparent 70%), #060b1d; border-left: 1px solid rgba(255,255,255,.06); }
.auth-card { max-width: 460px; padding: 32px; border-radius: 22px; background: linear-gradient(180deg, rgba(20,31,66,.9), rgba(11,18,42,.92));
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 50px 100px -40px #000, inset 0 1px 0 rgba(255,255,255,.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.auth-card h2 { font-size: 24px; letter-spacing: -.02em; color: #fff; margin: 10px 0 6px; }
.auth-card label { color: #dbe3f5; font-weight: 600; }
.auth-card .help, .auth-card .muted { color: #8f9bba; }
.auth-tabs.ftabs { padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); margin-bottom: 20px; }
.auth-tabs.ftabs button { padding: 8px 12px; border-radius: 999px; color: #8f9bba; font-size: 14px; }
.auth-tabs.ftabs button[aria-selected="true"] { background: #2563eb; color: #fff; box-shadow: 0 6px 18px -6px rgba(37,99,235,.8); }
.auth input[type=text], .auth input[type=email], .auth input[type=password], .auth input[type=url], .auth input[type=tel] {
  padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.auth input::placeholder { color: #6f7a98; }
.auth input:hover { border-color: rgba(127,176,255,.3); }
.auth input:focus { outline: none; border-color: #3b82f6; background: rgba(59,130,246,.06); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.auth input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #101a3c inset; caret-color: #fff; }
.auth .btn.primary { padding: 13px 18px; border-radius: 999px; border: 0; font-size: 15.5px; background: linear-gradient(180deg, #4b8dff, #2563eb); box-shadow: 0 12px 28px -10px rgba(37,99,235,.9), inset 0 1px 0 rgba(255,255,255,.2); }
.auth .btn.primary:hover { filter: brightness(1.08); }
.auth .btn:not(.primary) { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #eef2fb; }
.auth a { color: #9cc1ff; }
.auth-legal a { color: #6f7a98; }
.auth :focus-visible { outline-color: #3b82f6; }
@media (max-width: 860px) {
  .auth-brand { padding: 32px 20px 28px; background: linear-gradient(180deg, rgba(6,11,29,.7), #060b1d), url(/site/hero-woman.jpg) 70% 25% / cover no-repeat; }
  .auth-brand h1 { font-size: 30px; }
  .auth-logo { margin-bottom: 12px; }
  .auth-main { border-left: 0; }
  .auth-card { padding: 22px; }
}
.auth-brand .auth-kicker { color: #7fb0ff; }
.opt { font-weight: 400; font-size: 12px; color: var(--mut); margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--info-bg); }


/* ===== dashboard: the landing page's finish (type, pills, cards, navy in dark) ===== */
body { -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
main h1, .page-h h1 { font-size: 28px; letter-spacing: -.03em; font-weight: 700; }
h2 { letter-spacing: -.015em; }
.btn { border-radius: 999px; padding: 8px 16px; font-weight: 550; transition: background .15s, border-color .15s, box-shadow .15s, filter .15s; }
.btn.primary { border: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent)); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.sm { padding: 5px 12px; }
.card { border-radius: 16px; }
input[type=text], input[type=url], input[type=tel], input[type=number], input[type=password], input[type=email], input[type=search], textarea, select {
  border-radius: 10px; padding: 9px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.logo { background: linear-gradient(135deg, #3b82f6, #4f46e5); font-style: italic; font-weight: 800; box-shadow: 0 6px 16px -6px rgba(59,130,246,.7); }
.side a { border-radius: 10px; }
/* dark: the same navy depth as the landing page */
:root[data-theme="dark"] body { background: radial-gradient(1200px 600px at 100% -10%, rgba(59,130,246,.10), transparent 60%), var(--bg); background-attachment: fixed; }
:root[data-theme="dark"] .card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), var(--panel); }
:root[data-theme="dark"] .side, :root[data-theme="dark"] .top { background: color-mix(in srgb, #070d22 92%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { background: radial-gradient(1200px 600px at 100% -10%, rgba(59,130,246,.10), transparent 60%), var(--bg); background-attachment: fixed; }
  :root:not([data-theme="light"]) .card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)), var(--panel); }
  :root:not([data-theme="light"]) .side, :root:not([data-theme="light"]) .top { background: color-mix(in srgb, #070d22 92%, transparent); }
}

/* Settings: Appearance picker */
.theme-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.theme-opt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font: inherit; color: var(--ink); text-align: left; transition: border-color .15s, box-shadow .15s; }
.theme-opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.theme-opt[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.theme-opt b { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; padding: 0 4px 2px; }
.theme-opt b i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.theme-opt[aria-checked="true"] b i { border: 5px solid var(--accent); }
.thp { height: 84px; border-radius: 9px; overflow: hidden; display: grid; grid-template-columns: 28% 1fr; border: 1px solid rgba(127,140,170,.25); }
.thp > span { display: block; }
.thp .thp-side { padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; }
.thp .thp-side i { display: block; height: 5px; border-radius: 3px; }
.thp .thp-main { padding: 9px; display: flex; flex-direction: column; gap: 6px; }
.thp .thp-main i { display: block; height: 18px; border-radius: 6px; }
.thp .thp-main i:first-child { height: 7px; width: 55%; border-radius: 3px; }
.thp.l { background: #f5f7fb; } .thp.l .thp-side { background: #fff; border-right: 1px solid #e4e9f2; } .thp.l .thp-side i { background: #e4e9f2; } .thp.l .thp-side i:first-child { background: #2563eb; }
.thp.l .thp-main i { background: #fff; border: 1px solid #e4e9f2; } .thp.l .thp-main i:first-child { background: #0d1530; border: 0; }
.thp.d { background: #060b1d; } .thp.d .thp-side { background: #0a1129; border-right: 1px solid rgba(255,255,255,.08); } .thp.d .thp-side i { background: rgba(255,255,255,.1); } .thp.d .thp-side i:first-child { background: #3b82f6; }
.thp.d .thp-main i { background: #0d152f; border: 1px solid rgba(255,255,255,.08); } .thp.d .thp-main i:first-child { background: #eef2fb; border: 0; }
.thp.s { grid-template-columns: 1fr 1fr; } .thp.s > .thp { display: grid; border: 0; border-radius: 0; height: 100%; }
@media (max-width: 560px) { .theme-pick { grid-template-columns: 1fr; } }


/* ===== closer to the landing page (dark is the default) ===== */
:root[data-theme="dark"] .top { background: rgba(6,11,29,.72); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .side { background: rgba(7,13,34,.85); border-right-color: rgba(255,255,255,.07); }
:root[data-theme="dark"] .side a { color: #c6d0e6; }
:root[data-theme="dark"] .side a:hover { background: rgba(255,255,255,.04); color: #fff; }
:root[data-theme="dark"] .side a[aria-current="page"] { color: #fff; background: linear-gradient(90deg, rgba(59,130,246,.22), rgba(59,130,246,.06)); box-shadow: inset 0 0 0 1px rgba(127,176,255,.18); }
:root[data-theme="dark"] .side a[aria-current="page"] .icon { color: #9cc1ff; }
:root[data-theme="dark"] .side-h { color: #6f7a98; letter-spacing: .12em; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .kpi { border-color: rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)), #0b132c; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 30px 60px -45px #000; }
:root[data-theme="dark"] .kpi:hover { border-color: rgba(127,176,255,.35); }
:root[data-theme="dark"] .kpi-val { background: linear-gradient(180deg, #fff 30%, #9cc1ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .kpi-ic { background: rgba(127,176,255,.1); border: 1px solid rgba(127,176,255,.18); color: #9cc1ff; }
:root[data-theme="dark"] main h1 { background: linear-gradient(180deg, #fff 40%, #c9dbff); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .muted { color: #8f9bba; }
:root[data-theme="dark"] .ftabs { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; }
:root[data-theme="dark"] .ftabs button { border-radius: 999px; }
:root[data-theme="dark"] .ftabs button[aria-selected="true"] { background: #2563eb; color: #fff; box-shadow: 0 6px 16px -6px rgba(37,99,235,.8); }
:root[data-theme="dark"] .btn:not(.primary):not(.ghost) { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
:root[data-theme="dark"] .btn:not(.primary):not(.ghost):hover { border-color: rgba(127,176,255,.4); }
:root[data-theme="dark"] input[type=text], :root[data-theme="dark"] input[type=url], :root[data-theme="dark"] input[type=tel], :root[data-theme="dark"] input[type=number],
:root[data-theme="dark"] input[type=password], :root[data-theme="dark"] input[type=email], :root[data-theme="dark"] input[type=search], :root[data-theme="dark"] textarea, :root[data-theme="dark"] select {
  background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.1); }
:root[data-theme="dark"] .imp-bar .btn.btn.btn { background: #fff3cf; color: #3d2c00; border-color: transparent; }


/* pause + cancel steps */
dialog.flow { width: min(560px, calc(100vw - 24px)); border-radius: 20px; }
dialog.flow .dialog-body { padding: 26px; }
.flow-steps { display: flex; align-items: center; gap: 6px; }
.flow-steps i { width: 26px; height: 4px; border-radius: 2px; background: var(--line); }
.flow-steps i.on { background: var(--accent); }
.flow-steps span { margin-left: 8px; }
.flow-foot { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.reasons { display: flex; flex-direction: column; gap: 8px; }
.reason { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.reason:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.reason:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.offer { display: flex; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--soft); }
.offer.compact { background: transparent; border-color: var(--line); }
.offer b { display: block; font-size: 15px; margin-bottom: 4px; }
.offer p { margin: 0 0 10px; }
.offer .row { margin-top: 10px; }
.offer-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.pause-len { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--info-bg); }
.pause-len button { font: inherit; font-size: 13px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--mut); cursor: pointer; }
.pause-len button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.flow-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.flow-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.flow-facts li > svg, .flow-facts li > .icon { flex: none; margin-top: 3px; color: var(--accent); }
.btn.danger-solid { background: var(--bad); color: #fff; border: 0; box-shadow: none; }


/* plan settings (gear) */
.icon-btn.manage-plan { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--mut); cursor: pointer; }
.icon-btn.manage-plan:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.manage .mp-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.manage .mp-row b { display: block; font-size: 15px; margin-bottom: 2px; }
.manage .mp-row.rec { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--soft); }
.manage .mp-row.end-zone { border-style: dashed; }
.rec-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--accent); color: var(--accent-ink); vertical-align: 2px; }
.mp-stat { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); font-size: 14px; }
.mp-stat > svg, .mp-stat > .icon { flex: none; margin-top: 2px; color: var(--accent); }
.btn.danger-solid:disabled { opacity: .45; }
.btn.ghost.danger { color: var(--bad); }
:root .btn.danger-solid.danger-solid, :root[data-theme="dark"] .btn.danger-solid.danger-solid { background: #dc2626; color: #fff; border: 0; }

/* Overview: Your website card */
.ov-web .web-head { align-items: center; }
.ov-web .web-head a { text-decoration: none; }
.ov-web { margin-bottom: 12px; }


/* save bar: a floating bar aligned with the page's cards (not stretched past them) */
.sticky-save { position: sticky; bottom: 16px; margin: 16px auto 0; box-sizing: border-box; padding: 12px 12px 12px 20px; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.55); }
.sticky-save .btn { padding: 9px 20px; }
:root[data-theme="dark"] .sticky-save { background: rgba(13,21,47,.86); border-color: rgba(255,255,255,.1); }
@media (max-width: 760px) { .sticky-save { margin: 12px auto 0; bottom: 10px; } }
body.imp .sticky-save { bottom: 76px; }

/* Assistant identity */
.idn-fixed { display: flex; flex-direction: column; }
.idn-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.idn-row span { color: var(--mut); }
@media (max-width: 760px) { .idn-row { grid-template-columns: 1fr; gap: 4px; } }

/* Business profile: check what we read on your website */
.review .rv-item { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.review .rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review .rv-top b { font-size: 15px; }
.rv-tag { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--accent); white-space: nowrap; }
.rv-tag.warn { background: var(--warn-bg); color: var(--warn); }
.rv-text { margin: 0; }
.rv-quote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 4px 10px 10px 4px; background: var(--info-bg); font-size: 14px; line-height: 1.55; }
.rv-quote mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }
.rv-quote cite { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-style: normal; font-size: 12.5px; color: var(--mut); }
.rv-quote cite a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }

/* Your assistant: Identity | Voice & tone */
.asst-tabs { display: inline-flex; margin-bottom: 18px; }
.asst-tabs button { padding: 7px 16px; font-size: 14px; }

/* Your assistant: one rhythm for both tabs (title -> tabs -> tab intro -> cards) */
.asst-page .asst-head { margin: 0 0 20px; }
.asst-page .asst-head h1 { margin: 0 0 6px; }
.asst-page .asst-head p { margin: 0; }
.asst-page .asst-tabs { margin: 0 0 18px; }
.asst-page .asst-tabs + div > .spread:first-child { margin: 0 0 18px !important; }
.asst-page .asst-tabs + div > .spread:first-child p { margin: 0; font-size: 14.5px; }
.asst-page section.card, .asst-page .vp-sum, .asst-page .vp-section {
  padding: 24px 26px; margin: 0 0 16px; border-radius: 18px; }
.asst-page section.card h2, .asst-page .vp-section h2 { margin-top: 0; }
.asst-page .vp > .sr-only { margin: 0; }
@media (max-width: 760px) { .asst-page section.card, .asst-page .vp-sum, .asst-page .vp-section { padding: 18px; } }

/* the save bar always rests at the bottom of the window: on a short page it's pushed down,
   on a long page it sticks while you scroll */
main { display: flex; flex-direction: column; min-height: calc(100vh - var(--top-h)); }
main > * { width: 100%; }
main > .sticky-save { margin-top: auto; }
/* the bar can sit inside a wrapper (e.g. a tab's box): every wrapper between the page and the bar grows too */
main :has(.sticky-save):not(.sticky-save) { display: flex; flex-direction: column; flex: 1 0 auto; }
main :has(> .sticky-save) > .sticky-save { margin-top: auto; }
main > .sticky-save::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }
main > :nth-last-child(2):not(.sticky-save) { margin-bottom: 16px; }

/* the bar always spans the content width (auto side margins would shrink it in a column layout) */
.sticky-save { width: 100%; max-width: var(--content-w); align-self: center; }
/* compact controls placed straight in the page keep their natural width */
main > .ftabs, main > .seg, main > .asst-tabs { width: auto; align-self: flex-start; margin-left: 0; }


/* one content column for every page: title, tabs, cards and save bar share the same left and right edges */
:root { --content-w: 1600px; }
main > .ftabs, main > .seg, .asst-page main > .asst-tabs, main.asst-page > .asst-tabs {
  margin-left: max(0px, calc((100% - var(--content-w)) / 2)) !important; margin-right: auto !important; }
main.asst-page > .asst-head { width: 100%; max-width: var(--content-w); margin: 0 auto 20px !important; }

/* Branding: logo picker */
.lp-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-pick { display: flex; gap: 12px; }
.lp-empty { width: 220px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  border: 1.5px dashed color-mix(in srgb, var(--mut) 45%, transparent); border-radius: 14px; background: var(--info-bg); cursor: pointer; transition: border-color .15s, background .15s; }
.lp-empty:hover { border-color: var(--accent); background: var(--soft); }
.lp-empty b { font-size: 13.5px; color: var(--ink); }
.lp-empty span:last-child { font-size: 12px; color: var(--mut); }
.lp-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--soft); color: var(--accent); margin-bottom: 4px; }
.lp-tile { margin: 0; width: 150px; display: flex; flex-direction: column; gap: 6px; }
.lp-tile img { width: 150px; height: 84px; object-fit: contain; padding: 12px; border-radius: 12px; border: 1px solid var(--line); box-sizing: border-box; }
.lp-tile.white img { background: #fff; }
.lp-tile.brand img { background: var(--brand, var(--accent)); }
.lp-tile figcaption { font-size: 12px; color: var(--mut); text-align: center; }
.lp-actions { display: flex; gap: 8px; align-items: center; }
.lp-actions .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* brand colour swatch: one clean rounded chip */
.color-swatch { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: none; -webkit-appearance: none; appearance: none; }
.color-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.color-swatch::-webkit-color-swatch { border: 0; border-radius: 11px; }
.color-swatch::-moz-color-swatch { border: 0; border-radius: 11px; }

/* logo as a round badge everywhere (matches the chat widget) */
.lp-tile { width: 110px; align-items: center; }
.lp-tile img { width: 96px; height: 96px; padding: 16px; border-radius: 50%; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.lp-empty { width: 96px; height: 96px; border-radius: 50%; padding: 6px; }
.lp-empty b { font-size: 12px; }
.lp-empty span:last-child { display: none; }
.lp-ic { width: 28px; height: 28px; border-radius: 50%; margin-bottom: 2px; }
.bp-logo { width: 34px; height: 34px; max-width: none; border-radius: 50%; background: #fff; padding: 5px; box-sizing: border-box; object-fit: contain; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.bp-launch img { background: #fff; border-radius: 50%; padding: 9px; box-sizing: border-box; }
.lp-tile img { padding: 11px; }

/* logo editor */
.le-stage { display: grid; place-items: center; padding: 18px; border-radius: 16px;
  background: repeating-conic-gradient(color-mix(in srgb, var(--mut) 18%, transparent) 0 25%, transparent 0 50%) 0 0 / 16px 16px, var(--info-bg); }
.le-canvas { width: 300px; height: 300px; max-width: 100%; border-radius: 50%; cursor: grab; touch-action: none; box-shadow: 0 0 0 2px var(--accent), 0 20px 40px -20px rgba(0,0,0,.6); }
.le-canvas.grabbing { cursor: grabbing; }
.le-canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.le-zoom { display: flex; align-items: center; gap: 12px; }
.le-zoom input[type=range] { flex: 1; accent-color: var(--accent); }
.lp-ic svg { width: 16px; height: 16px; stroke: currentColor; color: var(--accent); }
.lp-ic .icon { display: grid; place-items: center; color: var(--accent); }

/* Business profile: Where you work */
.area-card .field { margin-bottom: 18px; }
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 46px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: text; }
.tags:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.tags input { flex: 1; min-width: 220px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 6px 4px !important; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 8px; border-radius: 999px; background: var(--soft); font-size: 13.5px; }
.tag em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); }
.tag.code { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.tag button { border: 0; background: transparent; color: var(--mut); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 50%; }
.tag button:hover { color: var(--ink); background: rgba(127,140,170,.2); }
.radius-row { display: flex; gap: 8px; align-items: center; }
.radius-row input { width: 110px !important; }
.radius-row select { width: auto !important; }
.area-card .seg { margin-bottom: 10px; }
.area-test { margin-top: 6px; padding: 16px; border-radius: 14px; background: var(--info-bg); border: 1px solid var(--line); }
.area-test .row input { flex: 1; min-width: 200px; }
.area-reply { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.area-reply:empty { display: none; }
.ar-q { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.ar-a { align-self: flex-start; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
@media (max-width: 760px) { .area-grid { grid-template-columns: 1fr; } }

.lp-empty span:last-child { display: initial; } .lp-empty > span:last-child { display: none; }
.lp-ic .icon { display: grid !important; }
.area-card .radius-row select { flex: 0 0 auto; width: 110px !important; }
.area-card .radius-row span { white-space: nowrap; }
.area-card .radius-row .rs { flex: 0 0 auto; width: 120px; display: inline-block; }
.area-card .radius-row .rs select { width: 100% !important; }

/* Branding live preview: a taller chat window, like the real one */
.bp-stage { height: 580px; }
.bp-panel { top: 16px; bottom: 84px; display: flex; flex-direction: column; }
.bp-log { flex: 1; overflow: hidden; }

/* price ranges: keep the currency sign clear of the typed number (the theme's input padding was overriding it) */
.cur-input > input[type=text] { padding-left: 30px; width: 100%; }
.cur-input .cur { left: 13px; line-height: 1; }

/* the Reyoz mark: always-on ring on the site's gradient tile */
.logo { background: linear-gradient(135deg, #60a5fa, #2563eb 55%, #4f46e5); }
.logo svg { width: 100%; height: 100%; display: block; }

/* first load: a quiet loader until we know who's signed in */
.boot-load { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.boot-load .btn { min-width: 160px; }
.boot-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent, #3b82f6); animation: boot-spin .8s linear infinite; }
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-spin { animation-duration: 2.4s; } }
