/* AI Customer Agent — readable, familiar, broadly approachable */
:root {
  --canvas: #f6f8fb;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --ink: #172033;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e8ef;
  --line-dark: #d0d5dd;
  --plum: #2563eb;
  --plum-dark: #1d4ed8;
  --plum-soft: #eff6ff;
  --sage: #12a37e;
  --sage-soft: #ecfdf7;
  --clay: #ea6a47;
  --clay-soft: #fff1ed;
  --sand: #e6a23c;
  --sand-soft: #fff7e8;
  --danger: #dc4c4c;
  --danger-soft: #fff1f1;
  --success: #168553;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.035);
  --shadow-lg: 0 24px 60px rgba(16,24,40,.16), 0 6px 20px rgba(16,24,40,.08);
}

body,
button,
input,
textarea,
select { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }

h1,h2,h3,
.brand-lockup strong,
.page-heading h1,
.panel-head h2,
.metric-card > strong,
.performance-stats strong,
.usage-total strong,
.usage-ring strong,
.settings-head h2 { font-family: inherit; }

/* Dashboard shell */
.dashboard-page { overflow: hidden; color: var(--ink); background: var(--canvas); }
.sidebar { width: 264px; flex: 0 0 264px; padding: 24px 16px 18px; color: var(--ink); background: #fff; border-right: 1px solid var(--line); }
.brand-lockup { gap: 11px; padding: 0 10px 22px; }
.brand-mark { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #2563eb; box-shadow: none; }
.brand-mark svg { width: 36px; height: 36px; overflow:visible; }
.brand-mark svg path { fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.brand-mark svg .brand-wave { stroke-width:1.8; }
.brand-lockup strong { color: #101828; font-size: 17px; letter-spacing: -.02em; }
.brand-lockup small { color: #667085; font-size: 11px; letter-spacing: 0; text-transform: none; }
.workspace-switcher { display:flex; width:100%; min-height: 58px; align-items:center; gap: 10px; border: 1px solid var(--line); border-radius:10px; margin-bottom: 12px; padding: 9px 10px; color: var(--ink); background: #f8fafc; }
.workspace-switcher > span:nth-child(2) { display:grid; gap:3px; }
.workspace-logo { width: 34px; height: 34px; border-radius: 9px; color: #065f46; background: #d1fae5; font-family: inherit; font-size: 14px; font-weight: 700; }
.workspace-switcher strong { color: #253044; font-size: 12px; }
.workspace-switcher small { color: #667085; font-size: 11px; }
.workspace-switcher b { color: #98a2b3; }
.primary-nav { gap: 4px; }
.nav-label { margin: 16px 11px 7px; color: #98a2b3; font-size: 11px; letter-spacing: .08em; }
.nav-item { min-height: 44px; gap: 12px; border-radius: 9px; padding: 0 11px; color: #475467; font-size: 14px; font-weight: 500; }
.nav-item:hover { color: #1d2939; background: #f5f7fa; }
.nav-item.is-active { color: #1d4ed8; background: #eff6ff; box-shadow: none; font-weight: 650; }
.nav-icon { display: none; }
.nav-item { gap: 0; }
.nav-item.is-active .nav-icon { color: #2563eb; }
.nav-count { min-width: 21px; padding: 3px 6px; color: #fff; background: #2563eb; font-size: 11px; }
.nav-count.subtle { color: #475467; background: #eaecf0; }
.sidebar-foot { gap: 12px; padding-top: 16px; }
.plan-mini { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #f8fafc; }
.plan-mini > div:first-child { color: #667085; font-size: 11px; }
.plan-mini strong { color: #344054; font-size: 11px; }
.plan-mini small { color: #667085; font-size: 11px; }
.progress { height: 6px; background: #e4e7ec; }
.progress i { background: #2563eb; }
.profile-button { min-height: 52px; color: #344054; }
.profile-button:hover { background: #f5f7fa; }
.profile-button strong { font-size: 12px; }
.profile-button small { color: #667085; font-size: 11px; }
.profile-button b { color: #98a2b3; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #2563eb; font-size: 11px; }

.main-panel { background: var(--canvas); }
.topbar { height: 72px; border-bottom: 1px solid var(--line); padding: 0 32px; background: rgba(255,255,255,.94); }
.global-search { width: min(520px,45vw); height: 42px; border-color: #d0d5dd; border-radius: 9px; color: #98a2b3; background: #fff; }
.global-search input { color: #344054; font-size: 14px; }
.global-search kbd { padding: 3px 6px; color: #667085; font-size: 11px; }
.test-badge { height: 32px; border-color: #f2d7a7; padding: 0 11px; color: #8a5a16; background: #fff8e7; font-size: 12px; }
.agent-status,.channel-status { display:inline-flex; height:32px; align-items:center; gap:6px; border:1px solid #d0d5dd; border-radius:999px; padding:0 10px; color:#475467; background:#fff; font-size:12px; font-weight:650; white-space:nowrap; }
.agent-status i,.channel-status i { width:7px; height:7px; border-radius:50%; background:#12a37e; box-shadow:0 0 0 3px rgba(18,163,126,.12); }
.channel-status.voice { color:#1d4ed8; border-color:#bfdbfe; background:#eff6ff; }.channel-status.voice i { background:#2563eb; box-shadow:none; }
.channel-status.chat { color:#087a5b; border-color:#bce8da; background:#ecfdf7; }.channel-status.chat i { background:#12a37e; box-shadow:none; }
.icon-control { display: none; }
.view { max-width: 1480px; padding: 34px 36px 64px; }
.page-heading { margin-bottom: 26px; }
.page-heading h1 { margin-bottom: 8px; color: #101828; font-size: clamp(28px,3vw,36px); font-weight: 700; letter-spacing: -.03em; }
.compact-heading h1 { font-size: 32px; }
.page-heading p:not(.eyebrow) { color: #667085; font-size: 15px; line-height: 1.5; }
.eyebrow { margin-bottom: 7px; color: #2563eb; font-size: 12px; letter-spacing: .06em; text-transform: none; }
.button { min-height: 42px; border-radius: 8px; padding: 0 15px; font-size: 14px; }
.button.primary { background: #2563eb; box-shadow: none; }
.button.primary:hover { background: #1d4ed8; box-shadow: 0 5px 14px rgba(37,99,235,.18); }
.button.secondary { border-color: #d0d5dd; color: #344054; background: #fff; }
.button.compact { min-height: 36px; padding: 0 12px; font-size: 12px; }
.text-button { color: #2563eb; font-size: 13px; }
.select-button { min-height: 38px; border-color: #d0d5dd; font-size: 12px; }

/* Overview */
.demo-banner { min-height: 82px; border-color: #cfe0ff; border-radius: 12px; margin-bottom: 18px; padding: 16px 18px; background: #f5f9ff; box-shadow: none; }
.demo-icon { width: 42px; height: 42px; border-radius: 10px; background: #2563eb; box-shadow: none; }
.demo-banner strong { color: #1d2939; font-size: 15px; }
.demo-banner p { margin-top: 5px; color: #667085; font-size: 13px; }
.channel-pills span { border-color: #bce8da; padding: 7px 10px; color: #087a5b; background: #fff; font-size: 11px; }
.metric-grid { gap: 16px; margin-bottom: 16px; }
.overview-metrics,.analytics-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }
.metric-card { border-color: var(--line); border-radius: 12px; padding: 19px; box-shadow: var(--shadow-sm); }
.metric-link { width:100%; cursor:pointer; color:inherit; background:#fff; text-align:left; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.metric-link:hover { transform:translateY(-2px); border-color:#cbd5e1; box-shadow:0 8px 22px rgba(16,24,40,.08); }
.channel-metric { position:relative; overflow:hidden; }
.channel-metric::before { position:absolute; top:0; right:0; left:0; height:3px; content:""; }
.voice-metric::before { background:#2563eb; }.chat-metric::before { background:#12a37e; }
.metric-top { margin-bottom: 16px; }
.metric-icon { width: 36px; height: 36px; border-radius: 9px; font-size: 17px; }
.metric-icon.plum { color: #2563eb; background: #eff6ff; }
.metric-icon.moss { color: #087a5b; background: #ecfdf7; }
.metric-icon.clay { color: #c2411d; background: #fff1ed; }
.metric-icon.sand { color: #9a650f; background: #fff7e8; }
.trend { padding: 5px 8px; font-size: 11px; }
.metric-card > p { margin-bottom: 7px; color: #667085; font-size: 13px; }
.metric-card > strong { color: #101828; font-size: 31px; font-weight: 700; }
.metric-split { gap: 16px; margin-top: 14px; color: #667085; font-size: 12px; }
.metric-caption { margin-top: 11px; color: #667085; font-size: 12px; }
.dot { width: 7px; height: 7px; }
.dot.voice,.chart-legend i.voice { background: #2563eb; }
.dot.chat,.chart-legend i.chat { background: #12a37e; }
.dot.after { background: #f97316; }
.overview-grid { gap: 16px; }
.panel { border-color: var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.panel-head { padding: 19px 20px 16px; }
.panel-head h2 { margin-bottom: 4px; color: #1d2939; font-size: 16px; font-weight: 700; }
.panel-head p { color: #667085; font-size: 12px; }
.count-badge { padding: 5px 9px; color: #b42318; background: #fef3f2; font-size: 11px; }
.overview-conversation { grid-template-columns: 44px minmax(140px,1fr) minmax(180px,1.2fr) 112px 55px; min-height: 70px; gap: 12px; padding: 10px 20px; }
.overview-conversation:hover { background: #f8fafc; }
.channel-bubble { width: 36px; height: 36px; border-radius: 9px; font-size: 15px; }
.channel-bubble,.test-voice-orb { font-family: inherit; font-weight: 700; }
.channel-bubble.voice { color: #1d4ed8; background: #eff6ff; }
.channel-bubble.chat { color: #087a5b; background: #ecfdf7; }
.overview-conversation strong { font-size: 13px; }
.overview-conversation small { margin-top: 4px; color: #667085; font-size: 12px; }
.overview-summary { color: #667085; font-size: 13px; line-height: 1.45; }
.overview-time { color: #98a2b3; font-size: 11px; }
.outcome-chip,.tag,.approved-chip,.review-chip,.safety-chip,.paid-chip { padding: 5px 8px; font-size: 11px; }
.queue-item { min-height: 72px; gap: 12px; padding: 11px 18px; }
.queue-item:hover { background: #f8fafc; }
.queue-symbol { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }
.queue-item strong { font-size: 13px; }
.queue-item small { margin-top: 5px; font-size: 11px; }
.queue-item > b,.queue-footer { font-size: 12px; }
.queue-footer { padding: 14px; background: #f8fafc; }
.performance-stats div { padding: 15px 20px; }
.performance-stats span { font-size: 11px; }
.performance-stats strong { margin: 6px 0 3px; font-size: 22px; }
.performance-stats small { font-size: 10px; }
.overview-trend-chart { height:230px; border-top:1px solid var(--line); padding:18px 18px 10px; }
.performance-panel > .chart-legend { justify-content:flex-start; gap:18px; padding:12px 20px 16px; }
.performance-panel > .chart-legend .text-button { margin-left:auto; }
.period-switch { display:flex; align-items:center; gap:4px; border:1px solid var(--line); border-radius:9px; padding:3px; background:#fff; }
.period-switch button { min-height:32px; border-radius:6px; padding:0 11px; color:#667085; background:transparent; cursor:pointer; font-size:12px; font-weight:650; }
.period-switch button.is-active { color:#1d4ed8; background:#eff6ff; }
.compact-period button { min-height:29px; padding:0 9px; font-size:11px; }
.mini-chart { height: 150px; }
.chart-y,.chart-bars span,.chart-legend { font-size: 10px; }
.usage-panel { grid-template-columns: 135px 1fr; }
.usage-ring { width: 104px; height: 104px; margin: 22px 0 0 22px; background: conic-gradient(#2563eb calc(var(--usage)*1%),#e9eef5 0); }
.usage-ring::before { width: 78px; height: 78px; }
.usage-ring strong { font-size: 23px; }
.usage-ring small,.usage-total span { font-size: 11px; }
.usage-total strong { font-size: 27px; }
.usage-lines div { font-size: 12px; }
.usage-note { padding: 10px; font-size: 11px; }

/* Inbox and tables */
.inbox-channel-switch { display:flex; gap:10px; margin-bottom:14px; }
.inbox-channel-switch > button { display:flex; min-width:210px; align-items:center; gap:10px; border:1px solid var(--line); border-radius:11px; padding:11px 14px; color:#475467; background:#fff; cursor:pointer; text-align:left; box-shadow:var(--shadow-sm); }
.inbox-channel-switch > button.is-active { border-color:#93b4f5; background:#f5f9ff; box-shadow:inset 0 0 0 1px #bfd1f7; }
.inbox-channel-switch > button:nth-child(2).is-active { border-color:#9bdac7; background:#f2fbf8; box-shadow:inset 0 0 0 1px #c4eadf; }
.inbox-channel-switch strong { display:block; color:#1d2939; font-size:13px; }.inbox-channel-switch small { display:block; margin-top:3px; color:#667085; font-size:11px; }
.inbox-shell { grid-template-columns:minmax(560px,1.25fr) minmax(360px,.75fr); height:calc(100vh - 255px); min-height:610px; border-radius:12px; }
.inbox-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 14px; }
.inbox-tools .inbox-search { width:min(320px,48%); }
.identity-filters { display:flex; gap:4px; border:1px solid var(--line); border-radius:8px; padding:3px; background:#f8fafc; }
.identity-filters button { min-height:30px; border-radius:6px; padding:0 9px; color:#667085; background:transparent; cursor:pointer; font-size:11px; font-weight:650; }
.identity-filters button.is-active { color:#1d4ed8; background:#fff; box-shadow:0 1px 4px rgba(16,24,40,.08); }
.inbox-list-head { display:grid; grid-template-columns:minmax(170px,1fr) minmax(240px,1.7fr) minmax(120px,.65fr); gap:14px; border-bottom:1px solid var(--line); padding:10px 15px; color:#667085; background:#f8fafc; font-size:10px; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }
.inbox-search,.records-actions label { height: 40px; border-color: #d0d5dd; background: #fff; }
.inbox-search input,.records-actions input { font-size: 13px; }
.filter-chip { padding: 7px 10px; font-size: 11px; }
.filter-chip.is-active { border-color: #2563eb; background: #2563eb; }
.conversation-list-item { grid-template-columns:minmax(170px,1fr) minmax(240px,1.7fr) minmax(120px,.65fr); min-height:108px; gap:14px; align-items:center; padding:14px 15px; }
.conversation-list-item.is-active { background: #eff6ff; box-shadow: inset 3px 0 #2563eb; }
.conversation-list-item .channel-bubble { width: 38px; height: 38px; }
.inbox-who { display:flex; align-items:flex-start; gap:10px; min-width:0; }.inbox-who > span:last-child { display:grid; min-width:0; gap:3px; }.inbox-who strong { display:flex; align-items:center; gap:5px; overflow:hidden; color:#1d2939; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }.inbox-who strong i { width:6px; height:6px; border-radius:50%; background:#ef4444; }.inbox-who small,.inbox-who time { overflow:hidden; color:#667085; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.inbox-who time { color:#98a2b3; }
.inbox-summary { display:grid; min-width:0; gap:8px; }.inbox-summary p { display:-webkit-box; overflow:hidden; margin:0; color:#475467; font-size:12px; line-height:1.48; -webkit-box-orient:vertical; -webkit-line-clamp:3; }.inbox-summary small { display:flex; align-items:center; gap:7px; color:#667085; font-size:10px; }
.identity-chip { display:inline-flex; border-radius:999px; padding:4px 7px; font-size:9px; font-weight:750; }.identity-chip.known { color:#087a5b; background:#ecfdf7; }.identity-chip.unknown { color:#667085; background:#f2f4f7; }
.inbox-type { display:grid; align-content:center; gap:7px; min-width:0; }.inbox-type > b { display:inline-flex; width:max-content; max-width:100%; border-radius:7px; padding:6px 8px; color:#344054; background:#f2f4f7; font-size:10px; }.inbox-type small { color:#98a2b3; font-size:9px; }
.handoff-result { display:inline-flex; width:fit-content; max-width:100%; border-radius:999px; padding:5px 8px; color:#667085; background:#f2f4f7; font-size:10px; font-style:normal; font-weight:700; line-height:1.25; }
.handoff-result.connected,.handoff-detail.connected { color:#087a5b; background:#ecfdf7; }.handoff-result.pending,.handoff-result.queued,.handoff-detail.pending,.handoff-detail.queued { color:#b54708; background:#fffaeb; }.handoff-result.none,.handoff-detail.none { color:#667085; background:#f2f4f7; }
.handoff-detail { display:inline-flex; width:fit-content; border-radius:7px; padding:5px 7px; }
.inbox-load-more { display:flex; width:calc(100% - 28px); min-height:42px; align-items:center; justify-content:center; gap:8px; border:1px solid #d0d5dd; border-radius:8px; margin:14px; color:#344054; background:#fff; cursor:pointer; font-size:12px; font-weight:700; }.inbox-load-more:hover { border-color:#93b4f5; color:#1d4ed8; background:#f8fbff; }.inbox-load-more span { color:#98a2b3; font-size:10px; font-weight:500; }
.inbox-history-end { padding:14px; color:#98a2b3; font-size:10px; text-align:center; }
.conversation-detail .detail-grid { grid-template-columns:1fr; }
.identity-state { display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:8px; border-radius:8px; margin-bottom:12px; padding:9px; background:#f8fafc; }.identity-state > span { display:grid; width:26px; height:26px; place-items:center; border-radius:50%; color:#667085; background:#eaecf0; font-size:11px; font-weight:800; }.identity-state.known > span { color:#087a5b; background:#d1fae5; }.identity-state div { display:grid; gap:2px; }.identity-state strong { font-size:11px; }.identity-state small { color:#667085; font-size:9px; }.identity-state button,.contact-history button { color:#2563eb; background:transparent; cursor:pointer; font-size:10px; font-weight:700; }
.contact-history > div { display:grid; gap:7px; }.contact-history > div span { border-left:2px solid #bfdbfe; padding-left:8px; color:#475467; font-size:10px; line-height:1.4; }.contact-history p { margin:0 0 8px; color:#667085; font-size:10px; }
.conversation-item-top strong { font-size: 13px; }
.conversation-item-copy > span { margin: 4px 0 5px; font-size: 11px; }
.conversation-item-copy p { color: #667085; font-size: 12px; line-height: 1.45; }
.conversation-list-item > time { font-size: 10px; }
.detail-header { min-height: 78px; padding: 14px 20px; }
.detail-person .avatar { width: 40px; height: 40px; }
.detail-person h2 { font-size: 15px; }
.detail-person p { font-size: 11px; }
.detail-content { padding: 20px 22px 36px; }
.summary-card { border-color: #cfe0ff; padding: 16px; background: #f5f9ff; }
.summary-label span { color: #2563eb; font-size: 11px; }
.summary-label small { font-size: 10px; }
.summary-card p { color: #475467; font-size: 13px; }
.detail-grid { grid-template-columns: minmax(0,1.5fr) minmax(250px,.7fr); gap: 16px; }
.section-subhead { padding: 14px; }
.section-subhead h3,.detail-sidebar h3 { font-size: 13px; }
.section-subhead span,.recording-placeholder { font-size: 10px; }
.transcript { gap: 16px; padding: 16px; }
.transcript-line { grid-template-columns: 36px minmax(0,1fr) 40px; gap: 10px; }
.speaker { width: 32px; height: 32px; border-radius: 50%; background: #2563eb; font-size: 9px; }
.speaker.customer { color: #087a5b; background: #d1fae5; }
.transcript-line strong { margin-bottom: 4px; font-size: 12px; }
.transcript-line p { color: #475467; font-size: 12px; line-height: 1.55; }
.transcript-line time { font-size: 10px; }
.detail-sidebar > section { padding: 15px; }
.info-list span { font-size: 10px; }
.info-list strong { font-size: 12px; }
.followup-state strong { font-size: 12px; }
.followup-state small { font-size: 10px; }
.notes-box textarea { min-height: 92px; font-size: 12px; }
.source-note { padding: 14px 16px; }
.source-note p { font-size: 12px; }
.source-note button { font-size: 12px; }
.records-toolbar { padding: 14px 16px; }
.segmented button { padding: 8px 13px; font-size: 12px; }
.activity-segments { flex-wrap:wrap; }
.records-actions label { width: 210px; height: 38px; }
.records-table { min-width: 980px; }
.records-table th { height: 44px; font-size: 11px; }
.records-table td { height: 68px; font-size: 12px; }
.record-person .avatar { width: 34px; height: 34px; }
.record-person strong { font-size: 12px; }
.record-person small { font-size: 10px; }
.owner-mini i { width: 25px; height: 25px; font-size: 8px; }
.row-action { font-size: 12px; }
.activity-owner { display:grid; gap:3px; }.activity-owner strong { color:#344054; font-size:11px; }.activity-owner small { color:#667085; font-size:10px; }

/* Setup and analytics */
.settings-banner { min-height: 72px; border-color: #cfe0ff; padding: 14px 16px; background: #f5f9ff; }
.settings-banner strong { font-size: 14px; }
.settings-banner p { font-size: 12px; }
.sync-chip { color: #087a5b; background: #ecfdf7; font-size: 11px; }
.settings-layout { grid-template-columns: 230px minmax(0,1fr); gap: 16px; }
.settings-nav { border-radius: 12px; padding: 8px; }
.settings-nav button { min-height: 45px; border-radius: 8px; font-size: 13px; }
.settings-nav button.is-active { color: #1d4ed8; background: #eff6ff; }
.settings-panel { border-radius: 12px; padding: 22px; }
.settings-head { margin-bottom: 20px; padding-bottom: 18px; }
.settings-head h2 { font-size: 20px; }
.settings-head p { font-size: 13px; }
.template-note { padding: 13px; background: #f8fafc; }
.template-note span { background: #2563eb; font-size: 11px; }
.template-note p { font-size: 12px; }
.workspace-branding { display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:10px; margin:14px 0 18px; padding:13px; background:#fff; }.workspace-logo.large { width:46px; height:46px; font-size:17px; }.workspace-branding > div { display:grid; gap:4px; }.workspace-branding strong { font-size:13px; }.workspace-branding small { color:#667085; font-size:10px; }.workspace-branding button { margin-left:auto; }
.form-grid { gap: 15px; }
.field { gap: 7px; }
.field > span { font-size: 12px; }
.field input:not([type="range"]),.field select { height: 42px; border-color: #d0d5dd; background: #fff; font-size: 13px; }
.section-title h3 { font-size: 15px; }
.section-title p { font-size: 12px; }
.hours-list span { padding: 12px; font-size: 11px; }
.hours-list b { font-size: 12px; }
.service-list > div,.faq-list article,.action-list label,.rule-list article { padding: 13px; }
.service-symbol,.action-check,.rule-number { width: 34px; height: 34px; }
.service-list strong,.faq-list h3,.action-list strong,.rule-list h3,.policy-grid h3,.test-grid h3 { font-size: 13px; }
.service-list small,.faq-list p,.action-list small,.rule-list p,.policy-grid p,.test-grid p { font-size: 11px; }
.knowledge-status strong { font-size: 12px; }
.knowledge-status span { font-size: 10px; }
.faq-card { padding: 16px; }
.faq-top,.faq-foot { font-size: 10px; }
.faq-card h3 { font-size: 15px; }
.faq-card p,.greeting-box,.safety-example blockquote { font-size: 12px; }
.channel-config-grid > article,.test-grid > article { padding: 17px; }
.channel-config-grid h3 { font-size: 15px; }
.channel-config-grid > article > p { font-size: 12px; }
.switch-row strong { font-size: 12px; }
.switch-row small { font-size: 10px; }
.policy-grid article { padding: 15px; }
.policy-grid span,.flow-text { font-size: 10px; }
.safety-banner { padding: 15px; }
.safety-banner strong { font-size: 14px; }
.safety-banner p { font-size: 12px; }
.test-grid p { min-height: 52px; }
.parity-table span,.parity-table b { padding: 11px 13px; font-size: 12px; }
.reason-chart { gap: 18px; padding: 20px; }
.reason-chart > div { grid-template-columns: 190px minmax(100px,1fr) 42px; }
.reason-chart b { font-size: 12px; }
.reason-chart small { font-size: 10px; }
.reason-chart > div > strong { font-size: 11px; }
.outcome-legend div { font-size: 11px; }
.question-list h3 { font-size: 12px; }
.question-list p,.question-list span,.question-list button { font-size: 10px; }
.safe-stat strong { font-size: 12px; }
.safe-stat small { font-size: 10px; }
.usage-bar-chart { height: 250px; }
.usage-summary strong { font-size: 15px; }
.usage-summary small { font-size: 11px; }
.handoff-breakdown { display:grid; border-top:1px solid var(--line); }.handoff-breakdown > div { display:grid; grid-template-columns:36px 1fr auto; align-items:center; gap:11px; min-height:68px; border-bottom:1px solid var(--line); padding:10px 18px; }.handoff-breakdown > div:last-child { border-bottom:0; }.handoff-breakdown p { display:grid; gap:3px; margin:0; }.handoff-breakdown p strong { color:#1d2939; font-size:12px; }.handoff-breakdown p small { color:#667085; font-size:10px; }.handoff-breakdown > div > b { color:#101828; font-size:18px; }.handoff-symbol { display:grid; width:34px; height:34px; place-items:center; border-radius:9px; font-size:13px; font-weight:800; }.handoff-symbol.booking { color:#1d4ed8; background:#eff6ff; }.handoff-symbol.question { color:#087a5b; background:#ecfdf7; }.handoff-symbol.complaint { color:#b54708; background:#fff7e8; }.handoff-symbol.followup { color:#6d28d9; background:#f5f3ff; }.handoff-symbol.safety { color:#b42318; background:#fef3f2; }
.escalation-destinations { margin-top:20px; }.destination-list { display:grid; gap:9px; }.destination-list article { display:grid; grid-template-columns:38px minmax(140px,.8fr) minmax(150px,1fr) minmax(150px,1fr) auto; align-items:end; gap:12px; border:1px solid var(--line); border-radius:10px; padding:13px; background:#fff; }.destination-icon { display:grid; width:36px; height:36px; align-self:center; place-items:center; border-radius:9px; font-size:14px; font-weight:800; }.destination-icon.live { color:#1d4ed8; background:#eff6ff; }.destination-icon.callback { color:#087a5b; background:#ecfdf7; }.destination-icon.urgent { color:#b42318; background:#fef3f2; }.destination-list article > div { display:grid; align-self:center; gap:4px; }.destination-list article > div strong { font-size:12px; }.destination-list article > div small { color:#667085; font-size:10px; }.destination-list label { display:grid; gap:5px; }.destination-list label span { color:#667085; font-size:10px; }.destination-list input:not([type="checkbox"]),.destination-list select { height:38px; border:1px solid #d0d5dd; border-radius:8px; padding:0 10px; color:#344054; background:#fff; font-size:11px; }.destination-list input[type="checkbox"] { width:18px; height:18px; align-self:center; accent-color:#2563eb; }.after-hours-rule { display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:10px; border-radius:9px; margin-top:10px; padding:12px 14px; background:#f8fafc; }.after-hours-rule span { border-radius:999px; padding:5px 8px; color:#475467; background:#eaecf0; font-size:10px; font-weight:700; }.after-hours-rule strong { font-size:11px; }.after-hours-rule p { margin:0; color:#667085; font-size:10px; }

/* Product management views */
.channel-manage-card,.current-plan,.allowance-card { padding: 22px; }
.channel-manage-card h2 { font-size: 18px; }
.channel-address { font-size: 13px !important; }
.channel-manage-card > p { font-size: 12px; }
.status-online,.status-muted,.status-demo { font-size: 11px; }
.channel-stats span,.route-box { font-size: 11px; }
.channel-stats strong { font-size: 14px; }
.routing-flow strong { font-size: 12px; }
.routing-flow small { font-size: 10px; }
.integration-feature { padding: 20px; }
.integration-feature h2 { font-size: 16px; }
.integration-feature p,.integration-grid p,.integration-note p { font-size: 12px; }
.integration-meta span { font-size: 10px; }
.integration-meta strong,.integration-meta button { font-size: 12px; }
.integration-grid article { padding: 18px; }
.integration-grid h3 { font-size: 14px; }
.integration-logo.website { background:#2563eb; }.integration-logo.phone { background:#12a37e; }
.team-table-head { font-size: 11px; }
.team-row { font-size: 12px; }
.team-person small { font-size: 10px; }
.team-table-head,.team-row { grid-template-columns:1.05fr .8fr 1.25fr .95fr 48px; }
.team-row > span:nth-child(2) { display:grid; gap:3px; }.team-row > span:nth-child(2) strong { color:#344054; font-size:11px; }.team-row > span:nth-child(2) small { color:#667085; font-size:10px; }
.team-row > button { color:#2563eb; font-size:11px; font-weight:700; }
.team-cards h3 { font-size: 14px; }
.team-cards p,.team-cards button { font-size: 12px; }
.plan-tag { font-size: 10px; }
.current-plan h2 { font-size: 21px; }
.current-plan p,.plan-price span,.plan-includes { font-size: 12px; }
.invoice-table > div { min-height: 58px; font-size: 12px; }
.invoice-table .invoice-head,.invoice-table button { font-size: 10px; }

/* Client/admin role separation */
.mode-switcher { display:grid; grid-template-columns:1fr 1fr; gap:3px; border:1px solid var(--line); border-radius:9px; margin:0 0 10px; padding:3px; background:#f8fafc; }
.mode-switcher button { min-height:32px; border-radius:6px; color:#667085; background:transparent; cursor:pointer; font-size:11px; font-weight:650; }
.mode-switcher button.is-active { color:#1d2939; background:#fff; box-shadow:0 1px 4px rgba(16,24,40,.1); }
.admin-nav,.admin-context { display:none; }
.admin-mode .client-nav,.admin-mode .client-context { display:none !important; }
.admin-mode .admin-nav { display:grid; }
.admin-mode .admin-context { display:grid; }
.nav-count.alert-count { color:#b42318; background:#fee4e2; }
.admin-mini { display:grid; gap:5px; border:1px solid var(--line); border-radius:10px; padding:11px; background:#f8fafc; }
.admin-mini span { color:#667085; font-size:10px; }.admin-mini strong { color:#344054; font-size:11px; }.admin-mini i { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:4px; background:#12a37e; }
.admin-avatar { background:#172033; }
.admin-preview-bar { display:none; align-items:center; justify-content:center; gap:12px; min-height:40px; border-bottom:1px solid #bfdbfe; color:#1e40af; background:#eff6ff; font-size:12px; }
.admin-preview-bar button { color:#1d4ed8; background:transparent; cursor:pointer; font-size:12px; font-weight:700; }
.admin-previewing .admin-preview-bar { display:flex; }
.admin-previewing .topbar { top:40px; }

/* Owner console */
.admin-metrics .metric-card > strong { font-size:28px; }
.attention-text { color:#b54708 !important; }
.admin-overview-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(340px,.85fr); gap:16px; }
.admin-attention-list { border-top:1px solid var(--line); }
.admin-attention-list button { display:flex; width:100%; min-height:72px; align-items:center; gap:12px; border-bottom:1px solid #edf0f4; padding:11px 18px; background:transparent; cursor:pointer; text-align:left; }
.admin-attention-list button:hover { background:#f8fafc; }.admin-attention-list button:last-child { border-bottom:0; }
.admin-attention-list button > span:nth-child(2) { display:grid; min-width:0; flex:1; gap:4px; }.admin-attention-list strong { color:#1d2939; font-size:13px; }.admin-attention-list small { color:#667085; font-size:11px; }
.client-logo { display:grid; width:34px; height:34px; flex:0 0 auto; place-items:center; border-radius:9px; color:#344054; background:#eaecf0; font-size:11px; font-style:normal; font-weight:750; }
.client-logo.green { color:#047857; background:#d1fae5; }.client-logo.coral { color:#c2410c; background:#ffedd5; }.client-logo.blue { color:#1d4ed8; background:#dbeafe; }.client-logo.violet { color:#7e22ce; background:#f3e8ff; }.client-logo.navy { color:#334155; background:#e2e8f0; }.client-logo.amber { color:#a16207; background:#fef3c7; }.client-logo.teal { color:#0f766e; background:#ccfbf1; }.client-logo.rose { color:#be123c; background:#ffe4e6; }
.risk-chip,.watch-chip { display:inline-flex; width:fit-content; border-radius:999px; padding:5px 8px; font-size:10px; white-space:nowrap; }.risk-chip { color:#b42318; background:#fef3f2; }.watch-chip { color:#b54708; background:#fffaeb; }
.stat-note { font-size:11px; font-weight:700; }.neutral-count { color:#475467; background:#f2f4f7; }
.chart-canvas-wrap { position:relative; height:250px; border-top:1px solid var(--line); padding:18px 18px 12px; }.chart-canvas-wrap.large-chart { height:330px; }
.pipeline-list { display:grid; border-top:1px solid var(--line); }.pipeline-list div { display:flex; align-items:center; justify-content:space-between; min-height:54px; border-bottom:1px solid #edf0f4; padding:8px 18px; }.pipeline-list div:last-child { border-bottom:0; }.pipeline-list span { display:flex; align-items:center; gap:9px; color:#475467; font-size:12px; }.pipeline-list i { display:grid; width:25px; height:25px; place-items:center; border-radius:7px; color:#2563eb; background:#eff6ff; font-size:9px; font-style:normal; font-weight:700; }.pipeline-list strong { font-size:12px; }
.health-total { display:flex; align-items:center; gap:15px; border-top:1px solid var(--line); padding:20px 20px 15px; }.health-ring { display:grid; width:76px; height:76px; place-items:center; border-radius:50%; background:radial-gradient(circle,#fff 54%,transparent 56%),conic-gradient(#12a37e 0 92%,#e8edf2 92%); }.health-ring strong { font-size:16px; }.health-total > div:last-child { display:grid; gap:4px; }.health-total > div:last-child strong { font-size:14px; }.health-total > div:last-child span { color:#667085; font-size:11px; }
.health-lines { display:grid; gap:10px; padding:0 20px 18px; }.health-lines span,.collection-summary span { display:grid; grid-template-columns:8px 1fr auto; align-items:center; gap:8px; color:#667085; font-size:11px; }.health-lines strong,.collection-summary strong { color:#344054; }.health-dot { width:7px; height:7px; border-radius:50%; }.health-dot.healthy { background:#12a37e; }.health-dot.warning { background:#f59e0b; }.health-dot.risk { background:#ef4444; }

.admin-records-panel { overflow-x:auto; overflow-y:hidden; }.admin-records-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; min-width:880px; border-bottom:1px solid var(--line); padding:14px 16px; }.admin-records-toolbar .inbox-search { width:280px; }.admin-records-toolbar > div { display:flex; gap:7px; }
.admin-client-table { min-width:880px; }.admin-table-head,.admin-client-row { display:grid; grid-template-columns:1.35fr .7fr .8fr .7fr .7fr .85fr .8fr; align-items:center; gap:12px; padding:0 18px; }.admin-table-head { min-height:46px; color:#667085; background:#f8fafc; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }.admin-client-row { min-height:78px; border-top:1px solid #edf0f4; color:#475467; font-size:13px; }.admin-client-row:hover { background:#fbfcfd; }
.admin-client-row > span:first-child,.admin-client-row > span:first-child > span { display:flex; align-items:center; gap:10px; }.admin-client-row > span:first-child > span,.admin-client-row > span:nth-child(2) { display:grid; gap:3px; }.admin-client-row strong { color:#1d2939; font-size:13px; }.admin-client-row small { color:#667085; font-size:11px; }.admin-client-row > span:nth-child(4) { display:grid; grid-template-columns:1fr auto; align-items:center; gap:7px; }.mini-usage { height:6px; overflow:hidden; border-radius:99px; background:#eaecf0; }.mini-usage i { display:block; height:100%; border-radius:inherit; background:#2563eb; }.client-row-actions { display:flex; justify-content:flex-end; gap:6px; }.client-row-actions button,.agent-health-rows button,.admin-invoice-table button { color:#2563eb; background:transparent; cursor:pointer; font-size:12px; font-weight:700; }.client-row-actions button:last-child { color:#b42318; }
.status-ok { color:#087a5b; font-size:12px; }.status-watch { color:#b54708; font-size:12px; }.status-risk { color:#b42318; font-size:12px; }

.admin-billing-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr); gap:16px; margin-bottom:16px; }.collection-progress { border-top:1px solid var(--line); padding:20px; }.collection-progress > div:first-child { display:flex; justify-content:space-between; color:#667085; font-size:12px; }.collection-progress > div:first-child strong { color:#1d2939; font-size:18px; }.collection-progress small { color:#667085; font-size:11px; }.collection-summary { display:grid; gap:12px; border-top:1px solid var(--line); padding:18px 20px; }
.admin-invoices-panel { overflow:hidden; }.admin-invoice-table { min-width:850px; }.admin-invoice-table > div { display:grid; grid-template-columns:1.5fr .75fr .65fr .7fr .7fr .5fr; align-items:center; gap:12px; min-height:60px; border-top:1px solid #edf0f4; padding:0 18px; color:#475467; font-size:12px; }.admin-invoice-table .admin-table-head { min-height:42px; border-top:0; padding:0 18px; }.admin-invoice-table > div > span:first-child { display:flex; align-items:center; gap:9px; }
.admin-health-banner { display:flex; align-items:center; gap:20px; border:1px solid var(--line); border-radius:11px; margin-bottom:16px; padding:13px 16px; background:#fff; }.admin-health-banner span { display:flex; align-items:center; gap:7px; color:#475467; font-size:12px; }.admin-health-banner span i { width:8px; height:8px; border-radius:50%; background:#12a37e; }.admin-health-banner span:nth-child(2) i { background:#f59e0b; }.admin-health-banner span:nth-child(3) i { background:#cbd5e1; }.admin-health-banner small { margin-left:auto; color:#98a2b3; font-size:10px; }
.health-head { grid-template-columns:1.3fr .65fr .65fr .7fr .75fr .5fr .45fr; }.agent-health-rows { min-width:940px; }.agent-health-rows > div { display:grid; grid-template-columns:1.3fr .65fr .65fr .7fr .75fr .5fr .45fr; align-items:center; gap:12px; min-height:72px; border-top:1px solid #edf0f4; padding:0 18px; color:#475467; font-size:12px; }.agent-health-rows > div > span:first-child { display:flex; align-items:center; gap:10px; }.agent-health-rows > div > span:first-child > span { display:grid; gap:3px; }.agent-health-rows strong { color:#1d2939; }.agent-health-rows small { color:#667085; font-size:10px; }
.template-library { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }.template-library article { border:1px solid var(--line); border-radius:12px; padding:22px; background:#fff; box-shadow:var(--shadow-sm); }.template-type { display:inline-flex; border-radius:999px; padding:5px 8px; color:#1d4ed8; background:#eff6ff; font-size:10px; font-weight:700; }.template-library h2 { margin:18px 0 8px; font-size:18px; }.template-library p { min-height:45px; color:#667085; font-size:12px; line-height:1.55; }.template-library article > div { display:flex; gap:8px; margin:16px 0; }.template-library article > div span { border:1px solid var(--line); border-radius:7px; padding:6px 8px; color:#667085; font-size:10px; }.template-library button { color:#2563eb; background:transparent; cursor:pointer; font-size:12px; font-weight:700; }.template-library .template-empty { display:grid; place-items:center; text-align:center; border-style:dashed; background:#fbfcfd; }.template-empty > span { display:grid; width:42px; height:42px; place-items:center; border-radius:11px; color:#2563eb; background:#eff6ff; font-size:22px; }
.client-modal-card { position:relative; z-index:1; width:min(500px,100%); border-radius:16px; background:#fff; box-shadow:var(--shadow-lg); transform:translateY(10px) scale(.98); transition:transform .23s ease; }.modal-layer.is-open .client-modal-card { transform:none; }.client-modal-card > header { display:flex; align-items:flex-start; justify-content:space-between; border-bottom:1px solid var(--line); padding:18px 20px; }.client-modal-card h2 { margin:2px 0 4px; font-size:20px; }.client-modal-card header p { margin:0; color:#667085; font-size:12px; }.client-modal-card form { display:grid; gap:15px; padding:20px; }.modal-actions { display:flex; justify-content:flex-end; gap:8px; border-top:1px solid var(--line); margin:4px -20px -20px; padding:15px 20px; background:#f8fafc; }
.team-checks { display:grid; gap:9px; border:1px solid var(--line); border-radius:10px; padding:13px; }.team-checks legend { padding:0 5px; color:#344054; font-size:12px; font-weight:750; }.team-checks label { display:flex; align-items:center; gap:9px; color:#475467; font-size:12px; }.team-checks input { width:17px; height:17px; accent-color:#2563eb; }

/* Modals */
.test-modal-card,.calendar-card { width: min(580px,100%); border-radius: 16px; }
.test-modal-card h2,.calendar-card h2 { font-size: 21px; }
.calendar-card header p { font-size: 11px; }
.test-channel-toggle button { min-height: 40px; font-size: 13px; }
.test-context p { font-size: 12px; }
.scenario-select > span { font-size: 10px; }
.scenario-select button { padding: 8px 11px; font-size: 11px; }
.test-stage { min-height: 300px; }
.test-welcome h3,.test-voice-stage h3 { font-size: 15px; }
.test-welcome p,.test-voice-stage p,.test-message,.test-result { font-size: 12px; }
.calendar-days span,.calendar-days small,.slot-list small,.slot-list b,.calendar-foot span { font-size: 10px; }
.slot-list span,.calendar-foot strong { font-size: 13px; }
.toast { min-width: 310px; }
.toast strong { font-size: 12px; }
.toast small { font-size: 11px; }

/* Clinic website V2 */
.clinic-page { color: #1f2937; background: #fff; }
.clinic-header { position: sticky; z-index: 20; top: 0; max-width: none; height: 76px; border-bottom: 1px solid #e5e7eb; padding: 0 max(28px,calc((100vw - 1240px)/2)); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.clinic-logo-mark { width: 34px; height: 34px; border-color: #166534; background: #f0fdf4; }
.clinic-logo strong { color: #172033; font-family: inherit; font-size: 16px; font-weight: 750; letter-spacing: .02em; }
.clinic-logo small { color: #667085; font-size: 10px; letter-spacing: .08em; }
.clinic-header nav { gap: 32px; }
.clinic-header nav a { color: #475467; font-size: 14px; font-weight: 500; }
.clinic-header-action,.clinic-primary,.clinic-secondary { min-height: 44px; border-radius: 8px; padding: 0 17px; font-size: 13px; }
.clinic-header-action { border-color: #166534; color: #fff; background: #166534; }
.clinic-primary { background: #166534; box-shadow: none; }
.clinic-secondary { border-color: #d0d5dd; color: #344054; background: #fff; }
.clinic-hero { grid-template-columns: .92fr 1.08fr; min-height: 650px; max-width: 1320px; gap: 54px; padding: 64px 40px 76px; }
.hero-copy { max-width: 560px; padding-left: 0; }
.clinic-eyebrow { margin-bottom: 14px; color: #168553; font-size: 13px; letter-spacing: .04em; }
.hero-copy h1 { max-width: 560px; margin: 0 0 22px; color: #152218; font-family: inherit; font-size: clamp(48px,5.4vw,72px); font-weight: 720; line-height: 1.04; letter-spacing: -.045em; }
.hero-copy > p:not(.clinic-eyebrow) { max-width: 540px; color: #5f6b63; font-family: inherit; font-size: 18px; line-height: 1.6; }
.clinic-actions { margin-top: 30px; }
.hero-note { margin-top: 18px; color: #667085; font-size: 12px; }
.hero-visual { min-height: 520px; border-radius: 20px; background-image: linear-gradient(to top,rgba(20,35,24,.12),transparent 30%),url("clinic-hero-v2.png"); background-size: cover; background-position: center; box-shadow: 0 24px 50px rgba(16,24,40,.13); }
.sun-shape,.arch-shape,.botanical { display: none; }
.hero-card { left: 22px; bottom: 22px; gap: 5px; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; padding: 15px 18px; background: rgba(255,255,255,.94); }
.hero-card span { color: #667085; font-size: 10px; }
.hero-card strong { color: #1d2939; font-family: inherit; font-size: 15px; }
.hero-card small { color: #667085; font-size: 11px; }
.clinic-trust { min-height: 72px; gap: 34px; border-color: #e5e7eb; color: #475467; font-size: 11px; letter-spacing: .04em; }
.care-section { max-width: 1240px; padding: 100px 40px; }
.care-section h2,.visit-copy h2 { color: #172033; font-family: inherit; font-size: 44px; font-weight: 700; line-height: 1.13; letter-spacing: -.035em; }
.care-grid { gap: 18px; margin-top: 44px; }
.care-grid article { border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; background: #fff; box-shadow: 0 4px 12px rgba(16,24,40,.035); }
.care-grid span { color: #168553; font-size: 12px; font-weight: 700; }
.care-grid h3 { margin: 22px 0 10px; color: #1d2939; font-family: inherit; font-size: 20px; font-weight: 650; }
.care-grid p { margin-bottom: 0; color: #667085; font-size: 14px; line-height: 1.65; }
.visit-section { display: block; min-height: 0; padding: 96px 40px; background: #f3f8f4; }
.visit-art { display: none; }
.visit-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; max-width: 1160px; margin: 0 auto; padding: 0; }
.visit-copy .clinic-eyebrow,.visit-copy h2 { grid-column: 1; }
.visit-copy > p:not(.clinic-eyebrow),.visit-copy ul,.visit-copy .clinic-primary { grid-column: 2; }
.visit-copy > p:not(.clinic-eyebrow) { grid-row: 1 / span 2; margin: 0; color: #5f6b63; font-size: 15px; line-height: 1.75; }
.visit-copy ul { margin: -25px 0 26px; color: #475467; font-size: 13px; }
.clinic-footer { grid-template-columns: 1.2fr .7fr .7fr 1.2fr; padding: 60px max(40px,calc((100vw - 1240px)/2)); color: #d7e0f0; background: #172033; }
.clinic-footer .clinic-logo strong { color: #fff; }
.clinic-footer p { color: #aab5c7; font-size: 12px; }
.clinic-footer > div > span { color: #8996aa; font-size: 11px; }
.footer-note strong { font-family: inherit; font-size: 16px; font-weight: 650; }
.concierge-launcher { right: 24px; bottom: 24px; border: 0; border-radius: 14px; padding: 11px 16px 11px 11px; background: #2563eb; box-shadow: 0 16px 38px rgba(37,99,235,.28); }
.launcher-mark,.site-concierge-mark { width: 36px; height: 36px; border-radius: 10px; color: #1d4ed8; background: #fff; }
.concierge-launcher strong { font-size: 12px; }
.concierge-launcher small { color: #dbeafe; font-size: 10px; }
.site-concierge { width: 410px; height: 590px; border-radius: 16px; }
.site-concierge-mark { color: #fff; background: #2563eb; }
.site-concierge > header { min-height: 72px; padding: 13px 15px; }
.site-concierge > header strong { font-size: 14px; }
.site-concierge > header span { font-size: 11px; }
.site-channel-tabs { padding: 8px; }
.site-channel-tabs button { min-height: 38px; font-size: 12px; }
.site-channel-tabs button.is-active { color: #1d4ed8; }
.site-safety-note { padding: 11px; font-size: 10px; }
.site-messages { gap: 12px; padding: 17px; }
.site-bubble { padding: 11px 13px; color: #344054; font-size: 12px; line-height: 1.55; }
.site-bubble.user { background: #2563eb; }
.quick-replies { gap: 7px; padding: 0 17px 14px; }
.quick-replies button { padding: 8px 10px; color: #1d4ed8; border-color: #bfdbfe; font-size: 11px; }
.site-composer { padding: 11px; }
.site-composer input { height: 41px; font-size: 12px; }
.site-composer button { width: 41px; background: #2563eb; }
.voice-orb { background: radial-gradient(circle at 35% 26%,#60a5fa,#2563eb); box-shadow: 0 0 0 17px rgba(37,99,235,.08),0 0 0 35px rgba(37,99,235,.04); }
.site-voice h3 { font-size: 17px; }
.site-voice p { max-width: 310px; font-size: 12px; }
.site-voice-actions button { padding: 9px 12px; font-size: 11px; }
.site-voice-actions .scenario { color: #1d4ed8; background: #eff6ff; }

@media (max-width: 1100px) {
  .sidebar { width: 236px; flex-basis: 236px; }
  .top-actions .channel-status { display:none; }
  .overview-metrics,.analytics-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .destination-list article { grid-template-columns:38px 1fr 1fr; }.destination-list article > label:nth-of-type(2) { grid-column:2; }.destination-list article > input[type="checkbox"] { grid-column:3; grid-row:2; justify-self:end; }
  .clinic-hero { grid-template-columns: 1fr 1fr; gap: 32px; }
  .clinic-footer { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 850px) {
  .sidebar { width: 270px; }
  .mobile-brand strong { font-size: 15px; }
  .view { padding: 28px 20px 50px; }
  .topbar { padding: 0 20px; }
  .settings-layout { grid-template-columns: 1fr; }
  .inbox-channel-switch { overflow-x:auto; }.inbox-channel-switch > button { flex:0 0 190px; }.inbox-shell { display:block; height:auto; min-height:0; overflow:visible; }.inbox-list-panel { border-right:0; }.conversation-list { max-height:520px; }.conversation-detail { border-top:1px solid var(--line); }.inbox-list-head,.conversation-list-item { grid-template-columns:minmax(150px,1fr) minmax(220px,1.4fr) minmax(110px,.6fr); }.inbox-list-panel { overflow-x:auto; }.inbox-tools,.inbox-list-head,.conversation-list { min-width:650px; }
  .admin-overview-grid,.admin-billing-grid { grid-template-columns:1fr; }
  .admin-records-panel { overflow-x:auto; }.template-library { grid-template-columns:1fr; }
  .clinic-header { padding: 0 22px; }
  .clinic-hero { grid-template-columns: 1fr; gap: 38px; padding: 60px 24px 70px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { min-height: 500px; margin-top: 0; }
  .visit-copy { grid-template-columns: 1fr; row-gap: 20px; }
  .visit-copy .clinic-eyebrow,.visit-copy h2,.visit-copy > p:not(.clinic-eyebrow),.visit-copy ul,.visit-copy .clinic-primary { grid-column: 1; grid-row: auto; }
  .visit-copy ul { margin: 0 0 10px; }
}
@media (max-width: 600px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { padding: 17px; }
  .demo-banner { align-items: flex-start; }
  .overview-conversation { grid-template-columns: 42px 1fr auto; }
  .inbox-shell { display: block; }
  .overview-metrics,.analytics-metrics { grid-template-columns:1fr 1fr; }.inbox-tools { align-items:stretch; flex-direction:column; }.inbox-tools .inbox-search { width:100%; }.inbox-list-head { display:none; }.inbox-tools,.conversation-list { min-width:0; }.conversation-list-item { grid-template-columns:1fr; gap:9px; }.inbox-type { grid-template-columns:auto 1fr; align-items:center; }.inbox-summary p { -webkit-line-clamp:2; }.period-switch { width:100%; overflow-x:auto; }.period-switch button { flex:1 0 auto; }.destination-list article { grid-template-columns:38px 1fr; }.destination-list article > label,.destination-list article > label:nth-of-type(2) { grid-column:1/-1; }.destination-list article > input[type="checkbox"] { grid-column:2; grid-row:1; justify-self:end; }.after-hours-rule { grid-template-columns:1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid,.channel-config-grid,.policy-grid,.test-grid,.knowledge-status { grid-template-columns: 1fr; }
  .settings-panel { padding: 17px; }
  .mode-switcher { margin-inline:2px; }.admin-metrics { grid-template-columns:1fr 1fr; }
  .admin-records-toolbar { align-items:stretch; flex-direction:column; }.admin-records-toolbar .inbox-search { width:100%; }.admin-records-toolbar > div { overflow-x:auto; }
  .admin-health-banner { align-items:flex-start; flex-direction:column; gap:8px; }.admin-health-banner small { margin-left:0; }
  .clinic-header { height: 68px; padding: 0 16px; }
  .clinic-hero { padding: 45px 18px 58px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-copy > p:not(.clinic-eyebrow) { font-size: 16px; }
  .hero-visual { min-height: 390px; border-radius: 15px; }
  .care-section { padding: 70px 18px; }
  .care-section h2,.visit-copy h2 { font-size: 34px; }
  .care-grid { grid-template-columns: 1fr; }
  .visit-section { padding: 70px 18px; }
  .clinic-footer { grid-template-columns: 1fr; padding: 50px 20px; }
  .site-concierge { right: 10px; bottom: 10px; width: calc(100vw - 20px); height: calc(100vh - 20px); max-width: none; max-height: none; }
}

/* Command palette */
.global-search-wrap { position: relative; }
.search-palette { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0; overflow-y: auto; max-height: 430px; border: 1px solid #d0d5dd; border-radius: 12px; padding: 6px; background: #fff; box-shadow: var(--shadow-lg); }
.search-palette[hidden] { display: none; }
.palette-group + .palette-group { border-top: 1px solid #edf0f4; margin-top: 5px; padding-top: 5px; }
.palette-label { padding: 8px 10px 4px; color: #98a2b3; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.palette-item { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; width: 100%; min-height: 44px; align-items: center; gap: 9px; border-radius: 8px; padding: 6px 10px; color: #1d2939; background: transparent; cursor: pointer; text-align: left; }
.palette-item:hover { background: #f5f7fa; }
.palette-item.is-active { background: #eff6ff; }
.palette-item > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.palette-item strong { overflow: hidden; color: #1d2939; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.palette-item small { overflow: hidden; color: #667085; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.palette-item kbd { border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; color: #98a2b3; background: #fff; font-family: inherit; font-size: 10px; }
.palette-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; color: #2563eb; background: #eff6ff; font-size: 14px; font-style: normal; font-weight: 700; }
.palette-meta { color: #98a2b3; font-size: 10px; }
.palette-empty { padding: 22px 14px; color: #667085; font-size: 12px; text-align: center; }
.palette-foot { border-top: 1px solid #edf0f4; margin-top: 5px; padding: 8px 10px 4px; color: #98a2b3; font-size: 10px; }

/* Notifications */
.icon-control { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid #d0d5dd; border-radius: 9px; color: #475467; background: #fff; cursor: pointer; font-size: 20px; }
.icon-control:hover { color: #1d4ed8; background: #f5f7fa; }
.icon-control i { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #dc4c4c; box-shadow: 0 0 0 2px #fff; }
.notif-panel { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: 330px; overflow: hidden; border: 1px solid #d0d5dd; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); }
.notif-panel[hidden] { display: none; }
.notif-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 14px; }
.notif-head strong { color: #1d2939; font-size: 13px; }
.notif-head button { color: #2563eb; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.notif-list { max-height: 330px; overflow-y: auto; }
.notif-item { display: flex; width: 100%; min-height: 62px; align-items: center; gap: 10px; border-bottom: 1px solid #edf0f4; padding: 10px 14px; background: transparent; cursor: pointer; text-align: left; }
.notif-item:hover { background: #f5f7fa; }
.notif-item:last-child { border-bottom: 0; }
.notif-item > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 3px; }
.notif-item strong { color: #1d2939; font-size: 12px; }
.notif-item small { color: #667085; font-size: 11px; }
.notif-item .notif-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #c2411d; background: #fff1ed; font-size: 13px; font-style: normal; font-weight: 750; }
.notif-item .notif-icon.blue { color: #1d4ed8; background: #eff6ff; }
.notif-item .notif-icon.amber { color: #9a650f; background: #fff7e8; }
.notif-item .notif-icon.sage { color: #087a5b; background: #ecfdf7; }
.notif-empty { padding: 26px 14px; color: #667085; font-size: 12px; text-align: center; }
.top-actions { position: relative; }

/* Filter dropdown menus */
.filter-button { display: inline-flex; align-items: center; gap: 6px; }
.filter-button .caret { color: #98a2b3; font-size: 11px; }
.filter-button.is-open { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; }
.filter-menu { position: absolute; z-index: 60; min-width: 170px; overflow: hidden; border: 1px solid #d0d5dd; border-radius: 10px; padding: 5px; background: #fff; box-shadow: var(--shadow-lg); }
.filter-menu button { display: flex; width: 100%; min-height: 34px; align-items: center; border-radius: 7px; padding: 0 10px; color: #475467; background: transparent; cursor: pointer; font-size: 12px; text-align: left; }
.filter-menu button:hover { background: #f5f7fa; }
.filter-menu button.is-active { color: #1d4ed8; background: #eff6ff; font-weight: 700; }
.records-actions { position: relative; }
.admin-records-toolbar > div { position: relative; }

@media (max-width: 850px) {
  .top-actions .icon-control { display: none; }
  .notif-panel { right: auto; left: 50%; width: min(330px, calc(100vw - 40px)); transform: translateX(-50%); }
}

/* Production polish: loading, toasts, focus, motion */
.view { position: relative; }
.top-progress { position: fixed; z-index: 90; top: 0; right: 0; left: 0; height: 3px; pointer-events: none; opacity: 0; }
.top-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #2563eb, #60a5fa); box-shadow: 0 0 10px rgba(37,99,235,.55); }
.top-progress.is-running { opacity: 1; transition: opacity .25s ease .35s; }
.top-progress.is-running i { animation: topbar-fill .6s cubic-bezier(.4,0,.2,1) forwards; }
.top-progress.is-done { opacity: 0; transition: opacity .25s ease; }
@keyframes topbar-fill { from { width: 0; } to { width: 92%; } }

.view-skeleton { position: absolute; z-index: 5; inset: 0; padding: 34px 36px 64px; background: var(--canvas); }
.view-skeleton .sk-head { width: 36%; height: 44px; border-radius: 10px; margin-bottom: 26px; }
.view-skeleton .sk-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.view-skeleton .sk-card { height: 122px; border-radius: 12px; }
.view-skeleton .sk-panel { height: 270px; border-radius: 12px; }
.view-skeleton > div { background: linear-gradient(100deg, #edf0f5 40%, #f7f9fc 50%, #edf0f5 60%); background-size: 200% 100%; animation: sk-shimmer 1.15s linear infinite; }
@keyframes sk-shimmer { to { background-position: -200% 0; } }
@media (max-width: 850px) { .view-skeleton { padding: 25px 20px 45px; } .view-skeleton .sk-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } .view-skeleton .sk-panel { height: 220px; } }
@media (max-width: 600px) { .view-skeleton .sk-grid { grid-template-columns: 1fr 1fr; } .view-skeleton .sk-head { width: 60%; } }

.toast { position: fixed; z-index: 200; right: 25px; bottom: 25px; display: flex; align-items: flex-start; gap: 11px; min-width: 320px; max-width: 420px; border: 1px solid #d0d5dd; border-radius: 12px; padding: 13px 14px 15px; background: #fff; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .22s ease, transform .22s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; font-size: 14px; font-style: normal; font-weight: 800; }
.toast[data-toast-type="success"] .toast-icon { color: #087a5b; background: #ecfdf7; }
.toast[data-toast-type="warn"] .toast-icon { color: #9a650f; background: #fff7e8; }
.toast[data-toast-type="info"] .toast-icon { color: #1d4ed8; background: #eff6ff; }
.toast-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 0 0 12px 12px; background: #2563eb; transform-origin: left; }
.toast[data-toast-type="success"] .toast-progress { background: #12a37e; }
.toast[data-toast-type="warn"] .toast-progress { background: #e6a23c; }
.toast.is-visible .toast-progress { animation: toast-progress 2.7s linear forwards; }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.button.primary.danger { background: #dc4c4c; box-shadow: none; }
.button.primary.danger:hover { background: #c53d3d; box-shadow: 0 5px 14px rgba(220,76,76,.2); }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.agent-status i, .channel-status i { animation: status-pulse 2.6s ease-in-out infinite; }
@keyframes status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.button:active, .icon-control:active, .nav-item:active { transform: translateY(1px); }
.channel-status.voice i, .channel-status.chat i { animation: none; }
