:root {
  --ink: #12221f;
  --muted: #66736f;
  --paper: #f8f9f5;
  --card: #ffffff;
  --line: #dfe5df;
  --green: #155f50;
  --green-2: #197462;
  --mint: #e3f0e9;
  --lime: #dff238;
  --gold: #e0af43;
  --coral: #d86e55;
  --navy: #183238;
  --shadow: 0 20px 60px rgba(20, 44, 39, 0.09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

.voice-operations-panel { grid-column: 1 / -1; }
.voice-readiness { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 14px; }
.voice-readiness > div { display: flex; align-items: flex-start; gap: 10px; padding: 14px; background: #f7f8f3; border: 1px solid var(--line); border-radius: 14px; }
.voice-readiness p, .voice-session-row p { display: grid; gap: 3px; margin: 0; }
.voice-readiness small, .voice-session-row small, .voice-simulation-note { color: var(--muted); line-height: 1.45; }
.readiness-dot { width: 10px; height: 10px; border-radius: 50%; background: #d18a47; box-shadow: 0 0 0 4px #f7e6d3; flex: 0 0 auto; margin-top: 5px; }
.readiness-dot.ready { background: #4c8a63; box-shadow: 0 0 0 4px #dcecdf; }
.mock-chip.live { background: #dcecdf; color: #28583a; }
.voice-guardrails { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.voice-guardrails span { padding: 7px 10px; border-radius: 999px; color: #324438; background: #eef2e9; font-size: .75rem; font-weight: 700; }
.voice-guardrails span::before { content: "✓"; color: #4d7c59; margin-right: 6px; }
.voice-simulator { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.voice-simulator label { display: grid; gap: 6px; font-size: .78rem; font-weight: 700; }
.voice-simulator select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; color: var(--ink); }
.voice-simulation-note { margin: 9px 2px 20px; font-size: .78rem; }
.voice-history-head { margin-top: 4px; }
.voice-history-head h3 { margin: 2px 0 0; font-family: var(--display); font-size: 1.15rem; }
.voice-session-list { display: grid; gap: 8px; }
.voice-session-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--line); }
.voice-session-row > div:first-child { display: flex; align-items: center; gap: 10px; }
.voice-language { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; background: #1f2d26; color: #fff; font-size: .7rem; font-weight: 800; }
.voice-session-outcome { display: grid; justify-items: end; gap: 3px; }

@media (max-width: 760px) {
  .voice-readiness, .voice-simulator { grid-template-columns: 1fr; }
  .voice-simulator .button { width: 100%; }
  .voice-session-row { align-items: flex-start; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { height: 76px; display: flex; align-items: center; gap: 32px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid rgba(23,37,34,.1); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10; }
.brand { color: var(--ink); text-decoration: none; display: flex; gap: 11px; align-items: center; min-width: 190px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: Georgia, serif; font-size: 24px; letter-spacing: -.5px; }
.brand small { text-transform: uppercase; letter-spacing: 3px; font-size: 8px; margin-top: 4px; color: var(--green); }
.brand-button { border: 0; background: transparent; padding: 0; text-align: left; }
.brand-mark { width: 36px; height: 36px; border-radius: 50% 50% 50% 10%; background: var(--green); display: grid; place-items: center; transform: rotate(-15deg); }
.brand-mark span { width: 13px; height: 18px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(55deg); border-radius: 50%; }
nav { display: flex; align-items: stretch; align-self: stretch; gap: 8px; }
.nav-link { border: 0; background: transparent; color: var(--muted); padding: 0 15px; position: relative; font-size: 14px; }
.nav-link.active { color: var(--ink); font-weight: 650; }
.nav-link.active::after { content: ""; position: absolute; height: 3px; left: 16px; right: 16px; bottom: 0; border-radius: 3px 3px 0 0; background: var(--green); }
.header-cta { margin-left: auto; background: var(--ink); color: #fff; padding: 11px 16px; }
.safety-pill { margin-left: auto; border: 1px solid #cbd8ce; background: #edf4ed; color: #41634d; border-radius: 99px; padding: 8px 12px; font-size: 12px; white-space: nowrap; }
.safety-pill span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4e9a64; margin-right: 7px; }
main { max-width: 1460px; margin: auto; padding: 46px clamp(20px, 4vw, 64px) 80px; }
.view { display: none; animation: appear .25s ease; }
.view.active { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.4px; font-size: 10px; font-weight: 800; color: var(--green-2); margin: 0 0 12px; }
h1 { font: 500 clamp(40px, 5vw, 68px)/.98 Georgia, serif; letter-spacing: -2.5px; margin: 0; max-width: 800px; }
h1 em { font-weight: 400; color: var(--green); }
.lede { max-width: 640px; color: var(--muted); line-height: 1.6; margin: 20px 0 0; }
.head-actions { display: flex; align-items: end; gap: 10px; }
.admin-key-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.admin-key-label input { display: block; margin-top: 6px; min-width: 180px; }
input, select, textarea { width: 100%; border: 1px solid #d7dad1; border-radius: 11px; padding: 13px 14px; color: var(--ink); background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(15,125,106,.11); }
textarea { resize: vertical; line-height: 1.5; }
.button { border: 0; border-radius: 11px; padding: 13px 18px; font-weight: 700; transition: transform .12s, background .12s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--green); box-shadow: 0 8px 18px rgba(13,102,88,.16); }
.button.secondary { background: var(--mint); color: var(--green); }
.button.danger { background: #f8e3de; color: #9d3f2e; }
.button.full { width: 100%; padding: 16px 18px; display: flex; justify-content: space-between; }
.notice { display: flex; gap: 14px; border-radius: 14px; padding: 16px 18px; }
.safety-notice { background: #e7efe7; border: 1px solid #cadccf; margin-bottom: 22px; }
.notice-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--green); color: #fff; }
.notice strong { font-size: 13px; }
.notice p { margin: 3px 0 0; color: #53685c; font-size: 12px; line-height: 1.5; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 20px; min-height: 130px; display: flex; flex-direction: column; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { font: 500 38px/1 Georgia, serif; margin: 18px 0 5px; }
.metric small { color: #84908b; font-size: 10px; }
.metric.accent { border-top: 3px solid var(--gold); }
.metric.dark { background: var(--navy); color: white; border-color: var(--navy); }
.metric.dark span, .metric.dark small { color: #aec1bd; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 16px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; min-width: 0; overflow: hidden; }
.panel.wide { grid-column: 1; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 21px 22px 15px; border-bottom: 1px solid #e7e7e0; }
.panel-head .eyebrow { margin-bottom: 5px; }
h2 { margin: 0; font: 500 24px/1.2 Georgia, serif; }
.text-button { border: 0; background: transparent; color: var(--green); font-weight: 700; }
.count-badge { background: var(--ink); color: white; border-radius: 99px; padding: 4px 9px; font-size: 11px; }
.empty-state { color: var(--muted); font-size: 13px; padding: 28px 22px; }
.application-row { display: grid; grid-template-columns: 1.4fr .8fr .75fr .55fr; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid #ecece6; }
.application-row:last-child { border-bottom: 0; }
.application-row:hover { background: #faf9f4; }
.application-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font: 600 15px Georgia, serif; }
.application-main b, .application-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.application-main b { font-size: 13px; }
.application-main small, .cell-label { color: var(--muted); font-size: 10px; margin-top: 4px; }
.application-row .amount { font: 500 15px Georgia, serif; }
.status { display: inline-flex; border-radius: 99px; padding: 6px 9px; background: #edf0eb; color: #51605b; font-size: 10px; text-transform: capitalize; white-space: nowrap; }
.status.internal_verification, .status.strong_match { background: #dceee7; color: #246452; }
.status.documents_pending, .status.needs_review { background: #f6e9c9; color: #876821; }
.status.submitted, .status.approved { background: #dfe7f3; color: #3d5e85; }
.status.rejected, .status.failed { background: #f5dfd9; color: #9a4937; }
.open-workspace { border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 750; }
.task-item { padding: 17px 20px; border-bottom: 1px solid #ecece6; }
.task-item:last-child { border: 0; }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-item b { font-size: 12px; }
.task-item p { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 7px 0 10px; }
.priority { color: #976131; background: #f8ebd3; border-radius: 99px; padding: 4px 7px; text-transform: uppercase; font-size: 8px; letter-spacing: .7px; }
.resolve-task { border: 0; background: transparent; padding: 0; color: var(--green); font-size: 10px; font-weight: 750; }
.integration-list { padding: 8px 20px 16px; }
.integration-item { display: grid; grid-template-columns: 9px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid #ecece6; }
.integration-item:last-child { border: 0; }
.mode-dot { width: 8px; height: 8px; border-radius: 50%; background: #c5c9c3; }
.mode-dot.live { background: #48a36b; box-shadow: 0 0 0 3px #dcf0e2; }
.integration-item b { display: block; font-size: 11px; }
.integration-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.mode-label { font-size: 8px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.audit-list { max-height: 340px; overflow: auto; }
.audit-row { display: grid; grid-template-columns: 150px 1fr 100px; gap: 16px; padding: 12px 22px; border-bottom: 1px solid #ecece6; font-size: 11px; }
.audit-row time, .audit-row small { color: var(--muted); }

/* Permission-first lead generation studio */
.acquisition-view { padding-top: 16px; }
.acquisition-head { align-items: center; }
.source-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 20px 0 18px; }
.source-grid article { display: flex; gap: 11px; align-items: center; min-height: 76px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.source-grid article > span, .source-token { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--mint); color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .8px; }
.source-grid b, .source-grid small { display: block; }
.source-grid b { font-size: 10px; }
.source-grid small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.acquisition-metrics { margin-top: 0; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.campaign-builder { grid-row: span 2; }
.campaign-builder .panel-head { background: #f3f7f3; }
.partner-chip, .mock-chip { display: inline-flex; align-items: center; border-radius: 99px; padding: 6px 9px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.partner-chip { background: var(--ink); color: white; }
.mock-chip { background: #f7e8c9; color: #7d5e20; }
.studio-form-body { padding: 22px; }
.studio-form-body label { color: #47534f; font-size: 10px; font-weight: 700; }
.studio-form-body input, .studio-form-body select, .studio-form-body textarea { margin-top: 7px; font-size: 11px; }
.import-label { display: block; margin-top: 20px; }
.import-help { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin: 8px 0 18px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.import-help .text-button { flex: 0 0 auto; padding: 0; font-size: 9px; }
.campaign-list { padding: 0; }
.campaign-item { padding: 16px 19px; border-bottom: 1px solid #ecece6; }
.campaign-item:last-child { border: 0; }
.campaign-title { display: flex; gap: 10px; align-items: center; }
.campaign-title b, .campaign-title small { display: block; }
.campaign-title b { font-size: 11px; }
.campaign-title small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.campaign-numbers { display: flex; gap: 16px; margin: 14px 0 11px; color: var(--muted); font-size: 8px; }
.campaign-numbers b { color: var(--ink); font-size: 11px; }
.prospects-panel { grid-column: 1 / -1; }
.prospect-list { padding: 0; }
.prospect-row { display: grid; grid-template-columns: 1.25fr .85fr auto auto .8fr; gap: 14px; align-items: center; min-height: 78px; padding: 13px 19px; border-bottom: 1px solid #ecece6; }
.prospect-row:last-child { border: 0; }
.prospect-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.prospect-main b, .prospect-main small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prospect-main b { font-size: 11px; }
.prospect-main small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.prospect-requirement { display: block; margin-top: 4px; font-size: 9px; }
.permission { border-radius: 99px; padding: 6px 8px; background: #f1f1ed; color: #5f6a66; font-size: 8px; white-space: nowrap; }
.permission.verified { background: #dceee7; color: #246452; }
.permission.review_required { background: #f6e9c9; color: #876821; }
.permission.blocked { background: #f5dfd9; color: #9a4937; }
.prospect-actions { display: flex; justify-content: end; gap: 7px; align-items: center; }
.prospect-actions .text-button { padding: 0; font-size: 8px; }
.status.interested, .status.converted { background: #dceee7; color: #246452; }
.status.not_interested { background: #eee; color: #69716e; }
.form-view { display: none; grid-template-columns: minmax(280px, .82fr) minmax(480px, 1.18fr); gap: clamp(35px, 7vw, 100px); align-items: start; max-width: 1180px; margin: 30px auto; }
.form-view.active { display: grid; }
.form-intro { position: sticky; top: 125px; }
.form-intro p:not(.eyebrow) { color: var(--muted); line-height: 1.7; max-width: 500px; }
.mini-steps { display: grid; grid-template-columns: auto auto 1fr auto auto 1fr auto auto; align-items: center; gap: 8px; margin-top: 38px; color: #8a948f; font-size: 9px; }
.mini-steps span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #cbd0c9; border-radius: 50%; }
.mini-steps span.done { color: white; background: var(--green); border-color: var(--green); }
.mini-steps i { height: 1px; background: #d1d4ce; }
.mini-steps b { font-weight: 600; white-space: nowrap; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 42px); }
.form-card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 30px; }
.form-card-head > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #bdd3c8; border-radius: 50%; color: var(--green); font: 600 14px Georgia, serif; }
.form-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.fields { display: grid; gap: 17px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.form-card > label, .fields label { font-size: 11px; font-weight: 700; color: #47534f; }
.form-card label input, .form-card label select { margin-top: 7px; font-weight: 450; }
label small { float: right; color: #939b97; font-weight: 450; }
fieldset { border: 0; padding: 0; margin: 28px 0; }
legend { font-size: 11px; font-weight: 700; color: #47534f; margin-bottom: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { border: 1px solid #d8dbd4; border-radius: 13px; padding: 15px 12px; cursor: pointer; position: relative; }
.choice:has(input:checked) { border-color: var(--green); background: #eff6f2; box-shadow: inset 0 0 0 1px var(--green); }
.choice input { position: absolute; opacity: 0; }
.choice-icon { display: block; color: var(--green); font-size: 20px; margin-bottom: 10px; }
.choice b, .choice small { display: block; float: none; }
.choice b { font-size: 11px; }
.choice small { font-size: 9px; margin-top: 4px; }
.money-input { display: flex; align-items: center; margin: 7px 0 24px; border: 1px solid #d7dad1; border-radius: 11px; background: #fff; }
.money-input span { padding-left: 14px; color: var(--green); font-weight: 700; }
.money-input input { border: 0; margin: 0 !important; box-shadow: none; }
.consent-box { display: flex; gap: 12px; align-items: start; background: #f3f5ef; border: 1px solid #dfe5dc; padding: 14px; border-radius: 12px; margin-bottom: 18px; cursor: pointer; }
.consent-box input { width: 17px; height: 17px; margin: 2px 0 0 !important; accent-color: var(--green); }
.consent-box span { flex: 1; }
.consent-box b, .consent-box small { display: block; float: none; }
.consent-box small { margin-top: 4px; line-height: 1.5; }
.form-result { font-size: 12px; margin-top: 12px; line-height: 1.5; }
.form-result.success { color: var(--green); }
.form-result.error { color: #a74432; }
.result-link { margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 750; }
.partner-promise { margin-top: 35px; display: flex; gap: 12px; align-items: center; border-top: 1px solid #d9dcd5; padding-top: 20px; }
.partner-promise > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green); background: var(--mint); border-radius: 50%; }
.partner-promise b, .partner-promise small { display: block; }
.partner-promise b { font-size: 12px; }
.partner-promise small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.workspace-dialog { border: 0; padding: 0; background: transparent; width: min(1040px, calc(100vw - 30px)); max-width: none; }
.workspace-dialog::backdrop { background: rgba(15,31,28,.66); backdrop-filter: blur(4px); }
.workspace-shell { background: var(--paper); border-radius: 20px; max-height: 90vh; overflow: auto; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.workspace-shell > header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: 25px 28px; background: rgba(246,244,237,.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.workspace-shell header p:last-child { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.icon-button { border: 0; width: 34px; height: 34px; border-radius: 50%; background: #e6e8e2; font-size: 21px; }
.workspace-body { padding: 24px 28px 32px; }
.workspace-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 14px; }
.summary-card small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.summary-card b { display: block; margin-top: 7px; font: 500 15px Georgia, serif; }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.workspace-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.workspace-card h3 { font: 500 17px Georgia, serif; margin: 0 0 13px; }
.workspace-card.full { grid-column: 1 / -1; }
.check-row, .doc-row, .match-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ecece6; font-size: 11px; }
.check-row:last-child, .doc-row:last-child, .match-row:last-child { border: 0; }
.check-row b, .doc-row b, .match-row b { text-transform: capitalize; }
.doc-row small, .match-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.tiny-button { border: 0; border-radius: 7px; background: var(--mint); color: var(--green); padding: 6px 8px; font-size: 9px; font-weight: 750; }
.upload-form { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; margin-top: 14px; }
.upload-form input, .upload-form select { padding: 9px; font-size: 10px; }
.profile-grid { display: grid; grid-template-columns: repeat(6, 1fr) auto; gap: 8px; align-items: end; }
.profile-grid label { color: var(--muted); font-size: 9px; }
.profile-grid input { margin-top: 5px; padding: 9px; font-size: 10px; }
.gate-box { padding: 14px; border-radius: 11px; background: #eef5ef; color: #3d6850; font-size: 11px; line-height: 1.5; }
.gate-box.blocked { background: #f7ece0; color: #7d5732; }
.gate-box ul { margin: 7px 0 0; padding-left: 18px; }
.action-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.gateway-workspace { background: linear-gradient(145deg,#f7fbf8,#eef5f0); border-color: #cfe0d6; }
.workspace-section-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.workspace-section-head h3 { margin-top: 4px; }
.human-chip { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.workspace-copy { max-width: 760px; margin: -4px 0 14px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.gateway-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gateway-provider { padding: 13px; border: 1px solid #d9e4dc; border-radius: 11px; background: rgba(255,255,255,.78); }
.gateway-provider.ready { border-color: #86b6a2; box-shadow: inset 0 0 0 1px #b7d8ca; }
.gateway-provider > div { display: flex; align-items: center; gap: 8px; }
.gateway-provider b { font-size: 10px; }
.gateway-provider small { display: block; margin-top: 7px; color: var(--green); font-size: 8px; font-weight: 750; }
.gateway-provider p { margin: 7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.gateway-session { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 11px; padding: 11px; border-radius: 10px; background: var(--ink); color: white; }
.gateway-session small, .gateway-session b { display: block; }
.gateway-session small { color: #9fb0aa; font-size: 7px; text-transform: uppercase; letter-spacing: .7px; }
.gateway-session b { margin-top: 5px; font-size: 9px; }
.gateway-empty { margin-top: 11px; padding: 11px; border: 1px dashed #cbd9d0; border-radius: 10px; color: var(--muted); font-size: 9px; }
.gateway-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gateway-actions select { min-width: 280px; flex: 1; padding: 10px; font-size: 10px; background: white; }
.gateway-actions .button { padding: 10px 13px; font-size: 10px; }
.gateway-note { margin: 9px 0 0; color: #6c7773; font-size: 8px; line-height: 1.5; }
.loading { padding: 50px; text-align: center; color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 13px 17px; color: white; background: var(--ink); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; z-index: 100; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Agent-first product experience */
.landing-view { margin-top: -46px; }
.hero { min-height: 650px; display: grid; grid-template-columns: .98fr 1.02fr; gap: clamp(42px, 7vw, 100px); align-items: center; padding: 70px 0 78px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 -5vw auto 42%; height: 580px; background: radial-gradient(circle, rgba(37,124,99,.12), transparent 64%); pointer-events: none; }
.hero-copy, .workflow-console { position: relative; z-index: 1; }
.product-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 28px; padding: 8px 12px; border: 1px solid #d4ddd6; border-radius: 999px; background: rgba(255,255,255,.76); color: #53645f; font-size: 11px; font-weight: 650; }
.product-pill span, .trust-row i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }
.hero h1 { max-width: 700px; font: 650 clamp(52px, 6vw, 82px)/.98 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -4.5px; }
.hero h1 em { font-style: normal; color: var(--green-2); }
.hero-lede { max-width: 650px; margin: 27px 0 0; color: #5d6b67; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin: 32px 0 18px; }
.button.large { padding: 15px 21px; border-radius: 10px; font-size: 13px; }
.button.ghost { border: 1px solid #d2d9d3; background: #fff; color: var(--ink); box-shadow: 0 7px 22px rgba(28,49,43,.04); }
.button.lime { background: var(--lime); color: #1b2d29; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dce2dc; background: rgba(255,255,255,.7); border-radius: 999px; padding: 7px 10px; color: #65716d; font-size: 10px; }
.workflow-console { border: 1px solid #dce3dd; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 30px 90px rgba(28,64,53,.12); overflow: hidden; }
.console-bar { height: 54px; display: flex; align-items: center; gap: 13px; padding: 0 20px; border-bottom: 1px solid #e4e8e4; color: #71807b; font-size: 10px; }
.console-bar > b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; }
.console-dots { display: flex; gap: 5px; }
.console-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e69e91; }
.console-dots i:nth-child(2) { background: #eadc73; }
.console-dots i:nth-child(3) { background: #7aa998; }
.live-label { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.live-label i { width: 7px; height: 7px; border-radius: 50%; background: #62a889; box-shadow: 0 0 0 4px #e4f1eb; }
.case-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 22px 24px 17px; }
.case-avatar, .mini-avatar { display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 750; }
.case-avatar { width: 46px; height: 46px; }
.case-head small, .case-head strong { display: block; }
.case-head small { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.case-head strong { font-size: 14px; }
.amount-chip { border: 1px solid #dbe2dc; border-radius: 999px; padding: 8px 11px; background: #f9fbf9; color: #42544f; font-size: 10px; }
.workflow-list { margin: 0; padding: 0 24px 17px; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; min-height: 67px; padding: 9px 12px; color: #8b9793; border-top: 1px solid #edf0ed; }
.workflow-list li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f2f4f2; font-size: 9px; font-weight: 750; }
.workflow-list li b, .workflow-list li small { display: block; }
.workflow-list li b { color: #68736f; font-size: 12px; }
.workflow-list li small { margin-top: 4px; font-size: 9px; }
.workflow-list li em { padding: 5px 8px; border-radius: 999px; background: #f2f4f2; font-size: 8px; font-style: normal; }
.workflow-list li.complete { color: #5b746b; }
.workflow-list li.complete > span { background: #78a696; color: white; }
.workflow-list li.active { margin: 0 -1px; border: 1px solid #cbdcd4; border-radius: 11px; background: #f4f8f5; color: var(--green); }
.workflow-list li.active b { color: var(--ink); }
.workflow-list li.active > span { background: var(--green); color: #fff; }
.workflow-list li.active em { background: var(--lime); color: #31433e; }
.console-foot { min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 24px; border-top: 1px solid #e4e8e4; color: #75817d; font-size: 9px; }
.console-foot span:first-child { display: flex; align-items: center; gap: 8px; color: var(--green); }
.pulse-bars { width: 34px; height: 12px; background: repeating-linear-gradient(90deg,var(--green) 0 2px,transparent 2px 4px); mask-image: linear-gradient(90deg,transparent,#000 30%,#000 70%,transparent); }
.proof-strip { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid #dde3dd; background: #fff; border-radius: 15px; overflow: hidden; }
.proof-strip div { min-height: 108px; display: flex; flex-direction: column; justify-content: center; padding: 20px 26px; border-right: 1px solid #e3e7e3; }
.proof-strip div:last-child { border: 0; }
.proof-strip strong { font-size: 24px; letter-spacing: -1px; }
.proof-strip span { margin-top: 6px; color: var(--muted); font-size: 10px; }
.landing-section { padding: 130px 0 120px; }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading h2, .landing-cta h2 { margin: 0; font: 650 clamp(36px,4vw,58px)/1.04 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: -2.7px; }
.section-heading > p:last-child { max-width: 620px; margin: 20px 0 0; color: var(--muted); line-height: 1.65; }
.engine-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid #dfe5df; border-radius: 16px; background: #fff; overflow: hidden; }
.engine-grid article { min-height: 330px; padding: 25px; border-right: 1px solid #e4e8e4; position: relative; }
.engine-grid article:last-child { border: 0; }
.engine-grid article > span { color: #8a9692; font-size: 9px; letter-spacing: 1px; }
.feature-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 65px 0 25px; border-radius: 50%; background: var(--mint); color: var(--green); font-size: 20px; }
.engine-grid h3, .control-card h3 { margin: 0; font-size: 20px; letter-spacing: -.5px; }
.engine-grid p, .control-card p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.partner-value { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px,8vw,120px); align-items: center; margin: 0 -4vw; padding: 110px 4vw; border-radius: 24px; background: var(--ink); color: white; overflow: hidden; }
.section-heading.light { margin: 0; }
.section-heading.light .eyebrow { color: #8ed1ba; }
.section-heading.light > p:last-child { color: #aebbb7; }
.value-board { border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.25); overflow: hidden; }
.value-tabs { display: flex; gap: 28px; height: 54px; align-items: center; padding: 0 20px; border-bottom: 1px solid #e5e9e5; color: #85908d; font-size: 10px; }
.value-tabs span.active { color: var(--green); font-weight: 750; }
.value-row { display: grid; grid-template-columns: 38px 1.1fr .7fr .7fr; gap: 12px; align-items: center; min-height: 80px; padding: 12px 20px; border-bottom: 1px solid #edf0ed; }
.value-row:last-child { border: 0; }
.mini-avatar { width: 34px; height: 34px; font-size: 10px; }
.value-row b, .value-row small { display: block; }
.value-row b { font-size: 11px; }
.value-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.value-row strong { color: #4e625c; font-size: 9px; text-align: right; }
.progress { height: 6px; border-radius: 999px; background: #e8ede9; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green-2); border-radius: inherit; }
.control-section { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding: 100px 0; }
.control-card { min-height: 230px; padding: 26px; border: 1px solid #dfe5df; border-radius: 15px; background: #fff; }
.control-card > span { display: inline-block; margin-bottom: 58px; color: var(--green); font-size: 9px; letter-spacing: 1px; }
.landing-cta { text-align: center; padding: 92px 30px; border-radius: 22px; background: linear-gradient(135deg,#e9f3ed,#f6f9eb); }
.landing-cta .eyebrow { color: var(--green); }
.landing-cta h2 { max-width: 780px; margin: auto; }
.landing-cta > p:not(.eyebrow) { margin: 22px auto 28px; color: var(--muted); }
.cases-head { padding-top: 16px; }
.site-footer { max-width: 1460px; margin: 0 auto; padding: 30px clamp(20px,4vw,64px) 45px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border-top: 1px solid #dfe4df; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { color: var(--ink); font-family: Georgia,serif; }
.footer-brand small { margin-top: 4px; font-size: 9px; }
.site-footer > div:nth-child(2) { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.site-footer button { border: 0; background: transparent; color: #53625d; font-size: 10px; }
.site-footer > p { grid-column: 1/-1; margin: 0; font-size: 9px; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .workflow-console { max-width: 700px; }
  .engine-grid { grid-template-columns: 1fr 1fr; }
  .engine-grid article:nth-child(2) { border-right: 0; }
  .engine-grid article:nth-child(-n+2) { border-bottom: 1px solid #e4e8e4; }
  .partner-value { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid #e3e7e3; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel.wide { grid-column: auto; }
  .form-view.active { grid-template-columns: 1fr; }
  .form-intro { position: static; }
  .head-actions { flex-direction: column; align-items: stretch; }
  .source-grid { grid-template-columns: repeat(3, 1fr); }
  .studio-grid { grid-template-columns: 1fr; }
  .campaign-builder { grid-row: auto; }
  .prospects-panel { grid-column: auto; }
  .prospect-row { grid-template-columns: 1.2fr .8fr auto; }
  .prospect-row > :nth-child(2), .prospect-row > .permission { display: none; }
}
@media (max-width: 700px) {
  .topbar { height: auto; min-height: 68px; flex-wrap: wrap; padding: 12px 18px; gap: 8px; }
  .brand { min-width: 0; margin-right: auto; }
  .safety-pill { display: none; }
  .header-cta { display: none; }
  nav { order: 3; width: 100%; height: 42px; overflow-x: auto; }
  .nav-link { flex: 1; min-width: max-content; }
  main { padding: 28px 16px 60px; }
  .page-head { align-items: start; flex-direction: column; }
  h1 { font-size: 43px; letter-spacing: -1.5px; }
  .landing-view { margin-top: -28px; }
  .hero { min-height: 0; padding: 48px 0 60px; gap: 38px; }
  .hero::before { display: none; }
  .hero h1 { font-size: 48px; letter-spacing: -3px; }
  .hero-lede { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .trust-row { display: grid; }
  .workflow-console { border-radius: 13px; }
  .case-head { padding: 17px 15px; }
  .workflow-list { padding: 0 14px 14px; }
  .workflow-list li { grid-template-columns: 30px 1fr auto; padding: 8px 5px; }
  .console-foot { padding: 0 15px; }
  .proof-strip, .engine-grid, .control-section { grid-template-columns: 1fr; }
  .proof-strip div { border-right: 0; border-bottom: 1px solid #e3e7e3; }
  .engine-grid article { border-right: 0; border-bottom: 1px solid #e4e8e4; min-height: 250px; }
  .feature-icon { margin-top: 38px; }
  .landing-section { padding: 82px 0; }
  .section-heading h2, .landing-cta h2 { font-size: 38px; letter-spacing: -2px; }
  .partner-value { margin: 0; padding: 64px 18px; gap: 36px; }
  .value-row { grid-template-columns: 34px 1fr auto; }
  .value-row .progress { display: none; }
  .control-section { padding: 65px 0; }
  .control-card { min-height: 200px; }
  .landing-cta { padding: 62px 18px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > div:nth-child(2) { justify-content: start; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .application-row { grid-template-columns: 1fr auto; }
  .application-row > :nth-child(2), .application-row > :nth-child(3) { display: none; }
  .fields.two, .choice-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 17px; }
  .workspace-summary, .workspace-grid { grid-template-columns: 1fr 1fr; }
  .workspace-card.full { grid-column: 1 / -1; }
  .upload-form { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .gateway-providers, .gateway-session { grid-template-columns: 1fr; }
  .gateway-actions { display: grid; grid-template-columns: 1fr; }
  .gateway-actions select { min-width: 0; }
  .audit-row { grid-template-columns: 1fr; gap: 3px; }
  .source-grid { grid-template-columns: 1fr 1fr; }
  .prospect-row { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .prospect-actions { justify-content: start; }
}

/* 2026 workspace foundation and guided partner journey */
:root {
  --ink: #102c26;
  --ink-2: #1e4038;
  --muted: #62736e;
  --paper: #f5f6f1;
  --paper-deep: #ecefe8;
  --card: #fffefb;
  --line: #d9dfd8;
  --line-strong: #c5cec6;
  --green: #145f4e;
  --green-2: #18725e;
  --mint: #e5f0e9;
  --lime: #d8eb67;
  --warm: #f4eee2;
  --shadow: 0 22px 70px rgba(22, 52, 44, .1);
  --shadow-soft: 0 10px 34px rgba(22, 52, 44, .065);
  --display: Georgia, "Times New Roman", serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-family: var(--body);
}

[hidden] { display: none !important; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 88% 2%, rgba(102, 151, 129, .11), transparent 25rem),
    linear-gradient(180deg, #fafaf6 0, var(--paper) 38rem);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: var(--body); }
button:active { transform: translateY(1px) scale(.99); }
:focus-visible { outline: 3px solid rgba(24, 114, 94, .3); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 120; transform: translateY(-160%); padding: 11px 15px; border-radius: 9px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.topbar {
  height: 80px;
  gap: 22px;
  border-bottom-color: rgba(20, 48, 41, .09);
  background: rgba(250, 250, 246, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .75);
}
.brand { min-width: auto; }
.brand strong { font-family: var(--display); font-size: 23px; }
.brand-mark { border-radius: 13px 18px 13px 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.workspace-identity { display: grid; gap: 2px; min-width: 112px; padding: 8px 12px; border-left: 1px solid var(--line); }
.workspace-identity span { color: #81908b; font-size: 8px; font-weight: 750; letter-spacing: 1.2px; text-transform: uppercase; }
.workspace-identity strong { font-size: 11px; letter-spacing: -.1px; }
.topbar nav { margin: 0 auto; }
.nav-link { min-height: 44px; align-self: center; border-radius: 9px; padding: 0 13px; font-size: 12px; transition: color .2s ease, background .2s ease; }
.nav-link:hover { color: var(--ink); background: rgba(224, 233, 225, .6); transform: none; }
.nav-link.active { background: #e8eee8; color: var(--ink); }
.nav-link.active::after { display: none; }
.header-cta { min-height: 44px; margin-left: 0; border-radius: 9px; box-shadow: 0 9px 26px rgba(16,44,38,.14); }
.mobile-nav { display: none; }

main { max-width: 1500px; padding-top: 52px; }
.view { animation: workspace-appear .24s cubic-bezier(.2,.7,.3,1); }
@keyframes workspace-appear { from { opacity: 0; transform: translateY(8px); } }
.page-head h1, .onboarding-context h1 { text-wrap: balance; }
.lede, .hero-lede, .step-copy { text-wrap: pretty; }
.panel { border-color: rgba(194, 204, 196, .8); border-radius: 18px; background: rgba(255, 254, 251, .93); box-shadow: 0 1px 0 rgba(255,255,255,.9); }
.panel-head { padding: 23px 24px 17px; }
.metric { border-color: rgba(202, 210, 202, .86); border-radius: 16px; background: rgba(255,254,251,.9); }
.metric strong, .amount, .summary-card b { font-variant-numeric: tabular-nums; }
.button { min-height: 42px; border-radius: 9px; transition: transform .16s ease, background .2s ease, box-shadow .2s ease; }
.button.primary:hover { background: #0f5143; box-shadow: 0 10px 24px rgba(13,102,88,.2); }
.button.tertiary { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.button.tertiary:hover { background: #f0f2ec; }
.text-button, .tiny-button, .open-workspace, .resolve-task { min-height: 32px; }
.tiny-button { padding: 8px 10px; }
.empty-state { line-height: 1.55; }

/* Lead desk */
.acquisition-view { padding-top: 8px; }
.acquisition-head { margin-bottom: 24px; }
.source-grid { grid-template-columns: 1.3fr 1.3fr .9fr .9fr .9fr; gap: 12px; }
.source-grid article { min-height: 88px; border-color: rgba(198,207,199,.86); border-radius: 15px; background: rgba(255,254,251,.9); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.source-grid article:hover { transform: translateY(-2px); border-color: #abc0b4; box-shadow: var(--shadow-soft); }
.source-grid article:first-child, .source-grid article:nth-child(2) { background: linear-gradient(145deg, #fffefa, #eef4ee); }
.source-grid b { font-size: 11px; }
.source-grid small { font-size: 9px; }
.studio-grid { gap: 18px; }
.campaign-builder .panel-head { background: linear-gradient(135deg, #edf4ee, #f8f8f3); }
.studio-form-body { padding: 25px; }
.campaign-item, .prospect-row, .voice-session-row { transition: background .18s ease; }
.campaign-item:hover, .prospect-row:hover, .voice-session-row:hover { background: #fafbf7; }
.partner-chip, .mock-chip { border-radius: 7px; }
.permission, .status, .priority, .count-badge { border-radius: 7px; }

/* Guided borrower intake */
.partner-onboarding.active { display: block; }
.onboarding-shell { display: grid; grid-template-columns: minmax(280px, .74fr) minmax(560px, 1.26fr); gap: clamp(36px, 7vw, 108px); align-items: start; max-width: 1220px; margin: 22px auto 30px; }
.onboarding-context { position: sticky; top: 120px; padding: 24px 0; }
.onboarding-context h1 { margin: 0; font: 500 clamp(46px, 5vw, 66px)/1 var(--display); letter-spacing: -2.6px; }
.onboarding-context h1 em { color: var(--green); font-weight: 400; }
.onboarding-context .lede { margin-top: 23px; font-size: 14px; }
.journey-preview { display: grid; gap: 0; margin: 38px 0 0; padding: 0; list-style: none; }
.journey-preview li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; min-height: 76px; position: relative; color: #84908c; }
.journey-preview li:not(:last-child)::after { content: ""; position: absolute; top: 31px; bottom: 4px; left: 15px; width: 1px; background: #d5dbd5; }
.journey-preview li > span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #ced6cf; border-radius: 10px; background: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; }
.journey-preview li b, .journey-preview li small { display: block; }
.journey-preview li b { color: #52625d; font-size: 12px; }
.journey-preview li small { max-width: 300px; margin-top: 5px; font-size: 10px; line-height: 1.5; }
.journey-preview li.current > span { border-color: var(--green); background: var(--green); color: #fff; }
.journey-preview li.current b { color: var(--ink); }
.partner-assurance { display: flex; gap: 13px; align-items: start; margin-top: 20px; padding: 17px; border: 1px solid #d8dfd7; border-radius: 15px; background: rgba(255,255,255,.64); }
.partner-assurance > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--warm); color: #8b682a; font-family: var(--display); }
.partner-assurance b, .partner-assurance small { display: block; }
.partner-assurance b { font-size: 11px; }
.partner-assurance small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.guided-form { overflow: hidden; border: 1px solid rgba(187,199,189,.9); border-radius: 23px; background: rgba(255,254,251,.97); box-shadow: var(--shadow); }
.guided-form-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 28px clamp(24px,4vw,40px) 23px; border-bottom: 1px solid #e3e7e1; background: linear-gradient(140deg, rgba(237,245,239,.96), rgba(255,254,250,.95)); }
.guided-form-head p { margin: 0 0 7px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.guided-form-head h2 { font: 500 clamp(25px,3vw,32px)/1.15 var(--display); letter-spacing: -.8px; }
.draft-chip { align-self: start; padding: 7px 9px; border: 1px solid #d4ddd5; border-radius: 7px; color: #6f7f79; background: rgba(255,255,255,.72); font-size: 8px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.step-progress { grid-column: 1/-1; height: 3px; margin-top: 12px; overflow: hidden; border-radius: 3px; background: #dfe5df; }
.step-progress i { display: block; width: 33.333%; height: 100%; border-radius: inherit; background: var(--green); transition: width .3s cubic-bezier(.2,.7,.3,1); }
.guided-form-body { min-height: 430px; padding: 34px clamp(24px,4vw,40px) 38px; }
.form-step { animation: step-enter .24s cubic-bezier(.2,.7,.3,1); }
@keyframes step-enter { from { opacity: 0; transform: translateX(8px); } }
.step-copy { max-width: 590px; margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.spacious-fields { gap: 22px 18px; }
.guided-form label, .guided-form legend { color: #42524d; font-size: 11px; font-weight: 750; }
.guided-form input, .guided-form select { min-height: 49px; margin-top: 8px; border-color: #cfd7cf; border-radius: 10px; background: #fff; font-size: 13px; }
.guided-form label > small { margin-top: 1px; }
.field-help { float: none; display: block; margin: 6px 2px 0 !important; font-size: 9px; }
.guided-form fieldset { margin: 0 0 28px; }
.guided-form legend { margin-bottom: 12px; }
.product-choices { gap: 12px; }
.product-choices .choice { min-height: 150px; display: flex; flex-direction: column; border-color: #d4dbd4; border-radius: 14px; background: #fff; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.product-choices .choice:hover { transform: translateY(-2px); border-color: #aebfb4; }
.product-choices .choice:has(input:checked) { border-color: var(--green); background: #edf5f0; box-shadow: inset 0 0 0 1px var(--green); }
.product-choices .choice-icon { margin-bottom: auto; }
.product-choices .choice small { margin-top: 7px; line-height: 1.4; }
.amount-label { display: block; }
.guided-form .money-input { margin-bottom: 19px; }
.guided-form .money-input input { min-height: 48px; }
.information-note { display: flex; gap: 12px; align-items: start; padding: 15px 16px; border-radius: 13px; background: #edf3ee; color: #3f5d52; }
.information-note > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--green); color: white; font-family: var(--display); }
.information-note p { margin: 0; }
.information-note b, .information-note small { display: block; }
.information-note b { font-size: 10px; }
.information-note small { margin-top: 4px; color: #64756f; font-size: 9px; line-height: 1.5; }
.muted-note { margin-top: 15px; background: #f4f3ed; }
.muted-note > span { background: #6d7f78; }
.borrower-review { overflow: hidden; margin-bottom: 18px; border: 1px solid #d8ded7; border-radius: 15px; background: #fbfcf8; }
.review-primary { display: flex; align-items: center; gap: 13px; padding: 18px; border-bottom: 1px solid #e1e5df; }
.review-primary .avatar { width: 44px; height: 44px; border-radius: 13px; }
.review-primary small, .review-primary b, .review-primary p { display: block; }
.review-primary small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; }
.review-primary b { margin-top: 4px; font-size: 14px; }
.review-primary p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.borrower-review dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; }
.borrower-review dl > div { padding: 15px 17px; border-right: 1px solid #e1e5df; }
.borrower-review dl > div:last-child { border: 0; }
.borrower-review dt { color: #7a8984; font-size: 8px; letter-spacing: .7px; text-transform: uppercase; }
.borrower-review dd { margin: 5px 0 0; font-size: 10px; font-weight: 750; }
.consent-review { margin-top: 0; padding: 17px; border-radius: 14px; }
.consent-review input { min-height: 18px; margin-top: 1px; }
.guided-form-actions { min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 16px clamp(24px,4vw,40px); border-top: 1px solid #e3e7e1; background: #f7f8f4; }
.guided-form-actions > span { margin: 0 auto 0 0; color: #76847f; font-size: 10px; }
.guided-form-actions .button { min-width: 112px; }
.guided-form .form-result { margin: 0; }
.guided-form .form-result:not(:empty) { padding: 15px; border-radius: 12px; }
.guided-form.is-complete .guided-form-body { min-height: 0; padding: clamp(38px,6vw,72px); }
.guided-form.is-complete .guided-form-head { display: none; }
.guided-form.is-complete .form-result.success { display: grid; justify-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: center; }
.success-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 16px; background: var(--green); color: #fff; font-size: 24px; }
.guided-form.is-complete .form-result .eyebrow { margin-bottom: 8px; color: var(--green); }
.guided-form.is-complete .form-result > strong { font: 500 clamp(27px,4vw,38px)/1.1 var(--display); }
.guided-form.is-complete .form-result > p:not(.eyebrow) { max-width: 500px; margin: 12px auto 24px; color: var(--muted); line-height: 1.6; }
.success-actions { display: flex; gap: 10px; }

@media (max-width: 1080px) {
  .workspace-identity { display: none; }
  .topbar { gap: 12px; }
  .onboarding-shell { grid-template-columns: .72fr 1.28fr; gap: 42px; }
  .source-grid { grid-template-columns: repeat(3,1fr); }
  .source-grid article:first-child, .source-grid article:nth-child(2) { grid-column: span 1; }
}

@media (max-width: 820px) {
  .onboarding-shell { grid-template-columns: 1fr; max-width: 700px; margin-top: 0; }
  .onboarding-context { position: static; padding: 0; }
  .journey-preview { display: none; }
  .partner-assurance { max-width: 560px; }
}

@media (min-width: 701px) and (max-width: 900px) {
  body { padding-bottom: 76px; }
  .topbar { height: 68px; padding: 10px 22px; }
  .topbar > nav { display: none; }
  .header-cta { margin-left: auto; min-height: 40px; padding: 9px 13px; font-size: 10px; }
  .mobile-nav { position: fixed; z-index: 90; right: 18px; bottom: 14px; left: 18px; height: 64px; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; padding: 6px; border: 1px solid rgba(197,206,198,.9); border-radius: 17px; background: rgba(255,254,251,.96); box-shadow: 0 15px 45px rgba(17,42,35,.18); backdrop-filter: blur(16px); }
  .mobile-nav-link { min-width: 0; min-height: 50px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 11px; background: transparent; color: #74827d; }
  .mobile-nav-link span { font-size: 17px; line-height: 1; }
  .mobile-nav-link small { font-size: 8px; font-weight: 750; }
  .mobile-nav-link.active { color: var(--green); background: #ecf2ed; }
  .mobile-nav-primary { width: 54px; height: 54px; justify-self: center; margin-top: -20px; border: 5px solid var(--paper); border-radius: 17px; background: var(--ink); color: white; box-shadow: 0 10px 25px rgba(16,44,38,.22); }
  .mobile-nav-primary.active { background: var(--green); color: #fff; }
  .site-footer { padding-bottom: 92px; }
}

@media (max-width: 700px) {
  body { padding-bottom: 74px; }
  .topbar { min-height: 66px; height: 66px; padding: 10px 16px; flex-wrap: nowrap; }
  .topbar > nav { display: none; }
  .topbar .brand small { display: none; }
  .topbar .brand strong { font-size: 21px; }
  .topbar .brand-mark { width: 34px; height: 34px; }
  .header-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 12px; font-size: 10px; }
  .mobile-nav { position: fixed; z-index: 90; right: 10px; bottom: max(9px, env(safe-area-inset-bottom)); left: 10px; height: 64px; display: grid; grid-template-columns: repeat(5,1fr); align-items: center; padding: 6px; border: 1px solid rgba(197,206,198,.9); border-radius: 17px; background: rgba(255,254,251,.95); box-shadow: 0 15px 45px rgba(17,42,35,.18); backdrop-filter: blur(16px); overflow: visible; }
  .mobile-nav-link { min-width: 0; min-height: 50px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 11px; background: transparent; color: #74827d; }
  .mobile-nav-link span { font-size: 17px; line-height: 1; }
  .mobile-nav-link small { font-size: 8px; font-weight: 750; }
  .mobile-nav-link.active { color: var(--green); background: #ecf2ed; }
  .mobile-nav-primary { width: 54px; height: 54px; justify-self: center; margin-top: -20px; border: 5px solid var(--paper); border-radius: 17px; background: var(--ink); color: white; box-shadow: 0 10px 25px rgba(16,44,38,.22); }
  .mobile-nav-primary.active { background: var(--green); color: #fff; }
  main { padding: 28px 16px 48px; }
  .source-grid { display: flex; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .source-grid article { min-width: 210px; scroll-snap-align: start; }
  .source-grid article:first-child, .source-grid article:nth-child(2) { grid-column: auto; }
  .onboarding-context h1 { font-size: 44px; letter-spacing: -2px; }
  .onboarding-context .lede { margin-top: 18px; }
  .partner-assurance { display: none; }
  .guided-form { border-radius: 18px; }
  .guided-form-head { padding: 23px 20px 19px; }
  .guided-form-head h2 { font-size: 25px; }
  .guided-form-body { min-height: 0; padding: 26px 20px 30px; }
  .spacious-fields, .product-choices { grid-template-columns: 1fr; }
  .product-choices .choice { min-height: 112px; }
  .product-choices .choice-icon { margin-bottom: 20px; }
  .borrower-review dl { grid-template-columns: 1fr; }
  .borrower-review dl > div { border-right: 0; border-bottom: 1px solid #e1e5df; }
  .guided-form-actions { position: sticky; bottom: 0; min-height: 72px; padding: 13px 20px; }
  .guided-form-actions > span { display: none; }
  .guided-form-actions .button { flex: 1; min-height: 46px; }
  .guided-form-actions .button[hidden] { display: none !important; }
  .guided-form.is-complete .guided-form-body { padding: 46px 24px; }
  .success-actions { width: 100%; flex-direction: column; }
  .success-actions .button { width: 100%; }
  .toast { right: 14px; bottom: 88px; left: 14px; text-align: center; }
}

/* Stage-based case workspace and review dialogs */
.workspace-dialog { width: min(1180px, calc(100vw - 28px)); max-height: 94dvh; }
.workspace-shell { max-height: 94dvh; border: 1px solid rgba(190,202,193,.9); border-radius: 21px; background: var(--paper); box-shadow: 0 35px 110px rgba(12,38,31,.26); }
.workspace-shell > header { min-height: 86px; align-items: center; padding: 20px 28px; background: rgba(250,250,246,.95); }
.workspace-shell > header h2 { font: 500 26px/1.1 var(--display); letter-spacing: -.7px; }
.workspace-body { padding: 22px 28px 42px; }
.case-stage-rail { display: grid; grid-template-columns: repeat(6,1fr); margin: 0 0 18px; padding: 0; overflow: hidden; border: 1px solid #d8ded7; border-radius: 14px; background: rgba(255,254,251,.9); list-style: none; }
.case-stage-rail li { min-height: 64px; display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-right: 1px solid #e1e5df; color: #87928f; }
.case-stage-rail li:last-child { border: 0; }
.case-stage-rail span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #d0d7d1; border-radius: 8px; background: #f8f8f4; font-size: 8px; font-weight: 800; }
.case-stage-rail b { font-size: 9px; line-height: 1.3; }
.case-stage-rail li.complete { color: #527066; }
.case-stage-rail li.complete span { border-color: #84a998; background: #dfece5; color: var(--green); }
.case-stage-rail li.current { background: #edf4ef; color: var(--ink); }
.case-stage-rail li.current span { border-color: var(--green); background: var(--green); color: #fff; }
.case-command { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 18px; padding: 25px 27px; overflow: hidden; border-radius: 17px; background: var(--ink); color: #fff; position: relative; }
.case-command::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -130px; border-radius: 50%; background: rgba(216,235,103,.09); }
.case-command .next-action-copy, .case-command > button, .case-command dl { position: relative; z-index: 1; }
.case-command .eyebrow { margin-bottom: 7px; color: #9ed0bb; }
.case-command h3 { margin: 0; font: 500 clamp(23px,3vw,31px)/1.1 var(--display); letter-spacing: -.7px; }
.case-command .next-action-copy > p:last-child { max-width: 650px; margin: 9px 0 0; color: #b9c8c3; font-size: 11px; line-height: 1.55; }
.case-command > .button { background: var(--lime); color: #213b34; box-shadow: none; }
.case-command dl { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,1fr); margin: 4px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.case-command dl > div { padding-right: 18px; }
.case-command dt { color: #8fa39c; font-size: 8px; letter-spacing: .8px; text-transform: uppercase; }
.case-command dd { margin: 5px 0 0; font-size: 10px; font-weight: 750; }
.case-sections { display: grid; gap: 15px; }
.case-section { scroll-margin-top: 14px; overflow: hidden; border: 1px solid #d8ded7; border-radius: 17px; background: rgba(255,254,251,.96); }
.case-section > header { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 23px; border-bottom: 1px solid #e1e6df; background: #fbfcf8; }
.case-section > header .eyebrow { margin-bottom: 5px; }
.case-section > header h3 { margin: 0; font: 500 21px/1.2 var(--display); }
.case-section > header p:last-child { max-width: 690px; margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.section-state { flex: 0 0 auto; padding: 7px 9px; border-radius: 7px; background: #eee; color: #68736f; font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.section-state.complete { background: #dfece5; color: var(--green); }
.section-state.current { background: #f6e9c9; color: #80601f; }
.case-section .profile-grid { grid-template-columns: repeat(3,1fr); gap: 14px; padding: 22px; align-items: end; }
.case-section .profile-grid label { font-size: 9px; font-weight: 750; }
.case-section .profile-grid input { min-height: 43px; margin-top: 7px; }
.case-section .profile-grid .button { align-self: end; }
.document-list, .verification-list, .fit-list { padding: 0 22px; }
.document-card { display: grid; grid-template-columns: minmax(250px,1.1fr) minmax(130px,.45fr) minmax(250px,.9fr); gap: 16px; align-items: center; min-height: 82px; padding: 13px 0; border-bottom: 1px solid #e7eae5; }
.document-card:last-child { border-bottom: 0; }
.document-type { display: flex; align-items: center; gap: 12px; min-width: 0; }
.document-type > span { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: #edf3ee; color: var(--green); font-size: 8px; font-weight: 850; letter-spacing: .8px; }
.document-type b, .document-type small, .document-state small { display: block; }
.document-type b { font-size: 11px; }
.document-type small, .document-state small { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.document-state { min-width: 0; }
.document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; }
.document-actions .text-button { padding: 5px; font-size: 9px; }
.danger-text { color: #a04838; }
.case-section .upload-form { grid-template-columns: 170px minmax(260px,1fr) auto; align-items: end; margin: 0; padding: 18px 22px; border-top: 1px solid #e1e6df; background: #f7f8f4; }
.case-section .upload-form label { color: var(--muted); font-size: 9px; font-weight: 750; }
.case-section .upload-form input, .case-section .upload-form select { min-height: 42px; margin-top: 6px; background: #fff; }
.secondary-disclosure { border-top: 1px solid #e1e6df; }
.secondary-disclosure summary { min-height: 50px; display: flex; align-items: center; padding: 0 22px; color: var(--green); cursor: pointer; font-size: 10px; font-weight: 750; list-style: none; }
.secondary-disclosure summary::after { content: "+"; margin-left: auto; font-size: 17px; font-weight: 400; }
.secondary-disclosure[open] summary::after { content: "−"; }
.disclosure-body { padding: 20px 22px; border-top: 1px solid #e1e6df; background: linear-gradient(145deg,#f7fbf8,#eef5f0); }
.disclosure-body > p { margin: 0 0 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.verification-row { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 12px; align-items: center; min-height: 70px; border-bottom: 1px solid #e7eae5; }
.verification-row:last-child { border: 0; }
.verification-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #eef0ec; color: #77827e; font-weight: 850; }
.verification-icon.passed, .verification-icon.waived { background: #dfece5; color: var(--green); }
.verification-icon.failed { background: #f5dfd9; color: #9a4937; }
.verification-row b, .verification-row small { display: block; }
.verification-row b { font-size: 10px; }
.verification-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.verification-row .text-button { font-size: 9px; }
.fit-card { display: grid; grid-template-columns: 62px 1fr auto; gap: 15px; align-items: start; min-height: 102px; padding: 17px 0; border-bottom: 1px solid #e7eae5; }
.fit-card:last-child { border: 0; }
.fit-score { width: 57px; height: 57px; display: grid; place-items: center; align-content: center; border-radius: 15px; background: #eef2ed; }
.fit-card.top-fit .fit-score { background: var(--ink); color: #fff; }
.fit-score strong { font: 500 22px/1 var(--display); font-variant-numeric: tabular-nums; }
.fit-score small { margin-top: 3px; color: #7a8883; font-size: 7px; }
.fit-card.top-fit .fit-score small { color: #9fb1aa; }
.fit-detail > span { color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.fit-detail > b, .fit-detail > small { display: block; }
.fit-detail > b { margin-top: 4px; font-size: 12px; }
.fit-detail > small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.fit-detail ul { margin: 9px 0 0; padding-left: 16px; color: #63706c; font-size: 8px; line-height: 1.55; }
.composed-empty { display: flex; align-items: center; gap: 13px; padding: 24px 0; color: var(--muted); }
.composed-empty > span { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border: 1px dashed #bdc9c0; border-radius: 12px; color: var(--green); font-size: 8px; font-weight: 850; }
.composed-empty b { color: var(--ink); font-size: 11px; }
.composed-empty p { margin: 4px 0 0; font-size: 9px; }
.submission-section .gate-box { margin: 20px 22px 0; }
.submission-section .gate-box p { margin: 6px 0 0; }
.submission-section .gate-box ul { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 22px; padding: 0; list-style: none; }
.submission-section .gate-box li { display: flex; gap: 7px; }
.lender-state { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 20px 22px 0; padding: 16px; border-radius: 13px; background: var(--ink); color: #fff; }
.lender-state small, .lender-state b { display: block; }
.lender-state small { color: #91a49d; font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.lender-state b { margin-top: 5px; font-size: 10px; }
.submission-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 22px 22px; }
.submission-actions .button { font-size: 10px; }

.action-dialog { width: min(520px, calc(100vw - 28px)); max-width: none; padding: 0; border: 0; border-radius: 18px; background: transparent; }
.action-dialog::backdrop { background: rgba(15,31,28,.62); backdrop-filter: blur(4px); }
.action-dialog form { overflow: hidden; border: 1px solid rgba(194,204,196,.9); border-radius: 18px; background: var(--card); box-shadow: 0 30px 90px rgba(13,39,32,.28); }
.action-dialog header { display: flex; justify-content: space-between; gap: 20px; padding: 24px 25px 20px; border-bottom: 1px solid #e1e5df; background: #f7f9f4; }
.action-dialog header h2 { font: 500 25px/1.15 var(--display); letter-spacing: -.6px; }
.action-dialog header p:last-child { max-width: 400px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.action-dialog-fields { display: grid; gap: 17px; padding: 23px 25px; }
.action-dialog-fields:empty { display: none; }
.action-dialog-fields label { color: #41514c; font-size: 10px; font-weight: 750; }
.action-dialog-fields label > small { display: block; float: none; margin: 4px 0 0; }
.action-dialog-fields input, .action-dialog-fields select, .action-dialog-fields textarea { margin-top: 7px; }
.dialog-warning { margin: 0 25px 20px; padding: 13px 14px; border-radius: 11px; background: #f5eee0; color: #715c36; font-size: 9px; line-height: 1.5; }
.action-dialog footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 25px; border-top: 1px solid #e1e5df; background: #f7f8f4; }

.funnel-panel { display: grid; grid-template-columns: minmax(170px,.65fr) minmax(0,2fr); gap: 24px; align-items: center; margin: 18px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,252,.72); }
.funnel-panel h2 { margin-top: 4px; font: 500 20px/1.15 var(--display); letter-spacing: -.35px; }
.funnel-strip { display: grid; grid-template-columns: repeat(4,1fr); min-width: 0; }
.funnel-strip > span { color: var(--muted); font-size: 10px; }
.funnel-strip article { position: relative; display: flex; gap: 10px; min-width: 0; padding: 8px 18px; border-left: 1px solid #dce2dc; }
.funnel-strip article > span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #e6eee9; color: var(--green); font-size: 8px; font-weight: 850; }
.funnel-strip strong, .funnel-strip b, .funnel-strip small { display: block; }
.funnel-strip strong { font: 500 23px/1 var(--display); font-variant-numeric: tabular-nums; }
.funnel-strip b { margin-top: 3px; color: #34443f; font-size: 9px; }
.funnel-strip small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.application-row .case-state { min-width: 145px; }
.application-row .case-state small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.3; }
.mode-label { min-width: 65px; text-align: right; }

@media (max-width: 760px) {
  .funnel-panel { grid-template-columns: 1fr; }
  .funnel-strip { grid-template-columns: 1fr 1fr; gap: 12px 0; }
  .funnel-strip article:nth-child(odd) { border-left: 0; padding-left: 0; }
  .workspace-dialog { width: 100vw; max-height: 100dvh; margin: 0; }
  .workspace-shell { max-height: 100dvh; border: 0; border-radius: 0; }
  .workspace-shell > header { min-height: 72px; padding: 15px 17px; }
  .workspace-shell > header h2 { font-size: 22px; }
  .workspace-body { padding: 15px 14px 32px; }
  .case-stage-rail { display: flex; overflow-x: auto; }
  .case-stage-rail li { min-width: 125px; }
  .case-command { grid-template-columns: 1fr; padding: 22px; }
  .case-command > .button { width: 100%; }
  .case-command dl { grid-template-columns: 1fr 1fr; gap: 14px; }
  .case-section > header { align-items: flex-start; padding: 18px; }
  .case-section .profile-grid { grid-template-columns: 1fr 1fr; padding: 18px; }
  .document-list, .verification-list, .fit-list { padding: 0 18px; }
  .document-card { grid-template-columns: 1fr auto; gap: 10px; padding: 16px 0; }
  .document-actions { grid-column: 1/-1; justify-content: flex-start; }
  .case-section .upload-form { grid-template-columns: 1fr; padding: 18px; }
  .verification-row { grid-template-columns: 30px 1fr auto; padding: 12px 0; }
  .verification-row .status { display: none; }
  .fit-card { grid-template-columns: 57px 1fr; }
  .fit-card > .status { grid-column: 2; justify-self: start; }
  .submission-section .gate-box { margin: 18px 18px 0; }
  .submission-section .gate-box ul, .lender-state { grid-template-columns: 1fr; }
  .lender-state { margin: 18px 18px 0; }
  .submission-actions { padding: 16px 18px 20px; }
  .submission-actions .button { flex: 1 1 100%; }
  .gateway-providers { grid-template-columns: 1fr; }
  .action-dialog { width: calc(100vw - 20px); }
}

@media (max-width: 460px) {
  .funnel-strip { grid-template-columns: 1fr; }
  .funnel-strip article { border-left: 0; border-top: 1px solid #dce2dc; padding: 12px 0; }
  .funnel-strip article:first-child { border-top: 0; }
  .case-section .profile-grid { grid-template-columns: 1fr; }
  .case-command dl { grid-template-columns: 1fr; }
  .case-section > header { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Single-workspace authentication */
.auth-button { min-height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; }
.auth-button.signed-in { border-color: #b9d4c7; background: #eaf4ee; color: var(--green); }
.session-profile { display: flex; align-items: center; gap: 10px; }
.session-profile > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); font-size: 10px; font-weight: 900; }
.session-profile p, .session-profile b, .session-profile small { display: block; margin: 0; }
.session-profile b { font-size: 10px; }
.session-profile small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.login-dialog { width: min(440px, calc(100vw - 28px)); max-width: none; padding: 0; border: 0; border-radius: 22px; background: transparent; }
.login-dialog::backdrop { background: rgba(11,29,25,.72); backdrop-filter: blur(7px); }
.login-dialog form { display: grid; gap: 17px; padding: 30px; border: 1px solid rgba(201,211,203,.9); border-radius: 22px; background: #fffefb; box-shadow: 0 34px 100px rgba(8,31,24,.34); }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.login-brand > div { display: grid; }
.login-brand strong { font: 600 19px/1 var(--display); }
.login-brand small { margin-top: 4px; color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.login-dialog h2 { margin: -7px 0 0; font: 500 38px/1.05 var(--display); letter-spacing: -1px; }
.login-copy { margin: -6px 0 2px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.login-dialog label { color: #41514c; font-size: 9px; font-weight: 800; letter-spacing: .35px; }
.login-dialog label input { margin-top: 7px; }
.login-safety { color: var(--muted); font-size: 8px; line-height: 1.5; text-align: center; }

@media (max-width: 760px) {
  .auth-button { min-height: 40px; padding: 0 11px; }
  .login-dialog form { padding: 24px 20px; }
}

/* Akdira redesign: customer journey and partner command centre */
.hero-text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; padding: 0; border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 750; }
.hero-text-link:hover span { transform: translateY(2px); }
.hero-text-link span { transition: transform .2s ease; }

.access-panel { width: min(320px,100%); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(255,254,251,.88); box-shadow: var(--shadow-soft); }
.access-panel summary { min-height: 69px; display: grid; grid-template-columns: 11px 1fr auto; gap: 11px; align-items: center; padding: 13px 15px; cursor: pointer; list-style: none; }
.access-panel summary::-webkit-details-marker { display: none; }
.access-panel summary > span:last-child { color: var(--green); font-size: 18px; transition: transform .2s ease; }
.access-panel[open] summary > span:last-child { transform: rotate(45deg); }
.access-indicator { width: 9px; height: 9px; border-radius: 3px; background: #6c9a79; box-shadow: 0 0 0 4px #e1ede4; }
.access-panel summary b, .access-panel summary small { display: block; }
.access-panel summary b { font-size: 11px; }
.access-panel summary small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.access-panel-body { display: grid; gap: 11px; padding: 15px; border-top: 1px solid var(--line); background: #f6f8f3; }
.access-panel-body .admin-key-label { text-transform: none; letter-spacing: 0; }
.access-panel-body .admin-key-label input { min-width: 0; }

.command-pulse { display: grid; grid-template-columns: minmax(270px,.72fr) minmax(0,1.28fr); gap: 14px; margin-bottom: 15px; }
.priority-card { min-height: 262px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 27px; position: relative; border-radius: 19px 19px 8px 19px; background: var(--ink); color: #fff; box-shadow: 0 22px 55px rgba(19,49,41,.17); }
.priority-card::after { content: ""; position: absolute; width: 250px; height: 250px; right: -105px; top: -105px; border: 1px solid rgba(216,235,103,.2); border-radius: 50%; box-shadow: 0 0 0 32px rgba(216,235,103,.035),0 0 0 65px rgba(216,235,103,.025); }
.priority-card > * { position: relative; z-index: 1; }
.priority-card .eyebrow { margin-bottom: 15px; color: #9ed0bb; }
.priority-card strong { display: block; font: 500 52px/1 var(--display); font-variant-numeric: tabular-nums; }
.priority-card h2 { margin-top: 8px; font-size: 25px; }
.priority-card p:not(.eyebrow) { max-width: 440px; margin: 9px 0 24px; color: #b5c7c1; font-size: 10px; line-height: 1.55; }
.priority-card .button { align-self: flex-start; box-shadow: none; }
.pulse-stats { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 8px 19px 19px 19px; background: rgba(255,254,251,.9); }
.pulse-stats article { min-height: 130px; display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pulse-stats article:nth-child(2n) { border-right: 0; }
.pulse-stats article:nth-last-child(-n+2) { border-bottom: 0; }
.pulse-stats span, .pulse-stats small { color: var(--muted); font-size: 9px; }
.pulse-stats strong { margin: 10px 0 4px; font: 500 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.pulse-stats .earnings-stat { background: linear-gradient(145deg,#eef4ee,#f9f9f5); }
.compact-notice { padding: 13px 15px; }
.compact-notice .notice-icon { width: 24px; height: 24px; border-radius: 8px; font-size: 10px; }
.compact-notice p { font-size: 10px; }

.primary-dashboard { grid-template-columns: minmax(0,1.52fr) minmax(280px,.68fr); }
.case-panel-head { border-bottom: 0; }
.case-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 0 24px 17px; border-bottom: 1px solid var(--line); }
.case-filters { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #eef1ec; }
.case-filters button { min-height: 34px; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; color: #67746f; font-size: 8px; font-weight: 750; }
.case-filters button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(24,53,45,.08); }
.case-search { width: min(210px,38%); display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #7d8985; }
.case-search input { min-width: 0; min-height: 36px; padding: 7px 0; border: 0; background: transparent; box-shadow: none; font-size: 9px; }
.case-search input:focus { box-shadow: none; }
.case-pipeline-panel .application-row { grid-template-columns: minmax(180px,1.3fr) minmax(110px,.65fr) minmax(145px,.8fr) auto; min-height: 78px; }
.case-pipeline-panel .application-row[hidden] { display: none; }
.case-pipeline-panel .avatar { border-radius: 11px; }
.case-pipeline-panel .open-workspace { min-width: 84px; border-radius: 8px; }
.filter-empty { margin: 0 22px; }
.queue-panel { position: sticky; top: 100px; }
.dashboard-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.secondary-panel > summary { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.secondary-panel > summary::-webkit-details-marker { display: none; }
.secondary-panel > summary .eyebrow { margin-bottom: 5px; }
.secondary-panel > summary b { font: 500 17px/1.2 var(--display); }
.secondary-panel > summary > small { color: var(--green); font-size: 8px; font-weight: 750; }
.secondary-panel[open] > summary { border-bottom: 1px solid var(--line); background: #f7f8f4; }

.customer-mode { padding-bottom: 0 !important; }
.customer-mode .workspace-identity, .customer-mode .topbar nav, .customer-mode .mobile-nav { display: none !important; }
.customer-mode .topbar .header-cta { display: inline-flex; margin-left: auto; }
.customer-journey.active { display: block; }
.customer-shell { display: grid; grid-template-columns: minmax(300px,.78fr) minmax(560px,1.22fr); gap: clamp(38px,7vw,105px); align-items: start; max-width: 1230px; margin: 12px auto 35px; }
.customer-context { position: sticky; top: 112px; padding: 14px 0 24px; }
.customer-context h1 { margin: 0; font: 500 clamp(48px,5.5vw,72px)/.96 var(--display); letter-spacing: -3px; text-wrap: balance; }
.customer-context h1 em { color: var(--green); font-weight: 400; }
.customer-context .lede { max-width: 510px; margin-top: 22px; font-size: 14px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 38px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 750; }
.back-link:hover { color: var(--green); }
.customer-promise { display: grid; gap: 0; margin: 36px 0 0; padding: 0; list-style: none; }
.customer-promise li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; min-height: 70px; position: relative; }
.customer-promise li:not(:last-child)::after { content: ""; position: absolute; top: 30px; bottom: 4px; left: 14px; width: 1px; background: #d2dbd3; }
.customer-promise li > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #e6efe8; color: var(--green); font-size: 8px; font-weight: 800; }
.customer-promise b, .customer-promise small { display: block; }
.customer-promise b { padding-top: 2px; font-size: 11px; }
.customer-promise small { max-width: 330px; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.language-assurance { display: flex; gap: 13px; align-items: center; margin-top: 14px; padding: 16px; border: 1px solid #d5dfd6; border-radius: 8px 16px 16px 16px; background: linear-gradient(145deg,#edf4ee,#fbfbf7); }
.language-assurance > span { min-width: 65px; padding: 10px 8px; border-radius: 10px; background: var(--ink); color: #fff; font: 500 14px/1 var(--display); text-align: center; }
.language-assurance b, .language-assurance small { display: block; }
.language-assurance b { font-size: 10px; }
.language-assurance small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.customer-form { border-radius: 8px 23px 23px 23px; box-shadow: 0 26px 80px rgba(20,51,42,.12); }
.customer-form .guided-form-head { background: radial-gradient(circle at 92% 0,rgba(216,235,103,.2),transparent 11rem),linear-gradient(140deg,#eaf2ec,#fffdf8); }

@media (max-width: 1040px) {
  .command-pulse { grid-template-columns: .9fr 1.1fr; }
  .primary-dashboard { grid-template-columns: 1fr; }
  .queue-panel { position: static; }
  .customer-shell { grid-template-columns: .72fr 1.28fr; gap: 42px; }
}

@media (max-width: 820px) {
  .command-pulse { grid-template-columns: 1fr; }
  .priority-card { min-height: 230px; }
  .customer-shell { grid-template-columns: 1fr; max-width: 700px; margin-top: 0; }
  .customer-context { position: static; padding-bottom: 0; }
  .customer-promise { display: none; }
  .language-assurance { max-width: 560px; margin-bottom: 24px; }
}

@media (max-width: 700px) {
  .cases-head { gap: 22px; }
  .access-panel { width: 100%; }
  .pulse-stats { grid-template-columns: 1fr 1fr; }
  .pulse-stats article { min-height: 112px; padding: 18px; }
  .priority-card { min-height: 250px; padding: 23px; }
  .priority-card .button { width: 100%; }
  .case-toolbar { align-items: stretch; flex-direction: column; padding: 0 17px 15px; }
  .case-filters { overflow-x: auto; }
  .case-filters button { flex: 0 0 auto; }
  .case-search { width: 100%; }
  .case-pipeline-panel .application-row { grid-template-columns: 1fr auto; padding: 15px 17px; }
  .dashboard-secondary { grid-template-columns: 1fr; }
  .customer-context h1 { font-size: 46px; letter-spacing: -2.3px; }
  .customer-context .lede { margin-top: 17px; }
  .back-link { margin-bottom: 27px; }
  .language-assurance { display: none; }
  .customer-form { border-radius: 8px 18px 18px 18px; }
}

@media (max-width: 460px) {
  .pulse-stats { grid-template-columns: 1fr; }
  .pulse-stats article, .pulse-stats article:nth-child(2n), .pulse-stats article:nth-last-child(-n+2) { min-height: 96px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pulse-stats article:last-child { border-bottom: 0; }
  .secondary-panel > summary { align-items: flex-start; }
  .secondary-panel > summary > small { padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
