/* Customer test surface: shared interaction colours across every planner. */
html body.planner-ui.customer-ui{--customer-blue:#1d65e5;--customer-blue-dark:#164eb3;--customer-tint:#eef4ff;--ws-control-height:44px;--ws-info:#1d65e5;background:#f5f7fb;color:#202c3d}
html body.planner-ui.customer-ui button,html body.planner-ui.customer-ui summary,html body.planner-ui.customer-ui input,html body.planner-ui.customer-ui select{font-size:14px}
html body.planner-ui.customer-ui button,html body.planner-ui.customer-ui summary{min-height:42px}
html body.planner-ui.customer-ui button.primary,html body.planner-ui.customer-ui a.primary,html body.planner-ui.customer-ui .primary.result-main-cta{background:#1d65e5!important;border-color:#1d65e5!important;color:#fff!important;box-shadow:none}
html body.planner-ui.customer-ui button.primary:hover,html body.planner-ui.customer-ui a.primary:hover{background:#164eb3!important;border-color:#164eb3!important}
html body.planner-ui.customer-ui button.secondary,html body.planner-ui.customer-ui a.secondary{background:#fff!important;border:1px solid #cbd5e1!important;color:#233752!important}
html body.planner-ui.customer-ui button.active:not(.primary),html body.planner-ui.customer-ui button[aria-pressed="true"],html body.planner-ui.customer-ui [role="tab"][aria-selected="true"]{background:#eef4ff!important;border-color:#1d65e5!important;color:#174fae!important}
html body.planner-ui.customer-ui label:has(>input[type="radio"]:checked),html body.planner-ui.customer-ui .variant-grid label:has(input:checked),html body.planner-ui.customer-ui .layout-source-options label:has(input:checked){background:#eef4ff!important;border-color:#1d65e5!important;box-shadow:0 0 0 1px #1d65e5}
html body.planner-ui.customer-ui input[type="radio"],html body.planner-ui.customer-ui input[type="checkbox"]{accent-color:#1d65e5}
html body.planner-ui.customer-ui :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #1d65e5!important;outline-offset:3px}
html body.planner-ui.customer-ui [aria-invalid="true"]{border-color:#a43d30!important;outline:2px solid #a43d30;outline-offset:1px}
html body.planner-ui.customer-ui button:disabled{opacity:.48;cursor:not-allowed}
html body.planner-ui.customer-ui .beta{background:#eef4ff;color:#174fae;border:1px solid #b7cff6}
html body.planner-ui.customer-ui .steps button.active b{background:#1d65e5!important;color:white!important}
html body.planner-ui.customer-ui .steps button{min-height:62px}
html body.planner-ui.customer-ui .customer-choice{padding:0;border:0;margin:20px 0 24px;min-width:0}
.customer-choice>legend{font-weight:700;margin-bottom:12px;font-size:16px}
.customer-type-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.customer-type-cards label{position:relative;border:1px solid #d6dfeb;border-radius:14px;overflow:hidden;cursor:pointer;display:grid;grid-template-columns:26px 1fr;background:white;transition:box-shadow .15s}
.customer-type-cards label:hover{box-shadow:0 4px 16px #18345e14}
.customer-type-cards img{width:100%;height:115px;object-fit:cover;grid-column:1/-1;grid-row:1}
.customer-type-cards input{margin:18px 0 18px 12px;width:17px;height:17px;align-self:center}
.customer-type-cards span{padding:14px 14px 14px 10px;display:grid;gap:5px}
.customer-type-cards b{font-size:17px}.customer-type-cards small,.customer-choice>p,.customer-help{font-size:13px;color:#53647b;line-height:1.5}
.customer-choice>p{margin:10px 0 0}
.customer-details,.customer-tools{border:1px solid #d9e2ee;border-radius:10px;background:#fff;min-width:0}
.customer-details>summary,.customer-tools>summary{padding:12px 14px;font-weight:600;color:#334965;cursor:pointer;display:list-item;list-style-position:inside}
.customer-details>summary::marker,.customer-tools>summary::marker{color:#1d65e5}
.customer-details[open]>summary,.customer-tools[open]>summary{border-bottom:1px solid #e2e8f0}
.customer-details> :not(summary){margin:12px!important}
.customer-details>fieldset{border:0!important;padding:4px!important}
html body.planner-ui.customer-ui .project-form-groups{display:flex;flex-direction:column;gap:12px;max-width:none}
html body.planner-ui.customer-ui .project-form-groups>fieldset{order:-1;background:white;border:1px solid #d9e2ee;border-radius:12px;padding:18px}
html body.planner-ui.customer-ui .project-form-groups>.ux-project-details{margin:0}
html body.planner-ui.customer-ui .project-form-groups .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html body.planner-ui.customer-ui .project-form-groups label:has(#terrain-category){grid-column:1/-1}
html body.planner-ui.customer-ui .project-form-groups :is(input,select){min-height:44px;font-size:16px}
html body.planner-ui.customer-ui .screen[data-screen="1"]{max-width:1040px;margin:auto;width:100%}
html body.planner-ui.customer-ui.project-master-shell .screen[data-screen="1"]>.section-head{margin-bottom:10px}
html body.planner-ui.customer-ui .screen[data-screen="1"]>.customer-details{margin-top:12px}
html body.planner-ui.customer-ui .location-panel{margin-top:16px;background:#f0f5fc}
html body.planner-ui.customer-ui .location-panel dl{grid-column:1/-1}
html body.planner-ui.customer-ui .location-panel>.customer-details{grid-column:1/-1;width:100%}
html body.planner-ui.customer-ui .customer-start-actions{position:sticky;bottom:0;background:#fff;padding:16px 0;margin-top:16px;border-top:1px solid #e2e8f0;z-index:3}
html body.planner-ui.customer-ui #customer-start{min-width:220px;min-height:48px}
html body.planner-ui.customer-ui .planning-type-cards{margin:20px 0}
html body.planner-ui.customer-ui .screen[data-screen="2"]>.customer-details{margin:10px 0}
html body.planner-ui.customer-ui .result-completion-head{gap:20px}
html body.planner-ui.customer-ui .result-metrics{display:flex;flex-wrap:wrap;gap:10px!important;margin-top:20px!important}
html body.planner-ui.customer-ui .result-metrics>article{flex:1 1 105px;background:#f2f6fd!important;border:1px solid #e1e8f4!important;border-radius:10px;padding:14px!important;min-width:0}
html body.planner-ui.customer-ui .result-metrics>article strong{font-size:22px!important;color:#233f68}
html body.planner-ui.customer-ui .result-metrics>article small{text-transform:none;font-size:12px!important}
html body.planner-ui.customer-ui .result-primary-actions{display:flex;flex-wrap:wrap;gap:8px}
html body.planner-ui.customer-ui #request-quote{order:-1;flex:1 1 180px;min-height:46px}
html body.planner-ui.customer-ui .result-header-actions .customer-details{margin-top:10px}
html body.planner-ui.customer-ui .result-status-grid{gap:8px}
html body.planner-ui.customer-ui .result-status-grid article{padding:10px!important}
html body.planner-ui.customer-ui .result-status-grid strong{font-size:12px!important}
html body.planner-ui.customer-ui .result-identity{gap:12px}
html body.planner-ui.customer-ui #panel-overview>.customer-details{margin:12px 0}
html body.planner-ui.customer-ui .customer-tools{align-self:start;flex:0 1 auto}
html body.planner-ui.customer-ui .customer-tools>summary{white-space:nowrap;padding:10px 12px}
html body.planner-ui.customer-ui .customer-tools>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;max-width:580px}
html body.planner-ui.customer-ui #wall-properties>.customer-tools>div{display:grid;width:100%}
html body.planner-ui.customer-ui .customer-tools .plan-more{border:0}
html body.planner-ui.customer-ui .customer-tools .plan-more>summary{min-height:36px}
html body.planner-ui.customer-ui .plan-tools-group{min-width:0}
html body.planner-ui.customer-ui .plan-tools-group>div{align-items:flex-start}
html body.planner-ui.customer-ui .layout-toolbar{align-items:flex-start}
html body.planner-ui.customer-ui .variant-grid label em{font-size:10px;color:#64748b}
html body.planner-ui.customer-ui .module-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
html body.planner-ui.customer-ui .fence-head nav button.active{background:#eef4ff!important;color:#174fae!important;border-color:#1d65e5!important}
@media(max-width:760px){
 .customer-type-cards{grid-template-columns:1fr;gap:10px}
 .customer-type-cards label{grid-template-columns:84px 28px 1fr;align-items:center}
 .customer-type-cards img{width:84px;height:82px;grid-column:1;grid-row:1}
 .customer-type-cards input{grid-column:2;grid-row:1;margin:0 0 0 10px}
 .customer-type-cards span{grid-column:3;grid-row:1;padding:10px}
 html body.planner-ui.customer-ui .project-form-groups .form-grid,html body.planner-ui.customer-ui .module-fields{grid-template-columns:1fr}
 html body.planner-ui.customer-ui .customer-start-actions{flex-direction:column-reverse;align-items:stretch}
 html body.planner-ui.customer-ui .customer-start-actions>button{width:100%}
 html body.planner-ui.customer-ui .customer-tools>div{max-width:100%;flex-wrap:wrap}
 html body.planner-ui.customer-ui .steps button span small{display:none}
 html body.planner-ui.customer-ui .steps button{min-width:0;padding:10px 6px}
 html body.planner-ui.customer-ui .project-result-tabs{flex-wrap:wrap}
 html body.planner-ui.customer-ui .customer-details{max-width:100%}
}

html body.planner-ui.customer-ui .result-completion-head .result-metrics{display:flex!important;flex-wrap:wrap}
html body.planner-ui.customer-ui .ux-roof-workspace .plan-toolbar button{min-height:40px!important;font-size:13px!important}
/* Use the full entry card width and remove legacy yellow selection accents. */
html body.planner-ui.customer-ui .project-form-groups,html body.planner-ui.customer-ui .project-form-groups>fieldset{width:100%!important;max-width:none!important;align-self:stretch}
html body.planner-ui.customer-ui .project-result-tabs button.active{box-shadow:inset 0 -3px 0 #1d65e5!important}
html body.planner-ui.customer-ui .planning-type-cards>button:hover,html body.planner-ui.customer-ui .planning-type-cards>button:focus-visible{border-color:#1d65e5!important;background:#eef4ff!important}
html body.planner-ui.customer-ui .result-status-grid>article{border-left-color:#d7e4f9!important}
html body.planner-ui.customer-ui .customer-type-cards input{margin:18px 0 18px 12px!important}
html body.planner-ui.customer-ui :is(.customer-tools,.customer-details):not([open])>:not(summary){display:none!important}
html body.planner-ui.customer-ui .placement-mode-hint{border-left-color:#1d65e5!important}
html body.planner-ui.customer-ui .planning-view-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#fff;border-bottom:1px solid #dce5f1;flex:0 0 auto}
.planning-view-switch{display:inline-flex;gap:4px;padding:4px;background:#f0f4fa;border-radius:12px}
html body.planner-ui.customer-ui .planning-view-switch button{min-width:150px;min-height:44px;border:1px solid transparent!important;border-radius:9px;background:transparent;color:#4b5f79}
html body.planner-ui.customer-ui .planning-view-switch button.active{background:#1d65e5!important;color:#fff!important;border-color:#1d65e5!important}
.planning-view-bar>span{font-size:13px;color:#5b6c83}
#spatial-workspace{display:flex;flex:1 1 0;min-height:0;overflow:hidden}
html body.planner-ui.customer-ui[data-planning-view="3d"] #spatial-workspace{display:grid;grid-template-columns:minmax(330px,32%) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:8px}
html body.planner-ui.customer-ui[data-planning-view="3d"] #surface-editor{display:block!important;grid-column:1;grid-row:1;width:100%;height:100%!important;min-height:0;border-right:1px solid #d8e2ef}
html body.planner-ui.customer-ui[data-planning-view="3d"] #editor-3d-preview{grid-column:2;grid-row:1;overflow:hidden;padding:0}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-info{display:none}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-layout{grid-template-columns:1fr}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-head p{display:none}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-navigation>span{font-size:11px}
html body.planner-ui.customer-ui[data-planning-view="3d"] #project-3d-viewer[data-spatial-editor="true"] .planning-3d-tools{display:none}
html body.planner-ui.customer-ui #project-3d-viewer:not([data-spatial-editor="true"]) [data-3d-mode="edit"]{display:none}
.spatial-overlay{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:2}.spatial-overlay>svg{position:absolute;left:0;top:0;transform-origin:0 0;max-width:none!important;overflow:visible}
@media(max-width:900px){html body.planner-ui.customer-ui[data-planning-view="3d"] #spatial-workspace{grid-template-columns:minmax(280px,38%) minmax(0,1fr)}}
@media(max-width:680px){html body.planner-ui.customer-ui[data-planning-view="3d"] #spatial-workspace{display:flex;flex-direction:column;overflow:auto}html body.planner-ui.customer-ui[data-planning-view="3d"] #surface-editor{min-height:330px;flex:0 0 330px}html body.planner-ui.customer-ui[data-planning-view="3d"] #editor-3d-preview{min-height:500px;flex:0 0 500px}}

html body.planner-ui.customer-ui #editor-3d-preview:not([hidden]){display:block;min-height:0;flex:1 1 0;overflow:auto;padding:8px}
html body.planner-ui.customer-ui #editor-3d-preview .project-3d-viewer{height:100%;min-height:460px;display:flex;flex-direction:column;margin:0}
html body.planner-ui.customer-ui #editor-3d-preview .viewer-3d-layout{flex:1 1 auto;min-height:260px}
html body.planner-ui.customer-ui #editor-3d-preview .viewer-3d-canvas{min-height:260px;height:100%}
html body.planner-ui.customer-ui #editor-3d-preview .viewer-3d-head{padding:10px 12px}
html body.planner-ui.customer-ui #editor-3d-preview .viewer-3d-head h2{font-size:17px}
html body.planner-ui.customer-ui #editor-3d-preview .viewer-3d-help{display:none}
html body.planner-ui.customer-ui .customer-3d-invite{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;padding:16px;background:#eef4ff;border:1px solid #c7d9f7;border-radius:12px}
.customer-3d-invite>div{display:grid;gap:6px}.customer-3d-invite strong{font-size:16px;color:#174fae}.customer-3d-invite span{font-size:13px;color:#536782}
@media(max-width:760px){html body.planner-ui.customer-ui .planning-view-bar{flex-wrap:wrap;padding:8px}.planning-view-bar>span{display:none}.planning-view-switch{width:100%}html body.planner-ui.customer-ui .planning-view-switch button{min-width:0;flex:1}html body.planner-ui.customer-ui #editor-3d-preview .project-3d-viewer{min-height:620px}.customer-3d-invite{flex-wrap:wrap}}
.planning-3d-tools{display:none}
html body.planner-ui.customer-ui #editor-3d-preview .planning-3d-tools{display:grid;gap:8px;padding:12px;background:#eef4ff;border-bottom:1px solid #c8d9f6}
.planning-3d-tools>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.planning-3d-tools>strong{font-size:13px;color:#254976}.planning-3d-tools>span{font-size:12px;color:#435a76}
html body.planner-ui.customer-ui .planning-3d-tools label{display:flex;gap:8px;align-items:center;margin:0}
html body.planner-ui.customer-ui .project-3d-viewer:not([data-edit-surface-type="WALL"]) .planning-3d-wall-kind{display:none}
html body.planner-ui.customer-ui .project-3d-viewer[data-edit-busy="true"] .planning-3d-tools{opacity:.6;pointer-events:none}
html body.planner-ui.customer-ui #editor-3d-preview .viewer-3d-layerbar{display:none}
/* Customer defaults: explanations on demand, compact planning chrome. */
html body.planner-ui.customer-ui .planner-detail-toggle{margin-left:auto;min-height:36px!important;border:1px solid #d5e1f2!important;background:#fff;color:#36597f;font-size:12px!important;border-radius:8px}
html body.planner-ui.customer-ui .planner-detail-toggle[aria-pressed="true"]{background:#edf4ff!important;color:#1d65e5!important;border-color:#9cbcec!important}
html body.planner-ui.customer-ui[data-detail-mode="simple"] .info-tip{display:none!important}
html.loading-saved-project body>main{visibility:hidden}
html.loading-saved-project #project-boot-status{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:12px;position:absolute;inset:100px 0 0;color:#355576;background:#f7faff;z-index:20}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-head>div:first-child{display:none}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-head{padding:8px!important;display:block!important}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-actions{width:100%;justify-content:space-between;gap:6px}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-actions :is(button,select){min-height:36px!important;font-size:12px!important}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-navigation{padding:8px 10px;gap:8px}
html body.planner-ui.customer-ui[data-planning-view="3d"][data-detail-mode="simple"] .viewer-3d-navigation>label{display:none}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-navigation>span{font-size:11px;line-height:1.3}
html body.planner-ui.customer-ui[data-planning-view="3d"] .viewer-3d-compass{transform:scale(.8);transform-origin:top right}
@media(max-width:700px){html body.planner-ui.customer-ui .planner-detail-toggle{max-width:125px;font-size:11px!important}.planner-detail-toggle+.beta{font-size:10px}}

/* Keep the optional tools switch and version badge on the same header row. */
html body.project-master-shell.customer-ui .topbar{display:flex;flex-wrap:nowrap;gap:16px}
html body.project-master-shell.customer-ui .topbar .brand,html body.project-master-shell.customer-ui .topbar .beta,html body.project-master-shell.customer-ui .topbar .planner-detail-toggle{flex-shrink:0}
html body.project-master-shell.customer-ui .topbar .context{flex:1;min-width:0}
@media(max-width:600px){html body.project-master-shell.customer-ui .topbar .context{display:none!important}html body.project-master-shell.customer-ui .topbar .beta{display:none!important}}

/* The engine can take a moment on devices using the software renderer. */
html body.planner-ui.customer-ui #project-3d-viewer[data-loading="true"] [data-3d-canvas]::after{content:"3D-Modell wird geladen …";position:absolute;inset:0;display:grid;place-items:center;background:#eef4f8;color:#244d75;font-size:16px;font-weight:600;z-index:5}
html body.planner-ui.customer-ui #project-3d-viewer[data-loading="true"] .viewer-3d-navigation{pointer-events:none;opacity:.5}
