/* Final responsive layer, shared by every portal entry point. */
@media(max-width:900px){
 html{scroll-padding-top:80px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body{font-size:16px;line-height:1.55;color:#173246;background:#f5f7fa}
 body .site-nav{position:sticky;top:0;width:100%;height:auto;z-index:80;background:#fff!important;color:#173246;border-bottom:1px solid #d7e1e8;backdrop-filter:none}
 body .nav-inner{display:flex;align-items:center;flex-wrap:nowrap!important;gap:8px!important;min-height:64px;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left))!important}
 body .brand-unit{flex:1 1 auto;min-width:0}body .brand-unit .brand{gap:8px;height:auto;min-width:0}.brand-unit .workspace-label{display:none!important}
 body .brand-unit .brand-name{font:700 17px/1.15 'Barlow Condensed',Arial,sans-serif!important;max-width:160px;letter-spacing:0;overflow-wrap:normal;color:#173246!important;margin:0}
 body .logo-mark{width:30px;height:32px;flex:0 0 30px;font-size:11px}.portal-home{margin:0!important;min-width:52px;min-height:44px!important;padding:8px 10px!important;font-size:14px!important}
 body .portal-menu{position:static;margin:0;flex:0 0 auto}body .portal-menu>summary{display:flex!important;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:9px 12px;font:650 14px/1.2 Inter,Arial,sans-serif;background:#edf3f8!important;color:#173246!important;border:1px solid #cbd9e4;list-style:none;border-radius:8px;cursor:pointer}
 .portal-menu>summary:before{content:'☰';font-size:18px;line-height:1}.portal-menu[open]>summary:before{content:'×';font-size:23px}.portal-menu>summary::-webkit-details-marker{display:none}
 body .portal-menu:not([open])>nav{display:none!important}
 body .portal-menu[open]>nav{position:fixed!important;inset:auto 10px auto!important;top:var(--phone-nav-bottom,67px)!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;gap:4px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - var(--phone-nav-bottom,67px) - 16px)!important;padding:10px!important;overflow:auto!important;overscroll-behavior:contain;background:#fff!important;border:1px solid #cbd9e4!important;border-radius:12px;box-shadow:0 14px 35px #17324630;z-index:90}
 body .site-nav nav>button.main-nav-item,body .portal-menu nav>button,body .portal-menu nav>a{display:flex!important;align-items:center;justify-content:flex-start;width:100%!important;min-height:48px!important;padding:12px 14px!important;font-size:16px!important;line-height:1.3!important;white-space:normal!important;text-align:left!important;color:#25445b!important;border-radius:8px;background:#f3f7fa}
 body .site-nav nav button.nav-current{background:#e7f1fa!important;color:#164f79!important;border-left:3px solid #1b75bc;box-shadow:none}
 body .main-nav-item:before{display:none!important}.portal-tools{position:static;width:100%;margin:6px 0 0!important;padding:6px 0 0;border-top:1px solid #d7e1e8}
 body .portal-tools>summary{display:flex;align-items:center;min-height:48px;padding:12px 14px;font-size:16px;background:#fff!important;color:#25445b!important;border:0;list-style:revert}
 body .portal-tools .tools-links{position:static!important;display:flex;flex-direction:column;width:100%!important;max-width:100%;margin:0;padding:4px 0;box-shadow:none;border:0;background:#fff!important}
 body .portal-tools:not([open])>.tools-links{display:none!important}.portal-tools .tools-links button,.portal-tools .tools-links a{min-height:46px!important;font-size:15px!important;line-height:1.35!important;padding:12px 16px!important}
 body.phone-menu-open{overflow:hidden}
 body main,body.signed-out main{width:100%;max-width:100%!important;margin:0!important;padding:16px max(14px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))!important}
 main>header,body[data-role=admin] main>header{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0 0 16px;min-height:0}
 main>header h1,body[data-role=admin] main>header h1{font:750 25px/1.2 Inter,Arial,sans-serif!important;letter-spacing:-.4px;overflow-wrap:anywhere;text-transform:none}
 main>header .eyebrow{display:none}body #identity{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px!important;line-height:1.4;max-width:100%;margin:0;text-align:left;overflow-wrap:anywhere}#identity br{display:none}#identity button{margin-left:auto!important;min-height:40px!important;font-size:13px!important;padding:8px 12px!important}
 #app,#customerApp,#quoteApp,.biz,.columns,.grid,.card,.simple-job,.bid-channel,.dispatch-lane,.installer-focus-pane,.installer-focus-layout{min-width:0;max-width:100%}
 #app .columns,#app .grid,#app .dispatch-lanes,#app .production-columns,#app .bid-channels,.schedule-summary,.slot-grid,.photo-first-options{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body .card,body .biz .biz-card,body .simple-job,body .bid-channel,body .production-task{padding:16px;margin:12px 0;border-radius:12px}
 body p,body .biz p,body .pre{font-size:15px;line-height:1.6}body label,body .biz label{font-size:14px!important;line-height:1.45;font-weight:650;margin:14px 0 6px;color:#29475e}body small,body .small,body .biz small{font-size:13px!important;line-height:1.5;color:#536d80}
 body h2,body .biz h2,body dialog h2{font-size:22px!important;line-height:1.25;letter-spacing:0;margin:8px 0 14px}body h3,body .biz h3{font-size:18px;line-height:1.3}
 body input,body select,body textarea,body .biz input,body dialog input,body dialog select,body dialog textarea{font-size:16px!important;line-height:1.45;min-width:0;max-width:100%;border-radius:8px;padding:11px 12px;min-height:46px}
 body textarea{width:100%;min-height:120px;resize:vertical}body input[type=checkbox],body input[type=radio]{width:20px!important;min-width:20px!important;min-height:20px!important;height:20px;flex:0 0 20px;padding:0;margin:2px 0}
 body .checkline,body .biz-check{display:flex;align-items:flex-start;gap:10px;line-height:1.5}body input[type=file]{width:100%;font-size:14px!important;white-space:normal;overflow-wrap:anywhere;padding:10px}
 body button,body .button{font-size:14px!important;line-height:1.4!important;min-height:46px;padding:11px 13px;max-width:100%;white-space:normal;overflow-wrap:normal;touch-action:manipulation}
 body button:focus-visible,body summary:focus-visible{outline:3px solid #1b75bc;outline-offset:3px}
 .biz .biz-fields,.easy-date-grid,.setup-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px}.biz .biz-fields>.wide{grid-column:auto}
 .biz .biz-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}.biz .biz-toolbar>*{min-width:0;max-width:100%}.biz .biz-toolbar #bizBranch,.biz .biz-toolbar #bizSearch,.biz .biz-toolbar #bizNew,.biz .biz-toolbar #bizDirectEntry{grid-column:1/-1;width:100%;min-width:0}
 .biz .biz-tabs{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;scroll-snap-type:x proximity;margin:14px 0 8px;padding:5px 0 10px;border-bottom:1px solid #d5e0e8;-webkit-overflow-scrolling:touch}.biz .biz-tabs button{flex:0 0 auto;min-height:44px;padding:10px 14px;white-space:nowrap!important;scroll-snap-align:start;font-size:14px!important}
 .job-primary-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.job-primary-actions>button:first-child{grid-column:1/-1;width:100%}.job-primary-actions>button{min-width:0;width:100%}.job-secondary-actions{grid-column:1/-1;background:#fff;border:1px solid #d7e1e8;border-radius:8px;padding:0 12px}.job-secondary-actions>summary{padding:12px 0;min-height:44px;font-size:14px;font-weight:650}.job-secondary-actions .row{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 0 12px}
 .row.work-actions,.schedule-actions,.new-actions,.job-guide .row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}.row.work-actions>*,.schedule-actions>*,.new-actions>*{width:100%;min-width:0}.job-guide .row>.primary,.work-actions>.primary{grid-column:1/-1}
 body .workspace-intro,body[data-role=admin] .workspace-intro,body[data-role=installer] .workspace-intro{display:block;padding:16px!important;min-height:0;margin:12px 0 16px}.workspace-intro .eyebrow{font-size:11px!important}.workspace-intro h2,.job-guide h2,.installer-job-detail .job-guide h2{font:750 24px/1.25 Inter,Arial,sans-serif!important;max-width:100%!important;padding:0!important}.workspace-intro p{font-size:14px!important}.workspace-intro>button{position:static!important;margin-top:10px!important}.workspace-intro .new-actions{position:static!important;margin-top:12px!important}.workspace-intro .new-actions button{font-size:14px!important;width:100%!important}
 .workspace-tabs{display:flex!important;flex-wrap:nowrap;gap:6px;overflow-x:auto;scroll-snap-type:x proximity;max-width:100%;margin-bottom:14px}.workspace-tabs>button{flex:0 0 auto;min-width:100px;padding:10px 14px;white-space:nowrap!important;border:1px solid #d5e0e8;border-radius:8px;scroll-snap-align:start}
 body[data-role=admin] .workspace-tabs{display:none!important}
 .job-progress{display:flex!important;flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:12px}.job-progress li{flex:0 0 auto;display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px;font-size:12px!important}.job-progress li:after{display:none!important}.job-progress li span{width:24px;height:24px;font-size:12px!important}
 .biz .active-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.biz .active-stat{gap:8px;padding:12px;min-height:60px}.biz .active-stat strong{font-size:25px}.biz .active-stat span{font-size:13px}.biz .active-heading{gap:8px}.biz .active-heading .biz-muted{font-size:13px}
 .biz .active-section-title{display:grid;grid-template-columns:1fr 1fr;gap:8px}.biz .active-section-title h2,.biz .active-section-title small{grid-column:1/-1}.biz .active-job{grid-template-columns:minmax(0,1fr);gap:7px;padding:14px}.biz .active-job-name,.biz .active-job-next,.biz .active-job-status,.biz .active-job-details{grid-column:1!important;grid-row:auto!important;justify-self:stretch!important;text-align:left}.biz .active-job-name{padding:0;min-height:44px;background:none}.biz .active-job-name strong{font-size:16px;line-height:1.35}.biz .active-job-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px}.biz .active-job-details>summary{min-height:44px;padding:10px 0}.biz .active-group>summary{padding:14px;font-size:16px}
 .phone-table,.phone-table tbody,.phone-table tr,.phone-table td,.bid-compare,.bid-compare tbody,.bid-compare tr,.bid-compare td{display:block!important;width:100%!important;min-width:0!important;max-width:none!important}.phone-table thead,.bid-compare thead{display:none!important}.phone-table tr,.bid-compare tr{margin:0 0 14px;padding:12px;border:1px solid #d7e1e8;border-radius:10px;background:#fff}.phone-table td,.bid-compare td{padding:8px 0!important;font-size:14px;overflow-wrap:anywhere;white-space:normal}.phone-table td:before,.bid-compare td:before{content:attr(data-label);display:block;font-size:12px;color:#536d80;font-weight:650;margin-bottom:3px}.table-wrap{overflow-x:auto;max-width:100%}.bid-compare .pre{min-width:0!important}
 .phone-form-label{display:block;font-size:14px;font-weight:650;margin:12px 0 6px;color:#29475e}
 body dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:18px max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overflow-y:auto;overscroll-behavior:contain;background:#fff!important;color:#173246!important;box-shadow:none}
 dialog .close{position:sticky;top:0;float:right;z-index:5;width:44px;height:44px;min-height:44px!important;margin:0 0 8px 8px!important;background:#edf3f8!important;border:1px solid #cbd9e4;font-size:24px!important;color:#173246;box-shadow:0 2px 6px #17324616}dialog h2{padding-right:48px}dialog .biz-fields{clear:both}dialog form>button[type=submit]{display:block;width:100%;margin:18px 0 8px;min-height:48px}
 body .biz .biz-pill,body .pill{font-size:12px!important;line-height:1.4;white-space:normal;overflow-wrap:anywhere;padding:5px 8px}.photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photos a{min-width:0;overflow-wrap:anywhere}.photos img{max-width:100%;height:auto;max-height:180px;object-fit:contain}.money{font-size:32px!important}
 .branch-calendar,.calendar-grid{max-width:100%}.branch-calendar>.calendar-entry{font-size:14px!important;padding:12px;min-height:64px}.calendar-entry b{font-size:15px!important}.calendar-entry span{font-size:13px!important}.calendar-grid{min-width:680px}#calendarView{overflow-x:auto}
 #liveUpdates{position:static!important;display:flex;flex-wrap:wrap;gap:8px;margin:12px 0!important;width:100%;font-size:14px;padding:12px;border-radius:10px;box-shadow:none}#liveUpdates button{margin-left:auto}
 .signed-out .brand-stats{display:none}.signed-out .login-brand{padding:8px 0 12px}.signed-out .brand-headline{font-size:42px!important;line-height:1}.signed-out .brand-promise,.signed-out .brand-intro{font-size:14px!important}.signed-out .login{padding:18px;width:100%;margin:0}.login h2{font-size:24px!important}.login button{width:100%;margin-top:10px}
 body .footer-name{font-size:19px}body footer small,body .footer-locations{font-size:12px!important}
}
@media(max-width:359px){body .brand-unit .brand-name{font-size:15px!important;max-width:125px}.portal-home{min-width:46px;padding:8px!important}body .portal-menu>summary{padding:9px!important;font-size:13px}.biz .biz-toolbar,.row.work-actions,.schedule-actions,.new-actions,.job-guide .row,.job-secondary-actions .row{grid-template-columns:minmax(0,1fr)}.job-primary-actions{grid-template-columns:minmax(0,1fr)}.job-primary-actions>button,.job-primary-actions>.job-secondary-actions{grid-column:1}}
/* Compact daily screens without reducing readable text or touch targets. */
@media(max-width:900px){
 body .biz .simple-active-job{padding:10px 12px!important;gap:3px!important}
 body .biz .simple-active-job .active-job-name{justify-content:center;align-items:flex-start!important;text-align:left!important;min-height:44px!important}
 body .biz .simple-active-job .active-job-next{line-height:1.4!important;text-align:left!important}
 body .biz .simple-active-job .active-job-status{justify-content:flex-start!important;gap:10px!important}
 body .biz .simple-workspace-toolbar #bizNew{grid-column:auto!important}
 body .biz .simple-workspace-toolbar .workspace-tools{grid-column:auto!important}
 body .simple-form-group{margin:3px 0!important}
 body .simple-form-group>summary{padding:10px 0;min-height:44px}
 body .staff-desk .biz-fields>label,body .staff-desk .biz-fields>.optional-fields label,body .staff-desk .optional-fields>label{margin:4px 0!important}
 body .staff-desk .biz-fields{gap:6px!important}
 body .staff-desk textarea{min-height:88px}
 body .staff-desk h2{font:700 22px/1.2 Inter,Arial,sans-serif!important;margin:4px 0 8px!important}
 body .staff-desk .biz-note{padding:8px 10px;margin:6px 0 12px;font-size:14px}
 body .biz .biz-job-toolbar{gap:6px}
 body .biz .biz-hold{margin:8px 0;padding:10px 12px}
 body .biz .biz-job-toolbar+.biz-card{padding:10px 12px;margin:8px 0}
 body .biz .job-summary-card{padding:12px;margin:8px 0}
}
@media(max-width:900px){
 body[data-role=installer]{--ink:#173246;--muted:#536d80;--line:#d7e1e8;--panel:#fff;--card:#fff;--bg:#f5f7fa}
 body[data-role=installer] .workspace-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;padding:0!important;overflow:visible!important;margin:0 0 10px!important}
 body[data-role=installer] .workspace-tabs>button{min-width:0!important;width:100%!important;flex:none!important;white-space:normal!important;color:#29475e!important;background:#fff!important;border:1px solid #cbd9e4!important;padding:8px!important;min-height:44px!important;font-size:13px!important}
 body[data-role=installer] .workspace-tabs>button[aria-current]{color:#164f79!important;background:#e7f1fa!important;border-color:#1b75bc!important}
 body[data-role=installer] .workspace-intro{padding:12px!important;margin:8px 0 12px!important;background:#edf3f8!important;color:#173246!important;border-color:#d7e1e8!important}
 body[data-role=installer] .workspace-intro:before,body[data-role=installer] .workspace-intro:after,body[data-role=installer] .workspace-intro .eyebrow{display:none!important}
 body[data-role=installer] .workspace-intro h2{font-size:20px!important;margin:0 0 6px!important;color:#173246!important}
 body[data-role=installer] .workspace-intro p{font-size:14px!important;color:#536d80!important;line-height:1.4!important}
 body[data-role=installer] .workspace-intro>button{background:#fff!important;border-color:#cbd9e4!important;color:#29475e!important;margin-top:8px!important}
 body[data-role=installer] .installer-job-queue,body[data-role=installer] .installer-focus-pane,body[data-role=installer] .simple-job,body[data-role=installer] .card,body[data-role=installer] .dispatch-lane{background:#fff!important;color:#173246!important;border-color:#d7e1e8!important;padding:12px!important}
 body[data-role=installer] .installer-job-queue{gap:6px;margin:0 0 10px!important}
 body[data-role=installer] .installer-job-queue h3{color:#536d80!important}
 body[data-role=installer] .installer-job-queue button{background:#f3f7fa!important;color:#173246!important;border-color:#d7e1e8!important;padding:9px 10px!important}
 body[data-role=installer] .installer-job-queue button[aria-checked=true]{background:#e7f1fa!important;border-color:#1b75bc!important}
 body[data-role=installer] input:not([type=checkbox]),body[data-role=installer] select,body[data-role=installer] textarea{background:#fff!important;color:#173246!important;border-color:#bfcfdb!important}
 body[data-role=installer] .installer-focus-layout{gap:10px!important;margin-top:12px!important}
 body[data-role=installer] .simple-job p,body[data-role=installer] .simple-job small{color:#536d80!important}
}
@media(max-width:900px){
 body[data-role=installer] .installer-job-queue button small{color:#536d80!important;opacity:1!important}
 body[data-role=installer] .installer-job-queue button.selected{background:#e7f1fa!important;border-left-color:#1b75bc!important}
 body[data-role=installer] .installer-job-queue{max-height:240px;overflow-y:auto}
 body[data-role=installer] .installer-site-preview:not(:has(img)){display:none!important}
 body[data-role=installer] .installer-site-preview:has(img){height:150px!important;min-height:0!important;margin:0 0 10px!important}
 body[data-role=installer] .installer-site-preview img{height:150px!important;object-fit:contain}
}
@media(max-width:900px){
 body #quoteApp h1,body #customerApp h1{font:750 25px/1.2 Inter,Arial,sans-serif!important;text-transform:none;letter-spacing:-.3px;margin:10px 0}
 body #quoteApp h2,body #customerApp h2{font:700 20px/1.3 Inter,Arial,sans-serif!important;margin:10px 0}
 body #quoteApp .biz-card,body #customerApp .biz-card{padding:12px;margin:8px 0}
}
@media(max-width:900px){
 body #app>#back{background:none;border:0;padding:4px 0;min-height:40px!important;margin-bottom:6px}
 body[data-role=admin] #jobGuide{padding:12px!important;margin:10px 0!important}
 body[data-role=admin] #jobGuide h2{font-size:21px!important;margin:6px 0!important}
 body[data-role=admin] #jobGuide p{font-size:14px!important;line-height:1.4!important;margin:6px 0}
 body[data-role=admin] #jobGuide .job-progress{display:none!important}
 body .job-secondary-actions #recordManagementPanel{grid-column:1/-1;margin:0;padding:10px}
}
/* v48: keep the page header and daily controls within two short rows. */
.account-menu{position:relative;margin-left:auto;flex:0 0 auto}
.account-menu>summary{cursor:pointer;list-style:none;font:600 13px/1.3 Inter,Arial,sans-serif;color:#29475e;padding:8px 10px;border:1px solid #cbd9e4;border-radius:7px;background:#fff}
.account-menu:not([open])>#identity{display:none!important}
.account-menu[open]>#identity{position:absolute;right:0;top:42px;z-index:65;display:flex!important;flex-wrap:wrap;min-width:240px;max-width:calc(100vw - 30px);padding:12px!important;border:1px solid #cbd9e4;border-radius:9px;background:#fff;color:#173246;box-shadow:0 8px 22px #17324624}
.biz .compact-top-toolbar{display:grid;grid-template-columns:minmax(120px,1fr) auto auto;gap:6px;align-items:stretch;margin-bottom:8px}
.biz .compact-top-toolbar #bizSearch{width:100%;min-width:0;grid-column:auto!important}
.biz .compact-top-toolbar #bizNew{grid-column:auto!important;white-space:nowrap}
.biz .compact-top-toolbar .workspace-filters{grid-column:auto!important}
.biz .compact-top-toolbar .workspace-filters>summary{text-align:center}
@media(max-width:900px){
 body main>header,body[data-role=admin] main>header{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;margin:0 0 10px!important}
 body main>header h1,body[data-role=admin] main>header h1{font-size:22px!important;flex:1;min-width:0;margin:0!important}
 body main>header>.account-menu{align-self:flex-start;margin:0 0 0 auto}
 body .account-menu>summary{display:flex;align-items:center;min-height:44px;padding:7px 9px}
 body.signed-out main>header .account-menu{display:none}
 body .biz .compact-top-toolbar{grid-template-columns:minmax(0,1fr) 74px 66px!important;gap:6px!important;margin:0 0 8px!important}
 body .biz .compact-top-toolbar #bizSearch,body .biz .compact-top-toolbar #bizNew{grid-column:auto!important;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:9px 10px!important}
 body .biz .compact-top-toolbar .workspace-filters>summary{padding:11px 6px!important;font-size:13px!important;min-height:44px}
 body .biz .compact-top-toolbar .workspace-filters>.row{right:0;top:47px;max-width:calc(100vw - 28px)}
 body .biz .compact-top-toolbar #bizBranch{width:100%;min-width:0}
 body .biz .simple-list-heading{display:flex!important;flex-wrap:nowrap!important;gap:6px;margin:4px 0 8px!important;min-height:44px}
 body .biz .simple-list-heading>strong{font-size:12px!important;line-height:1.3;max-width:40%}
 body .biz .simple-list-heading .simple-filter-label{font-size:0!important;gap:0}
 body .biz .simple-list-heading .simple-filter-label select{font-size:14px!important;min-width:0!important;width:155px;max-width:100%;padding:8px!important;min-height:44px}
 body main{padding-top:10px!important}
}
@media(min-width:901px){
 body:not(.signed-out) main{width:100%!important;max-width:none!important;margin:0!important;padding:16px 24px 28px!important}
 body:not(.signed-out) .nav-inner{width:100%!important;max-width:none!important;padding-inline:24px!important}
 body:not(.signed-out) main>header{min-height:44px;align-items:center;margin-bottom:12px;gap:12px}
 body:not(.signed-out) main>header h1{font-size:28px;margin:0}
 body:not(.signed-out) main>header .eyebrow{display:none}
 body .biz .compact-top-toolbar{grid-template-columns:minmax(160px,1fr) 100px 90px;max-width:none}
 body .dispatch-lanes{gap:12px;margin:12px 0}
 body .dispatch-lane{padding:12px}
}
@media(min-width:1600px){
 body[data-role=admin] .dispatch-lane{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:start}
 body[data-role=admin] .dispatch-lane>h3,body[data-role=admin] .dispatch-lane>p{grid-column:1/-1}
 body[data-role=admin] .dispatch-lane>.simple-job{margin:0;min-width:0}
 body .biz .simple-job-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* Compact private inbox: totals are same-page filters. */
.mail-toolbar{display:grid;grid-template-columns:minmax(160px,1fr) 190px 80px;gap:8px;margin-bottom:10px}.mail-toolbar>*{min-width:0}.mail-toolbar input,.mail-toolbar select{width:100%}.mail-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0}.mail-stats>button{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 14px;text-align:left;border:1px solid #d7e1e8;background:white;color:#173246;border-radius:9px}.mail-stats strong{font-size:26px;line-height:1}.mail-stats span{font-size:13px}.mail-stats button[aria-pressed=true]{background:#e7f1fa;border-color:#1b75bc;box-shadow:inset 0 0 0 1px #1b75bc}.mail-monitor{font-size:13px;margin:8px 0}.mail-monitor>summary{cursor:pointer;padding:8px 0;min-height:36px;color:#536d80}.mail-monitor p{margin:5px 0;font-size:13px!important}.mail-results-heading{display:flex;justify-content:space-between;align-items:center;margin:8px 0;font-size:14px}.mail-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mail-inquiry{display:flex;align-items:flex-start;gap:10px;padding:12px;background:white;border:1px solid #d7e1e8;border-left:3px solid #d7e1e8;border-radius:9px;min-width:0}.mail-inquiry.biz-overdue{border-left-color:#c95042}.mail-inquiry-content{flex:1;min-width:0}.mail-subject{display:block;background:none;border:0;color:#173246;padding:0;min-height:32px;font-size:15px;font-weight:700;text-align:left;width:100%}.mail-inquiry small{display:block;overflow-wrap:anywhere;font-size:12px!important}.mail-inquiry p{font-size:13px!important;line-height:1.4!important;margin:4px 0}.mail-quick-actions{display:flex;flex-direction:column;gap:6px;flex-shrink:0}.mail-quick-actions button{font-size:12px;padding:8px;min-height:36px}.mail-badges{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0}.mail-badges .biz-pill{font-size:11px!important;padding:3px 6px!important}.mail-dates{font-size:12px;color:#536d80}.mail-dates summary{cursor:pointer;padding:5px 0}.mail-load-note{display:block;margin:10px 0}
@media(max-width:900px){body .mail-toolbar{grid-template-columns:minmax(0,1fr) 120px 65px;gap:6px}body .mail-toolbar input,body .mail-toolbar select{padding:8px!important;font-size:14px!important}body .mail-toolbar summary{padding:12px 6px!important;font-size:13px}body .mail-stats{grid-template-columns:1fr 1fr;gap:6px}body .mail-stats>button{min-height:54px;padding:8px!important;gap:8px}body .mail-stats strong{font-size:23px}body .mail-stats span{font-size:12px}body .mail-results{grid-template-columns:1fr}body .mail-inquiry{padding:10px}body .mail-quick-actions button{min-height:44px!important;font-size:12px!important;padding:8px!important}body .mail-subject{min-height:44px;text-align:left!important}body .mail-results-heading button{font-size:12px!important}}
@media(max-width:359px){body .mail-toolbar{grid-template-columns:minmax(0,1fr) 65px}body .mail-toolbar #mailFilter{grid-row:2;grid-column:1/-1}body .mail-toolbar .workspace-tools{grid-column:2;grid-row:1}}
.mail-inquiry:only-child{grid-column:1/-1}
