body{background:#f4f5f5}.portal-header{position:relative}.portal-header img{max-height:54px}#layout{min-height:calc(100vh - 130px)}#sidebar{background:#142630;color:white;padding:28px 20px}#sidebar h2{font-size:16px;color:white;margin:0 0 26px}#sidebar button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:transparent;color:#d8e3e8;padding:13px 12px;margin:3px 0;border-radius:4px}#sidebar button.active,#sidebar button:hover{background:#273d49;color:white}#sidebar svg{width:19px;height:19px;flex-shrink:0}.live-auth{max-width:530px;margin:40px auto}.live-auth h1{font-size:32px}.live-auth form{display:grid;gap:18px}.live-auth .actions{flex-wrap:wrap}main>h1{font-size:30px;margin:0 0 25px}table{border-collapse:separate;border-spacing:0 7px}td{background:white;border:0;vertical-align:middle;padding:16px}th{font-size:11px;letter-spacing:.06em;color:#57707d;padding:12px 16px}td:first-child{border-radius:6px 0 0 6px}td:last-child{border-radius:0 6px 6px 0}td img{width:76px;height:64px;object-fit:contain}td small{display:block;margin-top:5px}button:disabled{opacity:.45;cursor:not-allowed}.auth-error{color:#a02d1a}.auth-info{color:#285a45}.split-actions{display:flex;gap:8px;flex-wrap:wrap}.quote-summary{display:flex;gap:28px;flex-wrap:wrap}.quote-summary strong{display:block}.live-note{padding:12px 16px;background:#fff4dc;border-left:3px solid #f76525;margin:0 0 20px}.empty{padding:30px;background:white}.id-photo{width:48px;height:60px;border-radius:4px;background:#e5e9eb;display:grid;place-items:center;color:#6c7c84}.full-field{grid-column:1/-1}textarea{min-height:90px}.print-only{display:none}@media(max-width:760px){#layout{display:block}#sidebar{padding:12px;display:flex;overflow:auto;gap:4px}#sidebar h2{display:none}#sidebar button{width:auto;white-space:nowrap}main{padding:22px 14px}.portal-header span{font-size:12px}}@media print{#sidebar,.portal-header,footer,.actions,.live-note,#toast{display:none!important}#layout{display:block}main{padding:0}.print-only{display:block}td{padding:8px}table{width:100%}}
body.signed-out #sidebar{display:none}body.signed-out #layout{display:block;margin-left:0}body.signed-out main{margin-left:0;width:100%;max-width:none}body.signed-out .portal-header,body.signed-out footer{margin-left:0}.portal-header>a{display:block}.portal-header{gap:24px}.portal-header img{display:block;width:145px;object-fit:contain}body.signed-out .live-auth{width:calc(100% - 28px)}
td .installer-photo{width:48px;height:60px;object-fit:cover;border-radius:4px}.private-files{margin-bottom:20px}
 #sidebar{display:flex;flex-direction:column;justify-content:space-between;gap:16px}.sidebar-body{min-height:0;overflow:auto}.workspace-logo{display:block;margin:0 0 20px}.workspace-logo img{width:190px;max-width:100%;height:auto;filter:url(#logo-on-navy)}#sidebar h2{font-size:11px;letter-spacing:.18em;margin-bottom:20px}#sidebar .user-profile-link{padding:13px 6px;margin-bottom:20px;border-top:1px solid #334650;border-bottom:1px solid #334650;border-radius:0;align-items:center}.user-profile-link>span:last-child{min-width:0}.user-profile-link strong{font-size:13px;display:block;overflow-wrap:anywhere}.user-profile-link small{display:block;font-size:11px;color:#b5c7d1;margin-top:5px}.user-avatar{width:44px!important;height:44px!important;min-width:44px;border-radius:50%;object-fit:cover}.initials{display:grid;place-items:center;background:#314954;color:white;font-weight:700}#sidebar .sidebar-logout{border-top:1px solid #334650;border-radius:0;margin-top:auto;padding-top:18px;flex-shrink:0}.profile-preview{width:120px;height:120px;object-fit:cover;border-radius:50%;display:block;margin:0 0 22px}.workspace-menu{display:block}@media(max-width:760px){#sidebar{display:block}.workspace-menu{display:flex;overflow:auto}.workspace-logo img{width:145px}#sidebar h2{display:block}.user-profile-link{max-width:320px}#sidebar .sidebar-logout{width:auto}.sidebar-body{overflow:visible}}
/* Shared header profile and original orange selection treatment. */
.portal-header{justify-content:flex-start;min-height:86px}.header-profile{display:flex;align-items:center;gap:12px;border:0;background:transparent;padding:0;color:#142630}.header-profile strong{font-size:14px}.portal-header .user-avatar{width:44px;height:44px;object-fit:cover;border-radius:50%}.header-profile:focus-visible,#sidebar button:focus-visible{outline:3px solid #fa651e;outline-offset:3px}#sidebar button.active,#sidebar button.active:hover{background:#fa651e;color:#fff}.nav-chevron{margin-left:auto}#crm-submenu,:is(#supplier-submenu,#sales-submenu){padding-left:17px;border-left:1px solid #43545e;margin:5px 0 12px 20px}#crm-submenu[hidden],:is(#supplier-submenu,#sales-submenu)[hidden]{display:none}#sidebar #crm-submenu button,#sidebar :is(#supplier-submenu,#sales-submenu) button{font-size:13px;padding:11px 8px;gap:8px}#crm-submenu svg,:is(#supplier-submenu,#sales-submenu) svg{width:16px;height:16px}.quick-quote-alert{display:block;width:10px;height:10px;min-width:10px;margin-left:auto;border-radius:50%;background:#f2c94c;box-shadow:0 0 0 3px #f2c94c26}
.pipeline-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:22px;flex-wrap:wrap}.pipeline-toolbar h1{margin:0}.pipeline-toolbar .actions{margin:0}.pipeline-board{display:grid;grid-template-columns:repeat(6,minmax(235px,1fr));gap:16px;overflow-x:auto;padding-bottom:18px}.pipeline-column{background:#e9edef;border-radius:8px;padding:14px;min-height:350px;border-top:3px solid #90a1aa}.pipeline-column:nth-child(3){border-color:#fa651e}.pipeline-column:nth-child(5){border-color:#358363}.pipeline-column:nth-child(6){border-color:#9a5b5b}.pipeline-column h2{font-size:14px;display:flex;justify-content:space-between;margin:0 0 9px}.pipeline-total{font-size:12px;color:#5e717e;margin-bottom:18px}.pipeline-card{padding:16px;background:white;border:1px solid #dfe5e8;border-radius:6px;margin-bottom:12px;box-shadow:0 2px 4px #14263005}.pipeline-card h3{font-size:15px;margin:0 0 7px;overflow-wrap:anywhere}.pipeline-card p{font-size:12px;margin:7px 0;color:#657a85}.pipeline-card strong{display:block;margin:12px 0}.pipeline-card .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.pipeline-card button{font-size:12px;padding:7px 10px}.pipeline-card select{width:100%;font-size:12px}.pipeline-empty{font-size:12px;color:#6b7c86;padding:30px 0;text-align:center}.crm-modal{border:0;border-radius:10px;width:min(650px,calc(100vw - 30px));max-height:90vh;padding:26px;color:#142630}.crm-modal::backdrop{background:#14263099}.crm-modal form{display:grid;gap:16px}.crm-modal h2{margin:0}.crm-modal .form-grid{margin:0}.crm-modal .actions{justify-content:flex-end}.pipeline-card label{font-size:11px}.crm-archive td{font-size:13px}@media(max-width:760px){.portal-header{padding:16px}.pipeline-board{grid-template-columns:repeat(6,260px)}.crm-navigation{min-width:210px}#crm-submenu,:is(#supplier-submenu,#sales-submenu){white-space:normal}.header-profile strong{font-size:14px}}
.portal-header .header-profile,.portal-header .header-profile strong{color:#142630}.portal-header .header-profile .initials{color:white}

/* Approved Login Portal design: shared client and employee sign-in. */
body.signed-out{background:#f2f5f8;color:#102b43}
body.signed-out .portal-header{box-sizing:border-box;max-width:1492px;min-height:90px;margin:42px auto 0;padding:22px 38px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-radius:24px 24px 0 0;border-bottom:1px solid #e7edf2;box-shadow:0 8px 26px #14283a12}
body.signed-out .portal-header .auth-brand{display:flex;align-items:center;padding:0;background:transparent}
body.signed-out .portal-header .auth-brand img{display:block;width:174px;max-height:52px;object-fit:contain}
.auth-home-link{font-size:14px;font-weight:600;color:#53687b;text-decoration:none}
.auth-home-link:hover{text-decoration:underline;text-underline-offset:4px}
body.signed-out #layout{display:block;max-width:none;min-height:0;margin:0 auto}
body.signed-out main{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0 4vw;background:transparent}
.auth-shell{display:grid;grid-template-columns:minmax(380px,42%) minmax(0,58%);max-width:1492px;min-height:750px;margin:0 auto;background:#fff;border-radius:0 0 24px 24px;overflow:hidden;box-shadow:0 12px 26px #14283a12}
.auth-intro{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;min-height:750px;padding:52px 46px 44px;overflow:hidden;border-radius:0;background:linear-gradient(135deg,#102b43 0%,#071827 100%);color:#fff}
.auth-intro::before,.auth-intro::after{position:absolute;z-index:-1;content:"";border-radius:50%;background:#214c68;opacity:.28}
.auth-intro::before{width:324px;height:324px;top:-102px;right:-86px}
.auth-intro::after{width:200px;height:200px;top:-26px;right:-24px;background:#2a5470;opacity:.26}
.auth-intro-pill{display:inline-flex;align-items:center;gap:10px;margin:0 0 58px;padding:8px 14px;border-radius:20px;background:#234863;color:#e8f0f5;font-size:12px;font-weight:700;letter-spacing:1.1px}
.auth-intro-pill i{width:8px;height:8px;border-radius:50%;background:#f4a327}
.auth-intro h2{margin:0 0 24px;color:#fff;font-size:42px;line-height:1.23;letter-spacing:-.8px}
.auth-intro-copy{max-width:470px;margin:0 0 42px;color:#c7d4df;font-size:17px;line-height:1.55}
.auth-feature{display:flex;align-items:center;gap:18px;width:100%;min-height:82px;margin:0 0 16px;padding:16px 20px;border:1px solid #2c4b63;border-radius:12px;background:#17364f}
.auth-feature-icon{display:grid;place-items:center;width:42px;height:42px;min-width:42px;border-radius:10px;background:#234c68;color:#f4a327;font-size:21px;line-height:1}
.auth-feature-icon svg{width:21px;height:21px}
.auth-feature strong,.auth-feature small{display:block}
.auth-feature strong{margin-bottom:4px;color:#fff;font-size:15px}
.auth-feature small{color:#c7d4df;font-size:13px;line-height:1.4}
.auth-intro-footer{margin:auto 0 0;color:#aebfcc;font-size:13px}
.auth-content{align-self:center;width:100%;max-width:820px;margin:0 auto;padding:58px 7.5%;color:#102b43}
.auth-kicker{margin-bottom:18px;color:#d1810d;font-size:13px;font-weight:700;letter-spacing:1.2px}
.auth-content h1{margin:0 0 11px;color:#102b43;font-size:31px;line-height:1.2;letter-spacing:-.5px}
.auth-subtitle{margin:0 0 38px;color:#506275;font-size:16px}
.auth-workspaces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 34px;padding:0;border:0}
.auth-workspaces legend{grid-column:1/-1;margin:0 0 14px;padding:0;color:#22374a;font-size:15px;font-weight:600}
.auth-workspace-choice{position:relative;display:flex;align-items:center;gap:14px;min-height:82px;margin:0;padding:14px 16px;border:1.5px solid #dbe3e9;border-radius:12px;background:#fff;cursor:pointer}
.auth-workspace-choice:has(input:checked){border:2px solid #e9a32d;background:#fffaf1}
.auth-workspace-choice input{position:absolute;width:1px;height:1px;opacity:0}
.auth-radio{position:relative;display:block;width:20px;height:20px;min-width:20px;border:1.7px solid #9aabba;border-radius:50%}
.auth-workspace-choice:has(input:checked) .auth-radio{border:2px solid #d98b13}
.auth-workspace-choice:has(input:checked) .auth-radio::after{position:absolute;inset:4px;content:"";border-radius:50%;background:#d98b13}
.auth-workspace-choice:focus-within{outline:3px solid #e9a32d;outline-offset:3px}
.auth-workspace-choice strong,.auth-workspace-choice small{display:block}
.auth-workspace-choice strong{margin-bottom:4px;color:#102b43;font-size:15px}
.auth-workspace-choice small{color:#66788a;font-size:13px;line-height:1.35}
#auth{display:grid;gap:17px;margin:0}
.auth-field{display:grid;gap:8px;margin:0;color:#22374a;font-size:15px;font-weight:600}
.auth-field>input,.auth-password{box-sizing:border-box;width:100%;min-height:56px;border:1.5px solid #cbd6df;border-radius:9px;background:#fff}
.auth-field>input{padding:0 18px;color:#102b43;font-size:15px;font-weight:400}
.auth-field>input::placeholder{color:#8796a4}
.auth-field>input:focus,.auth-password:focus-within{outline:3px solid #f7d18b;outline-offset:1px;border-color:#d98b13}
.auth-password{display:flex;align-items:center;overflow:hidden}
.auth-password input{flex:1;min-width:0;height:54px;padding:0 18px;border:0;background:transparent;color:#102b43;font-size:16px;letter-spacing:2px}
.auth-password input:focus{outline:0}
.auth-password button{height:100%;padding:0 18px;border:0;background:transparent;color:#52677b;font-size:13px;font-weight:600}
.auth-password button:hover{text-decoration:underline;text-underline-offset:3px}
.auth-form-options{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 0}
.auth-remember{display:flex;align-items:center;gap:10px;color:#52677b;font-size:14px;font-weight:400}
.auth-remember input{width:18px;height:18px;margin:0;accent-color:#d98b13}
.auth-link-button{padding:0;border:0;background:transparent;color:#28516e;font-size:14px;font-weight:600;text-decoration:none}
.auth-link-button:hover{text-decoration:underline;text-underline-offset:3px}
.auth-submit{width:100%;min-height:58px;margin-top:16px;border:0;border-radius:9px;background:#e9a32d;color:#102b43;font-size:16px;font-weight:700}
.auth-submit:hover{background:#d9911c}
#auth-status{min-height:20px;margin:0;color:#506275;font-size:14px}
#auth-status:empty{min-height:0}
#auth-status.auth-error{color:#a02d1a;white-space:pre-line;line-height:1.5}
#auth-status.auth-info{color:#285a45}
.auth-request-link{margin:24px 0 28px;color:#66788a;text-align:center;font-size:14px}
.auth-actions{margin:18px 0 28px}
.auth-hint{margin:0;color:#66788a;font-size:14px}
.auth-bottom{display:flex;justify-content:space-between;gap:16px;margin-top:24px;padding-top:20px;border-top:1px solid #e7edf2;color:#7b8a98;font-size:12px}
.auth-bottom a{color:inherit;text-decoration:none}
.auth-bottom a:hover{text-decoration:underline}
body.signed-out footer{box-sizing:border-box;max-width:1492px;margin:0 auto;padding:18px 38px 28px;background:#fff;border-radius:0 0 24px 24px;color:#66788a;font-size:12px}
body.signed-out footer span{float:right}
@media(max-width:1100px){.auth-shell{grid-template-columns:minmax(330px,40%) minmax(0,60%)}.auth-intro{padding:44px 32px}.auth-intro h2{font-size:36px}.auth-content{padding:48px 6%}.auth-workspaces{gap:10px}.auth-workspace-choice{padding:12px}}
@media(max-width:760px){body.signed-out .portal-header{margin:12px 12px 0;padding:16px 18px;min-height:72px;border-radius:16px 16px 0 0}body.signed-out .portal-header .auth-brand img{width:145px;max-height:46px}.auth-home-link{font-size:13px}body.signed-out main{padding:0 12px}.auth-shell{grid-template-columns:minmax(0,1fr);min-height:0;border-radius:0 0 16px 16px}.auth-intro{min-height:0;padding:34px 26px 30px}.auth-intro-pill{margin-bottom:28px;font-size:10px}.auth-intro h2{margin-bottom:16px;font-size:32px}.auth-intro-copy{margin-bottom:24px;font-size:15px}.auth-feature{min-height:70px;margin-bottom:10px;padding:12px 14px}.auth-feature:last-of-type{margin-bottom:20px}.auth-intro-footer{margin-top:4px}.auth-content{max-width:none;padding:36px 24px}.auth-content h1{font-size:29px}.auth-subtitle{margin-bottom:28px}.auth-workspaces{grid-template-columns:1fr;gap:10px;margin-bottom:26px}.auth-workspaces legend{margin-bottom:2px}.auth-workspace-choice{min-height:72px;padding:12px 15px}.auth-bottom{flex-direction:column;gap:8px}body.signed-out footer{margin:0 12px;padding:16px 18px 22px;border-radius:0 0 16px 16px}body.signed-out footer span{float:none;display:block;margin-top:5px}}
@media(max-width:390px){body.signed-out .portal-header .auth-brand img{width:122px}.auth-home-link{font-size:12px}.auth-content{padding:30px 18px}.auth-intro{padding:30px 20px}}

/* Single-screen signed-out layout: keep every login action in the viewport. */
body.signed-out{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.signed-out .portal-header{flex:0 0 74px;height:74px;min-height:74px;margin:0 auto;padding:12px 38px;border-radius:0;box-shadow:none}
body.signed-out #layout{flex:1 1 auto;width:100%;min-height:0;height:auto;overflow:hidden}
body.signed-out main{height:100%;min-height:0;padding:clamp(8px,1.8vh,18px) 4vw;overflow:hidden}
.auth-shell{height:100%;min-height:0}
.auth-intro{height:100%;min-height:0;padding:clamp(20px,3vh,34px) clamp(24px,3.2vw,46px)}
.auth-intro-pill{margin-bottom:clamp(18px,3vh,38px)}
.auth-intro h2{font-size:clamp(30px,3.7vh,40px);line-height:1.14;margin-bottom:14px}
.auth-intro-copy{font-size:15px;margin-bottom:clamp(14px,2.4vh,26px)}
.auth-feature{min-height:clamp(58px,7.5vh,76px);margin-bottom:10px;padding:10px 16px}
.auth-feature-icon{width:38px;height:38px;min-width:38px}
.auth-content{padding:clamp(16px,2.8vh,28px) clamp(30px,6vw,78px)}
.auth-kicker{margin-bottom:12px}
.auth-content h1{font-size:29px;margin-bottom:8px}
.auth-subtitle{margin-bottom:clamp(14px,2.1vh,22px);font-size:15px}
.auth-workspaces{gap:12px;margin-bottom:clamp(14px,2vh,20px)}
.auth-workspaces legend{margin-bottom:10px}
.auth-workspace-choice{min-height:68px;padding:10px 13px}
#auth{gap:clamp(10px,1.5vh,15px)}
.auth-field{gap:6px}
.auth-field>input,.auth-password{min-height:48px}
.auth-password input{height:46px}
.auth-submit{min-height:50px;margin-top:8px}
.auth-request-link{margin:12px 0 14px}
.auth-bottom{margin-top:12px;padding-top:12px}
.auth-captcha{min-height:0;display:flex;justify-content:flex-start;overflow:hidden}
.mfa-qr-wrap{display:grid;justify-items:center;gap:7px;margin:0 0 12px;text-align:center;font-size:13px}
.mfa-qr-wrap img{width:150px;height:150px;object-fit:contain;background:#fff;border:1px solid #e1e5ea;border-radius:8px;padding:5px}
.mfa-secret{max-width:100%;overflow-wrap:anywhere;padding:7px 10px;border-radius:6px;background:#f1f4f7;color:#132b44;font-size:12px;letter-spacing:.04em}
body.signed-out footer{display:none}
@media(max-height:760px) and (min-width:761px){
 body.signed-out .portal-header{flex-basis:62px;height:62px;min-height:62px;padding:8px 30px}
 body.signed-out #main{padding-top:6px;padding-bottom:6px}
 .auth-intro{padding:20px 30px}
 .auth-intro-pill{margin-bottom:14px}
 .auth-intro h2{font-size:29px;margin-bottom:10px}
 .auth-intro-copy{font-size:14px;margin-bottom:12px}
 .auth-feature{min-height:54px;margin-bottom:8px;padding:8px 12px}
 .auth-feature small{font-size:12px}
 .auth-content{padding:12px 6%}
 .auth-kicker{margin-bottom:8px}
 .auth-content h1{font-size:26px;margin-bottom:6px}
 .auth-subtitle{margin-bottom:10px;font-size:14px}
 .auth-workspaces{margin-bottom:10px}
 .auth-workspaces legend{margin-bottom:7px}
 .auth-workspace-choice{min-height:58px;padding:8px 10px}
 #auth{gap:8px}
 .auth-field{gap:4px;font-size:14px}
 .auth-field>input,.auth-password{min-height:42px}
 .auth-password input{height:40px}
 .auth-submit{min-height:44px;margin-top:4px}
 .mfa-qr-wrap{gap:5px;margin-bottom:7px;font-size:12px}
 .mfa-qr-wrap img{width:116px;height:116px}
 .mfa-secret{padding:5px 8px;font-size:11px}
 .auth-request-link{margin:8px 0}
 .auth-bottom{margin-top:8px;padding-top:8px;font-size:11px}
}
@media(max-width:760px){
 body.signed-out .portal-header{flex:0 0 56px;height:56px;min-height:56px;margin:0 8px;padding:7px 14px}
 body.signed-out .portal-header .auth-brand img{width:132px;max-height:42px}
 body.signed-out #layout{margin:0 8px;width:auto}
 body.signed-out main{padding:6px 0}
 .auth-shell{grid-template-columns:minmax(0,1fr);border-radius:0 0 14px 14px}
 .auth-intro{height:auto;min-height:0;padding:12px 18px}
 .auth-intro-pill{margin-bottom:6px;padding:5px 10px;font-size:9px}
 .auth-intro h2{margin:0;font-size:23px;line-height:1.08}
 .auth-intro-copy,.auth-feature,.auth-intro-footer{display:none}
 .auth-content{max-width:none;padding:clamp(12px,2vh,20px) 18px}
 .auth-kicker{margin-bottom:5px;font-size:11px}
 .auth-content h1{font-size:26px;margin-bottom:5px}
 .auth-subtitle{margin-bottom:10px;font-size:13px}
 .auth-workspaces{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:11px}
 .auth-workspaces legend{margin-bottom:6px;font-size:13px}
 .auth-workspace-choice{min-height:58px;gap:7px;padding:7px}
 .auth-radio{width:16px;height:16px;min-width:16px}
 .auth-workspace-choice:has(input:checked) .auth-radio::after{inset:3px}
 .auth-workspace-choice strong{font-size:12px;line-height:1.2}
 .auth-workspace-choice small{font-size:10px;line-height:1.2}
 #auth{gap:8px}
 .auth-field{gap:4px;font-size:13px}
 .auth-field>input,.auth-password{min-height:42px;border-radius:7px}
 .auth-field>input{padding:0 12px;font-size:14px}
 .auth-password input{height:40px;padding:0 12px;font-size:14px}
 .auth-password button{padding:0 12px;font-size:12px}
 .auth-form-options{margin-top:0;font-size:12px}
 .auth-remember{gap:7px;font-size:12px}
 .auth-remember input{width:16px;height:16px}
 .auth-link-button{font-size:12px}
 .auth-submit{min-height:46px;margin-top:3px;font-size:15px}
 .auth-request-link{margin:8px 0 9px;font-size:12px}
 .auth-bottom{flex-direction:row;gap:8px;margin-top:8px;padding-top:8px;font-size:10px}
 body.signed-out footer{display:none}
}
@media(max-width:760px) and (max-height:660px){
 .auth-intro{display:none}
 .auth-content{padding:8px 18px}
 .auth-content h1{font-size:23px}
 .auth-subtitle{margin-bottom:7px}
 .auth-workspaces{margin-bottom:8px}
 .auth-workspace-choice{min-height:50px}
 #auth{gap:6px}
 .auth-field>input,.auth-password{min-height:38px}
 .auth-password input{height:36px}
 .auth-submit{min-height:40px}
 .auth-request-link{margin:5px 0}
 .auth-bottom{margin-top:5px;padding-top:5px}
}
@media(min-width:761px){body.signed-out .portal-header{width:100%}}

/* Use the public homepage's top line and navigation on the signed-out portal. */
.auth-site-topline[hidden]{display:none}
.auth-site-topline{flex:0 0 34px;height:34px;background:#14232d;color:#c7d1da;font:12px/1.2 Inter,Arial,sans-serif;letter-spacing:.04em}
.auth-site-wrap{width:min(1200px,calc(100% - 48px));height:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between}
.auth-site-topline strong{color:#fff}
.auth-topline-right{display:flex;gap:20px}
.auth-topline-right a{color:inherit;text-decoration:none}
.auth-topline-right a:hover{color:#fff}
body.signed-out .portal-header.home-login-header{box-sizing:border-box;flex:0 0 112px;width:100%;height:112px;min-height:112px;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:#f4f3ef;box-shadow:0 8px 25px #14232d14;display:flex;justify-content:center}
.auth-nav-wrap{position:relative;display:flex;align-items:center;gap:clamp(12px,1.8vw,22px);width:min(1200px,calc(100% - 48px));height:100%;margin:0 auto}
.auth-brand{display:flex;align-items:center;flex:0 0 auto;padding:0;background:transparent}
body.signed-out .portal-header .auth-brand img{display:block;width:224px;height:auto;max-height:60px;object-fit:contain}
.auth-primary-nav{position:static;display:flex;align-items:center;justify-content:flex-end;gap:clamp(8px,1vw,16px);flex:1;min-width:0;margin-left:auto;color:#14232d;font-size:12.5px;font-weight:700}
.auth-primary-nav>a,.auth-primary-nav>div>button{color:#14232d;white-space:nowrap;text-decoration:none;opacity:.9}
.auth-primary-nav>a:hover,.auth-primary-nav>div>button:hover{opacity:1;text-decoration:underline;text-decoration-color:#ef682a;text-underline-offset:5px}
.auth-primary-nav .products-nav,.auth-primary-nav .services-nav{position:relative;flex:0 0 auto}
.auth-primary-nav .products-toggle,.auth-primary-nav .services-toggle{display:flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.auth-primary-nav .products-toggle::after,.auth-primary-nav .services-toggle::after{content:"";width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin-top:-3px}
.auth-primary-nav .products-menu,.auth-primary-nav .services-menu{position:absolute;z-index:120;top:calc(100% + 14px);left:0;min-width:250px;padding:8px;background:#f4f3ef;border:1px solid #dfe5e9;box-shadow:0 8px 25px #14232d20}
.auth-primary-nav .services-menu{min-width:230px}
.auth-primary-nav .products-menu a,.auth-primary-nav .services-menu a{display:block;padding:11px 13px;color:#14232d;font-size:13px;white-space:nowrap}
.auth-primary-nav .products-menu a:hover,.auth-primary-nav .services-menu a:hover{background:#e9e8e3;text-decoration:underline;text-decoration-color:#ef682a;text-underline-offset:4px}
.auth-primary-nav .products-menu[hidden],.auth-primary-nav .services-menu[hidden]{display:none}
.auth-nav-wrap .nav-cta{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:44px;padding:0 15px;border:1px solid #ef682a;border-radius:3px;background:#ef682a;color:#14232d;font-size:12px;font-weight:700;white-space:nowrap;text-decoration:none}
.auth-nav-wrap .nav-cta:hover{background:#e25a1d}
.auth-nav-wrap .menu-toggle{display:none;border:1px solid #647784;border-radius:3px;padding:9px 12px;background:transparent;color:#14232d;font-size:14px;font-weight:700}
body.signed-out #layout{flex:1 1 auto;min-height:0;height:auto}
body.signed-out main{padding:clamp(4px,1vh,10px) 4vw}
body.signed-out .auth-shell{height:100%;min-height:0}
@media(max-width:1180px){
 body.signed-out .portal-header.home-login-header{flex-basis:104px;height:104px;min-height:104px}
 .auth-nav-wrap{width:calc(100% - 48px)}
 .auth-nav-wrap .menu-toggle{display:block;margin-left:auto}
 .auth-nav-wrap .nav-cta{display:none}
 .auth-primary-nav{display:none;position:absolute;z-index:120;left:0;right:0;top:100%;max-height:calc(100dvh - 150px);overflow-y:auto;padding:10px 24px 18px;background:#f4f3ef;border-top:1px solid #14232d20;box-shadow:0 14px 20px #14232d20;margin:0;flex-direction:column;align-items:stretch;gap:0}
 .auth-primary-nav.open{display:flex}
 .auth-primary-nav>a{padding:12px 5px;border-bottom:1px solid #14232d20;font-size:14px}
 .auth-primary-nav .products-toggle,.auth-primary-nav .services-toggle{width:100%;justify-content:space-between;padding:12px 5px;border-bottom:1px solid #14232d20;font-size:14px}
 .auth-primary-nav .products-menu,.auth-primary-nav .services-menu{position:static;min-width:0;padding:0 0 0 16px;border:0;box-shadow:none}
 .auth-primary-nav .products-menu a,.auth-primary-nav .services-menu a{white-space:normal;padding:11px 5px}
}
@media(max-height:820px) and (min-width:761px){
 .auth-site-topline{flex-basis:30px;height:30px}
 body.signed-out .portal-header.home-login-header{flex-basis:88px;height:88px;min-height:88px}
 body.signed-out main{padding:4px 3vw}
 .auth-intro{padding:18px 28px}
 .auth-intro-pill{margin-bottom:14px}
 .auth-intro h2{font-size:29px;margin-bottom:9px}
 .auth-intro-copy{font-size:13px;margin-bottom:11px}
 .auth-feature{min-height:49px;margin-bottom:7px;padding:7px 10px}
 .auth-feature-icon{width:34px;height:34px;min-width:34px}
 .auth-feature strong{font-size:13px}
 .auth-feature small{font-size:11px}
 .auth-intro-footer{font-size:11px}
 .auth-content{padding:7px 5%}
 .auth-kicker{font-size:11px;margin-bottom:6px}
 .auth-content h1{font-size:24px;margin-bottom:4px}
 .auth-subtitle{font-size:13px;margin-bottom:8px}
 .auth-workspaces{gap:8px;margin-bottom:8px}
 .auth-workspaces legend{margin-bottom:5px;font-size:13px}
 .auth-workspace-choice{min-height:52px;padding:7px 9px}
 .auth-workspace-choice strong{font-size:13px}
 .auth-workspace-choice small{font-size:11px}
 #auth{gap:7px}
 .auth-field{gap:3px;font-size:13px}
 .auth-field>input,.auth-password{min-height:38px}
 .auth-password input{height:36px}
 .auth-password button{padding:0 12px}
 .auth-form-options{font-size:12px}
 .auth-remember,.auth-link-button{font-size:12px}
 .auth-submit{min-height:40px;margin-top:2px}
 .auth-request-link{margin:5px 0 6px;font-size:12px}
 .auth-bottom{margin-top:5px;padding-top:5px;font-size:10px}
}
@media(max-width:760px){
 .auth-site-topline{flex-basis:30px;height:30px;font-size:11px}
 .auth-site-wrap{width:calc(100% - 32px)}
 body.signed-out .portal-header.home-login-header{flex-basis:75px;height:75px;min-height:75px}
 .auth-nav-wrap{width:calc(100% - 34px)}
 body.signed-out .portal-header .auth-brand img{width:166px;max-height:48px}
 .auth-nav-wrap .menu-toggle{font-size:13px;padding:8px 10px}
 body.signed-out main{padding:4px 8px}
 .auth-content{padding:10px 16px}
 .auth-intro{padding:9px 16px}
 .auth-intro-pill{margin-bottom:4px;padding:4px 8px;font-size:9px}
 .auth-intro h2{font-size:21px;line-height:1.05;margin:0}
 .auth-intro-copy,.auth-feature,.auth-intro-footer{display:none}
 .auth-content h1{font-size:24px}
 .auth-subtitle{font-size:12px;margin-bottom:7px}
 .auth-workspaces{gap:6px;margin-bottom:8px}
 .auth-workspaces legend{font-size:12px;margin-bottom:4px}
 .auth-workspace-choice{min-height:49px;gap:5px;padding:5px}
 .auth-workspace-choice strong{font-size:11px}
 .auth-workspace-choice small{font-size:9px}
 .auth-radio{width:15px;height:15px;min-width:15px}
 #auth{gap:6px}
 .auth-field{gap:3px;font-size:12px}
 .auth-field>input,.auth-password{min-height:38px}
 .auth-password input{height:36px}
 .auth-form-options{gap:8px}
 .auth-remember,.auth-link-button{font-size:11px}
 .auth-remember input{width:14px;height:14px}
 .auth-submit{min-height:40px;font-size:14px;margin-top:1px}
 .auth-request-link{font-size:11px;margin:5px 0}
 .auth-bottom{flex-direction:row;gap:5px;margin-top:5px;padding-top:5px;font-size:9px}
}
@media(max-width:760px) and (max-height:720px){.auth-intro{display:none}.auth-content{padding:6px 14px}.auth-content h1{font-size:22px}.auth-subtitle{margin-bottom:5px}.auth-workspace-choice{min-height:44px}#auth{gap:5px}.auth-field>input,.auth-password{min-height:35px}.auth-password input{height:33px}.auth-submit{min-height:37px}.auth-request-link{margin:4px 0}.auth-bottom{margin-top:4px;padding-top:4px}}

/* Keep SAE branding visible while the shared portal header is hidden on auth screens. */
.auth-login-brand{display:inline-flex;align-items:center;width:max-content;margin:0 0 18px;line-height:0}
.auth-login-brand img{display:block;width:min(190px,60vw);max-height:52px;height:auto;object-fit:contain}
@media(max-width:760px){.auth-login-brand{margin-bottom:8px}.auth-login-brand img{width:min(150px,55vw);max-height:42px}}
@media(max-width:760px) and (max-height:660px){.auth-login-brand{margin-bottom:5px}.auth-login-brand img{width:min(132px,50vw);max-height:36px}}

/* Login portal: image-led split matching the homepage hero and palette. */
body.signed-out .auth-shell{grid-template-columns:minmax(0,43%) minmax(0,57%);border-radius:0 0 4px 4px}
body.signed-out .auth-intro{background:#14232d url('/assets/home-piping-installation.webp?v=2567a2d3f129') 68% center/cover no-repeat}
body.signed-out .auth-intro::before{inset:0;top:0;right:0;width:auto;height:auto;border-radius:0;background:linear-gradient(90deg,rgba(20,35,45,.92) 0%,rgba(20,35,45,.78) 52%,rgba(20,35,45,.3) 100%),linear-gradient(0deg,rgba(20,35,45,.72),transparent 68%);opacity:1}
body.signed-out .auth-intro::after{display:none}
body.signed-out .auth-intro-pill{border:1px solid rgba(255,255,255,.25);border-radius:3px;background:rgba(20,35,45,.55)}
body.signed-out .auth-feature{border:1px solid rgba(255,255,255,.24);border-radius:4px;background:rgba(20,35,45,.56);backdrop-filter:blur(3px)}
body.signed-out .auth-feature-icon{border-radius:4px;background:rgba(239,104,42,.2);color:#ff9a65}
body.signed-out .auth-content{max-width:740px}
body.signed-out .auth-kicker{color:#ef682a}
body.signed-out .auth-workspace-choice{border-radius:4px}
body.signed-out .auth-workspace-choice:has(input:checked){border-color:#ef682a;background:#fff8f3}
body.signed-out .auth-submit{border:1px solid #ef682a;border-radius:3px;background:#ef682a;color:#fff}
body.signed-out .auth-submit:hover{background:#df571e}
@media(max-width:760px){body.signed-out .auth-shell{grid-template-columns:minmax(0,1fr)}body.signed-out .auth-intro{background-position:68% 43%}}

/* Signed-out portal: remove site navigation and center the complete login panel. */
body.signed-out #auth-topline,body.signed-out .portal-header{display:none!important}
body.signed-out #layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);flex:1 1 auto;place-items:center;width:100%;height:100%;min-height:0;margin:0;padding:clamp(24px,4vw,56px);overflow:hidden}
body.signed-out main{grid-column:1/-1;display:grid;place-items:center;width:100%;height:100%;min-height:0;margin:0;padding:0;overflow:hidden}
body.signed-out .auth-shell{width:100%;height:100%;max-width:none;min-height:0;margin:0;grid-template-columns:minmax(0,43%) minmax(0,57%);border-radius:4px}
body.signed-out .auth-intro{height:100%;min-height:0}
body.signed-out .auth-intro h2{margin-top:0}
@media(max-width:760px){
 body.signed-out #layout{padding:12px}
 body.signed-out .auth-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 body.signed-out .auth-intro{height:auto;min-height:0;padding:18px 20px}
 body.signed-out .auth-intro-copy,body.signed-out .auth-feature,body.signed-out .auth-intro-footer{display:none}
}

/* Minimal sign-in: retain the existing form scale and center it on white. */
html:has(body.signed-out),body.signed-out,body.signed-out #layout,body.signed-out main,
body.signed-out .auth-shell,body.signed-out .auth-content{background:#fff!important}
body.signed-out #layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);padding:0}
body.signed-out main{grid-column:1/-1;padding:24px;overflow:auto}
body.signed-out .auth-shell{display:block;width:min(558px,100%);height:auto;max-width:558px;min-height:0;margin:auto;background:#fff;box-shadow:none;border:0;border-radius:0;overflow:visible}
body.signed-out .auth-intro{display:none}
body.signed-out .auth-content{width:100%;max-width:558px;margin:auto;padding:0;align-self:center;background:#fff}
@media(max-width:760px){body.signed-out main{padding:18px}body.signed-out .auth-shell,body.signed-out .auth-content{width:100%;max-width:558px}}
/* Nested user-management navigation shares the CRM submenu treatment. */
#account-submenu{padding-left:17px;border-left:1px solid #43545e;margin:5px 0 12px 20px}
#account-submenu[hidden]{display:none}
#sidebar #account-submenu button{font-size:13px;padding:11px 8px;gap:8px}

.quick-quote-cta{background:#f36b25!important;color:#fff!important;border:1px solid #d85b1d!important;font-weight:700;box-shadow:0 3px 9px #14263024}.quick-quote-cta:hover{background:#d95516!important}
.code-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.code-chart{min-width:0}.code-chart h2,.pressure-limit-note h2{margin-top:0}.code-format{margin-bottom:16px}.code-segments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.code-segments span{display:block;background:#edf1f3;border-top:3px solid #f36b25;border-radius:4px;padding:14px}.code-segments strong,.code-segments small{display:block}.code-segments strong{font-size:19px;color:#142630;letter-spacing:.05em}.code-segments small{margin-top:5px;color:#52677b}.pressure-limit-note{margin-top:16px}.pressure-limit-note p{max-width:none}@media(max-width:760px){.code-chart-grid{grid-template-columns:1fr}.code-segments{grid-template-columns:repeat(2,minmax(0,1fr))}.supplement-tabs{overflow-x:auto;flex-wrap:nowrap}.supplement-tabs button{white-space:nowrap}}

/* Teams Workspace Task Manager */
.task-page-head{align-items:center}.task-page-head p,.mailbox-head p{margin:5px 0 0;color:#667982}.task-assignees small{color:#6c7e87}.task-tabs{display:flex;gap:7px;padding:8px;background:#e9eef0;border-radius:8px;margin:18px 0}.task-tabs button{border:0;background:transparent;padding:10px 14px;border-radius:6px}.task-tabs button.active{background:white;color:#e96121;font-weight:700;box-shadow:0 1px 3px #14263018}.task-board{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:12px;overflow-x:auto;padding-bottom:16px}.task-column{background:#edf1f2;border-radius:9px;padding:12px;min-height:320px;border-top:3px solid #91a2aa}.task-column:nth-child(2){border-color:#f0b43c}.task-column:nth-child(3){border-color:#f36b25}.task-column:nth-child(4){border-color:#368367}.task-column>h2{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin:0 0 12px}.task-column>h2 span{background:#fff;border-radius:20px;padding:3px 8px}.task-card{background:#fff;border:1px solid #dce3e7;border-radius:8px;padding:13px;margin-bottom:10px;box-shadow:0 2px 5px #14263008}.task-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.task-card-top small{color:#6d7e86;font-size:10px}.task-priority{display:inline-block;border-radius:20px;padding:4px 9px;color:#fff;background:#778991;font-size:10px;font-weight:700;text-transform:uppercase}.task-priority-low{background:#398264}.task-priority-normal{background:#d6a32e}.task-priority-high{background:#e96c25}.task-priority-urgent{background:#c64f46}.task-card h3{font-size:14px;line-height:1.4;margin:10px 0 5px;overflow-wrap:anywhere}.task-card p{font-size:12px;line-height:1.45;color:#657780;white-space:pre-wrap;overflow-wrap:anywhere}.task-assignees{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid #edf0f1;padding-top:9px;margin-top:10px;font-size:11px}.task-assignees span{overflow-wrap:anywhere}.task-assignees small{display:block;font-size:9px;text-transform:uppercase;margin-bottom:3px}.task-card .actions{margin:10px 0 0}.task-card .actions button{font-size:11px;padding:6px 9px}.task-empty{font-size:12px;text-align:center;color:#71828a;padding:36px 4px}.task-dialog{max-width:690px}.task-dialog fieldset{border:1px solid #dce3e7;border-radius:8px;padding:12px}.task-dialog legend{font-weight:700;padding:0 6px}.task-collab-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.task-collab-list label{display:flex;align-items:center;gap:8px;padding:8px;background:#f5f7f8;border-radius:6px}.task-collab-list small{display:block;color:#71828a;font-size:10px}
/* Three-pane Teams Workspace mailbox */
.mailbox-head{align-items:center}.mail-toolbar{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}.mail-toolbar label{display:flex;gap:10px;align-items:center;font-weight:700}.mail-toolbar select{min-width:260px}.mail-toolbar>span{color:#71828a;font-size:12px}.mail-add-panel{margin:12px 0}.mail-add-panel>p{color:#657780;font-size:13px}.mail-smtp-optional{grid-column:1/-1;padding:14px;background:#f4f6f7;border-radius:8px}.mail-smtp-optional h3{font-size:13px;margin:0 0 12px}.mail-layout{display:grid;grid-template-columns:150px minmax(250px,360px) minmax(300px,1fr);min-height:620px;border:1px solid #dce3e7;border-radius:9px;background:#fff;overflow:hidden}.mail-folders{padding:12px 9px;border-right:1px solid #e1e7ea}.mail-folders h2,.mail-list-head h2{font-size:12px;margin:4px 5px 10px}.mail-folders button{display:flex;justify-content:space-between;width:100%;border:0;border-radius:6px;padding:9px 8px;background:transparent;text-align:left;font-size:12px}.mail-folders button.active{background:#edf1f2;color:#e96121;font-weight:700}.mail-folders button span{color:#e96121}.mail-folder-note{display:block;margin:18px 5px;color:#778790;font-size:10px;line-height:1.4}.mail-list{border-right:1px solid #e1e7ea;min-width:0}.mail-list-head{padding:12px;border-bottom:1px solid #e1e7ea}.mail-search{display:flex;align-items:center;gap:7px;background:#eff2f3;border-radius:6px;padding:0 8px}.mail-search input{border:0;background:transparent;width:100%;padding:9px 2px;outline:none}.mail-message{display:grid;grid-template-columns:1fr auto;gap:5px 8px;text-align:left;background:white;border:0;border-bottom:1px solid #e8edef;border-radius:0;width:100%;padding:12px;font-size:11px}.mail-message:hover,.mail-message.selected{background:#eef2f4}.mail-message strong,.mail-message b,.mail-message span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mail-message small{font-size:9px;color:#71828a}.mail-message b,.mail-message span{grid-column:1/-1}.mail-message span{color:#72838b}.mail-message[hidden]{display:none}.mail-empty{padding:25px 14px;color:#71828a;font-size:12px}.mail-reading{padding:20px;min-width:0;display:flex;flex-direction:column}.mail-reading header{border-bottom:1px solid #e4e9eb;padding-bottom:12px}.mail-reading h2{font-size:19px;overflow-wrap:anywhere}.mail-reading header p{font-size:11px;line-height:1.7;color:#667982}.mail-reading pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 Arial,sans-serif;color:#26383f;flex:1;max-height:450px;overflow:auto}.mail-reading-actions{display:flex;gap:8px;background:#eff2f3;padding:10px;border-radius:7px}.mail-placeholder{margin:auto;text-align:center;color:#71828a;font-size:13px}.mail-placeholder strong{color:#253840}.mail-compose-dialog{max-width:680px}.mail-compose-dialog textarea{min-height:190px}.mail-compose-status{color:#a84829;font-size:12px}
@media(max-width:1050px){.task-board{grid-template-columns:repeat(4,minmax(245px,1fr))}.mail-layout{grid-template-columns:130px minmax(220px,300px) minmax(260px,1fr)}}
@media(max-width:760px){.task-board{grid-template-columns:repeat(4,minmax(250px,1fr))}.task-page-head,.mailbox-head{align-items:flex-start}.task-tabs{overflow:auto}.mail-layout{grid-template-columns:95px minmax(190px,1fr);min-height:520px}.mail-reading{grid-column:1/-1;border-top:1px solid #e1e7ea;min-height:300px}.mail-folders{padding:8px 5px}.mail-folders button{font-size:10px;padding:8px 5px}.mail-toolbar label{align-items:flex-start;flex-direction:column}.mail-toolbar select{min-width:min(260px,80vw)}.task-collab-list{grid-template-columns:1fr}}
.task-collab-field{display:grid;gap:7px;margin:14px 0}.task-collab-label{font-weight:700}.task-collab-dropdown{position:relative}.task-collab-dropdown summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:9px 12px;border:1px solid #cbd5da;border-radius:6px;background:#fff;cursor:pointer;list-style:none}.task-collab-dropdown summary::-webkit-details-marker{display:none}.task-collab-dropdown summary::after{content:"";width:8px;height:8px;border-right:2px solid #52677b;border-bottom:2px solid #52677b;transform:rotate(45deg) translateY(-2px);transition:transform .15s}.task-collab-dropdown[open] summary::after{transform:rotate(225deg) translate(-2px,-1px)}.task-collab-dropdown summary:focus-visible{outline:2px solid #f36b25;outline-offset:2px}.task-collab-list{position:absolute;z-index:10;top:calc(100% + 4px);left:0;right:0;display:grid;grid-template-columns:1fr;gap:4px;max-height:220px;overflow:auto;padding:8px;border:1px solid #d1dade;border-radius:7px;background:#fff;box-shadow:0 8px 22px #14263024}.task-collab-list label{cursor:pointer}.task-collab-list label:has(input:disabled){opacity:.6;cursor:not-allowed}.task-collab-list input{accent-color:#f36b25}.task-collab-list small{font-size:12px}
/* Keep Product Search filters in their established compact grid. */
.product-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;margin-top:20px}.product-filter-grid label{font-size:11px;text-transform:uppercase;letter-spacing:.07em;margin:0}.product-filter-grid select{margin-top:7px;font-size:12px}
@media(max-width:1100px){.product-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.product-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.task-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0 20px}.task-filter-grid>button{align-self:end;min-height:42px;border:1px solid #cbd5da;border-radius:6px;background:#fff;color:#344c57;font-size:12px;font-weight:650;cursor:pointer}.task-filter-grid>button:hover{border-color:#e8662a;color:#c6541d}@media(max-width:1100px){.task-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.task-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.task-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.task-search{display:grid;gap:4px;font-size:12px;font-weight:700;color:#344c57}.task-search input{min-width:min(310px,42vw);min-height:42px;padding:8px 11px;border:1px solid #cbd5da;border-radius:6px;background:#fff;font:inherit;font-weight:400}.task-search input:focus{outline:3px solid #f7d18b;outline-offset:1px;border-color:#d98b13}.task-empty[hidden],.task-card[hidden]{display:none!important}
@media(max-width:760px){.task-tools{width:100%;align-items:stretch}.task-search{flex:1}.task-search input{width:100%;min-width:0}.task-tools>#create-task{align-self:end}}
.task-collab-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;text-align:left;border:1px solid transparent;border-radius:6px;background:#fff;padding:10px 12px;cursor:pointer}.task-collab-option:hover{background:#f2f5f6;border-color:#dce3e7}.task-collab-option[aria-pressed="true"]{background:#fff4eb;border-color:#f36b25;color:#142630}.task-collab-option:focus-visible{outline:2px solid #f36b25;outline-offset:1px}.task-collab-option:disabled{opacity:.5;cursor:not-allowed}.task-collab-option span{font-weight:600}.task-collab-option small{font-size:12px;color:#637783;white-space:nowrap}

.auth-paused-shell{min-height:62vh;display:grid;place-items:center;padding:28px;background:#fff}.auth-paused-card{width:min(540px,100%);padding:42px 34px;text-align:center;border:1px solid #e4e9ed;border-radius:8px;background:#fff}.auth-paused-card img{width:170px;height:auto;margin:0 auto 24px}.auth-paused-card h1{margin:0 0 14px;color:#142b3b;font-size:30px}.auth-paused-card p:not(.auth-kicker){margin:0 auto 20px;color:#536473;line-height:1.6}.auth-paused-card a{color:#d85b1d;font-weight:700;text-decoration:underline}
@media(max-width:600px){.auth-paused-shell{min-height:60vh;padding:18px}.auth-paused-card{padding:32px 22px}.auth-paused-card h1{font-size:25px}}

.quick-quote-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:16px;margin-block:16px;padding:24px}
.quick-quote-summary strong{display:block;margin-top:4px}
.quick-quote-summary .price-note{grid-column:1/-1;margin:0}

.quick-review-items h2{margin-top:0}.quick-review-picker{display:grid;grid-template-columns:minmax(240px,1fr) 140px auto;align-items:end;gap:12px;margin:0 0 16px}.quick-review-picker label{margin:0}.quick-review-picker button{min-height:42px}.quick-review-items .table-wrap{margin-top:12px}.quick-review-items table{min-width:720px}
@media(max-width:760px){.quick-review-picker{grid-template-columns:1fr 110px}.quick-review-picker button{grid-column:1/-1;justify-self:start}}

/* Use Product Search sizing for dropdowns and filter controls across the workspace. */
body :is(#main,dialog) select,body :is(#main,dialog) .product-filter-grid input[type=search],body :is(#main,dialog) .task-filter-grid input[type=search],body :is(#main,dialog) .pros-filters input[type=search],body :is(#main,dialog) .crm-filters input[type=search],body :is(#main,dialog) .installer-filters input[type=search]{box-sizing:border-box;width:100%;min-width:0;min-height:38px;margin-top:7px;padding:10px;border:1px solid #c7d0d4;border-radius:2px;background:#fff;background-image:none;color:#142630;font-size:12px;line-height:1.25;appearance:auto}
body :is(#main,dialog) :is(.product-filter-grid,.task-filter-grid,.pros-filters,.crm-filters,.installer-filters) label{margin:0;color:#344c57;font-size:11px;font-weight:500;letter-spacing:.07em;text-transform:uppercase}
body :is(#main,dialog) select:disabled{background-color:#f1f4f5;color:#71818a;cursor:not-allowed}

.quick-quote-client-note h2{margin-top:0}.quick-quote-client-note>div{white-space:pre-wrap;overflow-wrap:anywhere;color:#405867}
.task-dashboard{border:1px solid #dce3e7;border-radius:10px;background:#fff;padding:18px;margin:16px 0 20px;box-shadow:0 2px 6px #14263008}.task-dashboard-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.task-dashboard-head h2{font-size:18px;margin:0;color:#142630}.task-dashboard-head>div:first-child>p:last-child{font-size:12px;color:#667982;margin:5px 0 0}.task-eyebrow{font-size:10px;font-weight:750;letter-spacing:.1em;color:#e96121;margin:0 0 5px}.task-kpis{display:flex;gap:8px;flex-wrap:wrap}.task-kpis>div{display:grid;gap:4px;min-width:90px;padding:9px 11px;border:1px solid #e1e7ea;border-radius:7px;background:#f8f9fa}.task-kpis small{font-size:10px;color:#667982}.task-kpis strong{font-size:18px;color:#142630}.task-chart-grid{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:12px}.task-chart-card{min-width:0;border:1px solid #e1e7ea;border-radius:8px;padding:13px}.task-chart-card h3{font-size:12px;margin:0 0 12px;color:#263b44}.task-donut-wrap{display:flex;align-items:center;gap:12px}.task-donut-wrap svg{width:120px;min-width:120px;max-width:42%;overflow:visible}.task-donut-number{font-size:21px;font-weight:750;fill:#142630}.task-donut-label{font-size:9px;fill:#697b83}.task-chart-legend{display:grid;gap:4px;min-width:0;flex:1}.task-chart-legend button{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:7px;border:1px solid transparent;border-radius:5px;padding:5px 6px;background:transparent;text-align:left;font-size:10px;color:#394f58;cursor:pointer}.task-chart-legend button:hover,.task-chart-legend button.active{border-color:#f0c29c;background:#fff6ef}.task-chart-legend i{width:8px;height:8px;border-radius:50%;background:var(--task-dot)}.task-chart-legend strong{font-size:11px;color:#142630}.task-priority-chart,.task-workstream-list{display:grid;gap:7px}.task-priority-chart button{display:grid;grid-template-columns:58px minmax(50px,1fr) 24px;align-items:center;gap:9px;width:100%;border:1px solid transparent;border-radius:5px;padding:5px 6px;background:transparent;text-align:left;color:#394f58;font-size:11px;cursor:pointer}.task-priority-chart button:hover,.task-priority-chart button.active,.task-workstream-list button:hover,.task-workstream-list button.active{border-color:#f0c29c;background:#fff6ef}.task-priority-chart strong{font-size:11px;color:#142630;text-align:right}.task-priority-track,.task-workstream-track{display:block;height:7px;overflow:hidden;border-radius:8px;background:#edf1f2}.task-priority-track i,.task-workstream-track i{display:block;height:100%;border-radius:8px;background:#f36b25}.task-chart-footnote{font-size:10px;color:#71828a;margin:8px 0 0}.task-workstream-list button{display:grid;grid-template-columns:minmax(108px,1.3fr) minmax(50px,1fr) auto;align-items:center;gap:8px;width:100%;border:1px solid transparent;border-radius:5px;padding:5px 6px;background:transparent;text-align:left;cursor:pointer}.task-workstream-name{font-size:10px;color:#394f58}.task-workstream-track{height:6px}.task-workstream-track i{background:#368367}.task-workstream-list small{font-size:9px;color:#64777f;white-space:nowrap}
@media(max-width:1000px){.task-chart-grid{grid-template-columns:1fr 1fr}.task-workstream-chart{grid-column:1/-1}.task-workstream-list{grid-template-columns:1fr 1fr;column-gap:12px}}
@media(max-width:650px){.task-dashboard{padding:12px}.task-dashboard-head{align-items:flex-start;flex-direction:column}.task-kpis{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.task-kpis>div{min-width:0}.task-chart-grid{grid-template-columns:1fr}.task-workstream-chart{grid-column:auto}.task-workstream-list{grid-template-columns:1fr}.task-donut-wrap svg{width:105px;min-width:105px}.task-workstream-list button{grid-template-columns:minmax(100px,1.2fr) minmax(48px,1fr) auto}}

/* Client Portal lead protection */
#lead-protection-form fieldset{min-width:0;border:0;border-top:1px solid var(--line);padding:14px 0 20px;margin:12px 0 0}
#lead-protection-form legend{font-weight:700;color:var(--navy);padding:0 10px 0 0}
#lead-protection-form .lead-field-help{margin:0;color:#485762;font-size:.875rem}
#lead-protection-form .lead-confirmation{display:flex;align-items:flex-start;gap:10px;margin:0 0 16px}
#lead-protection-form .lead-confirmation input{width:1rem;height:1rem;min-width:1rem;margin:3px 0 0;accent-color:var(--orange)}
#lead-protection-records{display:grid;gap:12px}
.lead-record{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.lead-record-header{display:grid;grid-template-columns:minmax(0,1fr) auto 12px;align-items:center;gap:14px;padding:16px 20px;cursor:pointer;list-style:none}
.lead-record-header::-webkit-details-marker{display:none}
.lead-record-header::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);justify-self:center}
.lead-record[open] .lead-record-header::after{transform:rotate(225deg)}
.lead-record-header:focus-visible{outline:2px solid var(--orange);outline-offset:-3px}
.lead-record-name{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.lead-record-name strong{color:var(--navy);font-size:1.04rem}
.lead-record-name span{color:#485762;font-size:.875rem}
.lead-record-status{padding:4px 9px;border-radius:999px;background:#edf0f2;color:#43525d;font-size:.8125rem;font-weight:700}
.lead-record-status.is-protected{background:#e7f4eb;color:#1b5f35}
.lead-record-body{padding:16px 20px 20px;border-top:1px solid var(--line)}
.lead-dates,.lead-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
.lead-dates{margin:0 0 18px;padding:12px 14px;border-radius:6px;background:#f3f6f8}
.lead-dates dt{font-size:.875rem;color:#485762}
.lead-dates dd{margin:4px 0 0;font-weight:700;color:var(--navy)}
#main .lead-record-grid h3{font-size:1rem;margin:0 0 6px;color:var(--navy)}
.lead-record-grid section{min-width:0;border-top:1px solid var(--line);padding-top:10px;overflow-wrap:anywhere}
.lead-record-grid p{margin:0 0 6px}
.lead-long-text{white-space:pre-line}
@media(max-width:600px){
 .lead-record-header,.lead-record-body{padding:12px 14px}
 .lead-record-header{gap:8px}
 .lead-dates,.lead-record-grid{grid-template-columns:1fr;gap:12px}
}
#lead-protection-form .lead-declaration{background:#f3f6f8;border:1px solid var(--line);border-radius:6px;padding:14px 16px;margin:0 0 16px}
#lead-protection-form .lead-declaration h3{font-size:1rem;color:var(--navy);margin:0 0 6px}
#lead-protection-form .lead-declaration p{margin:0 0 10px}
#lead-protection-form .lead-declaration .lead-confirmation{margin:0}

.admin-quote-form{display:grid;gap:16px;margin-top:24px;padding:22px;background:#fff;border:1px solid #dce3e7;border-radius:8px}.admin-quote-form h2{margin:0;color:#142630}.admin-quote-form>label{display:flex;flex-direction:column;align-items:stretch;gap:7px;font-size:12px;font-weight:600;letter-spacing:0;text-transform:none}.admin-quote-form input,.admin-quote-form select,.admin-quote-form textarea,.quote-client-modal input,.quote-client-modal textarea{width:100%;padding:11px 12px;border:1px solid #cbd5d9;border-radius:5px;background:#fff;color:#142630;font:inherit}.admin-quote-form textarea,.quote-client-modal textarea{min-height:84px;resize:vertical}.admin-quote-form>button#add-quote-customer{justify-self:start;width:auto;color:#b54a15;background:#fff;border:1px solid #e5a27d;border-radius:5px;padding:9px 13px}.admin-quote-form .actions{margin:0}.admin-quote-form .actions button{width:auto}.quote-client-modal{overflow:auto}.quote-client-modal form>label{display:flex;flex-direction:column;align-items:stretch;gap:7px;font-size:12px;font-weight:600;letter-spacing:0;text-transform:none}.quote-client-modal p{margin:0;color:#536872}.quote-client-modal .form-status{min-height:1.4em;color:#a02d1a}@media(max-width:760px){.admin-quote-form{padding:16px}.admin-quote-form .form-grid{grid-template-columns:1fr}.quote-client-modal{padding:18px}}
.quote-customer-snapshot{padding:16px 18px;background:#f4f7f8;border:1px solid #dce3e7;border-left:3px solid #f36b25;border-radius:6px}.quote-customer-snapshot h3{margin:0 0 12px;font-size:15px;color:#142630}.quote-customer-snapshot dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin:0}.quote-customer-snapshot dt{font-size:10px;color:#5c707a;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.quote-customer-snapshot dd{margin:2px 0 0;color:#142630;overflow-wrap:anywhere}@media(max-width:760px){.quote-customer-snapshot dl{grid-template-columns:1fr}}
#sales-toggle .quick-quote-alert{order:2;margin-left:0}
#sales-toggle .nav-chevron{order:3}

#client-po-declaration {
  display: grid;
  gap: 16px;
}
#client-po-declaration > :is(h2, p, .actions) {
  margin: 0;
}
#client-po-declaration .po-declaration-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid #d4dee3;
  border-radius: 6px;
  background: #f5f7f8;
  color: inherit;
  font-size: inherit;
  line-height: 1.5;
  cursor: pointer;
}
#client-po-declaration .po-declaration-confirmation input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: #ed641e;
}
#client-po-declaration .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
#client-po-declaration > .form-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.task-archive-board{grid-template-columns:minmax(280px,720px);}
.task-detail-dialog{max-width:650px}.task-detail-eyebrow{margin:0 0 5px;color:#e8662a;font-size:10px;font-weight:800;letter-spacing:.12em}.task-detail-dialog>div>h2{margin:0 0 18px;font-size:22px}.task-detail-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.task-detail-meta>div{display:grid;gap:4px;padding:11px 12px;border:1px solid #e1e7ea;border-radius:7px;background:#f8fafb}.task-detail-meta small{color:#71828a;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.task-detail-meta strong{font-size:13px;overflow-wrap:anywhere}.task-detail-notes{margin:16px 0;padding:13px;border-radius:7px;background:#f4f6f7}.task-detail-notes h3{margin:0 0 6px;font-size:13px}.task-detail-notes p{margin:0;color:#52656f;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:520px){.task-detail-meta{grid-template-columns:1fr}}
