/* Platform navigation wraps the existing production workflow without changing record logic. */
.hero.sc-platform-header{height:auto!important;min-height:112px!important;max-height:none!important;padding:20px clamp(16px,3vw,38px)!important;background:linear-gradient(90deg,#f9fcffef,#edf7ff66),url('/header-storm-art.png') center/cover no-repeat!important;position:relative!important;top:auto!important}.hero.sc-platform-header::after{display:none!important}.hero.sc-platform-header .sc-platform-brand img{border-radius:0;filter:none}.sc-platform-nav{position:sticky;top:0;z-index:1100}body[data-platform-view="home"] #productionWorkspace,body[data-platform-view="estimate"] #productionWorkspace{display:none!important}body:not([data-platform-view="production"]) #stormcoreApp>.main-nav,body:not([data-platform-view="production"]) #mobileQuickSearchPanel{display:none!important}body:not([data-platform-view="production"]){padding-bottom:0!important}#platformHome[hidden],#platformEstimate[hidden]{display:none!important}#platformEstimate{margin:0;padding:0;background:#f2f2f7}#platformEstimate iframe{display:block;border:0;width:100%;height:calc(100dvh - 190px);min-height:600px;background:#f2f2f7}.platform-estimate-message{max-width:900px;margin:24px auto;padding:22px;color:#314b70;background:white;border:1px solid #bdcce0;border-radius:16px;font:17px/1.6 system-ui}.platform-estimate-message button{min-height:48px;padding:10px 18px;background:#0064ce;color:white;border:0;border-radius:12px;font:600 17px system-ui}body.platform-estimate-work-mode .hero,body.platform-estimate-work-mode .sc-platform-nav{display:none!important}body.platform-estimate-work-mode #platformEstimate{position:fixed;inset:0;z-index:3000}body.platform-estimate-work-mode #platformEstimate iframe{height:100dvh;min-height:0}#platformHome button{width:100%}body[data-platform-view="production"] #stormcoreApp>.main-nav{top:72px!important;position:sticky!important;z-index:1000}body[data-platform-view="production"] .main-nav .desktop-quick-search,body[data-platform-view="production"] .main-nav #settingsBtn,body[data-platform-view="production"] .main-nav>.workflow-view-toolbar{position:static!important;top:auto!important}.sc-platform-nav button{margin:0!important}.hero.sc-platform-header .sc-platform-brand span{color:#355874}
@media(max-width:760px){.hero.sc-platform-header{min-height:94px!important;padding:16px!important}.sc-platform-nav{top:0;position:sticky!important}body[data-platform-view="production"] #stormcoreApp>.main-nav{position:fixed!important;top:auto!important;bottom:0!important;z-index:1200}body[data-platform-view="production"]{padding-bottom:80px!important}#platformEstimate iframe{height:calc(100dvh - 160px);min-height:500px}}
@media print{.sc-platform-header,.sc-platform-nav,#platformHome,#platformEstimate{display:none!important}}
body.workflow-focus-mode[data-platform-view="production"]{padding-bottom:0!important}body.workflow-focus-mode .sc-platform-nav{display:none!important}@media(max-width:360px){.sc-platform-nav>button{min-width:0;overflow-wrap:anywhere;font-size:13px;padding:9px 5px}}
/* FINAL10: field-friendly workspace landing. */
.sc-home-intro{display:flex;justify-content:space-between;align-items:center;gap:32px}.sc-home-intro>div:first-child{max-width:730px}.sc-home-intro p{margin:14px 0 0}.sc-home-date{flex-shrink:0;border-left:1px solid #bdcce0;padding-left:24px;color:#465c7a}.sc-home-date>span{display:block;font-size:11px;letter-spacing:.12em;font-weight:700;margin-bottom:8px}.sc-home-date time{display:block;font-size:16px;font-weight:600}.sc-platform-home .sc-home-grid{margin:34px 0 38px;gap:24px}.sc-platform-home article.sc-home-card{cursor:default;display:flex;flex-direction:column;padding:28px;background:linear-gradient(155deg,#f3f9ff 0%,#fff 48%)}.sc-home-card-top{display:flex;gap:14px;align-items:center}.sc-home-symbol{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;background:#e2efff;border:1px solid #b9d5f4;border-radius:15px;color:#0064ce}.sc-home-symbol svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sc-home-card .sc-home-kicker{font-size:12px;line-height:1.5}.sc-platform-home .sc-home-card h2{font-size:28px;line-height:1.22;letter-spacing:-.025em;margin:24px 0 0;max-width:370px}.sc-home-card p{margin:15px 0}.sc-home-features{padding:0;list-style:none;margin:3px 0 28px;color:#465c7a;font-size:16px;line-height:1.55}.sc-home-features li{position:relative;padding-left:24px;margin:10px 0}.sc-home-features li:before{content:'�';position:absolute;left:0;color:#176a57;font-weight:700}.sc-home-primary{margin-top:auto;min-height:54px;display:flex;align-items:center;justify-content:space-between;background:#0064ce;border:1px solid #0064ce;border-radius:12px;padding:14px 18px;color:#fff;font:650 17px/1.4 system-ui;cursor:pointer}.sc-home-production .sc-home-primary{background:#edf5ff;color:#0058b5;border-color:#a6c8eb}.sc-home-primary:hover{background:#0054b0;color:#fff}.sc-home-card>small{display:block;margin-top:12px;font-size:13px;line-height:1.5;color:#465c7a}.sc-home-section-heading{display:flex;gap:24px;align-items:baseline;justify-content:space-between;margin-bottom:16px}.sc-home-section-heading h2{font-size:22px;margin:0;letter-spacing:-.02em}.sc-home-section-heading p{font-size:15px;margin:0}.sc-home-shortcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.sc-home-shortcut-grid button{min-height:150px;text-align:left;border:1px solid #bdcce0;border-radius:16px;padding:18px;background:#fff;color:#182a4b;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:start;gap:9px}.sc-home-shortcut-grid button>span{color:#0064ce;font-size:26px;line-height:1}.sc-home-shortcut-grid b{font-size:16px;line-height:1.4}.sc-home-shortcut-grid small{font-size:13px;color:#465c7a;line-height:1.5}.sc-home-shortcut-grid button:hover{border-color:#6a9dd2;background:#f5faff}.sc-platform-home button:focus-visible,.sc-home-guide summary:focus-visible{outline:3px solid #0064ce;outline-offset:4px}.sc-home-guide{margin-top:30px;border:1px solid #bdcce0;border-radius:16px;background:#fff}.sc-home-guide summary{cursor:pointer;padding:22px;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none}.sc-home-guide summary::-webkit-details-marker{display:none}.sc-home-guide summary b{font-size:17px}.sc-home-guide summary small{display:block;margin-top:6px;color:#465c7a;font-size:14px}.sc-home-guide-toggle{font-size:26px;color:#0064ce}.sc-home-guide[open] .sc-home-guide-toggle{transform:rotate(45deg)}.sc-home-guide ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;list-style:none;counter-reset:steps;margin:0;padding:8px 24px 24px}.sc-home-guide li{counter-increment:steps;font-size:15px;line-height:1.5}.sc-home-guide li:before{content:counter(steps,decimal-leading-zero);display:block;color:#0064ce;font-size:13px;letter-spacing:.08em;margin-bottom:10px;font-weight:700}.sc-home-guide li b,.sc-home-guide li span{display:block}.sc-home-guide li span{color:#465c7a;margin-top:8px}.sc-home-guide .sc-home-pilot-note{font-size:13px;line-height:1.6;padding:16px 24px;margin:0;background:#f0f6ff;border-top:1px solid #d4e0ee;border-radius:0 0 16px 16px}.sc-home-footer{display:flex;justify-content:space-between;gap:16px;margin-top:28px;font-size:12px;letter-spacing:.06em;color:#465c7a}.sc-home-footer span{letter-spacing:0}
@media(max-width:1000px){.sc-home-date{display:none}.sc-home-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sc-home-guide ol{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.sc-platform-home{padding:28px 16px}.sc-platform-home article.sc-home-card{padding:22px}.sc-platform-home .sc-home-card h2{font-size:26px}.sc-home-intro p{font-size:17px}.sc-home-section-heading{display:block}.sc-home-section-heading p{margin-top:7px}.sc-home-shortcut-grid{gap:10px}.sc-home-shortcut-grid button{padding:16px;min-height:155px}.sc-home-guide ol{grid-template-columns:1fr;gap:22px}.sc-home-footer{flex-direction:column;gap:8px}}@media(prefers-reduced-motion:no-preference){.sc-home-primary,.sc-home-shortcut-grid button{transition:background .15s,border-color .15s}}
/* Dialogs must remain above the shared sticky navigation. */
#stormcoreApp>#modal{z-index:2400}
/* FINAL11: shortcut-first home and persistent icon quick links. */
.sc-home-shortcuts{margin-top:28px}.sc-nav-quicklinks{flex-basis:100%;display:flex;gap:8px;padding-top:8px;border-top:1px solid #c1d5e9}.sc-nav-quicklinks button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 15px;background:#f8fbff;border:1px solid #adc7e0;border-radius:10px;color:#285780;font:600 14px/1.3 system-ui;cursor:pointer}.sc-nav-quicklinks svg{width:21px;height:21px;flex-shrink:0;stroke-linecap:round;stroke-linejoin:round}.sc-nav-quicklinks button:hover{background:#cde3fc}.sc-nav-quicklinks button:focus-visible{outline:3px solid #0064ce;outline-offset:2px}body[data-platform-view="production"] #stormcoreApp>.main-nav{top:var(--sc-platform-nav-height,132px)!important}
@media(max-width:760px){.sc-platform-nav{flex-wrap:wrap}.sc-nav-quicklinks{padding-top:6px;gap:6px}.sc-nav-quicklinks button{flex:1;padding:9px 6px}.sc-nav-quicklinks button span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.sc-platform-context{display:none}body[data-platform-view="production"] #stormcoreApp>.main-nav{top:auto!important}}
/* FINAL13: unified record navigation, no mobile bottom dock. */
body #stormcoreApp>.main-nav{display:flex!important;position:sticky!important;top:var(--sc-platform-nav-height,72px)!important;bottom:auto!important;left:auto!important;right:auto!important;width:100%!important;transform:none!important;flex-wrap:wrap!important;min-height:64px!important;margin:0!important;padding:8px 16px!important;background:#edf5ff!important;border-bottom:1px solid #bdcce0!important;z-index:1050!important;box-sizing:border-box!important}body:not([data-platform-view="production"]) .workflow-view-toolbar{display:none!important}body[data-platform-view="production"]{padding-bottom:0!important}.main-nav .workflow-view-toolbar{position:fixed!important;right:16px!important;bottom:16px!important;top:auto!important;z-index:1400!important}.workflow-view-toolbar #workflowFocusToggle{width:52px;min-height:52px;padding:12px;border-radius:14px;background:#fff;box-shadow:0 4px 18px #182a4b26}.workflow-view-toolbar #workflowFocusToggle>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.workflow-focus-mode #stormcoreApp>.main-nav{display:none!important}.workflow-focus-mode #productionWorkspace>.workflow-view-toolbar{position:fixed!important;right:16px!important;bottom:16px!important;z-index:1400!important}#modal .close{width:48px!important;height:48px!important;padding:6px!important;border:0!important;background:transparent!important;border-radius:10px!important;display:grid;place-items:center}#modal .close img{display:block;width:36px;height:36px}.sc-home-card h2{white-space:nowrap;font-size:clamp(21px,2.2vw,28px)!important}.main-nav button{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;flex-shrink:0}.sc-platform-context{display:none!important}.sc-home-footer span:empty{display:none}@media(max-width:760px){body #stormcoreApp>.main-nav{gap:6px!important;padding:8px!important}.main-nav .navbtn{min-height:44px!important;padding:10px!important}.main-nav .desktop-quick-search{display:none!important}body #mobileQuickSearchPanel{position:sticky!important;top:calc(var(--sc-platform-nav-height,64px) + 64px)!important;bottom:auto!important}.workflow-view-toolbar{bottom:max(14px,env(safe-area-inset-bottom))!important}}
.sc-confirm-dialog{padding:24px;border:1px solid #bdcce0;border-radius:18px;width:min(460px,calc(100vw - 28px));max-height:85dvh;overflow:auto;background:#f8fbff;color:#182a4b;box-shadow:0 20px 80px #182a4b44}.sc-confirm-dialog::backdrop{background:#182a4b88}.sc-confirm-heading{display:flex;align-items:center;gap:14px}.sc-confirm-heading h2{margin:0;font:700 22px/1.3 system-ui}.sc-confirm-dialog p{font:16px/1.6 system-ui;color:#465c7a}.sc-confirm-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.sc-confirm-actions button{min-height:48px;border:1px solid #abc4df;border-radius:10px;padding:12px 16px;white-space:nowrap;background:#fff;color:#285780;font:600 15px system-ui}.sc-confirm-actions [data-discard]{background:#b62f3d;color:#fff;border-color:#b62f3d}.sc-confirm-actions button:focus-visible{outline:3px solid #0064ce;outline-offset:3px}
.customer-file-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.customer-file-list{display:grid;gap:10px;margin-bottom:20px}.customer-file-list article{display:grid;gap:7px;padding:14px;background:#f2f7ff;border:1px solid #bdcce0;border-radius:12px}.customer-file-list small{color:#465c7a}.customer-file-list button{justify-self:start}.customer-invoice{padding:22px;border:1px solid #bdcce0;background:#fff;color:#182a4b}.customer-invoice header{display:flex;align-items:center;gap:14px}.customer-invoice dl{display:grid;grid-template-columns:1fr auto;gap:12px}.customer-invoice dd{margin:0;font-weight:700}#invoiceDraftForm,#customerPaymentForm{display:grid;gap:12px}#invoiceDraftForm label,#customerPaymentForm label{display:grid;gap:6px}.customer-file-list button,.customer-file-actions button{white-space:nowrap}@media print{body.printing-customer-invoice #stormcoreAuthGate,body.printing-customer-invoice #stormcoreApp>:not(#modal){display:none!important}body.printing-customer-invoice #modal{position:static!important;display:block!important;background:white!important;padding:0!important}body.printing-customer-invoice #modal>.card{width:100%!important;max-height:none!important;overflow:visible!important;box-shadow:none!important;border:0!important}body.printing-customer-invoice #modalBody>:not(.customer-invoice),body.printing-customer-invoice #closeModal{display:none!important}.customer-invoice{border:0!important}}
body:not([data-platform-view="production"]) #stormcoreApp>.main-nav{display:flex!important}body.workflow-focus-mode #stormcoreApp>.main-nav{display:none!important}
/* Record tools share one normal flow on every platform view. */
.main-nav #settingsBtn,.main-nav .desktop-quick-search{position:static!important;top:auto!important;right:auto!important;bottom:auto!important;transform:none!important}.main-nav .desktop-quick-search{flex:1;min-width:160px;max-width:360px}.main-nav #settingsBtn{margin-left:0!important}
body #stormcoreApp>.main-nav{height:auto!important;border-radius:0!important;backdrop-filter:none!important}body[data-platform-view="production"] #productionWorkspace>.workflow-view-toolbar{display:block!important;position:fixed!important;inset:auto 16px 16px auto!important;z-index:1400!important;width:52px!important;height:52px!important;padding:0!important}body[data-platform-view="production"] #productionWorkspace>.workflow-view-toolbar #workflowFocusToggle{width:52px!important;min-width:52px!important;max-width:52px!important;height:52px!important;margin:0!important;padding:12px!important}.workflow-focus-mode #productionWorkspace>.workflow-view-toolbar #workflowFocusToggle{display:flex!important}
.hosted-payment-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;margin:12px 0;background:#0064ce;color:#fff!important;border-radius:10px;font-weight:700;text-decoration:none;white-space:nowrap}#hostedLinkForm{display:grid;gap:14px}#hostedLinkForm label{display:grid;gap:8px}#hostedLinkForm #hostedLinkConfirmed{width:22px;min-height:22px}
.record-notice{z-index:3200!important}.invoice-state{font-size:13px;font-weight:750;letter-spacing:.04em;color:#705627;padding:10px;background:#fff8e8;border-radius:8px}#invoicePricingVerified{width:22px;min-height:22px}
.hosted-payment-button{font-size:clamp(13px,3.5vw,16px)}.customer-invoice .customer-file-actions a{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;text-decoration:none;border:1px solid #abc4df;border-radius:10px;color:#0058b5;white-space:nowrap}
.invoice-state.is-issued{background:#e8f6ee;color:#176a45}.customer-invoice p{overflow-wrap:anywhere}.customer-invoice dl{grid-template-columns:minmax(0,1fr) auto;font-size:clamp(12px,3vw,16px)}.customer-invoice dt,.customer-invoice dd{white-space:nowrap}@media print{.customer-invoice .customer-file-actions{display:none!important}}

/* FINAL19: one desktop header; mobile navigation docks above the safe area. */
.sc-platform-nav>button,.main-nav>.navbtn{white-space:nowrap;flex-shrink:0}
@media screen and (max-width:760px), screen and (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 body[data-platform-view]{padding-bottom:calc(148px + env(safe-area-inset-bottom,0px))!important;scroll-padding-bottom:calc(148px + env(safe-area-inset-bottom,0px))}
 #stormcoreApp>.sc-platform-nav{position:fixed!important;inset:auto 0 0!important;z-index:1200!important;height:calc(64px + env(safe-area-inset-bottom,0px));padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));display:flex;flex-wrap:nowrap;gap:8px;background:#e9f3ff;border-top:1px solid #bdcce0;border-bottom:0}
 #stormcoreApp>.sc-platform-nav>button{flex:1;min-width:0;min-height:48px;height:48px;padding:8px 4px;font-size:14px;line-height:1.2;white-space:nowrap}
 body[data-platform-view] #stormcoreApp>.main-nav{position:fixed!important;inset:auto 0 calc(64px + env(safe-area-inset-bottom,0px))!important;height:64px!important;min-height:64px!important;display:flex!important;flex-wrap:nowrap!important;justify-content:space-around;gap:8px;padding:8px 10px!important;border-top:1px solid #bdcce0!important;border-bottom:1px solid #cddcec!important;border-radius:16px 16px 0 0!important;background:#f4f9ff!important;box-shadow:0 -5px 20px #182a4b12;z-index:1201!important}
 body[data-platform-view] #stormcoreApp>.main-nav>.navbtn{display:flex!important;align-items:center;justify-content:center;flex:1;min-width:44px!important;max-width:72px!important;width:auto!important;height:48px!important;min-height:48px!important;margin:0!important;padding:10px!important}
 .main-nav>.navbtn>span:not(.nav-icon){display:none!important}.main-nav>.navbtn .nav-icon{display:flex!important;margin:0!important}.main-nav>.navbtn svg{width:23px!important;height:23px!important}
 body[data-platform-view] #stormcoreApp>.main-nav .desktop-quick-search{display:none!important}
 body[data-platform-view] #stormcoreApp>.main-nav .menu{position:fixed!important;inset:auto 10px calc(136px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-height:calc(100dvh - 160px);overflow-y:auto!important}
 body[data-platform-view] #mobileQuickSearchPanel:not(.hidden){display:block!important;position:fixed!important;inset:auto 10px calc(136px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-height:calc(100dvh - 160px);overflow-y:auto;z-index:1250!important}
 body[data-platform-view="production"] #productionWorkspace>.workflow-view-toolbar{inset:auto 16px calc(144px + env(safe-area-inset-bottom,0px)) auto!important}
 body.workflow-focus-mode[data-platform-view]{padding-bottom:0!important}body.workflow-focus-mode #stormcoreApp>.main-nav{display:none!important}
 body.workflow-focus-mode[data-platform-view="production"] #productionWorkspace>.workflow-view-toolbar{inset:auto 16px 16px auto!important}
 #platformEstimate iframe{min-height:calc(100dvh - 250px)}
}
@media screen and (max-width:760px), screen and (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 body.workflow-focus-mode #stormcoreApp>.sc-platform-nav,body.platform-estimate-work-mode #stormcoreApp>.sc-platform-nav,body.platform-estimate-work-mode #stormcoreApp>.main-nav{display:none!important}
 body.platform-estimate-work-mode[data-platform-view]{padding-bottom:0!important}
}

/* FINAL20: workspace tabs and directories are one navigation landmark. */
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav{position:sticky!important;inset:0 auto auto!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important;height:auto!important;min-height:72px!important;padding:10px 16px!important;background:#deeeff!important;border-radius:0!important;border-top:0!important;border-bottom:1px solid #bdcce0!important;z-index:1200!important}
body[data-platform-view] .sc-platform-nav.main-nav>.navbtn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:48px!important;width:auto!important;min-width:48px!important;max-width:none!important;padding:10px 13px!important;margin:0!important;white-space:nowrap!important;font-size:14px!important;line-height:1.2!important;border:1px solid #adc7e0!important;border-radius:12px!important;flex:0 0 auto!important}
.sc-platform-nav.main-nav>.navbtn .nav-icon{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;flex:none}.sc-platform-nav.main-nav>.navbtn svg{width:22px!important;height:22px!important;stroke-width:1.8;flex:none}
body[data-platform-view] .sc-platform-nav.main-nav>.navbtn>span:not(.nav-icon){display:inline!important}.sc-platform-nav.main-nav .chev{display:none!important}
body[data-platform-view] .sc-platform-nav.main-nav>.navbtn[aria-current="page"]{background:#cde3ff!important;border-color:#669cd1!important;color:#064f9e!important}
body[data-platform-view] .sc-platform-nav.main-nav>.desktop-quick-search{flex:1!important;min-width:150px!important;max-width:300px!important;margin-left:auto!important}
body[data-platform-view] .sc-platform-nav.main-nav>#settingsBtn{padding:10px!important}body[data-platform-view] .sc-platform-nav.main-nav>#settingsBtn>span{display:none!important}
@media screen and (min-width:761px){body[data-platform-view] .sc-platform-nav.main-nav>#mobileQuickSearchBtn{display:none!important}}
@media screen and (min-width:761px) and (max-width:1100px){body[data-platform-view] .sc-platform-nav.main-nav>.navbtn{padding:9px!important;gap:6px!important;font-size:13px!important}.sc-platform-nav.main-nav>.navbtn .nav-icon{width:20px!important}.sc-platform-nav.main-nav>.navbtn svg{width:20px!important;height:20px!important}body[data-platform-view] .sc-platform-nav.main-nav>.desktop-quick-search{flex-basis:100%!important;max-width:none!important}}
@media screen and (max-width:760px), screen and (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 body[data-platform-view]{padding-bottom:calc(156px + env(safe-area-inset-bottom,0px))!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav{position:fixed!important;inset:auto 0 0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:58px 58px;gap:4px 6px!important;height:calc(136px + env(safe-area-inset-bottom,0px))!important;min-height:0!important;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid #bdcce0!important;border-bottom:0!important;border-radius:16px 16px 0 0!important;box-shadow:0 -4px 18px #182a4b14}
 body[data-platform-view] .sc-platform-nav.main-nav>.navbtn{display:flex!important;flex-direction:column!important;gap:4px!important;width:100%!important;max-width:none!important;min-width:0!important;height:58px!important;min-height:44px!important;padding:5px 2px!important;font-size:11px!important;line-height:1.1!important;margin:0!important;overflow:hidden}
 body[data-platform-view] .sc-platform-nav.main-nav>.navbtn svg{width:22px!important;height:22px!important}body[data-platform-view] .sc-platform-nav.main-nav>#settingsBtn{padding:5px 2px!important}body[data-platform-view] .sc-platform-nav.main-nav>#settingsBtn>span{display:inline!important}
 body[data-platform-view] .sc-platform-nav.main-nav>.desktop-quick-search{display:none!important}
 body[data-platform-view] #stormcoreApp>.main-nav .menu,body[data-platform-view] #mobileQuickSearchPanel:not(.hidden){bottom:calc(144px + env(safe-area-inset-bottom,0px))!important;max-height:calc(100dvh - 168px)}
 body[data-platform-view="production"] #productionWorkspace>.workflow-view-toolbar{bottom:calc(152px + env(safe-area-inset-bottom,0px))!important}
}
body.workflow-focus-mode[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav,body.platform-estimate-work-mode[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav{display:none!important}
body.workflow-focus-mode[data-platform-view="production"] #productionWorkspace>.workflow-view-toolbar{inset:auto 16px 16px auto!important}
/* Normalize inherited icon badges and anchor the search icon to its field. */
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.navbtn .nav-icon{width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;position:static!important;transform:none!important;line-height:1!important;padding:0!important}
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.navbtn>.chev{display:none!important}
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.desktop-quick-search{position:relative!important}

/* FINAL21: never wrap the navigation; progressively collapse secondary tools. */
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav{flex-wrap:nowrap!important;height:68px!important;min-height:68px!important;padding:8px 16px!important;gap:8px!important}
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#navMoreBtn{display:none!important}
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.desktop-quick-search{flex:1 1 180px!important;min-width:140px!important;max-width:300px!important}
@media screen and (min-width:761px) and (max-width:1279px){
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.navbtn{padding:10px!important;width:48px!important;min-width:48px!important;height:48px!important;gap:0!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.navbtn>span:not(.nav-icon){display:none!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.desktop-quick-search{display:flex!important;flex:1 1 160px!important;max-width:none!important}
}
@media screen and (max-width:760px), screen and (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 body[data-platform-view]{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:48px;flex-wrap:nowrap!important;gap:6px!important;height:calc(64px + env(safe-area-inset-bottom,0px))!important;min-height:0!important;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px))!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.navbtn{width:100%!important;height:48px!important;min-height:48px!important;padding:3px 1px!important;gap:3px!important;font-size:10px!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#contractorsBtn,body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#vendorsBtn,body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#mobileQuickSearchBtn,body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#settingsBtn,body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.desktop-quick-search{display:none!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#navMoreBtn{display:flex!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.navbtn>span:not(.nav-icon){display:inline!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav .menu,body[data-platform-view] #mobileQuickSearchPanel:not(.hidden){bottom:calc(72px + env(safe-area-inset-bottom,0px))!important;max-height:calc(100dvh - 96px)}
 body[data-platform-view="production"] #productionWorkspace>.workflow-view-toolbar{bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
}
body.workflow-focus-mode[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav,body.platform-estimate-work-mode[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav{display:none!important}
body.workflow-focus-mode[data-platform-view="production"] #productionWorkspace>.workflow-view-toolbar{inset:auto 16px 16px auto!important}
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>.navbtn>span.chev{display:none!important}
/* Keep the overflow trigger last, independent of legacy directory ordering. */
.sc-platform-nav.main-nav>#platformHomeBtn{order:0!important}.sc-platform-nav.main-nav>#platformProductionBtn{order:1!important}.sc-platform-nav.main-nav>#platformEstimateBtn{order:2!important}.sc-platform-nav.main-nav>#customersBtn{order:3!important}.sc-platform-nav.main-nav>#contractorsBtn{order:4!important}.sc-platform-nav.main-nav>#vendorsBtn{order:5!important}.sc-platform-nav.main-nav>.desktop-quick-search,.sc-platform-nav.main-nav>#mobileQuickSearchBtn{order:6!important}.sc-platform-nav.main-nav>#settingsBtn{order:7!important}.sc-platform-nav.main-nav>#navMoreBtn{order:8!important}
/* FINAL22: owner-selected mobile order; workspace links remain in More. */
@media screen and (max-width:760px), screen and (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#platformProductionBtn,body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#platformEstimateBtn{display:none!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#contractorsBtn,body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#vendorsBtn{display:flex!important}
 .sc-platform-nav.main-nav>#platformHomeBtn{order:0!important}.sc-platform-nav.main-nav>#customersBtn{order:1!important}.sc-platform-nav.main-nav>#contractorsBtn{order:2!important}.sc-platform-nav.main-nav>#vendorsBtn{order:3!important}.sc-platform-nav.main-nav>#navMoreBtn{order:4!important}
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#navMoreBtn[data-active-view="production"],body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#navMoreBtn[data-active-view="estimate"]{background:#cde3ff!important;border-color:#669cd1!important;color:#064f9e!important}
}
/* FINAL23: job modules share one dropdown, apart from contact directories. */
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#platformProductionBtn,body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#platformEstimateBtn{display:none!important}
.sc-platform-nav.main-nav>#customersBtn{order:1!important}.sc-platform-nav.main-nav>#contractorsBtn{order:2!important}.sc-platform-nav.main-nav>#vendorsBtn{order:3!important}.sc-platform-nav.main-nav>#jobToolsBtn{order:4!important}
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#jobToolsBtn[data-active-view="production"],body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#jobToolsBtn[data-active-view="estimate"]{background:#cde3ff!important;border-color:#669cd1!important;color:#064f9e!important}
@media screen and (max-width:760px), screen and (max-width:1000px) and (max-height:500px) and (pointer:coarse){body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav>#jobToolsBtn{display:none!important}}
/* FINAL23: consistent breathing room above production filters at every width. */
body[data-platform-view="production"] #productionWorkspace{padding:12px clamp(10px,1.2vw,20px) 10px!important}
#productionWorkspace .job-view-toolbar{margin:0 0 10px!important;gap:8px;min-height:44px}
#productionWorkspace .job-view-actions{gap:8px}
#productionWorkspace #statusViewButton,#productionWorkspace #contractorViewButton{min-height:44px;white-space:nowrap}
/* Approved light navigation contrast: separate work controls from the banner. */
body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav{background:#cbdff0!important;border-bottom:1px solid #91afc9!important;box-shadow:0 2px 7px #29496314}
@media screen and (max-width:760px), screen and (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 body[data-platform-view] #stormcoreApp>.sc-platform-nav.main-nav{border-top:1px solid #91afc9!important;border-bottom:0!important;box-shadow:0 -2px 9px #2949631a}
}
/* FINAL25: crisp live-text wordmark, balanced beside the standalone swirl. */
.hero.sc-platform-header .sc-platform-brand{gap:clamp(12px,1.2vw,18px);width:fit-content;max-width:100%;align-items:center}
.hero.sc-platform-header .sc-platform-brand>div{min-width:0}
.hero.sc-platform-header .sc-platform-brand strong{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;font-size:clamp(18px,1.5vw,22px);font-weight:700;line-height:1.2;letter-spacing:.055em;color:#124c7c;white-space:nowrap}
.hero.sc-platform-header .sc-platform-brand span{font-size:clamp(14px,1.05vw,16px);font-weight:400;line-height:1.4;letter-spacing:.01em;margin-top:6px}
.hero.sc-platform-header .sc-platform-brand:focus-visible{outline:2px solid #0064ce;outline-offset:6px;border-radius:6px}
@media(max-width:360px){.hero.sc-platform-header .sc-platform-brand strong{font-size:17px;letter-spacing:.04em}}
/* Authorized voice-session Home dashboard. */
#platformHome{max-width:none;padding:0 24px 30px;background:#f4f7fb;color:#142033}
#platformHome[hidden]{display:none!important}
.workday-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:27px 0 22px}.workday-heading h1{font:750 28px/1.2 system-ui;margin:4px 0}.workday-eyebrow{font:600 12px system-ui;letter-spacing:.04em;color:#496078;margin:0}.workday-header-actions{display:flex;align-items:center;gap:12px;font:600 13px system-ui}.workday-menu{display:none}
.workday-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.workday-stat{display:grid;gap:8px;padding:18px;border:1px solid #dce5ef;border-radius:10px;background:white;min-width:0}.workday-stat>span{font:600 12px system-ui;color:#496078}.workday-stat>strong{font:750 23px system-ui;color:#075fc7;overflow-wrap:anywhere}.workday-stat small{font:12px/1.5 system-ui;color:#52667d}
.workday-columns{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:20px}.workday-main,.workday-aside{display:grid;gap:20px;align-content:start;min-width:0}.workday-card{background:#fff;border:1px solid #dce5ef;border-radius:10px;padding:20px;min-width:0}.workday-card h2{font:750 18px system-ui;margin:0 0 17px;color:#142033}.workday-muted,.workday-empty{font:13px/1.6 system-ui;color:#52667d;margin:12px 0}.workday-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e5ebf2;padding:14px 0;min-width:0}.workday-item>div{min-width:0}.workday-item strong{font:650 14px system-ui;overflow-wrap:anywhere}.workday-item p{font:12px/1.5 system-ui;color:#52667d;margin:4px 0;overflow-wrap:anywhere}.workday-item small{font:12px/1.5 system-ui;color:#075fc7}.workday-card button,.workday-menu{min-width:44px;min-height:44px;border:1px solid #c6daee;border-radius:7px;background:#edf5ff;color:#075fc7;padding:8px 12px;font:600 13px system-ui;cursor:pointer}.workday-card button:focus-visible,.workday-menu:focus-visible{outline:3px solid #075fc7;outline-offset:2px}.workday-search{box-sizing:border-box;width:100%;min-height:44px;border:1px solid #c6daee;border-radius:7px;padding:10px 12px;font:14px system-ui}.workday-calendar-heading{display:flex;gap:8px;align-items:center;justify-content:space-between}.workday-calendar-heading strong{font:650 13px system-ui;text-align:center}.workday-calendar-heading button{font-size:11px;max-width:90px;white-space:normal}.workday-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin-top:12px}.workday-weekday{padding:8px 0;text-align:center;font:600 11px system-ui;color:#52667d}.workday-calendar button{min-width:0;padding:7px 0;position:relative;border-color:transparent;background:transparent;color:#284561}.workday-calendar button.has-events:after{content:'';position:absolute;bottom:4px;left:calc(50% - 2px);width:4px;height:4px;background:#075fc7;border-radius:50%}.workday-calendar button[aria-current=date]{border-color:#075fc7}.workday-calendar button[aria-pressed=true]{background:#075fc7;color:white}.workday-calendar button[aria-pressed=true]:after{background:white}
@media(max-width:1100px){.workday-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.workday-columns{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}}
@media(max-width:800px){#platformHome{padding:0 16px 90px}.workday-columns{grid-template-columns:minmax(0,1fr)}.workday-menu{display:inline-block}.workday-heading{align-items:flex-start}.workday-header-actions{flex-direction:column;align-items:flex-end}.workday-heading h1{font-size:25px}.workday-card{padding:16px}.workday-stat{padding:14px}.workday-stat>strong{font-size:20px}.workday-stats{gap:10px}.workday-heading time{font-size:11px}.workday-calendar{gap:6px}}

/* Interactive daily schedule controls retain the StormCore palette. */
.workday-schedule-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.workday-schedule-actions button,.workday-schedule-actions input{min-height:44px;box-sizing:border-box;border:1px solid #c6daee;border-radius:7px;padding:9px 12px;font:600 13px system-ui;background:#edf5ff;color:#075fc7}.workday-schedule-actions input{background:#fff;color:#142033;min-width:0}.workday-schedule-actions button:focus-visible,.workday-schedule-actions input:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}@media(max-width:600px){.workday-schedule-actions>*{flex:1 1 40%}}

/* Accessible customer-linked appointment actions. */
.workday-add-appointment,.module-heading .contact-add-appointment,.schedule-toolbar .schedule-add-appointment{box-sizing:border-box;min-height:44px;padding:11px 16px!important;border:1px solid #075fc7!important;border-radius:7px;background:#075fc7!important;color:#fff!important;font:700 14px system-ui;white-space:normal}
.customer-appointments{border:1px solid #d5e3f1;border-radius:10px;background:#f8fbff;padding:16px;margin:18px 0}.customer-appointments h3{margin-top:0;color:#0c1c2f}.customer-appointments button{min-height:44px}.customer-appointments article{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.customer-appointments span{overflow-wrap:anywhere}.workday-add-appointment:focus-visible,.contact-add-appointment:focus-visible,.schedule-add-appointment:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}@media(max-width:600px){.workday-header-actions{flex-wrap:wrap}.workday-add-appointment,.module-heading .contact-add-appointment{width:100%}.customer-appointments article button{width:100%}}
