:root{
  --bg:#f5f7fb;--panel:#fff;--ink:#162033;--muted:#6e7888;--line:#e5e9f0;
  --nav:#0d1524;--nav2:#101b2e;--accent:#172331;--accent2:#172331;
  --soft:#e4e5e8;--green:#16845b;--green-bg:#eaf8f1;--amber:#9a6204;--amber-bg:#fff5da;
  --red:#b13b45;--red-bg:#fff0f1;--radius:16px;--shadow:0 12px 32px rgba(16,24,40,.07)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55}a{color:inherit}button,input,textarea,select{font:inherit}.portal-body{background:var(--bg)}
.portal-shell{min-height:100vh;display:flex}.portal-sidebar{position:fixed;inset:0 auto 0 0;width:260px;height:100vh;padding:22px 16px 18px;background:linear-gradient(180deg,var(--nav),#0a1220);color:#fff;display:flex;flex-direction:column;justify-content:space-between;z-index:100}.portal-brand{display:flex;align-items:center;gap:12px;padding:2px 8px 20px;text-decoration:none}.portal-brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#4277ff,#172331);font-weight:800;font-size:13px;box-shadow:0 8px 24px rgba(44,102,246,.3)}.portal-brand>span:last-child{display:grid}.portal-brand strong{font-size:14px;letter-spacing:-.01em}.portal-brand small{font-size:11px;color:#8b98ad}.workspace-card{display:flex;align-items:center;gap:10px;padding:12px;margin:0 2px 21px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);border-radius:13px}.workspace-logo{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;border-radius:10px;background:#202e43;color:#dce6ff;font-weight:700}.workspace-logo img{width:100%;height:100%;object-fit:contain;border-radius:inherit;background:#fff}.workspace-card>div:last-child{min-width:0;display:grid}.workspace-card strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-card small{font-size:11px;color:#8390a5}.portal-nav{display:grid;gap:4px}.portal-nav-link{min-height:43px;display:flex;align-items:center;gap:11px;padding:0 12px;border-radius:10px;color:#9ba8ba;text-decoration:none;font-size:13px;font-weight:600;transition:.15s}.portal-nav-link span{width:18px;text-align:center;font-size:15px}.portal-nav-link:hover{background:rgba(255,255,255,.055);color:#fff}.portal-nav-link.active{background:rgba(76,119,255,.15);box-shadow:inset 0 0 0 1px rgba(95,136,255,.14);color:#fff}.portal-user-block{padding-top:15px;border-top:1px solid rgba(255,255,255,.07)}.portal-user-row{display:flex;align-items:center;gap:10px;padding:2px 6px 12px}.portal-user-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#202e43;color:#dce6ff;font-weight:700}.portal-user-row>div:last-child{min-width:0;display:grid}.portal-user-row strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-user-row small{color:#8390a5;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-signout{width:100%;border:0;background:transparent;color:#8795a9;padding:9px 11px;text-align:left;border-radius:9px;cursor:pointer}.portal-signout:hover{background:rgba(255,255,255,.05);color:#fff}.portal-main{width:calc(100% - 260px);margin-left:260px;min-height:100vh}.portal-content{width:min(1450px,100%);margin:0 auto;padding:42px 42px 70px}.portal-mobile-header,.portal-overlay{display:none}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px}.page-kicker{margin:0 0 6px;color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.page-head h1,.lead-hero h1{margin:0;font-size:clamp(28px,3vw,36px);line-height:1.15;letter-spacing:-.045em}.page-copy{margin:8px 0 0;color:var(--muted)}.page-actions{display:flex;gap:9px;flex-wrap:wrap}.back-link{display:inline-block;margin-bottom:18px;color:#657287;text-decoration:none;font-size:12px;font-weight:650}.back-link:hover{color:var(--accent)}
.btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 15px;border-radius:10px;text-decoration:none;font-size:13px;font-weight:700;cursor:pointer;border:1px solid transparent;margin-top: 10px;}.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 4px 11px rgba(44,102,246,.18)}.btn-primary:hover{background:var(--accent2)}.btn-secondary{background:#fff;color:#28354b;border-color:#d8dee8}.btn-secondary:hover{background:#f9fafc}.btn-ghost{background:transparent;color:#536176}.btn-ghost:hover{background:#f3f5f8}.btn-sm{min-height:34px;padding:0 11px;font-size:12px}.full-btn{width:100%}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.metric-card{padding:20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(16,24,40,.03)}.metric-card span{display:block;color:var(--muted);font-size:12px;font-weight:650}.metric-card strong{display:block;margin-top:9px;font-size:30px;line-height:1;letter-spacing:-.045em}.metric-card small{display:block;margin-top:9px;color:#98a1af;font-size:11px}
.portal-panel{margin-bottom:20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(16,24,40,.03);overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 21px;border-bottom:1px solid var(--line)}.panel-heading h2{margin:0;font-size:15px;letter-spacing:-.02em}.panel-heading p{margin:3px 0 0;color:var(--muted);font-size:12px}.panel-pad{padding:22px}.text-link{color:var(--accent);font-size:12px;font-weight:700;text-decoration:none}.text-link:hover{text-decoration:underline}.table-wrap{overflow:auto}.portal-table{width:100%;border-collapse:collapse}.portal-table th{padding:11px 18px;background:#fbfcfd;color:#818b9b;font-size:10px;font-weight:800;letter-spacing:.055em;text-transform:uppercase;text-align:left;border-bottom:1px solid var(--line)}.portal-table td{padding:15px 18px;border-bottom:1px solid #eef0f3;vertical-align:middle}.portal-table tbody tr:last-child td{border-bottom:0}.portal-table tbody tr:hover{background:#fbfcfe}.portal-table td:first-child{display:table-cell}.portal-table td small{display:block;margin-top:2px;color:var(--muted);font-size:11px}.lead-link{font-weight:700;text-decoration:none}.lead-link:hover{color:var(--accent)}.empty-state{padding:30px;text-align:center;color:var(--muted)}.empty-state h3{margin:0 0 6px;color:var(--ink)}.empty-state p{margin:0 0 16px}.wide-empty{grid-column:1/-1;background:#fff;border:1px dashed #d7dde7;border-radius:var(--radius)}
.status-badge{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;background:#f1f4f8;color:#596579;font-size:10px;font-weight:800;white-space:nowrap}.status-new,.status-contacting,.status-started{background:var(--soft);color:var(--accent2)}.status-complete,.status-retained{background:var(--green-bg);color:var(--green)}.status-review,.status-follow_up,.status-scheduled{background:var(--amber-bg);color:var(--amber)}.status-not_retained{background:var(--red-bg);color:var(--red)}
.pipeline-tabs,.detail-tabs{display:flex;gap:3px;overflow:auto;margin-bottom:20px;padding:4px;background:#eaedf2;border-radius:11px;width:max-content;max-width:100%}.pipeline-tab,.detail-tab{display:inline-flex;align-items:center;min-height:35px;padding:0 12px;border-radius:8px;color:#687386;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}.pipeline-tab span{margin-left:6px;color:#9aa2ae;font-size:10px}.pipeline-tab.active,.detail-tab.active{background:#fff;color:#1c2a42;box-shadow:0 1px 3px rgba(16,24,40,.09)}.panel-toolbar{padding:14px 18px;border-bottom:1px solid var(--line)}.search-form{display:flex;gap:8px;max-width:650px}.search-form input{flex:1;min-width:180px}
.lead-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:18px}.lead-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.lead-contact{display:flex;gap:13px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-size:12px}.status-form select{min-width:165px}.two-col-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr);gap:20px}.ai-brief{margin-bottom:20px;padding:25px;background:linear-gradient(145deg,#f7faff,#fff);border:1px solid #dce6fb;border-radius:var(--radius);box-shadow:0 1px 2px rgba(16,24,40,.03)}.ai-label{display:inline-flex;margin-bottom:10px;color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.ai-brief h2{margin:0 0 10px;font-size:20px;letter-spacing:-.03em}.ai-brief>p{margin:0;color:#536176;line-height:1.75}.missing-box{margin-top:18px;padding:14px 16px;background:#fff8e6;border:1px solid #f2dfac;border-radius:11px}.missing-box strong{font-size:12px}.missing-box ul{margin:8px 0 0;padding-left:18px;color:#715518}.compact-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.compact-facts>div{padding:17px 20px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.compact-facts>div:nth-child(even){border-right:0}.compact-facts span{display:block;margin-bottom:5px;color:var(--muted);font-size:11px}.compact-facts strong{font-size:13px}.side-panel .panel-heading{padding:17px 18px}.detail-list{margin:0;padding:5px 18px 14px}.detail-list>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--line)}.detail-list>div:last-child{border-bottom:0}.detail-list dt{color:var(--muted);font-size:11px}.detail-list dd{margin:0;text-align:right;font-size:12px;font-weight:650;overflow-wrap:anywhere}.side-actions{display:grid;gap:8px;padding:16px}.intake-qa{padding:4px 21px}.qa-row{display:grid;grid-template-columns:minmax(180px,38%) minmax(0,1fr);gap:22px;padding:17px 0;border-bottom:1px solid var(--line)}.qa-row:last-child{border-bottom:0}.qa-row span{color:var(--muted);font-size:12px}.qa-row strong{font-weight:650;white-space:pre-wrap}.document-list{padding:12px}.document-row{display:flex;align-items:center;gap:13px;padding:13px;border:1px solid var(--line);border-radius:11px;margin-bottom:9px;background:#fbfcfd}.doc-icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;background:#edf2ff;color:#315bd6;font-size:9px;font-weight:800}.doc-copy{min-width:0;flex:1;display:grid}.doc-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.doc-copy span{font-size:11px;color:var(--muted)}.premium-transcript{margin:0;padding:22px;background:#101827;color:#d9e2ef;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.75;white-space:pre-wrap;overflow:auto}.activity-timeline{padding:18px 22px}.activity-item{display:grid;grid-template-columns:16px minmax(0,1fr);gap:12px;padding-bottom:22px;position:relative}.activity-item:not(:last-child):before{content:"";position:absolute;left:5px;top:13px;bottom:0;width:1px;background:var(--line)}.activity-dot{width:11px;height:11px;margin-top:4px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--soft)}.activity-item strong{font-size:12px}.activity-item p{margin:2px 0;color:var(--muted);font-size:12px}.activity-item small{color:#9aa3b0;font-size:10px}
.form-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.dashboard-forms{padding:18px}.form-card{padding:20px;background:#fff;border:1px solid var(--line);border-radius:14px}.form-card.large{min-height:300px;box-shadow:0 1px 2px rgba(16,24,40,.03)}.form-card-top{display:flex;justify-content:space-between;align-items:center}.form-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:10px;background:var(--soft);color:var(--accent2);font-size:17px}.live-dot{display:inline-flex;align-items:center;gap:5px;color:var(--green);font-size:10px;font-weight:800}.live-dot:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green)}.live-dot.muted{color:#87919f}.live-dot.muted:before{background:#9ba4b0}.form-card h3{margin:16px 0 6px;font-size:15px;letter-spacing:-.02em}.form-card>p{margin:0;color:var(--muted);font-size:12px;min-height:38px}.form-meta{display:flex;gap:13px;margin-top:15px;color:#7b8594;font-size:11px}.form-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px;border:1px solid var(--line);border-radius:11px;overflow:hidden}.form-stats div{padding:12px;border-right:1px solid var(--line)}.form-stats div:last-child{border-right:0}.form-stats strong{display:block;font-size:15px}.form-stats span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.05em}.feature-pills{display:flex;gap:6px;flex-wrap:wrap;margin-top:15px}.mini-pill{padding:4px 7px;border-radius:999px;background:#f1f3f6;color:#8992a0;font-size:9px;font-weight:800}.mini-pill.on{background:var(--soft);color:var(--accent2)}.card-actions{display:flex;gap:8px;margin-top:17px}
.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px}.builder-settings .panel-pad{padding-bottom:18px}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid-form .full{grid-column:1/-1}.builder-list{padding:14px}.builder-field{padding:17px;margin-bottom:12px;border:1px solid var(--line);border-radius:13px;background:#fff;transition:.15s}.builder-field.removed{display:none}.builder-field-top{display:flex;align-items:center;gap:9px;margin-bottom:14px}.builder-field-top strong{font-size:12px}.drag-handle{color:#a4acb8;cursor:grab}.remove-question{margin-left:auto;border:0;background:transparent;color:#a44a53;font-size:11px;font-weight:700;cursor:pointer}.builder-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.builder-field-grid .wide{grid-column:1/-1}.builder-add-bottom{padding:0 14px 16px}.sticky-panel{position:sticky;top:20px}.toggle-stack{padding:8px 18px 16px}.setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.setting-toggle:last-child{border-bottom:0}.setting-toggle>div{display:grid}.setting-toggle strong{font-size:12px}.setting-toggle small{color:var(--muted);font-size:10px;line-height:1.4}.setting-toggle input,.toggle-row input{display:none}.setting-toggle>span,.toggle-row>span{position:relative;width:38px;height:22px;flex:0 0 auto;background:#cdd3dc;border-radius:999px;transition:.15s}.setting-toggle>span:after,.toggle-row>span:after{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15);transition:.15s}.setting-toggle input:checked+span,.toggle-row input:checked+span{background:var(--accent)}.setting-toggle input:checked+span:after,.toggle-row input:checked+span:after{transform:translateX(16px)}.toggle-row{display:flex;align-items:center;gap:8px;align-self:end;padding-bottom:9px}.toggle-row strong{font-size:11px}.toggle-row>span{width:34px;height:20px}.toggle-row>span:after{width:14px;height:14px}.toggle-row input:checked+span:after{transform:translateX(14px)}
.premium-form .field-group{display:grid;gap:6px}.field-group label{font-size:11px;font-weight:750;color:#4f5a6d}.field-group label small{font-weight:500;color:#9199a6}.premium-form input,.premium-form textarea,.premium-form select,.builder-field input,.builder-field textarea,.builder-field select,.search-form input,.status-form select,.member-controls select{width:100%;border:1px solid #d9dee7;background:#fff;border-radius:9px;padding:10px 11px;color:var(--ink);outline:none;transition:.15s}.premium-form input:focus,.premium-form textarea:focus,.premium-form select:focus,.builder-field input:focus,.builder-field textarea:focus,.builder-field select:focus,.search-form input:focus,.status-form select:focus{border-color:#8babff;box-shadow:0 0 0 3px rgba(44,102,246,.09)}.narrow-panel{max-width:720px}.settings-panel{max-width:920px}
.team-layout{grid-template-columns:minmax(0,1.6fr) minmax(300px,.7fr)}.member-list{padding:8px 16px}.member-row{display:flex;align-items:center;gap:12px;padding:14px 4px;border-bottom:1px solid var(--line)}.member-row:last-child{border-bottom:0}.member-avatar{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#edf2ff;color:#315bd6;font-weight:800}.member-copy{min-width:0;display:grid;flex:1}.member-copy strong{font-size:12px}.member-copy span{color:var(--muted);font-size:11px}.member-controls{display:flex;align-items:center;gap:8px}.member-controls select{width:auto;min-width:105px;padding:7px 9px}.inline-check{font-size:11px;color:var(--muted);white-space:nowrap}
.portal-message-stack{display:grid;gap:8px;margin-bottom:16px}.portal-message{padding:11px 13px;background:#e4e5e8;border:1px solid #d8e4ff;border-radius:10px;color:#3153a5;font-size:12px}
/* Existing public/auth screens remain usable */

.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:#fff;border-bottom:1px solid var(--line)}.brand{font-weight:800;text-decoration:none}.topbar nav{display:flex;align-items:center;gap:14px}.link-btn{border:0;background:transparent;cursor:pointer}.shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:40px 0}.public-card,.auth-card{width:min(680px,calc(100% - 32px));margin:50px auto;padding:30px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.public-card.wide{width:min(840px,calc(100% - 32px))}.public-card h1,.auth-card h1{margin:0 0 10px;letter-spacing:-.035em}.eyebrow{margin:0 0 7px;color:var(--accent);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.stack{display:grid;gap:14px}.stack p{margin:0}.stack input,.stack textarea,.stack select{width:100%;padding:11px 12px;border:1px solid #d9dee7;border-radius:9px}.stack button,.primary,.secondary{min-height:40px;padding:0 15px;border-radius:10px;border:1px solid transparent;font-weight:700;cursor:pointer}.primary{background:var(--accent);color:#fff}.secondary{background:#fff;border-color:#d9dee7}.legal-note,.notice{margin:16px 0;padding:12px 14px;border-radius:10px;background:#f6f8fb;color:#647083;font-size:12px}.button-link{display:inline-flex;align-items:center;text-decoration:none}.calling-icon{font-size:32px}.call-checklist{margin:18px 0}.fallback-details{margin-top:18px}
@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(2,1fr)}.form-card-grid{grid-template-columns:repeat(2,1fr)}.builder-layout,.two-col-layout,.team-layout{grid-template-columns:1fr}.sticky-panel{position:static}}
@media(max-width:820px){.portal-sidebar{transform:translateX(-100%);transition:transform .2s ease}.portal-sidebar.open{transform:translateX(0)}.portal-overlay.show{display:block;position:fixed;inset:0;background:rgba(4,10,20,.45);z-index:90}.portal-main{width:100%;margin-left:0}.portal-mobile-header{height:58px;display:flex;align-items:center;gap:13px;padding:0 18px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.portal-menu-button{width:36px;height:36px;padding:8px;border:0;background:#f3f5f8;border-radius:9px;display:grid;gap:4px;align-content:center}.portal-menu-button span{height:2px;background:#38465c;border-radius:2px}.portal-content{padding:26px 18px 55px}.page-head,.lead-hero{flex-direction:column}.status-form{width:100%}.status-form select{width:100%}.form-card-grid{grid-template-columns:1fr}.compact-facts{grid-template-columns:1fr}.compact-facts>div{border-right:0}.builder-field-grid,.grid-form{grid-template-columns:1fr}.builder-field-grid .wide,.grid-form .full{grid-column:auto}.member-row{align-items:flex-start;flex-wrap:wrap}.member-controls{width:100%;padding-left:52px;flex-wrap:wrap}}
@media(max-width:560px){.metric-grid{grid-template-columns:1fr 1fr}.metric-card{padding:16px}.metric-card strong{font-size:25px}.portal-content{padding-left:14px;padding-right:14px}.panel-heading{align-items:flex-start;flex-direction:column}.search-form{flex-wrap:wrap}.search-form input{width:100%;flex-basis:100%}.qa-row{grid-template-columns:1fr;gap:5px}.document-row{align-items:flex-start;flex-wrap:wrap}.document-row .btn{margin-left:53px}.page-actions{width:100%}.page-actions .btn{flex:1}.member-controls{padding-left:0}.member-controls select{flex:1}.metric-grid{gap:9px}}

/* =========================================================
   AI FORM WIZARD + POLISHED QUESTION BUILDER
   ========================================================= */
.wizard-page-head{margin-bottom:22px}.wizard-shell{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}.wizard-primary-card,.wizard-side-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 34px rgba(16,24,40,.055)}.wizard-primary-card{padding:28px}.wizard-side-card{padding:25px;position:sticky;top:20px;background:linear-gradient(155deg,#0f1b30,#162744);color:#fff}.wizard-card-heading{display:flex;gap:13px;align-items:flex-start;margin-bottom:18px}.wizard-card-heading h2{margin:0 0 4px;font-size:19px;letter-spacing:-.025em}.wizard-card-heading p{margin:0;color:var(--muted);font-size:12px}.wizard-step-number{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;background:var(--soft);color:var(--accent2);font-weight:800}.wizard-prompt{width:100%;resize:vertical;border:1px solid #d7dde7;border-radius:13px;padding:15px 16px;font:inherit;line-height:1.6;outline:none;background:#fbfcfe}.wizard-prompt:focus{border-color:#8babff;box-shadow:0 0 0 4px rgba(44,102,246,.08);background:#fff}.wizard-or{display:flex;align-items:center;gap:12px;margin:19px 0;color:#9aa3b0;font-size:10px;font-weight:800;letter-spacing:.08em}.wizard-or:before,.wizard-or:after{content:"";height:1px;flex:1;background:var(--line)}.wizard-dropzone{display:grid;justify-items:center;gap:5px;padding:25px 20px;border:1.5px dashed #cdd5e2;border-radius:15px;background:#fafbfd;text-align:center;cursor:pointer;transition:.15s}.wizard-dropzone:hover,.wizard-dropzone.dragging{border-color:#7ea0ff;background:#f4f7ff}.wizard-dropzone input{display:none}.wizard-upload-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:#edf3ff;color:var(--accent);font-size:20px}.wizard-dropzone strong{font-size:13px}.wizard-dropzone span:not(.wizard-upload-icon){font-size:11px;color:var(--muted)}.wizard-dropzone em{font-style:normal;color:var(--accent2);font-size:11px;font-weight:700}.wizard-document-option{display:flex;align-items:center;gap:16px;margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:13px;cursor:pointer}.wizard-document-option>div{display:grid;gap:2px;flex:1}.wizard-document-option strong{font-size:12px}.wizard-document-option>div span{color:var(--muted);font-size:10px;line-height:1.45}.wizard-document-option input{display:none}.wizard-switch{position:relative;width:42px;height:24px;flex:0 0 auto;background:#cbd2dc;border-radius:999px;transition:.15s}.wizard-switch:after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.15s}.wizard-document-option input:checked+.wizard-switch{background:var(--accent)}.wizard-document-option input:checked+.wizard-switch:after{transform:translateX(18px)}.wizard-generate-button{width:100%;margin-top:18px;min-height:46px}.wizard-error{margin-top:14px;padding:11px 13px;border-radius:10px;background:var(--red-bg);color:var(--red);font-size:12px}.wizard-ai-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.1);color:#8babff;font-size:21px}.wizard-side-card h3{margin:17px 0 8px;font-size:17px}.wizard-side-card ul{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:13px}.wizard-side-card li{position:relative;padding-left:22px;color:#afbdd1;font-size:11px;line-height:1.55}.wizard-side-card li:before{content:"✓";position:absolute;left:0;color:#6f96ff;font-weight:800}.wizard-generating{min-height:430px;display:grid;place-content:center;justify-items:center;text-align:center;background:#fff;border:1px solid var(--line);border-radius:20px}.wizard-generating[hidden]{display:none}.wizard-loader{display:flex;gap:6px;margin-bottom:18px}.wizard-loader span{width:9px;height:9px;border-radius:50%;background:var(--accent);animation:wizardPulse 1.2s infinite ease-in-out}.wizard-loader span:nth-child(2){animation-delay:.12s}.wizard-loader span:nth-child(3){animation-delay:.24s}@keyframes wizardPulse{0%,80%,100%{transform:scale(.65);opacity:.35}40%{transform:scale(1);opacity:1}}.wizard-generating h2{margin:0;font-size:21px}.wizard-generating p{margin:7px 0 0;color:var(--muted)}.wizard-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.wizard-preview-head h2{margin:0;font-size:28px;letter-spacing:-.035em}.wizard-preview-head p{margin:6px 0 0;color:var(--muted)}.wizard-preview-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px}.wizard-ready-card{padding:24px}.wizard-ready-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--green-bg);color:var(--green);font-weight:900}.wizard-ready-card h3{margin:15px 0 5px}.wizard-ready-card p{margin:0 0 18px;color:var(--muted);font-size:11px}.ai-preview-list{padding:12px}.ai-preview-field{border:1px solid var(--line);border-radius:13px;margin-bottom:9px;overflow:hidden;background:#fff}.ai-preview-field-head,.premium-question-summary{width:100%;display:flex;align-items:center;gap:12px;padding:14px 15px;border:0;background:#fff;text-align:left;cursor:pointer}.question-number{width:29px;height:29px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;background:#f1f4f8;color:#637087;font-size:11px;font-weight:800}.ai-preview-summary,.premium-question-copy{min-width:0;display:grid;gap:5px;flex:1}.ai-preview-summary strong,.premium-question-copy strong{font-size:12px;line-height:1.45}.ai-preview-summary>div,.premium-question-copy>span{display:flex;gap:6px;flex-wrap:wrap}.field-type-chip,.required-chip,.optional-chip{display:inline-flex;align-items:center;min-height:20px;padding:0 7px;border-radius:999px;font-style:normal;font-size:9px;font-weight:800}.field-type-chip{background:#eef3fb;color:#53647d}.required-chip{background:#fff0f1;color:#ae414b}.optional-chip{background:#f3f5f7;color:#808a98}.question-menu-button{margin-left:auto;border:1px solid #dce1e9;background:#fff;border-radius:8px;padding:6px 9px;color:#526077;font-size:10px;font-weight:750;cursor:pointer}.ai-preview-editor,.premium-question-editor{padding:0 15px 16px;border-top:1px solid var(--line);background:#fbfcfd}.ai-preview-editor .builder-field-grid,.premium-question-editor .builder-field-grid{padding-top:15px}.ai-preview-actions,.question-editor-actions{grid-column:1/-1;display:flex;align-items:center;gap:8px;padding-top:5px}.ai-preview-actions button,.question-move,.remove-question{border:0;background:transparent;color:#6d7889;font-size:10px;font-weight:750;cursor:pointer;padding:5px}.ai-preview-actions .remove-field,.remove-question{margin-left:auto;color:#a94650}.ai-empty-state{text-align:center}.ai-empty-icon{width:48px;height:48px;margin:0 auto 12px;display:grid;place-items:center;border-radius:14px;background:var(--soft);color:var(--accent);font-size:21px}.premium-question-list{padding:12px}.premium-question-card{border:1px solid var(--line);border-radius:13px;margin-bottom:9px;background:#fff;overflow:hidden;transition:.15s}.premium-question-card:hover{border-color:#d8deea}.premium-question-card.open{border-color:#cfdaf7;box-shadow:0 4px 16px rgba(44,102,246,.055)}.premium-question-card.removed{display:none}.premium-question-summary{appearance:none}.premium-question-summary:hover{background:#fbfcfe}.question-chevron{color:#99a2b0;font-size:14px}.premium-question-editor{background:#fafbfd}.premium-question-panel .builder-add-bottom{padding-top:4px}.premium-form-card{transition:transform .15s ease,box-shadow .15s ease}.premium-form-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(16,24,40,.065)}
@media(max-width:1100px){.wizard-shell,.wizard-preview-layout{grid-template-columns:1fr}.wizard-side-card,.wizard-preview-aside .sticky-panel{position:static}.wizard-side-card{display:none}}
@media(max-width:700px){.wizard-primary-card{padding:19px}.wizard-preview-head{flex-direction:column}.wizard-preview-head .page-actions{width:100%}.wizard-preview-head .page-actions .btn{flex:1}.ai-preview-field-head,.premium-question-summary{align-items:flex-start}.question-menu-button{margin-left:0}.wizard-document-option{align-items:flex-start}.ai-preview-actions,.question-editor-actions{flex-wrap:wrap}.ai-preview-actions .remove-field,.remove-question{margin-left:0}}

/* =========================================================
   PREMIUM FORMBUILDER
   ========================================================= */

.builder-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        290px;
    gap: 22px;
    align-items: start;
}

.builder-settings {
    margin-bottom: 20px;
}

.premium-question-panel {
    overflow: hidden;
}

.premium-question-list {
    display: grid;
}

.premium-question-card {
    position: relative;

    border-bottom:
        1px solid var(--border);

    background: #fff;

    transition:
        background .15s ease,
        box-shadow .15s ease;
}

.premium-question-card:last-child {
    border-bottom: 0;
}

.premium-question-card.open {
    background: #fbfcff;

    box-shadow:
        inset 3px 0 0 var(--accent);
}

.premium-question-card.removed {
    display: none;
}


/* =========================================================
   QUESTION SUMMARY
   ========================================================= */

.premium-question-summary {
    width: 100%;

    display: grid;
    grid-template-columns:
        34px
        minmax(0, 1fr)
        28px;

    gap: 13px;
    align-items: center;

    padding: 18px 20px;

    border: 0;
    background: transparent;

    text-align: left;
    color: inherit;

    cursor: pointer;
}

.premium-question-summary:hover {
    background: #fafbfc;
}

.question-number {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: #f0f3f8;
    color: #596579;

    font-size: 11px;
    font-weight: 750;
}

.premium-question-card.open
.question-number {
    background: var(--accent-soft);
    color: var(--accent);
}

.premium-question-copy {
    min-width: 0;

    display: grid;
    gap: 7px;
}

.premium-question-copy strong {
    overflow: hidden;

    font-size: 13px;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text);
}

.question-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.field-type-chip,
.required-chip,
.optional-chip {
    display: inline-flex;
    align-items: center;

    min-height: 22px;

    padding: 0 8px;

    border-radius: 999px;

    font-style: normal;
    font-size: 10px;
    font-weight: 700;
}

.field-type-chip {
    background: #eff2f6;
    color: #647084;
}

.required-chip {
    background: #e4e5e8;
    color: #275ac9;
}

.optional-chip {
    background: #f5f6f8;
    color: #8b94a3;
}

.question-chevron {
    color: #8d96a5;

    font-size: 18px;
    text-align: center;

    transition:
        transform .15s ease;
}


/* =========================================================
   EXPANDED QUESTION EDITOR
   ========================================================= */

.premium-question-editor {
    padding:
        0
        20px
        20px
        67px;
}

.premium-question-editor[hidden] {
    display: none;
}

.question-editor-inner {
    overflow: hidden;

    border:
        1px solid #dfe4ec;

    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 5px 18px rgba(16, 24, 40, .045);
}

.builder-field-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    padding: 21px;
}

.builder-field-grid
.field-group.wide {
    grid-column: 1 / -1;
}


/* =========================================================
   FORMBUILDER INPUTS
   ========================================================= */

.builder-field-grid
.field-group {
    min-width: 0;
}

.builder-field-grid
.field-group > label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;

    margin-bottom: 7px;

    color: #4a566a;

    font-size: 11px;
    font-weight: 700;
}

.builder-field-grid
.field-group > label small {
    color: #98a1af;

    font-size: 10px;
    font-weight: 500;
}

.builder-field-grid input[type="text"],
.builder-field-grid input:not([type]),
.builder-field-grid textarea,
.builder-field-grid select,
.premium-question-editor input[type="text"],
.premium-question-editor input:not([type]),
.premium-question-editor textarea,
.premium-question-editor select,
.ai-preview-editor input,
.ai-preview-editor textarea,
.ai-preview-editor select {
    width: 100%;

    min-height: 43px;

    padding:
        10px
        12px;

    border:
        1px solid #d8dee8;

    border-radius: 10px;

    outline: none;

    background: #fff;
    color: #182337;

    font-size: 13px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.builder-field-grid textarea,
.premium-question-editor textarea,
.ai-preview-editor textarea {
    min-height: 96px;

    resize: vertical;

    line-height: 1.55;
}

.builder-field-grid select,
.premium-question-editor select,
.ai-preview-editor select {
    appearance: none;

    padding-right: 34px;

    background:
        #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d7787' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
        no-repeat
        right 12px
        center;
}

.builder-field-grid input:focus,
.builder-field-grid textarea:focus,
.builder-field-grid select:focus,
.premium-question-editor input:focus,
.premium-question-editor textarea:focus,
.premium-question-editor select:focus,
.ai-preview-editor input:focus,
.ai-preview-editor textarea:focus,
.ai-preview-editor select:focus {
    border-color: #87a8ff;

    box-shadow:
        0 0 0 3px rgba(44, 102, 246, .10);

    background: #fff;
}

.builder-field-grid
input::placeholder,
.builder-field-grid
textarea::placeholder,
.ai-preview-editor
input::placeholder,
.ai-preview-editor
textarea::placeholder {
    color: #a2aab7;
}


/* =========================================================
   REQUIRED TOGGLE
   ========================================================= */

.question-required-toggle {
    min-height: 63px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 15px;

    padding: 12px 14px;

    border:
        1px solid #e2e6ed;

    border-radius: 11px;

    background: #fafbfd;

    cursor: pointer;
}

.question-required-toggle > span:first-child {
    display: grid;
    gap: 2px;
}

.question-required-toggle strong {
    color: #253248;
    font-size: 12px;
}

.question-required-toggle small {
    color: #8993a3;
    font-size: 10px;
}

.question-required-toggle input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.premium-switch {
    position: relative;

    width: 40px;
    height: 23px;

    border-radius: 999px;

    background: #ccd2dc;

    transition:
        background .16s ease;
}

.premium-switch::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 1px 4px rgba(0,0,0,.18);

    transition:
        transform .16s ease;
}

.question-required-toggle
input:checked
+
.premium-switch {
    background: var(--accent);
}

.question-required-toggle
input:checked
+
.premium-switch::after {
    transform: translateX(17px);
}


/* =========================================================
   QUESTION ACTIONS
   ========================================================= */

.question-editor-actions {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding:
        13px
        20px;

    border-top:
        1px solid var(--border);

    background: #fafbfd;
}

.question-reorder-actions {
    display: flex;
    gap: 6px;
}

.question-move,
.remove-question,
.ai-preview-actions button {
    min-height: 32px;

    padding:
        0
        10px;

    border:
        1px solid #dfe3ea;

    border-radius: 8px;

    background: white;
    color: #667184;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.question-move:hover,
.ai-preview-actions button:hover {
    background: #f4f6f9;

    color: #354157;
}

.remove-question {
    color: #b23e49;

    border-color: #efd4d7;

    background: #fffafa;
}

.remove-question:hover {
    background: #fff0f1;
}

.builder-add-bottom {
    display: flex;
    justify-content: center;

    padding: 18px;

    border-top:
        1px solid var(--border);

    background: #fbfcfd;
}


/* =========================================================
   AI PREVIEW QUESTIONS
   ========================================================= */

.ai-preview-list {
    display: grid;
}

.ai-preview-field {
    border-bottom:
        1px solid var(--border);

    background: #fff;
}

.ai-preview-field:last-child {
    border-bottom: 0;
}

.ai-preview-field-head {
    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        auto;

    gap: 13px;
    align-items: center;

    padding: 17px 20px;
}

.ai-preview-summary {
    min-width: 0;

    display: grid;
    gap: 6px;
}

.ai-preview-summary > strong {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
}

.ai-preview-summary > div {
    display: flex;
    gap: 6px;
}

.question-menu-button {
    min-height: 32px;

    padding: 0 11px;

    border:
        1px solid var(--border-strong);

    border-radius: 8px;

    background: white;
    color: #526078;

    font-size: 11px;
    font-weight: 650;

    cursor: pointer;
}

.question-menu-button:hover {
    background: #f7f9fc;
}

.ai-preview-editor {
    padding:
        0
        20px
        20px
        67px;
}

.ai-preview-editor[hidden] {
    display: none;
}

.ai-preview-editor
.builder-field-grid {
    border:
        1px solid #dfe4ec;

    border-radius:
        13px
        13px
        0
        0;

    background: #fbfcff;
}

.ai-preview-actions {
    display: flex;
    gap: 7px;

    padding:
        12px
        16px;

    border:
        1px solid #dfe4ec;

    border-top: 0;

    border-radius:
        0
        0
        13px
        13px;

    background: #f8fafc;
}

.ai-preview-actions
.remove-field {
    margin-left: auto;

    color: #b23e49;
}


/* =========================================================
   AI WIZARD BENEFITS
   ========================================================= */

.wizard-side-copy {
    margin: 9px 0 22px;

    color: var(--muted);

    line-height: 1.65;
}

.wizard-benefit-list {
    display: grid;
    gap: 18px;
}

.wizard-benefit {
    display: grid;

    grid-template-columns:
        26px
        minmax(0, 1fr);

    gap: 11px;

    align-items: flex-start;
}

.wizard-benefit > span {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--accent-soft);
    color: var(--accent);

    font-size: 11px;
    font-weight: 800;
}

.wizard-benefit strong {
    display: block;

    margin-bottom: 3px;

    color: var(--text);

    font-size: 13px;
}

.wizard-benefit p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   AI GENERATING
   ========================================================= */

.wizard-generating {
    min-height: 540px;

    display: grid;
    place-items: center;

    padding: 45px 20px;
}

.wizard-generating[hidden] {
    display: none;
}

.wizard-generating-card {
    width:
        min(
            520px,
            100%
        );

    padding: 48px 45px;

    text-align: center;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 22px;

    box-shadow:
        0 24px 70px
        rgba(16, 24, 40, .09);
}

.wizard-generating-card h2 {
    margin: 4px 0 10px;

    font-size: 27px;
    letter-spacing: -.035em;
}

.wizard-generating-copy {
    max-width: 400px;

    margin: 0 auto 27px;

    color: var(--muted);

    line-height: 1.65;
}

.wizard-generating-orbit {
    position: relative;

    width: 96px;
    height: 96px;

    margin: 0 auto 27px;
}

.wizard-generating-mark {
    position: absolute;

    inset: 18px;

    display: grid;
    place-items: center;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #3d74ff,
            #1f4bd9
        );

    color: white;

    font-size: 27px;

    box-shadow:
        0 16px 32px
        rgba(44, 102, 246, .25);
}

.orbit-dot {
    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--accent);
}

.orbit-dot-one {
    top: 2px;
    left: 44px;

    animation:
        wizardOrbitOne
        1.8s
        linear
        infinite;
}

.orbit-dot-two {
    top: 69px;
    left: 13px;

    opacity: .55;

    animation:
        wizardOrbitTwo
        2.1s
        linear
        infinite;
}

.orbit-dot-three {
    top: 66px;
    right: 8px;

    width: 6px;
    height: 6px;

    opacity: .35;

    animation:
        wizardOrbitThree
        2.4s
        linear
        infinite;
}

@keyframes wizardOrbitOne {
    from {
        transform:
            rotate(0deg)
            translateX(42px)
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg)
            translateX(42px)
            rotate(-360deg);
    }
}

@keyframes wizardOrbitTwo {
    from {
        transform:
            rotate(120deg)
            translateX(38px)
            rotate(-120deg);
    }

    to {
        transform:
            rotate(480deg)
            translateX(38px)
            rotate(-480deg);
    }
}

@keyframes wizardOrbitThree {
    from {
        transform:
            rotate(240deg)
            translateX(46px)
            rotate(-240deg);
    }

    to {
        transform:
            rotate(600deg)
            translateX(46px)
            rotate(-600deg);
    }
}

.wizard-generation-progress {
    height: 6px;

    overflow: hidden;

    margin: 0 auto 17px;

    border-radius: 999px;

    background: #edf0f5;
}

.wizard-generation-progress-bar {
    width: 14%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--accent),
            #7194ff
        );

    transition:
        width .7s ease;
}

.wizard-generation-status {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #506078;

    font-size: 12px;
    font-weight: 650;
}

.generating-pulse {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent);

    animation:
        wizardPulse
        1.2s
        ease-in-out
        infinite;
}

@keyframes wizardPulse {
    0%,
    100% {
        opacity: .35;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.wizard-generation-note {
    margin: 16px 0 0;

    color: var(--muted-2);

    font-size: 11px;
}


/* =========================================================
   MOBILE FORMBUILDER
   ========================================================= */

@media (max-width: 900px) {

    .builder-layout,
    .wizard-preview-layout {
        grid-template-columns: 1fr;
    }

    .premium-question-editor,
    .ai-preview-editor {
        padding:
            0
            13px
            15px
            13px;
    }

    .builder-field-grid {
        grid-template-columns: 1fr;
    }

    .builder-field-grid
    .field-group.wide {
        grid-column: auto;
    }

    .question-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .question-reorder-actions {
        display: grid;
        grid-template-columns:
            1fr
            1fr;
    }

    .question-move,
    .remove-question {
        width: 100%;
    }

    .wizard-generating-card {
        padding:
            38px
            24px;
    }

}


@media (max-width: 600px) {

    .premium-question-summary,
    .ai-preview-field-head {
        grid-template-columns:
            30px
            minmax(0, 1fr)
            auto;

        padding:
            15px
            13px;

        gap: 9px;
    }

    .premium-question-copy strong,
    .ai-preview-summary > strong {
        white-space: normal;
    }

    .question-number {
        width: 27px;
        height: 27px;
    }

}


/* =========================================================
   WIZARD SINGLE-STAGE FLOW
   ========================================================= */

.wizard-stage-shell {
    position: relative;

    width: 100%;
}

.wizard-stage {
    width: 100%;
}

.wizard-stage[hidden] {
    display: none !important;
}


/*
The original input screen is the two-column
form + benefits layout.
*/

.wizard-stage .wizard-shell {
    margin: 0;
}


/*
Generating completely replaces the input screen.
*/

.wizard-generating-stage {
    min-height: 530px;

    display: grid;
    place-items: center;

    padding: 30px 0 60px;
}


/*
Review completely replaces both previous states.
*/

#wizardPreviewStep {
    animation:
        wizardStageIn
        .24s ease;
}

#wizardInputStep {
    animation:
        wizardStageIn
        .2s ease;
}

#wizardGenerating {
    animation:
        wizardStageIn
        .2s ease;
}


@keyframes wizardStageIn {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}
/* =========================================================
   PUBLIC CLIENT INTAKE
   MOBILE-FIRST
   ========================================================= */

:root {
    --client-bg: #f3f0ea;
    --client-paper: #fffdf9;
    --client-ink: #17202c;
    --client-muted: #6d716f;
    --client-line: #e3ded5;
    --client-deep: #172331;
    --client-deep-hover: #202f40;
    --client-warm: #8a6844;
    --client-warm-hover: #6f5235;
    --client-warm-soft: #f1e9de;
    --client-success: #496d5a;
    --client-success-soft: #edf4ef;
    --client-danger: #9b4848;
    --client-danger-soft: #fff0ed;
}

.client-intake-page {
    min-height: 100dvh;
    padding: 18px 14px 34px;
    background:
        radial-gradient(circle at 50% -80px, #ffffff 0, transparent 360px),
        var(--client-bg);
    color: var(--client-ink);
}

.client-intake-shell {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.client-form-shell {
    max-width: 720px;
}

.client-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 4px 17px;
}

.client-brand-logo,
.client-brand-fallback {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 11px;
}

.client-brand-logo {
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(23, 32, 44, .08);
}

.client-brand-fallback {
    display: grid;
    place-items: center;
    background: var(--client-deep);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.client-brand > div:last-child {
    min-width: 0;
    display: grid;
}

.client-brand strong {
    overflow: hidden;
    color: var(--client-ink);
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-brand span {
    margin-top: 1px;
    color: var(--client-muted);
    font-size: 10px;
}

.client-intake-card {
    overflow: hidden;
    padding: 25px 20px;
    border: 1px solid var(--client-line);
    border-radius: 22px;
    background: var(--client-paper);
    box-shadow: 0 18px 50px rgba(36, 28, 20, .065);
}

.client-intake-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 15px;
    background: var(--client-warm-soft);
    color: var(--client-warm);
    font-size: 20px;
}

.client-kicker {
    margin: 0 0 7px;
    color: var(--client-warm);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.client-intake-card h1 {
    margin: 0;
    color: var(--client-ink);
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.07;
    letter-spacing: -.045em;
}

.client-lead-copy {
    margin: 13px 0 0;
    color: var(--client-muted);
    font-size: 14px;
    line-height: 1.7;
}

.client-start-form {
    display: grid;
    gap: 15px;
    margin-top: 26px;
}

.client-form-field {
    display: grid;
    gap: 7px;
}

.client-form-field label {
    color: #3d4650;
    font-size: 11px;
    font-weight: 750;
}

.client-required {
    color: var(--client-warm);
    font-weight: 900;
}

.client-form-field input,
.client-form-field textarea,
.client-form-field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #d7d1c7;
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: var(--client-ink);
    font-size: 16px;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.client-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.client-form-field input:focus,
.client-form-field textarea:focus,
.client-form-field select:focus {
    border-color: #a88b68;
    box-shadow: 0 0 0 4px rgba(138, 104, 68, .09);
    background: #fff;
}

.client-field-help {
    color: var(--client-muted);
    font-size: 10px;
    line-height: 1.5;
}

.client-field-error {
    color: var(--client-danger);
    font-size: 11px;
    font-weight: 650;
}

.client-form-field.has-error input,
.client-form-field.has-error textarea,
.client-form-field.has-error select {
    border-color: #cf8f8f;
}

.client-form-error {
    padding: 12px 13px;
    border-radius: 11px;
    background: var(--client-danger-soft);
    color: var(--client-danger);
    font-size: 12px;
}

.client-primary-button {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid var(--client-deep);
    border-radius: 13px;
    background: var(--client-deep);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(23, 35, 49, .14);
    transition:
        transform .12s ease,
        background .15s ease,
        border-color .15s ease;
}

.client-primary-button:hover {
    background: var(--client-deep-hover);
    border-color: var(--client-deep-hover);
    color: #fff;
    text-decoration: none;
}

.client-primary-button:active {
    transform: translateY(1px);
}

.client-primary-button:disabled {
    opacity: .72;
    cursor: wait;
}

.client-button-link {
    margin-top: 24px;
}

.client-button-icon {
    font-size: 15px;
}

.client-button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: clientSpin .75s linear infinite;
}

@keyframes clientSpin {
    to { transform: rotate(360deg); }
}

.client-call-expectation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 17px;
    padding: 12px 13px;
    border-radius: 12px;
    background: #f5f1ea;
}

.client-call-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--client-success);
    box-shadow: 0 0 0 4px var(--client-success-soft);
}

.client-call-expectation div {
    display: grid;
    gap: 2px;
}

.client-call-expectation strong {
    font-size: 11px;
}

.client-call-expectation p {
    margin: 0;
    color: var(--client-muted);
    font-size: 10px;
    line-height: 1.45;
}

.client-legal-note {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--client-line);
    color: #777873;
}

.client-legal-note > span {
    color: var(--client-warm);
    font-size: 13px;
}

.client-legal-note p {
    margin: 0;
    font-size: 10px;
    line-height: 1.55;
}

.client-intake-footer {
    padding: 17px 8px 0;
    color: #888680;
    text-align: center;
    font-size: 9px;
}

.client-call-status-card {
    text-align: center;
}

.client-phone-animation {
    position: relative;
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    margin: 4px auto 19px;
}

.client-phone-circle {
    position: relative;
    z-index: 3;
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--client-deep);
    color: #fff;
    font-size: 25px;
    box-shadow: 0 11px 30px rgba(23, 35, 49, .2);
    animation: clientPhoneFloat 1.8s ease-in-out infinite;
}

.client-phone-ring {
    position: absolute;
    inset: 11px;
    border: 1px solid rgba(138, 104, 68, .35);
    border-radius: 50%;
    animation: clientPhoneRing 2s ease-out infinite;
}

.client-phone-ring.ring-two {
    animation-delay: .75s;
}

@keyframes clientPhoneRing {
    0% {
        opacity: .8;
        transform: scale(.65);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

@keyframes clientPhoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.client-live-label {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--client-success-soft);
    color: var(--client-success);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.client-live-label > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--client-success);
    animation: clientLivePulse 1.3s ease-in-out infinite;
}

@keyframes clientLivePulse {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}

.client-phone-number {
    display: block;
    margin-top: 4px;
    color: var(--client-ink);
    font-size: 16px;
}

.client-call-steps {
    display: grid;
    gap: 0;
    margin-top: 27px;
    border: 1px solid var(--client-line);
    border-radius: 15px;
    text-align: left;
    overflow: hidden;
    background: #fff;
}

.client-call-step {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
    padding: 15px;
    border-bottom: 1px solid var(--client-line);
}

.client-call-step:last-child {
    border-bottom: 0;
}

.client-step-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--client-warm-soft);
    color: var(--client-warm);
    font-size: 10px;
    font-weight: 850;
}

.client-call-step strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
}

.client-call-step p {
    margin: 0;
    color: var(--client-muted);
    font-size: 10px;
    line-height: 1.5;
}

.client-intake-page a:not(.client-primary-button) {
    color: var(--client-warm);
    text-decoration: none;
    font-weight: 700;
}

.client-intake-page a:not(.client-primary-button):hover {
    color: var(--client-warm-hover);
    text-decoration: none;
}

.client-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--client-warm) !important;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.client-secondary-link span {
    transition: transform .15s ease;
}

.client-secondary-link:hover span {
    transform: translateX(2px);
}

.client-call-help {
    margin-top: 16px;
    text-align: left;
}

.client-call-help details {
    overflow: hidden;
    border: 1px solid var(--client-line);
    border-radius: 12px;
    background: #f9f7f3;
}

.client-call-help summary {
    padding: 13px 14px;
    color: #49505a;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.client-call-help-body {
    padding: 0 14px 14px;
}

.client-call-help-body p {
    margin: 0 0 10px;
    color: var(--client-muted);
    font-size: 10px;
    line-height: 1.5;
}

.client-questionnaire-card {
    padding: 0;
}

.client-questionnaire-head {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--client-line);
}

.client-questionnaire-head > p:last-child {
    margin: 11px 0 0;
    color: var(--client-muted);
    font-size: 13px;
    line-height: 1.65;
}

.client-questionnaire {
    display: grid;
}

.client-question {
    padding: 20px;
    border-bottom: 1px solid var(--client-line);
}

.client-question-label {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--client-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.client-question-number {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--client-warm-soft);
    color: var(--client-warm);
    font-size: 9px;
    font-weight: 850;
}

.client-question-label em {
    display: inline-flex;
    margin-left: 5px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f3efea;
    color: #88745e;
    font-style: normal;
    font-size: 8px;
    font-weight: 800;
    vertical-align: middle;
    text-transform: uppercase;
}

.client-question-control {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.client-question-control > input,
.client-question-control > textarea,
.client-question-control > select {
    width: 100%;
    min-height: 50px;
    padding: 12px 13px;
    border: 1px solid #d7d1c7;
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: var(--client-ink);
    font-size: 16px;
}

.client-question-control textarea {
    min-height: 122px;
    resize: vertical;
}

.client-question-control > input:focus,
.client-question-control > textarea:focus,
.client-question-control > select:focus {
    border-color: #a88b68;
    box-shadow: 0 0 0 4px rgba(138, 104, 68, .09);
}

.client-question-help {
    color: var(--client-muted);
    font-size: 10px;
    line-height: 1.5;
}

.client-yes-no {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.client-yes-no label {
    cursor: pointer;
}

.client-yes-no input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.client-yes-no span {
    min-height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #d7d1c7;
    border-radius: 11px;
    background: #fff;
    color: #555b60;
    font-size: 12px;
    font-weight: 700;
    transition: all .15s ease;
}

.client-yes-no input:checked + span {
    border-color: var(--client-deep);
    background: var(--client-deep);
    color: #fff;
}

.client-file-field {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 23px 16px;
    border: 1px dashed #cfc5b8;
    border-radius: 13px;
    background: #faf8f4;
    text-align: center;
    cursor: pointer;
}

.client-file-field input {
    display: none;
}

.client-file-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 10px;
    background: var(--client-warm-soft);
    color: var(--client-warm);
    font-size: 18px;
}

.client-file-field strong {
    font-size: 11px;
}

.client-file-field small {
    color: var(--client-muted);
    font-size: 9px;
}

.client-form-alert {
    display: grid;
    gap: 2px;
    margin: 16px 20px 0;
    padding: 12px 13px;
    border-radius: 11px;
    background: var(--client-danger-soft);
    color: var(--client-danger);
}

.client-form-alert strong {
    font-size: 11px;
}

.client-form-alert span {
    font-size: 9px;
}

.client-submit-area {
    padding: 20px;
}

.client-submit-area p {
    margin: 10px 0 0;
    color: var(--client-muted);
    text-align: center;
    font-size: 9px;
}

@media (min-width: 700px) {
    .client-intake-page {
        padding: 38px 24px 60px;
    }

    .client-intake-card {
        padding: 34px;
    }

    .client-questionnaire-card {
        padding: 0;
    }

    .client-questionnaire-head {
        padding: 32px 34px 27px;
    }

    .client-question {
        padding: 26px 34px;
    }

    .client-submit-area {
        padding: 26px 34px 30px;
    }

    .client-form-alert {
        margin: 20px 34px 0;
    }

    .client-call-status-card {
        padding: 42px;
    }
}

/* =========================================================
   TEAM PAGE
   ========================================================= */

.team-page-head {
    margin-bottom: 22px;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.team-summary-strip {
    display: grid;

    grid-template-columns:
        145px
        minmax(0, 1fr);

    gap: 0;

    margin-bottom: 20px;

    overflow: hidden;

    border:
        1px solid var(--line);

    border-radius:
        15px;

    background:
        #fff;

    box-shadow:
        0 1px 2px
        rgba(16, 24, 40, .025);
}


.team-summary-stat {
    padding:
        18px
        21px;

    border-right:
        1px solid var(--line);
}


.team-summary-stat span {
    display: block;

    margin-bottom: 4px;

    color:
        var(--muted);

    font-size: 10px;
    font-weight: 700;

    text-transform:
        uppercase;

    letter-spacing:
        .06em;
}


.team-summary-stat strong {
    display: block;

    color:
        var(--ink);

    font-size: 26px;
    line-height: 1;

    letter-spacing:
        -.04em;
}


.team-summary-copy {
    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        16px
        20px;
}


.team-summary-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 auto;

    display: grid;

    place-items: center;

    border-radius:
        10px;

    background:
        var(--soft);

    color:
        var(--accent);

    font-size: 15px;
}


.team-summary-copy > div {
    display: grid;

    gap: 2px;
}


.team-summary-copy strong {
    font-size: 12px;
}


.team-summary-copy p {
    margin: 0;

    color:
        var(--muted);

    font-size: 10px;

    line-height: 1.45;
}



/* =========================================================
   LAYOUT
   ========================================================= */

.team-layout {
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(310px, .72fr);

    gap: 22px;
}


.team-members-panel {
    overflow: hidden;
}


.team-panel-heading {
    background:
        #fbfcfd;
}


/* =========================================================
   MEMBER LIST
   ========================================================= */

.team-member-list {
    padding:
        12px;
}


.team-member-card {
    display: grid;

    gap: 16px;

    padding:
        18px;

    margin-bottom:
        10px;

    border:
        1px solid
        var(--line);

    border-radius:
        13px;

    background:
        #fff;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.team-member-card:last-child {
    margin-bottom: 0;
}


.team-member-card:hover {
    border-color:
        #d6dbe4;

    box-shadow:
        0 6px 18px
        rgba(16, 24, 40, .04);
}


.team-member-main {
    display: flex;

    align-items: center;

    gap: 13px;
}


.member-avatar {
    width: 44px;
    height: 44px;

    flex: 0 0 auto;

    display: grid;

    place-items: center;

    border-radius:
        12px;

    background:
        var(--accent);

    color:
        #fff;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 5px 12px
        rgba(23, 35, 49, .10);
}


.member-copy {
    min-width: 0;

    display: grid;

    gap: 2px;

    flex: 1;
}


.team-member-name-row {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}


.team-member-name-row strong {
    color:
        var(--ink);

    font-size: 13px;
}


.member-copy > span {
    color:
        var(--muted);

    font-size: 11px;

    overflow-wrap:
        anywhere;
}


.member-copy > small {
    margin-top: 3px;

    color:
        #8c95a2;

    font-size: 9px;

    font-weight: 700;

    text-transform:
        uppercase;

    letter-spacing:
        .05em;
}



/* =========================================================
   STATUS
   ========================================================= */

.team-status {
    display: inline-flex;

    align-items: center;

    min-height: 21px;

    padding:
        0
        7px;

    border-radius:
        999px;

    font-size: 9px;

    font-weight: 800;
}


.team-status.active {
    background:
        var(--green-bg);

    color:
        var(--green);
}


.team-status.inactive {
    background:
        #f1f3f6;

    color:
        #7d8795;
}



/* =========================================================
   MEMBER CONTROLS
   ========================================================= */

.team-member-controls {
    display: grid;

    grid-template-columns:
        minmax(140px, 190px)
        minmax(180px, 1fr)
        auto;

    gap: 12px;

    align-items: end;

    padding-top:
        15px;

    border-top:
        1px solid
        var(--line);
}


.team-control-group {
    display: grid;

    gap: 6px;
}


.team-control-group label {
    color:
        #596578;

    font-size: 9px;

    font-weight: 800;

    text-transform:
        uppercase;

    letter-spacing:
        .05em;
}


.team-member-controls select {
    width: 100%;

    min-height: 38px;

    padding:
        8px
        31px
        8px
        10px;

    border:
        1px solid
        #d8dee8;

    border-radius:
        9px;

    outline: 0;

    background:
        #fff;

    color:
        var(--ink);

    font-size: 11px;
}


.team-member-controls select:focus {
    border-color:
        #9da8b6;

    box-shadow:
        0 0 0 3px
        rgba(23, 35, 49, .06);
}



/* =========================================================
   ACTIVE TOGGLE
   ========================================================= */

.team-active-toggle {
    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 13px;

    padding:
        8px
        10px;

    border:
        1px solid
        #e1e5eb;

    border-radius:
        9px;

    background:
        #fafbfd;

    cursor:
        pointer;
}


.team-active-toggle > div {
    display: grid;

    gap: 1px;
}


.team-active-toggle strong {
    font-size:
        10px;
}


.team-active-toggle small {
    color:
        var(--muted);

    font-size:
        9px;
}


.team-active-toggle input {
    position:
        absolute;

    opacity:
        0;

    pointer-events:
        none;
}


.team-toggle-switch {
    position:
        relative;

    width:
        36px;

    height:
        21px;

    flex:
        0
        0
        auto;

    border-radius:
        999px;

    background:
        #cdd3dc;

    transition:
        .16s ease;
}


.team-toggle-switch::after {
    content:
        "";

    position:
        absolute;

    top:
        3px;

    left:
        3px;

    width:
        15px;

    height:
        15px;

    border-radius:
        50%;

    background:
        #fff;

    box-shadow:
        0 1px 3px
        rgba(0,0,0,.16);

    transition:
        .16s ease;
}


.team-active-toggle
input:checked
+
.team-toggle-switch {
    background:
        var(--accent);
}


.team-active-toggle
input:checked
+
.team-toggle-switch::after {
    transform:
        translateX(15px);
}


.team-save-button {
    min-height:
        38px;

    margin-top:
        0;

    white-space:
        nowrap;
}



/* =========================================================
   ADD MEMBER PANEL
   ========================================================= */

.team-add-panel {
    overflow:
        hidden;
}


.team-add-head {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding:
        20px;

    border-bottom:
        1px solid
        var(--line);

    background:
        linear-gradient(
            145deg,
            #fafbfd,
            #fff
        );
}


.team-add-icon {
    width:
        36px;

    height:
        36px;

    flex:
        0
        0
        auto;

    display:
        grid;

    place-items:
        center;

    border-radius:
        10px;

    background:
        var(--accent);

    color:
        #fff;

    font-size:
        19px;

    font-weight:
        500;
}


.team-add-head h2 {
    margin:
        0;

    color:
        var(--ink);

    font-size:
        14px;

    letter-spacing:
        -.02em;
}


.team-add-head p {
    margin:
        3px
        0
        0;

    color:
        var(--muted);

    font-size:
        10px;

    line-height:
        1.45;
}


.team-add-form {
    display:
        grid;

    gap:
        16px;
}


.team-name-grid {
    display:
        grid;

    grid-template-columns:
        1fr
        1fr;

    gap:
        11px;
}


.team-add-form
.field-group {
    display:
        grid;

    gap:
        6px;
}


.team-add-form
.field-group label {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    color:
        #515d70;

    font-size:
        10px;

    font-weight:
        750;
}


.team-add-form
.field-group label small {
    color:
        #9199a5;

    font-size:
        8px;

    font-weight:
        500;
}


.team-add-form input,
.team-add-form select {
    min-height:
        43px;

    border-radius:
        10px;
}


.team-add-note {
    display:
        grid;

    grid-template-columns:
        22px
        minmax(0, 1fr);

    gap:
        9px;

    padding:
        11px
        12px;

    border:
        1px solid
        #e3e6eb;

    border-radius:
        10px;

    background:
        #f7f8fa;
}


.team-add-note > span {
    width:
        20px;

    height:
        20px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        50%;

    background:
        #e8ebef;

    color:
        #5d6878;

    font-size:
        9px;

    font-weight:
        800;
}


.team-add-note p {
    margin:
        0;

    color:
        var(--muted);

    font-size:
        9px;

    line-height:
        1.5;
}


.team-add-button {
    min-height:
        44px;

    margin-top:
        0;
}



/* =========================================================
   EMPTY STATE
   ========================================================= */

.team-empty-state {
    padding:
        44px
        20px;

    text-align:
        center;
}


.team-empty-icon {
    width:
        48px;

    height:
        48px;

    display:
        grid;

    place-items:
        center;

    margin:
        0
        auto
        12px;

    border-radius:
        13px;

    background:
        var(--soft);

    font-size:
        18px;
}


.team-empty-state h3 {
    margin:
        0
        0
        5px;

    font-size:
        14px;
}


.team-empty-state p {
    max-width:
        330px;

    margin:
        0
        auto;

    color:
        var(--muted);

    font-size:
        10px;

    line-height:
        1.5;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .team-layout {
        grid-template-columns:
            1fr;
    }


    .team-add-panel {
        max-width:
            620px;
    }


    .team-add-panel.sticky-panel {
        position:
            static;
    }

}


@media (max-width: 720px) {

    .team-summary-strip {
        grid-template-columns:
            105px
            minmax(0, 1fr);
    }


    .team-member-controls {
        grid-template-columns:
            1fr;
    }


    .team-save-button {
        width:
            100%;
    }


    .team-name-grid {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 520px) {

    .team-summary-strip {
        grid-template-columns:
            1fr;
    }


    .team-summary-stat {
        display:
            flex;

        align-items:
            center;

        justify-content:
            space-between;

        border-right:
            0;

        border-bottom:
            1px solid
            var(--line);
    }


    .team-summary-stat span {
        margin-bottom:
            0;
    }


    .team-summary-copy {
        align-items:
            flex-start;
    }


    .team-member-card {
        padding:
            15px;
    }


    .team-member-main {
        align-items:
            flex-start;
    }


    .member-avatar {
        width:
            40px;

        height:
            40px;
    }


    .team-member-controls {
        gap:
            10px;
    }

}

/* =========================================================
   PUBLIC BASE
   ========================================================= */

html,
body.public-intake-body {
    margin: 0;
    min-height: 100%;
}

body.public-intake-body {
    background: var(--client-bg);
    color: var(--client-ink);
}

.public-message-wrap {
    width: min(
        600px,
        calc(100% - 28px)
    );

    margin:
        14px
        auto
        0;
}

.public-message {
    padding:
        12px
        14px;

    border:
        1px solid
        #ddd5ca;

    border-radius:
        11px;

    background:
        #fffdf9;

    color:
        #59605f;

    font-size:
        12px;

    box-shadow:
        0 4px 14px
        rgba(30, 25, 20, .04);
}

/* =========================================================
   PRIVATE MEDIA VIEWER
   ========================================================= */

.viewer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 14px 0 22px;
}

.viewer-head h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.035em;
}

.media-viewer-panel {
    min-height: 640px;
    padding: 0;
    overflow: hidden;
    background: #0c1422;
}

.media-pdf-frame,
.media-text-frame {
    display: block;
    width: 100%;
    height: 76vh;
    min-height: 640px;
    border: 0;
    background: #fff;
}

.media-image-wrap {
    min-height: 640px;
    display: grid;
    place-items: center;
    padding: 28px;
    background: #111a28;
}

.media-image-wrap img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 8px;
}

.media-player-wrap {
    min-height: 560px;
    display: grid;
    place-items: center;
    padding: 28px;
}

.media-player-wrap video {
    width: min(1100px, 100%);
    max-height: 76vh;
    border-radius: 12px;
    background: #000;
}

.media-audio-wrap {
    min-height: 320px;
    display: grid;
    place-items: center;
    padding: 40px;
}

.media-audio-wrap audio {
    width: min(700px, 100%);
}

.media-no-preview {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: #d8e1ef;
}

.media-no-preview p {
    max-width: 540px;
    color: #8f9db0;
}

.doc-icon.large {
    width: 64px;
    height: 64px;
    font-size: 11px;
    margin-bottom: 18px;
}

.document-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 720px) {

    .viewer-head {
        display: grid;
    }

    .media-pdf-frame,
    .media-text-frame {
        height: 70vh;
        min-height: 500px;
    }

    .document-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .document-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}
