:root {
  --ink: #142033;
  --muted: #68717f;
  --line: #ded8ce;
  --paper: #ffffff;
  --wash: #f5f2ec;
  --brand: #0d2238;
  --brand-2: #153c60;
  --accent: #b8863b;
  --accent-soft: #f1e4cf;
  --success: #1d6f50;
  --warning: #97620d;
  --danger: #a23c36;
  --shadow: 0 18px 45px rgba(13, 34, 56, .09);
}
* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: radial-gradient(circle at top right, rgba(184, 134, 59, .08), transparent 30%), var(--wash); }
body { margin: 0; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 850; border: 2px solid var(--accent); box-shadow: inset 0 0 0 3px rgba(255,255,255,.08); }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
nav { display: flex; align-items: center; gap: 18px; }
.inline { display: inline; }
.link-button { border: 0; background: transparent; color: var(--brand-2); cursor: pointer; padding: 0; }
.page { padding: 32px 0 52px; }
.footer { color: var(--muted); font-size: 13px; padding: 0 0 36px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.hero.compact { padding: 4px 0; }
.hero h1, .customer-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1; margin: 8px 0 12px; letter-spacing: -.03em; }
.hero p, .customer-hero p { color: var(--muted); max-width: 760px; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: var(--brand-2); margin: 0; }
.grid { display: grid; gap: 22px; margin-bottom: 22px; }
.grid.two { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics .card { display: flex; flex-direction: column; gap: 5px; }
.metrics span { color: var(--muted); font-size: 13px; }
.metrics strong { font-size: 24px; text-transform: capitalize; }
.metrics small { color: var(--muted); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h1, .section-heading h2, .card h2 { margin: 0 0 5px; }
.section-heading p { margin: 0; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.badge, .chip { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; background: #e9eef5; color: #334155; }
.badge-completed { background: #e4f5ec; color: var(--success); }
.badge-declined, .badge-expired { background: #f9e7e7; color: var(--danger); }
.badge-in_progress, .badge-sent { background: #e5effa; color: var(--brand); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.button { border: 1px solid transparent; border-radius: 10px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; cursor: pointer; text-decoration: none; }
.button:hover { text-decoration: none; }
.button.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(13,34,56,.16); }
.button.primary:hover { background: var(--brand-2); }
.button.accent { background: var(--accent); color: #fff; }
.button.secondary { background: #fff; color: var(--brand); border-color: var(--line); }
.button.danger { background: #fff; color: var(--danger); border-color: #e8b8b8; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; align-items: center; gap: 10px; }
.wrap-actions { flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 650; }
input, select { width: 100%; border: 1px solid #bcc8d6; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 3px solid rgba(36, 95, 155, .15); border-color: var(--brand-2); }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
label.check input { width: auto; margin-top: 4px; }
.auth-card { max-width: 560px; margin: 8vh auto; }
.auth-card h1 { margin: 8px 0 12px; font-size: 34px; }
.muted { color: var(--muted); font-size: 13px; }
.notice, .error { border-radius: 12px; padding: 13px 15px; margin-bottom: 20px; }
.notice { background: #eaf3fb; border: 1px solid #c5dced; color: #244d72; }
.error { background: #fceaea; border: 1px solid #efc0c0; color: #8a2424; }
.notification { border: 1px solid var(--line); border-radius: 12px; padding: 13px; margin-bottom: 12px; }
.notification p { margin: 5px 0; color: var(--muted); }
.notification.success { border-left: 4px solid var(--success); }
.notification.warning { border-left: 4px solid var(--warning); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 9px; color: var(--muted); }
.checklist li.done { color: var(--success); font-weight: 700; }
.checklist.horizontal { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.details { margin: 0; display: grid; gap: 12px; }
.details > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mono, code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; overflow-wrap: anywhere; }
pre { margin: 0; white-space: pre-wrap; font-size: 12px; }
.secure-link { margin-bottom: 22px; border-color: #9bc2e5; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ai-note, .callout, .success-box { border-radius: 12px; padding: 13px 15px; margin: 12px 0; }
.ai-note { background: #f1effb; border: 1px solid #d8d1f3; }
.callout { background: #fff8e7; border: 1px solid #ead6a5; color: #5e4a19; }
.success-box { background: #eaf6ef; border: 1px solid #b9dfc9; color: var(--success); }
.customer-hero { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: center; margin-bottom: 24px; }
.premium-card { background: linear-gradient(145deg, var(--brand), #173d5d); color: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.premium-card span, .premium-card small { display: block; opacity: .82; }
.premium-card strong { display: block; font-size: 34px; margin: 6px 0; }
.coverage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.coverage-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.coverage-card > div { display: flex; justify-content: space-between; gap: 12px; }
.coverage-card h3 { margin: 0; font-size: 17px; }
.coverage-card p { margin: 10px 0 0; color: var(--muted); }
.final-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

@media (max-width: 850px) {
  .grid.two, .grid.three, .customer-hero, .coverage-grid { grid-template-columns: 1fr; }
  .hero, .final-actions { align-items: flex-start; flex-direction: column; }
  .checklist.horizontal { grid-template-columns: 1fr 1fr; }
  nav { gap: 10px; font-size: 14px; }
}
@media (max-width: 540px) {
  .wrap { width: min(100% - 20px, 1180px); }
  .page { padding-top: 20px; }
  .card { padding: 18px; border-radius: 14px; }
  .topbar-inner { align-items: flex-start; padding: 12px 0; flex-direction: column; }
  .details > div { grid-template-columns: 1fr; gap: 4px; }
  .checklist.horizontal { grid-template-columns: 1fr; }
  .copy-row { grid-template-columns: 1fr; }
}
.upload-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.source-files { margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.source-files strong { display: block; margin-bottom: 8px; }
@media (max-width: 540px) { .upload-row { grid-template-columns: 1fr; } }
.warning { background: #fff8e7; border: 1px solid #ead6a5; color: #5e4a19; border-radius: 12px; padding: 13px 15px; margin-bottom: 16px; }
.warning ul { margin: 8px 0 0; padding-left: 20px; }
.extraction-review { margin-bottom: 22px; border-color: #9bc2e5; }
.extraction-review table input { min-width: 150px; }
.extraction-review table td:first-child input { min-width: 230px; }
.extraction-review table td:last-child input { min-width: 360px; }

.form-section { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0; }
.form-section legend { padding: 0 8px; font-weight: 800; }
.compact-grid { margin-bottom: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schedule-preview { border: 1px solid var(--line); background: #f8fafc; border-radius: 12px; padding: 13px 15px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); gap: 22px; align-items: start; }
.checkout-summary { position: sticky; top: 92px; }
.payment-option { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; }
.payment-option:hover { border-color: #9bb8d5; }
.payment-option input { width: auto; margin-top: 4px; }
.payment-option strong, .payment-option small { display: block; }
.payment-option small { color: var(--muted); margin-top: 4px; font-weight: 500; }
.payment-option:has(input:checked) { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(36, 95, 155, .10); }
.payment-panel { margin: -6px 0 6px 28px; border-left: 3px solid #d8e3ef; padding: 4px 0 4px 18px; }
.payment-panel[hidden] { display: none; }
.secure-provider-box { border: 1px solid #b9cbe0; background: #f6f9fc; border-radius: 14px; padding: 17px; }
.secure-provider-box p { color: var(--muted); margin: 8px 0 16px; }
.provider-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.test-credentials { margin-top: 14px; padding: 11px 12px; border-radius: 10px; background: #fff8e7; border: 1px solid #ead6a5; font-size: 13px; }
.installment-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.installment-summary > div { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: #fff; }
.installment-summary span, .installment-summary strong { display: block; }
.installment-summary span { color: var(--muted); font-size: 12px; }
.installment-summary strong { margin-top: 4px; }
.disabled-option { opacity: .55; cursor: not-allowed; }

@media (max-width: 850px) {
  .checkout-layout, .compact-grid, .installment-summary { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}
@media (max-width: 540px) {
  .payment-panel { margin-left: 0; padding-left: 12px; }
}

/* Upload-first proposal workflow */
.upload-first-card { max-width: 820px; margin: 0 auto; }
.upload-dropzone { border: 2px dashed #b9c9da; border-radius: 16px; padding: 28px; background: #f8fafc; display: grid; gap: 16px; }
.step-pill { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; padding: 6px 11px; background: #e5effa; color: var(--brand); font-size: 12px; font-weight: 800; }
.proposal-editor { padding-bottom: 86px; }
.source-review-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-color: #9bc2e5; }
.source-review-card h2 { margin: 4px 0; }
.coverage-editor-list { display: grid; gap: 12px; }
.coverage-edit-row { display: grid; grid-template-columns: minmax(240px, 1.4fr) minmax(160px, .7fr) minmax(220px, 1fr); gap: 14px; align-items: end; border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #fbfcfe; }
.coverage-edit-row > div strong, .coverage-edit-row > div small { display: block; }
.coverage-edit-row > div small { color: var(--muted); margin-top: 5px; line-height: 1.35; }
.optional { color: var(--muted); font-size: 12px; font-weight: 500; }
.sticky-actions { position: sticky; bottom: 14px; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; padding: 14px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.action-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.proposal-summary-heading { align-items: center; }
.proposal-file-button { white-space: nowrap; }
.checklist.horizontal.three-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 850px) {
  .coverage-edit-row { grid-template-columns: 1fr 1fr; }
  .coverage-edit-row > div { grid-column: 1 / -1; }
  .source-review-card, .action-notice { align-items: flex-start; flex-direction: column; }
  .proposal-summary-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
  .coverage-edit-row { grid-template-columns: 1fr; }
  .sticky-actions { justify-content: stretch; }
  .sticky-actions .button { flex: 1; }
  .checklist.horizontal.three-items { grid-template-columns: 1fr; }
}

.callback-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-width: 2px;
}
.callback-alert h2 { margin-bottom: .35rem; }
.callback-alert p { margin: .25rem 0; }
@media (max-width: 760px) {
  .callback-alert { align-items: stretch; flex-direction: column; }
  .callback-alert .actions { width: 100%; }
  .callback-alert .button { width: 100%; text-align: center; }
}

/* Hybrid AI proposal reader */
.reader-summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-color: #a8c8df; background: linear-gradient(135deg, #f8fbff, #eef6fb); }
.reader-summary h2 { margin: 4px 0 6px; }
.reader-summary p { margin: 0; color: var(--muted); }
.reader-status { display: grid; justify-items: end; gap: 7px; min-width: 180px; }
.reader-status small { color: var(--muted); text-transform: capitalize; }
.confidence { display: inline-flex; align-items: center; margin-left: 7px; border-radius: 999px; padding: 3px 7px; font-size: 10px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.confidence-high { background: #dff4e8; color: #17643a; border: 1px solid #a8d9bb; }
.confidence-medium { background: #fff2cf; color: #775100; border: 1px solid #e6cd82; }
.confidence-low { background: #fde4e4; color: #8a2525; border: 1px solid #ebb4b4; }
label > .confidence { float: right; margin-top: 1px; }
@media (max-width: 700px) {
  .reader-summary { align-items: flex-start; flex-direction: column; }
  .reader-status { justify-items: start; min-width: 0; }
  label > .confidence { float: none; }
}

/* Version 0.7 bulk quote workflow and deductible controls */
.upload-choice-grid { align-items: stretch; }
.upload-choice-grid .upload-first-card { max-width: none; width: 100%; margin: 0; }
.compact-stack { gap: 8px; margin-top: 12px; }
.batch-progress-row { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; font-size: 13px; }
.deductible-edit-row label small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.3; }
@media (max-width: 850px) {
  .upload-choice-grid { grid-template-columns: 1fr; }
}


/* Version 0.8 AI Conversation Center */
.conversation-center { border-color: #9bc2e5; }
.conversation-center > .section-heading { align-items: center; }
.ai-call-form { margin: 18px 0 26px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.conversation-grid { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.5fr); gap: 22px; align-items: start; }
.conversation-grid h3 { margin: 0 0 10px; }
.transcript-table { max-height: 430px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.transcript-table table { min-width: 760px; }
.transcript-table td:nth-child(4) { min-width: 300px; white-space: normal; }
.customer-chat-card { border-color: #9bc2e5; background: linear-gradient(180deg, #ffffff, #f8fbff); }
.ai-identity { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; background: var(--brand); color: #fff; font-weight: 900; letter-spacing: .04em; }
.chat-messages { max-height: 430px; overflow-y: auto; display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; scroll-behavior: smooth; }
.chat-message { max-width: min(86%, 700px); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.chat-message.assistant { justify-self: start; border-top-left-radius: 5px; }
.chat-message.customer { justify-self: end; border-top-right-radius: 5px; background: #eaf3fb; border-color: #c5dced; }
.chat-message span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.chat-message p { margin: 0; line-height: 1.5; white-space: pre-wrap; }
.chat-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.chat-prompts button { border: 1px solid #b9cbe0; border-radius: 999px; padding: 8px 12px; background: #fff; color: var(--brand); font-weight: 700; cursor: pointer; }
.chat-prompts button:hover, .chat-prompts button:focus { border-color: var(--brand-2); background: #f3f8fc; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 10px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 850px) {
  .conversation-grid { grid-template-columns: 1fr; }
  .conversation-center > .section-heading { align-items: flex-start; }
}
@media (max-width: 540px) {
  .chat-message { max-width: 95%; }
  .chat-form { grid-template-columns: 1fr; }
  .chat-form .button { width: 100%; }
}


/* AI Insurance Producer Platform v1.0 */
.platform-kicker { color: var(--accent); font-weight: 850; letter-spacing: .13em; text-transform: uppercase; font-size: 11px; }
.brand small { letter-spacing: .04em; }
.app-version { display: inline-flex; margin-left: 7px; padding: 2px 7px; border: 1px solid rgba(184,134,59,.35); border-radius: 999px; color: var(--accent); font-size: 10px; font-weight: 800; }
.dashboard-hero { border-radius: 26px; padding: 30px; background: linear-gradient(135deg, var(--brand), #183f62); color: white; box-shadow: var(--shadow); margin-bottom: 24px; position: relative; overflow: hidden; }
.dashboard-hero::after { content: ""; position: absolute; width: 320px; height: 320px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; right: -115px; top: -150px; box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 84px rgba(255,255,255,.025); }
.dashboard-hero .eyebrow { color: #e5c891; }
.dashboard-hero h1 { margin: 9px 0 12px; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.04em; max-width: 820px; }
.dashboard-hero p { color: #d9e3eb; max-width: 780px; font-size: 16px; line-height: 1.65; }
.dashboard-hero .actions { margin-top: 22px; position: relative; z-index: 1; }
.dashboard-hero .button.secondary { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: white; }
.platform-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric-card { position: relative; overflow: hidden; min-height: 132px; }
.metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.metric-card strong { font-size: 34px; letter-spacing: -.04em; }
.metric-card .metric-label { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metric-card .metric-detail { color: var(--muted); font-size: 12px; margin-top: auto; }
.pipeline-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pipeline-tab { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 800; color: var(--brand); }
.pipeline-tab strong { margin-left: 5px; color: var(--accent); }
.lead-row { transition: background .18s ease; }
.lead-row:hover { background: #fbf8f2; }
.lead-primary { display: flex; align-items: center; gap: 12px; }
.lead-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; font-weight: 900; flex: 0 0 auto; }
.stage-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; background: #eef1f4; color: #4a5564; }
.stage-ready_for_agent, .stage-application_complete { background: #f8e9cf; color: #7f5005; }
.stage-engaged, .stage-application_in_progress { background: #e6f0f8; color: #174b73; }
.stage-bound { background: #e1f2e9; color: var(--success); }
.stage-lost, .stage-expired, .stage-opted_out { background: #f7e8e6; color: var(--danger); }
.confidence-cell { min-width: 165px; }
.confidence-meter { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }
.confidence-score { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 900; background: conic-gradient(var(--meter-color, var(--brand)) calc(var(--score, 0) * 1%), #e7e2da 0); position: relative; }
.confidence-score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: white; }
.confidence-score span { position: relative; z-index: 1; }
.confidence-hot { --meter-color: #1d7850; }
.confidence-warm { --meter-color: #b37a1e; }
.confidence-cold { --meter-color: #718095; }
.confidence-copy strong, .confidence-copy small { display: block; }
.confidence-copy small { color: var(--muted); margin-top: 3px; }
.infrastructure-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin-bottom: 22px; }
.provider-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.provider-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.provider-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8794a3; }
.provider-pill.live::before { background: var(--success); box-shadow: 0 0 0 3px rgba(29,111,80,.13); }
.provider-pill.mock::before { background: var(--warning); }
.lead-summary-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 22px; margin-bottom: 22px; }
.lead-command-card { background: linear-gradient(145deg, var(--brand), #193f60); color: white; border: 0; }
.lead-command-card .eyebrow { color: #e5c891; }
.lead-command-card p, .lead-command-card .muted { color: #dbe4ec; }
.lead-score-large { display: flex; gap: 18px; align-items: center; margin: 18px 0; }
.lead-score-large .confidence-score { width: 78px; height: 78px; font-size: 21px; background: conic-gradient(#e1bd79 calc(var(--score, 0) * 1%), rgba(255,255,255,.16) 0); }
.lead-score-large .confidence-score::before { inset: 7px; background: var(--brand); }
.reason-list { margin: 10px 0 0; padding-left: 18px; color: #dce6ee; line-height: 1.65; }
.timeline { display: grid; gap: 0; }
.timeline-event { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 18px; }
.timeline-event:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 31px; bottom: 0; width: 1px; background: var(--line); }
.timeline-icon { width: 34px; height: 34px; border-radius: 50%; background: #eef2f5; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 900; color: var(--brand); z-index: 1; }
.timeline-event.inbound .timeline-icon { background: #e6f0f8; }
.timeline-event.outbound .timeline-icon { background: var(--accent-soft); }
.timeline-event.provider .timeline-icon { background: #e4f2ea; }
.timeline-content { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; background: white; }
.timeline-content header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.timeline-content time { color: var(--muted); font-size: 11px; }
.timeline-content p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.timeline-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.channel-chip { display: inline-flex; border-radius: 999px; padding: 3px 7px; background: #eef1f4; color: #526070; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.conversation-compose { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.conversation-compose .grid { margin-bottom: 0; }
.agent-note-form textarea { width: 100%; min-height: 96px; border: 1px solid #bcc8d6; border-radius: 12px; padding: 12px; font: inherit; resize: vertical; }
.customer-portal-shell .topbar { background: var(--brand); border-color: rgba(255,255,255,.12); }
.customer-portal-shell .brand, .customer-portal-shell .brand small { color: white; }
.customer-portal-shell .brand-mark { background: white; color: var(--brand); }
.customer-trust-strip { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 14px; }
.customer-trust-strip span::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 5px; }
.wellington-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 10px; background: var(--accent-soft); color: #68440d; font-size: 12px; font-weight: 850; }
.empty-state { text-align: center; padding: 44px 22px; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 7px; }

@media (max-width: 980px) {
  .platform-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-summary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .dashboard-hero { padding: 24px 20px; border-radius: 20px; }
  .platform-metrics { grid-template-columns: 1fr; }
  .infrastructure-strip { align-items: flex-start; flex-direction: column; }
  .confidence-cell { min-width: 0; }
}

/* v1 command-center polish */
.lead-command-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.lead-command-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -95px;
  top: -130px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.025);
  pointer-events: none;
}
.lead-command-main, .lead-command-score { position: relative; z-index: 1; }
.lead-command-card .lead-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
}
.lead-command-card .lead-summary-grid > div {
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  border-radius: 13px;
  padding: 12px;
}
.lead-command-card .lead-summary-grid span,
.lead-command-card .lead-summary-grid strong { display: block; }
.lead-command-card .lead-summary-grid span { color: #b9c9d7; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.lead-command-card .lead-summary-grid strong { color: #fff; margin-top: 5px; font-size: 14px; overflow-wrap: anywhere; }
.lead-command-score .confidence-meter { grid-template-columns: 82px minmax(110px, 1fr); }
.lead-command-score .confidence-score { width: 82px; height: 82px; font-size: 22px; background: conic-gradient(#e1bd79 calc(var(--score, 0) * 1%), rgba(255,255,255,.16) 0); }
.lead-command-score .confidence-score::before { inset: 7px; background: var(--brand); }
.lead-command-score .confidence-copy strong { color: #fff; font-size: 17px; }
.lead-command-score .confidence-copy small { color: #c5d2dd; }
.unified-conversation { margin-bottom: 22px; }
.timeline-note-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}
.timeline-note-form input { min-height: 44px; }
.compact-notice { margin: 0; padding: 10px 12px; font-size: 12px; }
.campaign-status { margin: 14px 0 0 !important; color: #b9c9d7 !important; font-size: 13px !important; }
.customer-trust-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 15px;
  margin: 0 0 22px;
  box-shadow: 0 8px 24px rgba(13,34,56,.05);
}
.customer-trust-strip a { font-weight: 750; }
.provider-pills { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .lead-command-card { grid-template-columns: 1fr; }
  .lead-command-card .lead-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .lead-command-card { padding: 22px 18px; border-radius: 19px; }
  .lead-command-card .lead-summary-grid { grid-template-columns: 1fr; }
  .lead-command-score .confidence-meter { grid-template-columns: 70px 1fr; }
  .lead-command-score .confidence-score { width: 70px; height: 70px; }
  .timeline-note-form { grid-template-columns: 1fr; }
  .timeline-note-form .button { width: 100%; }
}

/* v1.1 application, carrier, contact-import, and checkout controls */
.carrier-directory { display: grid; gap: 16px; }
.carrier-directory-row {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(260px, 1.25fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
}
.carrier-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.carrier-add { border: 1px dashed #b9c6d3; border-radius: 15px; padding: 13px 15px; background: #f8fafb; }
.carrier-add summary { cursor: pointer; font-weight: 850; color: var(--brand); }
.carrier-add[open] summary { margin-bottom: 14px; }
.contact-sheet-upload {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #c8d3de;
  border-radius: 15px;
  background: #f7fafc;
}
.contact-sheet-upload label { margin: 0 0 8px; }
.contact-sheet-upload p { margin: 8px 0; }
.success-row { border-color: #9bc7aa !important; background: #eef8f1 !important; color: #245b37; }
.monthly-availability-toggle {
  align-items: flex-start;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafb;
  font-weight: 800;
}
.disabled-fields { opacity: .5; filter: grayscale(.25); }
.question-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.question-form fieldset + fieldset {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.question-form legend {
  width: 100%;
  margin: 0 0 13px;
  padding: 0;
  color: var(--brand);
  font-family: var(--heading-font, inherit);
  font-size: 20px;
  font-weight: 900;
}
.question-list { display: grid; gap: 12px; }
.question-item {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, .8fr);
  gap: 18px;
  align-items: start;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.question-label { margin: 0; color: var(--ink); font-weight: 780; line-height: 1.45; }
.question-item > select,
.question-item > input,
.conditional-question > select { width: 100%; }
.conditional-question { display: grid; gap: 10px; }
.conditional-detail {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d4dde6;
  background: #f7f9fb;
}
.conditional-detail[hidden] { display: none !important; }
.conditional-detail label { margin: 0; }
.live-chat-actions { margin-top: 14px; align-items: center; }
.live-chat-actions .muted { max-width: 430px; font-size: 12px; }
.call-me-option { border-color: #c3a15e !important; background: #fffaf0 !important; }
.disabled-option { opacity: .62; }
.schedule-preview { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #f5f8fa; border: 1px solid var(--line); }

@media (max-width: 850px) {
  .carrier-directory-row { grid-template-columns: 1fr; }
  .question-item { grid-template-columns: 1fr; gap: 10px; }
}

/* v1.2 lead outcomes, focused alerts, streamlined questions, and compact timeline */
.platform-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric-filter {
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.metric-filter:hover {
  transform: translateY(-2px);
  border-color: #c8a35e;
  box-shadow: 0 14px 32px rgba(13, 34, 56, .1);
}
.metric-filter.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 134, 59, .16), var(--shadow);
  background: #fffaf0;
}
.pipeline-filter-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.pipeline-tab { text-decoration: none; }
.pipeline-tab.active { border-color: var(--accent); background: var(--accent-soft); }
.notification-heading,
.notification-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notification-dismiss {
  appearance: none;
  border: 1px solid rgba(13, 34, 56, .18);
  background: rgba(255, 255, 255, .72);
  color: var(--brand);
  border-radius: 999px;
  padding: 5px 9px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.notification-dismiss:hover { background: white; }
.archive-chip { background: #eef1f4; color: #4f5c68; }
.lead-outcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: #d7bd8c;
  background: linear-gradient(135deg, #fffdf8, #f7f1e6);
}
.lead-outcome-card h2 { margin-bottom: 5px; }
.lead-outcome-card p { margin: 0; }
.disabled-button { opacity: .58; pointer-events: none; cursor: not-allowed; }
.proposal-link-actions { justify-content: flex-end; }
.bind-steps-card { border-color: #d7bd8c; background: linear-gradient(145deg, #fff, #fffaf0); }
.bind-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bind-steps li { display: flex; gap: 11px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.bind-steps li > span { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e9eef2; color: var(--brand); font-weight: 900; }
.bind-steps li.complete { border-color: #9bc7aa; background: #eef8f1; }
.bind-steps li.complete > span { background: #2f7a48; color: white; }
.bind-steps strong, .bind-steps small { display: block; }
.bind-steps small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.bind-finish-line { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--brand); color: white; text-align: center; }
.question-item-wide { grid-template-columns: 1fr; }
.binary-answer { display: flex; justify-content: flex-start; }
.yes-toggle { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 11px 13px; border: 1px solid #cbd5df; border-radius: 12px; background: #f8fafb; cursor: pointer; min-width: 0; }
.yes-toggle input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; }
.yes-toggle span { min-width: 0; }
.yes-toggle strong, .yes-toggle small { display: block; }
.yes-toggle small { color: var(--muted); font-weight: 500; margin-top: 3px; }
.mailing-address-fields,
.effective-date-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.secondary-insured-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .45fr); gap: 12px; align-items: end; }
.secondary-insured-fields label,
.secondary-insured-fields input,
.conditional-detail label,
.conditional-detail input { min-width: 0; width: 100%; }
.timeline-preview { margin-bottom: 12px; }
.timeline-expander { border-top: 1px solid var(--line); padding-top: 12px; }
.timeline-expander > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--brand); font-weight: 850; padding: 9px 4px; }
.timeline-expander > summary::-webkit-details-marker { display: none; }
.timeline-expander > summary::before { content: "+"; width: 24px; height: 24px; border-radius: 50%; background: #eef2f5; display: inline-grid; place-items: center; margin-right: 9px; flex: 0 0 auto; }
.timeline-expander[open] > summary::before { content: "-"; }
.timeline-expander > summary span { margin-left: auto; color: var(--muted); font-size: 12px; }
.timeline-expanded { margin-top: 14px; padding-top: 4px; max-height: 620px; overflow: auto; }
.timeline-note-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.timeline-note-form label { margin: 0; }

@media (max-width: 1080px) {
  .platform-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .bind-steps { grid-template-columns: 1fr; }
  .secondary-insured-fields { grid-template-columns: 1fr; }
  .lead-outcome-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 650px) {
  .platform-metrics { grid-template-columns: 1fr; }
  .pipeline-filter-actions { justify-content: flex-start; }
  .timeline-note-form { grid-template-columns: 1fr; }
  .timeline-note-form .button { width: 100%; }
}

/* v1.2 lead outcomes, filters, focused alerts, and streamlined application UI */
.platform-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric-filter {
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.metric-filter:hover {
  transform: translateY(-2px);
  border-color: #c7a96f;
  box-shadow: 0 20px 48px rgba(13, 34, 56, .13);
  text-decoration: none;
}
.metric-filter.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 134, 59, .15), var(--shadow);
  background: linear-gradient(180deg, #fffdf9, #fff8ec);
}
.metric-filter.active::before { width: 7px; }
.pipeline-filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.compact-button { padding: 7px 10px; border-radius: 9px; font-size: 12px; }
.notification-heading, .notification-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notification-footer { margin-top: 9px; }
.notification-footer small { color: var(--muted); }
.notification-dismiss {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.notification-dismiss:hover { border-color: #b7c2cc; color: var(--brand); background: #f7f9fb; }
.badge-bound { background: #e1f2e9; color: var(--success); }
.archive-chip { background: #eeeaf4; color: #58486d; }
.lead-outcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  border-left: 5px solid var(--accent);
}
.lead-outcome-card > div:first-child { max-width: 760px; }
.lead-outcome-card p { color: var(--muted); margin: 7px 0 0; line-height: 1.55; }
.timeline-preview { margin-top: 2px; }
.timeline-expander {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
}
.timeline-expander > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--brand);
  font-weight: 850;
  list-style: none;
  padding: 7px 0;
}
.timeline-expander > summary::-webkit-details-marker { display: none; }
.timeline-expander > summary::before { content: "+"; width: 25px; height: 25px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--brand); margin-right: 8px; flex: 0 0 auto; }
.timeline-expander[open] > summary::before { content: "−"; }
.timeline-expander > summary span { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.timeline-expanded { margin-top: 16px; }
.timeline-expanded > .timeline { padding-top: 2px; }
.bind-steps-card { margin-bottom: 22px; overflow: hidden; }
.bind-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bind-steps li { display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfd; }
.bind-steps li > span { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #e8edf2; color: var(--brand); font-weight: 900; }
.bind-steps li strong, .bind-steps li small { display: block; }
.bind-steps li small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.bind-steps li.complete { border-color: #9bc7aa; background: #eef8f1; }
.bind-steps li.complete > span { background: var(--success); color: #fff; }
.bind-steps li.complete > span::after { content: "✓"; }
.bind-steps li.complete > span { font-size: 0; }
.bind-steps li.complete > span::after { font-size: 15px; }
.bind-finish-line { margin: 13px -24px -24px; padding: 15px 24px; text-align: center; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; }
.proposal-link-actions { justify-content: flex-end; }
.disabled-button { opacity: .58; cursor: not-allowed; pointer-events: none; }
.question-item-wide { grid-template-columns: minmax(0, 1fr); }
.question-item-wide .conditional-question { width: 100%; }
.yes-toggle {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #c8d3de;
  border-radius: 13px;
  background: #f8fafb;
  cursor: pointer;
  font-weight: 650;
}
.yes-toggle:hover { border-color: #9eb2c5; background: #f3f7fa; }
.yes-toggle input { width: 20px; height: 20px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--brand); }
.yes-toggle span, .yes-toggle strong, .yes-toggle small { display: block; }
.yes-toggle small { color: var(--muted); font-weight: 500; line-height: 1.35; margin-top: 3px; }
.binary-answer { min-width: 180px; }
.question-item-wide .yes-toggle { max-width: 430px; }
.conditional-detail { min-width: 0; }
.secondary-insured-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(190px, .75fr);
  gap: 14px;
  align-items: end;
}
.secondary-insured-fields label, .secondary-insured-fields input { min-width: 0; }
.secondary-insured-fields input { width: 100%; }
.mailing-address-fields, .effective-date-fields { max-width: 700px; }

@media (max-width: 1100px) {
  .platform-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .lead-outcome-card { align-items: flex-start; flex-direction: column; }
  .lead-outcome-card .actions { width: 100%; }
  .bind-steps { grid-template-columns: 1fr; }
  .secondary-insured-fields { grid-template-columns: 1fr; }
  .question-item-wide .yes-toggle { max-width: none; }
}
@media (max-width: 650px) {
  .platform-metrics { grid-template-columns: 1fr; }
  .pipeline-filter-actions { justify-content: flex-start; }
  .timeline-content header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .bind-finish-line { margin-left: -18px; margin-right: -18px; margin-bottom: -18px; padding-left: 18px; padding-right: 18px; }
}

.bind-disabled-note { display: block; max-width: 230px; margin-top: 7px; line-height: 1.35; text-align: center; }
.unified-conversation:has(.timeline-expander[open]) .timeline-preview { display: none; }

/* v1.3 clear answers, drag-and-drop imports, searchable lead pages, and submission polish */
.customer-portal-shell .customer-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-weight: 900;
  letter-spacing: .01em;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.customer-portal-shell .customer-phone-link:hover,
.customer-portal-shell .customer-phone-link:focus-visible {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
  text-decoration: none;
  text-shadow: none;
}

.metric-search-hint { display: block; margin-top: 7px; color: var(--brand); font-size: 11px; font-weight: 850; }
.lead-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin: 18px 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8fafb;
}
.lead-search-input-wrap { position: relative; display: block; margin: 0; }
.lead-search-input-wrap input { padding-left: 42px; background: #fff; }
.lead-search-input-wrap::before {
  content: "⌕";
  position: absolute;
  left: 14px;
  bottom: 11px;
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
  pointer-events: none;
}
.lead-search-summary { margin: 0; min-width: 165px; text-align: right; color: var(--muted); font-size: 12px; }
.lead-contact-line { font-size: 12px; overflow-wrap: anywhere; }
.lead-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lead-pagination[hidden] { display: none; }
.lead-page-buttons { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.lead-page-button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 36px;
  min-height: 34px;
  padding: 6px 9px;
  background: #fff;
  color: var(--brand);
  font-weight: 850;
  cursor: pointer;
}
.lead-page-button:hover:not(:disabled), .lead-page-button.active { border-color: var(--accent); background: var(--accent-soft); }
.lead-page-button:disabled { opacity: .45; cursor: not-allowed; }
.lead-no-results { padding: 28px 16px; text-align: center; color: var(--muted); }

.interactive-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 24px;
  border: 2px dashed #9eb0c1;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #f4f7fa);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.interactive-dropzone:hover, .interactive-dropzone.drag-active, .interactive-dropzone:focus-within {
  border-color: var(--accent);
  background: #fff9ee;
  transform: translateY(-1px);
}
.interactive-dropzone.compact-dropzone { min-height: 132px; padding: 18px; }
.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.dropzone-copy strong, .dropzone-copy span, .dropzone-copy small { display: block; }
.dropzone-copy strong { color: var(--brand); font-size: 18px; }
.dropzone-copy span { margin-top: 5px; color: var(--muted); }
.dropzone-copy small { margin-top: 7px; color: var(--muted); }
.selected-file-list { display: grid; gap: 8px; margin-top: 12px; }
.selected-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.selected-file-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file-row button { appearance: none; border: 0; background: transparent; color: var(--danger); font-weight: 850; cursor: pointer; }
.selected-file-count { margin-top: 9px; color: var(--muted); font-size: 12px; font-weight: 750; }
.upload-progress-wrap { margin-top: 14px; }
.upload-progress-wrap progress { width: 100%; height: 13px; accent-color: var(--accent); }
.upload-action-button { margin-top: 16px; }

.duplicate-contact-error {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #d88989;
  border-left: 5px solid var(--danger);
  border-radius: 12px;
  background: #fff1f1;
  color: #7f1d1d;
  line-height: 1.5;
}
.duplicate-contact-error[hidden] { display: none; }
.duplicate-lead-link { margin-top: 10px; }
input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(169, 42, 42, .12); }

.binary-choice-group { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; min-width: 190px; }
.binary-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 86px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #b8c6d2;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  font-weight: 850;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.binary-choice:hover { border-color: var(--brand-2); background: #f7fafc; }
.binary-choice.selected { border-color: var(--brand); background: #eaf1f6; box-shadow: inset 0 0 0 1px var(--brand); }
.binary-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.question-item-wide .binary-choice-group { width: fit-content; }
.conditional-detail { margin-top: 12px; }
.secondary-insured-fields { grid-template-columns: minmax(0, 1fr) minmax(210px, .72fr); align-items: start; }
.secondary-insured-fields label { display: grid; align-content: start; }

.submission-celebration {
  text-align: center;
  border: 2px solid #9bc7aa;
  background: linear-gradient(180deg, #f4fbf6, #fff);
  box-shadow: 0 18px 50px rgba(21, 102, 58, .13);
}
.submission-celebration h2 { margin: 8px 0 9px; color: var(--success); font-size: clamp(28px, 5vw, 44px); }
.submission-celebration p { max-width: 800px; margin: 0 auto 12px; line-height: 1.55; }
.celebration-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--success);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .lead-search-panel { grid-template-columns: 1fr; }
  .lead-search-summary { text-align: left; min-width: 0; }
  .lead-pagination { align-items: flex-start; flex-direction: column; }
  .interactive-dropzone { min-height: 155px; padding: 18px; }
  .binary-choice-group { width: 100%; }
  .binary-choice { flex: 1 1 120px; }
  .secondary-insured-fields { grid-template-columns: 1fr; }
  .customer-portal-shell .customer-phone-link { max-width: 100%; }
}
.lead-search-input-wrap #lead-search-clear {
  position: absolute;
  right: 8px;
  bottom: 7px;
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 8px;
  background: #eef2f5;
  color: var(--brand);
  font-weight: 850;
  cursor: pointer;
}
.lead-search-input-wrap input { padding-right: 70px; }

/* v1.4 saved review workspace, agency settings, focused filters, and scroll-safe actions */
.platform-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.action-toast {
  position: fixed;
  z-index: 100;
  top: 86px;
  right: max(16px, calc((100vw - 1180px) / 2));
  max-width: min(460px, calc(100vw - 32px));
  padding: 14px 17px;
  border: 1px solid #9bc7aa;
  border-left: 5px solid var(--success);
  border-radius: 13px;
  background: #f4fbf6;
  color: #145c3e;
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(13, 34, 56, .18);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}
.action-toast.action-toast-ready { opacity: 1; transform: translateY(0); }
.settings-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.customer-service-label { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.saved-quote-reviews { margin-bottom: 22px; }
.saved-quote-reviews table { min-width: 980px; }
.compact-actions { align-items: stretch; flex-wrap: wrap; }
.duplicate-review-status,
.duplicate-status {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafb;
  color: var(--muted);
}
.duplicate-review-status { margin-top: 16px; width: 100%; }
.duplicate-status strong, .duplicate-review-status strong { color: var(--ink); }
.duplicate-status small { color: inherit; }
.duplicate-warning { border-color: #e3b8a5; background: #fff5ef; color: #8a3e22; }
.duplicate-clear { border-color: #b9dfc9; background: #f2faf5; color: var(--success); }
.settings-card { margin-bottom: 22px; }
.settings-card .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.carrier-directory-row {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(280px, 1.3fr) auto;
  align-items: end;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.carrier-directory-row:first-of-type { border-top: 0; }
.carrier-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.carrier-add { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.carrier-add > summary { cursor: pointer; color: var(--brand); font-weight: 850; }
.application-checklist-card { display: flex; flex-direction: column; min-height: 100%; }
.clean-checklist { gap: 12px; }
.clean-checklist li { padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.clean-checklist li.done { border-color: #b9dfc9; background: #f2faf5; }
.checklist-actions { margin-top: auto; padding-top: 24px; }
.checkout-premium-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0;
  padding: 18px;
  border: 1px solid #c8d3de;
  border-radius: 14px;
  background: #f7fafc;
}
.checkout-premium-preview span { color: var(--muted); font-weight: 750; }
.checkout-premium-preview strong { color: var(--brand); font-size: clamp(24px, 4vw, 34px); }
.simple-confirmation { background: #f4f8fb; border-color: #c8d8e5; color: var(--brand); }
.proposal-editor .sticky-actions { flex-wrap: wrap; }

@media (max-width: 1080px) {
  .platform-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carrier-directory-row { grid-template-columns: 1fr 1.35fr; }
  .carrier-actions { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .platform-metrics, .settings-card .grid.two { grid-template-columns: 1fr; }
  .carrier-directory-row { grid-template-columns: 1fr; }
  .carrier-actions { grid-column: auto; }
  .action-toast { top: 76px; left: 16px; right: 16px; }
  .checkout-premium-preview { align-items: flex-start; flex-direction: column; }
  .customer-nav { align-items: flex-end; flex-direction: column; gap: 4px; }
}

.lost-reason-label {
  display: inline-block;
  margin-top: 6px;
  color: #8a3e22;
  font-size: 12px;
  font-weight: 850;
}
.lost-chip {
  border-color: #e3b8a5;
  background: #fff5ef;
  color: #8a3e22;
  font-weight: 850;
}
.unsubscribe-card {
  max-width: 760px;
  margin: 0 auto 28px;
}
.unsubscribe-card form { margin: 22px 0 12px; }

/* Staging carrier underwriting question editor */
.uw-editor-card { overflow: visible; }
.uw-question-editor-list { display: grid; gap: 1rem; margin-top: 1rem; }
.uw-question-editor-row { border: 1px solid var(--border, #d7dde8); border-radius: 16px; padding: 1rem; background: var(--surface, #fff); box-shadow: 0 8px 24px rgba(18, 32, 57, 0.05); }
.uw-row-heading { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.uw-order-number { width: 2rem; height: 2rem; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 800; background: #eef4ff; color: #1f4f93; }
.uw-row-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .4rem; }
.button.tiny { min-height: 2rem; padding: .3rem .65rem; font-size: .82rem; }
.uw-question-editor-row textarea { resize: vertical; min-height: 4.5rem; }
.uw-question-editor-row label small { display: inline; margin-left: .25rem; }
.question-label small { display: block; margin-top: .3rem; color: var(--muted, #667085); font-weight: 500; }
.question-type-text input,
.question-type-number input,
.question-type-date input,
.question-type-select select,
.question-type-yes_no_details textarea { width: 100%; }
@media (max-width: 760px) {
  .uw-row-heading { align-items: flex-start; flex-wrap: wrap; }
  .uw-row-actions { width: 100%; margin-left: 0; }
}


/* Staging reliable action confirmations */
.action-toast {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.button[aria-busy="true"] {
  opacity: .72;
  cursor: progress;
}


/* staging lead detail drawers */
.application-checklist-single { grid-template-columns: minmax(0, 1fr) !important; }
.lead-panel-rail { position: fixed; right: 14px; top: 150px; z-index: 760; width: 176px; display: grid; gap: 6px; padding: 9px; border: 1px solid rgba(15, 23, 42, .14); border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 16px 40px rgba(15, 23, 42, .14); backdrop-filter: blur(10px); }
.lead-panel-rail-title { padding: 2px 5px 5px; color: var(--muted, #64748b); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lead-panel-rail-button { width: 100%; border: 1px solid rgba(15, 23, 42, .12); border-radius: 10px; background: #fff; color: inherit; padding: 8px 7px; font: inherit; font-size: .78rem; font-weight: 700; line-height: 1.1; cursor: pointer; text-align: left; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.lead-panel-rail-button:hover { transform: translateX(-2px); border-color: rgba(37, 99, 235, .35); box-shadow: 0 5px 14px rgba(15, 23, 42, .08); }
.lead-panel-rail-button.is-active { border-color: rgba(37, 99, 235, .55); box-shadow: inset 3px 0 0 rgba(37, 99, 235, .8); }
.lead-detail-drawer-backdrop { position: fixed; inset: 0; z-index: 880; border: 0; padding: 0; background: rgba(15, 23, 42, .28); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.lead-detail-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.lead-detail-drawer { position: fixed; top: 0; right: 0; z-index: 890; width: min(650px, 94vw); height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #f8fafc; box-shadow: -18px 0 50px rgba(15, 23, 42, .2); transform: translateX(104%); transition: transform .24s ease; }
.lead-detail-drawer.is-open { transform: translateX(0); }
.lead-detail-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid rgba(15, 23, 42, .1); background: #fff; }
.lead-detail-drawer-header h2, .lead-detail-drawer-header p { margin: 0; }
.lead-detail-drawer-body { min-height: 0; overflow-y: auto; padding: 18px; }
.lead-detail-drawer-body > .card, .lead-detail-drawer-body > section.card { margin: 0; box-shadow: none; }
.lead-detail-drawer-body .table-scroll { max-width: 100%; }
body.lead-drawer-open { overflow: hidden; }
@media (max-width: 1050px) {
  .lead-panel-rail { top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; display: flex; align-items: center; overflow-x: auto; padding: 8px; border-radius: 14px; }
  .lead-panel-rail-title { flex: 0 0 auto; padding: 0 6px; }
  .lead-panel-rail-button { flex: 0 0 auto; width: auto; min-width: 78px; text-align: center; white-space: nowrap; }
  .lead-panel-rail-button:hover { transform: translateY(-1px); }
}
@media (max-width: 640px) {
  .lead-detail-drawer { width: 100vw; }
  .lead-detail-drawer-header { padding: 14px 16px; }
  .lead-detail-drawer-body { padding: 12px; }
}


/* staging performance KPIs */
.performance-entry-card { border-left: 4px solid var(--accent, #2563eb); }
.kpi-filter-card { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.kpi-filter-card > div { display:grid; gap:4px; }
.kpi-filter-card small { color:var(--muted, #64748b); }
.kpi-range-nav { display:flex; flex-wrap:wrap; gap:8px; }
.kpi-range-link { display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; border:1px solid rgba(15,23,42,.14); border-radius:999px; text-decoration:none; font-weight:700; background:#fff; }
.kpi-range-link.active { border-color:var(--accent, #2563eb); box-shadow:inset 0 0 0 1px var(--accent, #2563eb); }
.kpi-metric { min-height:120px; }
.kpi-metric strong { font-size:2rem; line-height:1.05; }
.kpi-metric small { color:var(--muted, #64748b); }
.kpi-bars { display:grid; gap:16px; }
.kpi-bar-row { display:grid; gap:6px; }
.kpi-bar-label { display:flex; justify-content:space-between; gap:12px; }
.kpi-bar-label span { font-weight:700; }
.kpi-bar-track { width:100%; height:14px; overflow:hidden; border-radius:999px; background:rgba(100,116,139,.16); }
.kpi-bar-track > span { display:block; height:100%; min-width:0; border-radius:inherit; background:var(--accent, #2563eb); transition:width .25s ease; }
.kpi-bar-row small { color:var(--muted, #64748b); }
@media (max-width: 760px) { .kpi-filter-card { align-items:flex-start; flex-direction:column; } .kpi-range-nav { width:100%; } .kpi-range-link { flex:1; } }


/* staging customer proposal chat panel */
.customer-chat-launcher { position: fixed; right: 18px; top: 47%; z-index: 760; display: grid; gap: 2px; min-width: 142px; padding: 11px 13px; border: 1px solid rgba(15, 23, 42, .14); border-radius: 14px 0 0 14px; background: #fff; color: inherit; box-shadow: 0 14px 34px rgba(15, 23, 42, .16); cursor: pointer; text-align: left; transform: translateY(-50%); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.customer-chat-launcher:hover { transform: translate(-3px, -50%); border-color: rgba(37, 99, 235, .36); box-shadow: 0 18px 40px rgba(15, 23, 42, .2); }
.customer-chat-launcher span { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #64748b); }
.customer-chat-launcher strong { font-size: .86rem; line-height: 1.15; }
.customer-chat-panel-backdrop { position: fixed; inset: 0; z-index: 880; border: 0; padding: 0; background: rgba(15, 23, 42, .30); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.customer-chat-panel-backdrop.is-open { opacity: 1; pointer-events: auto; }
.customer-chat-drawer { position: fixed; top: 0; right: 0; z-index: 890; width: min(590px, 94vw); height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #f8fafc; box-shadow: -18px 0 50px rgba(15, 23, 42, .22); transform: translateX(104%); transition: transform .24s ease; }
.customer-chat-drawer.is-open { transform: translateX(0); }
.customer-chat-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid rgba(15, 23, 42, .10); background: #fff; }
.customer-chat-drawer-header h2, .customer-chat-drawer-header p { margin: 0; }
.customer-chat-drawer-body { min-height: 0; overflow-y: auto; padding: 18px; }
.customer-chat-drawer-body .customer-chat-card { margin: 0; box-shadow: none; }
.customer-chat-drawer-body .chat-messages { max-height: none; }
body.customer-chat-open { overflow: hidden; }
@media (max-width: 720px) {
  .customer-chat-launcher { top: auto; right: 12px; bottom: 14px; min-width: 0; border-radius: 14px; transform: none; }
  .customer-chat-launcher:hover { transform: translateY(-2px); }
  .customer-chat-drawer { width: 100vw; }
  .customer-chat-drawer-header { padding: 14px 16px; }
  .customer-chat-drawer-body { padding: 12px; }
}


/* staging lead dashboard campaign controls */
.lead-primary-actions { padding: 18px 20px; border: 1px solid rgba(37, 99, 235, .18); box-shadow: 0 12px 30px rgba(15, 23, 42, .08); }
.lead-primary-actions-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.lead-primary-actions-heading h2, .lead-primary-actions-heading p { margin-top: 0; }
.lead-primary-actions-heading h2 { margin-bottom: 5px; }
.lead-primary-actions-heading > div > p:last-child { margin-bottom: 0; color: var(--muted, #64748b); }
.lead-primary-action-wrap { margin: 0; }
.lead-primary-action-buttons { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.lead-primary-action-form { margin: 0; min-width: 0; }
.lead-primary-action-form .lead-primary-action-button { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 12px; font-weight: 800; line-height: 1.15; text-align: center; }
.lead-action-campaign .lead-primary-action-button { box-shadow: 0 8px 18px rgba(37, 99, 235, .16); }
.application-checklist-bottom { margin-top: 18px; margin-bottom: 14px; }
@media (max-width: 900px) { .lead-primary-action-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lead-primary-actions { padding: 15px; } .lead-primary-action-buttons { grid-template-columns: 1fr; } }


/* staging Naomi assistant presence */
.naomi-standing-by-chip { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(22, 163, 74, .22); border-radius: 999px; background: rgba(240, 253, 244, .94); color: #166534; box-shadow: 0 7px 18px rgba(22, 101, 52, .08); }
.naomi-standing-by-chip > span:last-child { display: grid; gap: 1px; line-height: 1.05; }
.naomi-standing-by-chip strong { font-size: .79rem; }
.naomi-standing-by-chip small { font-size: .66rem; font-weight: 700; color: #4d7c5d; }
.naomi-presence-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .14); }
.lead-primary-actions .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.lead-primary-actions .eyebrow::before { content: 'N'; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #111827; color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: 0; }
.lead-primary-actions-heading { align-items: center; }
.naomi-chat-intro { margin: 0 0 10px; padding: 9px 11px; border-radius: 10px; background: rgba(37, 99, 235, .06); color: #475569; font-size: .84rem; line-height: 1.4; }
.customer-chat-launcher { min-width: 166px; padding: 10px 12px; }
.customer-chat-launcher span { color: #475569; font-size: .66rem; }
.customer-chat-launcher strong { font-size: .84rem; }
.customer-chat-launcher strong::before { content: '●'; margin-right: 6px; color: #22c55e; font-size: .7rem; vertical-align: 1px; }
.naomi-human-support { margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(15, 23, 42, .10); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.naomi-human-support-copy { display: grid; gap: 2px; min-width: 0; }
.naomi-human-support-copy strong { font-size: .82rem; color: #0f172a; }
.naomi-human-support-copy span { font-size: .76rem; color: #64748b; line-height: 1.3; }
.naomi-human-support-button { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 560px) { .lead-primary-actions-heading { align-items: flex-start; } .naomi-standing-by-chip { padding: 8px 10px; } .naomi-human-support { align-items: stretch; flex-direction: column; } .naomi-human-support-button { width: 100%; } }


/* staging Naomi lead workspace intro */
.dashboard-hero .naomi-workspace-summary { max-width: 820px; margin: 8px 0 12px; font-size: 1rem; line-height: 1.6; }
.naomi-workspace-availability { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; padding: 8px 11px; border: 1px solid rgba(22, 163, 74, .22); border-radius: 999px; background: rgba(240, 253, 244, .82); font-size: .84rem; }
.naomi-workspace-availability strong { font-weight: 850; }
.naomi-workspace-availability > span:last-child { color: var(--muted, #64748b); }
.naomi-workspace-dot { width: 9px; height: 9px; border-radius: 999px; background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); }
.naomi-workspace-capabilities { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.naomi-workspace-capabilities span { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border: 1px solid rgba(15, 23, 42, .10); border-radius: 999px; background: rgba(255, 255, 255, .82); font-size: .75rem; font-weight: 750; }
@media (max-width: 620px) { .naomi-workspace-availability { border-radius: 14px; } .naomi-workspace-capabilities { gap: 6px; } }


/* staging Naomi workspace visual cleanup */
.naomi-workspace-availability { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 4px 0 11px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: .84rem; }
.naomi-workspace-availability strong { color: inherit; font-weight: 850; }
.naomi-workspace-availability > span:last-child { color: var(--muted, #64748b); }
.naomi-workspace-dot { width: 8px; height: 8px; border-radius: 999px; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .10); }
.naomi-workspace-capabilities { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0; width: fit-content; max-width: 100%; margin: 0 0 16px; padding: 8px 11px; border: 1px solid rgba(15, 23, 42, .09); border-radius: 12px; background: rgba(255, 255, 255, .58); color: #334155; }
.naomi-workspace-capabilities span { display: inline-flex; align-items: center; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: .76rem; font-weight: 750; }
.naomi-workspace-capabilities span:not(:last-child)::after { content: '•'; margin: 0 9px; color: #94a3b8; font-weight: 500; }
@media (max-width: 620px) { .naomi-workspace-capabilities { display: flex; width: 100%; gap: 6px 10px; } .naomi-workspace-capabilities span:not(:last-child)::after { margin-left: 9px; margin-right: 0; } }


/* staging Naomi primary capability chips */
.naomi-workspace-capabilities { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: fit-content; max-width: 100%; margin: 0 0 16px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; }
.naomi-workspace-capabilities span { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 11px; border: 1px solid transparent; border-radius: 10px; background: var(--brand); color: #ffffff; box-shadow: 0 8px 18px rgba(13,34,56,.16); font-size: .78rem; font-weight: 800; line-height: 1.1; }
.naomi-workspace-capabilities span:not(:last-child)::after { content: none; margin: 0; }
@media (max-width: 620px) { .naomi-workspace-capabilities { width: 100%; gap: 7px; } .naomi-workspace-capabilities span { flex: 1 1 auto; } }
