/* RecommendAI account — light theme v2. Loaded last; restyles only, no layout logic changed. */

@font-face { font-family: "Geologica"; src: url("/v2/fonts/geologica-cyrillic-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; src: url("/v2/fonts/geologica-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; src: url("/v2/fonts/golos-text-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url("/v2/fonts/golos-text-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url("/v2/fonts/golos-text-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url("/v2/fonts/golos-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; src: url("/v2/fonts/golos-text-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; src: url("/v2/fonts/golos-text-latin-600-normal.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* brand, shared with recommendai.ru */
  --field: #0b3531;
  --signal: #f2c94c;
  --signal-hover: #f8d86f;
  --on-signal: #1b1a10;
  --teal: #00796e;
  --teal-strong: #005c53;
  --teal-soft: #e3f2ed;
  --teal-softer: #f1f8f5;

  /* light workspace */
  --paper: #f5f7f5;
  --surface: #ffffff;
  --surface-2: #eef2ef;
  --ink: #15201d;
  --quiet: #55625c;
  --muted: #55625c;
  --line: #e0e7e2;
  --line-strong: #c9d4cd;
  --error: #a3283c;
  --error-soft: #fdf1f3;
  --ok: #1d6b45;
  --ok-soft: #e8f5ec;

  /* old tokens, mapped to the new palette so untouched rules follow along */
  --accent: var(--signal);
  --accent-hover: var(--signal-hover);
  --accent-text: var(--teal);
  --accent-edge: var(--teal);
  --accent-glow: transparent;
  --graphite: var(--field);
  --graphite-light: #145a52;
  --on-graphite: #dcebe6;

  --display: "Geologica", "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --shadow-1: 0 1px 2px rgb(16 40 34 / 0.05), 0 2px 8px -4px rgb(16 40 34 / 0.08);
  --shadow-2: 0 12px 32px -16px rgb(16 40 34 / 0.28), 0 2px 6px rgb(16 40 34 / 0.06);

  font-family: var(--text);
  accent-color: var(--teal);
  scrollbar-color: #b9c6bf var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--teal);
}
::selection { background: #f7e3a2; color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 2.6vw, 2.3rem); line-height: 1.1; margin-bottom: 22px; }
h2 { font-size: 1.25rem; line-height: 1.25; }
h3 { font-size: 1.05rem; line-height: 1.3; }
p { color: var(--quiet); text-wrap: pretty; }
small { color: var(--quiet); }

/* ---------- Top bar ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  height: 60px;
  background: rgb(255 255 255 / 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.brand { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.brand span { color: var(--teal); }
.site-link {
  min-height: 36px; padding: 4px 10px 4px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 0.86rem; font-weight: 600;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.site-link-arrow { color: var(--teal); }
@media (hover: hover) and (pointer: fine) {
  .site-link:hover { background: var(--teal-softer); border-color: var(--line-strong); }
}

/* ---------- Shell & sidebar ---------- */

.shell { grid-template-columns: 236px minmax(0, 1fr); gap: 40px; padding-top: 28px; }
.sidebar { top: 84px; gap: 10px; }
.eyebrow {
  margin: 0 0 4px 12px;
  color: var(--quiet); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: none;
}
nav { gap: 2px; }
nav a {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 8px 12px;
  border-radius: 10px;
  color: #2f3b36; font-size: 0.95rem; font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease;
}
nav a::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: currentColor; opacity: 0.55;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
}
nav a:hover, .quiet:hover { background: var(--surface-2); }
nav a[aria-current] {
  background: var(--surface); color: var(--teal-strong); font-weight: 600;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}
nav a[aria-current]::before { opacity: 1; background: var(--teal); }

/* section icons, drawn as masks so the markup stays untouched */
nav a[href$="dashboard"] { --nav-icon: url("/v2/icons/dashboard.svg"); }
nav a[href$="knowledge"] { --nav-icon: url("/v2/icons/knowledge.svg"); }
nav a[href$="forwarding"] { --nav-icon: url("/v2/icons/forwarding.svg"); }
nav a[href$="recordings"] { --nav-icon: url("/v2/icons/recordings.svg"); }
nav a[href$="setup"] { --nav-icon: url("/v2/icons/setup.svg"); }
nav a[href$="company"] { --nav-icon: url("/v2/icons/company.svg"); }
nav a[href$="billing"] { --nav-icon: url("/v2/icons/billing.svg"); }
nav a[href$="security"] { --nav-icon: url("/v2/icons/security.svg"); }
nav a[href$="support"] { --nav-icon: url("/v2/icons/support.svg"); }
nav a[href$="admin"] { --nav-icon: url("/v2/icons/admin.svg"); }
nav a[href$="admin-invoices"] { --nav-icon: url("/v2/icons/admin-invoices.svg"); }
nav a[href$="admin-errors"] { --nav-icon: url("/v2/icons/admin-errors.svg"); }

.support-badge {
  min-width: 1.3rem; height: 1.3rem; margin-left: auto; padding: 0 6px;
  border-radius: 999px; background: var(--signal); color: var(--on-signal);
  font: 700 0.72rem/1 var(--text);
}
.account {
  gap: 8px; margin-top: 6px; padding: 14px 12px 0;
  border-top: 1px solid var(--line);
}
.account small { font-size: 0.85rem; }
.account .quiet { justify-self: start; }

/* ---------- Surfaces ---------- */

.panel, .metrics > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
  padding: clamp(18px, 2.2vw, 28px);
}
.panel { margin-bottom: 16px; }
.panel > h2:first-child, .panel > section > h2:first-child { margin-bottom: 0.6em; }
.metrics { gap: 14px; margin-bottom: 16px; }
.metrics > div > span:first-child, .metrics > div > small:first-child { font-size: 0.85rem; }
.metrics strong {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -0.03em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.support-banner {
  background: linear-gradient(0deg, var(--teal-softer), var(--teal-softer)), var(--surface);
  border-color: #cfe5dd;
}
.support-banner h2 { font-size: 1.2rem; }

.notice {
  padding: 12px 16px; border-radius: var(--r-m);
  background: var(--ok-soft); color: var(--ok);
  border: 1px solid #cfe6d7;
}
.notice.error { background: var(--error-soft); border-color: #f0c9d0; color: var(--error); }

.pill {
  background: var(--surface-2); color: #33413b;
  font-size: 0.75rem; font-weight: 600; padding: 0.3em 0.7em;
}

.key {
  border: 1px dashed var(--line-strong); border-radius: var(--r-s);
  background: var(--teal-softer);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9rem;
}

/* ---------- Forms ---------- */

label { font-size: 0.88rem; font-weight: 600; color: #26332e; gap: 6px; }
input, textarea, select {
  min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink);
  font-family: var(--text); font-size: 0.95rem; font-weight: 400;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea { line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 36px;
  background: var(--surface) url("/v2/icons/chevron.svg") no-repeat right 10px center / 16px;
}
input[type="checkbox"], input[type="radio"] { min-height: 0; padding: 0; box-shadow: none; }
input:hover, textarea:hover, select:hover { border-color: #a9b8b0; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(0 121 110 / 0.16);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
input:disabled, textarea:disabled, select:disabled { background: var(--surface-2); color: var(--quiet); }
::placeholder { color: #8a9690; }

button, .button {
  min-height: 42px; padding: 9px 18px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--signal); color: var(--on-signal);
  font-family: var(--text); font-size: 0.93rem; font-weight: 600;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
button:hover, .button:hover { filter: none; background: var(--signal-hover); }
button:active, .button:active { transform: scale(0.97); }
button:disabled, .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.quiet, button.quiet, .button.quiet {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-strong);
}
.quiet:hover, button.quiet:hover, .button.quiet:hover { background: var(--surface-2); border-color: #a9b8b0; }

.actions { gap: 10px; }
.row { padding: 14px 0; border-top-color: var(--line); }
.client { border-top-color: var(--line); }
summary { font-weight: 600; color: var(--ink); }
summary::marker { color: var(--teal); }

p.info-note { color: var(--quiet); font-size: 0.86rem; }

/* ---------- Dashboard voice demo ---------- */

.demo { border-radius: var(--r-l); border-color: var(--line); box-shadow: var(--shadow-1); }
.demo h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.demo-status::before { background: var(--teal); }
.voice-fields label { color: var(--quiet); font-weight: 600; font-size: 0.82rem; }
.voice-fields select { border-color: var(--line-strong); }
.voice-preview { border-color: var(--line); border-radius: var(--r-m); background: var(--teal-softer); }
.wave i { background: var(--teal); }
.wave i:nth-child(n+19) { background: #b7cbc4; }
.demo-play { min-height: 40px; padding-inline: 14px 16px; }
.demo-scenarios { background: var(--teal-softer); border-color: #d5e9e1; border-radius: var(--r-m); }
.demo [data-scenario] {
  min-height: 34px; padding: 6px 12px;
  border-radius: 999px; border-color: var(--line-strong);
  background: var(--surface); color: #2f3b36; font-weight: 500;
}
.demo [data-scenario]:hover { background: var(--surface); border-color: var(--teal); }
.demo [aria-pressed=true] { background: var(--teal); border-color: var(--teal); color: #fff; }
.demo [aria-pressed=true]:hover { background: var(--teal-strong); }
.dialogue {
  border-inline-start: 0; border-radius: 4px 14px 14px 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}

/* usage bars */
.usage progress, .usage progress::-webkit-progress-bar { background: var(--surface-2); }
.usage progress::-webkit-progress-value { background: var(--teal); }
.usage progress::-moz-progress-bar { background: var(--teal); }

/* ---------- Lists, documents, calls ---------- */

.document {
  border-color: var(--line); border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color 150ms ease;
}
.document[open] { border-color: var(--line-strong); }
.workspace-entry { border-top-color: var(--line); }
.recipient-row .recipient-button {
  border-radius: var(--r-s); background: var(--surface); color: var(--teal);
  border-color: var(--line-strong);
}
.recipient-row .recipient-button:hover { background: var(--teal-softer); border-color: var(--teal); }
.knowledge-spinner { border-color: rgb(0 121 110 / 0.25); border-top-color: var(--teal); }
.archive-filter.form { padding: 14px; border-radius: var(--r-m); background: var(--surface-2); }

/* support chat */
.support-messages { gap: 10px; }
.support-message {
  background: var(--surface-2); border-radius: 4px 16px 16px 16px;
  padding: 10px 14px;
}
.support-message.own {
  background: var(--teal-soft); box-shadow: none;
  border-radius: 16px 4px 16px 16px;
}

/* confirm dialog */
.confirm-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 70px -20px rgb(11 53 49 / 0.45);
}
.confirm-dialog h2 { margin-bottom: 8px; }
.confirm-dialog .actions { justify-content: flex-end; margin-top: 18px; }
.confirm-dialog::backdrop { background: rgb(11 30 27 / 0.45); }
@media (prefers-reduced-motion: no-preference) {
  .confirm-dialog[open] { animation: dialog-in 220ms var(--ease-out); }
  .confirm-dialog[open]::backdrop { animation: backdrop-in 200ms ease; }
}
@keyframes dialog-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes backdrop-in { from { opacity: 0; } }

/* ---------- Billing & setup ---------- */

.plan-workspace { --surface: #fff; --border: var(--line); }
.plan-workspace > h1 { font-size: clamp(1.75rem, 2.6vw, 2.3rem); letter-spacing: -0.025em; }
.plan-workspace h2 { font-size: 1.2rem; }
.subscription-overview, .billing-invoices, .connection-card {
  border-color: var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1);
}
.subscription-status { background: var(--surface-2); color: #45524c; }
.subscription-status.is-active { background: var(--ok-soft); color: var(--ok); }
.subscription-date { border-left-color: var(--line); }

/* "how a call travels" — light version */
.call-flow {
  background: var(--teal-softer);
  border: 1px solid #d5e9e1;
  color: var(--ink);
}
.call-flow p { color: var(--quiet); }
.call-flow li {
  border-color: #cfe3db; background: var(--surface);
  color: var(--ink); font-weight: 600;
}
.call-flow li:last-child { border-color: var(--teal); background: var(--teal); color: #fff; }
.call-flow li + li::before { border-color: var(--teal); }

.connection-icon { border-color: #cfe3db; background: var(--teal-softer); color: var(--teal); border-radius: 12px; }
.connection-detail { background: var(--surface-2); border-radius: var(--r-m); }
.number-offer { background: var(--teal-softer); border-color: #cfe3db; }
.number-offer strong { font-family: var(--display); color: var(--teal-strong); }
.connection-guide { border-top-color: var(--line); }

/* pricing in the cabinet */
.pricing-toggle { background: var(--surface-2); border-color: transparent; }
.pricing-toggle label { font-weight: 600; }
.pricing-toggle label:has(:checked) { box-shadow: var(--shadow-1); }
.pricing-toggle label span { border: 0; background: var(--signal); color: var(--on-signal); border-radius: 999px; padding: 2px 7px; }
.pricing-number { border-color: var(--line); border-radius: var(--r-m); font-weight: 600; }
.pricing-number:has(:checked) { background: var(--teal-softer); }
.pricing-grid article {
  border-color: var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.pricing-grid article[data-plan-current] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal), var(--shadow-1); }
.pricing-grid h3 { font-size: 1.05rem; }
.pricing-cost strong { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; }
.pricing-allowance { border-top-color: var(--line); }
.common-features li::before { border-color: var(--teal); }

/* ---------- Sign-in pages (index.php) ---------- */

.account-page { background: var(--paper); }
.header { background: rgb(255 255 255 / 0.92); border-bottom-color: var(--line); }
.head { min-height: 64px; }
.logo { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.logo b { color: var(--teal); font-weight: 700; }
.header .account-action {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 0.86rem; font-weight: 600;
}
.header .account-action:hover { color: var(--ink); background: var(--surface-2); }
.account-main { padding-block: clamp(32px, 8vw, 88px); }
.account-panel {
  width: min(100%, 440px);
  padding: clamp(24px, 5vw, 36px);
  border-color: var(--line); border-radius: 22px;
  box-shadow: var(--shadow-2);
}
.account-panel h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1;
}
.request-form { gap: 14px; }
.request-form > label { font-size: 0.88rem; font-weight: 600; }
.request-form input:not([type="checkbox"]), .request-form textarea {
  min-height: 46px; padding: 10px 14px;
  border-color: var(--line-strong); border-radius: 12px;
}
.request-form .button, .account-panel .button {
  min-height: 48px; border-radius: 999px; box-shadow: none;
  font-size: 0.98rem; font-weight: 600;
}
.button { box-shadow: none; }
.account-feedback { border-radius: var(--r-m); background: var(--teal-softer); color: #2f3b36; }
.account-feedback.is-error { background: var(--error-soft); border-color: #f0c9d0; }
.account-links { padding-top: 16px; border-top: 1px solid var(--line); }
.account-text-link { color: var(--teal); text-decoration-thickness: 1px; font-weight: 500; }

/* ---------- Menu toggle & mobile ---------- */

.menu-toggle {
  border-color: var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.menu-toggle:hover { background: var(--surface-2); }
.menu-toggle:active { transform: scale(0.95); }
.menu-toggle[aria-expanded="true"] { background: var(--surface-2); }

@media (max-width: 760px) {
  .top { height: 56px; }
  .shell { padding-top: 16px; }
  h1 { font-size: 1.65rem; margin-bottom: 16px; }
  .menu-ready #cabinet-menu {
    background: var(--surface); border-bottom-color: var(--line);
    box-shadow: 0 24px 40px -24px rgb(11 53 49 / 0.35);
  }
  nav a { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  button:active, .button:active, .menu-toggle:active { transform: none; }
}

/* ---------- Billing plans, styled like the recommendai.ru pricing ---------- */

.billing-pricing {
  margin-bottom: 16px;
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: var(--surface); box-shadow: var(--shadow-1);
}
.billing-pricing .pricing-heading {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px; padding: 0; text-align: left;
}
.billing-pricing .pricing-heading h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.03em;
}

/* period: segmented control */
.billing-pricing .pricing-toggle {
  gap: 4px; padding: 4px; border: 0; border-radius: 999px; background: var(--surface-2);
}
.billing-pricing .pricing-toggle label {
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  color: var(--quiet); font-size: 0.9rem; font-weight: 600;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.billing-pricing .pricing-toggle label:has(:checked) {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 10px -4px rgb(0 0 0 / 0.15);
}
.billing-pricing .pricing-toggle label span {
  border: 0; border-radius: 999px; padding: 2px 8px;
  background: var(--signal); color: var(--on-signal); font-size: 0.75rem; font-weight: 600;
}

/* virtual number: a switch instead of a checkbox */
.billing-pricing .pricing-number {
  gap: 14px; min-height: 0; margin-top: 18px; padding: 12px 18px 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.billing-pricing .pricing-number:hover { border-color: var(--line-strong); }
.billing-pricing .pricing-number:has(:checked) { border-color: var(--teal); background: var(--teal-softer); }
.billing-pricing .pricing-number input {
  appearance: none; -webkit-appearance: none;
  position: relative; flex: none;
  width: 44px; height: 26px; margin: 0;
  border: 0; border-radius: 999px; background: #c3cfc9;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.billing-pricing .pricing-number input::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 220ms var(--ease-out);
}
.billing-pricing .pricing-number input:checked { background: var(--teal); }
.billing-pricing .pricing-number input:checked::before { transform: translateX(18px); }
.billing-pricing .pricing-number input:focus { box-shadow: none; }
.billing-pricing .pricing-number input:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.billing-pricing .pricing-number-label { font-size: 0.95rem; font-weight: 600; line-height: 1.35; }
.billing-pricing .pricing-number small { color: var(--teal); font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* plan cards: minutes first, then price, then the action */
.billing-pricing .pricing-grid { gap: 14px; margin: 18px 0 6px; }
.billing-pricing .pricing-grid article {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 0; grid-row: auto;
  padding: 26px 22px 22px;
  border: 1px solid transparent; border-radius: var(--r-l);
  background: var(--paper); box-shadow: none;
  text-align: left;
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .billing-pricing .pricing-grid article:hover {
    border-color: var(--line); transform: translateY(-2px);
    box-shadow: 0 18px 36px -24px rgb(11 53 49 / 0.45);
  }
}
.billing-pricing .pricing-grid article[data-plan-current] {
  border-color: var(--teal); background: var(--teal-softer);
  box-shadow: inset 0 0 0 1px var(--teal);
}
.billing-pricing .pricing-grid h3 { order: 0; font-size: 1.1rem; letter-spacing: -0.01em; }
.billing-pricing .pricing-allowance {
  order: 1; margin-top: 18px; padding: 0; border: 0;
  color: var(--quiet); font-size: 0.93rem;
}
.billing-pricing .pricing-allowance b {
  display: block; margin-bottom: 2px;
  font: 600 2.25rem/1.05 var(--display); letter-spacing: -0.03em; color: var(--ink);
}
.billing-pricing .pricing-cost {
  order: 2; flex: 1;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
}
.billing-pricing .pricing-cost del { font-size: 0.85rem; font-weight: 500; color: var(--quiet); font-variant-numeric: tabular-nums; }
.billing-pricing .pricing-cost strong {
  margin: 0; font: 600 1.75rem/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink);
}
.billing-pricing .pricing-currency { font: 500 1.05rem/1 var(--display); color: var(--quiet); letter-spacing: 0; }
.billing-pricing .pricing-cost small { font-size: 0.82rem; color: var(--quiet); }
.billing-pricing .pricing-cost [data-plan-total] { margin-top: 2px; color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.billing-pricing .pricing-grid .pricing-action {
  order: 3; width: 100%; min-height: 48px; margin-top: 22px;
  background: var(--ink); color: #fff; font-size: 0.95rem;
}
.billing-pricing .pricing-grid .pricing-action:hover { background: var(--teal); }

/* "in every plan" as chips */
.billing-pricing .common-features {
  gap: 10px 14px; margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.billing-pricing .common-features strong { font-family: var(--display); font-weight: 600; }
.billing-pricing .common-features ul { gap: 8px; }
.billing-pricing .common-features li {
  gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--paper); color: #2f3b36; font-weight: 500;
}
.billing-pricing .workspace-link { margin-top: 14px; font-weight: 600; }

@media (max-width: 1060px) {
  .billing-pricing .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .billing-pricing .pricing-heading { flex-direction: column; align-items: stretch; }
  .billing-pricing .pricing-toggle label { flex: 1; }
  .billing-pricing .pricing-number { grid-template-columns: auto minmax(0, 1fr); }
  .billing-pricing .pricing-number input { margin-top: 0; }
}
@media (max-width: 425px) {
  .billing-pricing .pricing-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sign-in, sign-up, password reset: brand field with a floating card ---------- */

.account-page {
  min-height: 100vh;
  background:
    linear-gradient(var(--field), var(--field)) top / 100% clamp(300px, 42vh, 420px) no-repeat,
    var(--paper);
}
.account-page .header {
  position: static;
  background: transparent; border-bottom: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.account-page .head { min-height: 72px; }
.account-page .logo { color: #eef4f0; font-size: 21px; }
.account-page .logo b { color: var(--signal); }
.account-page .header .account-action {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid #4f7a74; background: transparent; color: #eef4f0;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.account-page .header .account-action:hover { background: transparent; color: #fff; border-color: #eef4f0; }
.account-page .header .account-action:active { transform: scale(0.97); }

.account-page .account-main { padding: clamp(12px, 4vh, 40px) 16px clamp(48px, 10vh, 96px); }
.account-page .account-panel {
  width: min(100%, 460px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgb(255 255 255 / 0.6); border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 40px 80px -36px rgb(6 30 27 / 0.55), 0 2px 8px rgb(6 30 27 / 0.08);
}
@media (prefers-reduced-motion: no-preference) {
  .account-page .account-panel { animation: auth-rise 600ms var(--ease-out) both; }
}
@keyframes auth-rise { from { opacity: 0; transform: translateY(16px) scale(0.985); } }

.account-page .account-panel h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.05;
}
.account-page .account-panel h1::after {
  content: ""; display: block; width: 40px; height: 4px; margin-top: 16px;
  border-radius: 4px; background: var(--signal);
}
.account-page .account-copy { margin-top: 10px; color: var(--quiet); font-size: 0.92rem; line-height: 1.55; }
.account-page .request-form .account-copy { margin: -6px 0 0; font-size: 0.82rem; }
.account-page .request-form { gap: 16px; margin-top: 24px; }
.account-page .request-form > label { gap: 8px; font-size: 0.85rem; color: var(--ink); }
.account-page .request-form input:not([type="checkbox"]) {
  min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper);
  font-size: 16px;
}
.account-page .request-form input:not([type="checkbox"]):hover { border-color: var(--line-strong); }
.account-page .request-form input:not([type="checkbox"]):focus { background: var(--surface); border-color: var(--teal); box-shadow: 0 0 0 4px rgb(0 121 110 / 0.14); }
.account-page .request-form .request-consent {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px;
  padding: 14px; border-radius: 14px; background: var(--paper);
  font-size: 0.85rem; font-weight: 400; color: var(--quiet); line-height: 1.5;
}
.account-page .request-consent input { width: 20px; height: 20px; margin: 1px 0 0; }
.account-page .request-form .button {
  width: 100%; min-height: 52px; margin-top: 4px;
  border-radius: 999px; font-size: 1rem;
}
.account-page .account-feedback { margin-top: 16px; padding: 12px 14px; }
.account-page .account-links {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.account-page .account-text-link {
  font-size: 0.88rem; font-weight: 500;
  text-decoration-color: rgb(0 121 110 / 0.35);
  transition: text-decoration-color 200ms ease;
}
.account-page .account-text-link:hover { text-decoration-color: var(--teal); }
.account-page .account-links .account-text-link[href*="privacy"] { order: 3; flex-basis: 100%; color: var(--quiet); font-size: 0.8rem; }

@media (max-width: 520px) {
  .account-page { background: linear-gradient(var(--field), var(--field)) top / 100% 260px no-repeat, var(--paper); }
  .account-page .account-panel { border-radius: 22px; padding: 26px 20px; }
}

/* Document creation is an action, separate from existing document rows. */
.document-create { margin: 18px 0 24px; padding: 0; border: 0; }
.document-create > summary.button {
  display: inline-flex; align-items: center; gap: 8px; list-style: none;
  min-height: 44px; max-width: 100%; background: var(--signal); color: var(--on-signal);
}
.document-create > summary::marker { content: ""; }
.document-create > summary::-webkit-details-marker { display: none; }
.document-create > summary.button:hover { background: var(--signal-hover); }
.document-create > summary.button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.document-create-icon { flex: none; }
.document-create[open] > summary .document-create-icon { transform: rotate(45deg); }
.document-create > .form { margin-top: 20px; }

.connection-address-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connection-address-heading > strong { min-width: 0; }
button.copy-address-button {
  flex: none; width: 44px; height: 44px; min-height: 44px; padding: 10px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--teal);
}
button.copy-address-button:hover { background: var(--teal-soft); border-color: var(--teal); }
button.copy-address-button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.copy-address-check { display: none; }
.copy-address-button[data-copied] .copy-address-icon { display: none; }
.copy-address-button[data-copied] .copy-address-check { display: block; }
.connection-address .copy-address-status { color: var(--teal-strong); font-size: .875rem; }
.copy-address-status:empty { display: none; }

/* Greeting playback follows the public demo player. */
.greeting-player { padding: 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--teal-softer); }
.greeting-player-controls { display: flex; align-items: center; gap: 18px; }
button.greeting-player-toggle {
  display: inline-flex; flex: none; align-items: center; gap: 10px;
  min-height: 52px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px;
  background: var(--ink); color: white; font-size: 15px;
}
button.greeting-player-toggle:hover { background: var(--field); }
button.greeting-player-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.greeting-player-symbol { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--signal); color: var(--on-signal); }
.greeting-pause-icon, .is-playing .greeting-play-icon { display: none; }
.is-playing .greeting-pause-icon { display: block; }
.greeting-player-wave { display: flex; align-items: center; flex: 1; gap: 3px; min-width: 0; height: 36px; overflow: hidden; }
.greeting-player-wave i { flex: 1; max-width: 5px; min-width: 2px; height: 14px; background: var(--teal); border-radius: 3px; transform-origin: center; }
.greeting-player-wave i:nth-child(3n) { height: 28px; }
.greeting-player-wave i:nth-child(4n) { height: 20px; }
.greeting-player-wave i:nth-child(5n) { height: 36px; }
.greeting-player-wave i:nth-child(2n) { animation-delay: -140ms; }
.greeting-player-wave i:nth-child(3n) { animation-delay: -300ms; }
.greeting-player-wave i:nth-child(5n) { animation-delay: -450ms; }
.greeting-player .greeting-player-time { flex: none; color: var(--quiet); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#assistant-form input.greeting-player-seek {
  display: block; appearance: none; width: 100%; height: 32px; min-height: 32px; margin: 8px 0 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
  background: linear-gradient(to right, var(--teal) var(--seek-progress, 0%), #cbded6 var(--seek-progress, 0%)) center / 100% 4px no-repeat;
}
.greeting-player-seek::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--teal); }
.greeting-player-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--teal); }
.greeting-player-seek:disabled { opacity: .5; cursor: default; }
@keyframes greeting-equalizer { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: no-preference) { .is-playing .greeting-player-wave i { animation-name: greeting-equalizer; animation-duration: 800ms; animation-iteration-count: infinite; animation-timing-function: ease-in-out; } }
@media (max-width: 480px) {
  .greeting-player { padding: 12px; }
  .greeting-player-controls { flex-wrap: wrap; gap: 10px; }
  .greeting-player-wave { min-width: 44px; }
  .greeting-player .greeting-player-time { width: 100%; text-align: right; }
}
