@font-face{font-family:Inter;src:url('/assets/inter-400.ttf')}@font-face{font-family:Inter;src:url('/assets/inter-600.ttf');font-weight:600}*{box-sizing:border-box}body{margin:0;background:#f7f8f4;color:#19364b;font-family:Inter,Arial,sans-serif;font-size:14px}header{display:flex;align-items:center;gap:25px;padding:18px 30px;background:white;border-bottom:1px solid #e0e6e6;flex-wrap:wrap}header img{width:210px;display:block}nav{display:flex;gap:5px;flex:1;flex-wrap:wrap}button,.upload{font:inherit;cursor:pointer;border:1px solid #cdd8dc;border-radius:8px;background:#fff;color:#19364b;padding:11px 15px;font-weight:600}button:hover{background:#edf2f2}button:disabled{opacity:.45;cursor:default}nav button{border:0;font-size:12px}nav button.active{background:#eaf0f1}button.primary{background:#19364b;color:white;border-color:#19364b}.gold{background:#e2c783;border-color:#e2c783}.link{border:0;background:transparent;font-size:11px;text-decoration:underline}main{max-width:1480px;margin:auto;padding:0 32px}.status-bar{display:flex;justify-content:space-between;gap:15px;font-size:11px;padding:22px 0;color:#627784}.hero{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;border-radius:20px;background:#fbf6ea;border:1px solid #ece3d1;overflow:hidden;padding:28px 38px;margin-bottom:20px}.hero img{width:100%;height:245px;object-fit:contain;mix-blend-mode:multiply}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:600;color:#967528}h1{font-family:Georgia,serif;font-weight:400;font-size:44px;letter-spacing:-1.5px;line-height:1.08;margin:16px 0}h2{font-size:18px;margin:0 0 14px}p{line-height:1.7;color:#5e7482}.notice{padding:14px 18px;background:#f2ead6;border-left:3px solid #b89c4c;border-radius:5px;font-size:12px;line-height:1.7;margin:20px 0}.pricing-layout{display:grid;grid-template-columns:400px minmax(0,1fr);gap:25px}form,.panel,.file{background:white;padding:24px;border:1px solid #dfe6e7;border-radius:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{display:block;font-size:11px;font-weight:600;color:#38576a;margin-bottom:13px}input,select,textarea{display:block;width:100%;padding:11px 10px;border:1px solid #cdd7db;border-radius:6px;margin-top:7px;font:inherit;font-size:13px;color:#17364a;background:#fff}input[type=file]{font-size:11px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.section-title h2{margin:0}.section-title>span{font-size:11px;color:#647c8b}.small,details p{font-size:11px;line-height:1.7;color:#6a7d87}details{border-top:1px solid #e1e7e7;padding:16px 0;margin-top:10px}summary{font-weight:600;cursor:pointer;font-size:12px}form>.primary{width:100%;margin-top:12px}.table-wrap{overflow:auto;border:1px solid #dce4e7;background:white;border-radius:10px}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;background:#edf2f3;font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:#577182}th,td{padding:14px 11px;border-bottom:1px solid #e4e9e9}td strong.rate{font-size:19px}td small{display:block;color:#70838d;font-size:10px;margin-top:5px}.table-wrap button{font-size:11px;padding:8px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.metrics>div{background:#ecf1ef;border-radius:8px;padding:16px}.metrics small{display:block;font-size:10px;color:#687f89}.metrics strong{font-size:23px;display:block;margin-top:8px}.page-heading{margin:30px 0}.page-heading p{max-width:760px}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.upload{font-size:12px;margin:0}.upload input{max-width:230px}.readiness{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.readiness article{background:white;border-radius:12px;padding:25px;border:1px solid #dde5e6}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #dfe5e5;padding:25px 0;margin-top:50px;color:#7d8d94;font-size:10px}dialog{width:980px;max-width:95vw;max-height:90vh;border:1px solid #d5dddf;border-radius:16px;padding:28px;color:#19364b}dialog::backdrop{background:#142f46aa}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}dialog h2{font-size:28px;font-family:Georgia,serif}.source-cell{font-family:monospace;font-size:11px}#guide{background:#19364b;color:white;border-radius:12px;padding:22px 26px;margin-bottom:20px}#guide h2{margin:10px 0}#guide p{color:#d0dbe1;max-width:950px;font-size:13px}#guide .eyebrow{color:#e2c783}#guide .actions{justify-content:flex-end}.error{background:#fbe9e4;border-left-color:#ac5740}.file{margin-top:15px}.hash{overflow-wrap:anywhere;font-family:monospace;font-size:11px}.pill{display:inline-block;background:#eee5c9;padding:5px 9px;border-radius:5px;font-size:10px}.review-form{margin-top:20px}.review-form .form-grid{grid-template-columns:repeat(3,1fr)}[hidden]{display:none!important}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #aa8636;outline-offset:3px}@media(max-width:1000px){.pricing-layout{grid-template-columns:1fr}.hero h1{font-size:36px}header{gap:12px}nav{order:3;width:100%;flex:auto}.status-bar{flex-direction:column;gap:7px}}@media(max-width:600px){main{padding:0 16px}header{padding:14px 16px}header img{width:170px}.hero{grid-template-columns:1fr;padding:25px}.hero img{height:180px}.hero h1{font-size:35px}.metrics,.readiness{grid-template-columns:1fr}.metrics{gap:7px}.metrics>div{padding:10px}.metrics strong{font-size:20px}.review-form .form-grid{grid-template-columns:1fr}.form-grid{gap:10px}form,.panel{padding:18px}footer{flex-direction:column}.status-bar{font-size:10px}h1{font-size:36px}th,td{padding:12px 9px}}
input[type=checkbox]{display:inline-block;width:auto;margin-right:8px}.source-picker{max-width:330px}#captured-validation{margin:20px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere}
#stack-workspace{margin-top:30px}#stack-workspace td{white-space:normal;min-width:190px;vertical-align:top}#stack-workspace td:first-child{min-width:80px}#stack-workspace button{margin-top:8px}#stack-workspace small{line-height:1.5}#term-preview{margin-top:20px}#term-editor .file{padding:15px}

#stack-workspace .section-title{flex-wrap:wrap}#stack-workspace .compact-stack td{min-width:0;white-space:nowrap;vertical-align:middle;padding:8px 10px;font-variant-numeric:tabular-nums}#stack-workspace .compact-stack button{margin:0;padding:6px 10px}#stack-workspace .compact-stack tbody tr:hover{background:#faf7ee}#stack-workspace .compact-stack .rebate{color:#806424;font-weight:600}#stack-workspace .compact-stack td:has(small){min-width:170px}#stack-workspace .compact-stack td small{margin:4px 0 7px}

.fixed-assumptions{padding:12px;background:#edf2f3;border-radius:8px;font-size:11px}#ltv-preview{background:#fff;font-weight:600}#scenario .form-grid{align-items:start}

.selection-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#edf2f3;padding:12px;border-radius:8px;margin:16px 0;position:sticky;top:0;z-index:2}.selection-toolbar span{flex:1;font-size:12px}#stack-workspace input[type=checkbox]{width:18px;height:18px;accent-color:#19364b;cursor:pointer;margin:0}.raw-only{font-size:10px;color:#687a85}.outside-limit{color:#73828b;background:#f5f6f6}.selected-cell{background:#f3e7c8}

.broker-option-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.broker-option-grid .file{margin:0;padding:20px}.broker-option-grid h2{font-size:30px;margin-top:12px}#broker-sheet-workspace{margin-top:20px}

.resource-heading{padding:38px 0 20px;max-width:800px}.resource-heading h1{font-size:42px}.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.resource-grid h2{line-height:1.4}.resource-icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#f4e6c1;color:#7a5d1d;font-size:23px;margin-bottom:20px}.resource-task{padding:14px 18px;background:#f6f4ee;border-radius:9px;line-height:1.6}.checklist-item{display:flex;align-items:center;gap:9px;font-size:13px;padding:9px 0;border-bottom:1px solid #edf0f1}.checklist-item input{flex-shrink:0}.processing-resource{background:#19364b;color:white}.processing-resource p{color:#d3dfe4}.processing-resource .eyebrow{color:#e2c783}.processing-resource li{padding:10px 0;line-height:1.7}.processing-resource img{display:block;max-width:100%;margin:auto;border-radius:14px}.resource-grid form>button{margin-top:12px}#points-output{padding-top:20px;line-height:1.8}@media(max-width:760px){.resource-grid{grid-template-columns:1fr}.resource-heading h1{font-size:34px}}

.academy-banner{background:#19364b;color:white;border-radius:18px;padding:36px;margin:26px 0}.academy-banner .eyebrow{color:#e2c783}.academy-banner p{color:#d2dfe4}.academy-search{display:grid;grid-template-columns:2fr 1fr;gap:20px}.academy-card{display:flex;flex-direction:column;align-items:flex-start}.academy-card h2{margin-top:18px}.academy-card button{margin-top:auto}:is(#academy-reader,#journal-reader){max-width:760px}:is(#academy-reader,#journal-reader) h1{font-size:34px}:is(#academy-reader,#journal-reader) h2{margin-top:28px}.broker-helper{position:fixed;bottom:22px;right:22px;z-index:20}#helper-launch{background:#19364b;color:white;box-shadow:0 6px 24px #19364b33;border:1px solid #c2a666;border-radius:28px;padding:15px 22px}#helper-panel{position:absolute;bottom:65px;right:0;width:350px;max-width:calc(100vw - 32px);max-height:70vh;overflow:auto;padding:20px;background:white;border:1px solid #dce3e5;border-radius:18px;box-shadow:0 12px 50px #19364b33}.helper-top{display:flex;justify-content:space-between;align-items:center}.helper-topics{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.helper-topics button{font-size:12px}.helper-top button{border:0;padding:6px 10px}#helper-tools{margin-top:15px}.extra-result{font-weight:600;color:#19364b}@media(max-width:600px){.academy-search{grid-template-columns:1fr;gap:0}.academy-banner{padding:24px}.broker-helper{right:16px;bottom:16px}}

.illustrated-banner{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,.8fr);align-items:center;gap:30px;overflow:hidden}.resource-heading.illustrated-banner{max-width:none;background:#fbf6ea;border:1px solid #ece3d1;border-radius:18px;padding:26px 34px;margin:26px 0}.banner-art{width:100%;height:240px;object-fit:contain;border-radius:16px;background:#fbf6ea}.academy-banner.illustrated-banner{padding:30px 34px}.academy-banner h1{font-size:38px}.guide-art{width:112px;height:82px;object-fit:cover;border-radius:13px;margin:0 0 18px;background:#fbf6ea}.academy-card{position:relative;transition:box-shadow .18s,border-color .18s}.academy-card:hover{border-color:#c9b27c;box-shadow:0 7px 20px #19364b0c}.processing-resource img{width:100%;max-width:340px;margin-top:20px}.resource-grid .resource-icon{box-shadow:3px 3px 0 #e8ddbf}@media(max-width:700px){.illustrated-banner{grid-template-columns:1fr;gap:10px}.banner-art{height:170px}.academy-banner h1{font-size:32px}.resource-heading.illustrated-banner,.academy-banner.illustrated-banner{padding:24px}.guide-art{width:90px;height:66px}}@media(prefers-reduced-motion:reduce){.academy-card{transition:none}}

:is(#academy-cards,#journal-cards){grid-template-columns:repeat(3,minmax(0,1fr))}.academy-cover-card.panel{padding:0;overflow:hidden;align-items:stretch;border-radius:16px}.academy-cover-card .academy-cover{position:relative;display:block;width:100%;padding:0;border:0;border-radius:0;margin:0;background:#fbf6ea;overflow:hidden;text-align:left}.academy-cover img{width:100%;height:220px;display:block;object-fit:cover;transition:transform .25s}.academy-cover:hover img{transform:scale(1.025)}.cover-label{position:absolute;bottom:14px;left:16px;background:#19364bed;color:#fff;border-radius:20px;padding:7px 12px;font-size:10px;letter-spacing:.3px}.academy-card-copy{padding:24px;display:flex;flex-direction:column;align-items:flex-start;flex:1}.academy-card-copy h2{margin:12px 0 0;line-height:1.4}.academy-card-copy p{margin-bottom:24px}.academy-card-copy .eyebrow{font-size:9px}.academy-cover:focus-visible{outline-offset:-4px;z-index:1}@media(max-width:1100px){:is(#academy-cards,#journal-cards){grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){:is(#academy-cards,#journal-cards){grid-template-columns:1fr}.academy-cover img{height:210px}}@media(prefers-reduced-motion:reduce){.academy-cover img{transition:none}.academy-cover:hover img{transform:none}}

#helper-launch{min-width:230px;text-align:left;border-radius:16px;padding:15px 22px;border-color:#d5bc7c}.helper-launch-title{display:block;font-size:15px;letter-spacing:.1px}.helper-launch-caption{display:block;color:#e3d3ab;font-size:11px;font-weight:400;margin-top:5px}#helper-panel{width:410px;bottom:86px;padding:24px;max-height:75vh}#helper-panel h2{margin:18px 0 6px;font-size:21px}#helper-panel .helper-topics{display:grid;grid-template-columns:1fr 1fr;gap:8px}#helper-panel .helper-topics button{text-align:left;line-height:1.4;background:#f7f6f0;font-weight:400}.helper-shortcuts{display:grid;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid #e2e7e7}.helper-shortcuts button{text-align:left;font-size:12px}#helper-tools{margin-top:4px}#helper-answer:empty{display:none}@media(max-width:600px){#helper-launch{min-width:190px;padding:12px 17px}#helper-panel{padding:18px;bottom:78px;max-height:70vh}}

.currency-field{position:relative;display:block;margin-top:7px}.currency-field input{margin-top:0;padding-left:28px;width:100%;font-variant-numeric:tabular-nums}.currency-prefix{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#647c8b;font-size:13px;font-weight:600;pointer-events:none}

.processing-dashboard{scroll-margin-top:20px}.processing-dashboard .section-title{flex-wrap:wrap}.processing-dashboard .resource-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.processing-stages{display:flex;gap:8px;list-style:none;padding:0;flex-wrap:wrap;margin:22px 0}.processing-stages li{padding:10px;border-radius:8px;background:#f0f3f3;color:#647985;font-size:12px}.processing-stages .current{background:#19364b;color:white}.processing-stages .done{background:#eee5cb;color:#72591e}.processing-timeline{border-left:2px solid #c8ae68;padding-left:22px}.processing-timeline article{padding:12px 0;border-bottom:1px solid #e5e9e9}.processing-log-heading{margin-top:26px}

.relay-brand{display:flex;align-items:center;gap:24px;margin:26px 0 10px;flex-wrap:wrap}.relay-brand img{width:265px;height:auto}.relay-brand span{font-size:12px;color:#6a7d87;border-left:1px solid #cbd6db;padding-left:24px}

.workspace-switch{margin:0;font-size:10px;min-width:185px}.workspace-switch select{margin-top:4px;padding:8px;font-size:12px}.quick-scenarios{margin:20px 0}.quick-scenarios .actions button{flex:1;min-width:100px;background:#fbf6ea;border-color:#dfcfaa}.quick-scenarios .actions button:hover{background:#f0e2bd}

.quick-scenarios.compact-presets{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 18px;color:#6a7d87;font-size:11px}.compact-presets .actions{gap:5px}.quick-scenarios.compact-presets .actions button{flex:none;min-width:0;font-size:11px;padding:6px 9px;background:transparent;border-color:#dce3e5;font-weight:400}.compact-presets #quick-scenario-status{margin:0;font-size:10px}
.control-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.control-heading h2{margin:8px 0}.control-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.control-grid article{border:1px solid #dae3e6;border-radius:12px;padding:20px;background:#f7f9f8;overflow-wrap:anywhere}.control-grid h3{font-size:17px;line-height:1.4;margin:12px 0}.control-grid p,.control-review p{font-size:13px;line-height:1.7}.control-grid small{color:#657d8e;line-height:1.6}.control-review{display:grid;grid-template-columns:1fr 1fr;gap:28px;border-top:1px solid #dce3e5;padding:24px 0}.control-review ol{padding-left:20px;font-size:13px;line-height:2}.control-review>div:last-child{background:#faf5e9;padding:22px;border-radius:12px}.control-table{overflow-x:auto}.control-table table{width:100%}@media(max-width:1000px){.control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.control-grid,.control-review{grid-template-columns:1fr}.control-heading{align-items:flex-start;flex-direction:column}}

/* Broker pricing: concise workflow and source context. */
.broker-pricing-guide{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:22px 26px;background:#fff;border:1px solid #d9e2e6;border-radius:14px;margin:0 0 24px}.broker-pricing-guide strong{display:block;margin-top:5px}.broker-pricing-guide p{font-size:13px;line-height:1.6;margin:8px 0 0;color:#667e8c}.pricing-state{padding-left:24px;border-left:1px solid #d9e2e6}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b88725}.pricing-source{border-left:3px solid #b88725;background:#f5f1e5;padding:12px 16px;margin-bottom:16px;font-size:12px;line-height:1.6;color:#294758}@media(max-width:700px){.broker-pricing-guide{grid-template-columns:1fr;gap:16px}.pricing-state{padding-left:0;padding-top:16px;border-left:0;border-top:1px solid #d9e2e6}}

.control-readiness{padding:20px 24px;margin:20px 0;background:#f5f1e5;border:1px solid #e0d3ac;border-left:4px solid #b88725;border-radius:10px}.control-readiness h3{margin:8px 0}.control-readiness li{margin:8px 0;line-height:1.5}.control-history{margin:24px 0}.control-table td{overflow-wrap:anywhere}

.control-inbox{margin:24px 0;padding:24px;border:1px solid #d9e2e6;border-radius:14px;background:#fff}.control-inbox .control-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:20px 0}.control-inbox article strong{font-size:28px;color:#19394d}
#relay-team form[data-dirty="true"]{border-left:3px solid #b88725;padding-left:16px}#relay-team .relay-discard{margin-left:10px}#relay-team form [role="status"]{min-height:1.5em}#relay-status:not(:empty){padding:12px 16px;background:#f5f1e5;border-radius:8px;color:#19394d}

#scenario [aria-invalid="true"]{border:2px solid #ad533d;background:#fff8f5}.input-review{border-left:4px solid #ad533d}.input-review li{margin:12px 0}.input-review .link{text-align:left;white-space:normal;line-height:1.5}

/* Mobile forms stay readable without input zoom; tables scroll within their cards. */
@media(max-width:600px){
 main{padding-bottom:110px}
 .pricing-layout>*,.form-grid>*,.resource-grid>*,.broker-option-grid>*{min-width:0}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;min-height:44px}
 button,.upload{min-height:44px}
 header nav{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:4px}
 header nav button{flex:0 0 auto}
 .section-title{flex-wrap:wrap}
 .processing-dashboard .resource-grid,.form-grid{grid-template-columns:minmax(0,1fr)}
 dialog{padding:18px;max-height:90dvh}
 .table-wrap{max-width:100%;overscroll-behavior-x:contain}
 .broker-helper{bottom:max(12px,env(safe-area-inset-bottom));right:12px}
 #helper-launch{min-width:0;padding:11px 16px}
 .helper-launch-caption{display:none}
 #helper-panel{bottom:60px;max-height:65dvh}
 .workspace-switch{min-width:0;max-width:100%}
}

.account-panel{max-width:620px;margin:32px auto}.invitation-list{display:grid;gap:16px}.invitation-list .checklist-item{display:block;overflow-wrap:anywhere}#invitation-link{width:100%}

/* Keep navigation links consistent with workspace buttons. */
header nav a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;font:inherit;font-size:12px;font-weight:600;line-height:normal;padding:11px 15px;border:0;border-radius:8px;background:#fff;color:#19364b;text-decoration:none;cursor:pointer}
header nav a:hover{background:#edf2f2}
header nav a[aria-current="page"]{background:#eaf0f1}
header nav a:focus-visible{outline:3px solid #aa8636;outline-offset:3px}

/* Broker activity tables remain inside the page on narrow screens. */
.analytics-page .table-wrap{overflow-x:auto;max-width:100%}.analytics-page table{min-width:1100px;width:100%}.analytics-page th,.analytics-page td{text-align:left;vertical-align:top}.analytics-page .broker-option-grid{margin:20px 0}.analytics-page .file h2{font-size:36px;margin:12px 0}.analytics-page .panel{min-width:0}

/* Compact team navigation, with native keyboard-operable disclosures. */
header nav{align-items:center}.team-nav-menu{position:relative;border:0;padding:0;margin:0}.team-nav-menu summary{list-style:none;cursor:pointer;padding:11px 15px;border-radius:8px;font-size:12px;font-weight:600;white-space:nowrap}.team-nav-menu summary::-webkit-details-marker{display:none}.team-nav-menu summary::after{content:'⌄';margin-left:8px}.team-nav-menu summary:hover,.team-nav-menu[open]>summary,.team-nav-menu summary.active,.team-nav-menu:has(button.active)>summary{background:#eaf0f1}.team-nav-menu summary:focus-visible{outline:2px solid #148b82;outline-offset:2px}.team-nav-dropdown{position:absolute;top:calc(100% + 6px);right:0;min-width:180px;padding:6px;border:1px solid #dce5e5;border-radius:12px;background:#fff;box-shadow:0 12px 28px #19364b22;z-index:50;display:grid;gap:3px}.team-nav-dropdown a,.team-nav-dropdown button{text-align:left;width:100%;white-space:nowrap}.team-nav-dropdown a[aria-current=page]{background:#eaf0f1}@media(max-width:600px){.team-nav-dropdown{left:0;right:auto}}

header nav>button,header nav>a,header nav .team-nav-menu>summary{line-height:18px;padding:11px 15px}

.scenario-save-bar{padding:16px;background:#f0f6f5;border:1px solid #d4e5e1;border-radius:10px;margin-bottom:20px}.scenario-save-bar .actions{justify-content:flex-start;flex-wrap:wrap}.scenario-save-bar button{font-size:12px}.scenario-save-bar label{margin-bottom:8px}.scenario-save-bar [role=status]{margin-bottom:0}.scenario-column{min-width:0}.scenario-column>#quick-dscr{margin-top:16px}.scenario-column>#quick-dscr form{border:0;padding:12px 0 0}.scenario-column>#quick-dscr .form-grid{grid-template-columns:1fr 1fr}

.scenario-save-bar{padding:0 0 14px;background:transparent;border:0;border-bottom:1px solid var(--line,#d4e5e1);border-radius:0;margin-bottom:18px}.scenario-save-bar .actions{gap:8px}.scenario-save-bar [role=status]{font-size:12px;color:#526d7b;min-height:18px}.scenario-save-bar input{width:100%}

.inline-dscr{margin:18px 0;padding:16px;background:#f0f6f5;border:1px solid #d4e5e1;border-radius:10px}.inline-dscr h3{margin:0 0 8px}.inline-dscr h3 span{font-weight:400;margin-left:8px}.inline-dscr>label{display:block;margin-bottom:14px}.inline-dscr .notice{background:white}

/* Compact team workspace; referral pages retain their own layout. */
.team-pricing-page main{max-width:1600px;padding:0 24px}
.team-pricing-page .workspace-source{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 0;border-bottom:1px solid #dfe6e7}
.team-pricing-page .status-bar{padding:0;flex-direction:column;gap:5px}
.team-pricing-page .source-picker{margin:0;width:300px;flex-shrink:0}
.team-pricing-page .workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0 12px}
.team-pricing-page .workspace-heading h1{font-family:Inter,Arial,sans-serif;font-size:26px;letter-spacing:-.6px;font-weight:600;margin:6px 0 0}
.team-pricing-page .workspace-heading p{font-size:12px;margin:0}
.team-pricing-page .pricing-reference,.team-pricing-page .compact-presets{display:block;border:0;padding:8px 12px;margin:0 0 8px;background:#eef2f1;border-radius:6px}
.team-pricing-page .compact-presets .actions{margin-top:12px}
.team-pricing-page .pricing-reference .notice{margin:12px 0 0}
.team-pricing-page #quick-scenario-status:empty{display:none}
.team-pricing-page .saved-scenarios:not([open]){display:none}
.team-pricing-page .saved-scenarios[open]{margin:10px 0;padding:18px}
.team-pricing-page .pricing-layout{grid-template-columns:minmax(420px,.85fr) minmax(0,1.35fr);gap:20px;margin-top:14px;align-items:start}
.team-pricing-page #scenario{padding:20px}
.team-pricing-page #scenario .form-grid{gap:8px 14px}
.team-pricing-page #scenario label{margin-bottom:6px}
.team-pricing-page #scenario input,.team-pricing-page #scenario select{padding:9px 10px;margin-top:5px}
.team-pricing-page #scenario .section-title{margin-bottom:12px}
.team-pricing-page #scenario-review{padding:8px 10px;margin:10px 0;font-size:11px}
.team-pricing-page .scenario-save-bar{margin-bottom:12px;padding-bottom:10px}
.team-pricing-page .scenario-save-bar .actions{margin-top:8px}
.team-pricing-page .scenario-save-bar button{padding:7px 10px}
.team-pricing-page .inline-dscr{padding:12px;margin:12px 0}
@media(max-width:1000px){.team-pricing-page .pricing-layout{grid-template-columns:1fr}.team-pricing-page .workspace-heading{align-items:flex-start;flex-direction:column;gap:6px}}
@media(max-width:600px){.team-pricing-page main{padding:0 14px}.team-pricing-page .workspace-source{align-items:stretch;flex-direction:column;gap:10px}.team-pricing-page .source-picker{width:100%;max-width:none}.team-pricing-page #scenario{padding:14px}.team-pricing-page .workspace-heading h1{font-size:23px}}

/* Currency prefix spacing must win over the compact form input rule. */
.team-pricing-page #scenario .currency-field{margin-top:5px}
.team-pricing-page #scenario .currency-field input{padding-left:30px;margin-top:0}
.team-pricing-page #scenario .currency-prefix{left:11px}
.team-pricing-page .pricing-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:28px 24px;background:linear-gradient(145deg,#fff,#faf6ec);border-color:#e7e1d3}
.team-pricing-page .pricing-empty img{width:280px;max-width:85%;height:180px;object-fit:contain;mix-blend-mode:multiply;margin-bottom:14px}
.team-pricing-page .pricing-empty h2{font-size:23px;margin-bottom:8px}
.team-pricing-page .pricing-empty p{max-width:390px;margin:0 0 20px}
.team-pricing-page .pricing-empty ol{display:flex;gap:12px;list-style:none;padding:0;margin:0;width:100%;max-width:520px;counter-reset:step}
.team-pricing-page .pricing-empty li{flex:1;font-size:12px;padding:12px 8px;border:1px solid #e2e8e7;border-radius:8px;background:#ffffffb3;counter-increment:step}
.team-pricing-page .pricing-empty li:before{content:counter(step);display:block;margin:0 auto 7px;background:#e9efed;color:#19364b;width:24px;line-height:24px;border-radius:50%;font-weight:600}
@media(max-width:600px){.team-pricing-page .pricing-empty{padding:20px 14px}.team-pricing-page .pricing-empty img{height:130px}.team-pricing-page .pricing-empty ol{gap:6px}}
@media(min-width:1001px){.team-pricing-page .pricing-layout>div:last-child:has(.pricing-empty){position:sticky;top:18px}}

.address-search{display:grid;gap:8px;margin-top:8px}.address-search button{justify-self:start}.address-search small{line-height:1.5}.address-search gmp-place-autocomplete{width:100%;color-scheme:light}

.sheet-edit-toolbar{position:sticky;top:0;z-index:5;background:white;padding:12px;border-bottom:1px solid #d5e2e5}.sheet-edit-toolbar h2{font-family:inherit!important;font-size:22px!important;margin:0}.sheet-edit-toolbar p{margin:6px 0;font-size:13px}.sheet-edit-panel{padding:18px;background:#eff7f4;border:1px solid #a9c9bf;border-radius:10px;margin:12px 0}.sheet-edit-panel [data-fields]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sheet-edit-panel fieldset{grid-column:1/-1;min-width:0}.sheet-edit-panel label{display:block}.sheet-edit-panel input,.sheet-edit-panel textarea{width:100%;box-sizing:border-box}.sheet-edit-panel [data-fields]>label:has(textarea){grid-column:1/-1}#term-preview{overflow:auto;background:#eaf0ee;padding:12px;border-radius:8px}@media(max-width:650px){.sheet-edit-panel [data-fields]{grid-template-columns:1fr}.sheet-edit-toolbar{position:static}}

.address-autocomplete{position:relative;min-width:0}.address-search{position:absolute;z-index:30;top:100%;left:0;right:0;margin-top:3px;background:white;border:1px solid #bfced5;border-radius:6px;box-shadow:0 6px 18px #18394c26;overflow:hidden;display:block}.address-search[hidden]{display:none}.address-search [role=option]{padding:11px 12px;cursor:pointer;color:#18394c;font-size:13px;line-height:1.4}.address-search [role=option]:hover,.address-search [aria-selected=true]{background:#edf6f2}.address-attribution{display:block;text-align:right;padding:8px 12px;border-top:1px solid #e4eaed;font-family:Arial,sans-serif;font-size:12px;color:#5e6266}

.compact-stack.prepay-comparison{table-layout:fixed;min-width:510px;white-space:normal}.prepay-comparison th:first-child,.prepay-comparison td:first-child{width:72px}.compact-stack.prepay-comparison th,.compact-stack.prepay-comparison td{padding:8px 10px;vertical-align:middle}.prepay-quote{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px}.prepay-quote small{margin-top:2px}.prepay-quote input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:0}.rate-unavailable{border:0;padding:0;margin:0}.rate-unavailable summary{font-size:10px;font-weight:400;color:#70838d}.rate-unavailable small{white-space:normal;line-height:1.4;overflow-wrap:anywhere}
/* Broker conversation guide: cash-flow trade-offs, without changing quoted terms. */
.guide-badge:empty{display:none}.guide-badge{display:block;color:#17665e;font-size:11px;font-weight:750;margin-top:10px}.broker-option-grid .guide-favorite{border:2px solid #227b73;box-shadow:0 0 0 3px #227b7310}.option-guide{margin-top:28px;border:1px solid #dce5e8;border-radius:18px;background:#fff;padding:28px}.option-guide:empty{display:none}.guide-heading{display:flex;gap:28px;justify-content:space-between;align-items:start}.guide-heading h2{font-size:26px;margin:10px 0}.guide-heading p{max-width:550px}.guide-heading label{min-width:200px;font-size:12px}.guide-heading select{display:block;width:100%;margin-top:8px}.guide-pick{background:#eff7f4;border-left:4px solid #227b73;padding:20px 24px;margin:20px 0;border-radius:0 12px 12px 0}.guide-pick h3{font-size:24px;margin:8px 0}.guide-pick p{margin:8px 0}.guide-chart{padding:12px 0}.guide-chart svg{width:100%;display:block;max-height:340px}.guide-chart svg text{font:12px system-ui;fill:#557080}.guide-legend{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:12px}.guide-legend i{display:inline-block;width:16px;height:4px;vertical-align:middle;margin-right:8px}.guide-table{overflow-x:auto;margin:22px 0}.guide-table table{width:100%;min-width:590px;border-collapse:collapse;text-align:left;font-size:13px}.guide-table caption{text-align:left;font-weight:750;padding:12px 0}.guide-table th,.guide-table td{padding:14px 10px;border-bottom:1px solid #e3e9eb}.guide-table thead{background:#f2f6f7}.guide-table small{display:block;font-weight:400;color:#557080;margin-top:4px}.guide-talk{background:#f7f5ee;border-radius:12px;padding:20px 24px}.guide-talk p{line-height:1.65}.guide-method{margin-top:20px;font-size:12px;color:#557080}.guide-method summary{cursor:pointer;font-weight:700}.guide-method p{line-height:1.65}.option-guide select:focus-visible,.guide-method summary:focus-visible{outline:3px solid #ad7925;outline-offset:3px}@media(max-width:640px){.option-guide{padding:18px}.guide-heading{display:block}.guide-heading label{display:block;margin-top:18px}.guide-heading h2{font-size:23px}.guide-pick,.guide-talk{padding:16px}.guide-chart svg text{font-size:13px}}
.guide-badge,.guide-badge:empty{display:block;min-height:16px;margin-top:10px}.guide-badge:empty{visibility:hidden}


/* Endorsed product brand: broker-led presentation with transparent Pillar support. */
.endorsed-brand{display:flex;flex-direction:column;gap:3px;text-decoration:none;flex-shrink:0}.endorsed-brand span{font-size:10px;letter-spacing:.035em;color:#516b7a;line-height:1.4}.partner-promise{max-width:620px;margin:24px auto;padding:24px;border-left:3px solid #b88629;background:#f4f2e9;border-radius:0 12px 12px 0}.partner-promise h2{font-size:21px;margin:12px 0}.partner-promise p,.partner-handoff p{line-height:1.65}.partner-handoff{margin-bottom:24px}@media(max-width:640px){.endorsed-brand span{font-size:9px}.partner-promise{padding:18px;margin:18px 0}}

.pillar-endorsement{display:flex;flex-direction:column;align-items:flex-start;border-left:4px solid #b88629;padding:8px 0 8px 20px;margin-bottom:24px;color:#19394c;gap:4px}.pillar-endorsement>span:first-child{font-size:11px;letter-spacing:.18em}.pillar-endorsement strong{font:700 42px Georgia,serif;letter-spacing:.12em;line-height:1.1}.pillar-endorsement .pillar-name{font-size:12px;letter-spacing:.23em}.endorsed-brand span{font-size:12px;font-weight:600}.prepay-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.prepay-offers .selected-offer{border:2px solid #b88629;background:#fffcf5}.prepay-offers button[aria-pressed=true]{background:#19394c;color:white}@media(max-width:800px){.prepay-offers{grid-template-columns:1fr}.pillar-endorsement strong{font-size:34px}}

/* Three offers above a centered pair; retain readable cards on small screens. */
.prepay-offers{grid-template-columns:repeat(6,minmax(0,1fr))}
.prepay-offers>article{grid-column:span 2}
.prepay-offers>article:nth-child(4){grid-column:2 / span 2}
.prepay-offers>article:nth-child(5){grid-column:4 / span 2}
@media(max-width:800px){.prepay-offers{grid-template-columns:1fr}.prepay-offers>article,.prepay-offers>article:nth-child(4),.prepay-offers>article:nth-child(5){grid-column:auto}}

.broker-sheet-action{text-align:center;margin:20px 0 28px}.broker-sheet-action #broker-create{display:inline-block;width:auto;max-width:100%;margin:0}.offer-visual{padding:24px;background:#fff;border:1px solid #d9e3e7;border-radius:14px;margin:0 0 24px}.offer-visual h2{margin:7px 0;font-size:23px}.offer-visual-scroll{overflow-x:auto}.offer-visual-table{width:100%;border-collapse:collapse;font-size:13px}.offer-visual-table th,.offer-visual-table td{text-align:left;padding:12px;border-bottom:1px solid #e6ecee;vertical-align:middle}.offer-visual-table thead th{font-size:11px;color:#647d8c;font-weight:600}.offer-visual-table tbody th{white-space:nowrap}.offer-visual-table .included{background:#fffcf3}.offer-visual-table td>strong,.offer-visual-table td>span{display:block}.offer-visual-table meter{display:block;width:100%;height:12px;margin-top:6px;accent-color:#287e78}.offer-visual-table meter::-webkit-meter-bar{background:#edf2f3;border:0;border-radius:5px}.offer-visual-table meter::-webkit-meter-optimum-value{background:#287e78;border-radius:5px}.visual-selected{display:block;font-size:10px;color:#9b701b;margin-top:3px}.prepay-timeline{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;min-width:140px}.prepay-timeline span{text-align:center;padding:5px 0;border-radius:4px;font-size:11px}.within-prepay{background:#193b4a;color:#fff}.after-prepay{background:#eef3f3;color:#647d8c}.offer-talking-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.offer-talking-points h3{font-size:14px;margin:0 0 6px}.offer-talking-points p{font-size:12px;line-height:1.6;margin:0;color:#647d8c}@media(max-width:700px){.offer-visual{padding:16px}.offer-talking-points{grid-template-columns:1fr;gap:16px}.offer-visual-table{min-width:560px}.offer-visual h2{font-size:20px}}

.broker-fixed-costs{padding:18px;margin:18px 0;border:1px solid #d9e3e7;background:#f7f9f8;border-radius:10px}.broker-fixed-costs h3{margin:0 0 12px;font-size:16px}.broker-fixed-costs dl{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0}.broker-fixed-costs dt{font-size:12px;color:#647d8c}.broker-fixed-costs dd{margin:5px 0;font-weight:700}.broker-fixed-costs button{width:auto;margin:0 8px 0 0}@media(max-width:600px){.broker-fixed-costs dl{grid-template-columns:1fr}}

.cashflow-comparison{margin-top:20px;border-top:1px solid #d9e3e7;padding-top:16px}.cashflow-comparison h2{font-size:18px}.cashflow-comparison table{width:100%;font-size:12px;border-collapse:collapse}.cashflow-comparison th,.cashflow-comparison td{padding:10px;text-align:left;border-bottom:1px solid #d9e3e7}.cashflow-comparison .small{font-size:11px;line-height:1.6;color:#647d8c}.cashflow-scroll{overflow-x:auto}.cashflow-flex{display:flex;gap:14px;flex-wrap:wrap;font-size:11px}.holding-period{display:block;max-width:240px;margin-top:20px}.comparison-appendix{break-before:page}

/* Give the scenario library and financing results distinct breathing room. */
#pricing>.saved-scenarios{margin-bottom:26px}
#pricing .pricing-layout{column-gap:30px;align-items:start}
#pricing .pricing-layout>div>.section-title{min-height:28px;margin:8px 0 22px}
#pricing #pricing-source{margin-bottom:18px}
#pricing #result-summary>.small{margin:0 0 22px;line-height:1.8}
@media(max-width:800px){#pricing>.saved-scenarios{margin-bottom:20px}#pricing .pricing-layout{row-gap:28px}#pricing .pricing-layout>div>.section-title{margin-top:4px}}

.academy-editorial-intro{display:flex;justify-content:space-between;align-items:center;gap:30px;margin:32px 0 24px}.academy-editorial-intro h2{margin:10px 0}.academy-editorial-intro p{max-width:650px}.academy-card-copy .academy-date{margin:10px 0 0}.academy-card-copy>button{margin-top:auto}:is(#academy-reader,#journal-reader){max-width:780px}:is(#academy-article,#journal-article) p{line-height:1.8}:is(#academy-article,#journal-article) h2{margin-top:28px}@media(max-width:650px){.academy-editorial-intro{display:block}}

.comparison-explainer{padding:16px;background:#edf4f2;border-left:3px solid #26837b;line-height:1.65}.cashflow-comparison th,.cashflow-comparison td{padding:14px 12px}.cashflow-comparison tr.included{background:#fffaf0}.cashflow-comparison .visual-selected{display:block;font-size:10px;color:#9e7318;margin-top:6px}.cashflow-comparison .visual-selected[hidden]{display:none}.cashflow-comparison details{margin-top:16px}.cashflow-comparison h2{margin-top:20px}

/* Keep dropdown links and buttons aligned despite top-level navigation styles. */
header nav .team-nav-dropdown{min-width:180px;padding:6px;gap:2px}
header nav .team-nav-dropdown>a,header nav .team-nav-dropdown>button{display:flex;align-items:center;justify-content:flex-start;text-align:left;width:100%;min-height:38px;margin:0;padding:10px 14px;border:0;border-radius:6px;font-size:12px;font-weight:600;line-height:18px;text-decoration:none}

.team-header-actions{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.team-header-actions .workspace-switch{margin:0;line-height:14px}.team-header-actions .workspace-switch select{height:42px;margin-top:6px;padding:10px 12px}.team-header-actions .team-signout{height:42px;min-height:42px;margin:0;white-space:nowrap}.team-header-actions>.pill{display:flex;align-items:center;min-height:24px;margin:0 0 9px;line-height:14px;white-space:nowrap}@media(max-width:600px){.team-header-actions{gap:12px;width:100%}.team-header-actions .workspace-switch{flex:1;min-width:160px}.team-header-actions .workspace-switch select,.team-header-actions .team-signout{height:44px;min-height:44px}.team-header-actions>.pill{margin-bottom:10px}}

.location-screening{margin:8px 0 16px;padding:12px;background:#f0f5f5;border-radius:8px}.location-badge{margin:0 0 6px;font-weight:600;color:#19364b}.location-screening small{display:block;line-height:1.5;color:#5e7482}.location-screening>button{margin-top:8px;padding:6px 10px;font-size:11px}.location-screening details{margin-top:8px}.location-screening label{margin-top:10px}

/* Phone workflow: visible navigation, compact introduction and touch-friendly offers. */
@media(max-width:600px){
 .broker-portal header nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;padding:0;gap:4px}
 .broker-portal header nav button{width:100%;font-size:13px;min-height:44px}
 .broker-portal .hero{padding:18px;margin-top:14px;margin-bottom:16px;border-radius:12px}
 .broker-portal .hero img{display:none}
 .broker-portal .hero h1{font-size:28px;margin:8px 0}
 .broker-portal .hero p{font-size:13px;margin:8px 0 0;line-height:1.6}
 .broker-portal label{font-size:13px}
 .broker-portal .small,.broker-portal details p{font-size:12px}
 .broker-portal .pricing-layout{gap:24px}
 .broker-portal #scenario{padding:16px}
 .broker-portal .section-title h2{scroll-margin-top:18px}
 .broker-portal .prepay-offers{gap:12px}
 .broker-portal .prepay-offers article{padding:18px}
 .broker-portal .prepay-offers article button,.broker-portal #broker-create{width:100%}
 .broker-portal .input-review ul{padding-left:18px}
 .broker-portal .input-review button{font-size:14px;text-align:left;line-height:1.5;padding:10px 0}
 .broker-portal .notice,.broker-portal .panel{overflow-wrap:anywhere}
 .broker-portal .actions{gap:10px}
 .broker-portal .actions>button{flex:1 1 130px}
 .broker-portal dialog{width:calc(100% - 16px);max-width:none;max-height:calc(100dvh - 24px);padding:16px;margin:auto;overscroll-behavior:contain}
 .broker-portal dialog .dialog-top{align-items:flex-start;gap:12px}
 .broker-portal dialog h2{font-size:23px}
 .broker-portal dialog .form-grid{grid-template-columns:minmax(0,1fr)}
 .broker-portal #term-preview{max-width:100%;padding:6px;overscroll-behavior-x:contain}
 .broker-portal .broker-helper{position:static;display:flex;justify-content:flex-end;margin:12px 16px 20px}
 .broker-portal #helper-panel{position:fixed;right:12px;bottom:12px;max-height:75dvh;z-index:30}
 .broker-portal table.mobile-comparison{display:block;min-width:0;white-space:normal}
 .broker-portal .mobile-comparison thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .broker-portal .mobile-comparison tbody{display:block}
 .broker-portal .mobile-comparison tr{display:block;border:1px solid #dce5e8;border-radius:10px;margin:12px 0;padding:8px;overflow:hidden}
 .broker-portal .mobile-comparison td,.broker-portal .mobile-comparison tbody th{display:block;width:auto!important;padding:10px 8px;text-align:left;white-space:normal}
 .broker-portal .mobile-comparison td::before{content:attr(data-mobile-label);display:block;font-size:11px;font-weight:600;color:#627e8c;margin-bottom:6px}
 .broker-portal .mobile-comparison tr>:last-child{border-bottom:0}
 .broker-portal .guide-heading label{min-width:0}
 .broker-portal .sheet-edit-panel{padding:12px}
 .broker-portal .saved-scenarios summary{min-height:44px;line-height:1.6}
 .broker-portal .saved-scenarios summary small{display:block}
}
@media(max-width:380px){.broker-portal main{padding-left:10px;padding-right:10px}.broker-portal .hero .eyebrow{font-size:9px;letter-spacing:1px}}

.signature-editor{min-width:0;max-width:100%;margin:24px 0;padding:20px;border:1px solid #d8e2e5;border-radius:12px}.signature-editor legend{font-weight:700;padding:0 8px}.signature-editor [hidden]{display:none!important}.signature-editor textarea{width:100%;box-sizing:border-box}.signature-editor [data-rich] img{max-width:100%;height:auto}.signature-editor [data-rich] table{width:auto}.signature-editor [data-rich] td{border:0}.signature-editor [data-preview-box] img{display:block;margin-top:12px}.signature-editor .actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.signature-editor [aria-pressed=true]{background:#19394b;color:white}@media(max-width:600px){.signature-editor{padding:14px}.signature-editor .actions button{flex:1 1 130px;min-height:44px}}

.signature-editor>label{display:block;margin-top:18px}

.team-reprice{margin:0 0 16px;padding:10px 14px;border:1px solid #d6e1e5;border-left:4px solid #b3872c;border-radius:8px;background:#fff;font-size:13px}.reprice-ticker{display:flex;align-items:baseline;gap:8px 14px;flex-wrap:wrap}.reprice-label{color:#627b86;font-size:12px}.reprice-time{color:#627b86;margin-left:auto;font-size:12px}.reprice-ticker details{font-size:12px}.reprice-ticker summary{cursor:pointer;color:#28677b}.reprice-ticker details[open]{flex-basis:100%}.reprice-ticker p{margin:8px 0 0;line-height:1.5;overflow-wrap:anywhere}.team-reprice[data-direction="better"]{border-left-color:#218478}.team-reprice[data-direction="worse"]{border-left-color:#ae493b}@media(max-width:600px){.team-reprice{padding:9px 11px}.reprice-time{margin-left:0}}

.location-screening{border:1px solid #dce5e8;border-left:4px solid #b58523;padding:16px}.location-screening[data-state="urban"]{background:#edf8f1;border-left-color:#23784b}.location-screening[data-state="urban"] .location-badge{color:#17633b}.location-screening[data-state="potential-rural"]{background:#fff1ef;border-left-color:#b44336}.location-screening[data-state="potential-rural"] .location-badge{color:#9a3028}.location-screening[data-state="unverified"]{background:#fff9e9}.location-badge{font-size:14px;line-height:1.5}.location-evidence{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.location-evidence p{margin:8px 0}.location-screening>button{min-height:40px}
.term-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 28px}.term-stat{background:#eff5f4;border:1px solid #dae5e4;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:6px}.term-stat strong{font-size:28px;color:#143d4d}.term-stat span{font-size:13px;color:#456476}@media(max-width:650px){.term-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.term-stat{padding:14px}}
/* Compact address screening; evidence and manual review remain expandable. */
.location-screening{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:10px 12px;margin:8px 0 12px}.location-screening .location-badge{margin:0;font-size:12px;line-height:1.4}.location-screening>button{margin:0;min-height:36px;padding:6px 10px;white-space:nowrap}.location-screening>.location-hint{grid-column:1/-1;font-size:10px}.location-screening>details{grid-column:1/-1;margin:0;padding:4px 0 0;border:0}.location-screening>details>summary{font-size:11px}.location-screening .location-info small{margin-top:8px}.location-screening details[open]{padding-bottom:6px}@media(max-width:360px){.location-screening{gap:4px 8px;padding:8px}.location-screening>button{min-height:40px;padding:6px 8px}}
#ai-helper #helper-panel{width:410px;max-width:calc(100vw - 32px)}#ai-messages{max-height:30vh;overflow:auto;overscroll-behavior:contain}.ai-message{padding:10px 12px;background:#f0f5f5;border-radius:10px;margin:10px 0;font-size:13px}.ai-message.user{background:#fff8e9}.ai-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;line-height:1.5}#ai-form textarea{width:100%;font-size:16px;min-height:80px}#ai-form .actions{display:flex;gap:8px}#ai-helper #helper-panel .small{font-size:11px;line-height:1.5}

/* Shared AI house identity for team and referral helpers. */
#ai-helper #helper-launch{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 16px 10px 10px;border-radius:18px}
.helper-house{display:block;width:46px;height:46px;flex:none}.helper-launch-copy{display:block}.helper-ai-badge{display:none}
#ai-helper .helper-launch-title{font-size:15px;font-weight:700}#ai-helper .helper-launch-caption{margin-top:3px}
#ai-helper #helper-launch:focus-visible{outline:3px solid #bd8e28;outline-offset:4px}
@media(max-width:600px){#ai-helper #helper-launch{position:relative;width:60px;height:60px;padding:7px;justify-content:center;border-radius:18px}#ai-helper .helper-launch-copy{display:none}#ai-helper .helper-ai-badge{display:block;position:absolute;right:-4px;top:-5px;background:#d5ad57;color:#19364b;font-size:10px;font-weight:800;line-height:18px;padding:0 4px;border-radius:6px;border:2px solid white}}

#ai-helper .helper-house{width:56px;height:56px;object-fit:contain}#ai-helper #helper-launch{padding:6px 16px 6px 8px}@media(max-width:600px){#ai-helper #helper-launch{width:68px;height:68px;padding:4px}#ai-helper .helper-house{width:60px;height:60px}}

/* Light surface keeps the navy mascot distinct. */
#ai-helper #helper-launch{background:#f4efdf;color:#19364b;border-color:#c9ad67;box-shadow:0 4px 18px #19364b1a}#ai-helper .helper-launch-caption{color:#526775}#ai-helper #helper-launch:hover{background:#fff9eb}

.helper-chat-brand{display:flex;align-items:center;gap:10px;min-width:0}.helper-chat-brand img{display:block;width:48px;height:48px;object-fit:contain;background:#f4efdf;border-radius:12px;padding:3px;box-sizing:border-box}.helper-chat-brand strong{color:#19364b;font-size:15px}

#ai-starters{margin:12px 0 16px}#ai-starters>p{margin:0 0 8px;color:#526775}.ai-starter-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ai-starter-grid button{padding:10px;text-align:left;font-size:12px;line-height:1.4;font-weight:400;color:#19364b;background:#f7f5ed;border:1px solid #dce3e5;border-radius:10px}.ai-starter-grid button:hover{background:#eee6d2}.ai-starter-grid button:focus-visible{outline:2px solid #bd8e28;outline-offset:2px}@media(max-width:380px){.ai-starter-grid{grid-template-columns:1fr}}

/* Referral account controls sit together at the far right. */
.broker-portal header nav{flex:1}.broker-portal header nav [data-broker-view="broker-profile"]{margin-left:auto}.broker-portal header nav #workspace-signout{white-space:nowrap;color:#526775}@media(max-width:600px){.broker-portal header nav{grid-template-columns:repeat(6,minmax(0,1fr))}.broker-portal header nav>button{grid-column:span 2}.broker-portal header nav [data-broker-view="broker-profile"]{grid-column:3 / 5;margin-left:0}.broker-portal header nav #workspace-signout{grid-column:5 / 7}}

.broker-apply-action{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:18px 0}.broker-apply-link,.broker-apply-link:visited{display:inline-flex;align-items:center;gap:18px;min-height:44px;box-sizing:border-box;padding:12px 18px;background:#19364b;border:1px solid #19364b;border-radius:9px;color:#fff;font-size:14px;font-weight:600;line-height:20px;text-decoration:none}.broker-apply-link:hover{background:#254b61;border-color:#254b61}.broker-apply-link:focus-visible{outline:3px solid #bd943d;outline-offset:3px}.broker-apply-link>span[aria-hidden]{color:#e1bf72;font-size:19px}.broker-apply-address{font-size:12px;color:#526775}.broker-apply-link .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Separate profile branding from saved scenarios without crowding mobile. */
#broker-profile #cloud-profile{margin-bottom:24px}
#broker-profile #cloud-profile + button{margin-bottom:8px;max-width:100%;white-space:normal}
#broker-profile #save-private-deal + h3{margin:16px 0 12px}
#broker-profile #private-deals{margin-bottom:12px;line-height:1.6}
#broker-profile #private-deals + .small{margin:0 0 20px;line-height:1.6;overflow-wrap:anywhere}
#broker-profile .panel > p[role="status"]{margin:20px 0 0;padding-top:16px;border-top:1px solid #dfe6e7;line-height:1.6}

/* Reserve two label lines so paired referral inputs share a baseline. */
.broker-portal #scenario>.form-grid>label>.scenario-field-label{display:block;min-height:2.6em;line-height:1.3}

.library-shortcuts{margin:18px 0 26px}.academy-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.academy-paths button{text-align:left;padding:22px;background:#fff;line-height:1.7}.academy-paths span{display:block;color:#946612;font-size:12px;letter-spacing:1px}.academy-paths strong{display:block;font-size:19px;color:#193b4d}.library-source{display:inline-flex;align-items:center;min-height:44px;padding:12px 16px;background:#edf2f3;border:1px solid #cedde2;border-radius:8px;color:#193b4d;text-decoration:none;font-weight:600}.library-source:hover{background:#dfe9ed}.market-reading{margin:24px 0}.library-source:focus-visible{outline:3px solid #b8861b;outline-offset:3px}@media(max-width:700px){.academy-paths{grid-template-columns:1fr}}

/* Client-facing option analysis */
.comparison-takeaway{padding:18px 20px;background:#f7f3e8;border-radius:10px;line-height:1.65;margin:20px 0}.comparison-takeaway strong{display:block}.comparison-charts{display:grid;grid-template-columns:1fr 1fr;gap:24px}.comparison-chart,.comparison-timeline{border:1px solid #d9e3e7;border-radius:12px;padding:20px;min-width:0}.comparison-chart h3,.comparison-timeline h3{margin:0 0 8px;font-size:16px}.comparison-bar-row{margin-top:20px}.comparison-bar-row>div:first-child,.comparison-time-row>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:8px}.comparison-bar-track,.comparison-time-track{height:10px;background:#edf2f3;border-radius:4px}.comparison-bar-track>span{display:block;height:100%;background:#193d50;border-radius:4px}.comparison-bar-track .savings{background:#26837b}.comparison-bar-track .negative{background:#b54436}.comparison-timeline{margin-top:24px}.comparison-time-row{margin:20px 0}.comparison-time-track{position:relative}.comparison-time-track>span{display:block;height:100%;background:#c38d2e;border-radius:4px}.comparison-time-track i{position:absolute;top:-5px;height:20px;border-left:2px solid #193d50;transform:translateX(-1px)}.comparison-axis{display:flex;justify-content:space-between;font-size:11px;color:#647d8c}.comparison-numbers summary{cursor:pointer;font-weight:600;padding:12px 0}@media(max-width:680px){.comparison-charts{grid-template-columns:1fr}.comparison-time-row>div:first-child{flex-direction:column;gap:4px}}

@media(min-width:681px){.comparison-chart>.small{min-height:3.2em}}

/* Compact term-sheet composer toolbar */
.term-sheet-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px;padding-top:20px;border-top:1px solid #dfe6e7}.term-sheet-actions>button{width:auto;min-height:44px;margin:0;padding:11px 20px;white-space:nowrap}.term-sheet-actions>button:focus-visible{outline:3px solid #b68a2c;outline-offset:3px}@media(max-width:520px){.term-sheet-actions{display:grid;grid-template-columns:1fr}.term-sheet-actions>button{width:100%}}

.term-sheet-library-nav{margin-top:20px;padding-top:18px;border-top:1px solid #dfe6e7}.term-sheet-library-link,.term-sheet-library-link:visited{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:11px 16px;border:1px solid #cdd8dc;border-radius:8px;background:#edf2f3;color:#19364b;font:inherit;font-weight:600;text-decoration:none;line-height:1.4}.term-sheet-library-link:hover{background:#e0e9ec;border-color:#9bb1bc}.term-sheet-library-link:focus-visible{outline:3px solid #b68a2c;outline-offset:3px}.term-sheet-library-link svg{flex-shrink:0}@media(max-width:520px){.term-sheet-library-link{width:100%}}

.signing-next-step{margin-top:24px}.signing-next-step h3{margin:0 0 18px;font-size:18px}.signing-steps{list-style:none;counter-reset:signing-step;padding:0;margin:0 0 22px;display:grid;gap:18px}.signing-steps li{counter-increment:signing-step;position:relative;padding-left:42px;line-height:1.6}.signing-steps li:before{content:counter(signing-step);position:absolute;left:0;top:0;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#edf2f3;color:#19364b;font-weight:600}.signing-steps strong,.signing-steps span{display:block}.signing-steps span{color:#5e7482;font-size:13px}.signing-save-note{margin:12px 0}.signing-next-step [data-signature-status]:empty{display:none}.signing-other-options{margin-top:20px}.signing-link-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.signing-link-actions button,.signing-link-actions a{min-height:44px;margin:0;font-size:13px}.signing-link-actions [hidden]{display:none!important}.signing-new-copy{border-top:0;margin:16px 0 0;padding:0}.signing-new-copy summary{font-weight:400;color:#5e7482}@media(max-width:520px){.signing-link-actions>*{width:100%}}

.academy-lesson-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid #dfe6e7}.academy-lesson-actions button[aria-pressed=true]{background:#e6f2eb;border-color:#94bcaa;color:#1f604b}
/* Immediate pricing feedback; reduced-motion users retain a static indicator. */
.pricing-spinner{display:inline-block;width:1em;height:1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;flex-shrink:0;animation:pricing-spin .8s linear infinite;vertical-align:-.15em;margin-right:.5em}
.pricing-loading{display:flex;align-items:center;gap:16px;min-height:150px}
.pricing-loading>.pricing-spinner{width:28px;height:28px;color:var(--gold,#b88722)}
.pricing-loading h2{margin:0 0 8px}.pricing-loading p{margin:0}
#calculate-pricing[aria-busy="true"]{cursor:wait;opacity:1}
@keyframes pricing-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.pricing-spinner{animation:none}}
.flex-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}
.flex-choice-grid article{padding:20px;border:1px solid #d1dfe4;border-radius:12px;background:#fff}
.flex-choice-grid article:first-child{border-top:4px solid #ba8a27}.flex-choice-grid article:last-child{border-top:4px solid #23877e}
.flex-choice-grid h3{font-size:30px;margin:12px 0}.flex-choice-grid p{font-size:13px;margin-bottom:0}
.flex-price{padding:20px;background:#fff7df;border-radius:12px;display:grid;gap:8px}.flex-price strong{font-size:24px}
.flex-bar{display:grid;grid-template-columns:55px 1fr 110px;align-items:center;gap:12px;margin:14px 0}.flex-bar>div{height:12px;background:#edf2f3;border-radius:9px;overflow:hidden}.flex-bar i{display:block;height:100%;border-radius:9px}.flex-bar strong{text-align:right}
.flex-savings,.refi-explorer{margin-top:28px}.refi-explorer{border-top:1px solid #d1dfe4;padding-top:20px}
.rate-scenarios{margin:16px 0;flex-wrap:wrap}.rate-scenarios [aria-pressed="true"]{background:#193b4b;color:white}
.refi-answer{padding:18px;background:#edf5f3;border-radius:10px;margin:18px 0}.refi-answer>strong{font-size:21px}.refi-answer dl{margin-bottom:0}.refi-answer dl>div{display:flex;justify-content:space-between;gap:16px;margin:8px 0}.refi-answer dd{font-weight:600;margin:0}
.full-prepay-comparison{margin-top:24px;border-top:1px solid #d1dfe4;padding-top:18px}.full-prepay-comparison>summary{font-weight:600;margin-bottom:16px}
@media(max-width:600px){.flex-choice-grid{grid-template-columns:1fr}.flex-bar{grid-template-columns:45px 1fr 95px;gap:8px}.flex-price strong{font-size:21px}.refi-answer dl>div{display:block}.refi-answer dd{margin-top:3px}}
.saved-logo-preview{display:grid;gap:8px;padding:16px;margin:8px 0 12px;border:1px solid #d1dfe4;border-radius:10px;background:#fff;font-weight:400}.saved-logo-preview>strong{font-size:14px}.saved-logo-preview img{max-width:100%;object-fit:contain}

.profile-logo-field>label{display:block;margin-bottom:6px}.profile-logo-selected{border:1px solid #cbdbe2;border-radius:10px;padding:18px;background:#fff}.profile-logo-selected img{display:block;width:auto;max-width:100%;height:auto;max-height:110px;object-fit:contain;margin:0 0 16px}.profile-logo-selected .actions{margin:0;gap:10px}.profile-logo-field>.small{display:block;margin-top:6px}

/* Shared, compact term-sheet actions in the team composer. */
#term-editor .team-term-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}#term-editor .team-term-actions button{width:auto;margin:0;min-height:44px;padding:10px 20px}#team-logo-preview img{display:block;max-width:220px;max-height:100px;object-fit:contain;object-position:left center}.team-logo-field{min-width:0}#term-editor [hidden]{display:none!important}

/* Password recovery uses the same quiet action styling as workspace navigation. */
.login-recovery{display:flex;justify-content:flex-end;margin:14px 0 18px}
.login-recovery-link,.login-recovery-link:visited{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:9px 14px;border:1px solid #cbdbe2;border-radius:8px;background:#f3f7f8;color:#193b4e;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;transition:background .15s,border-color .15s}
.login-recovery-link:hover{background:#e8f0f3;border-color:#8faab8;text-decoration:none}
.login-recovery-link:focus-visible{outline:3px solid #bd922f;outline-offset:3px}

.team-header-actions{margin-left:auto;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.team-profile-link,.team-profile-link:visited{display:inline-flex;align-items:center;min-height:42px;padding:9px 14px;border:1px solid #cbdbe2;border-radius:8px;color:#193b4e;background:#f3f7f8;font-size:14px;font-weight:600;text-decoration:none}.team-profile-link:hover{background:#e8f0f3}.team-profile-link:focus-visible{outline:3px solid #bd922f;outline-offset:3px}

.team-header-actions .workspace-switch{margin:0;display:flex;align-items:center}.team-header-actions .workspace-switch select,.team-header-actions .team-profile-link,.team-header-actions .team-signout{box-sizing:border-box;height:44px;min-height:44px;margin:0;line-height:1.4}.team-header-actions .workspace-switch select{padding:10px 14px}.team-header-actions .team-signout{padding:10px 14px}

.signature-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:22px 0 12px}.signature-stat,.signature-stat:visited{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid #d5e3e7;border-radius:12px;background:#eef4f5;color:#193b4d;text-decoration:none}.signature-stat strong{font-size:28px;line-height:1.2}.signature-stat span{font-size:13px}.signature-stat:hover{background:#e0ecef;border-color:#91aebc}.signature-stat:focus-visible{outline:3px solid #bd922f;outline-offset:3px}

.broker-resources-menu .team-nav-dropdown button{display:block;width:100%;text-align:left;margin:0}.broker-resources-menu>summary.active{background:#eaf0f2;color:#19364b}.broker-resources-menu .team-nav-dropdown{min-width:190px}

/* Account controls share the typography and quiet treatment of the main navigation. */
header .team-header-actions{gap:5px}
header .team-header-actions :is(.team-profile-link,.team-signout,.workspace-switch select){display:inline-flex;align-items:center;justify-content:center;height:40px;min-height:40px;margin:0;padding:11px 15px;border:0;border-radius:8px;background:#fff;color:#19364b;font-family:inherit;font-size:12px;font-weight:600;line-height:18px;text-decoration:none;cursor:pointer}
header .team-header-actions :is(.team-profile-link,.team-signout,.workspace-switch select):hover{background:#edf2f2}
header .team-header-actions .team-profile-link:visited{color:#19364b}
header .team-header-actions .team-profile-link[aria-current="page"]{background:#eaf0f1}
header .team-header-actions :is(.team-profile-link,.team-signout,.workspace-switch select):focus-visible{outline:3px solid #aa8636;outline-offset:3px}
@media(max-width:600px){header .team-header-actions{gap:5px}header .team-header-actions :is(.team-profile-link,.team-signout,.workspace-switch select),header nav>button,header nav>a,header nav .team-nav-menu>summary{min-height:44px;height:44px;padding-top:13px;padding-bottom:13px}}

.team-yield-reference{margin:12px 0 20px;padding:16px;border:1px solid #cbdde3;border-left:3px solid #24857c;border-radius:8px;background:#edf5f4}.team-yield-badge{display:block;font-size:11px;font-weight:600;color:#45616f;margin-bottom:8px}.team-yield-reference>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 24px}.team-yield-reference strong{font-size:16px}.team-yield-reference small{display:block;margin-top:8px;color:#526b78;line-height:1.5}@media print{.team-yield-reference{display:none!important}}

.dscr-live-summary{padding:16px;border:1px solid #cbdde3;border-radius:10px;background:#f2f7f6;margin-top:16px}.dscr-live-ratio{display:grid;gap:6px}.dscr-live-ratio strong{font-size:32px;color:#193b4e}.dscr-live-ratio small{line-height:1.6}.dscr-live-summary dl{margin:16px 0}.dscr-live-summary dl>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #dce6e7;font-size:12px}.dscr-live-summary dd{margin:0;font-weight:600;white-space:nowrap}

/* Public sign-in: broker partner application entry. */
.login-apply{display:flex;align-items:center;gap:24px;margin:24px 0 20px;padding:24px;background:#f3f7f8;border:1px solid #d5e2e7;border-radius:12px}
.login-apply-actions{display:flex;flex-direction:column;gap:12px;flex-shrink:0}
.login-apply h2{font-size:23px;line-height:1.25;margin:10px 0}
.login-apply p{margin:8px 0;line-height:1.6}
.login-apply-link,.login-apply-link:visited{display:inline-flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;min-height:44px;padding:12px 18px;border-radius:8px;background:#193b4e;color:#fff;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.login-apply-link:hover{background:#28546a;text-decoration:none}
.login-apply-link:focus-visible{outline:3px solid #bd922f;outline-offset:3px}
@media(max-width:640px){.login-apply{flex-direction:column;align-items:stretch;gap:14px;padding:20px}.login-apply-link{width:100%;box-sizing:border-box}}
/* Mobile workflow parity: contain wide pricing tables and keep every control usable. */
.compact-stack.prepay-comparison{table-layout:auto;min-width:980px}
.prepay-comparison .prepay-quote{min-width:145px}
@media(max-width:650px){
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;min-width:0;max-width:100%}
 button,summary,.actions>a{min-height:44px}
 fieldset{min-width:0;max-width:100%}
 dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;overscroll-behavior:contain}
 dialog h2{font-size:23px;overflow-wrap:anywhere}
 dialog form{padding:14px}
 dialog .form-grid,.scenario-column>#quick-dscr .form-grid{grid-template-columns:minmax(0,1fr)}
 .dialog-top{gap:12px;align-items:flex-start;flex-wrap:wrap}
 .selection-toolbar{position:static}
 #stack-workspace input[type=checkbox]{width:24px;height:24px;flex:0 0 24px}
 .prepay-quote{min-height:44px}
 #term-editor .team-term-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 #term-editor .team-term-actions button{width:100%;white-space:normal}
 #term-editor .file{padding:12px}
 #term-preview{max-width:100%;padding:6px}
 .team-yield-reference{padding:12px}
 .team-yield-reference>div{gap:8px;flex-direction:column}
 .company-branding{padding:14px}
 .company-branding .actions>*{max-width:100%}
 header .team-header-actions{flex-wrap:wrap;max-width:100%}
 .team-nav-dropdown{max-width:calc(100vw - 32px)}
 .team-nav-dropdown a{white-space:normal}
}
.team-nav-menu:not([open])>.team-nav-dropdown{display:none}
@media(max-width:650px){header nav{position:relative}.team-nav-menu{position:static}header nav .team-nav-dropdown,.broker-resources-menu .team-nav-dropdown{left:0;right:0;top:calc(100% + 6px);width:100%;min-width:0;max-width:100%}header nav .team-nav-dropdown>a,header nav .team-nav-dropdown>button{min-height:44px;white-space:normal}}
@media(max-width:650px){.broker-portal header nav{display:flex;flex:0 0 100%;width:100%;gap:6px;flex-wrap:wrap}.broker-portal header nav>button,.broker-portal header nav>.team-nav-menu{flex:0 1 auto}.broker-portal header nav [data-broker-view="broker-profile"]{margin-left:0}}
@media(max-width:650px){.team-pricing-page #scenario :is(input:not([type=checkbox]):not([type=radio]),select,textarea),.broker-portal #scenario :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}.table-wrap{touch-action:pan-x pan-y}}
.team-reprice[data-direction="available"]{border-left-color:#218478}

.expense-input{min-width:0}.expense-input>label{margin-bottom:6px}.expense-controls{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:8px}.expense-controls input,.expense-controls select{min-width:0;width:100%}.expense-input>.small{display:block;margin-top:6px}

.manual-rate-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0 0 16px;border:1px solid #cbdade;border-radius:0 0 10px 10px;overflow:hidden}
.manual-rate-heading,.manual-rate-choice{display:grid!important;grid-template-columns:90px minmax(0,1fr) 48px;align-items:center;gap:12px;padding:14px}
.manual-rate-heading{margin-top:16px;background:#edf3f5;border:1px solid #cbdade;border-bottom:0;border-radius:10px 10px 0 0;font-size:12px;color:#536d7c}
.manual-rate-choice{margin:0!important;border:0;border-bottom:1px solid #dce5e8;border-radius:0;cursor:pointer;min-height:52px}
.manual-rate-choice:last-child{border-bottom:0}.manual-rate-choice input{grid-column:3;grid-row:1;width:20px!important;height:20px;margin:0;justify-self:center}
.manual-rate-choice span{display:contents}.manual-rate-choice strong{grid-column:1;grid-row:1}.manual-rate-choice small{grid-column:2;grid-row:1;font-size:13px}
.manual-rate-choice:has(input:checked){background:#eef6f4}.manual-rate-choice:focus-within{outline:2px solid #218478;outline-offset:-2px}
@media(max-width:500px){.manual-rate-heading,.manual-rate-choice{grid-template-columns:65px minmax(0,1fr) 40px;gap:8px;padding:12px 8px}.manual-rate-choice small{font-size:12px}}

.manual-rate-choice small{white-space:pre-line;line-height:1.6}
.expense-controls{display:grid!important;grid-template-columns:1fr!important;gap:6px}.expense-controls input,.expense-controls select{min-width:0;width:100%}

.brokerpricer-brand{display:inline-flex;flex-direction:column;align-items:center;gap:2px;vertical-align:middle;max-width:100%}.brokerpricer-brand img{display:block;width:210px!important;max-width:100%;height:auto!important}.brokerpricer-brand small{font-size:11px;font-weight:600;line-height:1.4;color:#193c4c;letter-spacing:.02em}.financing-partner{margin:24px 0;padding:24px;border:1px solid #dce5e7;border-radius:12px;background:#f1f6f5}.financing-partner h2{font-size:22px;margin:8px 0}.financing-partner p{max-width:760px}.financing-partner a{text-underline-offset:4px}.partnership-page{max-width:1050px;margin:auto;padding:48px 24px}.partnership-page h1{font-family:Georgia,serif;font-size:clamp(34px,5vw,56px);line-height:1.1;font-weight:400}.partnership-page .features{margin-bottom:40px}.partnership-page section{margin-top:36px}.partnership-page p{max-width:800px}@media(max-width:640px){.brokerpricer-brand img{width:170px!important}.brokerpricer-brand small{font-size:10px}}

.pillar-partner-logo{display:block;width:340px;max-width:100%;height:auto;object-fit:contain;background:#fff;border:1px solid #e3e9ea;border-radius:8px;margin:16px 0 24px}.financing-partner .pillar-partner-logo,.partner-promise .pillar-partner-logo,.investor-intro .pillar-partner-logo{width:260px}


.estimate-field{min-width:0}.estimate-field>label{display:flex;flex-direction:column}.estimate-field:has(>label[hidden]){display:none}.field-estimates{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-top:8px}.field-estimates button{font-size:12px;padding:8px 12px;min-height:36px}.field-estimates small{font-size:11px;line-height:1.5;color:#607986}.field-estimates details{width:100%;margin-top:4px}.field-estimates details>input{width:100%;margin:6px 0 10px}.field-estimates details>span{display:block;margin-top:10px}.field-estimate-status{font-size:12px;line-height:1.5;margin:0}.field-estimate-status:empty{display:none}

/* Keep estimate actions and expense units compact. */
.field-estimates{gap:4px;margin-top:5px}.field-estimates button{padding:4px 9px;min-height:28px;font-size:11px;line-height:1.4}.field-estimates small,.field-estimate-status{font-size:11px;line-height:1.4}.field-estimates details{padding:0;border:0;margin:3px 0 0}.field-estimates summary{font-size:11px;line-height:1.5;padding:0}.field-estimate-status{margin:2px 0 0}.inline-dscr .form-grid{gap:12px 14px;align-items:start}.inline-dscr .expense-controls{grid-template-columns:minmax(0,1fr) 94px!important;gap:6px}.inline-dscr .expense-controls select{padding-left:7px;padding-right:5px;font-size:12px}.inline-dscr .expense-input>.small{font-size:10px;line-height:1.4;margin-top:4px}.inline-dscr>p.small{font-size:11px;line-height:1.5;margin-bottom:10px}.inline-dscr>p.small:last-child{margin:10px 0 0}

.field-estimates .field-estimate-status:empty{display:none!important}.field-estimates details{min-height:0}.field-estimates summary{margin:0}@media(max-width:600px){.inline-dscr .expense-controls{grid-template-columns:minmax(0,1fr) 112px!important}.field-estimates button{min-height:36px}}

#calculated-options-heading{scroll-margin-top:24px}

/* A quiet endorsement keeps BrokerPricer as the primary brand. */
.broker-portal .broker-partner-strip{display:flex;align-items:center;gap:24px;padding:18px 22px;background:#fff;border:1px solid #dce5e7;border-radius:12px;margin:20px 0 24px}
.broker-partner-strip .partner-endorsement{flex:0 0 156px;border-right:1px solid #e2e9eb;padding-right:20px}
.broker-partner-strip .partner-endorsement .eyebrow{font-size:8px;letter-spacing:.12em;color:#607986}
.broker-partner-strip .pillar-partner-logo{width:142px;max-width:100%;height:auto;margin:7px 0 0;border:0;border-radius:0;float:none;mix-blend-mode:multiply}
.broker-partner-strip .partner-strip-copy{flex:1;min-width:0}.broker-partner-strip h2{font-size:16px;margin:0 0 5px;line-height:1.4}.broker-partner-strip p{font-size:12px;margin:0;line-height:1.6;color:#607986}
.broker-partner-strip .partnership-cta{display:inline-flex;align-items:center;justify-content:center;gap:18px;flex-shrink:0;padding:11px 15px;border:1px solid #cedcdf;border-radius:8px;background:#f1f6f5;color:#193b4e;font-size:12px;font-weight:600;text-decoration:none;min-height:44px}.broker-partner-strip .partnership-cta:hover{background:#e4efed}.partnership-cta:focus-visible{outline:3px solid #aa8636;outline-offset:3px}
@media(max-width:700px){.broker-portal .broker-partner-strip{display:grid;grid-template-columns:1fr auto;gap:14px;padding:18px}.broker-partner-strip .partner-endorsement{grid-column:1/-1;border:0;padding:0;display:flex;align-items:center;gap:14px}.broker-partner-strip .pillar-partner-logo{width:122px;margin:0}.broker-partner-strip h2{font-size:14px}.broker-partner-strip .partnership-cta{gap:8px;padding:9px 11px}}

.broker-portal .broker-hero-partner{display:flex;align-items:center;gap:26px;margin-top:22px;padding-top:18px;border-top:1px solid #e6ddc9;max-width:520px}
.broker-hero-partner .partner-endorsement .eyebrow{font-size:8px;letter-spacing:.12em;color:#607986}
.broker-portal .broker-hero .partner-endorsement img{display:block;width:142px;height:auto;max-width:100%;margin:6px 0 0;border:0;border-radius:0;background:transparent;mix-blend-mode:multiply;object-fit:contain}
.broker-hero-partner .partnership-cta{display:inline-flex;align-items:center;gap:16px;min-height:44px;padding:10px 14px;border:1px solid #d9cfb8;border-radius:8px;color:#193b4e;background:#fff9;text-decoration:none;font-size:12px;font-weight:600}
.broker-hero-partner .partnership-cta:hover{background:#fff}
@media(max-width:600px){.broker-portal .broker-hero-partner{gap:18px;flex-wrap:wrap}.broker-portal .broker-hero .partner-endorsement img{width:128px}.broker-hero-partner .partnership-cta{gap:10px}}

.scenario-save-bar .actions{display:flex;flex-wrap:nowrap;gap:6px}
.scenario-save-bar .actions button{flex:1 1 auto;min-width:0;padding:8px 7px;min-height:38px;font-size:11px;line-height:1.3;white-space:nowrap}

.remember-device{display:flex;align-items:center;gap:.6rem}.remember-device input[type="checkbox"]{width:auto;min-height:0;margin:0;flex:none}
