@font-face { font-family: Manrope; src: url('/fonts/manrope-latin-400-normal.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/manrope-latin-500-normal.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/manrope-latin-600-normal.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/manrope-latin-700-normal.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/manrope-latin-800-normal.woff2') format('woff2'); font-style: normal; font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --navy: #0b1942;
  --navy-2: #172b62;
  --ink: #0b1942;
  --muted: #58627a;
  --line: #dce2ee;
  --line-strong: #cbd4e6;
  --canvas: #f7f8fc;
  --white: #fff;
  --blue: #173fe6;
  --blue-dark: #0f2fb9;
  --blue-soft: #f1f4ff;
  --green: #257657;
  --green-soft: #eaf5ef;
  --amber: #8a6410;
  --amber-soft: #fff5dd;
  --red: #a03b36;
  --red-soft: #fff0ef;
  --sidebar-width: 246px;
  font-family: Manrope, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); background: white; border: 2px solid var(--blue); border-radius: 5px; padding: 9px 12px; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #92b2ff; outline-offset: 3px; }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; min-height: 620px; background: #f7fafc; color: #36536a; border-right: 1px solid #e2eaf0; padding: 21px 14px 15px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 8px; padding: 1px 8px 20px; color: #18364e; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px 8px 8px 3px; background: #173fe6; color: white; font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -2px; padding-right: 2px; }
.brand-name { font-size: 23px; font-weight: 730; letter-spacing: -1.2px; }
.brand-product { border-left: 1px solid #dce7ef; color: #718394; padding-left: 10px; margin-left: 2px; font-size: 13px; font-weight: 500; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 10px; border: 1px solid #d5e2eb; border-radius: 7px; background: #fff; }
.workspace-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 7px; color: #347db5; background: #edf5fa; font-size: 14px; font-weight: 650; }
.workspace-copy { min-width: 0; display: grid; gap: 3px; }
.workspace-copy small { color: #718697; font-size: 9px; letter-spacing: .08em; }
.workspace-copy strong { overflow: hidden; color: #18364e; font-size: 12px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.switcher-mark { color: #718394; font-size: 18px; margin-left: auto; }
.main-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 24px; }
.nav-caption { margin: 0 10px 7px; color: #718394; font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.nav-caption-spaced { margin-top: 21px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 10px; border-radius: 6px; color: #36536a; text-decoration: none; font-size: 13px; transition: color .14s, background .14s; }
.nav-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav-link:hover { background: #edf5fa; color: #18364e; }
.nav-link[aria-current="page"] { background: #edf5fa; color: #18364e; box-shadow: inset 2px 0 #347db5; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 19px; margin-left: auto; padding: 0 5px; border-radius: 12px; background: #edf5fa; color: #347db5; font-size: 10px; }
.nav-connection { margin-left: auto; display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid #9aabba; border-radius: 50%; color: #347db5; font: 600 10px Arial,sans-serif; }
.sidebar-footer { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding: 15px 9px 3px; border-top: 1px solid #dce7ef; }
.sidebar-footer > span:last-child { display: grid; gap: 4px; }
.sidebar-footer strong { color: #36536a; font-size: 11px; font-weight: 600; }
.sidebar-footer small { color: #718394; font-size: 10px; }
.local-indicator, .chip-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #a4adba; }
.local-indicator { background: #58a780; box-shadow: 0 0 0 3px #e6f1eb; }

.workspace-main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.crumb-separator { color: #b5bec8; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.connection-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 16px; color: #566579; background: white; font-size: 11px; white-space: nowrap; }
.connection-chip.is-connected .chip-dot { background: #33936e; }
.connection-chip.is-disconnected .chip-dot { background: #c68c32; }
.connection-chip .chip-dot { margin: 0; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 600; padding: 8px 0; cursor: pointer; }
.text-button:hover { color: var(--blue-dark); text-decoration: underline; }
.sidebar-toggle { display: none !important; }

.page-container { width: min(1480px, 100%); margin: 0 auto; padding: 34px 38px 56px; }
.page-view { min-width: 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 4px 0 27px; }
.compact-heading { align-items: flex-start; margin-bottom: 23px; }
.eyebrow { margin: 0 0 8px; color: #71809a; font-size: 11px; font-weight: 650; letter-spacing: .045em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; color: var(--ink); font-size: clamp(27px, 3vw, 34px); line-height: 1.16; letter-spacing: -.9px; font-weight: 620; }
h2 { margin: 0; font-size: 16px; font-weight: 620; letter-spacing: -.2px; line-height: 1.35; }
h3 { margin: 0; font-size: 14px; font-weight: 620; }
.lede { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 8px 0; }
.subtle-label { color: var(--muted); font-size: 11px; }

.button-primary, .button-secondary, .button-quiet-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 8px 13px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 620; text-decoration: none; cursor: pointer; transition: background .14s, border-color .14s, color .14s; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-dark); color: white; }
.button-secondary { border-color: var(--line-strong); background: #fff; color: #36465a; }
.button-secondary:hover { border-color: #afbed0; background: #f9fafc; }
.button-quiet-danger { border-color: #ecd8d6; background: white; color: var(--red); }
.button-quiet-danger:hover { background: var(--red-soft); border-color: #e8c3c0; }
button:disabled { opacity: .54; cursor: not-allowed; }

.panel { border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.quiet-link { color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.quiet-link:hover { text-decoration: underline; }
.language-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 14px; color: #59687b; font-size: 10px; white-space: nowrap; }

.overview-heading { margin-bottom: 24px; }
.overview-heading .button-primary { margin-bottom: 3px; }
.status-tag, .state-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 4px 9px; border-radius: 13px; background: #f0f2f5; color: #5c6877; font-size: 10px; font-weight: 600; white-space: nowrap; }
.status-tag.open, .state-pending { background: var(--amber-soft); color: var(--amber); }
.status-tag.handled, .state-connected { background: var(--green-soft); color: var(--green); }
.status-tag.failed, .state-failed { background: var(--red-soft); color: var(--red); }
.state-ended { background: #edf1f5; color: #5e6d80; }
.metrics-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 15px 0; }
.metric { display: grid; gap: 7px; min-height: 111px; align-content: center; padding: 17px 19px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.metric > span { color: var(--muted); font-size: 11px; font-weight: 550; }
.metric strong { color: var(--ink); font-size: 28px; line-height: 1; font-weight: 620; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.metric small { color: #8792a1; font-size: 10px; }
.overview-columns { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 15px; }
.activity-panel, .followups-panel { padding: 19px 20px; min-width: 0; }
.overview-recent-calls { display: grid; }
.overview-call { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px 12px; width: 100%; padding: 12px 1px; border: 0; border-top: 1px solid #edf0f4; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.overview-call:hover .overview-call-title { color: var(--blue); }
.overview-call-title { overflow: hidden; color: #28374b; font-size: 12px; font-weight: 620; white-space: nowrap; text-overflow: ellipsis; }
.overview-call-summary { overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.overview-call-meta { grid-column: 2; grid-row: 1 / span 2; color: #8a95a3; font-size: 10px; white-space: nowrap; }
.empty { padding: 25px 14px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.overview-followups { display: grid; }
.overview-followup { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 14px; min-height: 61px; padding: 11px 1px; border-top: 1px solid #edf0f4; color: inherit; text-decoration: none; }
.overview-followup:hover strong { color: var(--blue); }
.overview-followup-copy { display: grid; gap: 5px; min-width: 0; }
.overview-followup-copy strong, .overview-followup-copy span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.overview-followup-copy strong { color: #28374b; font-size: 12px; font-weight: 620; }
.overview-followup-copy span, .overview-followup time { color: var(--muted); font-size: 11px; }
.overview-followup time { white-space: nowrap; }

.conversations-shell { display: grid; grid-template-columns: minmax(285px, 360px) minmax(0,1fr); min-height: min(660px, calc(100vh - 235px)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; }
.conversation-list-pane { min-width: 0; border-right: 1px solid var(--line); background: #fff; }
.list-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 13px; border-bottom: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: 7px; min-width: 0; height: 35px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 5px; }
.search-box:focus-within { border-color: #91a9dc; box-shadow: 0 0 0 2px #e5ecff; }
.search-box svg { width: 15px; height: 15px; fill: none; stroke: #8290a1; stroke-width: 1.8; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input:focus-visible { outline: 0; }
.filter-select { max-width: 108px; height: 35px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 5px; color: #526074; background: white; font-size: 10px; }
.list-count-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px 8px; color: #8b96a4; font-size: 10px; }
.list-count-row span:first-child { color: #56667a; font-weight: 620; }
.history-list { max-height: 610px; overflow-y: auto; }
.history-row { display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: start; gap: 9px; width: 100%; padding: 12px 13px; border: 0; border-top: 1px solid #edf0f3; border-radius: 0; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.history-row:hover { background: #f8faff; }
.history-row.selected { background: #f0f4ff; box-shadow: inset 2px 0 #5c78d4; }
.history-row::before { content: ""; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #97a3b2; }
.history-row[data-state="failed"]::before { background: #c66b64; }
.history-row[data-state="in-progress"]::before { background: #4b86cf; }
.history-main { display: grid; gap: 5px; min-width: 0; }
.history-title { overflow: hidden; font-size: 11px; font-weight: 620; white-space: nowrap; text-overflow: ellipsis; }
.history-summary { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.history-meta { display: flex; flex-wrap: wrap; gap: 7px; color: #8490a0; font-size: 9px; }
.history-side { display: grid; justify-items: end; gap: 7px; }
.history-side time { color: #8a95a2; font-size: 9px; white-space: nowrap; }
.history-side .history-duration { color: #53647a; font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-side .state-chip { min-height: 19px; padding: 2px 6px; font-size: 9px; }
.call-detail { position: relative; min-width: 0; padding: 21px 25px 18px; background: #fff; }
.detail-empty { display: grid; align-content: center; justify-items: center; min-height: 470px; padding: 30px; color: var(--muted); text-align: center; }
.detail-empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 13px; border-radius: 9px; background: #f1f4f8; color: #62738c; }
.detail-empty-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.detail-empty h2 { color: #46566b; font-size: 14px; }
.detail-empty p { margin: 5px 0; font-size: 11px; }
.detail-panel { min-width: 0; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.detail-header .eyebrow { margin-bottom: 5px; }
.detail-header h2 { font-size: 19px; letter-spacing: -.3px; }
.detail-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 5px; background: white; color: #607084; cursor: pointer; }
.icon-button:hover { background: #f5f7fa; color: var(--ink); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-close { display: none; }
.call-summary { margin: 12px 0 3px; padding: 11px 13px; border: 1px solid #e6e9ef; border-radius: 6px; background: #fafbfd; color: #566477; font-size: 11px; line-height: 1.55; }
.callback-summary { margin: 12px 0 3px; padding: 11px 13px; border-left: 3px solid #469171; background: #f0f7f3; color: #365b4b; font-size: 11px; line-height: 1.55; }
.callback-summary strong { display: block; margin-bottom: 3px; }
.transcript-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 19px; padding-bottom: 9px; border-bottom: 1px solid #edf0f3; }
.transcript-heading h3 { font-size: 11px; color: #57667a; }
.detail-transcript { padding: 4px 0 10px; }
.message { position: relative; margin: 0; padding: 13px 10px 13px 33px; border-bottom: 1px solid #f0f2f5; color: #344357; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.message::before { content: ""; position: absolute; left: 10px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: #7790d6; }
.message.caller::before { background: #43a07e; }
.message strong { display: block; margin-bottom: 3px; color: #36475d; font-size: 10px; font-weight: 650; }
.message span { display: block; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.detail-actions .button-quiet-danger { margin-left: auto; }

.settings-layout { display: grid; grid-template-columns: minmax(300px,.88fr) minmax(360px,1.12fr); align-items: start; gap: 15px; }
.form-panel, .voice-test-panel { min-width: 0; padding: 21px; }
.profile-form label { display: block; margin: 18px 0 7px; color: #435267; font-size: 11px; font-weight: 620; }
.profile-form input, .profile-form textarea, .profile-form select, .queue-toolbar select { display: block; width: 100%; min-width: 0; min-height: 39px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; }
.profile-form textarea { resize: vertical; line-height: 1.5; }
.profile-form input::placeholder, .profile-form textarea::placeholder { color: #a0aab6; }
.profile-form input:focus, .profile-form textarea:focus, .profile-form select:focus, .queue-toolbar select:focus { border-color: #8fa8dc; outline: 0; box-shadow: 0 0 0 3px #edf2ff; }
.form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #edf0f4; }
.form-state { flex: 1 1 100%; color: var(--muted); font-size: 10px; }
.optional { color: #8994a2; font-size: 10px; font-weight: 400; }
.knowledge-panel { max-width: 900px; padding: 23px; }
.knowledge-panel .profile-form > label:first-of-type { margin-top: 0; }
.knowledge-panel .hint { margin-top: 10px; }
.business-time-zone-field { display: grid; gap: 7px; margin-top: 18px; }
.business-time-zone-field label, .weekly-hours-fieldset legend { color: #435267; font-size: 11px; font-weight: 620; }
.business-time-zone-field select { width: 100%; min-height: 39px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; }
.business-time-zone-field small, .weekly-hours-fieldset > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.weekly-hours-fieldset { min-width: 0; margin: 20px 0 0; padding: 15px; border: 1px solid var(--line); border-radius: 7px; }
.weekly-hours-fieldset legend { padding: 0 6px; }
.weekly-hours-fieldset > p { margin: 0 0 10px; }
.weekly-hours-editor { display: grid; border-top: 1px solid #edf0f4; }
.weekly-hours-day { display: grid; grid-template-columns: minmax(80px,.45fr) minmax(135px,.65fr) minmax(230px,1fr); align-items: center; gap: 10px; min-height: 55px; padding: 7px 0; border-bottom: 1px solid #edf0f4; }
.weekly-hours-day-name { color: #435267; font-size: 11px; font-weight: 620; }
.weekly-hours-day select { width: 100%; min-height: 35px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; color: var(--ink); font-size: 11px; }
.weekly-hours-ranges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; }
.hours-period { display: flex; align-items: center; gap: 7px; }
.hours-period span { color: var(--muted); font-size: 10px; }
.hours-period input { width: 116px; min-width: 0; min-height: 34px; padding: 6px 8px; font-size: 11px; }
.hours-period-add, .hours-period-remove { padding: 5px 0; border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 600; cursor: pointer; }
.hours-period-remove { color: var(--muted); }
.weekly-hours-fieldset > label { margin-top: 16px; }

.voice-test-panel .panel-heading { margin-bottom: 6px; }
.voice-stage { padding: 10px 4px 13px; text-align: center; }
.voice-stage h3 { color: #27374a; font-size: 18px; font-weight: 550; letter-spacing: -.3px; }
.voice-stage > p { max-width: 450px; margin: 7px auto; color: var(--muted); font-size: 11px; line-height: 1.55; }
.voice-mark { display: flex; align-items: center; justify-content: center; gap: 5px; height: 61px; margin: 1px auto 7px; }
.voice-mark i { width: 5px; height: 18px; border-radius: 5px; background: #c0cbea; }
.voice-mark i:nth-child(2), .voice-mark i:nth-child(6) { height: 28px; }
.voice-mark i:nth-child(3), .voice-mark i:nth-child(5) { height: 38px; }
.voice-mark i:nth-child(4) { height: 49px; background: #5b78d2; }
.voice-mark.active i { animation: wave .85s ease-in-out infinite alternate; background: #5979db; }
.voice-mark.active i:nth-child(even) { animation-delay: -.4s; }
@keyframes wave { to { transform: scaleY(.42); } }
.timer { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.call-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 12px 0 5px; }
.voice-stage .text-button { margin-top: 3px; }
.live-transcript { min-height: 58px; max-height: 170px; overflow: auto; padding: 3px 0; }
.live-transcript .empty { padding: 18px 10px; }
.message-form { display: flex; gap: 7px; margin-top: 8px; }
.message-form input { flex: 1; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 12px; }
.callback-confirmation { margin-top: 9px; padding: 11px 13px; border-left: 3px solid var(--green); background: var(--green-soft); font-size: 11px; }
.callback-confirmation p { margin: 5px 0; line-height: 1.5; }
.callback-confirmation .hint { display: block; margin: 4px 0 0; font-size: 10px; }

.count-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 15px; background: var(--amber-soft); color: var(--amber); font-size: 11px; font-weight: 620; white-space: nowrap; }
.queue-panel { padding: 0 20px 8px; }
.queue-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.queue-toolbar label { color: var(--muted); font-size: 11px; }
.queue-toolbar select { width: auto; min-width: 160px; min-height: 34px; padding: 6px 9px; font-size: 11px; }
.queue-toolbar .hint { margin-left: auto; font-size: 10px; }
.callback-list { min-height: 70px; }
.callback-row { display: grid; grid-template-columns: minmax(125px,.65fr) minmax(200px,1.65fr) auto; align-items: center; gap: 15px; padding: 16px 1px; border-bottom: 1px solid #edf0f3; }
.callback-person h3 { font-size: 12px; }
.callback-phone { margin: 4px 0 0; color: var(--blue); font-size: 11px; font-variant-numeric: tabular-nums; }
.callback-content { min-width: 0; }
.callback-request { margin: 0; color: #3b4a5e; font-size: 11px; line-height: 1.5; }
.callback-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; color: #8792a0; font-size: 9px; }
.callback-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.primary-small { min-height: 31px; padding: 6px 9px; font-size: 10px; }
.callback-row.is-handled .callback-person h3, .callback-row.is-handled .callback-request { color: var(--muted); }

.integration-layout { display: grid; grid-template-columns: minmax(350px,1fr) minmax(260px,.66fr); align-items: start; gap: 15px; }
.connection-detail-panel, .setup-note-panel { padding: 21px; }
.phone-number-card { display: grid; gap: 7px; margin: 19px 0 16px; padding: 17px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfd; }
.phone-number-card small { color: var(--muted); font-size: 10px; }
.phone-number-card strong { color: var(--ink); font-size: 25px; font-weight: 620; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.phone-number-card .hint { margin: 0; font-size: 10px; }
.phone-test { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid #dce4f4; border-radius: 6px; background: #f6f8fd; }
.phone-test-copy { min-width: 0; }
.phone-test-copy strong { font-size: 11px; }
.phone-test-copy p { margin: 4px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.phone-test-number { color: #354b6c; font-size: 12px; font-weight: 620; }
.setup-note-panel > p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.notice-inline { margin-top: 16px; padding: 12px 14px; border-left: 3px solid #c2cbd6; background: #f5f7f9; }
.notice-inline strong { font-size: 10px; }
.notice-inline p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.integration-empty { display: grid; justify-items: center; align-content: center; max-width: 700px; min-height: 360px; margin: 0 auto; padding: 35px; text-align: center; }
.integration-empty h2 { margin-top: 15px; font-size: 17px; }
.integration-empty p { max-width: 490px; margin: 8px auto 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.google-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #e4e7ec; border-radius: 50%; background: white; color: #4285f4; font: 700 22px Arial,sans-serif; box-shadow: 0 1px 2px #172c4610; }
.integration-empty > .google-mark { margin-bottom: 12px; }
.integration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-bottom: 16px; }
.integration-card { min-height: 185px; padding: 18px; }
.integration-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.integration-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #f0f3fa; color: #526b9f; font-size: 17px; }
.integration-card .google-mark { width: 34px; height: 34px; font-size: 18px; }
.gemini-icon { color: #6754c7; background: #f1efff; }
.phone-icon { color: #3d7187; background: #ecf5f7; }
.integration-card h2 { margin-bottom: 7px; font-size: 13px; }
.integration-card p { min-height: 36px; margin: 0 0 11px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.integration-card .button-secondary { min-height: 31px; padding: 6px 9px; font-size: 10px; }
.connection { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 13px; padding: 21px; }
.connection h2 { margin: 0 0 9px; }
.connection h3 { margin-top: 17px; font-size: 12px; }
.connection p { max-width: 58ch; color: var(--muted); font-size: 11px; line-height: 1.6; }
.connection a { color: var(--blue); }
.connection code { color: #465874; font-size: 10px; }
.connection pre { overflow: auto; margin: 6px 0 9px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #f7f8fa; color: #394961; font-size: 11px; }

.settings-only { grid-template-columns: minmax(300px,1fr) minmax(300px,1fr); }
.settings-summary { padding: 20px; }
.settings-list { margin: 0; }
.settings-list > div { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 14px; padding: 11px 0; border-top: 1px solid #edf0f3; }
.settings-list dt { color: var(--muted); font-size: 10px; }
.settings-list dd { margin: 0; color: #37465a; font-size: 10px; font-weight: 600; }
.settings-copy { margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.notice { margin: 0 0 17px; padding: 11px 14px; border: 1px solid #cbd8f4; border-radius: 6px; background: var(--blue-soft); color: #304d83; font-size: 12px; line-height: 1.5; }
.notice.error { border-color: #edcbc7; background: var(--red-soft); color: var(--red); }

@media (max-width: 1180px) {
  :root { --sidebar-width: 225px; }
  .page-container { padding-right: 26px; padding-left: 26px; }
  .topbar { padding-right: 26px; padding-left: 26px; }
  .conversations-shell { grid-template-columns: minmax(265px,320px) minmax(0,1fr); }
  .settings-layout { grid-template-columns: minmax(270px,.9fr) minmax(320px,1.1fr); }
}
@media (max-width: 930px) {
  :root { --sidebar-width: 214px; }
  .page-container { padding: 28px 20px 42px; }
  .topbar { padding: 0 20px; }
  .overview-columns { grid-template-columns: 1fr; }
  .settings-layout, .integration-layout { grid-template-columns: 1fr; }
  .conversations-shell { grid-template-columns: minmax(240px, 300px) minmax(0,1fr); }
  .call-detail { padding: 18px; }
  .detail-actions { gap: 6px; }
  .detail-actions .button-primary, .detail-actions .button-secondary, .detail-actions .button-quiet-danger { padding-right: 9px; padding-left: 9px; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(290px,84vw); min-height: 0; transform: translateX(-102%); box-shadow: 10px 0 28px #14243a2b; transition: transform .2s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 15; background: #14243a66; }
  .workspace-main { width: 100%; }
  .topbar { min-height: 58px; gap: 10px; padding: 0 14px; }
  .sidebar-toggle { display: grid !important; width: 32px; height: 32px; }
  .sidebar-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .breadcrumb { margin-right: auto; gap: 7px; font-size: 10px; }
  .topbar-actions { gap: 9px; }
  .connection-chip { max-width: 155px; min-height: 25px; padding: 3px 7px; overflow: hidden; font-size: 9px; }
  .connection-chip span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .topbar-actions .text-button { font-size: 10px; }
  .page-container { padding: 24px 14px 35px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .overview-heading .button-primary { align-self: flex-start; }
  h1 { font-size: 28px; }
  .metrics-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { min-height: 85px; grid-template-columns: 1fr auto; align-items: center; gap: 4px 15px; padding: 13px 15px; }
  .metric > span { grid-column: 1; }
  .metric strong { grid-column: 2; grid-row: 1 / span 2; font-size: 25px; }
  .metric small { grid-column: 1; }
  .activity-panel, .followups-panel, .form-panel, .voice-test-panel, .connection-detail-panel, .setup-note-panel { padding: 16px; }
  .conversations-shell { display: block; min-height: calc(100vh - 230px); }
  .conversation-list-pane { min-height: calc(100vh - 232px); border-right: 0; }
  .history-list { max-height: calc(100vh - 345px); }
  .call-detail { display: none; min-height: calc(100vh - 205px); padding: 15px; }
  .conversations-shell.mobile-detail-open .conversation-list-pane { display: none; }
  .conversations-shell.mobile-detail-open .call-detail { display: block; }
  .detail-close { display: grid; }
  .detail-empty { min-height: 50vh; }
  .callback-row { grid-template-columns: 1fr; gap: 8px; }
  .callback-actions { justify-content: flex-start; }
  .queue-panel { padding: 0 14px 8px; }
  .queue-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .queue-toolbar .hint { flex-basis: 100%; margin-left: 0; }
  .weekly-hours-fieldset { padding: 12px; }
  .weekly-hours-day { grid-template-columns: minmax(80px,.4fr) minmax(125px,.6fr); gap: 8px; }
  .weekly-hours-ranges { grid-column: 1 / -1; padding-left: 0; }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-card { min-height: auto; }
  .connection { grid-template-columns: 1fr; gap: 5px; }
  .integration-empty { min-height: 310px; padding: 25px 17px; }
  .phone-test { align-items: flex-start; flex-direction: column; }
  .phone-test .button-primary { width: 100%; }
  .detail-actions .button-quiet-danger { margin-left: 0; }
  .settings-only { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .topbar { padding: 0 9px; }
  .topbar-actions { gap: 6px; }
  .connection-chip { max-width: 112px; }
  .topbar-actions .text-button { max-width: 58px; line-height: 1.2; text-align: right; }
  .list-toolbar { grid-template-columns: 1fr; }
  .filter-select { max-width: none; width: 100%; }
  .detail-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .detail-actions > * { width: 100%; }
  .detail-actions .button-quiet-danger { margin-left: 0; }
  .form-footer > button { flex: 1 1 100%; }
  .settings-list > div { grid-template-columns: 110px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body.onboarding-locked { overflow: hidden; }
body.onboarding-locked .app-shell { filter: blur(4px); opacity: .46; pointer-events: none; user-select: none; }
.onboarding-gate { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(19, 34, 53, .28); backdrop-filter: blur(3px); }
.onboarding-dialog { display: flex; flex-direction: column; width: min(1040px, 100%); max-height: min(900px, calc(100vh - 44px)); overflow: auto; border: 1px solid #e0e6ef; border-radius: 14px; background: #fff; box-shadow: 0 28px 90px #13233942; }
.onboarding-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 25px 4px; }
.onboarding-brand-row .brand { color: var(--ink); padding: 0; }
.onboarding-brand-row .brand-product { color: var(--muted); border-color: var(--line-strong); }
.setup-private-note { color: var(--muted); font-size: 11px; }
.onboarding-auth-panel { width: min(510px, 100%); margin: auto; padding: 48px 42px 52px; }
.onboarding-auth-panel { position: relative; }
.auth-close { position: absolute; top: 12px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f5f7; color: #567181; font-size: 22px; line-height: 1; cursor: pointer; }
.auth-close:hover { background: #e5eef2; color: #18364e; }
.onboarding-auth-panel h1, .onboarding-flow h1 { font-size: clamp(26px, 3.4vw, 32px); }
.google-signin-button { min-height: 44px; margin: 27px 0 9px; }
.auth-message { min-height: 19px; }
.local-preview-note { max-width: 420px; }
.onboarding-flow { padding: 26px 30px 30px; }
.onboarding-flow-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.onboarding-flow-heading .lede { margin-top: 6px; }
.onboarding-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 20px; padding: 0; list-style: none; }
.onboarding-steps li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 8px; border-top: 2px solid var(--line); color: #8792a1; font-size: 11px; }
.onboarding-steps li span { display: grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; border-radius: 50%; background: #f0f2f6; font-size: 10px; font-weight: 650; }
.onboarding-steps li strong { font-weight: 550; }
.onboarding-steps li.is-current { border-color: var(--blue); color: var(--ink); }
.onboarding-steps li.is-current span, .onboarding-steps li.is-complete span { color: white; background: var(--blue); }
.onboarding-steps li.is-complete { border-color: #9cb0e9; color: #52617a; }
.onboarding-stage { min-height: 310px; padding-top: 4px; }
.onboarding-stage-heading { max-width: 690px; margin: 0 auto 20px; }
.onboarding-stage-heading .eyebrow { margin-bottom: 5px; }
.onboarding-stage-heading h2 { font-size: 20px; }
.onboarding-stage-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.website-import-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; max-width: 690px; margin: 0 auto 15px; padding: 13px 15px; border: 1px solid #dce4ef; border-radius: 7px; background: #fafbfd; }
.website-import-panel label { font-size: 12px; font-weight: 620; }
.website-import-panel p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.website-import-controls { display: flex; gap: 8px; }
.website-import-controls input { flex: 1; min-width: 0; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; font-size: 12px; }
.website-import-panel > small { margin: 0; font-size: 10px; }
.knowledge-source-summary { margin: 6px 0 0; color: #596983; font-size: 11px; line-height: 1.5; }
.website-scan-progress { height: 4px; overflow: hidden; border-radius: 4px; background: #e8edf4; }
.website-scan-progress > span { display: block; width: 34%; height: 100%; border-radius: inherit; background: var(--blue); animation: website-scan 1.35s ease-in-out infinite alternate; }
@keyframes website-scan { from { transform: translateX(0); } to { transform: translateX(195%); } }
.manual-entry-button { display: block; max-width: 690px; margin: -5px auto 17px; padding: 4px 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 620; text-align: left; cursor: pointer; }
.manual-entry-button:hover { color: var(--blue-dark); text-decoration: underline; }
.manual-entry-button:focus-visible { outline: 3px solid #92b2ff; outline-offset: 3px; }
.onboarding-phone-form { display: grid; gap: 10px; width: min(590px, 100%); margin: 28px auto; }
.onboarding-phone-form label { font-size: 12px; font-weight: 620; }
.onboarding-phone-form input { min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 15px; }
.onboarding-phone-form small { color: var(--muted); font-size: 11px; }
.onboarding-phone-form .button-primary { justify-self: start; margin-top: 8px; }
.call-forwarding-note { display: grid; gap: 5px; padding: 13px 15px; border: 1px solid #dce4ef; border-radius: 7px; background: #f7f9fc; }
.call-forwarding-note strong { color: #34445a; font-size: 11px; }
.call-forwarding-note span { color: #203554; font-size: 18px; font-weight: 650; letter-spacing: .02em; }
.call-forwarding-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.onboarding-profile-content { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; gap: 14px; }
.onboarding-profile-content > .panel { align-self: start; padding: 17px; }
.onboarding-profile-content .profile-form { gap: 8px; }
.onboarding-profile-content .profile-form label { margin-top: 5px; }
.onboarding-profile-content .profile-form input, .onboarding-profile-content .profile-form textarea { padding: 8px 9px; }
.onboarding-profile-content #knowledge-form .form-footer { display: none; }
.onboarding-profile-content .profile-form .form-footer { align-items: flex-start; flex-direction: column; }
.tone-selector { min-width: 0; margin: 9px 0 7px; padding: 0; border: 0; }
.tone-selector legend { margin-bottom: 8px; padding: 0; color: #34445a; font-size: 12px; font-weight: 620; }
.tone-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tone-choice { position: relative; display: inline-flex; margin: 0 !important; cursor: pointer; }
.tone-choice input { position: absolute; width: 1px !important; height: 1px; margin: 0; padding: 0 !important; overflow: hidden; opacity: 0; }
.tone-choice span { display: inline-flex; min-height: 36px; align-items: center; padding: 8px 14px; border: 1px solid #d9e1eb; border-radius: 999px; background: #fff; color: #46566a; font-size: 12px; font-weight: 540; transition: border-color .14s, background .14s, color .14s; }
.tone-choice:hover span { border-color: #aab9cc; background: #fbfcfe; }
.tone-choice input:checked + span { border-color: #a8bbed; background: var(--blue-soft); color: #284a9e; font-weight: 640; }
.tone-choice input:focus-visible + span { outline: 3px solid #92b2ff; outline-offset: 3px; }
.tone-selector p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.onboarding-test-content { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 14px; max-width: none; margin: 0; }
.onboarding-test-content > .form-panel, .onboarding-test-content > .voice-test-panel { min-width: 0; }
.onboarding-test-content > .panel { align-self: start; padding: 17px; }
.onboarding-test-content .profile-form { gap: 8px; }
.onboarding-test-content .profile-form label { margin-top: 5px; }
.onboarding-test-content .profile-form input, .onboarding-test-content .profile-form textarea { padding: 8px 9px; }
.onboarding-test-content .profile-form .form-footer { display: none; }
.onboarding-test-content #start-demo { display: none; }
.onboarding-test-content .voice-test-panel { padding: 14px; }
.onboarding-test-content .voice-stage { min-height: 180px; padding: 17px; }
.onboarding-test-content .live-transcript { min-height: 75px; max-height: 120px; }
.onboarding-stage-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 0; }
.onboarding-stage-actions .text-button { padding-left: 0; color: #69788d; }
.onboarding-stage-actions .button-primary { min-width: 116px; }
.onboarding-stage-actions .button-primary:only-child { margin-left: auto; }
.onboarding-error { margin: 0 0 15px; padding: 10px 12px; border: 1px solid #f0cbc8; border-radius: 5px; background: var(--red-soft); color: var(--red); font-size: 12px; }
.onboarding-review { display: grid; gap: 0; max-width: 660px; margin: 20px auto; border: 1px solid var(--line); border-radius: 7px; }
.onboarding-review > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 15px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.onboarding-review > div:last-child { border-bottom: 0; }
.onboarding-review dt { color: var(--muted); font-size: 11px; }
.onboarding-review dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
.optional-integration-note { display: grid; gap: 4px; max-width: 660px; margin: 15px auto; padding: 11px 13px; border-left: 3px solid #8ba3e3; background: #f4f7fd; font-size: 11px; line-height: 1.5; }
.optional-integration-note span { color: var(--muted); }

@media (max-width: 720px) {
  .onboarding-gate { padding: 8px; place-items: stretch; }
  .onboarding-dialog { max-height: calc(100vh - 16px); border-radius: 10px; }
  .onboarding-brand-row { padding: 14px 16px 0; }
  .onboarding-auth-panel { padding: 35px 22px 42px; }
  .onboarding-flow { padding: 20px 16px 22px; }
  .onboarding-flow-heading { gap: 8px; }
  .onboarding-flow-heading > div { flex: 1; min-width: 0; }
  .onboarding-flow-heading .text-button { flex: 0 0 auto; white-space: nowrap; }
  .onboarding-steps { gap: 4px; }
  .onboarding-steps li { display: grid; justify-items: center; gap: 5px; padding: 8px 2px; text-align: center; font-size: 9px; }
  .onboarding-profile-content { grid-template-columns: 1fr; }
  .onboarding-test-content { grid-template-columns: 1fr; }
  .website-import-controls { align-items: stretch; flex-direction: column; }
  .manual-entry-button { width: calc(100% - 4px); }
  .onboarding-stage { min-height: 0; }
  .onboarding-review > div { grid-template-columns: 110px minmax(0,1fr); }
}

.google-workspace-card { grid-column: span 2; }
.google-capabilities { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.google-capabilities span { padding: 4px 7px; border: 1px solid #e7ebf0; border-radius: 12px; color: #687789; font-size: 9px; }
.google-workspace-card small { display: block; margin-top: 8px; color: #8792a1; font-size: 9px; }
.contact-panel { max-width: 1160px; padding: 15px 19px; }
.contact-toolbar { display: flex; align-items: center; gap: 13px; padding: 2px 0 13px; border-bottom: 1px solid var(--line); }
.contact-search { width: min(460px, 100%); }
.contact-search input { width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.contact-layout { display: grid; grid-template-columns: minmax(255px, .8fr) minmax(0, 1.2fr); min-height: 430px; }
.contact-list { display: grid; align-content: start; padding: 6px 14px 0 0; border-right: 1px solid var(--line); }
.contact-row { display: grid; width: 100%; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 69px; padding: 10px 8px; border: 0; border-bottom: 1px solid #edf0f3; border-radius: 7px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.contact-row:hover, .contact-row.selected { background: #f5f8fc; }
.contact-row:focus-visible, .contact-activity-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.contact-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #edf1f8; color: #465c83; font-size: 12px; font-weight: 650; }
.contact-identity { display: grid; gap: 4px; min-width: 0; }
.contact-identity strong { overflow: hidden; font-size: 11px; font-weight: 620; white-space: nowrap; text-overflow: ellipsis; }
.contact-identity small { color: var(--muted); font-size: 10px; }
.contact-last-seen { color: #8994a2; font-size: 9px; white-space: nowrap; }
.contact-empty { padding: 18px 8px; }
.contact-detail { min-width: 0; padding: 22px 24px; }
.contact-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-detail-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.contact-avatar-large { width: 48px; height: 48px; font-size: 17px; }
.contact-detail-identity h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.contact-detail-identity p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.contact-edit-button { min-height: 34px; }
.contact-detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; }
.contact-detail-fields > div { min-width: 0; }
.contact-detail-fields dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.contact-detail-fields dd { overflow-wrap: anywhere; margin: 0; color: var(--ink); font-size: 12px; }
.contact-detail-notes, .contact-activity { margin-top: 24px; }
.contact-detail-notes h3, .contact-activity h3 { margin: 0 0 9px; font-size: 12px; font-weight: 650; }
.contact-detail-notes p { margin: 0; color: #4e5d6f; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.contact-activity { border-top: 1px solid var(--line); padding-top: 19px; }
.contact-activity-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border: 0; border-bottom: 1px solid #edf0f3; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.contact-activity-request { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.contact-activity-row time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.contact-editor { width: min(520px, calc(100vw - 28px)); max-height: min(88vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #10203035; }
.contact-editor::backdrop { background: #13223577; backdrop-filter: blur(3px); }
.contact-editor form { display: grid; gap: 8px; padding: 24px; }
.contact-editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.contact-editor-heading .eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.contact-editor-heading h2 { margin: 0; font-size: 22px; }
.contact-editor form > label { margin-top: 7px; color: #344255; font-size: 11px; font-weight: 620; }
.contact-editor form > input, .contact-editor form > textarea { width: 100%; min-height: 38px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.contact-editor form > textarea { resize: vertical; }
.contact-editor-hint { margin: 4px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.contact-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.button-quiet-danger { padding: 8px 0; border: 0; background: transparent; color: #a63737; font: inherit; font-size: 11px; cursor: pointer; }
.optional { margin-left: 3px; color: var(--muted); font-weight: 400; }
@media (max-width: 720px) {
  .google-workspace-card { grid-column: auto; }
  .contact-panel { padding: 12px; }
  .contact-layout { grid-template-columns: 1fr; min-height: 0; }
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px 0 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-row { grid-template-columns: 30px minmax(0,1fr); gap: 8px; min-height: 58px; padding: 8px 6px; }
  .contact-row .contact-avatar { width: 30px; height: 30px; }
  .contact-row .contact-last-seen { display: none; }
  .contact-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .contact-detail { padding: 18px 6px 8px; }
  .contact-detail-fields { gap: 13px; }
  .contact-editor form { padding: 20px; }
}

/* Public homepage */
body.public-home-visible { overflow-x: hidden; background: #f8fbfd; }
body.public-home-visible .skip-link, body.public-home-visible .app-shell { display: none; }
html[data-public-root="true"] body { overflow-x: hidden; background: #f8fbfd; }
html[data-public-root="true"] .skip-link, html[data-public-root="true"] .app-shell { display: none; }
html[data-public-root="true"] #public-home { display: block !important; }
.public-home { --home-ink: #102c3d; --home-muted: #627887; --home-blue: #246fa7; --home-blue-dark: #15547f; --home-mist: #edf6f8; --home-coral: #f07a5d; color: var(--home-ink); background: #fbfdfd; font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif; }
.public-home button, .public-home a { -webkit-tap-highlight-color: transparent; }
.home-header { position: sticky; top: 0; z-index: 80; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; min-height: 76px; padding: 0 clamp(22px, 5vw, 76px); border-bottom: 1px solid #dce8ec; background: rgba(251,253,253,.94); backdrop-filter: blur(16px); }
.home-brand { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--home-ink); text-decoration: none; }
.home-brand .brand-product { color: #637c8c; border-color: #d6e5ea; }
.home-nav { display: flex; align-items: center; gap: 30px; }
.home-nav a { color: #526b7b; font-size: 13px; font-weight: 560; text-decoration: none; }
.home-nav a:hover { color: var(--home-blue); }
.home-login-link { justify-self: end; border: 0; background: transparent; color: var(--home-blue-dark); font-size: 13px; font-weight: 680; cursor: pointer; }
.home-signin { min-width: 90px; min-height: 38px; border: 1px solid #b9d1db; border-radius: 999px; background: #fff; }
.home-signin:hover { border-color: var(--home-blue); background: #f3f9fb; }
.home-hero { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr); align-items: center; gap: clamp(50px, 8vw, 120px); min-height: 680px; padding: 88px clamp(24px, 7vw, 110px) 100px; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; z-index: 0; top: -80px; right: -110px; width: min(55vw, 760px); height: 620px; border-radius: 50% 0 46% 55%; background: #e6f4f6; transform: rotate(-6deg); }
.home-hero-copy, .switchboard { position: relative; z-index: 1; }
.home-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 25px; color: #496776; font-size: 13px; font-weight: 650; }
.home-kicker span { width: 30px; height: 2px; background: var(--home-coral); }
.home-hero h1 { max-width: 720px; color: var(--home-ink); font-size: clamp(50px, 6.1vw, 88px); font-weight: 650; line-height: .98; letter-spacing: -.065em; text-wrap: balance; }
.home-hero-lede { max-width: 620px; margin: 28px 0 0; color: var(--home-muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; }
.home-hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 35px; }
.home-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--home-blue); border-radius: 6px; background: var(--home-blue); color: white; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(21,84,127,.16); }
.home-cta:hover { border-color: var(--home-blue-dark); background: var(--home-blue-dark); }
.home-text-link { color: var(--home-blue-dark); font-size: 14px; font-weight: 680; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.home-proof { margin: 19px 0 0; color: #7a8e99; font-size: 12px; }
.switchboard { width: min(610px, 100%); justify-self: end; border: 1px solid #c8dde4; border-radius: 22px; background: #fff; box-shadow: 0 34px 80px rgba(39,82,103,.15); overflow: hidden; }
.switchboard-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 20px; border-bottom: 1px solid #e4edef; color: #718792; font-size: 11px; font-variant-numeric: tabular-nums; }
.switchboard-live { display: flex; align-items: center; gap: 8px; color: #335c6e; font-weight: 700; }
.switchboard-live i { width: 8px; height: 8px; border-radius: 50%; background: #36a477; box-shadow: 0 0 0 4px #e5f5ee; }
.caller-card { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 24px 24px 20px; }
.caller-avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #e8f2f6; color: #246187; font-size: 15px; font-weight: 750; }
.caller-card > div:nth-child(2) { display: grid; gap: 3px; }
.caller-card small, .call-result small, .board-detail small, .board-fields small { color: #82939c; font-size: 10px; }
.caller-card strong { font-size: 15px; }
.caller-card span { color: #71848e; font-size: 11px; }
.voice-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.voice-wave i { width: 3px; height: 9px; border-radius: 3px; background: #4c8eb7; }
.voice-wave i:nth-child(2), .voice-wave i:nth-child(6) { height: 18px; }.voice-wave i:nth-child(3), .voice-wave i:nth-child(5) { height: 26px; }.voice-wave i:nth-child(4) { height: 14px; }
.call-exchange { margin: 0 24px 22px; padding: 18px 20px; border: 1px solid #e2ebee; border-radius: 12px; background: #fbfdfd; }
.call-exchange p { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 10px; margin: 0; padding: 10px 0; color: #334d5b; font-size: 12px; line-height: 1.55; }
.call-exchange p + p { border-top: 1px solid #e8eff1; }
.call-exchange p span { color: #2f719b; font-size: 10px; font-weight: 750; }
.call-exchange .caller-line span { color: #b35743; }
.call-result { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 17px 24px; background: #eaf5f1; }
.result-check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #318266; color: #fff; font-weight: 800; }
.call-result > div:nth-child(2) { display: grid; gap: 3px; }
.call-result strong { font-size: 12px; }.call-result span { color: #567469; font-size: 10px; }
.result-status { padding: 5px 9px; border-radius: 999px; background: #fff; color: #287056 !important; font-weight: 700; }
.home-trust { display: grid; justify-items: center; gap: 20px; padding: 31px clamp(22px, 7vw, 110px); border-top: 1px solid #dce8ec; border-bottom: 1px solid #dce8ec; background: #fff; }
.home-trust > span { color: #82939c; font-size: 11px; }
.home-trust div { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(26px, 5vw, 70px); }
.home-trust strong { color: #496573; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.home-section { width: min(1220px, calc(100% - 44px)); margin: 0 auto; padding: 112px 0; }
.home-section-heading { display: grid; grid-template-columns: minmax(180px,.34fr) minmax(0,1fr); gap: 60px; margin-bottom: 55px; }
.home-section-heading > p, .home-section-label { margin: 8px 0 0; color: #5d7a89; font-size: 12px; font-weight: 680; }
.home-section h2 { max-width: 820px; color: var(--home-ink); font-size: clamp(34px, 4.2vw, 58px); font-weight: 620; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
.setup-steps { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #ccdce1; }
.setup-steps article { position: relative; min-height: 300px; padding: 36px 44px 30px 0; border-right: 1px solid #dce7ea; }
.setup-steps article + article { padding-left: 44px; }.setup-steps article:last-child { border-right: 0; }
.step-number { position: absolute; top: -12px; left: 0; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #aac5cf; border-radius: 50%; background: #fbfdfd; color: #4a7486; font-size: 10px; font-weight: 750; }
.setup-steps article + article .step-number { left: 44px; }
.step-icon { margin: 22px 0 28px; color: var(--home-blue); font: 400 38px Georgia,serif; }
.setup-steps h3 { color: var(--home-ink); font-size: 20px; font-weight: 650; }
.setup-steps p { max-width: 340px; margin: 14px 0 0; color: var(--home-muted); font-size: 14px; line-height: 1.7; }
.outcome-section { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(520px,1.28fr); gap: clamp(60px,8vw,110px); align-items: center; width: 100%; max-width: none; padding: 112px clamp(22px,7vw,110px); background: #eaf4f6; }
.outcome-copy > p:not(.home-section-label) { max-width: 530px; margin: 23px 0 0; color: #5d7683; font-size: 16px; line-height: 1.65; }
.outcome-copy ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; color: #294b5c; font-size: 13px; }
.outcome-copy li::before { content: "✓"; margin-right: 10px; color: #318266; font-weight: 800; }
.outcome-board { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: 440px; border: 1px solid #c8dade; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(39,82,103,.12); overflow: hidden; }
.board-sidebar { display: grid; align-content: start; gap: 2px; padding: 18px 12px; border-right: 1px solid #dce8eb; background: #f8fbfc; }
.board-sidebar > strong { padding: 3px 9px 12px; color: #6e838e; font-size: 10px; }
.board-sidebar button { display: grid; grid-template-columns: 7px minmax(0,1fr) auto; gap: 9px; width: 100%; padding: 13px 9px; border: 0; border-radius: 7px; background: transparent; color: #244455; text-align: left; }
.board-sidebar button.active { background: #e8f2f6; }.board-sidebar button > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }.board-sidebar b { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }.board-sidebar small, .board-sidebar time { color: #7e919b; font-size: 8px; }.board-dot { width: 6px; height: 6px; margin-top: 3px; border-radius: 50%; }.board-dot.blue { background: #3d7fad; }.board-dot.green { background: #3b9473; }.board-dot.amber { background: #d49a3e; }
.board-detail { padding: 28px; }.board-detail-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid #e4ecee; }.board-detail-head > div { display: grid; gap: 5px; }.board-detail-head strong { font-size: 17px; }.board-detail-head > span { align-self: start; padding: 5px 9px; border-radius: 999px; background: #fff1e8; color: #a65935; font-size: 9px; font-weight: 700; }.board-summary { padding: 24px 0; }.board-summary p { margin: 8px 0 0; color: #3e5865; font-size: 12px; line-height: 1.65; }.board-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 21px; border-top: 1px solid #e4ecee; }.board-fields div { display: grid; gap: 5px; }.board-fields strong { color: #294858; font-size: 11px; }
.business-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }.business-grid article { display: flex; flex-direction: column; min-height: 300px; padding: 30px; border: 1px solid #d6e4e8; border-radius: 4px; background: #fff; }.business-grid article > span { width: fit-content; padding: 5px 9px; border-radius: 999px; background: #eaf4f6; color: #3c6c80; font-size: 10px; font-weight: 700; }.business-grid h3 { margin-top: 45px; font-size: 24px; font-weight: 630; letter-spacing: -.03em; }.business-grid p { margin: 15px 0; color: var(--home-muted); font-size: 14px; line-height: 1.7; }.business-grid small { margin-top: auto; padding-top: 22px; border-top: 1px solid #e2eaed; color: #68808c; font-size: 10px; }
.pricing-section { display: grid; grid-template-columns: 1fr; gap: 38px; align-items: start; width: 100%; max-width: none; padding: 112px clamp(22px,7vw,110px); background: #143b51; color: #fff; }.pricing-section h2 { color: white; }.pricing-message { max-width: 790px; }.pricing-message > p:last-child { max-width: 700px; margin: 24px 0 0; color: #b9d0db; font-size: 17px; line-height: 1.65; }.pricing-section .home-section-label { color: #8fc0d3; }.pricing-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; align-items: stretch; }.price-card { display: flex; flex-direction: column; min-width: 0; padding: 25px 23px; border: 1px solid #8eb4c4; border-radius: 12px; background: #f9fcfc; color: var(--home-ink); }.price-card > div { display: grid; gap: 12px; }.price-card > div > span { color: #527586; font-size: 12px; font-weight: 700; }.price-card > div > strong { font-size: clamp(36px,3vw,48px); line-height: 1; letter-spacing: -.05em; }.price-card strong small { color: #66808d; font-size: 11px; font-weight: 600; letter-spacing: 0; }.price-card p { min-height: 50px; margin: 0; color: #667d88; font-size: 12px; line-height: 1.55; }.price-card ul { display: grid; gap: 11px; flex: 1; margin: 20px 0; padding: 18px 0; border-top: 1px solid #dbe6e9; border-bottom: 1px solid #dbe6e9; list-style: none; color: #365361; font-size: 12px; line-height: 1.5; }.price-card li::before { content: "✓"; margin-right: 9px; color: #308265; font-weight: 800; }.price-card .home-cta { width: 100%; }.price-card > small { display: block; margin-top: 12px; color: #738995; text-align: center; }.price-card .plan-status { min-height: 34px; font-size: 11px; }.price-card-free { border-color: #a9cfbb; }.pricing-footnote { max-width: 1080px; margin: 0; color: #bdd1d9; font-size: 11px; line-height: 1.6; }
.faq-section { display: grid; grid-template-columns: minmax(260px,.65fr) minmax(440px,1.1fr); gap: 90px; }.faq-section .home-section-heading { display: block; margin: 0; }.faq-section .home-section-heading h2 { margin-top: 18px; font-size: clamp(34px,3.5vw,50px); }.faq-list { border-top: 1px solid #cbdbe0; }.faq-list details { border-bottom: 1px solid #cbdbe0; }.faq-list summary { position: relative; padding: 25px 45px 25px 0; color: #244454; font-size: 16px; font-weight: 650; cursor: pointer; list-style: none; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary::after { content: "+"; position: absolute; right: 7px; color: #47778b; font-size: 22px; font-weight: 400; }.faq-list details[open] summary::after { content: "−"; }.faq-list details p { max-width: 700px; margin: -6px 45px 24px 0; color: var(--home-muted); font-size: 13px; line-height: 1.7; }
.home-final { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 76px clamp(22px,7vw,110px); background: var(--home-coral); color: #fff; }.home-final p { margin: 0 0 8px; font-size: 13px; font-weight: 650; }.home-final h2 { color: #fff; font-size: clamp(32px,4vw,56px); font-weight: 650; letter-spacing: -.045em; }.home-cta-light { flex: 0 0 auto; border-color: #fff; background: #fff; color: #8e3e2b; box-shadow: none; }.home-cta-light:hover { border-color: #fff; background: #fff7f4; color: #713323; }
.home-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 112px; padding: 0 clamp(22px,7vw,110px); background: #0f2d3d; color: #a9c0ca; }.home-footer .home-brand { color: #fff; }.home-footer .brand-product { color: #a9c0ca; border-color: #496474; }.home-footer p { font-size: 11px; }.home-footer .home-login-link { color: #dce9ee; }
body.public-home-visible.auth-dialog-open .public-home { filter: blur(4px); opacity: .58; pointer-events: none; user-select: none; }
body.public-home-visible .onboarding-gate { background: rgba(15,45,61,.42); }

@media (max-width: 960px) {
  .home-header { grid-template-columns: 1fr auto; }.home-nav { display: none; }
  .home-hero { grid-template-columns: 1fr; padding-top: 70px; }.home-hero::before { top: 390px; width: 95vw; }.home-hero-copy { max-width: 760px; }.switchboard { justify-self: center; }
  .outcome-section { grid-template-columns: 1fr; }.outcome-copy { max-width: 720px; }
  .pricing-section { grid-template-columns: 1fr; }.pricing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.price-card { max-width: none; }
  .faq-section { grid-template-columns: 1fr; gap: 45px; }
}
@media (max-width: 720px) {
  .home-header { min-height: 66px; padding: 0 18px; }.home-header .brand-product { display: inline; }.home-signin { min-width: 76px; }
  .home-hero { min-height: 0; gap: 52px; padding: 58px 20px 70px; }.home-hero h1 { font-size: clamp(44px,13vw,62px); }.home-hero-lede { font-size: 16px; }.home-hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }.home-text-link { text-align: center; }.home-proof { line-height: 1.6; }
  .switchboard { border-radius: 14px; }.caller-card { grid-template-columns: 45px minmax(0,1fr); padding: 19px 17px 16px; }.caller-avatar { width: 45px; height: 45px; }.voice-wave { display: none; }.call-exchange { margin: 0 16px 16px; padding: 12px 14px; }.call-exchange p { grid-template-columns: 1fr; gap: 4px; }.call-result { grid-template-columns: 34px minmax(0,1fr); padding: 15px 17px; }.result-status { display: none; }
  .home-trust { justify-items: start; }.home-trust div { justify-content: flex-start; gap: 15px 28px; }.home-trust strong { font-size: 16px; }
  .home-section { width: min(100% - 38px, 1220px); padding: 80px 0; }.home-section-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }.home-section-heading > p { margin: 0; }.home-section h2 { font-size: 36px; }
  .setup-steps { grid-template-columns: 1fr; }.setup-steps article, .setup-steps article + article { min-height: 0; padding: 34px 0 38px 45px; border-right: 0; border-bottom: 1px solid #dce7ea; }.setup-steps article:last-child { border-bottom: 0; }.setup-steps article + article .step-number, .step-number { top: 35px; left: 0; }.step-icon { display: none; }
  .outcome-section, .pricing-section { width: 100%; padding: 80px 20px; }.outcome-board { grid-template-columns: 1fr; min-height: 0; }.board-sidebar { display: none; }.board-detail { padding: 22px 18px; }.board-fields { grid-template-columns: 1fr 1fr; }
  .business-grid { grid-template-columns: 1fr; }.business-grid article { min-height: 260px; }.business-grid h3 { margin-top: 35px; }
  .pricing-grid { grid-template-columns: 1fr; }.price-card { padding: 27px 22px; }.faq-section { gap: 34px; }.faq-list summary { font-size: 14px; }
  .home-final { align-items: stretch; flex-direction: column; padding: 60px 20px; }.home-final .home-cta { width: 100%; }
  .home-footer { grid-template-columns: 1fr auto; gap: 16px; min-height: 100px; padding: 20px; }.home-footer p { display: none; }
}

/* Signup and mandatory setup, aligned with the public Voice service experience. */
body.onboarding-locked { background: #eaf4f6; }
.onboarding-gate { padding: 28px; background: rgba(15,45,61,.3); backdrop-filter: blur(8px); }
.onboarding-dialog { width: min(1180px, 100%); max-height: min(920px, calc(100vh - 56px)); border: 1px solid #c9dce3; border-radius: 20px; background: #fbfdfd; box-shadow: 0 34px 100px rgba(20,59,81,.24); font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif; }
.onboarding-brand-row { min-height: 72px; padding: 0 34px; border-bottom: 1px solid #dce8ec; background: rgba(255,255,255,.82); }
.onboarding-brand-row .brand { gap: 9px; }
.onboarding-brand-row .brand-icon { background: #173fe6; }
.onboarding-brand-row .brand-name { color: #0b1942; }
.setup-private-note { color: #637d8c; font-size: 12px; }
.onboarding-auth-panel { width: min(600px, 100%); padding: 70px 48px 76px; text-align: center; }
.onboarding-auth-panel .eyebrow { margin-bottom: 14px; color: #4c7182; font-size: 13px; text-transform: none; }
.onboarding-auth-panel h1, .onboarding-flow h1 { color: #102c3d; font-size: clamp(34px,4vw,48px); font-weight: 650; line-height: 1.06; letter-spacing: -.045em; }
.onboarding-auth-panel .lede { max-width: 540px; margin: 20px auto 0; color: #627887; font-size: 16px; line-height: 1.65; }
.onboarding-auth-panel .google-signin-button { display: grid; justify-content: center; min-height: 44px; margin: 32px 0 10px; }
.onboarding-auth-panel .auth-message { color: #6c818d; font-size: 12px; }
.auth-close { top: 18px; right: 20px; width: 38px; height: 38px; background: #eaf3f5; color: #476d7e; }
.onboarding-flow { padding: 36px 48px 44px; }
.onboarding-flow-heading { align-items: center; }
.onboarding-flow-heading .eyebrow { margin-bottom: 9px; color: #4d7181; font-size: 12px; text-transform: none; }
.onboarding-flow-heading .lede { max-width: 690px; margin-top: 11px; color: #6b808c; font-size: 14px; line-height: 1.55; }
.onboarding-flow-heading .text-button { color: #246fa7; font-size: 13px; }
.onboarding-steps { position: relative; gap: 0; margin: 36px 0 42px; }
.onboarding-steps::before { content: ""; position: absolute; top: 18px; left: 12.5%; right: 12.5%; height: 1px; background: #cedee4; }
.onboarding-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 9px; padding: 0 8px; border: 0; background: transparent; color: #82939c; text-align: center; font-size: 12px; }
.onboarding-steps li span { width: 37px; height: 37px; border: 1px solid #c7d9df; background: #fbfdfd; color: #647e8b; font-size: 12px; }
.onboarding-steps li strong { max-width: 150px; font-weight: 620; }
.onboarding-steps li.is-current, .onboarding-steps li.is-complete { border: 0; color: #244958; }
.onboarding-steps li.is-current span { border-color: #246fa7; background: #246fa7; box-shadow: 0 0 0 6px #e5f1f5; }
.onboarding-steps li.is-complete span { border-color: #3b8b70; background: #3b8b70; }
.onboarding-stage { min-height: 400px; }
.onboarding-stage-heading { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.onboarding-stage-heading .eyebrow { margin-bottom: 10px; color: #537586; font-size: 12px; text-transform: none; }
.onboarding-stage-heading h2 { color: #102c3d; font-size: clamp(28px,3.1vw,38px); font-weight: 640; line-height: 1.12; letter-spacing: -.035em; }
.onboarding-stage-heading p:last-child { max-width: 700px; margin: 13px auto 0; color: #657c88; font-size: 14px; line-height: 1.65; }
.onboarding-phone-form { gap: 12px; width: min(650px,100%); margin: 34px auto 0; }
.onboarding-phone-form label, .website-import-panel label, .onboarding-profile-content .profile-form label, .onboarding-test-content .profile-form label { color: #294b5b; font-size: 13px; font-weight: 680; }
.onboarding-phone-form input, .website-import-controls input, .onboarding-profile-content .profile-form input, .onboarding-profile-content .profile-form textarea, .onboarding-test-content .profile-form input, .onboarding-test-content .profile-form textarea, .onboarding-test-content .profile-form select { min-height: 48px; padding: 12px 14px; border-color: #bfd2da; border-radius: 7px; color: #183849; background: #fff; font-size: 14px; }
.onboarding-phone-form input:focus, .website-import-controls input:focus, .onboarding-profile-content .profile-form input:focus, .onboarding-profile-content .profile-form textarea:focus, .onboarding-test-content .profile-form input:focus, .onboarding-test-content .profile-form textarea:focus, .onboarding-test-content .profile-form select:focus { border-color: #4c8caf; box-shadow: 0 0 0 4px #e4f1f5; }
.onboarding-phone-form small { color: #718793; font-size: 12px; }
.call-forwarding-note { margin-top: 10px; padding: 19px 20px; border: 1px solid #c7dce3; border-left: 4px solid #f07a5d; border-radius: 8px; background: #f2f8f9; }
.call-forwarding-note strong { color: #294b5b; font-size: 12px; }.call-forwarding-note span { color: #15547f; font-size: 18px; font-weight: 720; }.call-forwarding-note p { color: #637d8a; font-size: 12px; line-height: 1.6; }
.onboarding-phone-form .button-primary, .onboarding-stage-actions .button-primary { min-width: 132px; min-height: 48px; border-radius: 6px; background: #246fa7; font-size: 13px; }
.onboarding-phone-form .button-primary:hover, .onboarding-stage-actions .button-primary:hover { background: #15547f; }
.website-import-panel { gap: 14px; max-width: 760px; margin: 0 auto 18px; padding: 25px; border-color: #c7dbe2; border-radius: 12px; background: #f1f7f8; }
.website-import-panel p { margin-top: 6px; color: #657d89; font-size: 13px; line-height: 1.55; }.website-import-panel > small { color: #667f8b; font-size: 12px; }
.website-import-controls { gap: 10px; }.website-import-controls .button-secondary { min-width: 132px; min-height: 48px; border-color: #a9c6d2; border-radius: 7px; color: #195f88; background: #fff; font-size: 13px; }
.manual-entry-button { width: min(760px,100%); min-height: 46px; margin: 0 auto; border: 1px dashed #b8ced7; border-radius: 8px; color: #456e80; background: transparent; font-size: 13px; }
.onboarding-profile-content { max-width: 860px; margin-top: 24px; }.onboarding-profile-content > .panel { padding: 27px; border-color: #cedee4; border-radius: 12px; box-shadow: 0 12px 36px rgba(32,77,99,.06); }
.onboarding-profile-content .panel-heading h2, .onboarding-test-content .panel-heading h2 { color: #163848; font-size: 18px; }.onboarding-profile-content .panel-heading p, .onboarding-test-content .panel-heading p { color: #718590; font-size: 12px; }
.onboarding-profile-content .profile-form label, .onboarding-test-content .profile-form label { margin: 14px 0 8px; }
.onboarding-profile-content .profile-form textarea, .onboarding-test-content .profile-form textarea { line-height: 1.6; }
.onboarding-profile-content .business-time-zone-field { margin-top: 22px; }
.onboarding-profile-content .business-time-zone-field label, .onboarding-profile-content .weekly-hours-fieldset legend { color: #294b5b; font-size: 13px; font-weight: 680; }
.onboarding-profile-content .business-time-zone-field select, .onboarding-profile-content .weekly-hours-day select { min-height: 44px; border-color: #bfd2da; border-radius: 7px; color: #183849; background: #fff; font-size: 13px; }
.onboarding-profile-content .business-time-zone-field small, .onboarding-profile-content .weekly-hours-fieldset > p { color: #718793; font-size: 12px; }
.onboarding-profile-content .weekly-hours-fieldset { padding: 19px; border-color: #d5e2e6; border-radius: 9px; }
.onboarding-profile-content .weekly-hours-day-name { color: #294b5b; font-size: 13px; }
.onboarding-profile-content .hours-period input { width: 116px; min-height: 40px; padding: 8px 10px; border-color: #bfd2da; border-radius: 7px; color: #183849; font-size: 13px; }
.onboarding-profile-content .hours-period-add, .onboarding-profile-content .hours-period-remove { min-height: 36px; font-size: 12px; }
.onboarding-test-content { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 22px; }
.onboarding-test-content > .panel { padding: 26px; border-color: #cbdde3; border-radius: 13px; box-shadow: 0 14px 40px rgba(32,77,99,.07); }
.onboarding-test-content .voice-test-panel { padding: 26px; background: #f2f8f9; }
.onboarding-test-content .voice-stage { min-height: 224px; padding: 25px; border-color: #bfd4dc; border-radius: 10px; background: #fff; }
.onboarding-test-content .voice-stage h3 { color: #163848; font-size: 18px; }.onboarding-test-content .voice-stage p { color: #687f8b; font-size: 13px; line-height: 1.55; }
.onboarding-test-content .call-controls .button-primary { min-height: 45px; padding: 10px 18px; border-radius: 6px; background: #246fa7; font-size: 13px; }
.onboarding-test-content .live-transcript { min-height: 130px; max-height: 210px; border-color: #cbdce2; border-radius: 9px; background: #fff; font-size: 13px; line-height: 1.55; }
.onboarding-test-content .transcript-heading { margin-top: 20px; }.onboarding-test-content .transcript-heading h3 { color: #294b5b; font-size: 14px; }
.onboarding-stage-actions { max-width: 1080px; margin-top: 30px; padding-top: 22px; border-top-color: #d9e6ea; }.onboarding-stage-actions .text-button { color: #5c7785; font-size: 13px; }
.onboarding-review { max-width: 760px; margin: 28px auto; border-color: #cadce2; border-radius: 10px; background: #fff; overflow: hidden; }.onboarding-review > div { grid-template-columns: 180px minmax(0,1fr); padding: 15px 18px; border-color: #e2ecef; }.onboarding-review dt { color: #718590; font-size: 12px; }.onboarding-review dd { color: #294b5b; font-size: 13px; }
.optional-integration-note { max-width: 760px; padding: 15px 17px; border-left-color: #4d91b2; border-radius: 0 7px 7px 0; background: #edf6f8; font-size: 12px; }.trial-start-note { border-left-color: #3b8b70; background: #edf7f3; }
.onboarding-error { max-width: 860px; margin: 0 auto 22px; padding: 13px 15px; border-radius: 7px; font-size: 13px; line-height: 1.55; }

@media (max-width: 720px) {
  .onboarding-gate { padding: 0; }.onboarding-dialog { max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
  .onboarding-brand-row { min-height: 64px; padding: 0 18px; }.setup-private-note { display: none; }
  .onboarding-auth-panel { padding: 62px 24px; }.onboarding-auth-panel h1, .onboarding-flow h1 { font-size: 35px; }
  .onboarding-flow { padding: 26px 18px 30px; }.onboarding-flow-heading { align-items: flex-start; }.onboarding-flow-heading .lede { font-size: 13px; }
  .onboarding-steps { margin: 30px 0 34px; }.onboarding-steps::before { left: 10%; right: 10%; }.onboarding-steps li { padding: 0 2px; font-size: 9px; }.onboarding-steps li span { width: 32px; height: 32px; }
  .onboarding-stage-heading { text-align: left; }.onboarding-stage-heading h2 { font-size: 30px; }.onboarding-stage-heading p:last-child { font-size: 13px; }
  .website-import-panel { padding: 19px; }.onboarding-profile-content > .panel, .onboarding-test-content > .panel, .onboarding-test-content .voice-test-panel { padding: 19px; }
  .onboarding-test-content { grid-template-columns: 1fr; gap: 16px; }.onboarding-test-content .voice-stage { min-height: 200px; padding: 20px 16px; }
  .onboarding-review > div { grid-template-columns: 120px minmax(0,1fr); gap: 10px; }.onboarding-stage-actions { position: sticky; bottom: 0; z-index: 2; margin-inline: -18px; padding: 15px 18px; background: rgba(251,253,253,.96); }
}

.voice-hearing-confirmation{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid #cbd9ea;border-radius:12px;background:#f4f8fd;cursor:pointer;text-align:left;margin-top:16px}.voice-hearing-confirmation[hidden]{display:none!important}.voice-hearing-confirmation input[type=checkbox]{width:20px!important;height:20px!important;min-width:20px;padding:0;margin:2px 0 0;accent-color:#2157cc;appearance:auto;cursor:pointer}.onboarding-phone-check{padding:22px;border:1px solid #dce5f0;border-radius:16px;margin:20px 0;background:#f7faff}.onboarding-phone-check h3{margin-top:0}.onboarding-phone-check p{line-height:1.6}
.voice-stage .voice-hearing-confirmation{color:#18324f!important;font-size:14px;line-height:1.5}.voice-stage #start-call{color:#fff!important}

.phone-path-choices{border:0;padding:0;margin:0 0 20px;display:grid;gap:12px}.phone-path-choices label{display:flex;align-items:flex-start;gap:12px;border:1px solid #d4dfed;border-radius:12px;padding:15px;cursor:pointer}.phone-path-choices label:has(input:checked){background:#f0f6ff;border-color:#3680db}.phone-path-choices input[type=radio]{width:18px!important;height:18px!important;padding:0;margin:4px 0 0;flex-shrink:0;accent-color:#2157cc}.phone-path-choices strong,.phone-path-choices small{display:block}.phone-path-choices small{margin-top:5px;line-height:1.5;color:#5a6c83}
.voice-hearing-confirmation{color:#18324f!important}

.phone-setup-instructions { display: grid; gap: 14px; padding: 20px 24px 20px 44px; margin: 0 0 24px; background: #f2f7f8; border: 1px solid #dce8ec; border-radius: 16px; color: #365563; line-height: 1.6; }
.phone-setup-instructions li::marker { color: #246fa7; font-weight: 700; }

#existing-phone-fields:not([hidden]), #new-phone-fields:not([hidden]) { display: grid; gap: 10px; margin-bottom: 22px; }
#new-phone-fields label, #existing-phone-fields label { font-weight: 600; color: #284c5e; }
#new-phone-fields select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #bfd2df; border-radius: 10px; background: white; color: #284c5e; font: inherit; }
#new-phone-fields input, #existing-phone-fields input { width: 100%; box-sizing: border-box; }
#new-phone-fields small, #existing-phone-fields small { display: block; color: #5d7482; line-height: 1.6; }

.profile-form .field-hint { display: block; margin: -2px 0 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.knowledge-base { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.knowledge-base-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.knowledge-base-heading h3 { margin: 0; color: var(--navy); font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
.knowledge-base-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.knowledge-base-privacy { max-width: 680px; margin: 14px 0; color: #69778a; font-size: 11px; line-height: 1.55; }
.knowledge-base-upload-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
#knowledge-base-file { min-width: 0; min-height: 40px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; color: var(--ink); font-size: 11px; }
#knowledge-base-file::file-selector-button { min-height: 28px; margin-right: 10px; padding: 5px 10px; border: 1px solid #cbd6e1; border-radius: 4px; background: #f7f9fc; color: #34445b; font: inherit; font-weight: 600; cursor: pointer; }
#knowledge-base-file::file-selector-button:hover { background: #eef3f8; }
#knowledge-base-upload { min-height: 40px; white-space: nowrap; }
#knowledge-base-upload:disabled { opacity: .55; cursor: not-allowed; }
.knowledge-base-file-hint, .knowledge-base-status { min-height: 16px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.knowledge-base-status:empty { display: none; }
.knowledge-base-documents { display: grid; gap: 9px; margin-top: 14px; }
.knowledge-base-empty { margin: 0; padding: 13px 14px; border: 1px dashed #d5dce5; border-radius: 6px; color: #7a8797; font-size: 11px; }
.knowledge-document { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.knowledge-document-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.knowledge-document-identity { display: grid; min-width: 0; gap: 4px; }
.knowledge-document-identity strong { overflow-wrap: anywhere; color: var(--navy-2); font-size: 12px; font-weight: 620; }
.knowledge-document-identity span { color: var(--muted); font-size: 10px; }
.knowledge-document-remove { flex: 0 0 auto; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: #6e7c90; font: inherit; font-size: 10px; cursor: pointer; }
.knowledge-document-remove:hover { background: #f7eeee; color: var(--red); }
.knowledge-document-remove:disabled { opacity: .55; cursor: wait; }
.knowledge-document-notes { margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf0f4; }
.knowledge-document-notes summary { color: var(--blue-dark); font-size: 10px; font-weight: 600; cursor: pointer; }
.knowledge-document-notes p { margin: 9px 0 0; color: #4e5c70; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.onboarding-profile-content .profile-form .field-hint { font-size: 12px; }
.onboarding-profile-content .knowledge-base { margin-top: 30px; }
.onboarding-profile-content .knowledge-base-heading h3 { color: #163848; font-size: 17px; }
.onboarding-profile-content .knowledge-base-heading p, .onboarding-profile-content .knowledge-base-privacy { font-size: 12px; }
.onboarding-profile-content #knowledge-base-file { min-height: 45px; padding: 7px; border-color: #bfd2da; border-radius: 7px; font-size: 12px; }
.onboarding-profile-content #knowledge-base-file::file-selector-button { min-height: 31px; border-radius: 5px; }
.onboarding-profile-content #knowledge-base-upload { min-height: 45px; border-radius: 7px; font-size: 12px; }

@media (max-width: 560px) {
  .knowledge-base-upload-row { grid-template-columns: 1fr; }
  #knowledge-base-upload { width: 100%; }
}

