/* Wattstone Studio — a quiet, canvas-first workspace. */
html body.planner-ui.customer-ui{--customer-blue:#0866e8;--customer-tint:#edf4ff;--ink:#1d1d1f;--text:#1d1d1f;--muted:#68717c;--line:#e5e7eb;--strong:#d2d6dc;--yellow:#0866e8;--header:64px;background:#f5f5f7;color:#1d1d1f;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
html body.planner-ui.customer-ui :is(button,input,select,textarea,summary){font-family:inherit;letter-spacing:0}
html body.planner-ui.customer-ui :is(button.primary,a.primary){border-radius:10px!important;font-weight:600!important;background:#0866e8!important;border-color:#0866e8!important;box-shadow:0 2px 4px #0866e815!important}
html body.planner-ui.customer-ui :is(button.secondary,a.secondary){border-color:#e1e4e9!important;border-radius:9px!important;font-weight:550!important;color:#343b46!important}
html body.planner-ui.customer-ui :is(input:not([type=radio]):not([type=checkbox]),select,textarea){border:1px solid #d9dde4;border-radius:9px;background:#fff;color:#252932;min-height:42px;transition:border-color .15s,box-shadow .15s}
html body.planner-ui.customer-ui :is(input,select,textarea):focus{border-color:#0866e8;box-shadow:0 0 0 3px #0866e812}
html body.planner-ui.customer-ui :is(h1,h2,h3){letter-spacing:-.025em;color:#1d1d1f}
html body.planner-ui.customer-ui .info-tip{display:inline-grid!important}
html body.planner-ui.customer-ui.project-master-shell>.topbar{position:sticky;top:0;height:64px!important;padding:0 28px!important;background:#fff!important;border-bottom:1px solid #e7e8eb;gap:20px;z-index:100;box-shadow:none}
html body.planner-ui.customer-ui.project-master-shell .topbar .brand img{width:112px;height:29px;filter:none}
html body.planner-ui.customer-ui.project-master-shell .topbar .context{display:none!important}
html body.planner-ui.customer-ui.project-master-shell .topbar .beta{display:none!important}
html body.planner-ui.customer-ui.project-master-shell .topbar>.steps{display:flex!important;flex-direction:row;align-items:center;gap:4px;position:static;flex:1;justify-content:center;border:0!important;background:transparent!important;padding:0!important;margin:0!important;overflow:visible;box-shadow:none;min-height:0}
html body.planner-ui.customer-ui.project-master-shell .topbar>.steps button{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:36px!important;min-width:0;flex:0 1 auto;padding:8px 14px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#737984!important;font-size:13px;font-weight:500}
html body.planner-ui.customer-ui.project-master-shell .topbar>.steps button::before,html body.planner-ui.customer-ui.project-master-shell .topbar>.steps button::after{display:none!important}
html body.planner-ui.customer-ui.project-master-shell .topbar>.steps button b{display:none}
html body.planner-ui.customer-ui.project-master-shell .topbar>.steps button.active{color:#0866e8!important;background:#edf4ff!important}
html body.planner-ui.customer-ui.project-master-shell .topbar .planner-detail-toggle{margin:0;border:0!important;background:transparent!important;font-size:12px!important;padding:8px!important;color:#596577}
.premium-open-project{border:0;background:transparent;color:#0866e8;font-size:12px!important;white-space:nowrap;padding:8px}
html body.planner-ui.customer-ui.project-master-shell>main{display:block!important;max-width:1320px;padding:44px 36px!important;margin:auto}
html body.planner-ui.customer-ui.project-master-shell .workspace{border:0!important;border-radius:0;background:transparent;box-shadow:none!important}
html body.planner-ui.customer-ui.project-master-shell .screen{padding:0!important;min-height:0}
html body.planner-ui.customer-ui.project-master-shell .screen[data-screen="1"]{max-width:1100px!important}
html body.planner-ui.customer-ui.project-master-shell .screen[data-screen="1"]>.section-head{margin:0 0 30px;text-align:center;display:block}
html body.planner-ui.customer-ui.project-master-shell .screen[data-screen="1"]>.section-head p{font-size:11px;letter-spacing:.16em;color:#7a828e;margin-bottom:14px}
html body.planner-ui.customer-ui.project-master-shell .screen[data-screen="1"] h1{font-size:clamp(30px,3.6vw,46px);line-height:1.12;font-weight:650;margin-bottom:14px}
html body.planner-ui.customer-ui.project-master-shell .screen[data-screen="1"]>.section-head span{font-size:16px;line-height:1.6;color:#767c86}
html body.planner-ui.customer-ui .customer-choice{margin:0 0 28px}
html body.planner-ui.customer-ui .customer-choice>legend{display:none}
html body.planner-ui.customer-ui .customer-type-cards{gap:20px}
html body.planner-ui.customer-ui .customer-type-cards label{border:1px solid #e1e4e9!important;border-radius:18px;background:white!important;box-shadow:0 3px 12px #202b3b05!important;transition:transform .18s,border-color .18s,box-shadow .18s}
html body.planner-ui.customer-ui .customer-type-cards label:hover{transform:translateY(-3px);box-shadow:0 8px 22px #202b3b0d!important}
html body.planner-ui.customer-ui .customer-type-cards label:has(input:checked){border-color:#0866e8!important;box-shadow:0 0 0 2px #0866e8!important}
html body.planner-ui.customer-ui .customer-type-cards img{height:170px}
html body.planner-ui.customer-ui .customer-type-cards span{padding:20px 18px 20px 14px;gap:6px}
html body.planner-ui.customer-ui .customer-type-cards b{font-size:20px;letter-spacing:-.025em;font-weight:650}
html body.planner-ui.customer-ui .customer-choice>p{text-align:center;margin-top:16px;font-size:12px}
html body.planner-ui.customer-ui .project-form-groups{gap:0}
html body.planner-ui.customer-ui .project-form-groups>fieldset{padding:26px!important;border:0!important;border-radius:18px!important;margin-bottom:14px;box-shadow:0 2px 10px #202b3b04}
html body.planner-ui.customer-ui .project-form-groups legend{border:0;font-size:18px;font-weight:600;padding:0;margin-bottom:18px}
html body.planner-ui.customer-ui .project-form-groups label{font-size:13px;font-weight:550}
html body.planner-ui.customer-ui .project-form-groups label em{display:inline;margin-left:6px;font-size:11px;font-weight:400}
html body.planner-ui.customer-ui .project-form-groups .form-grid{grid-template-columns:2fr 1fr 1fr 2fr!important;gap:18px}
html body.planner-ui.customer-ui .project-form-groups label:has(#terrain-category){grid-column:1/-1;max-width:540px}
html body.planner-ui.customer-ui :is(.customer-details,.ux-project-details,.premium-disclosure){border:0;border-top:1px solid #e3e6eb;border-radius:0;background:transparent;margin:0!important;padding:0!important;box-shadow:none}
html body.planner-ui.customer-ui :is(.customer-details,.ux-project-details,.premium-disclosure)>summary{padding:16px 2px!important;min-height:44px;color:#515d6d;font-weight:500;font-size:13px;cursor:pointer;list-style-position:inside}
html body.planner-ui.customer-ui .premium-disclosure>:not(summary){margin:12px 0 20px}
html body.planner-ui.customer-ui .premium-disclosure:not([open])>:not(summary){display:none!important}
html body.planner-ui.customer-ui [hidden]{display:none!important}
html body.planner-ui.customer-ui .customer-start-actions{margin:22px 0 0!important;padding:14px 0!important;background:#f5f5f7;border:0;gap:16px;min-height:0}
html body.planner-ui.customer-ui #customer-start{min-width:240px;border-radius:12px!important;min-height:48px}
html body.planner-ui.customer-ui .location-panel{border:0!important;background:#edf1f7;border-radius:12px;padding:18px;margin:14px 0}
html body.planner-ui.customer-ui .legal-footer{padding:18px 28px!important;margin:0;max-width:none;border-top:1px solid #e5e7eb;font-size:11px}
/* Planning is one bounded workspace, regardless of the embedded viewport's height. */
html body.planner-ui.customer-ui.project-master-shell[data-step="3"]{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
html body.planner-ui.customer-ui.project-master-shell[data-step="3"]>main{padding:0!important;margin:0;max-width:none;width:100%;flex:1;min-height:0;display:flex!important;overflow:hidden}
html body.planner-ui.customer-ui.project-master-shell[data-step="3"] .workspace{width:100%;display:flex;flex-direction:column;min-height:0}
html body.planner-ui.customer-ui.project-master-shell[data-step="3"] .planning-screen.active{display:flex!important;flex-direction:column;flex:1;min-height:0!important;overflow:hidden}
html body.planner-ui.customer-ui.project-master-shell .planning-head{display:flex!important;align-items:center;gap:14px;padding:10px 20px!important;background:#fff;border-bottom:1px solid #e5e7eb;min-height:62px}
html body.planner-ui.customer-ui.project-master-shell .planning-head>div:first-child{display:none}
html body.planner-ui.customer-ui.project-master-shell .planning-head>select{width:230px;max-width:26vw;margin:0;font-size:13px;min-height:38px;font-weight:600}
html body.planner-ui.customer-ui.project-master-shell .planning-head>div:nth-of-type(2){margin-left:auto;order:3;align-items:center}
html body.planner-ui.customer-ui.project-master-shell .planning-head #editor-to-result{display:none}
html body.planner-ui.customer-ui.project-master-shell .planning-view-bar{padding:0!important;border:0!important;order:2;margin:0 auto;display:flex;background:transparent}
html body.planner-ui.customer-ui .planning-view-bar>span{display:none}
html body.planner-ui.customer-ui .planning-view-switch{padding:3px;border-radius:10px;background:#f0f1f4}
html body.planner-ui.customer-ui .planning-view-switch button{min-width:114px;min-height:34px!important;padding:6px 14px;font-size:13px!important;border-radius:8px}
html body.planner-ui.customer-ui .planning-view-switch button.active{background:#fff!important;color:#0866e8!important;border-color:transparent!important;box-shadow:0 1px 5px #19253b1a}
html body.planner-ui.customer-ui.project-master-shell[data-step="3"] #spatial-workspace{min-height:0;flex:1}
html body.planner-ui.customer-ui.project-master-shell[data-step="3"] #surface-editor{height:100%!important;min-height:0!important;flex:1;background:#fafbfc}
html body.planner-ui.customer-ui.project-master-shell[data-step="3"]>.legal-footer{padding:5px 20px!important;font-size:10px;flex-shrink:0;background:#fff}
html body.planner-ui.customer-ui[data-planning-view="3d"] #spatial-workspace{grid-template-columns:320px minmax(0,1fr);gap:0}
html body.planner-ui.customer-ui #editor-3d-preview .project-3d-viewer{min-height:0!important;border:0!important;border-radius:0}
html body.planner-ui.customer-ui .ux-surface-menu{position:relative}
html body.planner-ui.customer-ui .ux-surface-menu>div{position:absolute;right:0;top:100%;width:190px;display:grid;z-index:60;background:white;padding:10px;border:1px solid #e3e7ee;border-radius:12px;box-shadow:0 16px 40px #15264522}
html body.planner-ui.customer-ui .ux-surface-menu:not([open])>div{display:none}
html body.planner-ui.customer-ui .ux-surface-menu>summary{border:0!important;font-size:13px;padding:8px!important;min-height:36px}
.premium-guidance{color:#6b7583;font-size:13px;line-height:1.6;max-width:68ch;margin:0 0 22px}
html body.planner-ui.customer-ui .screen[data-screen="1"] .early-wind-card{background:#f6f7f9;border:0;border-radius:14px;padding:20px;margin-bottom:24px}
html body.planner-ui.customer-ui .early-wind-card .windload-head :is(.eyebrow,.badge){display:none}
html body.planner-ui.customer-ui .early-wind-card .windload-head p{font-size:12px;line-height:1.5}
html body.planner-ui.customer-ui .product-card{border:1px solid #e4e7ec;border-radius:12px;box-shadow:none}
html body.planner-ui.customer-ui :is(.layout-toolbar,.plan-toolbar){border:0!important;border-bottom:1px solid #e7e9ed!important;background:white;border-radius:0!important}
html body.planner-ui.customer-ui :is(.layout-summary,.roof-occupancy-sidebar,.ux-fence-properties){background:#fff!important;border:0!important;border-left:1px solid #e4e7ec!important;border-radius:0!important}
html body.planner-ui.customer-ui :is(.plan-card,.canvas-panel){border-color:#e4e7ec!important;border-radius:12px!important;box-shadow:none!important}
/* Results: compact facts and one next action. */
html body.planner-ui.customer-ui .result-completion-head{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr)!important;gap:42px;margin-bottom:24px}
html body.planner-ui.customer-ui .result-completion-head h1{font-size:36px;font-weight:650;margin:6px 0 14px}
html body.planner-ui.customer-ui .result-metrics{border:0!important;gap:22px 0!important;background:#fff;border-radius:14px;padding:20px 0;margin-top:24px!important}
html body.planner-ui.customer-ui .result-metrics>article{flex:1 1 150px;min-width:max-content;border:0!important;border-right:1px solid #edf0f3!important;border-radius:0;background:transparent!important;padding:0 20px!important}
html body.planner-ui.customer-ui .result-metrics>article:last-child{border-right:0!important}
html body.planner-ui.customer-ui .result-metrics>article strong{font-size:28px!important;font-weight:600;letter-spacing:-.04em;color:#1d1d1f}
html body.planner-ui.customer-ui .customer-3d-invite{background:transparent!important;border:0!important;padding:0!important;margin:20px 0!important;justify-content:flex-start}
html body.planner-ui.customer-ui .customer-3d-invite>div{display:none}
html body.planner-ui.customer-ui .result-completion{background:white;padding:22px!important;border:1px solid #e5e8ec;border-radius:16px}
html body.planner-ui.customer-ui .readiness-banner{border:0!important;border-radius:10px;margin-bottom:12px;padding:14px;align-items:flex-start;flex-wrap:wrap}
html body.planner-ui.customer-ui .result-primary-actions{margin:16px 0 10px}
html body.planner-ui.customer-ui .result-more-actions>summary{font-size:12px;font-weight:500;color:#68717c}
html body.planner-ui.customer-ui .project-result-tabs{background:transparent;border:0!important;border-bottom:1px solid #dce1e8!important;gap:20px;padding:0!important;margin:24px 0!important}
html body.planner-ui.customer-ui .project-result-tabs button{border:0!important;background:transparent!important;padding:12px 4px;font-size:14px;font-weight:550}
html body.planner-ui.customer-ui .surface-result{background:white;border:1px solid #e1e6ed;border-radius:14px;padding:20px}
/* Request sheet: focus stays inside, Escape returns to the request action. */
html body.planner-ui.customer-ui.premium-request-open{overflow:hidden!important}
html body.planner-ui.customer-ui #quote-request-preparation:not([hidden]){display:block!important;position:fixed;z-index:1000;top:50%;left:50%;transform:translate(-50%,-50%);width:min(700px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;margin:0;padding:32px;background:#fff;border:1px solid #e5e8ee;border-radius:20px;box-shadow:0 0 0 100vmax #0a152d66,0 24px 100px #071c4b33}
html body.planner-ui.customer-ui #quote-request-preparation h2{font-size:26px;line-height:1.2;padding-right:70px}
html body.planner-ui.customer-ui #quote-request-preparation .premium-close{float:right;border:0;border-radius:8px;background:#f3f5f8;color:#40516b;padding:8px 12px}
html body.planner-ui.customer-ui #quote-request-preparation #quote-form{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}
html body.planner-ui.customer-ui #quote-form input{width:100%;margin-top:6px}
html body.planner-ui.customer-ui #quote-form .quote-message,html body.planner-ui.customer-ui #quote-mail-status{grid-column:1/-1}
html body.planner-ui.customer-ui #quote-form textarea{width:100%;padding:12px}
@media(min-width:760px){html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools):has(.ux-wall-workspace.active),html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools):has(.ux-roof-workspace.active){height:100dvh!important;overflow:hidden!important}}
@media(max-width:900px){html body.planner-ui.customer-ui.project-master-shell>.topbar{padding:0 14px!important;gap:8px}.premium-open-project{display:none}html body.planner-ui.customer-ui.project-master-shell .topbar>.steps button{padding:8px!important}html body.planner-ui.customer-ui .project-form-groups .form-grid{grid-template-columns:1fr 1fr!important}html body.planner-ui.customer-ui .result-completion-head{grid-template-columns:1fr!important;gap:20px}html body.planner-ui.customer-ui .customer-type-cards img{height:130px}}
@media(max-width:680px){html body.planner-ui.customer-ui.project-master-shell>.topbar{height:auto!important;min-height:92px;flex-wrap:wrap;padding:10px 14px!important}html body.planner-ui.customer-ui.project-master-shell .topbar .brand img{width:100px}html body.planner-ui.customer-ui.project-master-shell .topbar .planner-detail-toggle{margin-left:auto}html body.planner-ui.customer-ui.project-master-shell .topbar>.steps{order:5;flex:1 0 100%;justify-content:space-between}html body.planner-ui.customer-ui.project-master-shell>main{padding:28px 18px!important}html body.planner-ui.customer-ui .customer-type-cards{gap:12px}html body.planner-ui.customer-ui .customer-type-cards img{height:92px;width:90px}html body.planner-ui.customer-ui .customer-type-cards label{grid-template-columns:90px 28px 1fr}html body.planner-ui.customer-ui .customer-type-cards span{padding:14px}html body.planner-ui.customer-ui .customer-type-cards b{font-size:18px}html body.planner-ui.customer-ui .project-form-groups>fieldset{padding:18px!important}html body.planner-ui.customer-ui .project-form-groups .form-grid{grid-template-columns:1fr!important}html body.planner-ui.customer-ui.project-master-shell .planning-head{flex-wrap:wrap;padding:8px!important;gap:8px}html body.planner-ui.customer-ui.project-master-shell .planning-head>select{width:100%;max-width:100%;flex:1 0 100%}html body.planner-ui.customer-ui.project-master-shell .planning-head .planning-view-bar{margin:0;flex:1}html body.planner-ui.customer-ui.project-master-shell .planning-view-switch button{min-width:80px;padding:6px}html body.planner-ui.customer-ui.project-master-shell .planning-head #back-to-surfaces{display:none}html body.planner-ui.customer-ui.project-master-shell[data-step="3"] #spatial-workspace{overflow:auto}html body.planner-ui.customer-ui.project-master-shell[data-step="3"] #surface-editor{min-height:600px!important}html body.planner-ui.customer-ui .result-completion-head h1{font-size:30px}html body.planner-ui.customer-ui #quote-request-preparation:not([hidden]){padding:20px;border-radius:16px}html body.planner-ui.customer-ui #quote-request-preparation #quote-form{grid-template-columns:1fr}html body.planner-ui.customer-ui #quote-request-preparation h2{font-size:22px}html body.planner-ui.customer-ui .result-metrics>article{flex-basis:40%;padding:12px!important}html body.planner-ui.customer-ui .project-result-tabs{gap:12px;overflow:auto;flex-wrap:nowrap}html body.planner-ui.customer-ui .project-result-tabs button{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){html body.planner-ui.customer-ui *,html body.planner-ui.customer-ui *::before,html body.planner-ui.customer-ui *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
html body.planner-ui.customer-ui #editor-3d-preview{position:relative}
.premium-3d-guidance{position:absolute;z-index:8;left:24px;right:24px;bottom:24px;max-width:520px;padding:18px 22px;background:#fffffff2;border:1px solid #e2e7ee;border-radius:14px;box-shadow:0 8px 32px #15264514;color:#425570;line-height:1.6;font-size:14px;pointer-events:none}
html body.planner-ui.customer-ui .global-save-status{border:0;background:transparent;color:#687588;font-size:11px;padding:0}
/* Final cascade guard against legacy fixed title scales and selection colours. */
html body.planner-ui.customer-ui.project-master-shell .screen[data-screen="1"] h1{font-size:clamp(30px,3.6vw,46px)!important;font-weight:650!important}
html body.planner-ui.customer-ui.project-master-shell .screen{box-shadow:none!important;border:0!important;border-radius:0!important;background:transparent!important}
html body.planner-ui.customer-ui.project-master-shell .planning-head>div:nth-of-type(2){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important}
html body.planner-ui.customer-ui .wall-shape{fill:#f0f3f7;stroke:#788698;stroke-width:2}
html body.planner-ui.customer-ui .module-rect.set-member{fill:#315f8a;stroke:#7fa3c4;stroke-width:2}
html body.planner-ui.customer-ui .module-rect.selected{stroke:#0866e8;stroke-width:5}
html body.planner-ui.customer-ui .fence-segment.selected{stroke:#0866e8}
html body.planner-ui.customer-ui button:not(.primary):not(.step):not([data-go]):not(.info-tip):not(.project-code-copy){border-radius:9px;border:1px solid #e0e5ec}
html body.planner-ui.customer-ui.spatial-tools .spatial-editor-nav{background:#f5f6f8;gap:5px;padding:8px}
html body.planner-ui.customer-ui.spatial-tools .spatial-editor-nav button{min-height:36px!important;padding:6px 10px;font-size:12px;background:#fff;color:#536176;font-weight:550}
html body.planner-ui.customer-ui.spatial-tools .layout-toolbar{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;padding:8px!important}
html body.planner-ui.customer-ui.spatial-tools .layout-toolbar>button{width:100%!important;padding:8px!important;font-size:12px!important}
html body.planner-ui.customer-ui.spatial-tools .layout-toolbar>.customer-tools{grid-column:1/-1}
html body.planner-ui.customer-ui.spatial-tools .placement-controls{margin-bottom:8px!important}
html body.planner-ui.customer-ui.spatial-tools .canvas-panel:has(.spatial-source)>:not(svg){display:none!important}
html body.planner-ui.customer-ui .result-completion-head h1{font-size:36px!important}
html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .screen.active.ux-roof-workspace{padding:8px!important}
html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .ux-roof-workspace>.actions:last-child{margin:8px 0 0!important;padding:8px 0 0!important;border-radius:0!important}
html body.planner-ui.customer-ui .ux-roof-workspace .plan-toolbar{max-width:none!important;gap:6px!important}
html body.planner-ui.customer-ui .ux-roof-workspace .plan-tools-group{flex:0 1 auto!important}
html body.planner-ui.customer-ui .ux-roof-workspace .plan-tools-group:nth-child(2){flex:1 1 440px!important}
html body.planner-ui.customer-ui[data-detail-mode="simple"] :is(.direction-label,.set-label){display:none!important}
html body.planner-ui.customer-ui .result-header-actions{display:block!important}
html body.planner-ui.customer-ui .result-metrics>article{padding:0 14px!important}
html body.planner-ui.customer-ui .result-metrics>article strong{font-size:24px!important;white-space:nowrap}
html body.planner-ui.customer-ui #quote-request-preparation h2{font-size:24px!important;line-height:1.3}
html body.planner-ui.customer-ui [data-premium="checks"]>button{margin-right:6px}
/* The geometry editor uses the same bounded canvas as placement. */
@media(min-width:760px){
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools):has(.editor-screen.active){height:100dvh!important;overflow:hidden!important}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools):has(.editor-screen.active) :is(main,.app-shell,#planner-form){height:100%!important;min-height:0!important;padding:0!important;display:block!important}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .editor-screen.active{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column;padding:8px!important;overflow:hidden}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .editor-screen.active>.section-head{display:none!important}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .roof-editor-redesign{flex:1;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 286px!important;grid-template-rows:auto minmax(0,1fr)!important;gap:8px!important;overflow:hidden}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .roof-editor-redesign>.editor-tool-sidebar{grid-column:1;grid-row:1;padding:0!important;min-height:0}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .roof-editor-redesign>.editor-properties{grid-column:2;grid-row:1/3;height:100%;min-height:0;overflow:auto!important;background:#fff;border:0!important;border-left:1px solid #e1e6ec!important;border-radius:0!important}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .roof-editor-redesign>.canvas-card{grid-column:1;grid-row:2;min-height:0!important;height:100%;overflow:hidden;margin:0!important}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .roof-editor-redesign .solar-canvas{flex:1;min-height:0!important;height:auto!important}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) #roof-editor{height:100%!important;min-height:0!important;width:100%!important;display:block}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .editor-screen.active>.actions{position:static!important;flex-shrink:0;margin:8px 0 0!important;padding:8px 0 0!important;min-height:44px;border-radius:0!important}
 html body.planner-ui.customer-ui.project-master-embed:not(.spatial-tools) .editor-screen.active>.editor-help{display:none!important}
}
html body.planner-ui.customer-ui .roof-workbar{border:0!important;border-radius:0!important;box-shadow:none!important}
html body.planner-ui.customer-ui .roof-tools-row{gap:6px!important;padding:6px!important}
html body.planner-ui.customer-ui .roof-tools-row>small,html body.planner-ui.customer-ui .workbar-divider{display:none!important}
html body.planner-ui.customer-ui .roof-tools-row :is(button,.editor-toggle){min-height:36px!important;padding:6px 9px!important;font-size:12px!important}
html body.planner-ui.customer-ui .roof-alignment-controls{border:0!important;gap:6px!important}
html body.planner-ui.customer-ui .roof-alignment-controls .rotation-input{width:90px!important}
html body.planner-ui.customer-ui .roof-alignment-controls input{width:100%!important;min-width:0!important}
html body.planner-ui.customer-ui :is(.orthogonal-toggle,.visibility-toggle) input:checked+.toggle-track{background:#0866e8!important}
html body.planner-ui.customer-ui .obstacle-properties:has(#obstacle-empty-state:not([hidden])) .obstacle-angle-control{display:none!important}
html body.planner-ui.customer-ui .canvas-head{padding:7px 10px!important}
html body.planner-ui.customer-ui .canvas-view-controls:has(button:disabled):not(:has(button:not(:disabled))){display:none!important}
/* 6.1: task-focused workspace, contextual properties, no promotional hero. */
html body.planner-ui.customer-ui.project-master-shell>main{padding-top:28px!important}
html body.planner-ui.customer-ui.project-master-shell .screen[data-screen="1"]>.section-head{text-align:left;margin-bottom:24px}
html body.planner-ui.customer-ui.project-master-shell .screen[data-screen="1"]>.section-head p{display:none}
html body.planner-ui.customer-ui.project-master-shell .screen[data-screen="1"] h1{font-size:32px!important;margin-bottom:8px}
html body.planner-ui.customer-ui .customer-type-cards img{height:130px}
html body.planner-ui.customer-ui .customer-type-cards b{font-size:18px}
html body.planner-ui.customer-ui .customer-type-cards span{padding:16px}
html body.planner-ui.customer-ui .customer-type-cards label{border-radius:12px;box-shadow:none!important}
html body.planner-ui.customer-ui .customer-choice>p{text-align:left;color:#68717c}
html body.planner-ui.customer-ui .roof-tools-row{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px!important;padding:8px!important}
html body.planner-ui.customer-ui .roof-tools-row .reset-roof{margin-left:auto}
html body.planner-ui.customer-ui .editor-properties{padding:18px!important}
html body.planner-ui.customer-ui .editor-properties .premium-disclosure>summary{font-size:13px!important;font-weight:600!important;padding:18px 0!important}
html body.planner-ui.customer-ui .editor-properties .premium-disclosure .tool-group{padding:0!important;border:0!important;margin:0!important}
html body.planner-ui.customer-ui .editor-properties .premium-disclosure .property-title{display:none}
html body.planner-ui.customer-ui .editor-properties .roof-alignment-controls{display:flex!important;flex-wrap:wrap;align-items:end;width:100%!important;padding:0!important}
html body.planner-ui.customer-ui .editor-properties .roof-alignment-controls>label:first-child{width:100%}
html body.planner-ui.customer-ui .editor-properties .roof-alignment-controls select{width:100%;max-width:100%}
html body.planner-ui.customer-ui .editor-properties .roof-alignment-controls .view-rotation-tools{display:flex;width:100%;margin:12px 0}
html body.planner-ui.customer-ui .editor-properties .roof-selection-row{display:flex;flex-wrap:wrap;padding:0!important;border:0;gap:8px}
html body.planner-ui.customer-ui .editor-properties .roof-selection-row>strong{display:none}
html body.planner-ui.customer-ui .editor-properties .roof-foundation-panel{padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
html body.planner-ui.customer-ui .editor-properties .roof-foundation-panel .panel-title{display:none}
html body.planner-ui.customer-ui .editor-properties .solar-status-row{display:flex;flex-wrap:wrap;gap:8px;padding:10px!important}
html body.planner-ui.customer-ui .editor-properties .roof-foundation-actions{display:flex;flex-direction:column;gap:8px}
html body.planner-ui.customer-ui[data-detail-mode="simple"] .edge-editor:has(#selected-edge-length:disabled){display:none!important}
html body.planner-ui.customer-ui[data-detail-mode="simple"] .obstacle-properties:has(#obstacle-empty-state:not([hidden])){display:none!important}
html body.planner-ui.customer-ui .roof-editor-redesign>.canvas-card{border:0!important;box-shadow:none!important;border-radius:0!important;background:#f5f6f8}
html body.planner-ui.customer-ui .canvas-head{background:transparent;border:0!important;color:#727985}
html body.planner-ui.customer-ui .solar-canvas{border-radius:10px;overflow:hidden}
html body.planner-ui.customer-ui .canvas-view-controls{display:flex!important;flex-direction:column;gap:5px;padding:5px!important;background:#ffffffeb!important;border:1px solid #e3e6eb!important;border-radius:10px!important;box-shadow:0 3px 14px #0000000c}
html body.planner-ui.customer-ui .canvas-view-controls button{width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border:0!important;background:transparent!important;font-size:16px!important}
html body.planner-ui.customer-ui .canvas-view-controls button span,html body.planner-ui.customer-ui .canvas-view-controls output{display:none!important}
html body.planner-ui.customer-ui .canvas-view-controls button:hover{background:#edf4ff!important}
html body.planner-ui.customer-ui.spatial-tools .plan-tools-group{border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;padding:8px!important;margin:0!important}
html body.planner-ui.customer-ui.spatial-tools .plan-toolbar{gap:0!important;padding:4px!important;background:#fff!important}
html body.planner-ui.customer-ui.spatial-tools .plan-toolbar button{min-height:34px!important;font-size:12px!important}
html body.planner-ui.customer-ui.spatial-tools .plan-toolbar .customer-tools{width:100%}
html body.planner-ui.customer-ui.spatial-tools .plan-toolbar .customer-tools>summary{border:0!important;background:transparent!important;padding:10px 4px!important;font-size:12px}
html body.planner-ui.customer-ui.spatial-tools .plan-toolbar .plan-tools-group{display:flex!important;flex-wrap:wrap;gap:6px!important}
html body.planner-ui.customer-ui.spatial-tools .plan-toolbar .plan-tools-group>button{flex:1 1 auto;width:auto!important}
html body.planner-ui.customer-ui.spatial-tools #roof-fields-panel{padding:14px!important;border:0!important;box-shadow:none!important;border-radius:0!important}
html body.planner-ui.customer-ui.spatial-tools #roof-fields-panel select{width:100%!important;min-width:0}
html body.planner-ui.customer-ui.spatial-tools #roof-fields-panel label{display:flex!important;flex-direction:column;align-items:stretch!important;gap:6px}
html body.planner-ui.customer-ui.spatial-tools .spatial-editor-nav{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid #e5e7eb}
html body.planner-ui.customer-ui.spatial-tools .spatial-editor-nav button{border:0!important;background:transparent!important}
html body.planner-ui.customer-ui.spatial-tools .spatial-editor-nav button.active{background:#edf4ff!important;color:#0866e8!important}
html body.planner-ui.customer-ui .canvas-view-controls :is(#solar-pan-mode,#plan-map-pan,#solar-fit-imagery,#plan-map-imagery){position:static!important;left:auto!important;top:auto!important;width:32px!important;min-width:32px!important}
html body.planner-ui.customer-ui.spatial-tools .canvas-view-controls{display:none!important}
html body.planner-ui.customer-ui.spatial-tools #roof-fields-panel .roof-field-controls,html body.planner-ui.customer-ui.spatial-tools #roof-fields-panel .roof-field-control{display:flex!important;flex-direction:column;align-items:stretch!important;gap:6px}

/* Selection controls remain within the viewport, including on narrow screens. */
html body.planner-ui.customer-ui .plan-toolbar .plan-tools-group{min-width:0;max-width:100%}
html body.planner-ui.customer-ui .plan-toolbar .plan-tools-group>div{display:flex!important;flex-wrap:wrap!important;min-width:0;max-width:100%;gap:6px}
html body.planner-ui.customer-ui .plan-toolbar .module-rotation-group{flex-wrap:wrap!important;flex:1 1 100%;max-width:100%}

/* 3D is a canvas, with tools revealed on demand instead of a fixed sidebar. */
.spatial-dock,.spatial-panel-close,.spatial-selection-card,.spatial-gesture-hint{display:none}
html body.planner-ui.customer-ui[data-planning-view="3d"] #spatial-workspace{display:block!important;position:relative;overflow:hidden!important;isolation:isolate}
html body.planner-ui.customer-ui[data-planning-view="3d"] #editor-3d-preview{position:absolute!important;inset:0;padding:0!important;overflow:hidden!important;min-height:0!important}
html body.planner-ui.customer-ui[data-planning-view="3d"] #editor-3d-preview .project-3d-viewer{position:relative;height:100%;min-height:0!important;border:0;border-radius:0}
html body.planner-ui.customer-ui[data-planning-view="3d"] #editor-3d-preview .viewer-3d-layout{position:absolute;inset:0;display:block;min-height:0!important}
html body.planner-ui.customer-ui[data-planning-view="3d"] #editor-3d-preview .viewer-3d-canvas{height:100%!important;min-height:0!important;border-radius:0}
html body.planner-ui.customer-ui[data-planning-view="3d"] #editor-3d-preview :is(.viewer-3d-head,.viewer-3d-navigation){display:none!important}
html body.planner-ui.customer-ui[data-planning-view="3d"] #surface-editor{position:absolute!important;left:16px;top:104px;bottom:16px;width:min(340px,calc(100% - 32px))!important;height:calc(100% - 120px)!important;min-height:0!important;border:1px solid #dbe0e8!important;border-radius:18px;box-shadow:0 12px 40px #14263d24;z-index:6;visibility:hidden;pointer-events:none;transform:translateX(-110%)}
html body.planner-ui.customer-ui[data-planning-view="3d"] #spatial-workspace[data-tools-open="true"] #surface-editor{visibility:visible;pointer-events:auto;transform:none}
html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-dock{display:flex;position:absolute;top:16px;left:16px;z-index:8;gap:4px;padding:5px;background:#ffffffed;backdrop-filter:blur(18px);border:1px solid #e1e5eb;border-radius:14px;box-shadow:0 4px 20px #14263d15}
html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-dock button{border:0!important;background:transparent!important;color:#4d5561!important;padding:8px 12px!important;min-height:34px!important;border-radius:9px!important;font-size:13px!important;box-shadow:none!important}
html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-dock button[aria-pressed="true"],html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-dock button[aria-expanded="true"]{background:#eaf1ff!important;color:#1263d7!important}
html body.planner-ui.customer-ui[data-planning-view="3d"] #spatial-workspace[data-tools-open="true"] .spatial-panel-close{display:block;position:absolute;left:28px;top:76px;z-index:9;border:0;border-radius:9px;background:#fff;padding:6px 10px;font-size:12px;transform:none}
html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-selection-card:not([hidden]){display:grid;gap:10px;position:absolute;left:50%;bottom:46px;transform:translateX(-50%);z-index:5;padding:14px;background:#ffffffed;backdrop-filter:blur(18px);border:1px solid #e1e5eb;border-radius:16px;box-shadow:0 8px 30px #14263d1a;max-width:calc(100% - 32px)}
.spatial-selection-card strong{font-size:13px}.spatial-selection-card>div{display:flex;gap:6px}.spatial-selection-card button{min-height:32px!important;font-size:12px!important;padding:6px 12px!important}.spatial-selection-card>[data-space-details]{border:0!important;background:transparent!important;color:#1263d7!important}
html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-gesture-hint{display:block;position:absolute;bottom:14px;left:50%;transform:translateX(-50%);z-index:4;background:#ffffffdb;padding:5px 12px;border-radius:20px;color:#55616d;font-size:11px;white-space:nowrap;pointer-events:none}
@media(max-width:680px){html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-dock{left:8px;top:8px}.spatial-gesture-hint{max-width:94%;white-space:normal!important;text-align:center}html body.planner-ui.customer-ui[data-planning-view="3d"] #spatial-workspace[data-tools-open="true"] .spatial-selection-card{display:none}}

.spatial-view-menu{position:relative}.spatial-view-menu>summary{list-style:none;cursor:pointer;padding:8px 12px;font-size:13px;color:#4d5561}.spatial-view-menu>div{position:absolute;top:46px;left:0;width:220px;padding:14px;display:grid;gap:12px;background:#fff;border:1px solid #e1e5eb;border-radius:14px;box-shadow:0 8px 24px #14263d22}.spatial-view-menu label{display:grid;gap:6px;font-size:12px}.spatial-view-menu select{width:100%;min-width:0}
@media(max-width:500px){html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-dock{gap:0;max-width:calc(100% - 16px)}html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-dock button,.spatial-view-menu>summary{padding:8px!important;font-size:12px!important}}

/* Contextual rotation stays in a small vertical rail at the left edge. */
html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-selection-card:not([hidden]){left:16px;top:84px;bottom:auto;transform:none;width:72px;box-sizing:border-box;padding:8px;gap:8px;border-radius:14px}
.spatial-selection-card [data-space-summary]{white-space:pre-line;text-align:center;font-size:11px;line-height:1.5}
.spatial-selection-card>div{flex-direction:column}
html body.planner-ui.customer-ui[data-planning-view="3d"] .spatial-selection-card button{display:grid;place-items:center;width:100%;height:42px;padding:8px!important}
.spatial-selection-card svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html body.planner-ui.customer-ui[data-planning-view="3d"] #spatial-workspace[data-tools-open="true"] .spatial-selection-card{display:none}

html body.planner-ui.customer-ui.project-master-shell .topbar>.planner-back{order:-2;flex:0 0 auto;padding:8px 12px!important;min-height:36px!important;border:1px solid #e1e5eb!important;border-radius:10px!important;background:#fff!important;color:#344052!important;font-size:13px!important;box-shadow:none!important}
html body.planner-ui.customer-ui.project-master-shell[data-step="1"] .topbar>.planner-back{display:none!important}
@media(max-width:680px){html body.planner-ui.customer-ui.project-master-shell .topbar>.planner-back{padding:6px 8px!important;font-size:12px!important}}
/* Fixed canvas footprint: tools float above it instead of consuming rows/columns. */
html body.planner-ui.customer-ui:not(.spatial-tools) .ux-roof-workspace .roof-occupancy-layout{display:block!important;position:relative;min-height:0;flex:1}
html body.planner-ui.customer-ui:not(.spatial-tools) .ux-roof-workspace .roof-workspace-dock{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 0;flex:none}
html body.planner-ui.customer-ui .roof-workspace-dock button{min-height:38px;padding:8px 12px;border:1px solid #e0e5ed;background:white;border-radius:9px;color:#26384e;font:inherit;font-size:13px;cursor:pointer}
html body.planner-ui.customer-ui .roof-workspace-status{font-size:12px;color:#566477;margin-left:auto;padding:0 8px}
html body.planner-ui.customer-ui:not(.spatial-tools) .roof-workspace-panel{display:none;position:absolute;z-index:30;left:12px;top:12px;width:min(360px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;background:#fff;border:1px solid #e0e5ed;border-radius:14px;box-shadow:0 10px 35px #17304c24;padding:12px}
html body.planner-ui.customer-ui:not(.spatial-tools) .ux-roof-workspace[data-tools-open="true"] .roof-workspace-panel{display:block}
html body.planner-ui.customer-ui .roof-workspace-panel .roof-occupancy-sidebar{width:auto!important;max-height:none!important;border:0!important;padding:8px!important}
html body.planner-ui.customer-ui .roof-workspace-panel .plan-toolbar{display:block!important;padding:0!important}
html body.planner-ui.customer-ui .roof-workspace-panel .plan-tools-group{display:block!important;margin:6px 0!important}
html body.planner-ui.customer-ui .roof-workspace-panel .customer-tools{flex-basis:100%!important}
html body.planner-ui.customer-ui .roof-workspace-close{display:block;margin:0 0 8px auto;border:0;background:transparent;color:#526275;padding:8px;cursor:pointer}
html body.planner-ui.customer-ui:not(.spatial-tools) .ux-roof-workspace .plan-card{width:100%!important;height:100%;min-height:420px;display:flex;flex-direction:column}
html body.planner-ui.customer-ui:not(.spatial-tools) .ux-roof-workspace .plan-card .solar-canvas{flex:1;min-height:360px;height:100%}
html body.planner-ui.customer-ui:not(.spatial-tools) .ux-roof-workspace #module-plan{width:100%!important;height:100%!important;min-height:360px}
html body.planner-ui.customer-ui.spatial-tools .roof-workspace-dock,html body.planner-ui.customer-ui.spatial-tools .roof-workspace-close{display:none!important}
html body.planner-ui.customer-ui.spatial-tools .roof-workspace-panel{display:block}
html body.planner-ui.customer-ui .planning-view-bar{align-items:center;gap:10px}
html body.planner-ui.customer-ui #planner-fullscreen{white-space:nowrap;font-size:13px;min-height:38px;padding:6px 12px;border:1px solid #e1e5eb;border-radius:9px;background:white;color:#245075}
html body.planner-ui.customer-ui .planning-screen.planner-expanded,html body.planner-ui.customer-ui .planning-screen:fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;z-index:10000;display:flex!important;flex-direction:column;background:#fff;overflow:hidden!important}
html body.planner-ui.customer-ui .planning-screen.planner-expanded .planning-head,html body.planner-ui.customer-ui .planning-screen:fullscreen .planning-head{flex:0 0 auto;min-height:52px!important;padding:6px 12px!important}
html body.planner-ui.customer-ui .planning-screen.planner-expanded #spatial-workspace,html body.planner-ui.customer-ui .planning-screen:fullscreen #spatial-workspace{flex:1;min-height:0!important;height:auto!important}
html body.planner-ui.customer-ui .planning-screen.planner-expanded #surface-editor,html body.planner-ui.customer-ui .planning-screen:fullscreen #surface-editor{min-height:0!important}
