/* M001/12: shared screen palette and typography, then narrowly scoped refinements. */
@media screen{
 :root,body{--bg:#f5f6f7!important;--surface:#fff!important;--line:#e8ecef!important;--muted:#818b94;--ink:#25323b;--tint:#eff3e8}
 html,body,#app{background:#f5f6f7!important}
 body,body *,body *::before,body *::after{font-family:Gilroy,Arial,sans-serif!important}
 input::placeholder,textarea::placeholder{font-family:Gilroy,Arial,sans-serif!important}
 input::-webkit-datetime-edit,input::-webkit-date-and-time-value{font-family:Gilroy,Arial,sans-serif!important}
 .company-page,.app-workspace,.app-main,.workspace-main,.workspace-shell,.app-shell,.app-content,.workspace-content,.app-topbar{background:#f5f6f7!important}
 body :is(h1,h2,h3,strong,b){font-synthesis:none}
}
/* A single visible search focus, without a nested square input border. */
.m001-projects .work-search input,.m001-projects .work-search input:focus,.m001-projects .work-search input:focus-visible{outline:0!important;box-shadow:none!important;border:0!important;background:transparent!important;border-radius:0;min-width:0}
.m001-projects .work-search{border:0!important;box-shadow:none!important}
.m001-projects .work-search:focus-within{outline:2px solid #9aab83;outline-offset:2px}
.m001-overview-next{gap:8px;background:transparent;border-radius:0;overflow:visible}
.m001-overview-step,.m001-overview-reminder{border-radius:18px}
.m001-overview-reminder.is-empty{border:0;background:#fff}
.m001-overview .lab-room-row:hover{background:transparent}
.m001-overview .lab-room-row{border-radius:12px;padding-inline:2px}
.m001-overview .lab-room-row:last-child{margin-bottom:4px}
@media(hover:hover){.m001-overview .lab-room-row:hover{background:#f6f8f5}}
.m001-overview .work-object-info .lab-object-data{padding:12px 16px 16px}
.m001-overview .work-object-info .object-data-actions{gap:8px;margin-bottom:10px}
.m001-overview .object-data-actions>.btn{background:#f5f6f7;color:#5f6d76;font-size:13px;font-weight:500;padding:8px 12px}
.m001-overview .object-data-facts{padding:12px;gap:12px;background:#f5f6f7}
.m001-overview .object-data-facts:has(>div:only-child .m001-add-contact){display:block;background:transparent;padding:0;margin:0}
.m001-overview .object-data-facts .m001-add-contact{min-height:44px;font-size:13px;font-weight:500;color:#697c53;margin:0;padding:0 8px}
.m001-overview .work-object-info .ux-inline-actions{margin:4px 0 10px;gap:8px}
.m001-overview .work-object-info .ux-inline-actions>.btn{font-size:12px;color:#647581}
.m001-overview .work-object-info .work-disclosure{margin-top:8px}
.m001-overview .work-object-info .work-disclosure>summary{font-size:13px;font-weight:500}
.m001-overview .work-object-actions{gap:8px;margin-top:10px}
.m001-overview .work-object-actions>.btn{background:#f5f6f7;font-size:12px;font-weight:500;min-height:48px;color:#53636f}
.m001-overview .work-overview-side>.work-disclosure>.work-disclosure-body{padding:4px 16px 16px}
.m001-overview .work-overview-side>.work-disclosure .ux-inline-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.m001-overview .work-overview-side>.work-disclosure .ux-inline-actions>.btn{font-size:12px;font-weight:500;min-height:44px;padding:8px;border:0;background:#f5f6f7;border-radius:12px}
.m001-history-empty{font-size:12px;color:#919aa1;margin:10px 0 0}
.m001-overview .work-route-grid>.work-route{min-height:52px;padding:10px 0}
.m001-overview .work-route-grid>.work-route strong{font-size:13px;font-weight:500}
.m001-overview .work-route-grid>.work-route small{display:none}
.m001-overview .work-route-grid>[data-v=work-open] small{display:block}
.m001-overview .work-route-grid>.work-route>.work-route-icon{width:23px;height:23px}
.m001-overview .work-route-grid>.work-route>.work-route-icon .icon{width:20px;height:20px}
/* Shared compact dialog controls. Technical canvases/document previews keep their own width. */
#modal:not(.chat-dialog):not(.document-dialog):not(.document-expanded):not(.assembly-dialog):not(.live-estimate-dialog):not(.m001-quick-editor):not(.m001-note-editor):not(:where(:has(> .versions52, > .versions-compare52))){width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);min-height:0!important;height:fit-content!important;max-height:calc(100dvh - 32px);padding:22px 18px 16px!important;border:0;border-radius:24px;background:#fff;color:#25323b;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#modal:not(.chat-dialog) #dialog-title{font-size:20px!important;font-weight:700!important;line-height:1.25;letter-spacing:-.35px;margin:0 44px 16px 0!important;padding:0!important;overflow-wrap:anywhere}
#modal:not(.chat-dialog) .dialog-close{width:40px;height:40px;min-width:40px;top:12px;right:12px;border-radius:50%;border:0;background:#f1f3ed;color:#7f8b73}
#modal:not(.chat-dialog) .dialog-close .icon{width:18px;height:18px}
#modal:not(.chat-dialog) form{min-width:0}
#modal:not(.chat-dialog) :is(.field,label){font-weight:500}
#modal:not(.chat-dialog) .field{margin:0 0 12px!important;gap:5px;font-size:12px;color:#85909a}
#modal:not(.chat-dialog) .field>span{font-size:12px;font-weight:500}
#modal:not(.chat-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea){font-size:16px!important;font-weight:400!important;line-height:1.3;min-height:44px;padding:10px 12px!important;border:1px solid transparent!important;border-radius:12px!important;background:#f5f6f7!important;color:#2b3942;box-shadow:none!important;max-width:100%;min-width:0}
#modal:not(.chat-dialog) :is(input,select,textarea):focus-visible{outline:2px solid #9bac82!important;outline-offset:2px!important}
#modal:not(.chat-dialog) :is(input,textarea)::placeholder{font-size:14px;font-weight:400;color:#9aa3a8}
#modal:not(.chat-dialog) textarea{height:76px;min-height:76px!important;resize:vertical}
#modal:not(.chat-dialog) .two-cols{gap:12px}
#modal:not(.chat-dialog) :is(p.small,p.muted,.small.muted){font-size:12px;line-height:1.45}
#modal:not(.chat-dialog) .dialog-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px!important;border:0!important;background:transparent!important;padding:12px 0 0!important;margin:2px 0 0!important}
#modal:not(.chat-dialog) .dialog-actions>.btn{min-height:44px!important;height:auto!important;border:0!important;border-radius:12px;font-size:13px!important;font-weight:600!important;padding:10px 14px!important;white-space:normal}
#modal:not(.chat-dialog) .dialog-actions>.btn:not(.primary){flex:0 0 auto!important;order:0!important;width:auto!important;max-width:42%;background:#f2f4ee;color:#69785b}
#modal:not(.chat-dialog) .dialog-actions>.btn.primary{flex:1 1 auto!important;order:1!important;width:auto!important;background:#d6f56b;color:#273329}
#modal:not(.chat-dialog) .dialog-actions>[hidden]{display:none!important}
#modal:not(.chat-dialog) .dialog-actions:has(>.flow-back:not([hidden])){flex-wrap:wrap!important}
#modal:not(.chat-dialog) .dialog-actions>.flow-back:not([hidden]){flex:1 1 100%!important;max-width:none;order:-1!important;min-height:36px!important}
#modal:not(.chat-dialog) .flow-step{padding:0!important;border:0!important;margin:0!important}
#modal.lab-project-edit .flow-section-picker{margin:0;gap:10px}
#modal.lab-project-edit .flow-progress{margin-bottom:14px!important}
#modal:not(.chat-dialog) .project-contact-list{margin:4px 0 12px}
#modal:not(.chat-dialog) .project-contact-list>.muted{font-size:13px;margin:8px 0 14px}
#modal:has(.project-contact-list)>.btn.full{width:auto;min-height:44px;font-size:13px;font-weight:600;border-radius:12px;padding:10px 14px}
#modal:not(.chat-dialog) .project-contact-entry{border:0;border-radius:14px;background:#f5f6f7;margin:8px 0;padding:4px 8px}
#modal:not(.chat-dialog) .project-contact-row{padding:10px 4px;gap:4px;border:0;background:transparent;box-shadow:none}
#modal:not(.chat-dialog) .project-contact-row strong{font-size:14px;font-weight:600}
#modal:not(.chat-dialog) .project-contact-row :is(small,span){font-size:12px}
.m001-explanation{font-size:12px;line-height:1.5;color:#7f8b94;margin:10px 0;border:0}
.m001-explanation>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;font-size:12px;font-weight:500;color:#687a85}
.m001-explanation>summary:after{content:'⌄';margin-left:auto}
.m001-explanation[open]>summary:after{transform:rotate(180deg)}
.m001-explanation>p{font-size:12px;line-height:1.5;margin:0 0 10px}
.m001-copy-name{font-size:13px;font-weight:600;color:#657580;margin-bottom:12px!important}
#modal:has(.m001-copy-name) form>p{font-size:13px;line-height:1.5}
/* Execution/finance stay scrollable, with no sideways chip strip on phones. */
#modal:not(.chat-dialog) .execution-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible!important;padding:0;background:transparent;border:0}
#modal:not(.chat-dialog) .execution-filters>.btn{min-width:0!important;min-height:40px;height:auto;padding:8px!important;font-size:11px!important;font-weight:500;white-space:normal;border:0;background:#f5f6f7;border-radius:11px}
#modal:not(.chat-dialog) .execution-filters>.btn[aria-pressed=true]{background:#edf3df;color:#597049}
#modal:not(.chat-dialog) .ops-toolbar{gap:8px;margin:12px 0}
#modal:not(.chat-dialog) .ops-toolbar>.btn,#modal:not(.chat-dialog) .ops-more>summary{min-height:44px;height:auto;font-size:12px;font-weight:500;padding:10px 12px;border:0;border-radius:12px}
#modal:not(.chat-dialog) .work-notice{padding:4px 12px;border:0;border-radius:13px;background:#f1f4e9;margin:10px 0}
#modal:not(.chat-dialog) .work-notice>summary{font-size:12px;color:#64714f}
#modal:not(.chat-dialog) .ops-progress-detail>summary{font-size:13px;padding:12px;gap:8px}
#modal:not(.chat-dialog) .ops-progress-detail>summary>span{font-size:11px}
#modal:not(.chat-dialog) .ops-stage-list{gap:8px}
#modal:not(.chat-dialog) .ops-stage-list>details{border-color:#edf0f2;border-radius:14px}
#modal:not(.chat-dialog) .finance-metrics{gap:8px;margin:12px 0}
#modal:not(.chat-dialog) .finance-metrics strong{font-size:20px;font-weight:700;line-height:1.2}
#modal:not(.chat-dialog) .finance-metrics :is(small,span){font-size:11px;line-height:1.35}
#modal:not(.chat-dialog) .finance-section{margin:14px 0}
#modal:not(.chat-dialog) .ops-finance .finance-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
#modal:not(.chat-dialog) .ops-finance .finance-actions>a{grid-column:1/-1;justify-self:start;padding:0;min-height:36px;font-size:12px;font-weight:500}
#modal:not(.chat-dialog) .ops-finance .finance-actions>.btn{width:auto!important;min-width:0;min-height:44px;height:auto;flex:auto!important;border:0;border-radius:12px;font-size:12px;font-weight:500;padding:10px!important;white-space:normal;gap:6px;background:#f2f4ed}
#modal:not(.chat-dialog) .ops-finance .finance-actions>.btn.primary{background:#d6f56b}
#modal:not(.chat-dialog) .ops-finance .finance-actions>.btn .icon{width:16px;height:16px}
#modal:not(.chat-dialog) .ops-finance .finance-budget strong{font-size:15px}
#modal:not(.chat-dialog) .finance-section>h3{font-size:14px;font-weight:600;margin-bottom:10px}
#modal:not(.chat-dialog) .finance-section>.muted{font-size:12px;padding:10px 0;line-height:1.5}
#modal:not(.chat-dialog) :is(.ops-finance-overview,.ops-work-overview) .btn{font-size:12px;font-weight:500;min-height:44px}
#modal:not(.chat-dialog) :is(.ops-finance-overview,.ops-work-overview) .ux-details>summary{font-size:13px;font-weight:500;min-height:48px;padding:12px}
.payroll-records{padding-bottom:24px}
.payroll-records h2{font-size:18px;font-weight:600;line-height:1.3}
.payroll-records .payroll-note{font-size:12px;line-height:1.5;color:#849099;margin:8px 0 14px}
.payroll-records>.btn.quiet{padding-inline:0;min-height:44px;font-size:12px}
.payroll-records .ux-inline-actions>.btn{font-size:13px;font-weight:500;min-height:44px;border-radius:12px}
.payroll-records [data-record-list]{margin-top:16px;background:white;border-radius:18px;padding:0 14px}
.payroll-records .empty{padding:24px 12px;min-height:0;font-size:13px;color:#89949d}
/* Room secondary navigation: keep substantive counts/status, drop repeated route descriptions. */
.m001-space .space-panel>summary{min-height:52px;padding-block:10px}
.m001-space .space-panel-heading strong{font-size:13px;font-weight:500}
.m001-space .space-panel-heading small:not(.space-panel-status){display:none}
.m001-space .space-panel:first-child .space-panel-heading small:not(.space-panel-status){display:block}
.m001-space .space-passport-geometry .small.muted{font-size:12px;line-height:1.5;margin:10px 0}
.m001-space .space-metrics{gap:14px}
.m001-space .space-metrics dt{font-size:11px;color:#8a949c}
.m001-space .space-metrics dd{font-size:16px;font-weight:600;margin-top:4px}
.m001-space .space-contour-metrics{margin-top:12px;border-top:1px solid #edf0f2;padding-top:4px}
.m001-space .space-contour-metrics>summary{font-size:12px;min-height:44px;display:flex;align-items:center;cursor:pointer}
.m001-space .space-contour-row{font-size:12px;padding:10px 0}
.m001-space .m001-measure-summary{margin:4px 0 12px;font-size:11px;line-height:1.4}
.m001-space .work-surfaces-head .space-section-title{font-size:17px;font-weight:600}
@media(max-width:700px){
 :root{--svodra-nav-safe-bottom:max(8px,env(safe-area-inset-bottom,0px));--svodra-nav-height:calc(59px + var(--svodra-nav-safe-bottom))}
 .app-mobile.mobile-nav{background:#fff!important;border:0!important;border-top:1px solid #eaedf0!important;box-shadow:none!important;padding:8px 8px var(--svodra-nav-safe-bottom)!important;gap:2px!important;backdrop-filter:none!important;min-height:var(--svodra-nav-height)}
 .app-mobile .nav-item{background:none!important;border:0!important;color:#687580!important;height:50px!important;min-height:50px!important;border-radius:12px!important;font-size:10px!important;font-weight:500!important;gap:4px!important;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
 .app-mobile .nav-item.selected{color:#202829!important;background:#f0f3e9!important;box-shadow:none!important;font-weight:600!important}
 .app-mobile .nav-item>.icon{width:22px!important;height:22px!important;flex:0 0 22px;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .app-mobile .nav-item>.nav-text{line-height:1.2;font-size:11px;letter-spacing:0}
 .app-mobile .nav-item:focus-visible{outline:2px solid #758b5b;outline-offset:-2px}
 body:not(.editor-focus) .shell:has(>.app-mobile)>.main:not(:has(.workspace)):not(:has(.drawing-create-workspace)){padding-bottom:calc(var(--svodra-nav-height) + 12px)}
 html:has(body:not(.editor-focus) .shell>.app-mobile){scroll-padding-bottom:calc(var(--svodra-nav-height) + 12px)}
 #modal{scrollbar-width:thin}
}
@media(max-width:700px) and (hover:hover) and (pointer:fine){.app-mobile .nav-item:not(.selected):hover{background:#f5f6f7!important;color:#53626a!important}}
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 .app-mobile .nav-item{transition:background-color 160ms ease,color 160ms ease}
 .app-mobile .nav-item>.icon{transition:transform 120ms ease}
 .app-mobile .nav-item:active>.icon{transform:translateY(1px) scale(.92)}
}
@media(prefers-reduced-motion:reduce){.app-mobile .nav-item,.app-mobile .nav-item>.icon{animation:none!important;transition:none!important;transform:none!important}}
@media(prefers-reduced-motion:no-preference){#modal[open]:not(.document-dialog):not(.document-expanded){animation:m001-warm-sheet 180ms cubic-bezier(.2,.8,.2,1)!important}.m001-explanation>summary:after{transition:transform 160ms ease}}
@media(prefers-reduced-motion:reduce){#modal,#modal:not(.chat-dialog) *{animation:none!important;transition:none!important}}
/* Primary object/room entries: a quiet white-to-lime accent, not status colour. */
.m001-overview .m001-overview-estimate,.m001-room .m001-room-estimate,.m001-room-estimate{
 background:linear-gradient(115deg,#fff 24%,#f5f8ee 66%,#e9f3d5 100%);
 box-shadow:inset 0 0 0 1px #ffffffb3,0 3px 14px #25323c04;
}
.m001-overview .m001-overview-step,.m001-room-next{
 background:linear-gradient(110deg,#f0f4e9 8%,#e7f1d2 62%,#d9efaa 100%);
 color:#29372e;box-shadow:inset 0 0 0 1px #ffffff70;
}
.m001-overview .m001-overview-step small,.m001-room-next small{color:#6f7d6a}
.m001-overview .m001-overview-estimate,.m001-overview .m001-overview-step,.m001-room-estimate,.m001-room-next{transition:transform .16s ease,box-shadow .16s ease}
@media(hover:hover){.m001-overview .m001-overview-estimate:hover,.m001-overview .m001-overview-step:hover,.m001-room-estimate:hover,.m001-room-next:hover{box-shadow:inset 0 0 0 1px #c8d8ac,0 4px 16px #25323c08}}
.m001-overview .m001-overview-estimate:active,.m001-overview .m001-overview-step:active,.m001-room-estimate:active,.m001-room-next:active{transform:scale(.99)}
@media(prefers-reduced-motion:reduce){.m001-overview .m001-overview-estimate,.m001-overview .m001-overview-step,.m001-room-estimate,.m001-room-next{transition:none;transform:none!important}}
