/* FINAL84: StormCore presence INSIDE pages and dialogs only. App headers/nav retain their approved CSS. */
#platformHome,#productionWorkspace,#workspaceModule{background:linear-gradient(135deg,#e1eaf4 0%,#d5e2ef 100%)}
#platformHome .workday-stat{position:relative;overflow:hidden;background:linear-gradient(125deg,#102c47,#17456a);border:1px solid #305a7d;border-left:5px solid #1687f7;box-shadow:0 7px 18px #09243b20;color:#fff}
#platformHome .workday-stat>span,#platformHome .workday-stat>small{position:relative;z-index:1;color:#d7e9f9}
#platformHome .workday-stat>strong{position:relative;z-index:1;color:#fff}
#platformHome .workday-stat:after{content:'';position:absolute;right:-15px;bottom:-20px;width:105px;height:105px;background:url('stormcore-approved-blue-swirl.png') center/contain no-repeat;opacity:.18;pointer-events:none}
#platformHome .workday-stat button{position:relative;z-index:1;background:#eaf4ff;border:1px solid #9bc7ef;color:#0758a7;border-radius:7px;min-height:44px}
#platformHome .workday-card{background:#f8fbff;border:1px solid #9bb6cf;box-shadow:0 5px 15px #15344d12;overflow:hidden}
#platformHome .workday-card>h2{background:#102e49 url('stormcore-approved-blue-swirl.png') right 15px center/30px no-repeat;color:#fff;padding:15px 54px 15px 20px;margin:-20px -20px 18px;border-bottom:3px solid #1687f7;font-size:17px}
#platformHome .workday-item{border-top-color:#bed0e1}
#platformHome .workday-item strong{color:#0c2b47}
#platformHome .workday-item p,#platformHome .workday-empty{color:#3b556e}
#platformHome .workday-calendar button.has-events{background:#e0edfc;border:1px solid #b7cfe9}
#platformHome .workday-calendar button[aria-pressed=true]{background:#075fc7;color:#fff;border-color:#075fc7}
#productionWorkspace .production-controls{background:#e4edf7;border-bottom:1px solid #9db7cf}
#productionWorkspace .board-wrap{border:1px solid #8daac5;box-shadow:0 6px 20px #102c4615;border-radius:10px;overflow:auto}
#productionWorkspace .board-heading{background:#102e49!important;border-bottom:3px solid #1687f7;color:#fff!important}
#productionWorkspace .board-heading .th-label{color:#fff}
#productionWorkspace #board .board-heading>div{background:#102e49!important;color:#fff!important;border-color:#315778}
#productionWorkspace #board .board-heading :is(button,.th-label){color:#fff!important}
#productionWorkspace #board .board-heading span{color:#fff!important}
#productionWorkspace #board .job-row{--sc-row-background:#f8fbff}
#productionWorkspace #board .job-row.alternate-row{--sc-row-background:#e8f1fa}
#productionWorkspace #board .job-row.job-complete{--sc-row-background:#eaf8ef}
#productionWorkspace .board-heading .head-icon{stroke:#9cceff}
#productionWorkspace .job-row{background:#fff;border-bottom-color:#c0d0df}
#productionWorkspace .job-row:nth-child(4n+1){background:#edf4fc}
#productionWorkspace .detail-row{background:#dce9f6;border-color:#9bb6cf}
#workspaceModule #modal[data-workspace-page]>.card{background:#edf3fa!important;border:1px solid #99b3ca!important;box-shadow:0 5px 18px #0b2b4514!important}
#workspaceModule .module-toolbar{padding:12px;background:#dce8f5;border:1px solid #a4bed7;border-radius:9px}
#workspaceModule .module-record{padding:18px;border:1px solid #a9bfd3;border-left:4px solid #1179df;border-radius:9px;background:#fff;margin-bottom:12px}
#workspaceModule .module-record strong{color:#102e49}
#workspaceModule .module-record p,#workspaceModule .module-record small{color:#3b556d}
#workspaceModule #modal[data-workspace-page=contacts] .module-record{background:#fff;border-color:#a5bdd3;border-top:3px solid #147be2;border-left:1px solid #a5bdd3;box-shadow:0 3px 10px #102b4310}
#workspaceModule .tool-card{position:relative;overflow:hidden;background:linear-gradient(145deg,#fff,#dceafb);border:1px solid #8daecc;border-top:5px solid #0877e3;box-shadow:0 6px 18px #0c2b4514}
#workspaceModule .tool-card:after{content:'';position:absolute;right:-25px;bottom:-25px;width:160px;height:160px;background:url('stormcore-approved-blue-swirl.png') center/contain no-repeat;opacity:.08;pointer-events:none}
#workspaceModule .tool-card>*{position:relative;z-index:1}
#workspaceModule .tool-card h2{color:#102e49;font-size:23px}
#workspaceModule .fieldcam-card,#workspaceModule .storm-card{background:#fff;border-color:#99b5cf;border-top:4px solid #147be2;box-shadow:0 4px 12px #0c2a4210}
#workspaceModule .fieldcam-capture,#workspaceModule .storm-track-form{background:#dbe8f6;border:1px solid #8fadc8;border-left:5px solid #147be2}
#workspaceModule .schedule-stop{background:#fff;border:1px solid #a9bfd3;border-left:4px solid #147be2;border-radius:9px;padding:16px;margin:12px 0}
#workspaceModule .schedule-period-day{background:#fff;border-color:#9ab5cf;border-top:4px solid #147be2}
#workspaceModule .schedule-job-date{background:#dceafb;border-color:#147be2;color:#173d60;min-height:44px;border-radius:6px}
#workspaceModule .schedule-tabs button[aria-pressed=true]{background:#103758;color:#fff;border-color:#103758}
#workspaceModule .roof-aerial-canvas{border:3px solid #153c5e;box-shadow:0 7px 22px #102c4625}
#workspaceModule .roof-drawing-controls{background:#dce8f5;border:1px solid #a4bed7;padding:12px;border-radius:9px}
#modal.modal>.card,.sc-confirm-dialog,.fieldcam-delete{background:#edf3fa;color:#102b43;border:1px solid #8eacc7;box-shadow:0 20px 65px #061c364d}
#modal.modal:not([data-workspace-page]){background:#061c36b8}
#modalBody>h2,.fieldcam-delete h2{color:#102e49;border-bottom:3px solid #1687f7;padding:2px 45px 14px 0;margin-bottom:20px}
#modalBody :is(input:not([type=checkbox]):not([type=radio]),select,textarea),.fieldcam-delete input{background:#fff;color:#102b43;border:1px solid #8faccc;border-radius:7px;min-height:44px}
#modalBody :is(input,select,textarea):focus-visible,.fieldcam-delete input:focus-visible{outline:3px solid #7db7f5;outline-offset:2px}
#modalBody label{color:#264863}
#modalBody .form-actions{border-top:1px solid #aac0d6;padding-top:14px;margin-top:16px}
#modalBody :is(.primary,.module-primary),.fieldcam-capture .primary{background:#075fc7;color:#fff;border-color:#075fc7;min-height:44px;box-shadow:0 3px 8px #075fc724}
#modalBody :is(.secondary,.module-actions a){border-color:#9bbbd9;background:#e4effc;color:#0756a3;min-height:44px}
#modalBody .record-error{background:#fff0f1;color:#8d2233;border:1px solid #d6949e}
#modalBody .customer-appointments,#modalBody .customer-roof-history{background:#fff;border:1px solid #a6bdd3;border-left:4px solid #147be2;border-radius:9px;padding:16px;margin:18px 0}
.fieldcam-delete{position:fixed;padding-top:28px}.fieldcam-delete-close{position:absolute;right:8px;top:7px;width:44px;height:44px;border:0;background:transparent!important;padding:0!important;margin:0!important}.fieldcam-delete-close img{width:44px;height:44px}.sc-confirm-dialog::backdrop,.fieldcam-delete::backdrop{background:#061c36b8}
.modal .card .close,.sc-confirm-heading>img,.fieldcam-delete-close>img{filter:hue-rotate(150deg) saturate(1.6)}
@media(max-width:800px){#platformHome .workday-card>h2{margin:-16px -16px 16px;padding-left:16px}#workspaceModule .module-record{padding:16px}#workspaceModule .module-toolbar{padding:10px}.fieldcam-delete{max-width:calc(100vw - 32px)}}
@media(prefers-reduced-motion:reduce){#platformHome *,#workspaceModule *,#modal *{scroll-behavior:auto}}

/* FINAL85: Home is the owner-approved interior reference. Reuse its section bars throughout. */
#workspaceModule :is(.tool-card,.fieldcam-card,.storm-card)>:is(h2,h3):first-child{background:#102e49 url('stormcore-approved-blue-swirl.png') right 15px center/30px no-repeat;color:#fff;padding:15px 54px 15px 20px;margin:-20px -20px 18px;border-bottom:3px solid #1687f7;font-size:17px;border-radius:10px 10px 0 0;overflow-wrap:break-word}
#workspaceModule :is(.tool-card,.fieldcam-card,.storm-card){overflow:hidden}
#workspaceModule .fieldcam-capture>h2,#workspaceModule .storm-track-form>h2,#modalBody :is(.customer-appointments,.customer-roof-history)>h3{background:#102e49 url('stormcore-approved-blue-swirl.png') right 15px center/28px no-repeat;color:#fff;padding:14px 50px 14px 16px;margin:-16px -16px 16px;border-bottom:3px solid #1687f7;font-size:17px;border-radius:7px 7px 0 0}
#workspaceModule .fieldcam-capture>h2,#workspaceModule .storm-track-form>h2{margin:-20px -20px 8px;padding-left:20px}
#workspaceModule .module-record>div:first-child>strong{display:block;background:#102e49;color:#fff;padding:11px 14px;border-radius:6px;border-bottom:3px solid #1687f7;line-height:1.5}
#workspaceModule .schedule-period-day>button:first-child{background:#102e49;color:#fff;border-color:#102e49;font-weight:700}
#modalBody>section:not(.customer-invoice):not(.work-order-paper)>h3,#modalBody .settings-section>h3{color:#102e49;border-bottom:3px solid #1687f7;padding-bottom:10px}
:is(#productionWorkspace,#workspaceModule,#modal,.sc-confirm-dialog,.fieldcam-delete) :is(button,a.secondary,a.primary){word-break:normal;overflow-wrap:normal;hyphens:manual;white-space:normal}
#platformHome .workday-card button{word-break:normal;overflow-wrap:normal;hyphens:manual;white-space:normal;line-height:1.45}
:is(#workspaceModule,#modalBody) :is(.module-actions,.customer-file-actions,.form-actions,.schedule-actions,.sc-confirm-actions){display:flex;flex-wrap:wrap;column-gap:10px;row-gap:12px;align-items:center}
:is(#workspaceModule,#modalBody) :is(.module-actions,.customer-file-actions,.form-actions,.schedule-actions)>:is(button,a){min-inline-size:min-content;max-inline-size:100%;flex:0 1 auto;padding:10px 14px;min-height:44px}
#workspaceModule .module-toolbar{column-gap:12px;row-gap:12px;flex-wrap:wrap}
#workspaceModule .module-toolbar>button{flex:0 1 auto;min-inline-size:min-content;max-inline-size:100%;min-height:44px;padding:10px 14px}
#workspaceModule :is(.schedule-tabs,.contacts-tabs){display:flex;flex-wrap:wrap;gap:10px}
#workspaceModule :is(.schedule-tabs,.contacts-tabs)>button{min-inline-size:min-content;max-inline-size:100%;min-height:44px;padding:10px 14px}
#modalBody :is(.primary,.secondary,.danger),.sc-confirm-dialog button,.fieldcam-delete button:not(.fieldcam-delete-close){min-inline-size:min-content;max-inline-size:100%;min-height:44px;line-height:1.45}
#platformEstimate .estimate-tool-shortcuts{background:#102e49;border-bottom:3px solid #1687f7}
#platformEstimate .estimate-tool-shortcuts button{white-space:normal;word-break:normal;overflow-wrap:normal;min-height:44px;padding:11px 16px}
@media(max-width:800px){#workspaceModule :is(.tool-card,.fieldcam-card,.storm-card)>:is(h2,h3):first-child{margin:-16px -16px 16px;padding-left:16px}#workspaceModule .tool-card{padding:16px}#workspaceModule .module-actions>*{flex:0 1 auto}#workspaceModule :is(.schedule-tabs,.contacts-tabs)>button{flex:1 1 auto}#modalBody .form-actions{row-gap:12px}}
#workspaceModule .schedule-toolbar{display:flex;flex-wrap:wrap;column-gap:10px;row-gap:12px;align-items:end}
#workspaceModule .schedule-toolbar>button{flex:0 0 auto;min-inline-size:max-content;max-inline-size:100%;width:auto;height:auto;min-height:44px;padding:10px 14px;white-space:normal;line-height:1.45}
#workspaceModule .schedule-toolbar>:is(input,select){min-width:0;max-width:100%;flex:1 1 160px}
#workspaceModule #modalBody button:not(.primary):not(.module-primary):not(.danger):not(.close):not([aria-pressed=true]):not([aria-selected=true]):not(.schedule-add-appointment){background:#eaf4ff;color:#0756a3;border:1px solid #9bbbd9;border-radius:7px;font-family:inherit;font-weight:600;padding:10px 14px;min-height:44px}
#workspaceModule #modalBody .settings-section{background:#f8fbff;border:1px solid #9bb6cf;box-shadow:0 5px 15px #15344d12;border-radius:10px;padding:18px;overflow:hidden}
#workspaceModule #modalBody .settings-section>h3{background:#102e49 url('stormcore-approved-blue-swirl.png') right 15px center/28px no-repeat;color:#fff;padding:14px 52px 14px 18px;margin:-18px -18px 18px;border-bottom:3px solid #1687f7;font-size:17px}
#workspaceModule .jpb-cloud-actions{display:flex;flex-wrap:wrap;gap:12px}
#workspaceModule .production-reports>article{background:#f8fbff;border:1px solid #9bb6cf;border-radius:10px;padding:18px;margin:12px 0;box-shadow:0 5px 15px #15344d12}
#workspaceModule .production-reports>article h3{background:#102e49;color:white;padding:12px 16px;border-bottom:3px solid #1687f7;border-radius:7px;line-height:1.45}

/* FINAL86: complete Home's panel treatment, including previously pale page wrappers. */
#workspaceModule .module-heading{background:transparent!important;border:0!important;box-shadow:none!important;gap:16px;flex-wrap:wrap}
#workspaceModule #modal[data-workspace-page]>.card{background:transparent!important;border:0!important;box-shadow:none!important;padding-top:0!important}
#workspaceModule .module-toolbar{background:linear-gradient(125deg,#102c47,#17456a);border:1px solid #305a7d;border-left:5px solid #1687f7;box-shadow:0 7px 18px #09243b20;color:#fff;padding:16px;gap:12px}
#workspaceModule .module-toolbar label,#workspaceModule .module-toolbar small{color:#d7e9f9}
#workspaceModule .module-record{position:relative;overflow:hidden;background:#f8fbff!important;border:1px solid #9bb6cf!important;border-radius:10px;box-shadow:0 5px 15px #15344d12;padding:0 0 18px!important;gap:0;display:block}
#workspaceModule .module-record>div:first-child{padding:0 18px}
#workspaceModule .module-record>div:first-child>strong{background:#102e49 url('stormcore-approved-blue-swirl.png') right 15px center/30px no-repeat;color:#fff;padding:15px 54px 15px 18px;margin:0 -18px 16px;border-bottom:3px solid #1687f7;border-radius:0;font-size:17px;line-height:1.5;overflow-wrap:anywhere}
#workspaceModule .module-record .module-actions{padding:10px 18px 0;margin:0;gap:12px}
#workspaceModule .module-record p{margin:10px 0}
#workspaceModule .schedule-period-day{overflow:hidden;background:#f8fbff;border:1px solid #9bb6cf;border-radius:10px;box-shadow:0 5px 15px #15344d12}
#workspaceModule .schedule-period-day>button:first-child{border-bottom:3px solid #1687f7;border-radius:0;padding:14px;line-height:1.45}
#workspaceModule .schedule-stop{background:#f8fbff;border:1px solid #9bb6cf;border-left:5px solid #1687f7;box-shadow:0 5px 15px #15344d12}
#modal.modal:not([data-workspace-page])>.card{overflow:hidden;border-top:5px solid #1687f7}
#modal.modal:not([data-workspace-page]) #modalBody>h2:first-child{background:#102e49;color:#fff;margin:-24px -24px 24px;padding:24px 72px 20px 24px;border-bottom:3px solid #1687f7;line-height:1.4;overflow-wrap:break-word}
@media(max-width:800px){#workspaceModule .module-toolbar{padding:12px}#workspaceModule .module-record .module-actions>*{flex:1 1 140px}#modal.modal:not([data-workspace-page]) #modalBody>h2:first-child{margin:-16px -16px 20px;padding:22px 72px 18px 16px}}

/* FINAL87: owner-requested StormCore identity throughout interiors. Home/shell untouched. */
@media screen{
html body #stormcoreApp #workspaceModule .module-heading{top:auto!important;z-index:auto}
#workspaceModule{background:radial-gradient(ellipse at 95% 0%,#a8d7ff70,transparent 48%),linear-gradient(135deg,#e1eaf4,#d5e2ef);padding-top:24px}
#workspaceModule .module-heading{position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;min-height:146px;margin:0 24px 24px;padding:28px 32px;background:linear-gradient(115deg,#091d31 0%,#123c5e 70%,#15567e 100%)!important;border:1px solid #2a5474!important;border-bottom:4px solid #1687f7!important;border-radius:16px;box-shadow:0 12px 28px #09243b24!important;color:#fff;align-items:center}
#workspaceModule .module-heading:after{content:'';position:absolute;z-index:-1;right:-24px;top:-70px;width:280px;height:280px;background:url('stormcore-approved-blue-swirl.png') center/contain no-repeat;opacity:.23;pointer-events:none;transform:rotate(-12deg)}
#workspaceModule .module-heading h1{color:#fff;margin:0;font-size:clamp(26px,3vw,36px);letter-spacing:-.025em;line-height:1.2;text-shadow:0 2px 8px #061c3650}
#workspaceModule .module-heading>div:first-child:before{content:'STORMCORE / WORKSPACE';display:block;color:#8fceff;font:700 11px/1.5 system-ui;letter-spacing:.16em;margin-bottom:10px}
#workspaceModule .module-heading button{border-radius:9px;box-shadow:0 4px 12px #061c3624;position:relative}
#workspaceModule .module-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:20px;align-items:start}
#workspaceModule .module-record{margin:0!important;border-radius:14px;background:linear-gradient(145deg,#fff,#edf5ff)!important;box-shadow:0 7px 20px #102c4615;transition:box-shadow .18s,border-color .18s}
#workspaceModule .module-record>div:first-child>strong{background:linear-gradient(110deg,#102e49,#164567);border-bottom:3px solid #1687f7;padding:19px 60px 19px 20px;position:relative;isolation:isolate;font-size:18px;letter-spacing:-.01em}
#workspaceModule .module-record>div:first-child>strong:after{content:'';position:absolute;right:16px;top:50%;transform:translateY(-50%);width:30px;height:30px;background:url('stormcore-approved-blue-swirl.png') center/contain no-repeat;pointer-events:none}
#workspaceModule .module-record .module-actions{border-top:1px solid #c4d7e9;margin-top:16px;padding-top:16px}
#workspaceModule .module-toolbar{border-radius:12px;padding:18px;box-shadow:0 6px 18px #09243b1c}
#workspaceModule .module-empty{background:#f8fbff url('stormcore-approved-blue-swirl.png') right 22px center/48px no-repeat;border:1px solid #a6c1db;border-left:4px solid #1687f7;border-radius:12px;padding:26px 88px 26px 22px;line-height:1.6;grid-column:1/-1}
#workspaceModule :is(.tool-card,.fieldcam-card,.storm-card,.settings-section,.production-reports>article){border-radius:14px!important;box-shadow:0 8px 24px #102c4618!important}
#workspaceModule :is(button,a.primary,a.secondary){transition:background-color .15s,box-shadow .15s;line-height:1.45}
#workspaceModule :is(button,a):focus-visible{outline:3px solid #49a6ff;outline-offset:3px}
#workspaceModule .payment-amounts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 4px}
#workspaceModule .payment-amount{padding:14px;background:#e4effb;border:1px solid #bbd2e7;border-radius:10px;min-width:0}
#workspaceModule .payment-amount span{display:block;color:#42617c;font-size:12px;font-weight:600;margin-bottom:8px}
#workspaceModule .payment-amount b{display:block;color:#102e49;font-size:clamp(17px,2vw,23px);line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#productionWorkspace .board-wrap{border-top:4px solid #1687f7;box-shadow:0 10px 28px #09243b22;border-radius:14px}
#platformEstimate .estimate-tool-shortcuts{background:linear-gradient(115deg,#091d31,#164567);padding:16px;border-radius:12px;margin:16px 24px;border:1px solid #315b7b;border-bottom:3px solid #1687f7}
#modal.modal:not([data-workspace-page])>.card,.sc-confirm-dialog,.fieldcam-delete{border-radius:14px;box-shadow:0 24px 80px #061c3660}
@media(hover:hover){#workspaceModule .module-record:hover{box-shadow:0 10px 26px #102c4628;border-color:#1687f7!important}#workspaceModule .module-actions button:hover{box-shadow:0 4px 12px #075fc724}}
@media(max-width:800px){#workspaceModule{padding-top:16px}#workspaceModule .module-heading{margin:0 16px 20px;padding:24px 20px;min-height:138px;border-radius:12px}#workspaceModule .module-heading:after{right:-70px;opacity:.17}#workspaceModule .module-heading>div:first-child{flex:1 1 100%}#workspaceModule .module-records{gap:16px}#workspaceModule .module-toolbar{padding:14px}#platformEstimate .estimate-tool-shortcuts{margin:12px 16px}}
@media(prefers-reduced-motion:reduce){#workspaceModule *{transition:none!important}}
}

/* FINAL88: spacing and typography polish; approved palette and shell retained. */
@media screen{
#workspaceModule{padding-top:20px}
#workspaceModule .module-heading{min-height:112px;padding:22px 26px;margin-bottom:20px;border-radius:12px}
#workspaceModule .module-heading h1{font-size:clamp(25px,2.5vw,32px);line-height:1.25}
#workspaceModule .module-heading>div:first-child:before{font-size:10px;letter-spacing:.13em;margin-bottom:6px}
#workspaceModule .module-heading:after{width:230px;height:230px;top:-58px}
#workspaceModule .module-records{gap:16px}
#workspaceModule .module-record{border-radius:11px;box-shadow:0 4px 14px #102c4612}
#workspaceModule .module-record>div:first-child>strong{font-size:16px;padding-top:16px;padding-bottom:16px;line-height:1.4}
#workspaceModule .module-record p{font-size:13px;line-height:1.6}
#workspaceModule .module-record .module-actions{gap:10px;padding-top:14px;margin-top:14px;align-items:stretch}
#workspaceModule .module-actions>:is(button,a){font-size:13px;font-weight:600;border-radius:8px;padding:10px 14px}
#workspaceModule .module-toolbar{padding:14px;border-radius:10px;margin-bottom:16px;gap:10px}
#workspaceModule .module-toolbar input{font-size:14px;border-radius:8px;box-shadow:none}
#workspaceModule .payment-amounts{gap:10px;margin-top:14px}
#workspaceModule .payment-amount{padding:12px;border-radius:8px}
#workspaceModule .payment-amount b{font-size:clamp(17px,1.6vw,21px);letter-spacing:-.015em}
#workspaceModule :is(.tool-card,.fieldcam-card,.storm-card,.settings-section,.production-reports>article){border-radius:11px!important;box-shadow:0 4px 16px #102c4614!important}
#workspaceModule :is(.tool-card,.fieldcam-card,.storm-card)>:is(h2,h3):first-child{font-size:16px;line-height:1.45}
#modalBody :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;max-width:100%;font-family:inherit;line-height:1.45;padding:10px 12px}
#modalBody label{font-size:13px;line-height:1.5;font-weight:600}
#modalBody .form-actions{gap:10px;padding-top:16px;margin-top:20px}
#platformHome .workday-heading{padding:24px 0 20px;gap:16px}
#platformHome .workday-heading h1{letter-spacing:-.025em}
#platformHome .workday-stats{align-items:stretch;gap:14px;margin-bottom:20px}
#platformHome .workday-stat{gap:7px;padding:16px;box-shadow:0 4px 14px #09243b18}
#platformHome .workday-stat>strong{font-variant-numeric:tabular-nums;letter-spacing:-.02em}
#platformHome .workday-card{box-shadow:0 4px 14px #15344d10}
#platformHome .workday-item{padding:12px 0;gap:14px}
#platformHome .workday-schedule-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px}
#platformHome .workday-schedule-actions>button{flex:1 1 110px;width:auto;min-width:min-content;padding:10px 12px;font-size:12px}
#platformHome .workday-schedule-actions>input{flex:1 1 160px;box-sizing:border-box;min-width:0;max-width:100%;min-height:44px;border:1px solid #9bbbd9;border-radius:7px;background:#fff;color:#102e49;padding:9px 12px;font:14px system-ui}
#platformHome .workday-item>button{flex-shrink:0}
@media(max-width:800px){#workspaceModule{padding-top:16px}#workspaceModule .module-heading{min-height:108px;padding:20px;margin-bottom:18px}#workspaceModule .module-heading>div:first-child{flex:1 1 auto}#workspaceModule .module-heading:after{right:-66px;opacity:.16}#workspaceModule .module-records{gap:14px}#platformHome .workday-stat{padding:14px}#platformHome .workday-heading{padding:20px 0 18px}#modalBody :is(input,select,textarea){font-size:16px}}
}

/* FINAL89: compact actions and interior headings; navigation excluded. */
@media screen{
#platformHome#platformHome .workday-calendar-heading button{font-size:11px!important;padding:7px 6px!important;min-width:0;flex:0 1 80px;max-width:none}
:is(#platformHome,#workspaceModule,#productionWorkspace,#platformEstimate,#modal,.sc-confirm-dialog,.fieldcam-delete) button:not(.close):not(.fieldcam-delete-close):not(.module-menu):not(.production-menu-toggle):not(.workday-menu){min-height:36px!important;padding:7px 12px!important;border-radius:6px!important;font-size:13px!important;line-height:1.4!important;font-weight:600;box-shadow:none!important;height:auto;white-space:normal;word-break:normal;overflow-wrap:normal}
#workspaceModule .module-heading{min-height:84px;padding:16px 22px;margin-bottom:16px;border-bottom-width:3px!important}
#workspaceModule .module-heading h1{font-size:clamp(23px,2.2vw,28px)}
#workspaceModule .module-heading>div:first-child:before{display:none}
#workspaceModule .module-heading:after{height:180px;width:180px;top:-48px;opacity:.18}
#workspaceModule :is(.tool-card,.fieldcam-card,.storm-card)>:is(h2,h3):first-child,#workspaceModule .module-record>div:first-child>strong{padding-top:12px;padding-bottom:12px;font-size:15px;line-height:1.4}
#platformHome .workday-card>h2{padding-top:12px;padding-bottom:12px;font-size:16px}
#platformHome .workday-heading{padding-top:18px;padding-bottom:16px}
#workspaceModule .module-toolbar{padding:12px;gap:8px}
#workspaceModule .module-record .module-actions,#modalBody .form-actions{gap:8px}
#modal.modal:not([data-workspace-page]) #modalBody>h2:first-child{padding-top:16px;padding-bottom:14px;font-size:21px;line-height:1.3}
#platformEstimate .estimate-tool-shortcuts{padding:10px 12px;margin-top:12px;margin-bottom:12px}
@media(pointer:coarse){:is(#platformHome,#workspaceModule,#productionWorkspace,#platformEstimate,#modal,.sc-confirm-dialog,.fieldcam-delete) button:not(.close):not(.fieldcam-delete-close):not(.module-menu):not(.production-menu-toggle):not(.workday-menu){min-height:44px!important}}
@media(max-width:800px){#workspaceModule .module-heading{min-height:78px;padding:16px 18px}#platformHome .workday-calendar button{padding:6px 0!important;font-size:12px!important}}
}

/* FINAL90: production board uses its own header and grid, outside module-page selectors. */
@media screen{
#productionWorkspace{padding-top:20px}
html body #stormcoreApp #productionWorkspace>.production-heading{position:relative;top:auto!important;z-index:auto;box-sizing:border-box;margin:0 24px 16px;padding:16px 22px;min-height:84px;gap:14px;flex-wrap:wrap;background:linear-gradient(115deg,#091d31,#123c5e 70%,#15567e);border:1px solid #2a5474;border-bottom:3px solid #1687f7;border-radius:12px;color:#fff;overflow:hidden;isolation:isolate}
#productionWorkspace>.production-heading:after{content:'';position:absolute;z-index:-1;right:-24px;top:-48px;width:180px;height:180px;background:url('stormcore-approved-blue-swirl.png') center/contain no-repeat;opacity:.18;pointer-events:none}
#productionWorkspace>.production-heading h1{color:#fff;font-size:clamp(23px,2.2vw,28px);line-height:1.25;margin:0;letter-spacing:-.025em}
#productionWorkspace>.production-heading p{display:none}
#productionWorkspace>.production-heading time{color:#c4def4;font-size:12px}
#productionWorkspace>.production-heading button{background:#eaf4ff;color:#0756a3;border:1px solid #9bbbd9}
#productionWorkspace .production-controls{margin:0 24px 16px;padding:12px;background:#dce8f5;border:1px solid #a4bed7;border-radius:10px;gap:10px}
#productionWorkspace .production-status-tabs{gap:8px;flex-wrap:wrap;overflow:visible}
#productionWorkspace .production-status-tabs button{background:#f8fbff;color:#264863;border-color:#a9bfd3}
#productionWorkspace .production-status-tabs button[aria-pressed=true]{background:#075fc7;color:#fff;border-color:#075fc7}
#productionWorkspace .production-status-tabs button>span:last-child{background:#c4d9ee60;border-radius:4px;font-size:11px;padding:1px 5px;font-variant-numeric:tabular-nums}
#productionWorkspace .production-search input{box-sizing:border-box;min-height:36px;border:1px solid #9bbbd9;border-radius:6px;padding:7px 10px;background:#fff;color:#102e49}
#productionWorkspace .board-wrap{margin:0 24px;border:1px solid #8daac5;border-top:3px solid #1687f7;border-radius:10px;box-shadow:0 5px 18px #09243b18}
#productionWorkspace .board-heading{background:#102e49!important;color:#fff!important;border-bottom:2px solid #1687f7;min-height:44px}
#productionWorkspace .board-heading .th-label{color:#fff}
#productionWorkspace .job-row{background:#f8fbff!important;border-bottom:1px solid #c4d7e9!important}
#productionWorkspace .job-row.alternate-row{background:#e8f1fa!important}
#productionWorkspace .job-row.job-complete{background:#eaf8ef!important}
#productionWorkspace .job-row select{background:#fff;border-color:#a6bdd3;color:#173d60;border-radius:6px}
#productionWorkspace .job-view-toolbar{margin:12px 24px;padding:10px 12px;border:1px solid #a4bed7;border-radius:8px;background:#e4edf7}
@media(max-width:800px){#productionWorkspace{padding-top:16px}html body #stormcoreApp #productionWorkspace>.production-heading{margin:0 16px 16px;min-height:78px;padding:16px 18px}#productionWorkspace .production-controls{margin:0 16px 14px}#productionWorkspace .board-wrap{margin:0 16px}#productionWorkspace .production-search{flex:1 1 190px;min-width:0}#productionWorkspace .production-status-tabs{width:100%}#productionWorkspace .job-view-toolbar{margin:12px 16px}}
}

/* FINAL91: imagery-first Roof Reports; manual geometry is optional. */
.roof-report-intro,.roof-report-output{background:#f8fbff;border:1px solid #9bb6cf;border-radius:10px;padding:18px;margin-bottom:18px}
.roof-report-intro h2,.roof-report-output h2{font-size:19px;color:#102e49;margin:0 0 10px;line-height:1.4}
.roof-report-intro p,.roof-report-output p{color:#42617c;font-size:13px;line-height:1.6;margin:8px 0 14px}
.roof-optional-tools{margin:18px 0;border:1px solid #a4bed7;background:#edf3fa;border-radius:10px;padding:14px}
.roof-optional-tools>summary{cursor:pointer;font-weight:600;color:#244c70;line-height:1.5;padding:4px}
.roof-optional-tools[open]>summary{margin-bottom:16px}
.roof-footprint-choice{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-bottom:1px solid #c4d7e9;font-size:13px;line-height:1.6}
.roof-footprint-choice input{flex:0 0 20px;margin-top:4px}
.roof-report-output a{display:inline-block;margin-top:16px;font-size:12px;color:#0756a3}
.roof-primary-actions{margin-top:14px}
.roof-aerial-canvas{background:#102e49;min-height:220px}

/* FINAL92: contacts as a readable person/company directory. */
#workspaceModule #modal[data-workspace-page=contacts] .module-records{grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));align-items:stretch}
#workspaceModule #modal[data-workspace-page=contacts] .module-record{display:flex;flex-direction:column;border-top:3px solid #1687f7!important;background:#f8fbff!important;padding:0!important;overflow:hidden}
#workspaceModule #modal[data-workspace-page=contacts] .module-record>.contact-main{padding:18px;flex:1}
.contact-identity{display:flex;align-items:center;gap:12px;margin-bottom:18px;min-width:0}
.contact-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 48px;height:48px;background:linear-gradient(135deg,#102e49,#17639a);border:1px solid #2c6fa5;color:#fff;border-radius:12px;font:700 17px system-ui;letter-spacing:.03em}
.contact-title{min-width:0;flex:1}
#workspaceModule #modal[data-workspace-page=contacts] .contact-title>strong{display:block;color:#102e49;font:700 17px/1.4 system-ui;overflow-wrap:anywhere}
#workspaceModule #modal[data-workspace-page=contacts] .contact-title .contact-kind{display:inline-block;background:#e1edf9;color:#23557e;font:600 11px/1.5 system-ui;padding:3px 8px;border-radius:5px;margin-top:5px}
.contact-details{display:grid;gap:10px}
.contact-detail{display:grid;grid-template-columns:55px minmax(0,1fr);gap:10px;font:13px/1.5 system-ui;color:#244660}
.contact-detail>span:first-child{color:#62798d;font-size:11px;padding-top:2px}
.contact-detail>span:last-child{overflow-wrap:anywhere}
.contact-no-details{font-size:13px;color:#62798d}
#workspaceModule #modal[data-workspace-page=contacts] .module-actions{display:flex;padding:12px 16px!important;margin:0!important;background:#eaf2fb;border-top:1px solid #c4d7e9;gap:8px}
#workspaceModule #modal[data-workspace-page=contacts] .module-actions>*{flex:1 1 auto;min-width:min-content;font-size:12px!important}

/* Refinement within the approved palette: deliberate depth, hierarchy and interaction. */
@media screen{
#workspaceModule .module-heading{box-shadow:0 2px 0 #ffffff60 inset,0 6px 18px #09243b20!important;background:linear-gradient(110deg,#0b2138,#123c5e 65%,#15567e)!important}
#workspaceModule .module-toolbar{box-shadow:0 1px 0 #ffffff25 inset,0 4px 12px #09243b14}
#workspaceModule #modal[data-workspace-page=contacts] .module-record{box-shadow:0 1px 0 #fff inset,0 5px 18px #15344d14;transition:box-shadow .18s,border-color .18s}
#workspaceModule #modal[data-workspace-page=contacts] .contact-identity{border-bottom:1px solid #d1e0ed;padding-bottom:16px}
#workspaceModule .module-record .module-actions :is(button,a){border-color:#afc9df;background:#edf5ff;color:#165581}
#workspaceModule .module-record .module-actions button:last-child{background:#102e49!important;color:#fff!important;border:1px solid #102e49!important}
#workspaceModule :is(.settings-section,.tool-card,.storm-card,.fieldcam-card){border-color:#a4bed7;border-top-color:#1687f7}
@media(hover:hover){#workspaceModule #modal[data-workspace-page=contacts] .module-record:hover{box-shadow:0 8px 22px #15344d24;border-color:#6da6d5!important}#workspaceModule .module-record .module-actions :is(button,a):hover{filter:brightness(.96)}}
}

/* Whole action buttons move to a new row before their labels break apart. */
@media screen{
:is(#platformHome,#workspaceModule,#productionWorkspace,#platformEstimate,#modal,.sc-confirm-dialog,.fieldcam-delete) button:not(.close):not(.fieldcam-delete-close):not(.module-menu):not(.production-menu-toggle):not(.workday-menu){white-space:nowrap!important;flex-shrink:0;word-break:keep-all!important;overflow-wrap:normal!important}
:is(#workspaceModule,#modalBody) :is(.module-actions,.form-actions,.schedule-actions,.schedule-toolbar,.module-toolbar){flex-wrap:wrap;gap:8px}
#workspaceModule .module-actions>*{flex:0 0 auto!important}
#platformHome .workday-calendar-heading{flex-wrap:wrap;justify-content:center;gap:8px}
#platformHome#platformHome .workday-calendar-heading button{flex:0 0 auto;max-width:none;min-width:max-content}
#workspaceModule .roofreports-host .module-actions button{white-space:normal!important;word-break:normal!important}
.record-notice{pointer-events:none}.record-notice button{pointer-events:auto}
}

/* Owner refinement: light interior headers distinct from the navy navigation. */
@media screen{
#workspaceModule .module-heading,html body #stormcoreApp #productionWorkspace>.production-heading{background:linear-gradient(110deg,#fff 0%,#f1f8ff 60%,#d8ecff 100%)!important;color:#102e49;border:1px solid #aecbe2!important;border-left:4px solid #1687f7!important;border-bottom:1px solid #aecbe2!important;box-shadow:0 1px 0 #fff inset,0 5px 16px #183e5b0d!important}
#workspaceModule .module-heading h1,#productionWorkspace>.production-heading h1{color:#102e49;text-shadow:none}
#productionWorkspace>.production-heading time{color:#526d83}
#workspaceModule .module-heading:after,#productionWorkspace>.production-heading:after{opacity:.11}
#platformHome .workday-card>h2,#workspaceModule :is(.tool-card,.fieldcam-card,.storm-card)>:is(h2,h3):first-child,#workspaceModule #modalBody .settings-section>h3,#workspaceModule .fieldcam-capture>h2,#workspaceModule .storm-track-form>h2,#modalBody :is(.customer-appointments,.customer-roof-history)>h3{background:#edf6ff url('stormcore-approved-blue-swirl.png') right 15px center/26px no-repeat!important;color:#123b5b!important;border-bottom:1px solid #bad5eb!important;border-left:3px solid #1687f7}
#workspaceModule .module-record>div:first-child>strong{background:linear-gradient(110deg,#e6f2ff,#f8fbff)!important;color:#123b5b!important;border-bottom:1px solid #bad5eb!important}
#workspaceModule .production-reports>article h3{background:#e6f2ff;color:#123b5b;border-bottom:1px solid #bad5eb}
#modal.modal:not([data-workspace-page]) #modalBody>h2:first-child{background:#edf6ff;color:#123b5b;border-bottom:1px solid #bad5eb}
#workspaceModule .module-toolbar{background:#e6f0fa;color:#264d6b;border-color:#adc8df;box-shadow:0 1px 0 #fff inset}
#workspaceModule .module-toolbar label,#workspaceModule .module-toolbar small{color:#42617c}
}
