*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Arial,sans-serif;background:#f4f7fb;color:#172033}.topbar{display:flex;justify-content:space-between;align-items:center;padding:20px 28px;background:#17365d;color:#fff}.brand{display:flex;align-items:center;gap:14px}.brand img{width:72px;height:58px;object-fit:contain}.brand h1{margin:0 0 3px}.brand p{margin:0;opacity:.8}.top-actions{display:flex;gap:10px}.button,button{border:0;border-radius:8px;padding:10px 14px;font-weight:700;cursor:pointer;background:#1f6fb2;color:#fff}.secondary{background:#e7eef7;color:#17365d}.danger{background:#b42318}.tabs{display:flex;gap:7px;padding:11px 22px;background:#fff;border-bottom:1px solid #dbe3ee;overflow:auto}.tab{background:#edf2f7;color:#42526a}.tab.active{background:#17365d;color:#fff}.panel{display:none;padding:24px}.panel.active{display:block}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.card,.box{background:#fff;border:1px solid #dfe6ef;border-radius:12px;padding:18px;box-shadow:0 3px 12px rgba(17,38,69,.05)}.card span{display:block;color:#65748b;font-size:.9rem}.card strong{display:block;font-size:1.8rem;margin-top:8px}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.form-grid,.addon-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{font-size:.88rem;color:#53627a;font-weight:600}input,select,textarea{width:100%;margin-top:6px;padding:10px;border:1px solid #cbd6e3;border-radius:8px;background:#fff;color:#172033}textarea{resize:vertical}.filters{display:flex;gap:12px;margin-bottom:14px}.filters input{max-width:360px}.filters select{max-width:240px}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:10px;border-bottom:1px solid #e7edf4;font-size:.9rem}th{background:#eef4fa;color:#42526a}.actions{display:flex;gap:6px}.actions button{padding:6px 9px;font-size:.78rem}.result-box{border-top:5px solid #1f6fb2}.result-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #edf1f6}.result-row.total{font-size:1.15rem;background:#edf7ed;padding:12px;margin:6px -8px}.full{width:100%;margin-top:12px}.capacity-bar{height:18px;background:#e5ebf2;border-radius:999px;overflow:hidden}.capacity-bar div{height:100%;width:0;background:#1f6fb2}.empty{padding:22px;text-align:center;color:#7a8798;background:#fff;border:1px dashed #cbd6e3;border-radius:10px}.spaced{margin-top:18px}.hidden{display:none!important}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:8px}.check-grid label{display:flex;align-items:center;gap:8px;background:#f7f9fc;border:1px solid #e1e7ef;border-radius:8px;padding:8px}.check-grid input{width:auto;margin:0}dialog{border:0;border-radius:14px;padding:24px;width:min(700px,94vw)}dialog::backdrop{background:rgba(10,20,35,.5)}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.preview-dialog{width:min(1050px,96vw);height:94vh;padding:0;overflow:hidden}.preview-toolbar{height:68px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe6ef}.preview-toolbar h2{margin:0}.preview-dialog iframe{width:100%;height:calc(94vh - 68px);border:0;background:#eef2f6}@media(max-width:900px){.cards,.grid.two,.grid.three{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column;gap:14px}.form-grid,.addon-grid{grid-template-columns:1fr}.panel{padding:15px}.check-grid{grid-template-columns:1fr}}
.topbar{background:#f3f7f5;color:#17365d;border-bottom:1px solid #d6e3de}
.brand p{color:#5f6f69;opacity:1}
.estimate-tab{margin-left:auto;background:#2f7d6d!important;color:#fff!important;box-shadow:0 3px 10px rgba(47,125,109,.22)}
.estimate-tab.active{background:#215f53!important}
.weekday-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}
.weekday-options label{display:flex;align-items:center;gap:5px;background:#f3f7f5;border:1px solid #d3e2dc;border-radius:8px;padding:7px 9px}
.weekday-options input{width:auto;margin:0}
.schedule-field>span{font-size:.88rem;color:#53627a;font-weight:600}
.role-entry{display:flex;gap:10px;max-width:620px}
.role-entry input{margin-top:0}
.compact{margin-bottom:10px}
@media(max-width:900px){.estimate-tab{margin-left:0}.role-entry{flex-direction:column}}

/* v2.3 branding */
.brand img{width:108px;height:87px}

.version-badge{display:inline-block;padding:7px 11px;border:1px solid #c8d8d2;border-radius:999px;color:#45665c;background:#fff;font-weight:700}
.cards{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.chart-layout{display:flex;align-items:center;justify-content:center;gap:24px;min-height:260px}
.big-stat{font-size:2rem;color:#17365d}
.capacity-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:8px 0 14px}
.capacity-summary-grid>div{background:#f7f9fc;border:1px solid #e1e7ef;border-radius:10px;padding:12px}
.capacity-summary-grid span{display:block;color:#65748b;font-size:.85rem}
.capacity-summary-grid strong{display:block;font-size:1.3rem;margin-top:5px}
.capacity-bar.large{height:20px;margin-bottom:16px}
.compact-select{min-width:190px}
.util-wrap{min-width:125px}
.mini-capacity{height:8px;background:#e5ebf2;border-radius:99px;overflow:hidden;margin-top:5px}
.mini-capacity>div{height:100%;border-radius:99px}
.util-low{color:#237a57}.mini-capacity .util-low,.capacity-bar .util-low{background:#3ca374}
.util-mid{color:#8a6d00}.mini-capacity .util-mid,.capacity-bar .util-mid{background:#d9a928}
.util-high{color:#a35400}.mini-capacity .util-high,.capacity-bar .util-high{background:#ef8d32}
.util-over{color:#b42318}.mini-capacity .util-over,.capacity-bar .util-over{background:#d92d20}
.backup-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:900px){.capacity-summary-grid{grid-template-columns:1fr}.chart-layout{flex-direction:column}}

/* v2.5 Scheduling and Estimates */
.calendar-months{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.calendar-month{background:#fff;border:1px solid #dfe6ef;border-radius:12px;padding:14px;overflow:hidden}
.calendar-month h3{margin:0 0 12px}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}
.calendar-weekdays span{text-align:center;font-size:.78rem;font-weight:700;color:#65748b;padding:7px 2px}
.calendar-day{min-height:115px;border:1px solid #e6ecf3;padding:6px;background:#fff;overflow:hidden}
.calendar-day.empty-day{background:#f7f9fb}
.calendar-date{display:flex;justify-content:space-between;gap:4px;font-size:.82rem;margin-bottom:5px}
.calendar-date span{font-weight:700}
.calendar-event{font-size:.75rem;background:rgba(255,255,255,.78);border-radius:5px;padding:4px;margin:3px 0;line-height:1.2;overflow-wrap:anywhere}
.calendar-event small{display:block;color:#566579;margin-top:2px}
.load-low{background:#eaf7f0!important}.load-mid{background:#fff6d8!important}.load-high{background:#ffead7!important}.load-over{background:#ffe0dd!important}
.calendar-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:.85rem}
.legend-dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:5px;border:1px solid rgba(0,0,0,.08)}
.legend-dot.load-low{background:#8ed0ac!important}.legend-dot.load-mid{background:#e7c95b!important}.legend-dot.load-high{background:#eaa264!important}.legend-dot.load-over{background:#df756c!important}
.calendar-note{font-size:.78rem;color:#65748b;margin:10px 0 0}
.estimate-actions{flex-wrap:wrap;min-width:250px}
.estimate-cards{grid-template-columns:repeat(4,1fr)}
@media(max-width:1100px){.calendar-months{grid-template-columns:1fr}.calendar-day{min-height:100px}}
@media(max-width:700px){.calendar-month{overflow-x:auto}.calendar-weekdays,.calendar-grid{min-width:760px}.estimate-cards{grid-template-columns:1fr 1fr}}

/* v2.6 dual capacity benchmarks */
#employeesTable,#capacityDetail{overflow-x:auto}
#employeesTable table,#capacityDetail table{min-width:1050px}

.owner-row{background:#f3f7f5}.muted{color:#65748b;font-size:.8rem}

/* v2.7 financial dashboard */
.financial-cards{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}
.financial-chart-grid{align-items:stretch}
.goal-box,.economics-box{min-height:430px}
.chart-subtitle{color:#65748b;font-size:.88rem;margin-top:-4px}
.financial-chart-layout{display:grid;grid-template-columns:minmax(270px,320px) 1fr;gap:18px;align-items:center}
.financial-chart-layout canvas{width:100%;max-width:300px;height:auto;margin:auto}
.chart-legend-detail{display:flex;flex-direction:column;gap:10px}
.chart-legend-row{display:grid;grid-template-columns:13px 1fr;gap:9px;align-items:start}
.legend-swatch{width:13px;height:13px;border-radius:4px;margin-top:3px}
.chart-legend-row strong{display:block;font-size:.9rem}
.chart-legend-row small{display:block;color:#65748b;margin-top:2px}
.chart-legend-divider{height:1px;background:#e2e8ef;margin:3px 0}
@media(max-width:1150px){.financial-chart-layout{grid-template-columns:1fr}.goal-box,.economics-box{min-height:auto}}

/* v2.8 work orders */
.link-button{background:none!important;color:#215f53!important;padding:0!important;box-shadow:none!important;text-decoration:underline;font-weight:700}
.work-order-dialog{width:min(920px,94vw);max-height:90vh;overflow:auto}
.work-order-header-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:12px 0 18px}
.work-order-header-grid>div{background:#f4f7f6;border:1px solid #dce6e2;border-radius:10px;padding:12px}
.work-order-header-grid span{display:block;color:#65748b;font-size:.8rem}
.work-order-header-grid strong{display:block;margin-top:4px}
.work-order-scope{display:grid;gap:7px;line-height:1.4}
.calendar-work-order-link{display:block;width:100%;margin-top:5px;padding:4px 6px;font-size:.7rem;background:#fff!important;color:#215f53!important;border:1px solid rgba(33,95,83,.25)}
.calendar-event strong{display:block}
@media(max-width:800px){.work-order-header-grid{grid-template-columns:1fr 1fr}}

/* v2.9 timed add-ons and work-order assignments */
.calendar-addon-note{display:block;margin-top:3px;font-weight:700;color:#5d4b13}
#workOrderAssignmentChecks{margin-top:10px}

/* v3.0 service execution */
.service-visit-dialog{width:min(980px,95vw);max-height:92vh;overflow:auto}
.labor-time-comparison,.labor-adjustment-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.labor-time-comparison>div,.labor-adjustment-summary>div{min-width:0;padding:12px;border:1px solid #dce5eb;border-radius:10px;background:#f7fafc}.labor-time-comparison span,.labor-adjustment-summary span{display:block;color:#687a8d;font-size:.75rem}.labor-time-comparison strong,.labor-adjustment-summary strong{display:block;margin:5px 0;color:#17365d;font-size:1.18rem}.labor-time-comparison small{display:block;color:#718296;line-height:1.35}.labor-adjust-button{width:100%;margin-top:12px}.labor-adjustment-history{margin-top:12px;border:1px solid #dce5eb;border-radius:10px;background:#fff}.labor-adjustment-history summary{padding:11px 12px;cursor:pointer;font-weight:800;color:#17365d}.labor-adjustment-history>div{display:grid;gap:9px;padding:0 12px 12px}.labor-adjustment-history article{min-width:0;padding:10px;border-left:4px solid #2f7d6d;background:#f4f9f7;border-radius:7px}.labor-adjustment-history article>div{display:flex;justify-content:space-between;gap:10px}.labor-adjustment-history article span,.labor-adjustment-history article small{color:#687a8d;font-size:.76rem}.labor-adjustment-history article p{margin:7px 0;overflow-wrap:anywhere}.labor-adjustment-dialog{width:min(620px,calc(100vw - 24px));max-height:92vh;overflow:auto}.labor-adjustment-dialog .dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.labor-adjustment-dialog .dialog-head h2{margin:0}.labor-adjustment-dialog .dialog-head p{margin:5px 0;color:#687a8d}.form-error{min-height:20px;color:#b42318}
.service-visit-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.service-checklist{display:grid;gap:7px;margin-top:12px}
.checklist-row{display:flex;gap:10px;align-items:flex-start;padding:9px 10px;border:1px solid #e1e8e5;border-radius:8px;background:#fafcfb}
.checklist-row input{margin-top:3px}
.checkbox-line{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.visit-variance{margin-top:10px;font-weight:700;color:#52657a}
.visit-status,.mini-visit-status{display:inline-block;border-radius:999px;padding:3px 8px;font-size:.72rem;font-weight:700;white-space:nowrap}
.visit-scheduled{background:#e8eef5;color:#415d78}
.visit-progress{background:#fff0c7;color:#795c00}
.visit-completed{background:#def3e8;color:#216b4f}
.visit-skipped{background:#ececec;color:#666}
.issue-badge{display:inline-block;margin-left:7px;padding:2px 6px;border-radius:999px;background:#ffe0dd;color:#a12d24;font-size:.68rem;font-weight:700}
.calendar-event-title{display:flex;justify-content:space-between;align-items:flex-start;gap:4px}
.calendar-event-actions{display:flex;gap:4px;margin-top:5px}
.calendar-event-actions button{flex:1;padding:4px 5px;font-size:.68rem}
.calendar-issue-note{display:block;margin-top:3px;color:#a12d24;font-weight:700}
.mini-visit-status{padding:2px 5px;font-size:.6rem}

/* v3.1 checklist alignment */
.service-checklist{justify-items:stretch}
.checklist-row{
 display:grid!important;
 grid-template-columns:20px minmax(0,1fr);
 align-items:start!important;
 justify-content:start!important;
 text-align:left!important;
 width:100%;
 box-sizing:border-box;
}
.checklist-row input{
 width:16px!important;
 min-width:16px!important;
 height:16px!important;
 margin:2px 0 0 0!important;
 justify-self:start;
}
.checklist-row span{
 display:block;
 text-align:left;
 line-height:1.35;
}

/* v3.1 dashboard issue drill-down */
.dashboard-action-card{border:1px solid #dce6e2;text-align:left;cursor:pointer;width:100%;font:inherit;-webkit-appearance:none;appearance:none}
.dashboard-action-card:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(23,54,93,.08)}
.dashboard-action-card small{display:block;color:#65748b;margin-top:3px}
@media(min-width:901px){
 .financial-cards .card{display:grid;grid-template-rows:minmax(2.6em,auto) auto 1fr;align-content:start}
 .financial-cards .card>span{min-height:2.6em;line-height:1.3}
 .financial-cards .card>strong{line-height:1.05;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
 .financial-cards .dashboard-action-card>small{align-self:start}
}
.open-issue-text{color:#a12d24;font-weight:700}
.resolved-text{color:#216b4f;font-weight:700}
.issue-badge.resolved{background:#def3e8;color:#216b4f}

/* v3.1 site access */
.access-instructions-callout{margin-top:12px;padding:10px 12px;border-left:4px solid #d9a928;background:#fff8df;border-radius:6px}
.access-instructions-callout p{white-space:pre-wrap;margin-bottom:0}

/* v3.1 single month calendar navigation */
.calendar-nav{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin:16px 0 10px}
.calendar-nav>div{text-align:center}
.calendar-nav strong{display:block;font-size:1.15rem}
.calendar-months.single-month{grid-template-columns:1fr}
.calendar-months.single-month .calendar-month{width:100%}

/* v3.1 inspections */
.inspection-dialog{width:min(1000px,95vw);max-height:92vh;overflow:auto}
.inspection-categories{display:grid;gap:10px}
.inspection-category{display:grid;grid-template-columns:minmax(180px,1fr) 90px minmax(220px,1.4fr);gap:12px;align-items:center;padding:10px;border:1px solid #e1e8e5;border-radius:8px}
.inspection-category small{display:block;color:#65748b;margin-top:2px}
.qc-score-display{font-size:2.3rem;font-weight:800;color:#17365d}
.qc-result{display:inline-block;border-radius:999px;padding:4px 9px;font-weight:700}
.qc-pass{background:#def3e8;color:#216b4f}
.qc-attention{background:#fff0c7;color:#795c00}
.qc-fail{background:#ffe0dd;color:#a12d24}
@media(max-width:800px){
 .inspection-category{grid-template-columns:1fr}
 .calendar-nav{grid-template-columns:1fr 1fr}
 .calendar-nav>div{grid-column:1/-1;grid-row:1}
}

/* v3.2 invoicing */
.invoice-dialog{width:min(1050px,96vw);max-height:94vh;overflow:auto}
.invoice-line-header,.invoice-line-row{display:grid;grid-template-columns:minmax(240px,2fr) 90px 120px 120px 90px;gap:8px;align-items:center}
.invoice-line-header{font-size:.75rem;color:#65748b;font-weight:700;padding:0 0 6px}
.invoice-line-row{padding:7px 0;border-bottom:1px solid #edf1ef}
.invoice-totals{margin:18px 0 0 auto;max-width:380px}
.invoice-totals>div{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #edf1ef}
.security-note{background:#eef6f3;border-left:4px solid #2f7d6d;padding:10px 12px;border-radius:6px}
.invoice-status{display:inline-block;border-radius:999px;padding:3px 8px;font-size:.72rem;font-weight:700}
.invoice-draft{background:#eceff2;color:#56616d}
.invoice-sent{background:#e8eef5;color:#415d78}
.invoice-partial{background:#fff0c7;color:#795c00}
.invoice-paid{background:#def3e8;color:#216b4f}
.invoice-overdue{background:#ffe0dd;color:#a12d24}
.invoice-void{background:#eee;color:#777}
@media(max-width:850px){
 .invoice-line-header{display:none}
 .invoice-line-row{grid-template-columns:1fr 1fr}
 .invoice-line-row .invoice-line-description{grid-column:1/-1}
}

/* v3.3 cloud/backend integration */
.cloud-settings-box{border:1px solid #cfe0da}
.connection-badge{display:inline-block;padding:4px 9px;border-radius:999px;font-size:.75rem;font-weight:700}
.connection-badge.connected{background:#def3e8;color:#216b4f}
.connection-badge.disconnected{background:#eceff2;color:#56616d}
.cloud-status{margin-top:12px;color:#52657a}
.cloud-actions{flex-wrap:wrap}
.cloud-payment-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}

/* v3.4 addresses, routing, and iPhone/PWA support */
.address-warning{display:block;margin-top:4px;color:#a15b00;font-size:.72rem;font-weight:700}
.button-link{display:inline-block;text-decoration:none;background:#17365d;color:#fff!important;padding:8px 11px;border-radius:7px;font-weight:700}
.button-link.compact{padding:6px 9px;font-size:.75rem}
.route-planner{border:1px solid #cfe0da}
.route-controls{display:grid;grid-template-columns:170px 190px minmax(260px,1.4fr) auto minmax(240px,1fr);gap:10px;align-items:end}
.route-actions{margin-top:12px}
.route-stop-summary{display:flex;gap:16px;justify-content:space-between;margin:12px 0 8px}
.route-stop-summary span{color:#a15b00}
.route-stops-preview{display:grid;gap:7px;margin-top:10px}
.route-stop-preview{display:flex;justify-content:space-between;gap:16px;padding:9px 10px;border:1px solid #e1e8e5;border-radius:8px;background:#fafcfb}
.route-stop-preview>div{display:flex;flex-direction:column;gap:2px}
.route-stop-preview>div:last-child{text-align:right;font-size:.78rem;color:#65748b}
.route-stop-missing{border-color:#e4c382;background:#fff9e9}
.route-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px;margin:12px 0}
.route-summary-grid>div{padding:10px;border:1px solid #dce6e2;border-radius:8px;background:#fafcfb}
.route-summary-grid span{display:block;font-size:.72rem;color:#65748b}
.route-summary-grid strong{display:block;margin-top:3px}
.route-result-actions{margin:12px 0}
.optimized-stop-list{display:grid;gap:8px}
.optimized-stop{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid #dce6e2;border-radius:9px}
.optimized-stop>div:nth-child(2){display:flex;flex-direction:column;gap:2px}
.optimized-stop span{font-size:.85rem}
.optimized-stop small{color:#65748b}
.route-stop-number{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#17365d;color:#fff;font-weight:800}
.route-error{padding:12px;border-left:4px solid #b33;background:#fff1ef;color:#8a2f28;border-radius:6px}

@media(max-width:1100px){
 .route-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 .route-address-field{grid-column:span 2}
 .route-summary-grid{grid-template-columns:repeat(3,minmax(120px,1fr))}
}
@media(max-width:700px){
 body{padding-bottom:max(14px,env(safe-area-inset-bottom))}
 .topbar{padding-top:max(10px,env(safe-area-inset-top))}
 .tabs{overflow-x:auto;display:flex;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;position:sticky;top:0;z-index:20;background:#fff}
 .tabs .tab{flex:0 0 auto;min-height:44px}
 main{padding-left:10px;padding-right:10px}
 .grid.two,.grid.three,.financial-chart-grid,.cards,.capacity-summary-grid{grid-template-columns:1fr!important}
 .route-controls{grid-template-columns:1fr}
 .route-address-field{grid-column:auto}
 .route-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .route-stop-preview{flex-direction:column}
 .route-stop-preview>div:last-child{text-align:left}
 .optimized-stop{grid-template-columns:34px minmax(0,1fr)}
 .optimized-stop .button-link{grid-column:2}
 dialog,.work-order-dialog,.service-visit-dialog,.inspection-dialog,.invoice-dialog,.preview-dialog{
  width:100vw!important;max-width:none!important;height:100dvh;max-height:none!important;margin:0;border-radius:0;padding-bottom:max(16px,env(safe-area-inset-bottom))
 }
 button,.button,.button-link,input,select,textarea{min-height:44px}
 table{font-size:.82rem}
 .calendar-grid{min-width:760px}
 .calendar-month{overflow-x:auto}
}

/* v3.5 reporting */
.report-export-actions{display:flex;gap:8px;flex-wrap:wrap}
.report-controls{border:1px solid #d7e3df}
.report-filter-grid{display:grid;grid-template-columns:minmax(190px,1.2fr) repeat(2,150px) minmax(180px,1fr) minmax(180px,1fr) auto;gap:10px;align-items:end}
.report-kpis{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}
.report-row-count{font-size:.78rem;font-weight:700;color:#65748b}
.report-table-wrap{overflow:auto;max-width:100%}
.report-table{min-width:760px}
.report-table th{position:sticky;top:0;z-index:1}
.report-table td{vertical-align:top}
@media(max-width:1100px){
 .report-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 .report-export-actions{width:100%}
 .report-export-actions button{flex:1}
 .report-filter-grid{grid-template-columns:1fr}
}

/* v3.6 active issue count and standalone route setup */
.dashboard-action-card.has-open-issues{border-color:#e4a49e;background:#fff6f5}
.dashboard-action-card.has-open-issues .dashboard-issue-number{color:#a12d24}
.dashboard-issue-number{font-variant-numeric:tabular-nums}
.route-settings-box{border:1px solid #d7e3df}
.route-settings-box code{font-size:.8rem}

/* v4.0 Supabase cloud-first foundation */
.auth-gate{
 position:fixed;inset:0;z-index:10000;
 width:100%;height:100vh;height:100dvh;
 display:flex;align-items:center;justify-content:center;
 overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;
 padding:calc(24px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
 background:linear-gradient(145deg,#eef4fa,#f7fbf9);
}
.auth-gate.hidden{display:none!important}
.auth-card{flex:0 0 auto;margin:auto}
html.auth-locked,body.auth-locked{width:100%;height:100%;overflow:hidden!important;overscroll-behavior:none}
body.auth-locked{position:fixed;inset:0}
.internal-app-shell.auth-concealed{display:none!important}
.auth-card{
 width:min(440px,calc(100vw - 32px));
 background:#fff;border:1px solid #dbe4ee;border-radius:18px;
 box-shadow:0 20px 60px rgba(23,54,93,.18);
 padding:28px;
}
.auth-logo{display:block;width:92px;height:72px;object-fit:contain;margin:0 auto 8px}
.auth-card h1{text-align:center;margin:0}
.auth-subtitle{text-align:center;color:#65748b;margin:6px 0 22px}
.auth-card label{display:block;margin-top:12px}
.auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.auth-message{min-height:22px;margin:16px 0 0;color:#53627a;font-weight:600}
.auth-message.error{color:#a12d24}
.auth-message.success{color:#216b4f}
.auth-secondary-panel{text-align:left}
.auth-secondary-panel h2{text-align:center;margin:0 0 10px;color:#17365d}
.auth-secondary-panel p{color:#53627a;line-height:1.55}
.auth-return-link{display:flex;width:100%;align-items:center;justify-content:center;margin:14px 0 0;padding:10px 14px;background:#e8f0f8!important;color:#17365d!important;border:1px solid #c8d7e6!important;border-radius:9px;box-shadow:0 2px 6px rgba(23,54,93,.08)!important;font-weight:700;text-decoration:none}
.auth-return-link:hover{background:#dce9f5!important;border-color:#a9bfd4!important;transform:translateY(-1px)}
.auth-return-link:focus-visible{outline:3px solid rgba(35,121,189,.25);outline-offset:2px}
.workspace-preview{
 display:grid;grid-template-columns:1fr auto;gap:10px 18px;
 background:#f6f9fc;border:1px solid #e0e8f0;border-radius:10px;padding:14px;margin:16px 0
}
.workspace-preview span{color:#65748b}
.workspace-preview strong{text-align:right;color:#17365d}
.cloud-top-actions{align-items:center;flex-wrap:wrap;justify-content:flex-end}
.cloud-identity{font-size:.8rem;opacity:.9;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supabase-settings-box{border:1px solid #cfe2dc}
.cloud-foundation-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0
}
.cloud-foundation-grid>div{
 background:#f6f9fc;border:1px solid #e1e8ef;border-radius:9px;padding:11px
}
.cloud-foundation-grid span{display:block;color:#65748b;font-size:.78rem}
.cloud-foundation-grid strong{display:block;margin-top:4px;color:#17365d}
@media(max-width:850px){
 .cloud-foundation-grid{grid-template-columns:1fr}
 .cloud-identity{display:none}
}
@media(max-width:560px){
 .auth-card{padding:20px}
 .auth-actions{grid-template-columns:1fr}
 .cloud-top-actions{gap:6px}
 .cloud-top-actions .connection-badge{font-size:.66rem}
}

/* v5.6.0 Integration Foundation */
.integration-migration-stage{border-color:#a9c8e5;background:linear-gradient(135deg,#f7fbff,#eef5fb)}
.integration-summary-cards{margin-bottom:16px}.integration-summary-cards .card strong{font-variant-numeric:tabular-nums}.integration-message{margin:0 0 16px;padding:11px 13px;border:1px solid #a9d6c8;border-radius:9px;background:#eff9f6;color:#216b4f;font-size:.84rem}.integration-message.error,.integration-error{color:#a12d24}.integration-message.error{border-color:#e7aaa5;background:#fff3f2}
.integration-provider-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px;align-items:start}.integration-provider-card,.integration-webhook-card{min-width:0;border-top:5px solid #2f7d6d}.integration-webhook-card{border-top-color:#1f6fb2}.integration-provider-card .section-header p,.integration-webhook-card .section-header p{margin:4px 0 0;color:#65748b}.integration-direction{display:grid;grid-template-columns:auto auto auto 1fr;align-items:center;gap:10px;margin:15px 0;padding:13px;border-radius:10px;background:#f2f7fa;color:#17365d}.integration-direction>span{color:#2f7d6d;font-size:1.25rem}.integration-direction small{justify-self:end;color:#65748b}.integration-preferences{grid-template-columns:repeat(3,minmax(0,1fr))}.integration-options{display:flex;flex-wrap:wrap;gap:10px 22px;margin:14px 0}.integration-options label{display:flex;align-items:center;gap:7px;color:#3e5368;font-size:.83rem}.integration-options input{width:auto;margin:0}.integration-account-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin-top:16px;padding-top:14px;border-top:1px solid #e2e9ef}.integration-account-summary span{color:#718194;font-size:.75rem}.integration-account-summary strong{min-width:0;overflow-wrap:anywhere;color:#17365d;font-size:.82rem}.integration-provider-card>.integration-error{padding:10px;border-radius:8px;background:#fff0ef;font-size:.8rem}
.integration-roadmap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0}.integration-roadmap-card{padding:16px;border:1px solid #dbe5ed;border-radius:12px;background:#fff}.integration-roadmap-card>span{color:#2f7d6d;font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.integration-roadmap-card h3{margin:6px 0;color:#17365d}.integration-roadmap-card p{min-height:42px;margin:0 0 10px;color:#65748b;font-size:.8rem;line-height:1.45}.integration-roadmap-card strong{color:#5a7085;font-size:.73rem}
.integration-readiness{display:grid;gap:11px;margin:16px 0;padding:14px;border:1px solid #d7e4ec;border-radius:11px;background:#f8fbfd}.integration-readiness h4{margin:0;color:#17365d}.integration-readiness .section-header p{margin:4px 0 0;color:#65748b;font-size:.78rem}.integration-readiness-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.integration-readiness-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:10px;border:1px solid #cde3da;border-radius:9px;background:#f1f9f6}.integration-readiness-item.warning{border-color:#ead39a;background:#fff9e9}.integration-readiness-item span{color:#4c6175;font-size:.74rem;font-weight:800}.integration-readiness-item strong{color:#216b4f;font-variant-numeric:tabular-nums}.integration-readiness-item.warning strong{color:#8a6812}.integration-readiness-item small{grid-column:1/-1;color:#708194;font-size:.69rem;line-height:1.35}
.integration-webhook-create{margin:15px 0}.integration-webhook-create form{display:grid;gap:14px}.integration-webhook-create fieldset{margin:0;padding:12px;border:1px solid #dce5ed;border-radius:9px}.integration-webhook-create legend{padding:0 5px;color:#17365d;font-size:.78rem;font-weight:800}.integration-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.integration-event-grid label{display:flex;align-items:center;gap:7px;color:#4b6074;font-size:.77rem}.integration-event-grid input{width:auto;margin:0}.integration-webhook-list{display:grid;gap:10px}.integration-webhook-record{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:13px;border:1px solid #dfe7ed;border-radius:10px;background:#f9fbfc}.integration-webhook-record>div:first-child{display:grid;gap:4px;min-width:0}.integration-webhook-record code{overflow-wrap:anywhere;white-space:normal;font-size:.72rem}.integration-webhook-record small{color:#6f8091;line-height:1.35}.integration-webhook-record>.backup-actions,.integration-webhook-meta{grid-column:1/-1}.integration-webhook-meta{display:flex;flex-wrap:wrap;gap:7px 14px;color:#708194;font-size:.72rem}.integration-secret-once{display:grid;gap:7px;margin:14px 0;padding:13px;border:1px solid #d6b961;border-radius:10px;background:#fff9e6}.integration-secret-once p{margin:0;color:#735f25;font-size:.78rem}.integration-secret-once code{padding:9px;border-radius:6px;background:#fff;overflow-wrap:anywhere;white-space:normal}.integration-secret-once button{justify-self:start}.integration-activity{margin-top:18px}.integration-activity .responsive-record{align-items:flex-start}.integration-loading,.integration-foundation-empty{margin-bottom:16px}
@media(max-width:1050px){.integration-provider-layout{grid-template-columns:1fr}.integration-preferences{grid-template-columns:1fr 1fr}.integration-roadmap-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.integration-preferences,.integration-roadmap-grid,.integration-event-grid,.integration-readiness-grid{grid-template-columns:1fr}.integration-direction{grid-template-columns:auto auto 1fr}.integration-direction small{grid-column:1/-1;justify-self:start}.integration-webhook-record{grid-template-columns:1fr}.integration-webhook-record>.status-pill{justify-self:start}.integration-webhook-record>.backup-actions{grid-column:1}.integration-account-summary{grid-template-columns:1fr}.integration-provider-card .backup-actions,.integration-webhook-record .backup-actions{display:grid;grid-template-columns:1fr 1fr}.integration-provider-card .backup-actions button,.integration-webhook-record .backup-actions button{width:100%;min-width:0}.integration-readiness .section-header{display:grid}.integration-readiness .section-header button{width:100%}}

/* v5.5.0 Business Intelligence and Work Order Billing Automation */
.business-intelligence-section{display:grid;gap:16px;margin:22px 0}.business-intelligence-section>.section-header{margin-bottom:0}.business-intelligence-section h2{margin:4px 0}.business-intelligence-section p{margin:0;color:#65748b}.bi-kpi-cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:0}.bi-kpi-cards .card{display:grid;align-content:start}.bi-kpi-cards .card>strong{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;line-height:1.05}.bi-kpi-cards .card small{margin-top:6px;color:#718096;line-height:1.35}.bi-forecast-grid{align-items:stretch}.bi-forecast-grid>.box{min-width:0}.bi-capacity-meter{display:grid;gap:10px}.bi-capacity-meter>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.bi-capacity-meter p{font-size:.82rem}.bi-capacity-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 0}.bi-capacity-details>div{padding:11px;border-radius:9px;background:#f5f8fa}.bi-capacity-details dt{color:#6f7f91;font-size:.7rem;font-weight:800;text-transform:uppercase}.bi-capacity-details dd{margin:5px 0 0;color:#17365d;font-weight:800;font-variant-numeric:tabular-nums}.bi-signal{display:inline-flex;padding:4px 8px;border-radius:999px;background:#edf2f7;color:#516274;font-size:.72rem;font-weight:800}.bi-signal.risk{background:#ffe0dd;color:#a12d24}.bi-signal.positive{background:#def3e8;color:#216b4f}.billing-automation-setting{display:grid;grid-template-columns:minmax(240px,1fr) minmax(240px,1.5fr) auto;align-items:end;gap:14px}.billing-automation-setting p{margin:0 0 10px;color:#65748b}.billing-automation-setting button{white-space:nowrap}.billing-automation-admin-box>.section-header p{margin:4px 0 0;color:#65748b}.work-order-billing-automation{margin-top:16px;border-left:5px solid #2f7d6d}.work-order-billing-automation label{display:block;max-width:520px}.work-order-billing-automation small{display:block;margin-top:8px;color:#65748b}.invoice-automation-audit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px;padding:14px;border:1px solid #b9dbd1;border-radius:11px;background:#f1f9f6}.invoice-automation-audit>div{display:grid;gap:4px;min-width:0}.invoice-automation-audit span{color:#65748b;font-size:.72rem;font-weight:800;text-transform:uppercase}.invoice-automation-audit strong{overflow-wrap:anywhere;color:#17365d;font-size:.86rem}.portal-access-active-note{padding:14px;border:1px solid #b9dbd1;border-radius:10px;background:#f1f9f6}.portal-access-active-note strong{color:#216b4f}.portal-access-active-note p{margin:5px 0 0;color:#65748b;font-size:.82rem;line-height:1.4}

@media(max-width:900px){
 .billing-automation-setting{grid-template-columns:1fr}.billing-automation-setting button{width:100%}.invoice-automation-audit{grid-template-columns:1fr}.bi-capacity-details{grid-template-columns:1fr}
}
@media(max-width:560px){
 .business-intelligence-section{margin:16px 0}.business-intelligence-section>.section-header{align-items:flex-start}.bi-kpi-cards{grid-template-columns:1fr}.bi-capacity-meter>div:first-child{display:grid}.work-order-billing-automation{padding:14px}
}
.customer-portal-record strong{overflow-wrap:anywhere}
.customer-portal-delivery{display:block!important;width:auto!important;padding:5px 8px;border-radius:7px;font-size:.73rem!important;font-weight:700;line-height:1.35}.customer-portal-delivery.sent{background:#def3e8;color:#216b4f!important}.customer-portal-delivery.failed{background:#ffe0dd;color:#a12d24!important}.customer-portal-delivery.pending{background:#fff0c7;color:#795c00!important}

/* v4.1 staged Supabase migration controls */
.cloud-migration-stage{
 margin-top:14px;
 padding:14px;
 border:1px solid #dfe8e5;
 border-radius:10px;
 background:#fbfdfc;
}
.cloud-migration-stage h4{margin:0 0 9px;color:#17365d}

/* v4.3 migration progress meter */
.migration-progress-panel{
 margin:14px 0;
 padding:14px;
 border:1px solid #cfdfe9;
 border-radius:10px;
 background:#f7fafc;
}
.migration-progress-heading{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:12px;
 margin-bottom:9px;
 color:#17365d;
}
.migration-progress-track{
 height:16px;
 overflow:hidden;
 border-radius:999px;
 background:#e6edf2;
 border:1px solid #d2dde5;
}
.migration-progress-fill{
 height:100%;
 width:0%;
 transition:width .2s ease;
 background:linear-gradient(90deg,#2f7d6d,#4f7fb8);
}
.migration-progress-panel.complete .migration-progress-track{border-color:#b9d7cb}
.migration-progress-panel.error .migration-progress-track{border-color:#ddb6b2}
.migration-progress-panel.error .migration-progress-fill{background:#b64a42}

/* v4.6 backup placement and route history */
.backup-priority-box{
 border-width:2px;
}
.backup-priority-box h3{margin-bottom:6px}
.route-history-panel{
 border-top:1px solid #dfe8e5;
 padding-top:16px;
}
.route-history-panel table{margin-top:8px}
.table-actions{
 display:flex;
 gap:6px;
 flex-wrap:wrap;
}
button.compact{padding:6px 9px;font-size:.82rem}

/* v4.8 production deployment and validation */
.production-readiness-box{border-width:2px}
.production-check-list{
 display:grid;
 gap:8px;
 margin:14px 0;
}
.production-check-row{
 display:grid;
 grid-template-columns:70px 1fr;
 gap:10px;
 align-items:start;
 padding:10px 12px;
 border:1px solid #dbe4e8;
 border-radius:9px;
 background:#fff;
}
.production-check-row p{
 margin:3px 0 0;
 color:#56656f;
 font-size:.9rem;
 overflow-wrap:anywhere;
}
.production-check-status{
 font-size:.72rem;
 font-weight:800;
 letter-spacing:.05em;
 text-align:center;
 padding:4px 6px;
 border-radius:999px;
}
.production-pass .production-check-status{background:#dff1e9;color:#1f694f}
.production-warn .production-check-status{background:#fff0c9;color:#7c5a00}
.production-fail .production-check-status{background:#f8deda;color:#8a2f27}
.production-manual .production-check-status{background:#e4e9ef;color:#49545f}
.production-manual-section{
 margin-top:18px;
 padding-top:16px;
 border-top:1px solid #dfe8e5;
}
.production-manual-list{
 display:grid;
 gap:8px;
 margin-top:10px;
}
.production-manual-item{
 display:flex;
 gap:9px;
 align-items:flex-start;
 padding:9px 10px;
 border:1px solid #e0e7ea;
 border-radius:8px;
 background:#fafcfc;
}
.production-manual-item input{margin-top:3px}
.connection-badge.pending{background:#fff0c9;color:#6e5200}


/* v5.0 cross-platform workflow navigation and interaction system */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-height:100vh;min-height:100dvh;-webkit-tap-highlight-color:transparent}
button,.button{min-height:42px;touch-action:manipulation;transition:transform .12s ease,box-shadow .18s ease,filter .18s ease,background-color .18s ease}
button:active,.button:active{transform:translateY(1px) scale(.985);filter:brightness(.94)}
.button-press-feedback{animation:buttonPressGlow .34s ease-out}
@keyframes buttonPressGlow{0%{box-shadow:0 0 0 0 rgba(31,111,178,.42)}55%{box-shadow:0 0 0 7px rgba(31,111,178,.14)}100%{box-shadow:0 0 0 12px rgba(31,111,178,0)}}
.app-frame{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:calc(100vh - 99px);min-height:calc(100dvh - 99px)}
.app-sidebar{display:flex;flex-direction:column;background:#17365d;color:#fff;padding:18px 14px calc(18px + var(--safe-bottom));border-right:1px solid rgba(255,255,255,.08)}
.sidebar-branding{padding:4px 10px 18px;border-bottom:1px solid rgba(255,255,255,.13);margin-bottom:12px}
.sidebar-branding strong{display:block;font-size:1rem}.sidebar-role{display:block;margin-top:5px;font-size:.78rem;color:#b9cec7;text-transform:capitalize}
.primary-nav{display:grid;gap:5px}.primary-nav-bottom{margin-top:auto;padding-top:18px}
.primary-nav-item{display:grid;grid-template-columns:24px 1fr;gap:9px;align-items:center;text-align:left;background:transparent;color:#dce8e4;padding:10px 12px;border-radius:9px}
.primary-nav-item span{font-size:1rem;text-align:center}.primary-nav-item:hover{background:rgba(255,255,255,.08)}.primary-nav-item.active{background:#fff;color:#17365d;box-shadow:0 6px 18px rgba(0,0,0,.14)}
.app-workspace{min-width:0;background:#f4f7fb}
.workspace-navigation{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 22px;background:#fff;border-bottom:1px solid #dbe3ee;position:relative}
.workspace-navigation>div{min-width:130px}.workspace-eyebrow{display:block;color:#65748b;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.workspace-navigation strong{display:block;margin-top:2px;color:#17365d}
.workspace-subnav{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:2px}
.workspace-subnav-item{white-space:nowrap;background:#edf2f7;color:#42526a;padding:8px 11px;min-height:38px}.workspace-subnav-item.active{background:#17365d;color:#fff}
.nav-scrim{display:none}.mobile-nav-toggle{display:none}
.panel{max-width:1600px;margin:0 auto;width:100%}
.workflow-summary-cards{grid-template-columns:repeat(4,minmax(160px,1fr))}
.responsive-list{display:grid;gap:9px}.responsive-record{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;padding:12px 14px;border:1px solid #dfe6ef;border-radius:10px;background:#fff;color:#172033}.responsive-record.static{cursor:default;min-height:0}.responsive-record span,.responsive-record small{display:block;color:#65748b;margin-top:3px}.responsive-record small{font-size:.78rem}.quick-link-grid{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.card-text-value{font-size:1rem!important;overflow-wrap:anywhere}
.setting-card small{display:block;color:#65748b;margin-top:7px}.advanced-settings{border:1px solid #dfe6ef;border-radius:10px;padding:12px;background:#f8fafc}.advanced-settings summary{cursor:pointer;font-weight:800;color:#17365d}.advanced-settings[open] summary{margin-bottom:12px}
.report-custom-dates{display:grid;grid-template-columns:1fr 1fr;gap:10px;grid-column:span 2}.report-custom-dates.hidden{display:none!important}
#adminData .backup-priority-box{border-width:2px}
@media(max-width:1100px){.app-frame{grid-template-columns:210px minmax(0,1fr)}.workflow-summary-cards{grid-template-columns:repeat(2,1fr)}.workspace-navigation{align-items:flex-start;flex-direction:column;gap:8px}.workspace-subnav{width:100%}}
@media(max-width:900px){
 .topbar{padding:calc(14px + var(--safe-top)) calc(14px + var(--safe-right)) 14px calc(14px + var(--safe-left))}.brand img{width:58px;height:48px}.brand p{display:none}.top-actions{width:100%;align-items:center;flex-wrap:wrap}.mobile-nav-toggle{display:inline-flex;align-items:center;justify-content:center}.cloud-identity{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .app-frame{display:block;min-height:auto}.app-sidebar{position:fixed;inset:0 auto 0 0;width:min(82vw,310px);z-index:100;transform:translateX(-105%);transition:transform .22s ease;padding-top:calc(18px + var(--safe-top));padding-left:calc(14px + var(--safe-left));box-shadow:12px 0 30px rgba(0,0,0,.25)}body.nav-open .app-sidebar{transform:translateX(0)}
 .nav-scrim{display:block;position:fixed;inset:0;z-index:90;background:rgba(10,20,35,.45);opacity:0;pointer-events:none;transition:opacity .2s ease}body.nav-open .nav-scrim{opacity:1;pointer-events:auto}body.nav-open{overflow:hidden}
 .workspace-navigation{padding:10px 12px}.workspace-subnav{padding-bottom:4px}.workspace-subnav-item{min-height:44px}
 .panel{padding:15px calc(15px + var(--safe-right)) calc(20px + var(--safe-bottom)) calc(15px + var(--safe-left))}
 input,select,textarea{font-size:16px}.button,button{min-height:44px}.actions button{min-height:38px}
 table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap}
 dialog{width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;border-radius:0;padding:calc(18px + var(--safe-top)) calc(16px + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(16px + var(--safe-left));overflow:auto}
 .preview-dialog{width:100vw;height:100vh;height:100dvh}.preview-dialog iframe{height:calc(100dvh - 68px - var(--safe-top) - var(--safe-bottom))}.preview-toolbar{height:auto;min-height:68px;gap:8px;align-items:flex-start}.preview-toolbar>div:last-child{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
 .report-custom-dates{grid-template-columns:1fr;grid-column:auto}.workflow-summary-cards{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
 .brand h1{font-size:1.15rem}.top-actions{gap:7px}.top-actions .connection-badge,.top-actions .cloud-identity{font-size:.72rem}.workspace-navigation>div{display:none}.workspace-subnav{gap:5px}
 .cards,.workflow-summary-cards{grid-template-columns:1fr 1fr}.card{padding:14px}.card strong{font-size:1.45rem}.section-header{align-items:flex-start;flex-direction:column;gap:10px}.section-header>button,.section-header .report-export-actions{width:100%}.report-export-actions{display:flex;gap:8px}.report-export-actions button{flex:1}
 .responsive-record{align-items:flex-start;flex-direction:column}.quick-link-grid{display:grid;grid-template-columns:1fr}.quick-link-grid button{width:100%}
 .financial-chart-layout{grid-template-columns:1fr}.financial-chart-layout canvas{max-width:260px}.goal-box,.economics-box{min-height:auto}
 .filters{flex-direction:column}.filters input,.filters select{max-width:none}.dialog-actions{position:sticky;bottom:calc(-18px - var(--safe-bottom));background:#fff;padding:10px 0 calc(10px + var(--safe-bottom));z-index:2}
}
@media(max-width:420px){.cards,.workflow-summary-cards{grid-template-columns:1fr}.top-actions .cloud-identity{display:none}}
@media(max-width:600px){.labor-time-comparison,.labor-adjustment-summary{grid-template-columns:1fr}.labor-adjustment-dialog{width:calc(100vw - 12px);max-width:none;margin:auto}.labor-adjustment-dialog .dialog-head{align-items:flex-start}.labor-adjustment-history article>div{display:grid}.labor-adjustment-dialog .dialog-actions{display:grid;grid-template-columns:1fr}.labor-adjustment-dialog .dialog-actions button{width:100%}}
@media(hover:none){button:hover,.button:hover{transform:none}}
.role-hidden{display:none!important}.view-as-banner{position:sticky;top:0;z-index:90;display:flex;align-items:center;gap:12px;padding:10px 18px;background:#fff3cd;border-bottom:1px solid #e0b84f;color:#5f4600}.view-as-banner.hidden{display:none}.view-as-banner span{flex:1}.view-as-banner button{background:#7b5a00}.view-only-mode{position:relative}.view-only-mode:before{content:"READ-ONLY VIEW AS USER";position:fixed;right:18px;bottom:18px;z-index:80;background:#7b5a00;color:white;padding:7px 10px;border-radius:999px;font-size:.72rem;font-weight:800;letter-spacing:.04em;box-shadow:0 4px 18px #0003}.access-invite-grid{display:grid;grid-template-columns:minmax(220px,2fr) minmax(160px,1fr) auto;gap:12px;align-items:end}.invite-result textarea{width:100%;min-height:70px}.access-member-list{display:grid;gap:10px}.access-member-card{display:grid;grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(130px,1fr)) auto;gap:10px;align-items:end;padding:12px;border:1px solid #dbe3ee;border-radius:12px;background:#fff}.access-member-identity{align-self:center;min-width:0}.access-member-identity strong,.access-member-identity span{display:block;overflow:hidden;text-overflow:ellipsis}.access-member-identity span{color:#65748b;font-size:.84rem}.access-member-actions{display:flex;gap:7px}.section-header.compact{margin-bottom:12px}.status-pill{display:inline-block;padding:2px 7px;border-radius:999px;background:#e8f2ff;color:#17365d;font-size:.7rem}@media(max-width:1050px){.access-member-card{grid-template-columns:1fr 1fr}.access-member-actions{grid-column:1/-1}.access-invite-grid{grid-template-columns:1fr 1fr}.access-invite-grid button{grid-column:1/-1}}@media(max-width:700px){.view-as-banner{top:0;flex-wrap:wrap;padding:9px 12px}.view-as-banner span{flex-basis:100%;font-size:.78rem}.access-invite-grid,.access-member-card{grid-template-columns:1fr}.access-member-actions{grid-column:auto}.access-member-actions button{flex:1}.view-only-mode:before{right:8px;bottom:calc(8px + env(safe-area-inset-bottom));font-size:.62rem}}

.view-only-mode:before{content:attr(data-read-only-label)}

/* v5.1.2 Alpha — role feature access */
.role-permission-editor{border:1px solid var(--border,#d7e1e8);border-radius:12px;margin:12px 0;background:var(--surface,#fff);overflow:hidden}
.role-permission-editor summary{cursor:pointer;display:flex;justify-content:space-between;gap:16px;padding:14px 16px;background:rgba(0,45,84,.04);align-items:center}
.role-permission-editor>p,.role-permission-editor>.role-feature-grid,.role-permission-editor>.form-actions{margin-left:16px;margin-right:16px}
.role-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px 14px;margin-top:12px;margin-bottom:14px}
.role-feature-toggle{display:flex!important;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--border,#d7e1e8);border-radius:9px;min-height:44px}
.role-feature-toggle input{width:18px;height:18px;margin:0;flex:0 0 auto}
@media(max-width:767px){.role-feature-grid{grid-template-columns:1fr}.role-permission-editor summary{min-height:48px}}

/* v5.1.3 Alpha — authenticated startup privacy gate */
.auth-loading-panel{text-align:center;padding:8px 0 4px}
.auth-loading-panel h2{margin:14px 0 6px;color:#17365d}
.auth-loading-panel p{margin:0;color:#65748b;line-height:1.5}
.auth-loading-spinner{width:42px;height:42px;margin:0 auto;border:4px solid #dce7f2;border-top-color:#1f6fb2;border-radius:50%;animation:clean856-spin .85s linear infinite}
.auth-loading-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:18px}.auth-loading-panel.startup-error .auth-loading-spinner{display:none}.auth-loading-panel.startup-error p{color:#a12d24}.auth-loading-actions.hidden{display:none!important}
@keyframes clean856-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.auth-loading-spinner{animation-duration:2s}}

/* v5.2 Alpha — Client Workspace / Account Hub */
.client-workspace-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:14px;padding:18px 20px;border:1px solid #dbe3ee;border-radius:14px;background:linear-gradient(135deg,#fff 0%,#f7fbff 100%)}
.client-workspace-heading{display:flex;align-items:flex-start;gap:14px;min-width:0}.client-workspace-heading h2{margin:2px 0 4px;color:#17365d}.client-workspace-heading p{margin:0;color:#65748b;line-height:1.5}.client-workspace-back{flex:0 0 auto}.client-workspace-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.client-status-chip{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#e8f2ff;color:#17365d;font-size:.76rem;font-weight:800}.client-status-chip.won{background:#e7f7ee;color:#17633a}.client-status-chip.lost{background:#fdecec;color:#9f2e2e}.client-status-chip.proposal-sent{background:#fff4d8;color:#775400}
.client-workspace-tabs{display:flex;gap:7px;overflow-x:auto;padding:3px 2px 12px;overscroll-behavior-inline:contain;scrollbar-width:thin}.client-workspace-tab{white-space:nowrap;background:#fff;color:#42526a;border:1px solid #dbe3ee;min-height:40px}.client-workspace-tab.active{background:#17365d;color:#fff;border-color:#17365d;box-shadow:0 5px 15px rgba(23,54,93,.15)}
.client-workspace-body{display:grid;gap:16px}.client-workspace-kpis{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.client-workspace-kpis .card small{display:block;margin-top:4px;color:#9f2e2e;font-size:.74rem}.client-workspace-overview-grid{align-items:stretch}
.client-detail-list{margin:0;display:grid;gap:0}.client-detail-list>div{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.5fr);gap:14px;padding:10px 0;border-bottom:1px solid #e7edf4}.client-detail-list>div:last-child{border-bottom:0}.client-detail-list dt{font-size:.78rem;color:#65748b;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.client-detail-list dd{margin:0;color:#172033;overflow-wrap:anywhere}.client-detail-list a{color:#145c9e}
.client-activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.client-activity-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:86px;padding:13px 14px;background:#f7fafc;color:#17365d;border:1px solid #dfe7ef;text-align:left}.client-activity-card strong{font-size:1.35rem}.client-activity-card span{margin-top:3px;color:#65748b;font-size:.8rem}
.client-workspace-section-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.client-workspace-section-header h3{margin:0;color:#17365d}.client-workspace-section-header p{margin:4px 0 0;color:#65748b}.client-record-actions{display:flex;gap:7px;flex-wrap:wrap}.client-inline-actions{justify-content:flex-end;margin-top:10px}.client-files-foundation{text-align:center;padding:46px 24px}.client-files-foundation h3{margin:10px 0 7px}.client-files-foundation p{max-width:680px;margin:7px auto;color:#65748b}.empty-state-icon{font-size:2.6rem;color:#6f8198}
@media(max-width:900px){.client-workspace-header{flex-direction:column}.client-workspace-actions{width:100%;justify-content:flex-start}.client-workspace-actions button{flex:1}.client-workspace-tabs{padding-bottom:8px}.client-workspace-tab{min-height:44px}.client-activity-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.client-workspace-header{padding:14px}.client-workspace-heading{display:grid;width:100%}.client-workspace-back{justify-self:start}.client-workspace-actions{display:grid;grid-template-columns:1fr}.client-detail-list>div{grid-template-columns:1fr;gap:4px}.client-activity-grid{grid-template-columns:1fr 1fr}.client-workspace-section-header{align-items:flex-start;flex-direction:column}.client-workspace-section-header>button{width:100%}.client-record-actions{width:100%}.client-record-actions button{flex:1}.client-notes-grid{grid-template-columns:1fr}}
@media(max-width:420px){.client-activity-grid{grid-template-columns:1fr}.client-workspace-kpis{grid-template-columns:1fr}}

/* v5.3 Alpha — Mobile Workforce */
.field-connectivity-banner{display:grid;gap:8px;margin:0 18px 12px;padding:10px 14px;border:1px solid #efcf76;border-radius:10px;background:#fff8df;color:#684e00;font-size:.86rem;font-weight:700}.field-connectivity-summary{display:flex;align-items:center;justify-content:space-between;gap:14px}
.field-connectivity-banner.offline{border-color:#dfb663;background:#fff3cd;color:#5f4600}.field-connectivity-banner.error{border-color:#e3a6a6;background:#fff0f0;color:#8f2626}.field-connectivity-banner.success{border-color:#8ec5a5;background:#edf9f1;color:#205c38}.field-connectivity-banner button{min-height:36px;flex:0 0 auto}.field-sync-details{border-top:1px solid currentColor;padding-top:7px;font-weight:500}.field-sync-details summary{cursor:pointer;font-weight:800}.field-sync-details-list{display:grid;gap:6px;margin-top:7px}.field-sync-detail-row{display:grid;grid-template-columns:minmax(130px,1fr) auto;gap:3px 12px;padding:7px 9px;border-radius:8px;background:#fff9}.field-sync-detail-row strong,.field-sync-detail-row span{min-width:0;overflow-wrap:anywhere}.field-sync-detail-row small{grid-column:1/-1;color:inherit;opacity:.85}
.map-link-actions{display:flex;gap:8px;flex-wrap:wrap;margin:9px 0}.map-link-actions .button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.map-link-actions .button-link.compact{min-height:34px;padding:6px 9px;font-size:.78rem}
.field-visit-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px;padding:18px 20px;border:1px solid #d7e3ee;border-radius:15px;background:linear-gradient(135deg,#f9fcff 0%,#eef6fd 100%)}
.field-visit-hero-main{min-width:0}.field-visit-hero h2{margin:3px 0 4px;color:#17365d}.field-visit-hero p{margin:3px 0;color:#5f7086}.field-visit-hero .field-address{font-weight:700;color:#26384f}.field-visit-hero-status{display:flex;align-items:flex-end;gap:7px;flex-direction:column;flex:0 0 auto}
.field-stepper{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 14px}.field-stepper>div{display:flex;align-items:center;gap:8px;min-height:48px;padding:9px 12px;border:1px solid #dbe3ee;border-radius:11px;background:#f7f9fc;color:#718096}.field-stepper span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#dce4ed;color:#526174;font-weight:900}.field-stepper strong{font-size:.82rem}.field-stepper>div.active{border-color:#8bb7dd;background:#edf6ff;color:#17365d}.field-stepper>div.active span{background:#17365d;color:#fff}
.field-sync-pill{display:inline-flex;align-items:center;width:max-content;padding:3px 7px;border-radius:999px;font-size:.68rem;font-weight:850;white-space:nowrap}.field-sync-pill.pending{background:#fff2c7;color:#735300}.field-sync-pill.error{background:#fde4e4;color:#982c2c}.field-sync-pill.local{background:#e9edf2;color:#526174}.field-sync-pill.synced{background:#e5f5eb;color:#17633a}
.field-sync-message{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:10px 13px;border:1px solid #dce5ee;border-radius:10px;background:#f7fafc;color:#526174}.field-sync-message strong{color:#17365d}.field-sync-message.pending{border-color:#ecd17d;background:#fff8df;color:#684e00}.field-sync-message.error{border-color:#e3a6a6;background:#fff0f0;color:#8f2626}
.field-primary-actions{margin-bottom:14px}.field-visit-kpis{margin-bottom:14px}.field-access-callout{margin:0 0 14px}.field-checklist-box{border-color:#cfddea}.field-service-checklist{display:grid;gap:8px}.field-checklist-row{min-height:54px;padding:11px 12px;border:1px solid #dfe7ef;border-radius:10px;background:#fff;cursor:pointer}.field-checklist-row input{width:22px;height:22px;flex:0 0 auto}.field-checklist-row:has(input:checked){background:#eef8f2;border-color:#a9d2b8}.field-checklist-row:has(input:checked) .checklist-task-copy>span:first-child{text-decoration:line-through;color:#5f7668}

/* v5.6.3.1 scope editor and schedule-driven checklist reconciliation */
.scope-work-list{margin-top:12px}
.scope-work-item{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:start;padding:10px 12px;border:1px solid #e1e8e5;border-radius:9px;background:#fafcfb}
.scope-work-item>small{color:#65748b;text-align:right}
.scope-work-item-locked{background:#f4f7fb;border-color:#d9e2ed}
.scope-work-item-locked>small{color:#405f82;font-weight:700}
.scope-lock-note{margin:12px 0 0}
.scope-editor{margin-top:12px;padding:12px;border:1px solid #cad9d3;border-radius:10px;background:#f8fbfa}
.scope-editor[hidden],#workOrderScopeDisplay[hidden]{display:none!important}
.scope-editor-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:10px}
.scope-editor-row label{margin:0}
.scope-editor-row label>span{display:block;margin-bottom:5px;color:#52657a;font-size:.8rem;font-weight:700}
.scope-editor-row button{min-height:42px}
.scope-editor-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}
.scope-editor-action-spacer{flex:1 1 auto}
.checklist-task-copy{display:grid!important;gap:4px}
.checklist-source-badge{display:block;color:#405f82;font-size:.74rem;font-weight:700;text-decoration:none!important}
.field-checklist-row:has(input:checked) .checklist-source-badge{text-decoration:none!important}
@media(max-width:700px){
 .scope-work-item{grid-template-columns:22px minmax(0,1fr)}
 .scope-work-item>small{grid-column:2;text-align:left}
 .scope-editor-row{grid-template-columns:1fr}
 .scope-editor-row button{justify-self:start}
 .scope-editor-action-spacer{display:none}
 .scope-editor-actions button{flex:1 1 calc(50% - 8px)}
}
.field-issue-box.has-open-issue{border-color:#e3adad;background:#fffafa}.field-sticky-actions{z-index:5}
.mobile-record-cards{display:none}.field-today-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}.field-visit-card{display:block;width:100%;padding:14px;border:1px solid #dbe3ee;border-radius:13px;background:#fff;color:#172033;text-align:left;box-shadow:0 4px 13px rgba(32,60,90,.05)}.field-visit-card:hover{border-color:#9abbd7}.field-visit-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.field-visit-card-top>div{display:grid;gap:3px;min-width:0}.field-visit-card strong{font-size:1rem;color:#17365d}.field-visit-card small{color:#65748b;overflow-wrap:anywhere}.field-date-chip{display:inline-flex;width:max-content;padding:2px 7px;border-radius:999px;background:#edf3f9;color:#526174;font-size:.7rem;font-weight:800}.field-visit-card-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:11px;color:#526174;font-size:.78rem}.field-progress{height:6px;margin-top:10px}.field-visit-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;color:#145c9e;font-size:.78rem;font-weight:800}
.client-mobile-card{min-width:0;padding:14px;border:1px solid #dbe3ee;border-radius:13px;background:#fff;box-shadow:0 4px 13px rgba(32,60,90,.05)}.client-mobile-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.client-mobile-card-header>div{display:grid;gap:3px;min-width:0}.client-mobile-card-header span,.client-mobile-details dt{color:#65748b;font-size:.7rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.client-mobile-card-header strong{color:#17365d;overflow-wrap:anywhere}.client-mobile-revenue{display:grid;justify-items:end;flex:0 0 auto;font-variant-numeric:tabular-nums}.client-mobile-revenue small{color:#65748b;font-size:.68rem;font-weight:600}.client-mobile-details{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:13px 0}.client-mobile-details>div{min-width:0}.client-mobile-details>div:nth-child(2){grid-column:1/-1}.client-mobile-details dt{margin-bottom:3px}.client-mobile-details dd{margin:0;color:#33445a;font-size:.86rem;overflow-wrap:anywhere}.client-mobile-status{display:grid;grid-template-columns:minmax(72px,auto) minmax(0,1fr);align-items:center;gap:10px;padding-top:11px;border-top:1px solid #e7edf4}.client-mobile-status select{margin:0;min-width:0}.client-mobile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.client-mobile-actions button{width:100%;min-width:0}.client-mobile-actions button:first-child{grid-column:1/-1}
.inspection-queue-box{border-color:#cfddea}.inspection-queue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:10px}.inspection-queue-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid #dfe7ef;border-radius:11px;background:#fff}.inspection-queue-card>div:first-child{display:grid;gap:3px;min-width:0}.inspection-queue-card strong{color:#17365d}.inspection-queue-card small{color:#65748b;overflow-wrap:anywhere}.inspection-queue-card-actions{display:flex;align-items:flex-end;gap:7px;flex-direction:column;flex:0 0 auto}.field-inspection-card{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid #dbe3ee;border-radius:12px;background:#fff;color:#172033;text-align:left}.field-inspection-card>div{display:grid;gap:4px}.field-inspection-card>div:last-child{justify-items:end}.field-inspection-category{grid-template-columns:minmax(160px,1fr) 90px minmax(180px,1.2fr)}.field-inspection-category .inspection-score-field{min-height:48px;font-size:1.05rem;font-weight:800;text-align:center}.field-existing-issue{margin-bottom:14px;border-color:#e4c0c0;background:#fffafa}
.field-role-cards{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}

/* Dashboard refinement requested after v5.2: remove redundant target/account tiles and use one desktop KPI row. */
@media(min-width:1280px){.financial-cards{grid-template-columns:repeat(9,minmax(0,1fr));gap:10px}.financial-cards .card{min-width:0;padding:13px 11px}.financial-cards .card span{font-size:.71rem}.financial-cards .card strong{font-size:1.45rem}}

@media(max-width:900px){
 .client-desktop-table{display:none}.client-mobile-cards{display:grid;gap:10px}.field-visit-hero{flex-direction:column}.field-visit-hero-status{align-items:flex-start;flex-direction:row;flex-wrap:wrap}.field-primary-actions{display:grid;grid-template-columns:1fr 1fr}.field-primary-actions button{width:100%}.field-inspection-category{grid-template-columns:1fr 90px}.field-inspection-category .inspection-note-field{grid-column:1/-1}.inspection-queue-card{align-items:flex-start;flex-direction:column}.inspection-queue-card-actions{width:100%;align-items:stretch;flex-direction:row;justify-content:space-between}.inspection-queue-card-actions button{flex:1}
}
@media(max-width:700px){
 .field-connectivity-banner{margin:0 10px 10px;align-items:flex-start}.desktop-record-table{display:none}.mobile-record-cards{display:grid;gap:10px}.field-today-grid{grid-template-columns:1fr}.field-visit-hero{padding:14px}.field-stepper{gap:5px}.field-stepper>div{padding:8px;justify-content:center}.field-stepper strong{display:none}.field-stepper span{width:30px;height:30px}.field-primary-actions{grid-template-columns:1fr}.field-visit-kpis{grid-template-columns:1fr 1fr}.field-sync-message{align-items:flex-start;flex-direction:column;gap:3px}.field-sticky-actions{position:sticky;bottom:calc(-18px - var(--safe-bottom));display:grid;grid-template-columns:1fr 1fr;background:#fff;padding:10px 0 calc(10px + var(--safe-bottom));border-top:1px solid #e3e9ef;box-shadow:0 -8px 18px rgba(24,49,75,.08)}.field-inspection-category{grid-template-columns:1fr}.field-inspection-category .inspection-note-field{grid-column:auto}.field-inspection-card{align-items:flex-start;flex-direction:column}.field-inspection-card>div:last-child{justify-items:start}.map-link-actions{display:grid;grid-template-columns:1fr 1fr}.map-link-actions .button-link{width:100%}
}
@media(max-width:420px){.client-mobile-details{grid-template-columns:1fr}.client-mobile-details>div:nth-child(2){grid-column:auto}.field-visit-kpis{grid-template-columns:1fr}.field-sticky-actions{grid-template-columns:1fr}.field-connectivity-summary{align-items:flex-start;flex-direction:column}.field-connectivity-banner button{width:100%}.field-sync-detail-row{grid-template-columns:1fr}.field-sync-detail-row small{grid-column:auto}}

/* v5.3.5 mobile data presentation */
.mobile-data-cards,.mobile-calendar-view{display:none}
.mobile-list-card{min-width:0;padding:14px;border:1px solid #dbe3ee;border-radius:13px;background:#fff;box-shadow:0 4px 13px rgba(32,60,90,.05)}
.mobile-list-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.mobile-list-card-header>div{display:grid;gap:3px;min-width:0}.mobile-list-card-header strong{color:#17365d;overflow-wrap:anywhere}.mobile-list-card-header>div>span,.mobile-list-card-header>div>small{color:#65748b;font-size:.76rem;overflow-wrap:anywhere}.mobile-list-value{display:grid;justify-items:end;flex:0 0 auto;font-variant-numeric:tabular-nums}.mobile-list-value small{color:#65748b;font-size:.67rem;font-weight:600}
.mobile-list-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.mobile-list-grid>div{display:grid;align-content:start;gap:3px;min-width:0}.mobile-list-grid span,.mobile-list-note span{color:#65748b;font-size:.68rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.mobile-list-grid strong,.mobile-list-note strong{font-size:.84rem;overflow-wrap:anywhere}.mobile-list-grid small{color:#65748b;font-size:.73rem}.mobile-list-grid .util-wrap{min-width:0}
.mobile-list-select{display:grid;grid-template-columns:minmax(72px,auto) minmax(0,1fr);align-items:center;gap:10px;padding-top:11px;border-top:1px solid #e7edf4}.mobile-list-select select{margin:0;min-width:0}.mobile-list-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.mobile-list-actions button{width:100%;min-width:0}.mobile-list-card>button{width:100%;margin-top:10px}.mobile-list-note,.mobile-list-meta{display:grid;gap:4px;margin-top:11px;padding-top:10px;border-top:1px solid #e7edf4}.mobile-list-meta{grid-template-columns:1fr auto}.mobile-list-meta span{color:#65748b;font-size:.7rem;font-weight:800;text-transform:uppercase}.mobile-list-card>p{color:#42526a;overflow-wrap:anywhere}
.compact-mobile-data-cards{gap:8px}.mobile-summary-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:11px 12px;border:1px solid #dbe3ee;border-radius:11px;background:#fff}.mobile-summary-row>div{display:grid;gap:3px;min-width:0}.mobile-summary-row strong{color:#17365d;overflow-wrap:anywhere}.mobile-summary-row span{color:#65748b;font-size:.76rem;overflow-wrap:anywhere}.mobile-summary-row button{flex:0 0 auto}

.client-mobile-card{padding:0;overflow:hidden}.client-mobile-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:12px 14px;cursor:pointer;list-style:none}.client-mobile-summary::-webkit-details-marker{display:none}.client-mobile-summary>div{display:grid;gap:4px;min-width:0}.client-mobile-summary strong{color:#17365d;overflow-wrap:anywhere}.client-mobile-summary span{color:#65748b;font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client-summary-town{display:none}.client-summary-chevron{display:grid;place-items:center;width:28px;height:28px;flex:0 0 auto;border-radius:50%;background:#edf3f9;color:#17365d!important;font-size:1rem!important;transition:transform .18s ease}.client-mobile-card[open] .client-summary-chevron{transform:rotate(180deg)}.client-mobile-expanded{padding:13px 14px 14px;border-top:1px solid #e7edf4;background:#fbfcfe}.client-mobile-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.client-mobile-card-header>span{padding-top:3px}.client-mobile-revenue{display:grid;justify-items:end}

.mobile-report-card{border:1px solid #dbe3ee;border-radius:11px;background:#fff;overflow:hidden}.mobile-report-card summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:11px 12px;cursor:pointer;list-style:none}.mobile-report-card summary::-webkit-details-marker{display:none}.mobile-report-card summary>div{display:grid;gap:3px;min-width:0}.mobile-report-card summary strong{color:#17365d;overflow-wrap:anywhere}.mobile-report-card summary span{color:#65748b;font-size:.75rem;overflow-wrap:anywhere}.mobile-report-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:12px;border-top:1px solid #e7edf4;background:#fbfcfe}.mobile-report-card dl>div{min-width:0}.mobile-report-card dt{color:#65748b;font-size:.68rem;font-weight:800;text-transform:uppercase}.mobile-report-card dd{margin:3px 0 0;font-size:.84rem;overflow-wrap:anywhere}

.mobile-calendar-weekdays,.mobile-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.mobile-calendar-weekdays span{text-align:center;padding:5px 0;color:#65748b;font-size:.7rem;font-weight:800}.mobile-calendar-empty{min-height:42px}.mobile-calendar-day{display:grid;place-items:center;align-content:center;gap:1px;min-width:0;min-height:44px;padding:3px;border:1px solid #e0e7ef;border-radius:8px;background:#f8fafc;color:#17365d}.mobile-calendar-day strong{font-size:.82rem}.mobile-calendar-day span{display:grid;place-items:center;min-width:15px;height:15px;padding:0 3px;border-radius:99px;background:#17365d;color:#fff;font-size:.58rem}.mobile-calendar-day.selected{outline:3px solid #1f6fb2;outline-offset:1px}.mobile-calendar-agenda{display:grid;gap:9px;margin-top:15px;padding-top:13px;border-top:1px solid #dfe6ef}.mobile-calendar-agenda-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.mobile-calendar-agenda-header span{color:#65748b;font-size:.76rem;font-weight:700}.mobile-calendar-event{padding:12px;border:1px solid #dce5ee;border-radius:11px;background:#f9fbfd}.mobile-calendar-event-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.mobile-calendar-event-header>div{display:grid;gap:2px;min-width:0}.mobile-calendar-event-header strong{color:#17365d;overflow-wrap:anywhere}.mobile-calendar-event-header>div span{color:#65748b;font-size:.73rem}.mobile-calendar-event-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:9px;color:#526174;font-size:.78rem}.mobile-calendar-event .calendar-addon-note,.mobile-calendar-event .calendar-issue-note{display:block;margin-top:7px}.mobile-calendar-event .calendar-event-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.mobile-calendar-event .calendar-event-actions button{width:100%;min-width:0}

@media(max-width:900px){
 .desktop-data-table,.desktop-record-table,.desktop-calendar-view{display:none}.mobile-data-cards,.mobile-record-cards{display:grid;gap:10px}.mobile-calendar-view{display:block}.calendar-month{overflow:visible!important}.calendar-weekdays,.calendar-grid{min-width:0!important}#employeesTable,#capacityDetail{overflow:visible}.report-table-wrap{overflow:visible}
}
@media(max-width:420px){
 .client-summary-address{display:none}.client-summary-town{display:block}.mobile-list-grid,.mobile-report-card dl{grid-template-columns:1fr}.mobile-list-card-header{gap:8px}.mobile-list-value{font-size:.85rem}.mobile-calendar-weekdays,.mobile-calendar-grid{gap:3px}.mobile-calendar-day{min-height:40px}.mobile-list-actions.four-actions{grid-template-columns:1fr 1fr}
}
/* v5.3.6 private field photos, signatures, and evidence history */
.field-media-section{overflow:hidden}
.field-media-section .section-header{align-items:flex-start}
.field-media-count{display:inline-grid;place-items:center;min-width:2rem;height:2rem;padding:0 .55rem;border-radius:999px;background:#e8f5fb;color:#075985;font-weight:800}
.field-media-capture-row{display:flex;align-items:end;gap:1rem;justify-content:space-between;margin:1rem 0;padding:1rem;border:1px solid #dbe7ef;border-radius:14px;background:#f8fbfd}
.field-media-capture-row label{min-width:180px;margin:0}
.field-media-capture-actions{display:flex;flex-wrap:wrap;gap:.55rem;justify-content:flex-end}
.field-media-camera-action{display:none}
.field-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:.85rem;margin-top:1rem}
.field-media-grid>.empty{grid-column:1/-1}
.field-media-card{min-width:0;overflow:hidden;border:1px solid #dbe7ef;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(0,45,84,.06)}
.field-media-preview-button{position:relative;display:block;width:100%;height:145px;padding:0;border:0;border-radius:0;background:#eaf2f7;overflow:hidden}
.field-media-preview-button img{display:block;width:100%;height:100%;object-fit:cover}
.field-media-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#587186;font-size:.82rem}
.field-media-card-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.45rem .6rem;padding:.75rem}
.field-media-card-body>div{min-width:0}
.field-media-card-body strong,.field-media-card-body small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.field-media-card-body small{margin-top:.18rem;color:#657b8d;font-size:.75rem}
.field-media-card-body .field-sync-pill{justify-self:end}
.field-media-card-body .danger-link{grid-column:1/-1;justify-self:start;padding:0;border:0;background:transparent;color:#b42318;font-size:.78rem}
.field-media-error{grid-column:1/-1;margin:.15rem 0 0;color:#9f1c13;font-size:.76rem;line-height:1.35}
.field-media-retry{grid-column:1/-1;justify-self:start;padding:.38rem .65rem;font-size:.76rem}
.field-media-preview-dialog{width:min(94vw,960px);max-width:960px}
.field-media-preview-body{display:grid;place-items:center;min-height:240px;padding:1rem;background:#eef4f8}
.field-media-preview-body img{display:block;max-width:100%;max-height:72vh;object-fit:contain;border-radius:8px;background:#fff}
.field-signature-dialog{width:min(94vw,720px);max-width:720px}
.field-signature-body{padding:1rem}
.field-signature-canvas-wrap{display:block;margin-top:.4rem;border:2px solid #b9cbd7;border-radius:12px;background:#fff;overflow:hidden}
#fieldSignatureCanvas{display:block;width:100%;height:230px;touch-action:none;cursor:crosshair}
.field-signature-ack{align-items:flex-start;margin-top:1rem;padding:.85rem;border-radius:10px;background:#f4f8fb}
.field-media-migration-stage{border-color:#9ed8e8;background:linear-gradient(135deg,#f7fcfe,#edf9fc)}

@media(max-width:700px){
 .field-media-capture-row{display:block;padding:.85rem}
 .field-media-capture-row label{min-width:0}
 .field-media-capture-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:.75rem}
 .field-media-camera-action{display:inline-flex}
 .field-media-capture-actions button{width:100%;min-height:44px}
 .field-media-signature-action{grid-column:1/-1}
 .field-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
 .field-media-preview-button{height:120px}
 .field-media-card-body{display:block;padding:.6rem}
 .field-media-card-body .field-sync-pill{display:inline-flex;margin-top:.45rem}
 .field-media-card-body .danger-link{display:block;margin-top:.45rem}
 #fieldSignatureCanvas{height:210px}
}

@media(max-width:390px){
 .field-media-grid{grid-template-columns:1fr}
 .field-media-preview-button{height:180px}
}

/* Controlled cancellation */
.cancellation-migration-stage{border-color:#edb3ac;background:linear-gradient(135deg,#fffaf9,#fff2f0)}
.cancellation-dialog{width:min(94vw,720px);max-width:720px}
.cancellation-form-body{display:grid;gap:1rem;padding:1rem}
.cancellation-confirm{align-items:flex-start;padding:.85rem;border:1px solid #edc1bb;border-radius:10px;background:#fff7f6}
.cancellation-summary{border-color:#edb3ac;background:#fffafa}
.cancellation-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:1rem 0}
.cancellation-summary-grid>div{min-width:0;padding:.75rem;border-radius:10px;background:#fff}
.cancellation-summary-grid dt{color:#6b7280;font-size:.7rem;font-weight:800;text-transform:uppercase}
.cancellation-summary-grid dd{margin:.25rem 0 0;overflow-wrap:anywhere;font-weight:700}
.cancellation-pill,.visit-status.visit-cancelled{background:#ffe0dd;color:#a12d24}
.customer-portal-status.cancelled,.customer-portal-status.canceled{background:#eceff2;color:#56616d!important}
@media(max-width:700px){.cancellation-summary-grid{grid-template-columns:1fr 1fr}}

/* Customer Portal notifications, header polish, and Billing security */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.customer-portal-app{min-height:100vh;min-height:100dvh;background:#f3f7fa;color:#172033}
body.customer-portal-mode{padding:0;background:#f3f7fa}
body.customer-portal-mode>.internal-app-shell{display:none!important}
.customer-portal-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:calc(13px + var(--safe-top)) max(24px,var(--safe-right)) 13px max(24px,var(--safe-left));background:#f3f7f5;color:#17365d;border-bottom:1px solid #d6e3de;box-shadow:0 4px 16px rgba(12,35,63,.08)}
.customer-portal-brand{display:flex;align-items:center;gap:16px;min-width:0}.customer-portal-brand img{width:117px;height:96.75px;object-fit:contain}.customer-portal-brand>div{display:grid;gap:2px;min-width:0}.customer-portal-brand strong{font-size:1.12rem;overflow-wrap:anywhere}.customer-portal-brand span{color:#5f6f69;font-size:.76rem}.customer-portal-account-switcher{margin:5px 0 0}.customer-portal-account-switcher select{width:min(310px,55vw);margin:0;background:#fff}
.customer-portal-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}.customer-portal-header-actions .secondary{min-height:40px}
.customer-portal-nav{position:sticky;top:calc(122.75px + var(--safe-top));z-index:19;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:10px max(24px,var(--safe-right)) 10px max(24px,var(--safe-left));background:rgba(255,255,255,.97);border-bottom:1px solid #dbe5ed;box-shadow:0 3px 12px rgba(21,52,83,.05);backdrop-filter:blur(12px)}.customer-portal-nav button{min-width:0;padding:9px 10px;background:#edf3f7;color:#34506e}.customer-portal-nav button.active{background:#1f6fb2;color:#fff}
.customer-portal-main{width:min(1180px,100%);margin:0 auto;padding:28px max(24px,var(--safe-right)) calc(42px + var(--safe-bottom)) max(24px,var(--safe-left))}.customer-portal-view{display:grid;gap:20px}.customer-portal-welcome,.customer-portal-page-heading{padding:8px 2px}.customer-portal-welcome>span,.customer-portal-page-heading>span{color:#2f7d6d;font-size:.73rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.customer-portal-welcome h1,.customer-portal-page-heading h1{margin:5px 0 7px;color:#17365d;font-size:clamp(1.7rem,4vw,2.5rem)}.customer-portal-welcome p,.customer-portal-page-heading p{max-width:720px;margin:0;color:#5d6f82;line-height:1.55}
.customer-portal-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.customer-portal-kpis button{display:grid;justify-items:start;align-content:start;min-height:110px;padding:18px;text-align:left;background:#fff;color:#17365d;border:1px solid #dce6ee;border-radius:14px;box-shadow:0 4px 14px rgba(22,55,85,.05)}.customer-portal-kpis button:hover{border-color:#91b7d5;transform:translateY(-1px)}.customer-portal-kpis span{color:#65798c;font-size:.77rem}.customer-portal-kpis strong{margin-top:8px;font-size:1.35rem;font-variant-numeric:tabular-nums}
.customer-portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.customer-portal-card{min-width:0;padding:20px;background:#fff;border:1px solid #dce6ee;border-radius:15px;box-shadow:0 4px 14px rgba(22,55,85,.05)}.customer-portal-card>h2{margin:0 0 16px;color:#17365d;font-size:1.1rem}.customer-portal-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.customer-portal-section-heading h2{margin:0 0 3px;color:#17365d;font-size:1.1rem}.customer-portal-section-heading p{margin:0;color:#708094;font-size:.82rem}.customer-portal-section-heading button{flex:0 0 auto;padding:7px 10px}
.customer-portal-record{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0;padding:14px 0;border-bottom:1px solid #e8edf2}.customer-portal-record:last-child{border-bottom:0}.customer-portal-record>div:first-child,.customer-portal-record summary>div:first-child{display:grid;gap:4px;min-width:0}.customer-portal-record strong{color:#17365d}.customer-portal-record span{color:#687b8e;font-size:.8rem;overflow-wrap:anywhere}.customer-portal-status{display:inline-flex;align-items:center;width:max-content;padding:4px 8px;border-radius:999px;background:#e9eef3;color:#526477!important;font-size:.7rem!important;font-weight:800;text-transform:capitalize;white-space:nowrap}.customer-portal-status.active,.customer-portal-status.completed,.customer-portal-status.paid,.customer-portal-status.resolved{background:#def3e8;color:#216b4f!important}.customer-portal-status.invited,.customer-portal-status.submitted,.customer-portal-status.reviewing,.customer-portal-status.scheduled,.customer-portal-status.in-progress,.customer-portal-status.sent,.customer-portal-status.partial{background:#e5f0fb;color:#255e91!important}.customer-portal-status.suspended,.customer-portal-status.overdue{background:#ffe0dd;color:#a12d24!important}.customer-portal-status.closed,.customer-portal-status.skipped{background:#eceff2;color:#56616d!important}
.customer-portal-empty{padding:25px 16px;text-align:center;color:#748598;background:#f9fbfc;border:1px dashed #cddae4;border-radius:11px}.customer-portal-loading{display:grid;place-items:center;min-height:220px;color:#526a82;font-weight:700}.customer-portal-account-details{display:grid;gap:14px;margin:0}.customer-portal-account-details>div{display:grid;gap:4px;padding-bottom:12px;border-bottom:1px solid #e8edf2}.customer-portal-account-details>div:last-child{border-bottom:0}.customer-portal-account-details dt{color:#718296;font-size:.72rem;font-weight:800;text-transform:uppercase}.customer-portal-account-details dd{margin:0;color:#263a50;line-height:1.45;overflow-wrap:anywhere}
.customer-portal-balance{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 22px;border-radius:15px;background:linear-gradient(135deg,#17365d,#1f6fb2);color:#fff;box-shadow:0 8px 20px rgba(23,54,93,.16)}.customer-portal-balance span{font-size:.85rem;opacity:.82}.customer-portal-balance strong{font-size:1.8rem;font-variant-numeric:tabular-nums}
.customer-portal-invoice{display:block;padding:0}.customer-portal-invoice summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;cursor:pointer;list-style:none}.customer-portal-invoice summary::-webkit-details-marker{display:none}.customer-portal-invoice-total{display:grid;justify-items:end;gap:3px}.customer-portal-invoice-total strong{font-variant-numeric:tabular-nums}.customer-portal-invoice-details{padding:0 0 17px}.customer-portal-invoice-details dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:12px;border-radius:10px;background:#f5f8fa}.customer-portal-invoice-details dl>div{min-width:0}.customer-portal-invoice-details dt{color:#6c7c8e;font-size:.68rem;font-weight:800;text-transform:uppercase}.customer-portal-invoice-details dd{margin:3px 0 0;font-weight:800;font-variant-numeric:tabular-nums}.customer-portal-line-items{display:grid;gap:7px;margin-top:12px}.customer-portal-line-items>div{display:flex;justify-content:space-between;gap:14px;color:#526579;font-size:.82rem}.customer-portal-line-items strong{font-size:.82rem;font-variant-numeric:tabular-nums}.customer-portal-payment-note{margin:12px 0 0;color:#617589;font-size:.78rem;line-height:1.5}.customer-portal-pay{margin-top:13px}
.customer-portal-request-grid{grid-template-columns:minmax(280px,.75fr) minmax(0,1.25fr)}.customer-portal-request-form{display:grid;gap:13px}.customer-portal-request-form h2{margin:0}.customer-portal-request-form label{display:grid;gap:2px}.customer-portal-request-form input,.customer-portal-request-form select,.customer-portal-request-form textarea{margin-top:5px}.customer-portal-form-message{min-height:1.2em;margin:0;color:#2b705f;font-size:.8rem}.customer-portal-request-card{padding:15px 0;border-bottom:1px solid #e8edf2}.customer-portal-request-card:last-child{border-bottom:0}.customer-portal-request-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.customer-portal-request-heading>div{display:grid;gap:4px;min-width:0}.customer-portal-request-heading>div span{color:#6d8093;font-size:.76rem}.customer-portal-request-card>p,.customer-portal-admin-request>p{margin:10px 0;color:#3b4e62;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.customer-portal-request-card>small,.customer-portal-admin-request>small{color:#708194}.customer-portal-response{margin-top:12px;padding:12px;border-left:4px solid #2f7d6d;border-radius:7px;background:#eef7f4}.customer-portal-response strong{color:#216b4f;font-size:.76rem;text-transform:uppercase}.customer-portal-response p{margin:5px 0 0;white-space:pre-wrap}
.customer-portal-migration-stage{border-color:#9fd4c7;background:linear-gradient(135deg,#f7fcfa,#edf8f5)}
.customer-portal-suspended{max-width:720px;margin:10vh auto;text-align:center}.customer-portal-suspended>span{display:inline-flex;padding:5px 9px;border-radius:999px;background:#ffe0dd;color:#a12d24;font-size:.74rem;font-weight:800;text-transform:uppercase}.customer-portal-suspended h1{margin:14px 0 8px;color:#17365d}.customer-portal-suspended p{margin:0;color:#687b8e}
.customer-portal-footer{padding:18px max(24px,var(--safe-right)) calc(18px + var(--safe-bottom)) max(24px,var(--safe-left));text-align:center;color:#7b8a98;font-size:.68rem;letter-spacing:.03em}
.customer-portal-admin-grid{grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr)}.customer-portal-admin-list{display:grid;gap:10px;margin-top:16px}.customer-portal-admin-record,.customer-portal-admin-request{min-width:0;padding:13px;border:1px solid #dfe7ed;border-radius:11px;background:#f9fbfc}.customer-portal-admin-record>div:first-child{display:grid;justify-items:start;gap:5px}.customer-portal-admin-record small{color:#6e8092;line-height:1.4}.customer-portal-admin-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.customer-portal-admin-actions button{padding:7px 9px}.customer-portal-invite-link{display:block;max-width:100%;margin-top:10px;padding:9px;border-radius:7px;background:#eef2f5;white-space:normal;overflow-wrap:anywhere}.customer-portal-admin-request-controls{display:grid;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #e1e8ed}.customer-portal-admin-request-controls label{display:grid;gap:3px}.customer-portal-admin-request-controls select,.customer-portal-admin-request-controls textarea{margin-top:3px}
.customer-request-alert{display:grid;gap:12px;margin:0 0 16px;padding:16px;border:1px solid #e4a49e;border-left:5px solid #b42318;border-radius:12px;background:#fff6f5;box-shadow:0 3px 12px rgba(130,37,29,.06)}.customer-request-alert-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.customer-request-alert-heading>div{display:grid;gap:3px}.customer-request-alert-heading span:first-child{color:#a12d24;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.customer-request-alert-heading strong{color:#17365d;font-size:1.05rem}.customer-request-alert-heading p{margin:0;color:#687789;font-size:.8rem}.customer-request-alert-count{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#b42318;color:#fff!important;font-size:1.15rem!important;font-weight:800}.customer-request-alert-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.customer-request-alert-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:10px 12px;text-align:left;background:#fff;color:#17365d;border:1px solid #ead7d5}.customer-request-alert-list button>span{display:grid;gap:2px;min-width:0}.customer-request-alert-list button>span:last-child{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4d6175;font-size:.8rem}.customer-request-alert-list small{color:#7a6a68;font-size:.7rem}.customer-request-alert-more{color:#687789}.dashboard-issue-section{display:grid;gap:12px;padding:18px 0}.dashboard-issue-section+.dashboard-issue-section{border-top:1px solid #dfe6ef}.dashboard-issue-section h3{margin:0;color:#17365d}

@media(max-width:900px){
 .customer-portal-header{position:relative;padding:calc(12px + var(--safe-top)) calc(14px + var(--safe-right)) 12px calc(14px + var(--safe-left));align-items:flex-start}.customer-portal-header-actions{flex-wrap:wrap}.customer-portal-nav{top:0;grid-template-columns:repeat(3,minmax(0,1fr));padding:8px calc(10px + var(--safe-right)) 8px calc(10px + var(--safe-left))}.customer-portal-nav button{min-height:42px;padding:8px 5px;font-size:.78rem}.customer-portal-main{padding:20px calc(14px + var(--safe-right)) calc(34px + var(--safe-bottom)) calc(14px + var(--safe-left))}.customer-portal-grid,.customer-portal-request-grid,.customer-portal-admin-grid{grid-template-columns:1fr}.customer-portal-kpis{grid-template-columns:1fr 1fr}.customer-portal-kpis button:first-child{grid-column:1/-1}.customer-portal-invoice-details dl{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .customer-portal-header{display:grid;grid-template-columns:1fr}.customer-portal-header-actions{justify-content:flex-end;width:100%}.customer-portal-brand img{width:103.5px;height:85.5px}.customer-portal-account-switcher select{width:min(100%,65vw)}.customer-portal-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-portal-kpis{grid-template-columns:1fr}.customer-portal-kpis button:first-child{grid-column:auto}.customer-portal-kpis button{min-height:92px}.customer-portal-card{padding:15px}.customer-portal-record,.customer-portal-request-heading,.customer-portal-invoice summary{gap:9px}.customer-portal-record{align-items:center}.customer-portal-invoice-details dl{grid-template-columns:1fr 1fr}.customer-portal-balance{align-items:flex-start;flex-direction:column;gap:6px}.customer-portal-balance strong{font-size:1.55rem}.customer-portal-line-items>div{display:grid;gap:3px}.customer-portal-section-heading{align-items:flex-start}.customer-portal-section-heading button{white-space:nowrap}.customer-request-alert-list{grid-template-columns:1fr}.customer-request-alert-heading{align-items:flex-start}.customer-request-alert-heading p{line-height:1.4}.customer-request-alert-list button{display:grid}.customer-request-alert-list button>span:last-child{white-space:normal}
}
.estimate-workflow-actions{display:flex;gap:.55rem;flex-wrap:wrap;justify-content:flex-end}.estimate-workflow-banner{margin:0 0 1rem}.estimate-charge-row{display:grid;grid-template-columns:minmax(180px,2fr) 80px 90px 110px auto auto 90px minmax(130px,1fr) auto;gap:.55rem;align-items:center;margin:.55rem 0}.estimate-charge-row label{display:flex;align-items:center;gap:.35rem;margin:0;font-size:.82rem}.estimate-charge-row input[type="checkbox"]{width:auto}.charge-row-actions{display:flex;gap:.25rem}.charge-row-actions button{padding:.45rem .55rem}.invoice-line-header,.invoice-line-row{grid-template-columns:minmax(180px,2fr) 80px 110px auto 100px 100px 90px}.invoice-line-row label{display:flex;align-items:center;gap:.3rem;margin:0;font-size:.8rem}.invoice-line-row input[type="checkbox"]{width:auto}.one-time-visit-charges .mobile-summary-row{margin:.45rem 0}
.estimate-sticky-summary{position:sticky;top:8px;z-index:18;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;max-width:100%;margin:0 0 16px;overflow:hidden;border:1px solid #cbdce7;border-radius:12px;background:#cbdce7;box-shadow:0 8px 20px rgba(23,54,93,.12)}.estimate-sticky-summary>div{display:grid;gap:5px;min-width:0;padding:13px 16px;background:#f8fbfc}.estimate-sticky-summary span{color:#64778a;font-size:.72rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;overflow-wrap:anywhere}.estimate-sticky-summary strong{color:#17365d;font-size:1.25rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.equipment-handling-field{align-content:start}.equipment-handling-field small{display:block;margin-top:6px;color:#6b7d8e;font-weight:500;line-height:1.35}.compact-field-button{width:max-content;max-width:100%;margin-top:8px;padding:7px 10px}.equipment-handling-notes{grid-column:1/-1;min-width:0}.equipment-handling-notes textarea{min-width:0;max-width:100%}
@media(max-width:900px){.estimate-workflow-actions{justify-content:flex-start}.estimate-charge-row{grid-template-columns:1fr 1fr}.estimate-charge-row .charge-description{grid-column:1/-1}.invoice-line-row{grid-template-columns:1fr 1fr}.invoice-line-description{grid-column:1/-1}}
@media(max-width:700px){.estimate-sticky-summary{top:5px;grid-template-columns:1fr}.estimate-sticky-summary>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px}.estimate-sticky-summary span{font-size:.65rem}.estimate-sticky-summary strong{flex:0 0 auto;font-size:1rem;text-align:right}.equipment-handling-notes{grid-column:auto}}

/* v5.8.0.3 fixed workspace navigation */
:root{--app-sidebar-width:250px;--app-header-height:152px}
.sidebar-logo-panel{display:flex;flex:0 0 auto;align-items:center;justify-content:center;min-height:152px;padding:10px;background:#f3f7f5;border-bottom:1px solid #d6e3de}
.sidebar-logo-panel img{display:block;width:min(190px,88%);max-height:132px;object-fit:contain}
.sidebar-menu-scroll{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;padding:18px 14px calc(18px + var(--safe-bottom));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.estimate-area-add-footer{display:flex;justify-content:flex-end;margin-top:14px;padding-top:2px}.estimate-area-add-footer button{min-width:130px}
.estimate-sticky-summary{top:8px}
@media(min-width:901px){
 .topbar{position:sticky;top:0;z-index:45;margin-left:var(--app-sidebar-width);justify-content:space-between}
 .topbar>.brand{display:flex;min-width:0}
 .topbar>.brand img{display:none}
 .topbar>.brand>div{display:grid;gap:3px;min-width:0}
 .topbar>.brand h1{font-size:1.3rem;color:#17365d}
 .topbar>.brand p{display:block;color:#5f6f69;overflow-wrap:anywhere}
 .view-as-banner{margin-left:var(--app-sidebar-width)}
 .app-frame{grid-template-columns:var(--app-sidebar-width) minmax(0,1fr)}
 .app-sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:var(--app-sidebar-width);height:100vh;height:100dvh;padding:0;overflow:hidden;border-right:0}
 .sidebar-menu-scroll{border-right:1px solid rgba(255,255,255,.08)}
 .app-workspace{grid-column:2}
 .estimate-sticky-summary{top:calc(var(--app-header-height) + 8px)}
}
@media(min-width:901px) and (max-width:1100px){:root{--app-sidebar-width:210px}}
@media(max-width:900px){
 .sidebar-logo-panel{display:none}
 .sidebar-menu-scroll{padding:calc(18px + var(--safe-top)) 14px calc(18px + var(--safe-bottom)) calc(14px + var(--safe-left))}
 .app-sidebar{padding:0}
 .estimate-sticky-summary{top:5px}
 .estimate-area-add-footer{display:grid}.estimate-area-add-footer button{width:100%;min-width:0}
}

/* v5.6.4.1 estimate state clarity */
#estimate.estimate-locked input:disabled,#estimate.estimate-locked select:disabled,#estimate.estimate-locked textarea:disabled{background:#e4e8ec!important;color:#56616d!important;border-color:#c4cbd2!important;opacity:1;-webkit-text-fill-color:#56616d}
#estimate.estimate-locked input[type="checkbox"]:disabled{accent-color:#8b96a1}

/* v5.6.4.1 document repositories */
.document-repository-notice{margin-bottom:1rem;border-left:5px solid #2f7d6d;background:#f5fbf9}.document-repository-notice p{margin:.35rem 0 0;color:#60736d}
.document-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:1rem}.document-card{display:grid;align-content:start;gap:.8rem;padding:1rem;border:1px solid #d8e2e9;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(22,55,85,.05)}.document-category-index{display:grid;gap:20px}.document-category-group{display:grid;gap:8px}.document-category-group>h3{margin:0;padding:0 4px;color:#17365d;font-size:1rem}.document-list{overflow:hidden;border:1px solid #d6e0e8;border-radius:12px;background:#fff}.document-list-row{display:grid;width:100%;grid-template-columns:minmax(180px,1.5fr) minmax(140px,.75fr) minmax(150px,.7fr) auto 24px;align-items:center;gap:14px;padding:14px 16px;border:0;border-bottom:1px solid #e4ebf0;border-radius:0;background:#fff;color:#263e54;text-align:left}.document-list-row:last-child{border-bottom:0}.document-list-row:hover,.document-list-row:focus-visible{position:relative;background:#eef7fc;color:#17365d;box-shadow:inset 4px 0 #1f75b7}.document-list-title{min-width:0;overflow:hidden;color:#17365d;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.document-list-author,.document-list-date{min-width:0;overflow:hidden;color:#65788a;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.document-list-status{font-size:.72rem;font-weight:800}.document-list-status.deletion{color:#8a5a00}.document-list-open{color:#1f75b7;font-size:1.6rem;line-height:1;text-align:right}.document-list-row.marked-for-deletion{background:#fffdf7}.document-detail-page{display:grid;gap:18px;max-width:1100px;margin:0 auto;padding:clamp(18px,3vw,34px);border:1px solid #d5e0e8;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(22,55,85,.06)}.document-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.document-detail-header{display:grid;justify-items:start;gap:6px;padding-bottom:16px;border-bottom:1px solid #dbe4ea}.document-detail-header h1,.document-detail-header h2{margin:0;color:#102f50;font-size:clamp(1.55rem,3vw,2.25rem)}.document-detail-meta{padding:12px;border-radius:10px;background:#f5f8fa}.document-detail-body{display:block;min-height:220px;font-size:1rem}.document-detail-body>p{margin:0 0 1em;white-space:pre-wrap}.document-detail-page.marked-for-deletion{border-color:#e1bd62;background:#fffdf7}
.document-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.document-card h3{margin:.25rem 0;color:#17365d}.document-last-updated{margin:0!important;color:#526579;font-size:.78rem;font-weight:700}.document-meta{display:flex;flex-wrap:wrap;gap:.45rem .8rem;color:#66788a;font-size:.75rem}.document-meta span{overflow-wrap:anywhere}.document-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:auto}.document-actions button{padding:.55rem .7rem}
.document-review-pill{display:inline-flex;flex:0 0 auto;padding:.35rem .55rem;border-radius:999px;font-size:.68rem;font-weight:800;white-space:nowrap}.document-review-pill.current{background:#def3e8;color:#216b4f}.document-review-pill.due-soon{background:#fff0c7;color:#7a5900}.document-review-pill.overdue{background:#ffe0dd;color:#a12d24}
.customer-portal-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:14px 0;border-bottom:1px solid #e8edf2}.customer-portal-row:last-child{border-bottom:0}.customer-portal-row>div{display:grid;gap:4px}.customer-portal-row span,.customer-portal-row small{color:#687b8e;font-size:.78rem}
@media(max-width:620px){.document-grid{grid-template-columns:1fr}.document-card-top,.customer-portal-row{align-items:flex-start;flex-direction:column}.customer-portal-row button{width:100%}.document-list-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:13px}.document-list-title{white-space:normal}.document-list-author,.document-list-date{grid-column:1}.document-list-row .document-review-pill,.document-list-status{grid-column:1;justify-self:start}.document-list-open{grid-column:2;grid-row:1/5}.document-detail-toolbar{align-items:stretch;flex-direction:column}.document-detail-toolbar>button,.document-detail-toolbar .document-actions button{width:100%}.document-detail-toolbar .document-actions{display:grid}.document-detail-page{padding:16px}.document-detail-body{min-height:160px}}

/* v5.8.1.5 per-user appearance and accessible preset palettes */
html[data-resolved-theme="light"]{color-scheme:light;--theme-bg:#f3f6f9;--theme-surface:#fff;--theme-surface-muted:#f5f8fa;--theme-text:#172033;--theme-heading:#17365d;--theme-muted:#687a8d;--theme-border:#dce5eb;--theme-header:#f3f7f5;--theme-shadow:0 4px 16px rgba(18,48,78,.07);--theme-on-primary:#fff;--theme-success-bg:#def3e8;--theme-success-text:#216b4f;--theme-warning-bg:#fff0c7;--theme-warning-text:#795c00;--theme-danger-bg:#ffe0dd;--theme-danger-text:#a12d24}
html[data-resolved-theme="dark"]{color-scheme:dark;--theme-bg:#101925;--theme-surface:#18283a;--theme-surface-muted:#203247;--theme-text:#edf4f7;--theme-heading:#f8fbfd;--theme-muted:#b7c5d1;--theme-border:#385067;--theme-header:#132235;--theme-shadow:0 5px 20px rgba(0,0,0,.28);--theme-on-primary:#fff;--theme-success-bg:#173f35;--theme-success-text:#8fe0bf;--theme-warning-bg:#493d1b;--theme-warning-text:#f4d77b;--theme-danger-bg:#4b282d;--theme-danger-text:#ffaaa5}
html[data-color-theme="classic"]{--theme-primary:#1f6fb2;--theme-primary-strong:#17365d;--theme-accent:#2f7d6d;--theme-sidebar:#17365d;--theme-active-bg:transparent;--theme-active-text:#fff;--theme-focus:#25a8d3;--theme-chart-1:#2f7d6d;--theme-chart-2:#4f7fb8;--theme-chart-3:#c86b5a;--theme-chart-4:#d9a928;--theme-chart-5:#8a78b8;--theme-chart-6:#6d8795;--theme-chart-track:#dfe8e4;--theme-chart-border:#fff}
html[data-color-theme="evergreen"]{--theme-primary:#147d64;--theme-primary-strong:#17493b;--theme-accent:#238873;--theme-sidebar:#0f513f;--theme-active-bg:transparent;--theme-active-text:#fff;--theme-focus:#2ca98a;--theme-chart-1:#147d64;--theme-chart-2:#5b9f71;--theme-chart-3:#c86f4d;--theme-chart-4:#c4a52b;--theme-chart-5:#568d7c;--theme-chart-6:#748b82;--theme-chart-track:#dfe9e3;--theme-chart-border:#fff}
html[data-color-theme="plum"]{--theme-primary:#7b4d82;--theme-primary-strong:#4b2f53;--theme-accent:#268d91;--theme-sidebar:#4a284c;--theme-active-bg:transparent;--theme-active-text:#fff;--theme-focus:#35a6a6;--theme-chart-1:#7b4d82;--theme-chart-2:#268d91;--theme-chart-3:#bd6172;--theme-chart-4:#c49b2f;--theme-chart-5:#7669ad;--theme-chart-6:#708896;--theme-chart-track:#eadfea;--theme-chart-border:#fff}
html[data-resolved-theme="dark"][data-color-theme="classic"]{--theme-bg:#0f1a28;--theme-surface:#20384f;--theme-surface-muted:#2a4862;--theme-header:#122236;--theme-sidebar:#0c1d31;--theme-control:#29465f;--theme-primary:#238fd1;--theme-primary-strong:#9bd8f5;--theme-accent:#43ad98;--theme-active-bg:transparent;--theme-active-text:#fff;--theme-chart-1:#43ad98;--theme-chart-2:#5da2e6;--theme-chart-3:#e07b67;--theme-chart-4:#e8b83f;--theme-chart-5:#a895dc;--theme-chart-6:#8ca9b9;--theme-chart-track:#dce8ed;--theme-chart-border:#f4f8fa}
html[data-resolved-theme="dark"][data-color-theme="evergreen"]{--theme-bg:#0c1915;--theme-surface:#1d3b32;--theme-surface-muted:#294d41;--theme-header:#102820;--theme-sidebar:#092e25;--theme-control:#2a4b40;--theme-primary:#2c9b7c;--theme-primary-strong:#a3e4ce;--theme-accent:#55c5a5;--theme-active-bg:transparent;--theme-active-text:#fff;--theme-border:#41685b;--theme-chart-1:#55c5a5;--theme-chart-2:#8fcf88;--theme-chart-3:#e08a68;--theme-chart-4:#d8bd57;--theme-chart-5:#7fb7a7;--theme-chart-6:#9fb4a9;--theme-chart-track:#dce8e1;--theme-chart-border:#f4f9f6}
html[data-resolved-theme="dark"][data-color-theme="plum"]{--theme-bg:#1c151f;--theme-surface:#3b2c42;--theme-surface-muted:#4c3955;--theme-header:#2a1e30;--theme-sidebar:#241829;--theme-control:#4b3853;--theme-primary:#a96bb1;--theme-primary-strong:#ebc8ef;--theme-accent:#52bfc1;--theme-active-bg:transparent;--theme-active-text:#fff;--theme-border:#6a5271;--theme-chart-1:#52bfc1;--theme-chart-2:#b881c0;--theme-chart-3:#e18491;--theme-chart-4:#d9b957;--theme-chart-5:#9a89cf;--theme-chart-6:#9aabb8;--theme-chart-track:#eadfeb;--theme-chart-border:#fbf7fc}
html[data-resolved-theme] body:not(.sales-landing-mode){background:var(--theme-bg)!important;color:var(--theme-text)}
html[data-resolved-theme] .internal-app-shell,html[data-resolved-theme] .app-workspace,html[data-resolved-theme] #appMain,html[data-resolved-theme] .master-app,html[data-resolved-theme] .master-main,html[data-resolved-theme] .customer-portal-app,html[data-resolved-theme] body.customer-portal-mode{background:var(--theme-bg)!important;color:var(--theme-text)}
html[data-resolved-theme] .topbar,html[data-resolved-theme] .master-header,html[data-resolved-theme] .customer-portal-header{background:var(--theme-header)!important;color:var(--theme-heading)!important;border-color:var(--theme-border)!important;box-shadow:var(--theme-shadow)!important}
html[data-resolved-theme] .brand h1,html[data-resolved-theme] .master-brand strong,html[data-resolved-theme] .customer-portal-brand strong{color:var(--theme-heading)!important}
html[data-resolved-theme] .brand p,html[data-resolved-theme] .master-brand span,html[data-resolved-theme] .customer-portal-brand span{color:var(--theme-muted)!important}
html[data-resolved-theme] .app-sidebar,html[data-resolved-theme] .master-sidebar{background:var(--theme-sidebar)!important}
html[data-resolved-theme] .primary-nav-item,html[data-resolved-theme] .master-sidebar button{color:#eaf2f7}
html[data-resolved-theme] .primary-nav-item:hover,html[data-resolved-theme] .primary-nav-item.active,html[data-resolved-theme] .master-sidebar button:hover,html[data-resolved-theme] .master-sidebar button.active{background:var(--theme-active-bg)!important;color:var(--theme-active-text)!important}
html[data-resolved-theme] .workspace-navigation,html[data-resolved-theme] .tabs,html[data-resolved-theme] .customer-portal-nav{background:var(--theme-surface)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme] .workspace-navigation strong,html[data-resolved-theme] .master-page-heading h1,html[data-resolved-theme] .master-section-divider,html[data-resolved-theme] .master-card h2,html[data-resolved-theme] .master-product-card h2,html[data-resolved-theme] .roadmap-item h2,html[data-resolved-theme] .document-detail-header h1,html[data-resolved-theme] .document-detail-header h2,html[data-resolved-theme] .customer-portal-page-heading h1,html[data-resolved-theme] .customer-portal-card h2,html[data-resolved-theme] .customer-portal-card h3{color:var(--theme-heading)!important}
html[data-resolved-theme] .workspace-eyebrow,html[data-resolved-theme] .master-page-heading>span,html[data-resolved-theme] .master-product-card>span,html[data-resolved-theme] .sales-section-heading>span{color:var(--theme-accent)!important}
html[data-resolved-theme] .card,html[data-resolved-theme] .box,html[data-resolved-theme] dialog,html[data-resolved-theme] table,html[data-resolved-theme] .calendar-month,html[data-resolved-theme] .calendar-day,html[data-resolved-theme] .document-card,html[data-resolved-theme] .document-detail-page,html[data-resolved-theme] .document-list,html[data-resolved-theme] .document-list-row,html[data-resolved-theme] .master-card,html[data-resolved-theme] .master-product-card,html[data-resolved-theme] .roadmap-item,html[data-resolved-theme] .master-kpis>div,html[data-resolved-theme] .customer-portal-card,html[data-resolved-theme] .customer-portal-kpis>button,html[data-resolved-theme] .customer-portal-admin-record,html[data-resolved-theme] .customer-portal-admin-request,html[data-resolved-theme] .auth-card{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;box-shadow:var(--theme-shadow)}
html[data-resolved-theme] .roadmap-disclosure{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;box-shadow:var(--theme-shadow)}html[data-resolved-theme] .roadmap-disclosure-body{border-color:var(--theme-border)!important}html[data-resolved-theme] .roadmap-disclosure-summary>span,html[data-resolved-theme] .roadmap-list-heading>span,html[data-resolved-theme] .roadmap-status-heading span{background:var(--theme-surface-muted,#edf5f2)!important;color:var(--theme-accent)!important}html[data-resolved-theme] .roadmap-list-heading h2,html[data-resolved-theme] .roadmap-status-heading h3,html[data-resolved-theme] .roadmap-entry-summary h2,html[data-resolved-theme] .roadmap-entry-body h3{color:var(--theme-heading)!important}html[data-resolved-theme] .roadmap-list-heading p,html[data-resolved-theme] .roadmap-entry-summary p,html[data-resolved-theme] .roadmap-entry-meta,html[data-resolved-theme] .roadmap-entry-summary-main>span{color:var(--theme-muted)!important}html[data-resolved-theme] .roadmap-status-heading,html[data-resolved-theme] .roadmap-entry-body{border-color:var(--theme-border)!important}html[data-resolved-theme] .roadmap-entry-meta strong{color:var(--theme-heading)!important}html[data-resolved-theme] .roadmap-entry-summary:after{color:var(--theme-accent)!important}
html[data-resolved-theme] .document-list-row:hover,html[data-resolved-theme] .document-list-row:focus-visible,html[data-resolved-theme] th,html[data-resolved-theme] .calendar-day.empty-day,html[data-resolved-theme] .customer-portal-invoice-details dl,html[data-resolved-theme] .capacity-summary-grid>div,html[data-resolved-theme] .work-order-header-grid>div,html[data-resolved-theme] .labor-time-comparison>div,html[data-resolved-theme] .labor-adjustment-summary>div,html[data-resolved-theme] .check-grid label,html[data-resolved-theme] .document-content-editor figure,html[data-resolved-theme] .document-editor-toolbar,html[data-resolved-theme] .document-detail-meta{background:var(--theme-surface-muted)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme] input,html[data-resolved-theme] select,html[data-resolved-theme] textarea,html[data-resolved-theme] .document-content-editor{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme] input::placeholder,html[data-resolved-theme] textarea::placeholder{color:var(--theme-muted);opacity:.78}
html[data-resolved-theme] label,html[data-resolved-theme] .card span,html[data-resolved-theme] .master-kpis span,html[data-resolved-theme] .master-list-row span,html[data-resolved-theme] .master-list-row small,html[data-resolved-theme] .master-page-heading p,html[data-resolved-theme] .master-card p,html[data-resolved-theme] .master-product-card p,html[data-resolved-theme] .roadmap-item p,html[data-resolved-theme] .roadmap-item li,html[data-resolved-theme] .calendar-note,html[data-resolved-theme] .document-list-author,html[data-resolved-theme] .document-list-date,html[data-resolved-theme] .document-body,html[data-resolved-theme] .customer-portal-page-heading p,html[data-resolved-theme] .customer-portal-empty,html[data-resolved-theme] .customer-portal-record span,html[data-resolved-theme] .customer-portal-request-card>p{color:var(--theme-muted)!important}
html[data-resolved-theme] .card strong,html[data-resolved-theme] .master-kpis strong,html[data-resolved-theme] .master-product-card>strong,html[data-resolved-theme] .master-hero-number,html[data-resolved-theme] .big-stat,html[data-resolved-theme] .document-list-title{color:var(--theme-heading)!important}
html[data-resolved-theme] button:not(.danger):not(.danger-link),html[data-resolved-theme] .button:not(.danger){background:var(--theme-primary);color:var(--theme-on-primary)}
html[data-resolved-theme] button.secondary,html[data-resolved-theme] .button.secondary{background:var(--theme-surface-muted)!important;color:var(--theme-heading)!important;border:1px solid var(--theme-border)}
html[data-resolved-theme] .workspace-subnav-item,html[data-resolved-theme] .tab,html[data-resolved-theme] .customer-portal-nav button{background:var(--theme-surface-muted)!important;color:var(--theme-muted)!important}
html[data-resolved-theme] .workspace-subnav-item.active,html[data-resolved-theme] .tab.active,html[data-resolved-theme] .customer-portal-nav button.active{background:var(--theme-primary)!important;color:var(--theme-on-primary)!important}
html[data-resolved-theme] :focus-visible{outline:3px solid var(--theme-focus)!important;outline-offset:2px}
html[data-resolved-theme] .connection-badge.connected,html[data-resolved-theme] .visit-completed,html[data-resolved-theme] .qc-pass,html[data-resolved-theme] .customer-portal-status.completed,html[data-resolved-theme] .customer-portal-status.paid,html[data-resolved-theme] .customer-portal-status.resolved{background:var(--theme-success-bg)!important;color:var(--theme-success-text)!important}
html[data-resolved-theme] .visit-progress,html[data-resolved-theme] .qc-attention,html[data-resolved-theme] .document-review-pill.due-soon{background:var(--theme-warning-bg)!important;color:var(--theme-warning-text)!important}
html[data-resolved-theme] .issue-badge,html[data-resolved-theme] .qc-fail,html[data-resolved-theme] .customer-portal-status.suspended,html[data-resolved-theme] .customer-portal-status.overdue,html[data-resolved-theme] .document-review-pill.overdue{background:var(--theme-danger-bg)!important;color:var(--theme-danger-text)!important}
html[data-resolved-theme] .customer-portal-balance{background:var(--theme-sidebar)!important;color:#fff!important}
html[data-resolved-theme] .version-badge,html[data-resolved-theme] .platform-status{background:var(--theme-surface)!important;color:var(--theme-accent)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme] .document-video-consent{background:var(--theme-sidebar)!important}
html[data-resolved-theme] dialog::backdrop{background:rgba(4,10,18,.72)}
.experience-theme-dialog{width:min(920px,calc(100vw - 24px));max-height:92vh;overflow:auto}.experience-theme-dialog .dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.experience-theme-dialog .dialog-head h2{margin:0;color:var(--theme-heading,#17365d)}.experience-theme-dialog .dialog-head p{max-width:650px;margin:5px 0 0;color:var(--theme-muted,#687a8d)}.experience-theme-form{display:grid;gap:18px;margin-top:18px}.experience-theme-form fieldset{margin:0;padding:15px;border:1px solid var(--theme-border,#dce5eb);border-radius:12px}.experience-theme-form legend{padding:0 7px;color:var(--theme-heading,#17365d);font-weight:800}.experience-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.experience-choice{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:13px;border:2px solid var(--theme-border,#dce5eb);border-radius:11px;background:var(--theme-surface-muted,#f5f8fa);cursor:pointer}.experience-choice:has(input:checked){border-color:var(--theme-primary,#1f6fb2);box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-primary,#1f6fb2) 20%,transparent)}.experience-choice input{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;accent-color:var(--theme-primary,#1f6fb2)}.experience-choice>span:not(.experience-swatches){display:grid;gap:4px;min-width:0}.experience-choice strong{color:var(--theme-heading,#17365d)}.experience-choice small{color:var(--theme-muted,#687a8d);line-height:1.35}.experience-palette-grid .experience-choice{display:grid;grid-template-columns:auto minmax(0,1fr)}.experience-palette-grid .experience-choice>input{grid-row:1/3}.experience-swatches{display:flex;gap:4px}.experience-swatches i{width:23px;height:23px;border:1px solid rgba(0,0,0,.12);border-radius:50%}.palette-classic .experience-swatches i:nth-child(1){background:#17365d}.palette-classic .experience-swatches i:nth-child(2){background:#1f6fb2}.palette-classic .experience-swatches i:nth-child(3){background:#2f7d6d}.palette-evergreen .experience-swatches i:nth-child(1){background:#0f513f}.palette-evergreen .experience-swatches i:nth-child(2){background:#147d64}.palette-evergreen .experience-swatches i:nth-child(3){background:#f1eee3}.palette-plum .experience-swatches i:nth-child(1){background:#4a284c}.palette-plum .experience-swatches i:nth-child(2){background:#7b4d82}.palette-plum .experience-swatches i:nth-child(3){background:#268d91}
@media(max-width:760px){.experience-choice-grid{grid-template-columns:1fr}.experience-theme-dialog .dialog-head{display:grid}.experience-theme-dialog .dialog-head>button{width:100%}.experience-theme-dialog{padding:18px}.experience-theme-form .dialog-actions button{width:100%}}

/* v5.6.4.2 authored documents and pasted photos */
.document-author-dialog{width:min(96vw,1050px);max-width:1050px}.document-editor-label{display:grid;gap:.45rem}.document-editor-label>span{color:#65788a;font-size:.78rem;font-weight:500}.document-content-editor{min-height:420px;max-height:62vh;padding:18px;overflow:auto;border:1px solid #afc0cd;border-radius:10px;background:#fff;color:#1d2e3f;line-height:1.6;white-space:pre-wrap;outline:none}.document-content-editor:focus{border-color:#1f6fb2;box-shadow:0 0 0 3px rgba(31,111,178,.14)}.document-content-editor:empty:before{content:attr(data-placeholder);color:#82909d;pointer-events:none}.document-content-editor p{min-height:1.5em;margin:.35rem 0}.document-content-editor figure,.document-body figure{margin:1rem 0}.document-content-editor figure{position:relative;padding:.6rem;border:1px solid #d8e3ea;border-radius:12px;background:#f7fafc}.document-content-editor br[data-document-image-break]{display:block;min-height:1.5em}.document-content-editor img,.document-body img{display:block;max-width:100%;height:auto;border-radius:8px}.document-image-remove{margin-top:.55rem;padding:.4rem .6rem;background:#fff;color:#a12d24;border:1px solid #e3b7b3}.document-body{display:grid;gap:.4rem;color:#34495e;line-height:1.55;overflow-wrap:anywhere}.document-body p{margin:.2rem 0;white-space:normal}.document-body figure figcaption{margin-top:.3rem;color:#718296;font-size:.73rem}.document-inline-image:not([src]){min-height:110px;background:#eef3f6}.portal-document-card{display:grid;gap:.8rem;padding:14px 0;border-bottom:1px solid #e8edf2}.portal-document-card:last-child{border-bottom:0}.portal-document-card h3{margin:.2rem 0;color:#17365d}.portal-document-card .document-body{max-height:420px;overflow:auto}.portal-document-card .document-actions{margin-top:.2rem}
@media(max-width:620px){.document-content-editor{min-height:330px}.document-author-dialog{width:98vw}.document-author-dialog .form-grid{grid-template-columns:1fr}}
.document-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid #d8e3ea;border-radius:9px;background:#f7fafc}.document-editor-toolbar small{color:#65788a}.document-video-editor{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:13px;border:1px solid #bdd4e4;border-radius:10px;background:#eef7fc}.document-video-editor>div{display:grid;gap:3px;min-width:0}.document-video-editor small{color:#65788a}.document-video-remove{flex:0 0 auto;background:#fff;color:#a12d24;border:1px solid #e3b7b3}.document-video-block{min-width:0}.document-video-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:10px;background:#10263d}.document-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.document-video-consent{display:grid;place-items:center;padding:clamp(18px,5vw,44px);text-align:center;background:linear-gradient(145deg,#0b2d4f,#124f70)}.document-video-consent-copy{display:grid;gap:8px;max-width:620px;color:#fff}.document-video-consent-copy strong{font-size:clamp(1.05rem,2.4vw,1.45rem)}.document-video-consent-copy small{color:#d7e9f3;line-height:1.45}.document-video-provider{justify-self:center;padding:4px 9px;border:1px solid rgba(255,255,255,.35);border-radius:999px;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em}.document-video-play{margin-top:18px;min-width:160px;background:#fff;color:#103b5a;border:0}.document-video-play:hover{background:#e9f7fb}.document-video-play span{margin-right:5px}.document-video-dialog{width:min(94vw,680px)}
@media(max-width:620px){.document-editor-toolbar,.document-video-editor{display:grid;align-items:stretch}.document-editor-toolbar button,.document-video-editor button{width:100%}.document-video-frame{aspect-ratio:16/9}}
.employee-license-usage{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;margin:0 0 16px;padding:13px 15px;border:1px solid #b9dbd1;border-left:5px solid #2f7d6d;border-radius:11px;background:#f1f9f6}.employee-license-usage>div{display:grid;gap:4px;min-width:0}.employee-license-usage span{color:#607386;font-size:.8rem;overflow-wrap:anywhere}.employee-license-usage>strong{color:#216b4f;white-space:nowrap}.employee-license-usage.limit-reached{border-color:#e2b8b4;border-left-color:#b42318;background:#fff2f0}.employee-license-usage.limit-reached>strong{color:#a12d24}@media(max-width:600px){.employee-license-usage{align-items:flex-start;flex-direction:column}.employee-license-usage>strong{white-space:normal}}

/* v5.7.0 platform environments, SSOT roadmap, Leads, and document lifecycle */
.brand img{width:clamp(150px,12vw,190px);height:auto;max-height:132px}.auth-logo{width:clamp(150px,32vw,184px);height:auto}.customer-portal-brand img{width:clamp(165px,17vw,205px);height:auto}.topbar{min-height:152px}.optional-label{font-weight:500;color:#7a8798}.document-search-home{display:grid;gap:16px}.document-search-home input{min-height:48px;font-size:1rem}.document-library-links{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}.document-sharing-fieldset{margin:0;padding:15px;border:1px solid #cbd6e3;border-radius:10px;background:#f8fafc}.document-sharing-fieldset legend{padding:0 6px;color:#17365d;font-weight:800}.document-sharing-fieldset>label{display:grid;gap:4px}.document-sharing-fieldset select{min-height:132px}.document-sharing-fieldset p{margin:10px 0 0;color:#68798b;font-size:.78rem}.document-deletion-banner{margin:-1rem -1rem 0;padding:9px 13px;border-radius:13px 13px 0 0;background:#fff0c7;color:#765500;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.document-card.marked-for-deletion{border-color:#e1bd62;background:#fffdf7}.lead-record{grid-template-columns:minmax(220px,1.5fr) minmax(150px,.6fr) auto}.lead-value{display:grid;justify-items:start;gap:6px}.lead-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.company-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.company-settings-grid .box h3{margin-top:0}.platform-status{display:inline-flex;width:max-content;padding:5px 9px;border-radius:999px;background:#e6eef5;color:#36536e;font-size:.72rem;font-weight:800;text-transform:capitalize}.form-stack{display:grid;gap:13px}.form-stack label{display:grid;gap:3px}.form-stack input,.form-stack select,.form-stack textarea{margin-top:3px}

body.master-mode,body.sales-landing-mode{padding:0;background:#f3f6f9}.master-app,.sales-landing-app{min-height:100vh;min-height:100dvh}.master-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:116px;padding:12px 26px;background:#f5f9f7;color:#17365d;border-bottom:1px solid #d8e4df;box-shadow:0 4px 18px rgba(20,50,80,.06)}.master-brand{display:flex;align-items:center;gap:15px}.master-brand img{width:178px;height:92px;object-fit:contain}.master-brand>div{display:grid;gap:3px}.master-brand strong{font-size:1.3rem}.master-brand span{color:#64756f;font-size:.77rem}.master-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}.master-frame{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 116px)}.master-sidebar{position:sticky;top:116px;align-self:start;height:calc(100vh - 116px);padding:24px 15px;background:#17365d;color:#fff}.master-sidebar>strong{display:block;padding:0 12px 15px;color:#b9cec7;font-size:.73rem;letter-spacing:.08em;text-transform:uppercase}.master-sidebar nav{display:grid;gap:5px}.master-sidebar button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;text-align:left;background:transparent;color:#dce8f2}.master-sidebar button:hover,.master-sidebar button.active{background:#fff;color:#17365d}.master-main{min-width:0;padding:30px}.master-view{display:grid;gap:20px;max-width:1500px;margin:0 auto}.master-page-heading>span,.sales-section-heading>span,.sales-hero>span,.sales-quote>span{color:#2f7d6d;font-size:.73rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.master-page-heading h1,.sales-section-heading h2{margin:5px 0 7px;color:#17365d;font-size:clamp(1.8rem,4vw,2.6rem)}.master-page-heading p{max-width:780px;margin:0;color:#687a8d;line-height:1.55}.master-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.master-kpis>div,.master-card,.master-product-card,.roadmap-item{min-width:0;padding:19px;background:#fff;border:1px solid #dce5eb;border-radius:14px;box-shadow:0 4px 14px rgba(18,48,78,.05)}.master-kpis span{display:block;color:#687a8d;font-size:.76rem}.master-kpis strong{display:block;margin-top:8px;color:#17365d;font-size:1.5rem}.master-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;align-items:start}.master-card h2,.master-product-card h2,.roadmap-item h2{margin:0 0 13px;color:#17365d;font-size:1.08rem}.master-list-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #e8edf2}.master-list-row:last-child{border-bottom:0}.master-list-row>div{display:grid;gap:4px;min-width:0}.master-list-row span,.master-list-row small{color:#6d7e8e;font-size:.78rem}.master-table-wrap{overflow:auto}.master-table-wrap small{display:block;margin-top:3px;color:#718296}.master-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.master-product-card>span{color:#2f7d6d;font-size:.75rem;font-weight:800}.master-product-card>strong{display:block;margin:12px 0;color:#17365d;font-size:2rem}.master-product-card>strong small{font-size:.75rem;color:#708194}.master-product-card p,.master-product-card li,.master-card p,.roadmap-item p,.roadmap-item li{color:#596d80;line-height:1.5}.master-card-actions,.roadmap-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-top:16px}.master-hero-number{display:block;margin:18px 0;color:#17365d;font-size:2.2rem}.roadmap-board{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.roadmap-item{border-left:5px solid #8ca2b5}.roadmap-item.priority-critical{border-left-color:#b42318}.roadmap-item.priority-high{border-left-color:#d77818}.roadmap-item.priority-medium{border-left-color:#1f6fb2}.roadmap-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.roadmap-item-head>div>span{color:#6f8192;font-size:.72rem;font-weight:800;text-transform:uppercase}.roadmap-item dl{display:flex;gap:20px;margin:13px 0}.roadmap-item dl>div{display:grid;gap:3px}.roadmap-item dt{color:#778797;font-size:.68rem;text-transform:uppercase}.roadmap-item dd{margin:0;font-weight:800}.release-blog{margin-top:6px}.platform-editor-dialog,.sales-checkout-dialog{width:min(760px,95vw);max-height:92vh;overflow:auto}.master-error,.sales-error{max-width:720px;margin:15vh auto;padding:30px;text-align:center;background:#fff;border-radius:16px}
.roadmap-disclosure{min-width:0;margin:0;padding:0!important;overflow:hidden;background:#fff;border:1px solid #dce5eb;border-radius:14px;box-shadow:0 4px 14px rgba(18,48,78,.05)}.roadmap-disclosure-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px;cursor:pointer;list-style:none}.roadmap-disclosure-summary::-webkit-details-marker{display:none}.roadmap-disclosure-summary:after{content:"›";flex:0 0 auto;color:#2f7d6d;font-size:1.7rem;font-weight:800;line-height:1;transform:rotate(90deg);transition:transform .18s ease}.roadmap-disclosure[open]>.roadmap-disclosure-summary:after{transform:rotate(-90deg)}.roadmap-disclosure-summary>div{min-width:0}.roadmap-disclosure-summary h2{margin:0 0 5px}.roadmap-disclosure-summary p{margin:0}.roadmap-disclosure-summary>span{margin-left:auto;padding:5px 9px;border-radius:999px;background:#edf5f2;color:#2f7d6d;font-size:.72rem;font-weight:800;white-space:nowrap}.roadmap-disclosure-body{padding:0 19px 19px;border-top:1px solid #e8edf2}.roadmap-disclosure-body>.roadmap-toolbar{justify-content:flex-start;margin:16px 0}.roadmap-section-actions{justify-content:flex-end!important}
.roadmap-list-section{display:grid;gap:14px;min-width:0}.roadmap-list-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:0 2px}.roadmap-list-heading>div{min-width:0}.roadmap-list-heading h2{margin:0 0 5px;color:#17365d}.roadmap-list-heading p{margin:0;color:#687a8d;line-height:1.5}.roadmap-list-heading>span{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#edf5f2;color:#2f7d6d;font-size:.72rem;font-weight:800}.roadmap-list-section>.roadmap-toolbar{justify-content:flex-start;margin:0}.roadmap-status-groups{display:grid;gap:22px;min-width:0}.roadmap-status-group{display:grid;gap:10px;min-width:0}.roadmap-status-heading{display:flex;align-items:center;gap:9px;padding:0 2px 8px;border-bottom:1px solid #dce5eb}.roadmap-status-heading h3{margin:0;color:#17365d;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase}.roadmap-status-heading span{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#e8f1f5;color:#315574;font-size:.72rem;font-weight:800}.roadmap-status-list{display:grid;gap:10px;min-width:0}.roadmap-entry{padding:0;overflow:hidden}.roadmap-entry-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:17px 46px 17px 18px;cursor:pointer;list-style:none;position:relative}.roadmap-entry-summary::-webkit-details-marker{display:none}.roadmap-entry-summary:after{content:"›";position:absolute;right:18px;top:19px;color:#2f7d6d;font-size:1.55rem;font-weight:800;line-height:1;transform:rotate(90deg);transition:transform .18s ease}.roadmap-entry[open]>.roadmap-entry-summary:after{transform:rotate(-90deg)}.roadmap-entry-summary-main{display:grid;gap:5px;min-width:0}.roadmap-entry-summary-main>span{color:#6f8192;font-size:.72rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.roadmap-entry-summary h2{margin:0;color:#17365d;font-size:1.08rem}.roadmap-entry-summary p{margin:0;color:#596d80;line-height:1.45}.roadmap-entry-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;margin-top:4px;color:#6d7e8e;font-size:.74rem}.roadmap-entry-meta span{display:inline-flex;align-items:center;gap:5px}.roadmap-entry-meta strong{color:#425c74;text-transform:uppercase;font-size:.66rem;letter-spacing:.04em}.roadmap-entry-summary>.platform-status{flex:0 0 auto;margin-right:4px}.roadmap-entry-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;padding:16px 18px 18px;border-top:1px solid #e8edf2}.roadmap-entry-body h3{margin:0 0 7px;color:#17365d;font-size:.85rem}.roadmap-entry-body ul{margin:0;padding-left:20px}.roadmap-entry-body li{margin:0 0 5px}.roadmap-entry-actions{grid-column:1/-1;display:flex;justify-content:flex-end}

.sales-landing-app{background:#f8fafb;color:#1c2c3c}.sales-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px max(5vw,24px);background:#f5f9f7;border-bottom:1px solid #d8e4df}.sales-header img{width:190px;height:100px;object-fit:contain}.sales-header nav{display:flex;align-items:center;gap:22px}.sales-header a,.sales-language-toggle{color:#17365d;font-weight:800;text-decoration:none}.sales-language-toggle{min-height:auto;padding:4px 0;background:transparent;border:0;border-radius:0;box-shadow:none}.sales-language-toggle:hover,.sales-language-toggle:focus-visible{background:transparent;color:#2f7d6d;text-decoration:underline}.sales-landing-app main{display:grid;gap:72px;padding-bottom:70px}.sales-hero{display:grid;justify-items:start;max-width:1200px;width:90%;margin:0 auto;padding:90px 0 45px;background:radial-gradient(circle at 90% 20%,rgba(47,125,109,.15),transparent 34%)}.sales-hero h1{max-width:820px;margin:10px 0 18px;color:#17365d;font-size:clamp(2.8rem,8vw,6.2rem);line-height:.95;letter-spacing:-.045em}.sales-hero p{max-width:700px;margin:0;color:#5b7084;font-size:1.1rem;line-height:1.65}.sales-packages{width:min(1200px,90%);margin:0 auto}.sales-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:18px;margin-top:25px}.sales-package{position:relative;display:flex;flex-direction:column;height:100%;padding:27px;background:#fff;border:1px solid #dbe5ec;border-radius:18px;box-shadow:0 6px 20px rgba(20,50,80,.06)}.sales-package.featured{border:2px solid #2f7d6d}.sales-popular{position:absolute;top:-14px;right:20px;padding:6px 11px;border-radius:999px;background:#2f7d6d;color:#fff;font-size:.72rem;font-weight:800}.sales-package h3{margin:0;color:#17365d;font-size:1.35rem}.sales-package>strong{margin:18px 0;color:#17365d;font-size:2.5rem}.sales-package>strong small{font-size:.8rem;color:#748495}.sales-package p,.sales-package li{color:#5e7184;line-height:1.55}.sales-package ul{flex:1}.sales-package button{margin-top:auto}.sales-quote{display:grid;justify-items:start;width:min(760px,90%);margin:-35px auto 0;padding:26px;background:#edf7f3;border:1px solid #acd4c7;border-radius:17px}.sales-quote h2{margin:6px 0;color:#17365d}.sales-quote>strong{font-size:2rem;color:#17365d}.sales-quote small{margin:5px 0 15px;color:#657a70}.sales-quote.error{background:#fff4f3;border-color:#e2b0ab}.sales-landing-app footer{padding:28px;text-align:center;color:#728293;border-top:1px solid #dfe7ec}

@media(max-width:1050px){.master-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.master-product-grid,.sales-package-grid{grid-template-columns:1fr}.sales-package.featured{transform:none}.master-header{position:relative}.master-frame{grid-template-columns:1fr}.master-sidebar{position:sticky;top:0;z-index:20;width:100%;height:auto;padding:9px;overflow:auto}.master-sidebar>strong{display:none}.master-sidebar nav{display:flex;min-width:max-content}.master-sidebar button{width:auto}.master-main{padding:22px}.topbar{min-height:auto}}
@media(max-width:760px){.brand img{width:108px;height:auto}.auth-logo{width:150px}.customer-portal-brand img{width:118px;height:auto}.master-brand img{width:120px;height:68px}.master-brand>div{display:none}.master-header{display:grid;padding:10px 14px}.master-header-actions{justify-content:flex-start}.master-header-actions>span:not(.version-badge){max-width:200px;overflow:hidden;text-overflow:ellipsis}.master-grid,.roadmap-board,.company-settings-grid{grid-template-columns:1fr}.master-kpis{grid-template-columns:1fr 1fr}.master-main{padding:16px}.master-product-grid{grid-template-columns:1fr}.master-list-row.quote-row{display:grid}.lead-record{grid-template-columns:1fr}.lead-actions{justify-content:flex-start}.sales-header{padding:10px 14px}.sales-header img{width:104px;height:64px}.sales-header nav{gap:9px;font-size:.82rem}.sales-language-toggle{font-size:.82rem}.sales-hero{padding:60px 0 20px}.sales-landing-app main{gap:52px}.document-library-links{display:grid;grid-template-columns:1fr}.document-library-links button{width:100%}}
@media(max-width:760px){.roadmap-disclosure-summary{align-items:flex-start;padding:16px}.roadmap-disclosure-summary>span{white-space:normal}.roadmap-disclosure-body{padding:0 14px 14px}.roadmap-disclosure-body>.roadmap-toolbar,.roadmap-list-section>.roadmap-toolbar{display:grid;grid-template-columns:1fr}.roadmap-disclosure-body>.roadmap-toolbar button,.roadmap-list-section>.roadmap-toolbar button{width:100%}.roadmap-item dl{display:grid;grid-template-columns:1fr 1fr}.roadmap-item-head{display:grid}.roadmap-list-heading{align-items:flex-start}.roadmap-entry-summary{display:grid;padding:15px 42px 15px 15px}.roadmap-entry-summary>.platform-status{justify-self:start;margin:3px 0 0}.roadmap-entry-body{grid-template-columns:1fr;padding:15px}.roadmap-entry-actions{grid-column:auto;justify-content:stretch}.roadmap-entry-actions button{width:100%}}
.quote-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
@media(max-width:760px){.quote-actions{justify-content:flex-start}}

.estimate-delivery-panel-wrap{margin:14px 0}.estimate-delivery-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:18px;padding:14px 0;border-bottom:1px solid #e3eaf0}.estimate-delivery-row:last-child{border-bottom:0}.estimate-delivery-row>div{display:grid;gap:5px}.estimate-delivery-row span{color:#687a8d;font-size:.82rem}.estimate-delivery-row dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.estimate-delivery-row dt,.preflight-locked span,.estimate-public-summary dt{color:#718295;font-size:.7rem;font-weight:800;text-transform:uppercase}.estimate-delivery-row dd,.preflight-locked strong,.estimate-public-summary dd{margin:3px 0 0;color:#17365d}.estimate-email-dialog,.estimate-conversion-dialog{width:min(760px,calc(100vw - 24px));max-height:92vh;overflow:auto}.estimate-email-dialog .security-note,.estimate-conversion-dialog .security-note{display:grid;gap:5px}.preflight-locked{display:grid;grid-template-columns:minmax(130px,.65fr) minmax(0,1.35fr);gap:10px 18px;padding:16px;background:#eef3f7;border:1px solid #d7e1e9;border-radius:10px}.preflight-workers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.preflight-workers label{display:flex;align-items:center;gap:8px;padding:9px;background:#f6f8fa;border-radius:8px}.platform-status.status-completed{background:#e4f4ec;color:#176244}.error-text{color:#b42318!important}.resolved-text{color:#176244!important}

body.estimate-acceptance-mode{margin:0;min-width:0;padding:0;background:#edf3f6;color:#17365d;overflow-x:hidden}.estimate-acceptance-page{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:28px 0 56px}.estimate-acceptance-header{display:flex;align-items:center;gap:22px;margin-bottom:22px;padding:18px 24px;background:#fff;border:1px solid #dbe5ec;border-radius:16px}.estimate-acceptance-header img{width:150px;height:82px;object-fit:contain}.estimate-acceptance-header span{color:#2f7d6d;font-size:.75rem;font-weight:800;text-transform:uppercase}.estimate-acceptance-header h1{margin:5px 0;color:#17365d}.estimate-acceptance-header p{margin:0;color:#687a8d}.estimate-acceptance-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr);gap:22px;align-items:start}.estimate-public-card,.estimate-response-card{position:relative;min-width:0;padding:28px;background:#fff;border:1px solid #dbe5ec;border-radius:16px;box-shadow:0 6px 20px rgba(20,50,80,.06)}.estimate-public-status{position:absolute;top:20px;right:20px;padding:7px 11px;background:#e9f1f7;border-radius:999px;font-size:.72rem;font-weight:800;text-transform:capitalize}.estimate-public-status.status-accepted{background:#e3f5ec;color:#176244}.estimate-public-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}.estimate-public-summary>div{padding:12px;background:#f6f8fa;border-radius:9px}.estimate-public-scope{white-space:normal;line-height:1.65;color:#425a70}.estimate-evidence-note{display:grid;gap:4px;margin-top:24px;padding:14px;background:#eef6f3;border-left:4px solid #2f7d6d;border-radius:8px}.estimate-evidence-note span{overflow-wrap:anywhere;color:#61776e;font-size:.78rem}.estimate-response-card{position:sticky;top:18px}.estimate-response-card form{display:grid;gap:13px}.estimate-response-card label{display:grid;gap:6px}.estimate-public-actions{display:grid;gap:9px}.estimate-response-help{color:#687a8d;font-size:.78rem;line-height:1.5}.estimate-response-success{padding:18px;background:#e7f6ee;border:1px solid #a7d5be;border-radius:10px}.estimate-response-success strong{font-size:1.25rem}.estimate-response-error{padding:16px;background:#fff0ef;color:#9f231b;border-radius:9px}.estimate-public-loading,.estimate-public-error{width:min(640px,calc(100% - 32px));margin:15vh auto;padding:30px;text-align:center;background:#fff;border-radius:16px}.estimate-public-error img{width:180px;height:100px}.estimate-public-error{display:grid;justify-items:center}.estimate-public-error h1{margin-bottom:0}

@media(max-width:760px){.estimate-delivery-row{grid-template-columns:1fr}.estimate-delivery-row dl{grid-template-columns:1fr}.preflight-locked{grid-template-columns:1fr}.preflight-workers{grid-template-columns:1fr}.estimate-acceptance-page{width:min(100% - 20px,1180px);padding-top:10px}.estimate-acceptance-header{display:grid;gap:8px;padding:16px}.estimate-acceptance-header img{width:112px;height:62px}.estimate-acceptance-layout{grid-template-columns:minmax(0,1fr)}.estimate-public-card,.estimate-response-card{padding:18px;overflow-wrap:anywhere}.estimate-response-card{position:static}.estimate-public-summary{grid-template-columns:1fr}.estimate-public-status{position:static;display:inline-flex;margin-bottom:12px}.preview-toolbar>div{width:100%}.preview-toolbar button{flex:1 1 140px}.estimate-email-dialog,.estimate-conversion-dialog{width:calc(100vw - 12px);max-width:none;margin:auto}.estimate-email-dialog .dialog-head,.estimate-conversion-dialog .dialog-head{align-items:flex-start}}

/* v5.7.0.7 Master product analytics */
.master-analytics-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:14px 17px;border:1px solid #dce5eb;border-radius:14px;background:#fff}.master-analytics-toolbar>div{display:grid;gap:4px}.master-analytics-toolbar>div span{color:#687a8d;font-size:.78rem}.master-analytics-toolbar label{min-width:160px;margin-left:auto}.master-analytics-toolbar select{margin-top:4px}.master-analytics-loading{padding:28px;text-align:center;color:#687a8d}.master-analytics-error{border-left:5px solid #b42318}.master-path-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #e8edf2}.master-path-row span{min-width:0;color:#596d80;font-size:.78rem;overflow-wrap:anywhere}.master-path-row strong{color:#2f7d6d}.master-path-row b{color:#17365d}.master-section-divider{display:flex;align-items:center;gap:12px;margin-top:8px;color:#687a8d;font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.master-section-divider:after{content:"";height:1px;flex:1;background:#dce5eb}.master-usage-trend{grid-column:1/-1}.master-usage-day{display:grid;grid-template-columns:110px minmax(100px,1fr) 70px;gap:10px;align-items:center;padding:6px 0}.master-usage-day span{color:#687a8d;font-size:.76rem}.master-usage-day>div{height:9px;overflow:hidden;border-radius:999px;background:#e5edf2}.master-usage-day i{display:block;height:100%;border-radius:inherit;background:#2f7d6d}.master-usage-day strong{text-align:right;color:#17365d;font-size:.78rem}.master-privacy-card{border-left:5px solid #2f7d6d}.master-privacy-card li{margin-bottom:7px}.usage-analytics-grid .master-card{max-height:560px;overflow:auto}
@media(max-width:760px){.master-analytics-toolbar{display:grid;align-items:stretch}.master-analytics-toolbar label{width:100%;min-width:0;margin:0}.master-analytics-toolbar button{width:100%}.master-path-row{grid-template-columns:minmax(0,1fr) auto}.master-path-row span:nth-of-type(2){grid-column:1}.master-path-row b{grid-column:2;grid-row:2}.master-usage-day{grid-template-columns:85px minmax(70px,1fr) 58px}.usage-analytics-grid .master-card{max-height:none}}

.inventory-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.inventory-alert-card{border-color:#d77818!important;box-shadow:inset 0 0 0 1px #d77818!important}.inventory-header-actions,.inventory-record-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.inventory-filter-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,230px) minmax(150px,210px);gap:10px;margin:14px 0}.inventory-record-list,.inventory-request-list,.inventory-po-list{display:grid;gap:10px}.inventory-record,.inventory-request-card,.inventory-po-card,.inventory-location-card{min-width:0;padding:14px;border:1px solid var(--theme-border,#dce5eb);border-radius:12px;background:var(--theme-surface,#fff);color:var(--theme-text,#13233a)}.inventory-record.low-stock{border-left:5px solid #d77818}.inventory-record.archived,.inventory-location-card.archived{opacity:.72}.inventory-record-main{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.inventory-record-main>div{display:grid;gap:4px;min-width:0}.inventory-record-main strong,.inventory-location-card strong,.inventory-request-card strong{color:var(--theme-heading,#17365d)}.inventory-record-main small,.inventory-location-card span,.inventory-location-card small,.inventory-request-card small,.inventory-po-card small{color:var(--theme-muted,#687a8d)}.inventory-category{color:var(--theme-accent,#2f7d6d);font-size:.69rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.inventory-stock-value{flex:0 0 auto;text-align:right}.inventory-stock-value>span{font-size:.7rem;text-transform:uppercase}.inventory-stock-value>strong{font-size:1.25rem}.inventory-line-badges,.inventory-vendor-strip{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px}.inventory-line-badges>span,.inventory-vendor-strip>span{padding:6px 9px;border-radius:8px;background:var(--theme-accent-soft,#edf5f2);color:var(--theme-text,#17365d);font-size:.74rem}.inventory-line-badges>span{border:1px solid color-mix(in srgb,var(--theme-accent,#2f7d6d) 35%,transparent);font-weight:750}.inventory-record p,.inventory-request-card p,.inventory-po-card p{margin:10px 0;color:var(--theme-muted,#596d80)}.inventory-record-actions{margin-top:12px}.inventory-location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.inventory-location-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.inventory-location-card>div{display:grid;gap:3px}.inventory-location-card>small{grid-column:1}.inventory-location-card>button{grid-column:2;grid-row:1/3}.inventory-history,.inventory-line-summary{padding:0!important;overflow:hidden}.inventory-history summary,.inventory-line-summary summary,.inventory-assignment-list summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;cursor:pointer}.inventory-history summary span,.inventory-line-summary summary span,.inventory-assignment-list summary span{color:var(--theme-muted,#687a8d);font-size:.76rem}.inventory-line-summary summary>span:first-child{display:grid;gap:3px}.inventory-line-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 16px 16px;border-top:1px solid var(--theme-border,#e8edf2)}.inventory-line-summary-grid article{display:grid;gap:4px;padding:12px;border:1px solid var(--theme-border,#e8edf2);border-radius:10px;background:var(--theme-surface-soft,#f6f9fb)}.inventory-line-summary-grid span{color:var(--theme-muted,#687a8d);font-size:.75rem}.inventory-history-list{display:grid;padding:0 16px 16px;border-top:1px solid var(--theme-border,#e8edf2)}.inventory-history-list>div{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(150px,1fr) minmax(200px,1.25fr);gap:10px;padding:10px 0;border-bottom:1px solid var(--theme-border,#e8edf2)}.inventory-history-list span{color:var(--theme-muted,#687a8d);font-size:.76rem}.inventory-request-card>div:first-child{display:grid;gap:4px}.inventory-request-card .status-pill,.inventory-po-card .status-pill{width:max-content}.inventory-po-lines{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.inventory-po-lines>span{padding:6px 8px;border-radius:8px;background:var(--theme-accent-soft,#edf5f2);color:var(--theme-text,#17365d);font-size:.73rem}.inventory-dialog{width:min(900px,96vw);max-height:92vh;overflow:auto}.inventory-vendor-editor{margin-top:10px}.inventory-line-editor{margin-top:8px}.inventory-line-editor>p{margin:4px 0 10px;color:var(--theme-muted,#687a8d)}.inventory-line-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.inventory-po-line-grid{display:grid;gap:8px}.inventory-po-line-editor{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,.75fr) minmax(100px,.4fr) minmax(110px,.4fr);gap:8px}.inventory-loading,.inventory-error{padding:28px;text-align:center}.inventory-error{border-left:5px solid #b42318}.inventory-error p{overflow-wrap:anywhere}
@media(max-width:900px){.inventory-metrics,.inventory-line-summary-grid{grid-template-columns:1fr 1fr}.inventory-location-grid{grid-template-columns:1fr 1fr}.inventory-filter-row{grid-template-columns:1fr 1fr}.inventory-filter-row input{grid-column:1/-1}.inventory-history-list>div{grid-template-columns:1fr}.inventory-po-line-editor{grid-template-columns:1fr 1fr}.inventory-po-line-editor label:first-child{grid-column:1/-1}}
@media(max-width:620px){.inventory-metrics,.inventory-line-summary-grid,.inventory-location-grid,.inventory-filter-row,.inventory-line-checks{grid-template-columns:1fr}.inventory-filter-row input{grid-column:auto}.inventory-record-main{display:grid}.inventory-stock-value{text-align:left}.inventory-header-actions,.inventory-record-actions{display:grid;grid-template-columns:1fr;width:100%}.inventory-header-actions button,.inventory-record-actions button{width:100%}.inventory-location-card{grid-template-columns:1fr}.inventory-location-card>button{grid-column:1;grid-row:auto;width:100%}.inventory-po-line-editor{grid-template-columns:1fr}.inventory-po-line-editor label:first-child{grid-column:auto}.inventory-dialog{width:100%;max-width:100%;margin:0;max-height:100dvh;border-radius:0}.inventory-dialog .dialog-actions{display:grid;grid-template-columns:1fr}.inventory-dialog .dialog-actions button{width:100%}}
.estimate-inventory-list{display:grid;gap:10px}.estimate-inventory-row{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(190px,1.35fr) minmax(110px,.6fr) minmax(110px,.6fr) minmax(120px,.65fr) minmax(170px,1.1fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--theme-border,#dce5eb);border-radius:12px;background:var(--theme-surface,#fff)}.estimate-inventory-row label{margin:0}.estimate-inventory-row .danger{margin-bottom:1px}.work-order-inventory-list{display:grid;gap:8px}.inventory-assignment-list{margin-top:12px;border:1px solid var(--theme-border,#dce5eb);border-radius:10px;overflow:hidden}.inventory-assignment-list>.mobile-summary-row{margin:0;border-width:1px 0 0;border-radius:0}.inventory-location-card small{display:block;margin-top:4px}
@media(max-width:900px){.estimate-inventory-row{grid-template-columns:1fr 1fr}.estimate-inventory-row label:first-child,.estimate-inventory-row .estimate-inventory-notes{grid-column:1/-1}}
@media(max-width:620px){.estimate-inventory-row{grid-template-columns:1fr}.estimate-inventory-row label:first-child,.estimate-inventory-row .estimate-inventory-notes{grid-column:auto}.estimate-inventory-row .danger{width:100%}}

/* v5.7.0.8 Company data portability */
.data-portability-root{border-left:5px solid #2f7d6d}.data-portability-actions{display:flex;flex-wrap:wrap;gap:9px}.data-import-workspace{display:grid;gap:16px;margin-top:18px;padding:18px;border:1px solid #cddbe4;border-radius:13px;background:#f8fbfc}.data-import-workspace .dialog-head{padding:0}.data-import-workspace h4{margin:0;color:#17365d}.data-import-controls{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(300px,1.2fr);gap:14px}.data-import-controls label,.data-mapping-grid label{display:grid;gap:5px;min-width:0}.data-file-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid #b8d6cc;border-radius:10px;background:#eef8f4}.data-file-summary span{color:#60766e;font-size:.78rem}.data-mapping-header{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:4px 0 10px}.data-mapping-header h4{margin:0}.data-mapping-header p{margin:3px 0 0;color:#6c7d8e;font-size:.78rem}.data-mapping-header>span{color:#2f7d6d;font-size:.78rem;font-weight:800}.data-mapping-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.data-mapping-grid select{margin-top:0}.data-validation-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.data-validation-summary>div{display:grid;gap:5px;padding:13px;border-radius:10px;background:#edf7f3}.data-validation-summary span{color:#65776f;font-size:.75rem}.data-validation-summary strong{color:#1e6b53;font-size:1.5rem}.data-validation-summary .has-errors{background:#fff0ef}.data-validation-summary .has-errors strong{color:#a12d24}.data-validation-list{display:grid;gap:8px;max-height:480px;margin-top:12px;overflow:auto}.data-validation-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:start;padding:12px;border:1px solid #dfe7ed;border-radius:10px;background:#fff}.data-validation-row>div{display:grid;gap:3px;min-width:0}.data-validation-row span{color:#687b8d;font-size:.78rem;overflow-wrap:anywhere}.data-validation-row>p{grid-column:1/-1;margin:3px 0 0;color:#a12d24;font-size:.78rem;overflow-wrap:anywhere}.data-validation-row.duplicate{background:#fffaf0}.data-validation-row.error{border-color:#e2b8b4;background:#fff7f6}.data-migration-history{margin-top:14px}.data-migration-history summary{cursor:pointer;color:#17365d;font-weight:800}.data-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:12px}.data-history-grid h4{margin:0 0 8px}.data-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:11px 0;border-bottom:1px solid #e4eaef}.data-history-row>div{display:grid;gap:3px;min-width:0}.data-history-row span,.data-history-row small{color:#6b7d8e;font-size:.75rem;overflow-wrap:anywhere}.data-history-row>small{grid-column:1/-1}.data-import-workspace input[type="file"]{max-width:100%}
.data-export-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.data-export-options button{display:grid;gap:4px;min-width:0;text-align:left;white-space:normal}.data-export-options button strong{color:#17365d}.data-export-options button span{color:#65788a;font-size:.76rem;line-height:1.4}.data-export-options button:last-child{grid-column:1/-1}
@media(max-width:850px){.data-import-controls,.data-history-grid{grid-template-columns:1fr}.data-mapping-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.data-portability-actions,.data-export-options,.data-import-workspace .backup-actions,.data-import-workspace .dialog-actions{display:grid;grid-template-columns:1fr}.data-portability-actions button,.data-export-options button,.data-import-workspace .backup-actions button,.data-import-workspace .dialog-actions button{width:100%;min-width:0}.data-export-options button:last-child{grid-column:1}.data-import-workspace{padding:13px}.data-import-workspace .dialog-head{display:grid}.data-import-workspace .dialog-head button{width:100%}.data-mapping-grid,.data-validation-summary{grid-template-columns:1fr}.data-mapping-header,.data-file-summary{align-items:flex-start;flex-direction:column}.data-validation-row{grid-template-columns:minmax(0,1fr)}.data-validation-row>.status-pill{justify-self:start}.data-validation-row>p{grid-column:1}.data-history-grid{min-width:0}.data-history-row{grid-template-columns:minmax(0,1fr)}.data-history-row>.status-pill{justify-self:start}.data-history-row>small{grid-column:1}}

/* v5.7.0.9 multi-location Customer accounts */
.client-primary-location-heading,.client-location-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:16px 0 10px}.client-primary-location-heading{margin-top:0}.client-primary-location-heading h3,.client-location-editor-heading h3{margin:0;color:#17365d;font-size:1rem}.client-primary-location-heading p,.client-location-editor-heading p{margin:3px 0 0;color:#687b8e;font-size:.78rem}.client-locations-editor{display:grid;gap:12px;margin:0 0 16px}.client-location-card{min-width:0;padding:14px;border:1px solid #cfdbe5;border-radius:11px;background:#f8fbfc}.client-location-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.client-location-card-heading strong{color:#17365d}.client-location-card-heading button{padding:7px 10px}.client-location-card textarea{min-width:0;resize:vertical}.client-location-count{display:block;margin-top:3px;color:#2f7d6d;font-size:.7rem;font-weight:800}.client-location-workspace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.client-location-workspace-card{min-width:0;padding:14px;border:1px solid #dce6ee;border-radius:11px;background:#f9fbfc}.client-location-workspace-card>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.client-location-workspace-card p{margin:8px 0;color:#344b61;overflow-wrap:anywhere}.client-location-workspace-card small{color:#6b7d8e;overflow-wrap:anywhere}#estimateLocationLabel select:disabled{background:#eef2f5;color:#6d7d8c}
@media(max-width:760px){.client-location-editor-heading{display:grid}.client-location-editor-heading button{width:100%}.client-location-workspace-grid{grid-template-columns:1fr}.client-location-card .form-grid{grid-template-columns:1fr}.client-primary-location-heading{display:grid}}

/* v5.7.0.10 tenant cache isolation and multi-file imports */
.data-input-help{display:block;margin-top:5px;color:#687b8e;font-size:.72rem;line-height:1.4}.data-file-summary.multi-file{display:grid;align-items:stretch}.data-file-summary.multi-file>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.data-file-summary.multi-file ul{display:grid;gap:6px;margin:10px 0 0;padding:10px 0 0;border-top:1px solid #cfe1da;list-style:none}.data-file-summary.multi-file li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.data-file-summary.multi-file li span{min-width:0;overflow-wrap:anywhere}.data-file-summary.multi-file li strong{flex:0 0 auto;color:#2f6f5d;font-size:.75rem}
@media(max-width:560px){.data-file-summary.multi-file>div,.data-file-summary.multi-file li{align-items:flex-start;flex-direction:column}.data-file-summary.multi-file li{gap:3px}}

/* v5.7.0.11 atomic Company migration batches */
.company-migration-files,.company-migration-validation{display:grid;gap:14px}.company-migration-file,.company-migration-result{min-width:0;padding:15px;border:1px solid #d7e2e9;border-radius:12px;background:#fff}.company-migration-result.has-errors{border-color:#e2b8b4;background:#fffafa}.company-migration-file-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}.company-migration-file-head>div{display:grid;gap:4px;min-width:0}.company-migration-file-head strong,.company-migration-file-head span{overflow-wrap:anywhere}.company-migration-file-head>div>span{color:#687b8e;font-size:.76rem}.company-migration-file-head label{display:grid;flex:0 1 290px;gap:5px;min-width:210px}.company-migration-file .data-mapping-grid{padding-top:12px;border-top:1px solid #e4ebf0}.company-migration-result .data-validation-list{max-height:340px}.company-migration-result+.company-migration-result{margin-top:0}
@media(max-width:680px){.company-migration-file-head{display:grid}.company-migration-file-head label{min-width:0;width:100%}.company-migration-file .data-mapping-grid{grid-template-columns:1fr}.company-migration-file,.company-migration-result{padding:12px;overflow:hidden}.company-migration-file select,.company-migration-file input{min-width:0;max-width:100%}}

/* v5.7.0.12 secure public first paint and purpose-specific data portability */

/* v5.8.0 structured walkthrough estimating */
.estimate-workload-section{min-width:0;overflow:hidden}.estimate-workload-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.estimate-workload-list{display:grid;gap:14px;min-width:0}.estimate-area-row,.estimate-task-row{min-width:0;padding:15px;border:1px solid #d8e3ea;border-radius:12px;background:#f9fbfc}.estimate-row-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.estimate-row-heading>div{display:grid;gap:3px;min-width:0}.estimate-row-heading span{color:#687b8e;font-size:.76rem}.estimate-area-grid,.estimate-task-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.estimate-area-grid label,.estimate-task-grid label{display:grid;align-content:start;gap:5px;min-width:0}.estimate-area-grid .wide,.estimate-task-grid .wide{grid-column:span 2}.estimate-area-grid input,.estimate-area-grid select,.estimate-area-grid textarea,.estimate-task-grid input,.estimate-task-grid select,.estimate-task-grid textarea{width:100%;min-width:0;max-width:100%}.estimate-workload-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:12px 14px;border-left:4px solid #2f7d6d;border-radius:9px;background:#eef7f4}.estimate-workload-summary span{color:#5f746e;font-size:.8rem;overflow-wrap:anywhere}.estimate-task-grid .checkbox-line{display:flex;align-items:center;align-self:end;min-height:42px}.estimate-task-grid .checkbox-line input{width:auto}.estimate-locked .estimate-area-row,.estimate-locked .estimate-task-row{background:#eef1f3}
@media(max-width:1000px){.estimate-area-grid,.estimate-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.estimate-workload-section .section-header,.estimate-row-heading,.estimate-workload-summary{display:grid;align-items:stretch}.estimate-workload-actions{display:grid;grid-template-columns:1fr}.estimate-workload-actions button,.estimate-row-heading button{width:100%;min-width:0}.estimate-area-grid,.estimate-task-grid{grid-template-columns:minmax(0,1fr)}.estimate-area-grid .wide,.estimate-task-grid .wide{grid-column:auto}.estimate-area-row,.estimate-task-row{padding:12px;overflow:hidden}.estimate-task-grid .checkbox-line{align-self:auto}.estimate-workload-summary{overflow-wrap:anywhere}}
.estimate-internal-pricing{border-color:#bfd3e5;background:#f8fbfe}
.estimate-costing-controls{align-items:start}
.estimate-costing-controls small{display:block;margin-top:5px;color:#60758b;line-height:1.35}
.estimate-crew-cost-rows{display:grid;gap:10px;margin-top:10px}
.estimate-crew-cost-row{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(130px,1fr) repeat(5,minmax(92px,.72fr)) auto;gap:8px;align-items:end;padding:12px;border:1px solid #d7e3ee;border-radius:12px;background:#fff}
.estimate-crew-cost-row label{min-width:0;font-size:12px;color:#50677d}
.estimate-crew-cost-row input,.estimate-crew-cost-row select{width:100%;min-width:0;margin-top:4px}
.estimate-crew-cost-row .crew-loaded-rate{display:flex;min-height:40px;align-items:center;font-weight:800;color:#123b62}
.estimate-cost-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.estimate-cost-breakdown>div{display:flex;justify-content:space-between;gap:10px;padding:12px;border:1px solid #d7e3ee;border-radius:10px;background:#fff}
.estimate-pricing-guardrail{margin-top:12px;padding:12px;border-radius:10px;border:1px solid #b7d8cb;background:#edf8f4;color:#164d3d}
.estimate-pricing-guardrail.guardrail-required{border-color:#efab9f;background:#fff3f1;color:#9a2718}
.estimate-pricing-guardrail.guardrail-approved{border-color:#8ac7a7;background:#ebf8f1;color:#13623e}
.estimate-frequency-comparison table{min-width:720px}
.estimate-frequency-comparison .selected-frequency-row{background:#edf7ff;font-weight:700}
@media(max-width:1100px){.estimate-crew-cost-row{grid-template-columns:repeat(4,minmax(0,1fr))}.estimate-crew-cost-row .crew-remove{align-self:end}}
@media(max-width:700px){.estimate-crew-cost-row{grid-template-columns:1fr 1fr;padding:10px}.estimate-crew-cost-row label:first-child,.estimate-crew-cost-row label:nth-child(2),.estimate-crew-cost-row .crew-remove{grid-column:1/-1}.estimate-cost-breakdown{grid-template-columns:1fr}.estimate-frequency-comparison .desktop-data-table{display:none}.estimate-frequency-comparison .mobile-data-cards{display:grid}}
html[data-resolved-theme] .estimate-area-row,html[data-resolved-theme] .estimate-task-row,html[data-resolved-theme] .estimate-internal-pricing,html[data-resolved-theme] .estimate-crew-cost-row,html[data-resolved-theme] .estimate-cost-breakdown>div,html[data-resolved-theme] .labor-adjustment-history,html[data-resolved-theme] .checklist-row,html[data-resolved-theme] .customer-portal-request-card,html[data-resolved-theme] .document-video-editor{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme] .estimate-workload-summary,html[data-resolved-theme] .customer-portal-response,html[data-resolved-theme] .access-instructions-callout,html[data-resolved-theme] .customer-portal-migration-stage{background:var(--theme-surface-muted)!important;color:var(--theme-text)!important;border-color:var(--theme-accent)!important}
html[data-resolved-theme] .estimate-row-heading span,html[data-resolved-theme] .estimate-workload-summary span,html[data-resolved-theme] .estimate-costing-controls small,html[data-resolved-theme] .estimate-crew-cost-row label,html[data-resolved-theme] .chart-subtitle,html[data-resolved-theme] .chart-legend-row small{color:var(--theme-muted)!important}
html[data-resolved-theme] .estimate-crew-cost-row .crew-loaded-rate,html[data-resolved-theme] .qc-score-display,html[data-resolved-theme] .labor-time-comparison strong,html[data-resolved-theme] .labor-adjustment-summary strong{color:var(--theme-heading)!important}
html[data-resolved-theme="dark"] .estimate-locked .estimate-area-row,html[data-resolved-theme="dark"] .estimate-locked .estimate-task-row{background:var(--theme-surface-muted)!important}

/* v5.9.0 multi-Line-of-Business estimating and compact Company dashboard */
.estimate-client-grid{grid-template-columns:minmax(0,1fr)}
.estimate-lob-selector{margin-bottom:14px}.estimate-lob-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.estimate-lob-choices>label{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:13px;border:1px solid #cad9e5;border-radius:11px;background:#f8fbfd;cursor:pointer}.estimate-lob-choices input{width:18px;min-width:18px;height:18px;margin:2px 0 0}.estimate-lob-choices span{display:grid;gap:3px;min-width:0}.estimate-lob-choices strong{color:#17365d}.estimate-lob-choices small{color:#65788b;line-height:1.35}.estimate-lob-builders{display:grid;gap:12px;margin:16px 0}.estimate-lob-builder{min-width:0;border:1px solid #cddbe6;border-radius:12px;background:#fff;overflow:hidden}.estimate-lob-builder>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;cursor:pointer;list-style:none}.estimate-lob-builder>summary::-webkit-details-marker{display:none}.estimate-lob-builder>summary>span{display:grid;gap:3px}.estimate-lob-builder>summary>span:last-child{display:block;color:#2f6f5d;font-size:.76rem;font-weight:800}.estimate-lob-builder>summary small{color:#687b8e}.estimate-lob-builder[open]>summary{border-bottom:1px solid #dce5ec;background:#f2f7fa}.estimate-lob-content{display:grid;gap:14px;padding:16px;min-width:0}.estimate-lob-content>.box{margin:0;box-shadow:none}.estimate-lob-guidance{padding:11px 13px;border-left:4px solid #2f7d6d;border-radius:8px;background:#eef7f4;color:#425f58;font-size:.82rem}.estimate-lob-rows{display:grid;gap:12px}.estimate-lob-row{min-width:0;padding:14px;border:1px solid #d8e3ea;border-radius:11px;background:#f9fbfc}.estimate-lob-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.estimate-lob-grid label{display:grid;align-content:start;gap:4px;min-width:0}.estimate-lob-grid .wide{grid-column:span 2}.estimate-lob-grid input,.estimate-lob-grid select,.estimate-lob-grid textarea{min-width:0;max-width:100%;width:100%}.estimate-response-link{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;margin:0 0 16px;color:#17365d;text-align:left}.estimate-response-link>span:first-child{display:grid;gap:3px}.estimate-response-link small{color:#65788b;font-weight:600}.estimate-response-count{display:flex;align-items:baseline;gap:6px;white-space:nowrap}.estimate-response-count strong{font-size:1.25rem}.estimate-task-row.collapsed .estimate-task-grid{display:none}.estimate-task-row.collapsed{padding-bottom:3px}.estimate-task-row .estimate-row-heading[role="button"]{cursor:pointer}.estimate-task-row .estimate-row-heading[role="button"]:focus-visible{outline:3px solid #78aeda;outline-offset:3px}.dashboard-action-card.issue-level-zero{border:3px solid #2f8a61!important}.dashboard-action-card.issue-level-warning{border:3px solid #d7a919!important}.dashboard-action-card.issue-level-critical{border:3px solid #c43a31!important}.financial-cards .card{min-height:0!important;padding-top:11px!important;padding-bottom:11px!important;grid-template-rows:minmax(2.6em,auto) auto!important}.financial-cards .card>strong{margin-top:3px}.client-desktop-table th,.client-desktop-table td{vertical-align:middle}.client-desktop-table td.actions{display:table-cell;white-space:nowrap}.client-desktop-table td.actions button{display:inline-flex;align-items:center;justify-content:center;margin:0 2px;vertical-align:middle}.dashboard-threshold-form{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:12px;align-items:end}.dashboard-threshold-form .wide{grid-column:1/-1}.dashboard-threshold-preview{display:flex;gap:8px;flex-wrap:wrap}.dashboard-threshold-preview span{padding:5px 9px;border-radius:999px;font-size:.74rem;font-weight:800}.dashboard-threshold-preview .zero{background:#e6f5ed;color:#246b4d}.dashboard-threshold-preview .warning{background:#fff4cd;color:#795b00}.dashboard-threshold-preview .critical{background:#fee9e7;color:#9b2d26}
.detailing-addons{margin-top:14px;border:1px solid #d8e3ea;border-radius:10px;background:#fff;overflow:hidden}.detailing-addons>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}.detailing-addons>summary::-webkit-details-marker{display:none}.detailing-addons>summary>span{display:grid;gap:2px}.detailing-addons>summary>span:last-child{display:block;color:#2f6f5d;font-size:.74rem;font-weight:800}.detailing-addon-list{display:grid;gap:0;border-top:1px solid #d8e3ea}.detailing-addon-row{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(130px,.65fr) minmax(130px,.65fr);gap:10px;align-items:end;padding:10px 14px;border-bottom:1px solid #e2e9ee}.detailing-addon-row:last-child{border-bottom:0}.detailing-addon-row>label{display:grid;gap:4px;min-width:0}.detailing-addon-row .checkbox-line{display:flex;align-items:flex-start}.detailing-addon-row input{min-width:0;width:100%}.detailing-addon-row .checkbox-line input{width:18px;min-width:18px}.detailing-custom-addon{padding:12px 14px;border-top:1px solid #d8e3ea}.detailing-line-summary{display:flex;justify-content:flex-end;gap:18px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border-radius:9px;background:#eaf4fa;color:#17365d}.detailing-line-summary span{display:flex;align-items:baseline;gap:6px}.detailing-line-summary strong{font-size:1rem}
html[data-resolved-theme] .estimate-lob-selector,html[data-resolved-theme] .estimate-lob-builder,html[data-resolved-theme] .estimate-lob-row,html[data-resolved-theme] .estimate-lob-choices>label,html[data-resolved-theme] .estimate-response-link,html[data-resolved-theme] .detailing-addons{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}html[data-resolved-theme] .estimate-lob-builder[open]>summary,html[data-resolved-theme] .estimate-lob-guidance,html[data-resolved-theme] .detailing-line-summary{background:var(--theme-surface-muted)!important;color:var(--theme-text)!important}html[data-resolved-theme] .estimate-lob-choices strong,html[data-resolved-theme] .estimate-response-link{color:var(--theme-heading)!important}html[data-resolved-theme] .estimate-lob-choices small,html[data-resolved-theme] .estimate-lob-builder summary small,html[data-resolved-theme] .estimate-response-link small{color:var(--theme-muted)!important}html[data-resolved-theme] .detailing-addon-list,html[data-resolved-theme] .detailing-addon-row,html[data-resolved-theme] .detailing-custom-addon{border-color:var(--theme-border)!important}
@media(max-width:1000px){.estimate-lob-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detailing-addon-row{grid-template-columns:minmax(220px,1.3fr) minmax(120px,.7fr) minmax(120px,.7fr)}}
@media(max-width:700px){.estimate-lob-choices,.estimate-lob-grid,.dashboard-threshold-form,.detailing-addon-row{grid-template-columns:minmax(0,1fr)}.estimate-lob-grid .wide,.dashboard-threshold-form .wide{grid-column:auto}.estimate-lob-builder>summary,.estimate-response-link,.detailing-addons>summary{align-items:flex-start;flex-direction:column}.estimate-response-count{align-self:flex-start}.estimate-lob-content{padding:12px}.estimate-lob-row{padding:11px;overflow:hidden}.detailing-addon-row{align-items:stretch}.detailing-line-summary{justify-content:flex-start}.detailing-line-summary span{width:100%;justify-content:space-between}}

/* v5.8.1.6 App Settings placement and theme contrast refinements */
html[data-resolved-theme] .sidebar-logo-panel{background:var(--theme-header)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme="dark"] .topbar,html[data-resolved-theme="dark"] .sidebar-logo-panel,html[data-resolved-theme="dark"] .master-header,html[data-resolved-theme="dark"] .customer-portal-header{background:var(--theme-header)!important;color:var(--theme-heading)!important}
html[data-resolved-theme] .primary-nav-item,html[data-resolved-theme] .primary-nav-item:hover,html[data-resolved-theme] .primary-nav-item.active,html[data-resolved-theme] .master-sidebar button,html[data-resolved-theme] .master-sidebar button:hover,html[data-resolved-theme] .master-sidebar button.active{background:transparent!important;color:#edf5f8!important;box-shadow:none!important}
html[data-resolved-theme] .primary-nav-item.active,html[data-resolved-theme] .master-sidebar button.active{border-left:4px solid var(--theme-accent);padding-left:8px;font-weight:800}
html[data-resolved-theme="dark"] .topbar button.secondary,html[data-resolved-theme="dark"] .master-header button.secondary,html[data-resolved-theme="dark"] .customer-portal-header button.secondary{background:var(--theme-control)!important;color:var(--theme-heading)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme="dark"] .version-badge{background:var(--theme-control)!important;color:var(--theme-accent)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme="dark"] th,html[data-resolved-theme="dark"] td,html[data-resolved-theme="dark"] table strong,html[data-resolved-theme="dark"] .business-intelligence-section h2,html[data-resolved-theme="dark"] .business-intelligence-section h3,html[data-resolved-theme="dark"] .business-intelligence-section p,html[data-resolved-theme="dark"] .business-intelligence-section small,html[data-resolved-theme="dark"] .bi-capacity-meter span,html[data-resolved-theme="dark"] .bi-capacity-meter strong,html[data-resolved-theme="dark"] .bi-capacity-details dd,html[data-resolved-theme="dark"] .chart-legend-row strong{color:var(--theme-text)!important}
html[data-resolved-theme="dark"] th,html[data-resolved-theme="dark"] .bi-capacity-details dt,html[data-resolved-theme="dark"] .bi-capacity-meter p{color:var(--theme-muted)!important}
html[data-resolved-theme] .bi-capacity-details>div,html[data-resolved-theme] .mobile-list-card,html[data-resolved-theme] .mobile-summary-row{background:var(--theme-surface-muted)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme="dark"] .capacity-bar,html[data-resolved-theme="dark"] .mini-capacity{background:var(--theme-chart-track)!important}
.experience-settings-card{max-width:1040px;margin:0 auto}.experience-settings-card .section-header p{margin:4px 0 0;color:var(--theme-muted,#687a8d)}.experience-settings-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:2px}.experience-settings-actions button{min-width:150px}.experience-theme-form{margin-top:0}
.document-review-alert{display:grid;width:100%;gap:12px;margin:0 0 16px;padding:15px 18px;background:var(--theme-warning-bg,#fff0c7)!important;color:var(--theme-warning-text,#795c00)!important;border:1px solid currentColor;border-left:5px solid currentColor;border-radius:12px}.document-review-alert-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.document-review-alert-heading span{display:flex;align-items:center;gap:8px;font-weight:800}.document-review-alert-heading span strong{margin:0;font-size:1.35rem}.document-review-alert small{color:inherit!important;line-height:1.4}.document-review-alert-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.document-review-alert-list button{display:grid;gap:4px;min-width:0;padding:10px 12px;text-align:left;background:var(--theme-surface,#fff)!important;color:var(--theme-heading,#17365d)!important;border:1px solid var(--theme-border,#dce5eb)}.document-review-alert-list button strong,.document-review-alert-list button span{min-width:0;overflow-wrap:anywhere}.document-review-alert-list button span{color:var(--theme-muted,#687a8d);font-size:.75rem}
@media(max-width:760px){.experience-settings-actions{display:grid;grid-template-columns:1fr}.experience-settings-actions button{width:100%}.document-review-alert-heading{align-items:flex-start;flex-direction:column}.document-review-alert-list{grid-template-columns:1fr}}

/* v5.8.1.7 unified header brand, active navigation, and coordinated charts */
.header-logo-lockup{display:grid;flex:0 0 124px;width:124px;justify-items:center;align-content:center;gap:2px;color:#002d54}
.header-logo-icon-crop{display:block;width:86px;height:66px;overflow:hidden}
.header-logo-icon-crop img{display:block!important;width:86px!important;height:86px!important;max-height:none!important;object-fit:contain;transform:translateY(-4px)}
.header-logo-wordmark{font-size:.83rem;font-weight:800;line-height:1;letter-spacing:.055em;text-transform:uppercase;white-space:nowrap}
html[data-resolved-theme="dark"] .header-logo-wordmark{color:#fff}
html[data-resolved-theme="light"] .header-logo-wordmark{color:#002d54}
html[data-resolved-theme] .primary-nav-item,html[data-resolved-theme] .primary-nav-item:hover,html[data-resolved-theme] .master-sidebar button,html[data-resolved-theme] .master-sidebar button:hover{background:transparent!important;color:#edf5f8!important;box-shadow:none!important;border-left:0;padding-left:12px}
html[data-resolved-theme] .primary-nav-item.active,html[data-resolved-theme] .master-sidebar button.active{background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;box-shadow:0 5px 14px rgba(0,0,0,.16)!important;border-left:0;padding-left:12px;font-weight:800}
html[data-color-theme="classic"]{--theme-chart-1:#2a9d8f;--theme-chart-2:#457b9d;--theme-chart-3:#e76f51;--theme-chart-4:#e9c46a;--theme-chart-5:#f4a261;--theme-chart-6:#8d99ae;--theme-chart-track:#a8dadc}
html[data-color-theme="evergreen"]{--theme-chart-1:#588157;--theme-chart-2:#3a5a40;--theme-chart-3:#bc6c25;--theme-chart-4:#dda15e;--theme-chart-5:#a3b18a;--theme-chart-6:#7f4f24;--theme-chart-track:#b7c4a4}
html[data-color-theme="plum"]{--theme-chart-1:#56cfe1;--theme-chart-2:#6d597a;--theme-chart-3:#e56b6f;--theme-chart-4:#eaac8b;--theme-chart-5:#b56576;--theme-chart-6:#355070;--theme-chart-track:#9b8aa3}
html[data-resolved-theme="dark"]{--theme-chart-border:transparent}

/* v5.8.1.9 saved-theme boundaries, semantic contrast, lead pipeline, and theme logos */
.themed-header-logo{position:relative;display:block;flex:0 0 124px;width:124px;height:92px;overflow:hidden}
.themed-header-logo img{position:absolute;display:block;max-width:none!important;max-height:none!important;object-fit:fill}
.themed-header-logo .theme-logo-light{left:-7px;top:-29px;width:138px!important;height:149px!important}
.themed-header-logo .theme-logo-dark{left:-14px;top:-27px;width:152px!important;height:146px!important}
.theme-logo-dark{display:none!important}
html[data-resolved-theme="dark"] .theme-logo-light{display:none!important}
html[data-resolved-theme="dark"] .theme-logo-dark{display:block!important}
html[data-resolved-theme="light"] .themed-header-logo .theme-logo-light{display:block!important;visibility:visible!important;opacity:1!important}
html[data-resolved-theme="light"] .themed-header-logo .theme-logo-dark{display:none!important}
.master-brand>.themed-header-logo,.customer-portal-brand>.themed-header-logo{flex-basis:124px;width:124px;height:92px}
.master-brand>.themed-header-logo img,.customer-portal-brand>.themed-header-logo img{max-width:none!important;max-height:none!important}
html[data-resolved-theme] .client-activity-card,html[data-resolved-theme] .dashboard-action-card,html[data-resolved-theme] .data-export-options button,html[data-resolved-theme] .customer-request-alert-list button{background:var(--theme-surface-muted)!important;color:var(--theme-heading)!important;border:1px solid var(--theme-border)!important;box-shadow:none}
html[data-resolved-theme] .dashboard-action-card.issue-level-zero{border:3px solid #2f8a61!important}
html[data-resolved-theme] .dashboard-action-card.issue-level-warning{border:3px solid #d7a919!important}
html[data-resolved-theme] .dashboard-action-card.issue-level-critical{border:3px solid #c43a31!important}
html[data-resolved-theme] .client-activity-card strong,html[data-resolved-theme] .dashboard-action-card strong,html[data-resolved-theme] .data-export-options button strong,html[data-resolved-theme] .customer-request-alert-list button strong{color:var(--theme-heading)!important}
html[data-resolved-theme] .client-activity-card span,html[data-resolved-theme] .dashboard-action-card small,html[data-resolved-theme] .data-export-options button span,html[data-resolved-theme] .customer-request-alert-list button span,html[data-resolved-theme] .customer-request-alert-list button small,html[data-resolved-theme] .customer-portal-kpis span{color:var(--theme-muted)!important}
html[data-resolved-theme] .customer-portal-kpis strong{color:var(--theme-heading)!important}
html[data-resolved-theme] button:disabled{opacity:.58;cursor:not-allowed}
.lead-list{display:grid;gap:8px}.lead-list-header,.lead-record{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(160px,.7fr) minmax(130px,.55fr) minmax(250px,auto);gap:16px;align-items:center}.lead-list-header{padding:0 14px;color:#65748b;font-size:.7rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.lead-record{width:100%}.lead-value,.lead-status{display:flex;align-items:center;min-width:0}.lead-value strong{font-variant-numeric:tabular-nums;text-align:right}.lead-estimate-required{color:#a12d24!important;font-weight:700}.lead-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}.lead-actions button{white-space:nowrap}
html[data-resolved-theme] .lead-list-header{color:var(--theme-muted)}
html[data-resolved-theme] .lead-record{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme] .lead-record span,html[data-resolved-theme] .lead-record small{color:var(--theme-muted)}
html[data-resolved-theme] .lead-estimate-required{color:var(--theme-danger-text)!important}
@media(max-width:900px){.lead-list-header{display:none}.lead-record{grid-template-columns:minmax(0,1fr) auto}.lead-value{justify-content:flex-end}.lead-status{grid-column:1}.lead-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.lead-actions button{width:100%;white-space:normal}}
@media(max-width:520px){.themed-header-logo,.master-brand>.themed-header-logo,.customer-portal-brand>.themed-header-logo{flex-basis:96px;width:96px;height:76px}.themed-header-logo .theme-logo-light,.master-brand>.themed-header-logo .theme-logo-light,.customer-portal-brand>.themed-header-logo .theme-logo-light{left:-5px;top:-24px;width:114px!important;height:123px!important}.themed-header-logo .theme-logo-dark,.master-brand>.themed-header-logo .theme-logo-dark,.customer-portal-brand>.themed-header-logo .theme-logo-dark{left:-11px;top:-22px;width:125px!important;height:120px!important}.lead-record{grid-template-columns:1fr}.lead-value,.lead-status{justify-content:flex-start;grid-column:1}.lead-actions{grid-template-columns:1fr}}
@media(min-width:901px){
 .topbar{margin-left:0}
 .topbar>.brand .header-logo-lockup{display:grid}
 .app-sidebar{inset:var(--app-header-height) auto 0 0;height:calc(100vh - var(--app-header-height));height:calc(100dvh - var(--app-header-height))}
}
@media(max-width:900px){.header-logo-lockup{flex-basis:92px;width:92px}.header-logo-icon-crop{width:62px;height:48px}.header-logo-icon-crop img{width:62px!important;height:62px!important}.header-logo-wordmark{font-size:.65rem}}

/* v5.9.0.1 estimate workflow, naming, and dark-mode readability */
.estimate-client-disclosure{margin-bottom:14px}.estimate-disclosure{padding:0;overflow:hidden}.estimate-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;cursor:pointer;list-style:none}.estimate-disclosure>summary::-webkit-details-marker{display:none}.estimate-disclosure>summary>span:first-child{display:grid;gap:4px}.estimate-disclosure>summary>span:last-child{color:#2f6f5d;font-size:.76rem;font-weight:800;white-space:nowrap}.estimate-disclosure>summary small{color:#65788b;font-weight:600}.estimate-disclosure[open]>summary{background:#f2f7fa;border-bottom:1px solid #dce5ec}.estimate-disclosure-content{padding:16px 18px}.estimate-disclosure-content.form-grid{display:grid}.estimate-draft-mode-note{align-self:center;color:#586d82;font-size:.82rem;font-weight:800;white-space:nowrap}.company-naming-settings{display:grid;align-content:start;gap:12px}.company-naming-settings label{display:grid;gap:5px}.company-naming-settings small{color:#65788b}.naming-preview{display:grid;gap:3px;padding:10px 12px;background:#f3f7fa;border:1px solid #dce5ec;border-radius:9px}.naming-preview span{color:#65788b;font-size:.7rem;font-weight:800;text-transform:uppercase}.naming-preview strong{overflow-wrap:anywhere;color:#17365d}
html[data-resolved-theme] .estimate-disclosure,html[data-resolved-theme] .naming-preview{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}html[data-resolved-theme] .estimate-disclosure[open]>summary,html[data-resolved-theme] .naming-preview{background:var(--theme-surface-muted)!important}html[data-resolved-theme] .estimate-disclosure>summary strong,html[data-resolved-theme] .naming-preview strong{color:var(--theme-heading)!important}html[data-resolved-theme] .estimate-disclosure>summary small,html[data-resolved-theme] .company-naming-settings small,html[data-resolved-theme] .naming-preview span,html[data-resolved-theme] .estimate-draft-mode-note{color:var(--theme-muted)!important}
html[data-resolved-theme="dark"] .result-box .result-row.total{background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;border-color:transparent!important}html[data-resolved-theme="dark"] .result-box .result-row.total span,html[data-resolved-theme="dark"] .result-box .result-row.total strong{color:var(--theme-on-primary)!important}
@media(max-width:760px){.estimate-disclosure>summary{align-items:flex-start;flex-direction:column}.estimate-disclosure>summary>span:last-child{white-space:normal}.estimate-workflow-actions{align-items:stretch}.estimate-draft-mode-note{width:100%;text-align:right}}

/* v5.8.1.8 controlled sign-in appearance and persistent mobile headers */
html[data-resolved-theme] body.auth-locked{background:#eef4fa!important;color:#172033!important}
html[data-resolved-theme] body.auth-locked .auth-gate{background:linear-gradient(145deg,#eef4fa,#f7fbf9)!important;color:#172033!important}
html[data-resolved-theme] body.auth-locked .auth-card{background:#fff!important;color:#172033!important;border-color:#dbe4ee!important;box-shadow:0 20px 60px rgba(23,54,93,.18)!important}
html[data-resolved-theme] body.auth-locked .auth-card h1,html[data-resolved-theme] body.auth-locked .auth-card h2,html[data-resolved-theme] body.auth-locked .auth-card label,html[data-resolved-theme] body.auth-locked .workspace-preview strong{color:#17365d!important}
html[data-resolved-theme] body.auth-locked .auth-subtitle,html[data-resolved-theme] body.auth-locked .auth-message,html[data-resolved-theme] body.auth-locked .workspace-preview span{color:#65748b!important}
html[data-resolved-theme] body.auth-locked .auth-card input,html[data-resolved-theme] body.auth-locked .auth-card select,html[data-resolved-theme] body.auth-locked .auth-card textarea{background:#fff!important;color:#172033!important;border-color:#cbd6e3!important;-webkit-text-fill-color:#172033!important}
html[data-resolved-theme] body.auth-locked .auth-card input::placeholder,html[data-resolved-theme] body.auth-locked .auth-card textarea::placeholder{color:#7b8795!important;opacity:1}
html[data-resolved-theme] body.auth-locked .auth-card input:focus,html[data-resolved-theme] body.auth-locked .auth-card select:focus,html[data-resolved-theme] body.auth-locked .auth-card textarea:focus{outline:0!important;border-color:#1f6fb2!important;box-shadow:0 0 0 3px rgba(31,111,178,.22)!important}
html[data-resolved-theme] body.auth-locked .auth-card button:not(.secondary):not(.danger){background:#1f6fb2!important;color:#fff!important}
html[data-resolved-theme] body.auth-locked .auth-card button.secondary{background:#e7eef7!important;color:#17365d!important;border-color:#d6e0eb!important}
html[data-resolved-theme] body.auth-locked .auth-card .security-note,html[data-resolved-theme] body.auth-locked .workspace-preview{background:#f6f9fc!important;color:#53627a!important;border-color:#e0e8f0!important}
html[data-resolved-theme] body.auth-locked .auth-message.error{color:#a12d24!important}
html[data-resolved-theme] body.auth-locked .auth-message.success{color:#216b4f!important}
html[data-resolved-theme] body.auth-locked .auth-card button.auth-return-link{background:#e8f0f8!important;color:#17365d!important;border-color:#c8d7e6!important;box-shadow:0 2px 6px rgba(23,54,93,.08)!important}
.estimate-lifecycle-actions{margin:12px 0;justify-content:flex-start}
.estimate-lifecycle-timeline{display:grid;gap:8px;margin-top:14px}
.estimate-lifecycle-timeline>div:not(.empty){display:grid;grid-template-columns:minmax(150px,.6fr) minmax(140px,.55fr) minmax(220px,1.5fr);gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--border,#d7e1eb);border-radius:9px;background:var(--surface-soft,#f6f9fc)}
.estimate-lifecycle-timeline span,.estimate-lifecycle-timeline small{color:var(--muted,#617487)}
.estimate-lifecycle-timeline strong{color:var(--text,#17365d)}
.invoice-status.internal_review,.invoice-status.approved_to_send,.invoice-status.revised{background:var(--surface-soft,#e7eef7);color:var(--text,#17365d)}
@media(max-width:700px){.estimate-lifecycle-timeline>div:not(.empty){grid-template-columns:1fr}.estimate-lifecycle-actions>*{width:100%}}
@media(max-width:1050px){.master-header{position:-webkit-sticky;position:sticky;top:0;z-index:60}.master-sidebar{position:relative;top:auto;z-index:auto}}
@media(max-width:900px){
 #internalAppShell>.topbar{position:-webkit-sticky;position:sticky;top:0;z-index:60}
 .customer-portal-header{position:-webkit-sticky;position:sticky;top:0;z-index:60}
 .customer-portal-nav{position:relative;top:auto;z-index:auto}
}
/* v5.9.1 Commercial Readiness */
.package-capability-grid{border:1px solid var(--border,#cbd8e5);border-radius:12px;padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.package-capability-grid legend{font-weight:800;padding:0 6px}
.package-capability-grid .checkbox-line{align-items:flex-start;margin:0;padding:10px;border:1px solid var(--border,#d8e2ec);border-radius:10px}
.package-capability-grid .checkbox-line span{display:grid;gap:3px}
.package-capability-grid .checkbox-line small{font-weight:400}
.calendar-note.error{color:#b42318}
@media(max-width:720px){.package-capability-grid{grid-template-columns:1fr}.package-capability-grid .checkbox-line{min-width:0}}

/* v5.9.2 release safety gate */
.release-safety-card{grid-column:1/-1}.release-safety-card input,.release-safety-card select,.release-safety-card textarea{min-width:0;max-width:100%}.release-gate-badge{align-self:flex-start;border:1px solid;border-radius:999px;padding:7px 11px;font-size:.75rem;font-weight:800;text-transform:uppercase}.release-gate-badge.ready{background:#e5f6ee;border-color:#7bc5a4;color:#176440}.release-gate-badge.blocked{background:#fff0ef;border-color:#e3a09a;color:#9f2821}.release-safety-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.release-safety-columns>div{min-width:0}.release-safety-checks{display:grid;gap:7px}.release-safety-check{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:7px;padding:8px 10px;border:1px solid #dbe5ec;border-radius:8px;background:#f7fafc}.release-safety-check span{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;font-weight:900}.release-safety-check.passed span{background:#daf2e7;color:#176440}.release-safety-check.failed span{background:#fde0dd;color:#9f2821}.release-safety-details{margin-top:14px;border:1px solid #dbe5ec;border-radius:10px;overflow:hidden}.release-safety-details>summary{padding:13px 15px;cursor:pointer;font-weight:800}.release-safety-details[open]>summary{border-bottom:1px solid #dbe5ec;background:#f3f7fa}.release-safety-details>form,.release-drill-history{padding:16px}.release-evidence-checks{display:grid;grid-template-columns:1fr 1fr;gap:10px}.release-drill-history{border-top:1px solid #dbe5ec}.release-drill-history .master-list-row span{display:block}.release-safety-card .error{color:#a12d24}
html[data-resolved-theme] .release-safety-check,html[data-resolved-theme] .release-safety-details{background:var(--theme-surface-muted)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}html[data-resolved-theme] .release-safety-details[open]>summary{background:var(--theme-surface)!important;border-color:var(--theme-border)!important}html[data-resolved-theme] .release-safety-check strong,html[data-resolved-theme] .release-safety-details>summary{color:var(--theme-heading)!important}
@media(max-width:800px){.release-safety-columns,.release-evidence-checks{grid-template-columns:1fr}.release-safety-card .form-grid{grid-template-columns:1fr}}
/* EST-005 service programs */
.estimate-service-option-list{display:grid;gap:12px}
.estimate-service-option{border:1px solid var(--border,#d7e1e8);border-radius:12px;background:var(--surface,#fff)}
.estimate-service-option>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;cursor:pointer;list-style:none}
.estimate-service-option>summary::-webkit-details-marker{display:none}
.estimate-service-option>summary span:first-child{display:grid;gap:3px}
.estimate-service-option>summary small{color:var(--muted)}
.estimate-service-option-body{display:grid;gap:16px;padding:0 16px 16px}
.service-option-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.service-option-task-grid label{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid var(--border,#d7e1e8);border-radius:8px;background:var(--surface,#f7f9fc)}
.estimate-client-addon-heading{margin-top:8px}
.estimate-client-addon-list{display:grid;gap:8px}
.estimate-client-addon-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border,#d7e1e8);border-radius:10px;background:var(--surface,#f7f9fc)}
.estimate-client-addon-row span{display:grid;gap:2px}.estimate-client-addon-row small{color:var(--muted)}.estimate-client-addon-row em{font-style:normal;font-size:.82rem;color:var(--muted)}
.estimate-public-programs,.estimate-public-addons{display:grid;gap:10px;margin:12px 0 18px}
.estimate-public-program,.estimate-public-addon{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;padding:14px;border:1px solid var(--border,#d7e1e8);border-radius:12px;background:var(--surface,#f7f9fc);cursor:pointer}
.estimate-public-program:has(input:checked),.estimate-public-addon:has(input:checked){border-color:var(--accent,#1f6fb2);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#1f6fb2) 20%,transparent)}
.estimate-public-program span,.estimate-public-addon span{display:grid;gap:4px}.estimate-public-program small,.estimate-public-addon small{color:var(--muted)}
.estimate-public-program-price{text-align:right;font-weight:700;white-space:nowrap}
.estimate-public-selection-total{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0;padding:12px;border:1px solid var(--border,#d7e1e8);border-radius:12px;background:var(--surface,#fff)}
.estimate-public-selection-total div{display:grid;gap:3px}.estimate-public-selection-total span{font-size:.78rem;color:var(--muted);text-transform:uppercase}.estimate-public-selection-total strong{font-size:1.08rem}
html[data-resolved-theme] .estimate-service-option,html[data-resolved-theme] .service-option-task-grid label,html[data-resolved-theme] .estimate-client-addon-row{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme] .estimate-service-option[open]>summary,html[data-resolved-theme] .service-option-task-grid label,html[data-resolved-theme] .estimate-client-addon-row{background:var(--theme-surface-muted)!important}
html[data-resolved-theme] .estimate-service-option strong,html[data-resolved-theme] .estimate-client-addon-row strong,html[data-resolved-theme] .estimate-service-programs h3,html[data-resolved-theme] .estimate-service-programs h4{color:var(--theme-heading)!important}
html[data-resolved-theme] .estimate-service-option small,html[data-resolved-theme] .estimate-client-addon-row small,html[data-resolved-theme] .estimate-client-addon-row em{color:var(--theme-muted)!important}
@media(max-width:760px){.service-option-task-grid{grid-template-columns:1fr}.estimate-client-addon-row,.estimate-public-program,.estimate-public-addon{grid-template-columns:auto minmax(0,1fr)}.estimate-client-addon-row em,.estimate-public-program-price{grid-column:2;text-align:left}.estimate-public-selection-total{grid-template-columns:1fr}.estimate-service-option>summary{align-items:flex-start}}

/* v5.9.3.1 estimate dark-mode controls and readable comparison selection */
html[data-resolved-theme] .weekday-options label{background:var(--theme-surface-muted)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
html[data-resolved-theme] .weekday-options input{accent-color:var(--theme-primary)}
html[data-resolved-theme] .weekday-options label:has(input:checked){background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;border-color:var(--theme-primary)!important;box-shadow:0 0 0 1px var(--theme-primary)}
html[data-resolved-theme] .weekday-options label:has(input:disabled){opacity:.58;cursor:not-allowed}
html[data-resolved-theme="dark"] .estimate-frequency-comparison tr.selected-frequency-row>td{background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;border-color:color-mix(in srgb,var(--theme-on-primary) 38%,transparent)!important}
html[data-resolved-theme="dark"] .estimate-frequency-comparison .mobile-summary-row.selected-frequency-row,html[data-resolved-theme="dark"] .estimate-frequency-comparison .mobile-summary-row.selected-frequency-row strong,html[data-resolved-theme="dark"] .estimate-frequency-comparison .mobile-summary-row.selected-frequency-row span{background:var(--theme-primary)!important;color:var(--theme-on-primary)!important;border-color:var(--theme-primary)!important}

/* v5.9.5 EST-007 labor and profitability learning */
.estimate-learning-settings{margin:12px 0 18px;border:1px solid var(--border,#d7e1eb);border-radius:11px;overflow:hidden}
.estimate-learning-settings>summary{cursor:pointer;padding:13px 15px;font-weight:800}
.estimate-learning-settings[open]{padding:0 15px 15px}.estimate-learning-settings[open]>summary{margin:0 -15px 14px;border-bottom:1px solid var(--border,#d7e1eb)}
.estimate-learning-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.estimate-learning-review-list{display:grid;gap:14px}
.estimate-learning-review{padding:16px;border:1px solid var(--border,#d7e1eb);border-radius:12px;background:var(--surface,#fff)}
.estimate-learning-review h4{margin:0}.estimate-learning-review p{margin:8px 0}
.learning-recommendation{border:1px solid currentColor;border-radius:999px;padding:6px 10px;font-size:.74rem;font-weight:800;white-space:nowrap}
.learning-recommendation.neutral{color:#526a80;background:#eef3f7}.learning-recommendation.warning{color:#775600;background:#fff5cf}.learning-recommendation.danger{color:#98251e;background:#fff0ef}.learning-recommendation.success{color:#176440;background:#e8f6ef}
.estimate-learning-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:12px 0}
.estimate-learning-metrics>div{display:grid;gap:5px;padding:10px;border:1px solid var(--border,#d7e1eb);border-radius:9px;background:var(--surface-soft,#f6f9fc)}
.estimate-learning-metrics span{font-size:.7rem;color:var(--muted,#627489);text-transform:uppercase;font-weight:800}.estimate-learning-metrics strong{font-variant-numeric:tabular-nums}
.estimate-learning-actions{display:grid;grid-template-columns:minmax(170px,.75fr) minmax(220px,1.5fr) auto;gap:8px;align-items:end;margin-top:12px}
.estimate-learning-promotion{margin-top:12px;padding:12px;border:1px solid var(--border,#d7e1eb);border-radius:10px}.estimate-learning-promotion>summary{cursor:pointer;font-weight:800}.estimate-learning-promotion[open]{display:grid;gap:10px}
html[data-resolved-theme] .estimate-learning-settings,html[data-resolved-theme] .estimate-learning-review,html[data-resolved-theme] .estimate-learning-promotion{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme] .estimate-learning-settings[open]>summary,html[data-resolved-theme] .estimate-learning-metrics>div{background:var(--theme-surface-muted)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme] .estimate-learning-review h4,html[data-resolved-theme] .estimate-learning-metrics strong,html[data-resolved-theme] .estimate-learning-settings>summary,html[data-resolved-theme] .estimate-learning-promotion>summary{color:var(--theme-heading)!important}
html[data-resolved-theme] .estimate-learning-metrics span{color:var(--theme-muted)!important}
@media(max-width:1100px){.estimate-learning-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.estimate-learning-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.estimate-learning-metrics,.estimate-learning-settings-grid,.estimate-learning-actions{grid-template-columns:1fr}.learning-recommendation{white-space:normal}.estimate-learning-review .section-header{align-items:flex-start}}

/* v5.9.6 EST-008 reusable templates and field-first estimating */
.estimate-field-workspace{display:grid;gap:12px;margin-bottom:14px}.estimate-template-controls{display:grid;grid-template-columns:minmax(240px,1fr) auto auto auto auto;gap:9px;align-items:end}.estimate-template-controls label{display:grid;gap:5px;min-width:0}.estimate-mode-switch{display:flex;align-items:center;gap:5px;padding:4px;border:1px solid #cbd9e4;border-radius:10px;background:#eef4f8}.estimate-mode-switch button{margin:0}.estimate-mode-switch button.active{background:#2376b8;color:#fff;border-color:#2376b8}.estimate-field-steps{display:flex;gap:7px;overflow-x:auto;padding:2px 0 5px;scrollbar-width:thin}.estimate-field-steps button{flex:0 0 auto;white-space:nowrap}.estimate-draft-recovery{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #e6c66a;border-left:5px solid #d39c15;border-radius:10px;background:#fff8df}.estimate-draft-recovery>div:first-child{display:grid;gap:3px}.estimate-draft-recovery>div:last-child{display:flex;gap:8px}.estimate-template-library{display:grid;gap:20px}.estimate-template-group{display:grid;gap:8px}.estimate-template-group>h3{margin:0;color:#17365d}.estimate-template-lines{display:grid;border:1px solid #d4e0e8;border-radius:12px;overflow:hidden}.estimate-template-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:11px 13px;border-bottom:1px solid #dbe5ec;background:#fff}.estimate-template-line:last-child{border-bottom:0}.estimate-template-line.archived{opacity:.72;background:#f3f5f7}.estimate-template-open{display:grid;gap:3px;min-width:0;padding:0;background:transparent!important;border:0!important;color:#17365d!important;text-align:left;box-shadow:none!important}.estimate-template-open span{color:#617488;font-size:.78rem;overflow-wrap:anywhere}.estimate-template-actions{display:flex;gap:7px;justify-content:flex-end}.estimate-template-dialog{width:min(760px,96vw)}.estimate-template-dialog fieldset{display:grid;gap:8px}.estimate-template-dialog fieldset>p{margin:0;color:#607386;font-size:.82rem}.estimate-template-dialog select[multiple]{min-height:120px}.estimate-template-dialog textarea{width:100%}#estimate[data-estimating-mode="quick"] #janitorialWalkthroughSettings,#estimate[data-estimating-mode="quick"] #janitorialScopeSettings{display:none!important}#estimate[data-estimating-mode="quick"] .estimate-lob-builder>summary small:after{content:" · Quick mode";color:#2f7d6d;font-weight:800}
html[data-resolved-theme] .estimate-field-workspace,html[data-resolved-theme] .estimate-template-line,html[data-resolved-theme] .estimate-template-lines,html[data-resolved-theme] .estimate-mode-switch{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}html[data-resolved-theme] .estimate-template-group>h3,html[data-resolved-theme] .estimate-template-open{color:var(--theme-heading)!important}html[data-resolved-theme] .estimate-template-open span,html[data-resolved-theme] .estimate-template-dialog fieldset>p{color:var(--theme-muted)!important}html[data-resolved-theme] .estimate-mode-switch{background:var(--theme-surface-muted)!important}html[data-resolved-theme] .estimate-mode-switch button.active{background:var(--theme-accent)!important;color:#fff!important;border-color:var(--theme-accent)!important}html[data-resolved-theme] .estimate-draft-recovery{background:var(--theme-surface-muted)!important;color:var(--theme-text)!important;border-color:#d39c15!important}
@media(max-width:1100px){.estimate-template-controls{grid-template-columns:minmax(220px,1fr) 1fr 1fr}.estimate-template-controls .estimate-mode-switch{grid-column:1/-1;justify-self:start}.estimate-template-line{grid-template-columns:minmax(0,1fr) auto}.estimate-template-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:700px){.estimate-template-controls{grid-template-columns:1fr}.estimate-template-controls>*{width:100%;min-width:0}.estimate-template-controls .estimate-mode-switch{grid-column:auto;display:grid;grid-template-columns:1fr 1fr}.estimate-field-steps{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.estimate-field-steps button{width:100%;white-space:normal}.estimate-draft-recovery{align-items:stretch;flex-direction:column}.estimate-draft-recovery>div:last-child{display:grid;grid-template-columns:1fr 1fr}.estimate-template-line{grid-template-columns:minmax(0,1fr)}.estimate-template-line>.status-pill{justify-self:start}.estimate-template-actions{display:grid;grid-template-columns:1fr}.estimate-template-actions button{width:100%;white-space:normal}.estimate-template-dialog .form-grid{grid-template-columns:1fr}.estimate-template-dialog .wide{grid-column:auto}}

/* v5.9.7 EST-009 approvals and performance analytics */
.estimate-unusual-terms{align-self:end}.compact-field{display:grid;gap:4px;min-width:120px}
.estimate-performance-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.8fr);gap:16px;margin:16px 0}
.estimate-approval-list{display:grid;gap:12px}.estimate-approval-item{display:grid;gap:12px;padding:15px;border:1px solid var(--border,#d6e1e9);border-radius:12px;background:var(--surface,#fff)}
.estimate-approval-item h4{margin:0}.estimate-approval-reasons{display:flex;flex-wrap:wrap;gap:7px}.estimate-approval-reasons span{padding:5px 9px;border-radius:999px;background:#fff1cc;color:#6f5200;border:1px solid #e3c35f;font-size:.78rem;font-weight:800}
.estimate-approval-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.estimate-approval-values>div{display:grid;gap:4px;padding:10px;border:1px solid var(--border,#d6e1e9);border-radius:9px;background:var(--surface-soft,#f5f8fb)}.estimate-approval-values span{font-size:.72rem;text-transform:uppercase;color:var(--muted,#607489);font-weight:800}
.estimate-performance-breakdowns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.estimate-performance-breakdown{min-width:0;padding:13px;border:1px solid var(--border,#d6e1e9);border-radius:10px}.estimate-performance-breakdown h4{margin:0 0 10px}.estimate-performance-breakdown>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--border,#d6e1e9)}.estimate-performance-breakdown>div span{min-width:0;overflow-wrap:anywhere}.estimate-approval-history{display:grid;gap:8px}
html[data-resolved-theme] .estimate-approval-item,html[data-resolved-theme] .estimate-approval-values>div,html[data-resolved-theme] .estimate-performance-breakdown{background:var(--theme-surface-muted)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-resolved-theme] .estimate-approval-item h4,html[data-resolved-theme] .estimate-approval-values strong,html[data-resolved-theme] .estimate-performance-breakdown h4,html[data-resolved-theme] .estimate-performance-breakdown strong{color:var(--theme-heading)!important}
html[data-resolved-theme] .estimate-approval-values span{color:var(--theme-muted)!important}
@media(max-width:1050px){.estimate-performance-layout{grid-template-columns:1fr}.estimate-performance-breakdowns{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.estimate-performance-breakdowns,.estimate-approval-values{grid-template-columns:1fr}.estimate-performance-layout{display:block}.estimate-performance-layout>*{margin-bottom:14px}.estimate-approval-item .backup-actions{display:grid;grid-template-columns:1fr}.estimate-approval-item button{width:100%;white-space:normal}}

/* v5.10.0 mobile workforce controls and offline execution */
.field-control-settings{overflow:hidden}.field-control-settings-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.field-control-settings-grid>label:not(.checkbox-line){display:grid;gap:5px;min-width:0}.field-control-settings-grid .checkbox-line{min-width:0;margin:0;padding:10px;border:1px solid #d8e2ec;border-radius:9px}.field-control-settings-grid .wide,.field-control-settings-grid .field-control-delivery-note{grid-column:1/-1}.field-control-delivery-note{display:flex;flex-wrap:wrap;gap:8px 14px;padding:11px 13px;border:1px solid #b9d5e7;border-left:4px solid #2376b8;border-radius:9px;background:#f3f8fc}.field-control-delivery-note span{color:#5d7184}.field-policy-badge{display:inline-flex;align-items:center;width:max-content;padding:6px 10px;border:1px solid;border-radius:999px;font-size:.72rem;font-weight:900;text-transform:uppercase}.field-policy-badge.off{background:#eef3f7;border-color:#becbd6;color:#506579}.field-policy-badge.advisory{background:#fff7d7;border-color:#e0bd4d;color:#705300}.field-policy-badge.required{background:#ffecea;border-color:#df8f87;color:#8d261e}
.field-control-panel{border-color:#b9d5e7}.field-control-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.field-control-summary>div{display:grid;gap:4px;min-width:0;padding:10px 12px;border:1px solid #d7e2eb;border-radius:9px;background:#f5f8fb}.field-control-summary span{font-size:.7rem;font-weight:800;text-transform:uppercase;color:#607387}.field-control-summary strong{overflow-wrap:anywhere}.field-manager-controls{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(150px,.55fr) auto auto;gap:9px;align-items:end;margin-top:12px}.field-manager-controls label{display:grid;gap:5px;min-width:0}.field-break-actions{display:flex;align-items:center;gap:12px;margin-top:12px}.field-break-actions span,.field-privacy-note{color:#5f7284;font-size:.8rem}.field-privacy-note{margin:12px 0 0}.danger-outline{color:#98251e!important;border-color:#dca29d!important;background:transparent!important}.field-alert-pill{display:inline-flex;align-items:center;padding:3px 8px;border:1px solid;border-radius:999px;font-size:.7rem;font-weight:900}.field-alert-pill.late{background:#fff4cd;border-color:#d8b442;color:#705300}.field-alert-pill.no-show{background:#ffe9e6;border-color:#d98c84;color:#8d261e}.field-visit-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
html[data-resolved-theme] .field-control-settings-grid .checkbox-line,html[data-resolved-theme] .field-control-delivery-note,html[data-resolved-theme] .field-control-summary>div{background:var(--theme-surface-muted)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}html[data-resolved-theme] .field-control-delivery-note strong,html[data-resolved-theme] .field-control-summary strong{color:var(--theme-heading)!important}html[data-resolved-theme] .field-control-delivery-note span,html[data-resolved-theme] .field-control-summary span,html[data-resolved-theme] .field-break-actions span,html[data-resolved-theme] .field-privacy-note{color:var(--theme-muted)!important}
@media(max-width:1100px){.field-control-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field-manager-controls{grid-template-columns:1fr 1fr}.field-manager-controls button{width:100%}.field-visit-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.field-control-settings-grid,.field-control-summary,.field-manager-controls,.field-visit-kpis{grid-template-columns:1fr}.field-control-settings-grid>*{grid-column:auto!important}.field-control-settings-grid button{width:100%}.field-break-actions{align-items:stretch;flex-direction:column}.field-break-actions button{width:100%}.field-control-panel{overflow:hidden}.field-control-panel input,.field-control-panel select{min-width:0;width:100%}}

/* v5.11.0 Solo and Service-Line subscription foundation */
.service-line-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.service-line-admin-grid>article{display:grid;gap:8px;min-width:0;padding:14px;border:1px solid var(--border,#d8e2ec);border-radius:11px;background:var(--surface-soft,#f6f9fc)}.service-line-admin-grid>article>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.service-line-admin-grid>article span{color:var(--muted,#64778a);font-size:.76rem}.service-line-admin-grid>article p{margin:0;overflow-wrap:anywhere}.service-line-admin-grid>article button{justify-self:start}.service-line-bundle-form{margin-top:18px;padding-top:17px;border-top:1px solid var(--border,#d8e2ec)}.service-line-bundle-form h3{margin:0}.company-service-line-list{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.checkout-service-lines{display:grid;gap:12px;min-width:0;padding:14px;border:1px solid var(--border,#d8e2ec);border-radius:12px}.checkout-service-lines legend{padding:0 6px;font-weight:850}.checkout-service-lines>p,.checkout-service-lines>ul{margin:0}.checkout-service-line-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.checkout-service-line-options .checkbox-line,.checkout-service-line-bundle{align-items:flex-start;min-width:0;margin:0;padding:10px;border:1px solid var(--border,#d8e2ec);border-radius:9px;background:var(--surface-soft,#f6f9fc)}.checkout-service-line-options .checkbox-line span,.checkout-service-line-bundle span{display:grid;gap:3px;min-width:0}.checkout-service-line-options small,.checkout-service-line-bundle small{overflow-wrap:anywhere}.estimate-lob-choices>label:has(input:disabled){cursor:not-allowed;opacity:.65}.estimate-lob-choices>label.estimate-lob-unlicensed{border-style:dashed}.estimate-lob-choices>label.estimate-lob-historical{border-color:#d59a24;background:#fff8e8}.estimate-lob-choices{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-resolved-theme] .service-line-admin-grid>article,html[data-resolved-theme] .checkout-service-lines,html[data-resolved-theme] .checkout-service-line-options .checkbox-line,html[data-resolved-theme] .checkout-service-line-bundle{background:var(--theme-surface-muted)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}html[data-resolved-theme] .service-line-admin-grid strong,html[data-resolved-theme] .checkout-service-lines strong{color:var(--theme-heading)!important}html[data-resolved-theme] .service-line-admin-grid span,html[data-resolved-theme] .checkout-service-lines small{color:var(--theme-muted)!important}

/* v5.11.1 anonymous-theme isolation and Founder/Pro wide package cards */

/* v5.11.2 owner-confirmed existing-subscription Service-Line management */
.company-service-line-dialog{width:min(820px,calc(100vw - 24px));max-height:92vh;overflow:auto}.company-service-line-dialog .dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.company-service-line-dialog .dialog-head h2{margin:0}.company-service-line-dialog .dialog-head p{margin:5px 0 0;color:var(--theme-muted,#687a8d)}.company-service-line-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:14px;border:1px solid var(--theme-border,#dce5eb);border-radius:12px}.company-service-line-picker legend{padding:0 7px;font-weight:850}.company-service-line-picker article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;align-items:start;min-width:0;padding:12px;border:1px solid var(--theme-border,#dce5eb);border-radius:10px;background:var(--theme-surface-muted,#f6f9fc)}.company-service-line-picker article>small{grid-column:1/-1;color:var(--theme-warning,#9b6b00)}.company-service-line-picker .checkbox-line{align-items:flex-start;min-width:0;margin:0}.company-service-line-picker .checkbox-line span{display:grid;gap:3px;min-width:0}.company-service-line-picker .checkbox-line small{overflow-wrap:anywhere}.service-line-primary-choice{display:flex;align-items:center;gap:5px;color:var(--theme-muted,#687a8d);font-size:.76rem;font-weight:800}.service-line-primary-choice input{width:auto;margin:0;accent-color:var(--theme-primary,#1f6fb2)}.service-line-bundle-choice{align-items:flex-start;margin:0;padding:12px;border:1px solid var(--theme-border,#dce5eb);border-radius:10px;background:var(--theme-surface-muted,#f6f9fc)}.service-line-bundle-choice span{display:grid;gap:3px}.service-line-pending-note{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:12px 0;padding:12px;border-left:4px solid var(--theme-warning,#d39a17);border-radius:8px;background:var(--theme-surface-muted,#f6f9fc)}.service-line-pending-note span{color:var(--theme-muted,#687a8d);font-size:.78rem}.service-line-preview-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.service-line-preview-summary>div{display:grid;gap:5px;min-width:0;padding:13px;border:1px solid var(--theme-border,#dce5eb);border-radius:10px;background:var(--theme-surface-muted,#f6f9fc)}.service-line-preview-summary>div.wide{grid-column:1/-1}.service-line-preview-summary span{color:var(--theme-muted,#687a8d);font-size:.75rem}.service-line-preview-summary strong{color:var(--theme-heading,#17365d);overflow-wrap:anywhere}.company-service-line-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:9px}
@media(max-width:680px){.company-service-line-dialog{width:calc(100vw - 12px);max-width:none;margin:auto;padding:16px}.company-service-line-dialog .dialog-head{display:grid}.company-service-line-dialog .dialog-head>button{width:100%}.company-service-line-picker,.service-line-preview-summary{grid-template-columns:minmax(0,1fr)}.company-service-line-picker article{grid-template-columns:minmax(0,1fr)}.service-line-primary-choice{justify-self:start}.service-line-preview-summary>div.wide{grid-column:1}.service-line-pending-note{display:grid}.company-service-line-dialog .dialog-actions{display:grid;grid-template-columns:1fr}.company-service-line-dialog .dialog-actions button{width:100%}}
.sales-package-wide{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,2fr) minmax(170px,.5fr);align-items:center;gap:26px;height:auto}
.sales-package-wide .sales-package-summary{align-self:start}
.sales-package-wide .sales-package-summary h3{margin:0;color:#17365d;font-size:1.55rem}
.sales-package-wide .sales-package-summary>strong{display:block;margin:14px 0 0;color:#17365d;font-size:2.75rem}
.sales-package-wide .sales-package-summary>strong small{font-size:.8rem;color:#748495}
.sales-package-wide .sales-package-summary p,.sales-package-wide .sales-package-details p,.sales-package-wide .sales-package-details li{color:#5e7184;line-height:1.55}
.sales-package-wide .sales-package-details ul{columns:2;column-gap:34px;margin:10px 0;padding-left:22px}
.sales-package-wide .sales-package-details li{break-inside:avoid;margin-bottom:7px}
.sales-package-wide .sales-package-action{display:flex;align-items:center;justify-content:flex-end}
.sales-package-wide .sales-package-action button{width:100%;margin:0}
.sales-package-value{display:block;margin-top:3px;color:#2f7d6d;font-size:.82rem;font-weight:800}
.sales-package-founder{border:2px solid #2f7d6d;background:linear-gradient(115deg,#fff 0%,#fff 68%,#eef8f4 100%)}
@media(max-width:820px){.sales-package-wide{grid-template-columns:1fr;gap:12px}.sales-package-wide .sales-package-details ul{columns:1}.sales-package-wide .sales-package-action{justify-content:stretch}}
@media(max-width:980px){.estimate-lob-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.service-line-admin-grid{grid-template-columns:1fr}}
@media(max-width:620px){.estimate-lob-choices,.checkout-service-line-options{grid-template-columns:minmax(0,1fr)}.checkout-service-lines,.service-line-admin-grid>article{min-width:0;overflow:hidden}.checkout-service-lines input,.checkout-service-lines select{max-width:100%;min-width:0}.service-line-admin-grid>article>div{display:grid}}
/* v5.12.0 Company invoice payment collection */
.billing-collection-overview{overflow:hidden}
.billing-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}
.billing-summary-grid>div{min-width:0;padding:12px;border:1px solid var(--line,#d6e1eb);border-radius:10px;background:var(--surface-soft,#f5f8fb)}
.billing-summary-grid span,.payment-collection-inline span,.billing-issue span,.payment-account-status small{display:block;color:var(--muted,#60758d);font-size:.82rem}
.billing-summary-grid strong{display:block;margin-top:5px;font-size:1.12rem;color:var(--ink,#12345b)}
.billing-reconciliation-list{margin-top:12px}
.billing-reconciliation-list>summary{cursor:pointer;font-weight:700;padding:10px 0}
.billing-issue{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;margin-top:8px;border:1px solid var(--line,#d6e1eb);border-left:4px solid #d69e2e;border-radius:9px;background:var(--surface-soft,#f5f8fb)}
.billing-issue.critical{border-left-color:#cf3e32}
.billing-issue.info{border-left-color:#2c7bb6}
.billing-issue>div{min-width:0}
.payment-account-status{display:grid;gap:8px}
.payment-collection-inline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;margin:10px 0;border:1px solid var(--line,#d6e1eb);border-radius:10px;background:var(--surface-soft,#f5f8fb)}
.payment-collection-inline>div{min-width:0}
.company-payment-settings .document-library-links{margin-top:12px}
[data-theme-mode="dark"] .billing-summary-grid>div,
[data-theme-mode="dark"] .billing-issue,
[data-theme-mode="dark"] .payment-collection-inline{background:var(--surface-elevated,var(--surface,#21364c))}
[data-theme-mode="dark"] .billing-summary-grid strong,
[data-theme-mode="dark"] .payment-collection-inline strong,
[data-theme-mode="dark"] .billing-issue strong{color:var(--ink,#fff)}
@media(max-width:900px){
 .billing-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .billing-summary-grid>div:last-child{grid-column:1/-1}
}
@media(max-width:600px){
 .billing-summary-grid{grid-template-columns:1fr}
 .billing-summary-grid>div:last-child{grid-column:auto}
 .payment-collection-inline,.billing-issue{align-items:stretch;flex-direction:column}
 .payment-collection-inline button,.billing-issue button{width:100%}
}
/* v5.13.0 secure communication threads */
.nav-unread-badge{display:inline-grid;place-items:center;min-width:1.35rem;height:1.35rem;margin-left:auto;padding:0 .35rem;border-radius:999px;background:#c62828;color:#fff;font-size:.72rem;font-weight:800}
.communication-page-heading,.communication-thread-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.communication-page-heading>div,.communication-thread-header>div{min-width:0}
.communication-page-heading span,.communication-thread-header>div>span{color:var(--accent,#0f766e);font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.communication-page-heading h2,.communication-thread-header h2{margin:.2rem 0}
.communication-page-heading p,.communication-thread-header p{margin:.25rem 0;color:var(--muted,#64748b)}
.communication-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) auto;align-items:end;gap:1rem;margin-bottom:1rem}
.communication-toolbar label{margin:0}
.communication-filter-buttons{display:flex;flex-wrap:wrap;gap:.45rem}
.communication-filter-buttons button.active{box-shadow:inset 0 0 0 2px rgba(255,255,255,.4)}
.communication-thread-list{display:grid;gap:.55rem;min-width:0}
.communication-thread-row{display:grid;grid-template-columns:7px minmax(0,1fr) minmax(130px,auto);align-items:center;gap:.9rem;width:100%;min-width:0;padding:.9rem 1rem;border:1px solid var(--border,#d9e3ec);border-radius:12px;background:var(--surface,#fff);color:var(--text,#102a43);text-align:left;box-shadow:none}
.communication-thread-row:hover,.communication-thread-row:focus-visible{border-color:var(--accent,#0f766e);transform:none}
.communication-thread-row.unread{box-shadow:inset 0 0 0 1px var(--accent,#0f766e)}
.communication-thread-marker{width:7px;height:100%;min-height:48px;border-radius:999px;background:#5b7083}
.communication-thread-marker.client{background:#0e9f6e}
.communication-thread-summary{display:grid;gap:.16rem;min-width:0}
.communication-thread-summary strong,.communication-thread-summary span,.communication-thread-summary small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.communication-thread-summary span{font-size:.82rem;color:var(--muted,#64748b)}
.communication-thread-summary small{font-size:.78rem;color:var(--muted,#64748b)}
.communication-thread-meta{display:grid;justify-items:end;gap:.25rem;min-width:0;color:var(--muted,#64748b);font-size:.75rem}
.communication-thread-meta b,.communication-thread-meta em{padding:.14rem .45rem;border-radius:999px;background:var(--accent,#0f766e);color:#fff;font-style:normal}
.communication-thread-meta em{background:#b45309}
.communication-thread-page{min-width:0}
.communication-thread-header{position:sticky;top:calc(var(--app-header-height,0px) + 3.8rem);z-index:6;padding:1rem;border:1px solid var(--border,#d9e3ec);border-radius:14px;background:var(--surface,#fff)}
.communication-thread-header>div:nth-child(2){flex:1}
.communication-thread-actions{display:flex;align-items:end;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}
.communication-thread-actions label{margin:0;min-width:150px}
.communication-message-list{display:grid;gap:.8rem;max-width:920px;margin:1rem auto}
.communication-message{justify-self:start;width:min(78%,720px);padding:.9rem 1rem;border:1px solid var(--border,#d9e3ec);border-radius:6px 16px 16px 16px;background:var(--surface,#fff);color:var(--text,#102a43)}
.communication-message.mine{justify-self:end;border-radius:16px 6px 16px 16px;background:color-mix(in srgb,var(--accent,#0f766e) 13%,var(--surface,#fff))}
.communication-message.deleted{opacity:.72;font-style:italic}
.communication-message-head{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.45rem}
.communication-message-head time{color:var(--muted,#64748b);font-size:.72rem}
.communication-message>p{margin:.25rem 0 .55rem;overflow-wrap:anywhere}
.communication-inline-action{margin:.35rem .5rem 0 0;padding:.25rem 0;border:0;background:transparent;color:var(--accent,#0f766e);font-size:.76rem;box-shadow:none}
.communication-inline-action:hover{background:transparent;text-decoration:underline;transform:none}
.communication-followup{display:grid;gap:.25rem;margin-top:.65rem;padding:.65rem;border-left:4px solid #d97706;border-radius:8px;background:rgba(217,119,6,.1)}
.communication-followup.resolved{border-color:#15803d;background:rgba(21,128,61,.1)}
.communication-followup button{justify-self:start;margin-top:.25rem}
.communication-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.5rem;margin-top:.6rem}
.communication-photo-button{display:block;position:relative;min-height:120px;padding:0;overflow:hidden;border-radius:10px;background:var(--surface-alt,#e8eef4);color:var(--muted,#64748b)}
.communication-photo-button img{display:block;width:100%;height:150px;object-fit:cover}
.communication-photo-button span{position:absolute;inset:0;display:grid;place-items:center;padding:.5rem}
.communication-compose{position:sticky;bottom:0;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.8rem;max-width:960px;margin:1rem auto 0;padding:1rem;border:1px solid var(--border,#d9e3ec);border-radius:14px;background:var(--surface,#fff);box-shadow:0 -8px 24px rgba(15,23,42,.08)}
.communication-compose label{margin:0}
.communication-compose textarea{resize:vertical;min-height:92px}
.communication-compose-actions{display:flex;align-items:center;gap:.5rem}
.communication-photo-label{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:0;cursor:pointer}
.communication-compose .calendar-note{grid-column:1/-1;margin:0}
.communication-participant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.5rem}
.communication-participant-grid .checkbox-line{align-items:flex-start;padding:.65rem;border:1px solid var(--border,#d9e3ec);border-radius:10px}
.communication-participant-grid .checkbox-line span{display:grid;gap:.1rem}
.communication-participant-grid small{color:var(--muted,#64748b)}
.communication-thread-dialog{width:min(860px,calc(100vw - 2rem))}
.customer-portal-view .communication-thread-list{margin-top:1rem}

@media(max-width:760px){
 .communication-page-heading,.communication-thread-header{display:grid}
 .communication-page-heading>button{width:100%}
 .communication-toolbar{grid-template-columns:1fr}
 .communication-filter-buttons{display:grid;grid-template-columns:repeat(3,1fr)}
 .communication-filter-buttons button{min-width:0;padding-inline:.45rem}
 .communication-thread-row{grid-template-columns:6px minmax(0,1fr);padding:.8rem}
 .communication-thread-meta{grid-column:2;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap}
 .communication-thread-summary strong,.communication-thread-summary span,.communication-thread-summary small{white-space:normal;overflow-wrap:anywhere}
 .communication-thread-header{position:static;top:auto}
 .communication-thread-actions{display:grid;justify-content:stretch}
 .communication-thread-actions label,.communication-thread-actions button{width:100%}
 .communication-message{width:92%}
 .communication-compose{position:static;grid-template-columns:1fr}
 .communication-compose-actions{display:grid;grid-template-columns:1fr 1fr}
 .communication-participant-grid{grid-template-columns:1fr}
}

/* v5.14.0: personal language preference */
.language-settings-card{margin-bottom:18px}
.language-settings-card .section-header{margin-bottom:14px}
.language-settings-card form{display:grid;gap:12px}
.language-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.language-boundary-note{margin:0}
.language-settings-card .calendar-note{margin:0;min-height:1.4em}
.language-settings-card .experience-settings-actions{display:flex;justify-content:flex-end}
.language-settings-card .experience-settings-actions button{min-width:160px}
.primary-nav-item>span:first-child{font-size:1rem;text-align:center}
.primary-nav-item>span[data-i18n]{
 min-width:0;
 font-family:inherit;
 font-size:inherit;
 line-height:inherit;
 text-align:left;
 overflow-wrap:normal;
 word-break:normal;
 hyphens:none
}
@media(max-width:760px){
 .language-choice-grid{grid-template-columns:minmax(0,1fr)}
 .language-settings-card .experience-settings-actions,
 .language-settings-card .experience-settings-actions button{width:100%}
}
