/* First-step choices share the existing wardrobe workspace. */
[data-planner-mode="custom"]{--paper:#f0ebe4}
[data-planner-mode="custom"] .composer-sheet{overflow:clip}
[data-planner-mode="custom"] .composer-stage[data-composer-stage="1"]>.storage-fieldset,
[data-planner-mode="custom"] .composer-stage[data-composer-stage="1"]>.size-controls{display:none!important}
.custom-workspace{width:100%;max-width:590px;margin:0 auto;min-height:0}
.custom-step-title{font-family:var(--serif);font-size:26px;font-weight:500;margin:0 0 20px}
.custom-workspace fieldset{min-width:0;padding:0;margin:0 0 22px;border:0}
.custom-workspace legend{padding:0;margin-bottom:10px;font-size:14px;color:var(--ink)}
.custom-form-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.custom-form-card{display:flex;flex-direction:column;align-items:center;min-width:0;border:1px solid var(--line);padding:12px 6px 10px;background:var(--surface);color:var(--ink);cursor:pointer}
.custom-form-card[aria-pressed="true"]{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.custom-form-card:disabled{cursor:default;opacity:.48}
.custom-form-card strong{font-size:14px;font-weight:500;margin-top:9px}
.custom-form-card small{font-size:12px;color:var(--muted);margin-top:3px}
.custom-form-graphic{display:flex;align-items:flex-end;justify-content:center;width:100%;height:76px;overflow:hidden}
.custom-form-graphic .wizard-module-preview{height:76px!important;width:auto!important;max-width:95%;aspect-ratio:50/230!important;filter:none}
.form-low .custom-form-graphic .wizard-module-preview{height:36px!important;width:43px!important;aspect-ratio:auto!important}
.form-floating .custom-form-graphic .wizard-module-preview{height:28px!important;width:43px!important;margin-bottom:22px;aspect-ratio:auto!important}
.form-floating .cabinet-toe-kick{visibility:hidden}
.form-desk .custom-form-graphic .wizard-module-preview{height:34px!important;width:46px!important;aspect-ratio:auto!important}
.form-desk .module-cabinet-shell>img:not(.cabinet-top-panel):not(.cabinet-left-panel):not(.cabinet-right-panel){visibility:hidden}
.form-desk .module-cabinet-shell{background:transparent}
.custom-purpose-buttons{display:flex;gap:8px;flex-wrap:wrap}
.custom-purpose-button{flex:1;min-width:80px;border:1px solid var(--line);background:transparent;padding:11px 12px;color:var(--ink);font-size:14px;cursor:pointer}
.custom-purpose-button.is-selected{background:var(--brand);border-color:var(--brand);color:#fff}
.custom-purpose-button:focus-visible,.custom-form-card:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.custom-depth-note,.custom-toe-note{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0 0}
.custom-dimensions{display:grid;gap:13px}
.custom-field{min-width:0}
.custom-field-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px}
.custom-field label{font-size:14px;line-height:1.5}
.custom-stepper{display:flex;align-items:center;border:1px solid var(--line);background:var(--surface);flex:none}
.custom-stepper button{width:36px;height:34px;padding:0;border:0;background:transparent;font-size:19px;cursor:pointer;touch-action:manipulation}
.custom-stepper button:disabled{color:#cfc7be;cursor:default}
.custom-stepper input{width:52px;height:34px;padding:0 2px;border:0;border-inline:1px solid var(--line);background:transparent;text-align:center;color:var(--ink);font-size:15px;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
.custom-stepper input::-webkit-inner-spin-button{appearance:none}
.custom-field input[type="range"]{display:block;width:100%;height:24px;accent-color:var(--brand);margin:3px 0 0;cursor:pointer}
.custom-range-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;line-height:1.4}
.custom-field.is-fixed input[type="range"],.custom-field.is-fixed .custom-range-labels,.custom-field.is-fixed .custom-stepper button{display:none}
.custom-counts{display:grid;gap:12px;padding-top:16px;border-top:1px solid var(--line);margin-top:16px}
.custom-feedback{color:var(--danger);font-size:13px;line-height:1.7;min-height:24px;margin:8px 0}
.custom-group-entry .category-card{padding:24px;text-decoration:none}
/* Fixed drawing frame keeps plan and elevation at exactly the same scale. */
.custom-drawing-container{container-type:size}
.custom-drawing-sheet{position:relative;flex:none;width:min(100cqw,calc(100cqh * var(--drawing-ratio,.3913)));height:auto;aspect-ratio:180/460}
.custom-drawing-geometry{display:block;position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.drawing-line,.drawing-front-edge{stroke:#736a60;stroke-width:1;vector-effect:non-scaling-stroke}
.drawing-door-edge{stroke:#574d42;stroke-width:3;vector-effect:non-scaling-stroke}
.drawing-extension{stroke:#b6aca1;stroke-width:.7;vector-effect:non-scaling-stroke}
.drawing-projector{stroke:#b9afa4;stroke-dasharray:4 5;stroke-width:.8;vector-effect:non-scaling-stroke}
.drawing-plan-outline{fill:#f8f4ed;stroke:#736a60;stroke-width:1;vector-effect:non-scaling-stroke}
.drawing-plan-inner{fill:#e5ded2;stroke:#9d9387;stroke-width:.7;vector-effect:non-scaling-stroke}
.drawing-text{font-family:var(--sans,sans-serif);font-size:7px;fill:#5d554b}
.drawing-view-label{font-family:var(--sans,sans-serif);font-size:7px;fill:#7f756a;letter-spacing:.5px}
.custom-drawing-container .custom-drawing-sheet>.wizard-module-preview,#composerPreview.custom-drawing-container .custom-drawing-sheet>.wizard-module-preview{position:absolute!important;left:var(--elevation-left)!important;top:var(--elevation-top)!important;width:var(--elevation-width)!important;height:var(--elevation-height)!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;filter:none}
[data-planner-mode="custom"] #livePreviewCabinet{padding:4px 12px}
[data-planner-mode="custom"] #composerPreview.custom-drawing-container{flex:1;min-height:0!important;height:auto!important;width:100%;align-self:stretch!important;display:flex;align-items:center!important;justify-content:center}
[data-planner-mode="custom"] #composerPreview .custom-drawing-sheet{width:min(85cqw,calc(85cqh * var(--drawing-ratio,.3913)));height:auto}
[data-planner-mode="custom"] #composerPreview .custom-drawing-sheet>.wizard-module-preview{min-height:0!important;min-width:0!important;margin:0!important}
[data-planner-mode="custom"] .cabinet-drawer-material{position:absolute;z-index:3;pointer-events:none}
[data-planner-mode="custom"] .cabinet-drawer-material>svg{position:absolute;left:2%;top:5%;width:96%;height:90%;opacity:.7}
[data-planner-mode="custom"] .cabinet-back-panel.has-material-preview{opacity:.8}
@media(max-width:720px){
 .custom-step-title{font-size:20px;margin-bottom:16px}.custom-workspace fieldset{margin-bottom:18px}
 .custom-form-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.custom-form-card{padding:8px 4px}.custom-form-graphic{height:58px}.custom-form-graphic .wizard-module-preview{height:58px!important}
 .custom-form-card strong{margin-top:6px;font-size:14px}.custom-form-card small{font-size:12px}
 .custom-purpose-buttons{gap:6px}.custom-purpose-button{min-width:52px;padding:10px 5px;font-size:14px}
 .custom-field-top{gap:6px;flex-wrap:wrap}.custom-stepper{margin-left:auto}.custom-field label{font-size:14px}
 .custom-stepper button{width:30px;height:36px}.custom-stepper input{width:42px;height:36px;font-size:14px}
 [data-planner-mode="custom"] #livePreviewCabinet{padding:0}
}

/* Plan drawings use the same left/right edges as the corresponding elevations. */
.drawing-plan-door{fill:#ded4c6;stroke:#736a60;stroke-width:.8;vector-effect:non-scaling-stroke}
.drawing-door-swing path{fill:none;stroke:#756a5d;stroke-width:1;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}
.drawing-dimensions{display:none}
.show-cabinet-dimensions .drawing-dimensions{display:block}
.preview-dimension-toggle{display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;color:var(--ink);cursor:pointer;flex:none;min-height:32px}
.preview-dimension-toggle input{width:16px;height:16px;accent-color:var(--brand)}
[data-planner-mode="custom"] .module-cabinet-shell>.custom-shelf-decor{position:absolute;display:block;max-width:none;margin:0;padding:0;border:0;z-index:2;object-fit:contain;object-position:center bottom;filter:none;pointer-events:none}
[data-planner-mode="custom"] [data-composer-stage="4"].is-active{height:100%;min-height:0;padding:0!important;overflow:hidden}
[data-planner-mode="custom"] .confirmation-layout{width:100%;height:100%;min-height:0;max-width:none;margin:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0}
.custom-confirmation-preview{display:flex;flex-direction:column;align-items:center;min-height:0;height:100%;padding:24px 36px;background:#f0ebe4;border-right:1px solid var(--line)}
[data-planner-mode="custom"] .confirmation-info{height:100%;min-height:0;padding:28px 32px;overflow:auto}
.plan-module-top-select{position:absolute;left:0;bottom:calc(var(--plan-module-zoom-height,400px) + 24px);width:100%;height:calc(var(--plan-module-zoom-height,400px) * var(--plan-depth-ratio,.64));margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none}
.custom-editor-plan{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
.custom-editor-plan .drawing-text{font-size:7px}
.plan-module-top-select:focus-visible{outline:1px dashed var(--brand);outline-offset:3px}
.drawing-difference-line{stroke:#655849;stroke-width:.8;vector-effect:non-scaling-stroke}
.drawing-difference-text{fill:#514536;font-family:inherit;font-size:6px;paint-order:stroke;stroke:#f8f4f1;stroke-width:2px;stroke-linejoin:round}
[data-planner-mode="custom"] .module-action-menu.is-floating{position:fixed;z-index:1400;inset:auto;margin:0;transform:none;min-width:176px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;background:#fefcfa;box-shadow:0 8px 24px #463e3633;isolation:isolate}
[data-planner-mode="custom"] .module-action-menu.is-floating button{min-height:42px;padding:10px 12px;font-size:14px;line-height:1.5}
[data-planner-mode="custom"] .module-action-menu.is-floating button:disabled{opacity:.35;cursor:default;background:transparent}
[data-planner-mode="custom"] .plan-alignment-menu button[aria-checked="true"]:not(:disabled){background:#e9e2dc}
[data-planner-mode="custom"] .builder-view .plan-module:hover,[data-planner-mode="custom"] .builder-view .plan-module.is-selected{transform:none}
[data-planner-mode="custom"] .builder-view .module-dimension{display:none}
[data-planner-mode="custom"].show-cabinet-dimensions .builder-view .module-dimension{display:block}
@media(max-width:720px){
 [data-planner-mode="custom"] .confirmation-layout{grid-template-columns:minmax(0,40%) minmax(0,60%)}
 .custom-confirmation-preview{padding:12px 8px}
 [data-planner-mode="custom"] .confirmation-info{padding:20px 12px}
 .preview-dimension-toggle{font-size:12px;gap:5px}
}

/* A camera transform keeps every panel and both drawing views at one scale. */
.custom-drawing-viewport{position:relative;overflow:hidden;touch-action:none;overscroll-behavior:contain;cursor:grab;user-select:none;-webkit-user-select:none}
[data-planner-mode="custom"] #composerPreview.custom-drawing-viewport{overflow:hidden!important}
.custom-drawing-viewport.is-panning{cursor:grabbing}
.custom-drawing-viewport:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.custom-drawing-viewport>.custom-drawing-sheet{transform:translate(var(--drawing-pan-x,0px),var(--drawing-pan-y,0px)) scale(var(--drawing-zoom,1));transform-origin:center center;will-change:transform;pointer-events:none}
[data-planner-mode="custom"] #livePreviewCabinet.custom-drawing-viewport{align-items:center}
.drawing-view-reset{position:absolute;z-index:20;top:8px;right:8px;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:3px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px;cursor:pointer;touch-action:manipulation}
.drawing-view-reset:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:720px){.drawing-view-reset{top:3px;right:3px;min-height:40px;padding:6px;font-size:11px}}

/* The editor camera can translate past every edge; selection and sorting stay separate. */
[data-planner-mode="custom"] .builder-view #planViewport{overflow:clip;touch-action:none;overscroll-behavior:contain}
[data-planner-mode="custom"] #planCanvas{transform:translate(var(--plan-pan-x,0px),var(--plan-pan-y,0px));will-change:transform}
[data-planner-mode="custom"] .plan-view-reset{position:absolute;top:14px;right:18px;z-index:25}
[data-planner-mode="custom"] .plan-view-reset[hidden]{display:none}
[data-planner-mode="custom"] .summary-reset{display:flex;justify-content:flex-end;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
[data-planner-mode="custom"] .summary-reset button{min-height:44px;min-width:120px}

/* Mobile composer: one task at a time, with the drawing as the main workspace. */
.custom-mobile-back[hidden]{display:none!important}
@media(max-width:720px){
 [data-planner-mode="custom"] .composer-sheet.has-live-preview{grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:auto minmax(0,1fr)}
 [data-planner-mode="custom"] .composer-sheet.is-material-workspace{grid-template-rows:auto auto minmax(0,1fr)}
 [data-planner-mode="custom"] .composer-progress small{font-size:10px;letter-spacing:0}
 [data-planner-mode="custom"] .custom-stepper input{font-size:16px}
 [data-planner-mode="custom"] .composer-live-preview{padding:8px 6px;gap:4px}
 [data-planner-mode="custom"] #livePreviewCaption{min-height:0;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
 [data-planner-mode="custom"] .composer-action-bar{left:0;padding-inline:12px}
 [data-planner-mode="custom"] .has-live-preview>.composer-stage.is-active{padding:16px 10px 20px;overscroll-behavior:contain}
 [data-planner-mode="custom"] .composer-sheet[data-custom-stage="1"]>.composer-stage.is-active{padding:20px 18px}
 [data-planner-mode="custom"] [data-mobile-storage-step="choices"] .custom-controls{display:none}
 [data-planner-mode="custom"] [data-mobile-storage-step="choices"] .custom-form-graphic{height:84px}
 [data-planner-mode="custom"] [data-mobile-storage-step="choices"] .form-tall .custom-form-graphic .wizard-module-preview{height:84px!important}
 [data-planner-mode="custom"] [data-mobile-storage-step="choices"] .custom-form-card{padding:14px 8px}
 [data-planner-mode="custom"] [data-mobile-storage-step="choices"] .custom-purpose-button{min-height:48px}
 [data-planner-mode="custom"] [data-mobile-storage-step="dimensions"] .custom-form-section,
 [data-planner-mode="custom"] [data-mobile-storage-step="dimensions"] .custom-purpose-section,
 [data-planner-mode="custom"] [data-mobile-storage-step="dimensions"] .custom-counts,
 [data-planner-mode="custom"] [data-mobile-storage-step="fittings"] .custom-form-section,
 [data-planner-mode="custom"] [data-mobile-storage-step="fittings"] .custom-purpose-section,
 [data-planner-mode="custom"] [data-mobile-storage-step="fittings"] .custom-dimensions,
 [data-planner-mode="custom"] [data-mobile-storage-step="fittings"] .custom-toe-note{display:none}
 [data-planner-mode="custom"] [data-custom-stage="1"][data-mobile-storage-step="dimensions"]>.composer-stage.is-active{padding:16px 8px 20px}
 [data-mobile-storage-step="dimensions"] .custom-step-title{font-size:18px;line-height:1.5;margin-bottom:18px}
 [data-mobile-storage-step="dimensions"] .custom-dimensions{gap:24px}
 [data-mobile-storage-step="dimensions"] .custom-field-top{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 [data-mobile-storage-step="dimensions"] .custom-stepper{width:100%;margin:0}
 [data-mobile-storage-step="dimensions"] .custom-stepper button{flex:0 0 32px;width:32px;height:44px}
 [data-mobile-storage-step="dimensions"] .custom-stepper input{min-width:0;width:0;flex:1;height:44px;font-size:16px}
 [data-mobile-storage-step="dimensions"] .custom-field input[type="range"]{min-width:0;margin:4px 0 0;height:40px}
 [data-mobile-storage-step="dimensions"] .custom-range-labels{font-size:10px}
 [data-mobile-storage-step="dimensions"] .custom-toe-note{margin:12px 0 0;font-size:11px}
 [data-planner-mode="custom"] .custom-feedback:empty{display:none}
 [data-planner-mode="custom"] .composer-sheet[data-custom-stage="1"][data-mobile-storage-step="fittings"]>.composer-stage.is-active{padding:16px 10px 20px}
 [data-mobile-storage-step="fittings"] .custom-step-title{font-size:18px;line-height:1.5;margin-bottom:18px}
 [data-mobile-storage-step="fittings"] .custom-counts{margin:0;padding:0;border:0;gap:22px}
 [data-mobile-storage-step="fittings"] .custom-field-top{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 [data-mobile-storage-step="fittings"] .custom-stepper{width:100%;margin:0}
 [data-mobile-storage-step="fittings"] .custom-stepper button{flex:0 0 32px;width:32px;height:44px}
 [data-mobile-storage-step="fittings"] .custom-stepper input{min-width:0;width:0;flex:1;height:44px;font-size:16px}
 [data-mobile-storage-step="fittings"] .custom-field input[type="range"]{height:40px}
 [data-mobile-storage-step="fittings"] .custom-range-labels{font-size:10px}
 [data-planner-mode="custom"] .material-toolbar{padding:6px 12px 8px}
 [data-planner-mode="custom"] .material-quick-filters{flex-wrap:nowrap;overflow-x:auto}
 [data-planner-mode="custom"] .is-material-workspace>.composer-stage.is-active{padding:12px 4px 20px;padding-inline:4px!important;scrollbar-width:thin}
 [data-planner-mode="custom"] .has-live-preview .material-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 6px;padding:3px 2px 12px}
 [data-planner-mode="custom"] .material-choice{padding:2px;transform:none}
 [data-planner-mode="custom"] .material-choice>span{padding:5px 0 1px}
 [data-planner-mode="custom"] .has-live-preview .material-choice img{aspect-ratio:4/7;height:auto}
 [data-planner-mode="custom"] .has-live-preview .material-choice strong{font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
 [data-planner-mode="custom"] .has-live-preview .material-choice small{font-size:9px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
 [data-planner-mode="custom"] .material-lock-bar.is-locked{padding:10px 0}
 [data-planner-mode="custom"] .material-lock-copy{min-width:0}
 [data-planner-mode="custom"] .material-lock-bar button{min-width:0;max-width:100%;margin:10px 0 0;white-space:normal}
 [data-planner-mode="custom"] .material-lock-bar.is-locked .material-lock-icon{margin:0 auto 8px}
 [data-planner-mode="custom"] .has-live-preview .composer-stage>.stage-heading{padding:0}
 [data-planner-mode="custom"] .has-live-preview .stage-heading h3{font-size:18px;line-height:1.5}
 [data-planner-mode="custom"] .has-live-preview .handle-choice{grid-template-columns:minmax(0,1fr);gap:6px;padding:10px 6px;text-align:center;justify-items:center}
 [data-planner-mode="custom"] .handle-choice .handle-choice-copy strong{font-size:13px}
 [data-planner-mode="custom"] .handle-choice .handle-choice-copy small{font-size:11px}
 [data-planner-mode="custom"] .confirmation-layout{grid-template-columns:minmax(0,3fr) minmax(0,2fr);padding:0}
 [data-planner-mode="custom"] .custom-confirmation-preview{padding:8px 6px}
 [data-planner-mode="custom"] .confirmation-info{padding:12px 6px 20px;overscroll-behavior:contain;scrollbar-width:thin}
 [data-planner-mode="custom"] .confirmation-info .composer-summary{grid-template-columns:minmax(48px,.8fr) minmax(0,1.2fr)}
 [data-planner-mode="custom"] .confirmation-info .composer-summary dt,
 [data-planner-mode="custom"] .confirmation-info .composer-summary dd{padding:6px 4px;margin:0;border-bottom:1px solid var(--line);font-size:10px;line-height:1.5;overflow-wrap:anywhere}
 [data-planner-mode="custom"] .confirmation-info .composer-summary dt:last-of-type,
 [data-planner-mode="custom"] .confirmation-info .composer-summary dd:last-of-type{border-bottom:0}
 [data-planner-mode="custom"] .confirmation-info .composer-summary dd{text-align:right}
 [data-planner-mode="custom"] .confirmation-info .confirmation-materials{grid-template-columns:minmax(0,1fr);gap:8px}
 [data-planner-mode="custom"] .confirmation-info .confirmation-material{grid-template-columns:clamp(30px,9vw,52px) minmax(0,1fr);min-height:76px}
 [data-planner-mode="custom"] .confirmation-info .confirmation-material img{width:100%;height:100%;min-height:76px;aspect-ratio:auto;object-fit:cover}
 [data-planner-mode="custom"] .confirmation-info .confirmation-material>span{padding:6px 4px;min-width:0}
 [data-planner-mode="custom"] .confirmation-info .confirmation-material small{font-size:9px;line-height:1.5;overflow-wrap:anywhere}
 [data-planner-mode="custom"] .confirmation-info .confirmation-material strong{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
}

/* One scalable workspace, with navigation and view tools outside the camera. */
[data-planner-mode="custom"] #categoryView{display:none!important}
[data-planner-mode="custom"] .composer-sheet,
[data-planner-mode="custom"] .composer-sheet.has-live-preview{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;background:#f0ebe4}
[data-planner-mode="custom"] .composer-sheet.is-material-workspace{grid-template-rows:auto auto minmax(0,1fr) auto}
.composer-canvas-viewport{grid-column:1;grid-row:2;position:relative;min-height:0;width:100%;overflow:hidden;touch-action:none}
.is-material-workspace>.composer-canvas-viewport{grid-row:3}
.composer-canvas{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);transform:translate(var(--drawing-pan-x,0px),var(--drawing-pan-y,0px)) scale(var(--drawing-zoom,1));transform-origin:center}
.has-live-preview .composer-canvas{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.composer-sheet[data-custom-stage="1"]:not(.has-live-preview) .composer-canvas{transform:none}
.composer-sheet[data-custom-stage="1"]:not(.has-live-preview) .composer-canvas-viewport,
.composer-sheet[data-custom-stage="1"]:not(.has-live-preview) .composer-stage{touch-action:pan-y}
[data-planner-mode="custom"] .composer-canvas>.composer-live-preview{grid-column:1;grid-row:1;padding:16px 24px 8px;border:0;background:transparent;overflow:visible}
[data-planner-mode="custom"] .composer-canvas>.composer-stage.is-active{grid-column:1;grid-row:1;width:100%;height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 32px;background:transparent;touch-action:none;animation:none!important;transform:none!important}
[data-planner-mode="custom"] .has-live-preview .composer-canvas>.composer-stage.is-active{grid-column:2;display:block}
[data-planner-mode="custom"] .composer-canvas .custom-confirmation-preview{border:0;background:transparent}
.composer-canvas .custom-drawing-sheet{transform:none!important;will-change:auto}
[data-planner-mode="custom"] .composer-canvas #livePreviewCabinet{align-items:center}
.composer-view-tools{grid-column:1;grid-row:3;display:flex;justify-content:center;align-items:center;gap:6px;width:50%;min-height:40px;padding:4px 8px 6px;background:transparent}
.is-material-workspace>.composer-view-tools{grid-row:4}
.composer-view-tools[hidden]{display:none!important}
.view-tool-tag{display:inline-flex;justify-content:center;align-items:center;flex:none;min-height:30px;padding:5px 9px;border:1px solid #c9beb0;border-radius:14px;background:transparent;color:var(--ink);font:inherit;font-size:11px;line-height:1.4;white-space:nowrap;cursor:pointer;touch-action:manipulation}
.view-tool-tag[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:#fff}
.view-tool-tag:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
[data-planner-mode="custom"] #planViewReset{position:static;min-height:30px;font-size:11px}
[data-planner-mode="custom"] .footer-summary-actions{flex-wrap:wrap;gap:6px}
[data-planner-mode="custom"] .summary-view{padding-top:24px}
[data-planner-mode="custom"] .composer-live-preview>p{background:transparent}
[data-planner-mode="custom"] .material-status[hidden]{display:none!important}
[data-planner-mode="custom"] .material-choice{aspect-ratio:2/3;display:grid;grid-template-rows:minmax(0,1fr) auto;align-content:stretch;min-height:0}
[data-planner-mode="custom"] .has-live-preview .material-choice img{width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:cover}
@media(max-width:720px){
 [data-planner-mode="custom"] .composer-sheet.has-live-preview{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
 [data-planner-mode="custom"] .composer-sheet.is-material-workspace{grid-template-rows:auto auto minmax(0,1fr) auto}
 .has-live-preview .composer-canvas{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
 [data-planner-mode="custom"] .composer-canvas>.composer-live-preview{padding:8px 6px;gap:4px}
 [data-planner-mode="custom"] .composer-canvas>.composer-stage.is-active{padding:16px 8px 20px}
 [data-planner-mode="custom"] .is-material-workspace .composer-canvas>.composer-stage.is-active{padding:12px 4px 20px;padding-inline:4px!important;scrollbar-width:thin}
 [data-planner-mode="custom"] [data-mobile-storage-step="choices"] .composer-canvas>.composer-stage.is-active{padding:20px 18px}
 .composer-view-tools{width:60%;min-height:36px;padding:2px 4px 4px;gap:5px}
 .view-tool-tag{min-height:28px;padding:4px 8px;font-size:10px}
 [data-planner-mode="custom"] #planViewReset{min-height:28px;font-size:10px}
 [data-planner-mode="custom"] .module-list-title{flex-wrap:wrap}
 [data-planner-mode="custom"] .module-list-title>span:first-child{width:100%}
}

/* Quick views move the same canvas; tools remain within reach. */
[data-planner-mode="custom"] .composer-view-tools{width:100%;flex-wrap:wrap;min-height:42px;gap:6px}
[data-camera-focus="settings"] .composer-canvas>.composer-stage.is-active:not([data-composer-stage="4"]),
[data-camera-focus="settings"] .confirmation-info{height:var(--settings-panel-height);max-height:var(--settings-panel-height);align-self:start}
.material-card{position:relative;min-width:0}
[data-planner-mode="custom"] .material-card>.material-choice{width:100%}
[data-planner-mode="custom"] .material-choice.is-selected{background:#cbc6c0;border-color:#736c64;box-shadow:inset 0 0 0 1px #736c64}
[data-planner-mode="custom"] .material-choice.is-selected img{filter:brightness(.58) saturate(.7)}
.material-info-button{position:absolute;top:32%;left:50%;transform:translateX(-50%);z-index:2;max-width:calc(100% - 8px);padding:6px 10px;min-height:30px;border:1px solid #fff9;border-radius:20px;background:#f5f1eb;color:#403a34;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.material-info-button[hidden]{display:none}
.material-info-button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.board-info-dialog{position:fixed;inset:0;width:min(700px,100vw);height:100dvh;max-width:100vw;max-height:100dvh;margin:auto;padding:0;border:0;background:#151412;color:#fff;overflow:hidden}
.board-info-dialog::backdrop{background:rgba(0,0,0,.94)}
.board-info-dialog:not([open]){display:none}
.board-info-sheet{position:relative;display:flex;flex-direction:column;justify-content:flex-end;width:100%;height:100%}
.board-info-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.board-info-close{position:absolute;z-index:3;top:max(16px,env(safe-area-inset-top));right:16px;width:44px;height:44px;display:grid;place-items:center;border:1px solid #fff7;border-radius:50%;background:#3d352bbd;color:#fff;font-size:28px;cursor:pointer}
.board-info-copy{position:relative;z-index:1;padding:20px 24px max(24px,env(safe-area-inset-bottom));background:#40382cba;backdrop-filter:blur(10px);max-height:60%;overflow:auto}
.board-info-copy p{margin:0 0 6px;font-size:13px;color:#e0d8cd}
.board-info-copy h2{margin:0 0 16px;font-size:24px;font-weight:500;color:#fff}
.board-info-copy dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.board-info-copy dt{font-size:12px;color:#d5cbbd;margin-bottom:4px}
.board-info-copy dd{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}
@media(max-width:720px){
 .material-info-button{top:3px;max-width:calc(100% - 2px);padding:4px 2px;font-size:10px;line-height:14px;min-height:24px}
 .board-info-copy{padding:18px 16px max(22px,env(safe-area-inset-bottom))}
 .board-info-copy h2{font-size:22px}
}

/* Reflow settings at a comfortable reading size inside the enlarged canvas. */
.composer-canvas>.composer-stage:not([data-composer-stage="4"])>*,
.composer-canvas .confirmation-info>*{zoom:var(--controls-compensation,1)}
.composer-sheet[data-custom-stage="1"]:not(.has-live-preview) .composer-stage>*{zoom:1}
[data-planner-mode="custom"] .composer-canvas>.composer-stage.is-active{padding:calc(24px * var(--controls-compensation,1)) calc(32px * var(--controls-compensation,1))}
[data-planner-mode="custom"] .composer-canvas .confirmation-info{padding:calc(28px * var(--controls-compensation,1)) calc(32px * var(--controls-compensation,1))}
[data-planner-mode="custom"] .builder-view .module-dimension,
[data-planner-mode="custom"] .builder-view .module-config-tag{font-size:calc(9px + 3.5px * var(--plan-label-boost,0));line-height:1.35;padding:calc(2px + var(--plan-label-boost,0) * 1px) calc(7px + var(--plan-label-boost,0) * 1px);color:#443a30;border-color:#c5b9ab}
[data-planner-mode="custom"] .builder-view .cabinet-dimension-label{font-size:calc(10px + 3px * var(--plan-label-boost,0));line-height:1.2;padding:2px 4px;letter-spacing:0}
[data-planner-mode="custom"] .builder-view .module-plan-meta{gap:calc(3px + var(--plan-label-boost,0) * 1px)}
[data-planner-mode="custom"] .builder-view .module-config-tags{gap:calc(2px + var(--plan-label-boost,0) * 1px)}
@media(max-width:720px){
 [data-planner-mode="custom"] .composer-canvas>.composer-stage.is-active{padding:calc(16px * var(--controls-compensation,1)) calc(8px * var(--controls-compensation,1)) calc(20px * var(--controls-compensation,1))}
 [data-planner-mode="custom"] .is-material-workspace .composer-canvas>.composer-stage.is-active{padding:calc(12px * var(--controls-compensation,1)) calc(4px * var(--controls-compensation,1)) calc(20px * var(--controls-compensation,1));padding-inline:calc(4px * var(--controls-compensation,1))!important}
 [data-planner-mode="custom"] .composer-canvas .confirmation-info{padding:calc(12px * var(--controls-compensation,1)) calc(6px * var(--controls-compensation,1)) calc(20px * var(--controls-compensation,1))}
}
@supports selector(::-webkit-scrollbar){
 [data-planner-mode="custom"] .composer-canvas>.composer-stage.is-active,
 [data-planner-mode="custom"] .is-material-workspace .composer-canvas>.composer-stage.is-active,
 [data-planner-mode="custom"] .composer-canvas .confirmation-info{scrollbar-width:auto}
 .composer-canvas>.composer-stage::-webkit-scrollbar,
 .composer-canvas .confirmation-info::-webkit-scrollbar{width:calc(8px * var(--controls-compensation,1))}
 .composer-canvas>.composer-stage::-webkit-scrollbar-thumb,
 .composer-canvas .confirmation-info::-webkit-scrollbar-thumb{background:#a4988a;border-radius:8px}
 .composer-canvas>.composer-stage::-webkit-scrollbar-button,
 .composer-canvas .confirmation-info::-webkit-scrollbar-button{display:none;width:0;height:0}
}

/* Canvas gestures share one touch surface; desktop settings remain independent. */
.composer-desktop-settings[hidden]{display:none!important}
[data-planner-mode="custom"] .composer-canvas-viewport{touch-action:pan-y}
[data-planner-mode="custom"] .composer-live-preview,
[data-planner-mode="custom"] .custom-confirmation-preview{touch-action:none}
[data-planner-mode="custom"] .composer-canvas>.composer-stage.is-active,
[data-planner-mode="custom"] .composer-canvas .confirmation-info{touch-action:pan-y;overscroll-behavior:contain;scroll-behavior:auto;-webkit-overflow-scrolling:touch}
[data-planner-mode="custom"],
[data-planner-mode="custom"] .composer-sheet,
[data-planner-mode="custom"] .composer-stage,
[data-planner-mode="custom"] .confirmation-info,
[data-planner-mode="custom"] .material-choice-grid,
[data-planner-mode="custom"] .material-quick-filters,
[data-planner-mode="custom"] .board-info-copy,
[data-planner-mode="custom"] .module-list-wrap,
[data-planner-mode="custom"] .module-list{scrollbar-width:none!important}
[data-planner-mode="custom"]::-webkit-scrollbar,
[data-planner-mode="custom"] .composer-sheet::-webkit-scrollbar,
[data-planner-mode="custom"] .composer-stage::-webkit-scrollbar,
[data-planner-mode="custom"] .confirmation-info::-webkit-scrollbar,
[data-planner-mode="custom"] .material-choice-grid::-webkit-scrollbar,
[data-planner-mode="custom"] .material-quick-filters::-webkit-scrollbar,
[data-planner-mode="custom"] .board-info-copy::-webkit-scrollbar,
[data-planner-mode="custom"] .module-list-wrap::-webkit-scrollbar,
[data-planner-mode="custom"] .module-list::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* Use the same outer inset as the logo; keep the footer background full width. */
[data-planner-mode="custom"]{--planner-page-inset:24px}
[data-planner-mode="custom"] .builder-footer{padding-inline:max(var(--planner-page-inset),calc((100vw - 1240px)/2 + var(--planner-page-inset)))}
@media(min-width:760px){[data-planner-mode="custom"]{--planner-page-inset:44px}}

/* Desktop: 60% drawing, 40% controls. Only the drawing receives the camera transform. */
@media(min-width:721px){
 [data-planner-mode="custom"] .composer-sheet,
 [data-planner-mode="custom"] .composer-sheet.has-live-preview,
 [data-planner-mode="custom"] .composer-sheet.is-material-workspace{grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-template-rows:minmax(0,1fr);padding:0!important}
 [data-planner-mode="custom"] .composer-canvas-viewport,
 [data-planner-mode="custom"] .is-material-workspace>.composer-canvas-viewport{grid-column:1;grid-row:1;height:100%;min-width:0;touch-action:none}
 [data-planner-mode="custom"] .composer-canvas,
 [data-planner-mode="custom"] .has-live-preview .composer-canvas{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);transform:none!important}
 [data-planner-mode="custom"] .composer-canvas>.composer-live-preview{grid-column:1;grid-row:1;height:100%;width:100%;padding:0;gap:0}
 [data-planner-mode="custom"] #livePreviewCaption{display:none}
 [data-planner-mode="custom"] .composer-canvas #livePreviewCabinet,
 [data-planner-mode="custom"] .composer-canvas #composerPreview{width:100%;height:100%!important;min-height:0!important;padding:0!important;align-items:center!important;justify-content:center!important}
 [data-planner-mode="custom"] .composer-canvas .custom-drawing-sheet{width:min(85cqw,calc(85cqh * var(--drawing-ratio,.3913)));height:auto;transform:translate(var(--drawing-pan-x,0px),var(--drawing-pan-y,0px)) scale(var(--drawing-zoom,1))!important;transform-origin:center;will-change:transform;pointer-events:none}
 [data-planner-mode="custom"] .composer-canvas>.custom-confirmation-preview{display:none;grid-column:1;grid-row:1;width:100%;height:100%;padding:0}
 [data-planner-mode="custom"] [data-custom-stage="4"] .composer-canvas>.custom-confirmation-preview{display:flex}
 [data-planner-mode="custom"] .composer-desktop-settings{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto auto;min-width:0;min-height:0;height:100%;overflow:hidden;background:transparent;cursor:auto;user-select:text}
 [data-planner-mode="custom"] .composer-desktop-settings>.composer-progress{grid-column:1;grid-row:1;width:calc(100% - 76px);margin:0 52px 0 24px;padding:20px 0 16px}
 [data-planner-mode="custom"] .composer-desktop-settings>.material-toolbar{grid-column:1;grid-row:2;width:100%;padding:8px 24px 14px;background:transparent;border:0}
 [data-planner-mode="custom"] .composer-desktop-settings .material-selectors{max-width:none}
 [data-planner-mode="custom"] .composer-desktop-settings .material-quick-filters{justify-content:flex-start;gap:6px}
 [data-planner-mode="custom"] .composer-desktop-settings>.composer-stage.is-active{grid-column:1;grid-row:3;display:block;width:100%;max-width:none;min-width:0;min-height:0;height:100%;margin:0;padding:16px 24px 24px!important;overflow-y:auto!important;overflow-x:hidden!important;background:transparent;animation:none!important;touch-action:pan-y}
 [data-planner-mode="custom"] .composer-desktop-settings>.composer-stage[hidden]{display:none!important}
 [data-planner-mode="custom"] .composer-desktop-settings .custom-workspace{max-width:none}
 [data-planner-mode="custom"] .composer-desktop-settings .stage-heading{padding:0;text-align:left;margin:0 0 20px}
 [data-planner-mode="custom"] .composer-desktop-settings .material-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:14px;overflow:visible!important;padding:2px 0 14px}
 [data-planner-mode="custom"] .composer-desktop-settings .confirmation-layout{display:block;width:100%;height:auto;margin:0;padding:0}
 [data-planner-mode="custom"] .composer-desktop-settings .confirmation-info{height:auto;max-height:none;padding:0;overflow:visible}
 [data-planner-mode="custom"] .composer-desktop-settings .confirmation-materials{grid-template-columns:minmax(0,1fr)}
 [data-planner-mode="custom"] .composer-desktop-settings>.composer-view-tools{grid-column:1;grid-row:4;justify-content:flex-start;width:100%;min-height:42px;padding:6px 24px 10px}
 [data-planner-mode="custom"] #composerFocusCabinet,
 [data-planner-mode="custom"] #composerFocusSettings{display:none}
 [data-planner-mode="custom"] .composer-desktop-settings>.composer-action-bar{position:static;grid-column:1;grid-row:5;min-height:0;width:100%;padding:12px 24px calc(12px + env(safe-area-inset-bottom));background:transparent}
 [data-planner-mode="custom"] .composer-desktop-settings .composer-action-bar .composer-actions{width:100%!important}
}

/* Choice thumbnails never inherit the working drawing's dimension overlay. */
[data-planner-mode="custom"] .custom-form-graphic .cabinet-dimension-layer,
[data-planner-mode="custom"] .custom-form-graphic .cabinet-external-dimension-layer{display:none!important}
@media(min-width:721px){
 [data-planner-mode="custom"] .composer-desktop-settings .material-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(6px,1vw,14px)}
 [data-planner-mode="custom"] .composer-desktop-settings .material-choice{min-width:0;padding:4px}
 [data-planner-mode="custom"] .composer-desktop-settings .material-choice strong{font-size:clamp(10px,.85vw,13px);overflow-wrap:anywhere}
 [data-planner-mode="custom"] .composer-desktop-settings .material-choice small{font-size:clamp(9px,.72vw,11px);overflow-wrap:anywhere}
}
/* Prevent browser gesture cancellation over nested cards, cabinets and inputs. */
[data-planner-mode="custom"] .composer-canvas-viewport,
[data-planner-mode="custom"] .composer-canvas,
[data-planner-mode="custom"] .composer-canvas>.composer-stage.is-active,
[data-planner-mode="custom"] .composer-canvas .confirmation-info{touch-action:none}
[data-planner-mode="custom"] .composer-canvas img,
[data-planner-mode="custom"] #planCanvas img{-webkit-user-drag:none;user-select:none}
/* The initial choice screen has no camera and keeps ordinary list scrolling. */
@media(max-width:720px){
 [data-planner-mode="custom"] .composer-sheet[data-custom-stage="1"]:not(.has-live-preview) .composer-canvas-viewport,
 [data-planner-mode="custom"] .composer-sheet[data-custom-stage="1"]:not(.has-live-preview) .composer-canvas,
 [data-planner-mode="custom"] .composer-sheet[data-custom-stage="1"]:not(.has-live-preview) .composer-stage.is-active{touch-action:pan-y}
}

/* Construction datums keep a physical 50 cm extension at each end of the group. */
.drawing-datum{fill:none;stroke:#786b5c;stroke-width:1;stroke-dasharray:9 6;vector-effect:non-scaling-stroke;pointer-events:none}
.custom-editor-ground{position:absolute;left:0;bottom:0;width:100%;height:auto;aspect-ratio:var(--module-width)/1;overflow:visible;pointer-events:none;z-index:5}
.plan-datum-space{flex:0 0 calc(var(--plan-module-zoom-height,400px) * .2);pointer-events:none}
[data-planner-mode="custom"] .plan-position-controls{width:224px;max-width:calc(100vw - 48px);padding:12px 8px 4px;border-top:1px solid var(--line)}
.plan-position-value{display:flex;align-items:center;gap:6px}
.plan-position-value label{display:flex;align-items:center;gap:4px;flex:1;min-width:0;font-size:13px}
.plan-position-value input{width:100%;min-width:0;text-align:center;border:1px solid var(--line);border-radius:6px;height:40px;background:white;color:inherit;font:inherit}
[data-planner-mode="custom"] .plan-position-value button{flex:0 0 40px;width:40px;padding:6px;text-align:center;border:1px solid var(--line);border-radius:6px}
.plan-position-controls input[type="range"]{display:block;width:100%;margin:8px 0 0;min-height:36px;accent-color:var(--brand);touch-action:auto}
.plan-position-directions{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.plan-position-controls small{display:block;margin:8px 0;font-size:12px;color:var(--muted);text-align:center}
[data-planner-mode="custom"] .plan-position-controls .plan-position-done{width:100%;text-align:center;background:#e9e2dc;border-radius:6px}

html:has(body[data-planner-mode="custom"]){scrollbar-width:none!important}
html:has(body[data-planner-mode="custom"])::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* The context figure and add button share the cabinet's centimetre scale and floor. */
.plan-context-person{position:relative;flex:0 0 calc(var(--plan-module-zoom-height,400px) * .4);height:var(--plan-module-zoom-height,400px);pointer-events:none}
.plan-context-person>img{position:absolute;display:block;max-width:none;max-height:none;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
[data-planner-mode="custom"] .plan-context-person .plan-person-add{position:absolute;bottom:calc(var(--plan-module-zoom-height,400px) * .84);width:clamp(44px,calc(var(--plan-module-zoom-height,400px) * .145),60px);height:clamp(44px,calc(var(--plan-module-zoom-height,400px) * .2),86px);padding:4px 6px;margin:0;transform:translate(-50%,50%);pointer-events:auto}

.plan-person-add span{font-size:clamp(22px,calc(var(--plan-module-zoom-height,400px) * .07),32px)}
.plan-person-add small{margin-top:2px;font-size:10px}

[data-planner-mode="custom"] .handle-lock-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);background:var(--surface-2);font-size:14px;line-height:1.5}
[data-planner-mode="custom"] .handle-lock-bar[hidden]{display:none}
[data-planner-mode="custom"] .handle-lock-bar button{flex-shrink:0;border:1px solid var(--ink);padding:8px 12px;background:var(--ink);color:white;font:inherit;cursor:pointer}
[data-planner-mode="custom"] .handle-choice{position:relative}
[data-planner-mode="custom"] .handle-choice.is-locked{opacity:1;cursor:not-allowed;background:#eeeae6;border-color:var(--line);box-shadow:none}
[data-planner-mode="custom"] .handle-choice.is-locked>.handle-diagram,
[data-planner-mode="custom"] .handle-choice.is-locked>.handle-choice-copy{opacity:.32;filter:grayscale(1)}
.handle-choice-lock[hidden]{display:none}
.handle-choice-lock{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:30px;height:30px;color:var(--ink);background:var(--paper);border-radius:50%}
.handle-choice-lock svg{width:18px;height:20px}
@media(max-width:400px){[data-planner-mode="custom"] .handle-lock-bar{flex-wrap:wrap}}

/* Summary boards keep both views in one fixed-height horizontal strip. */
[data-planner-mode="custom"] .case-group-preview.is-custom-summary{--summary-height:clamp(320px,58dvh,480px);--summary-unit:calc((var(--summary-height) - 84px) / var(--summary-drawing-span));position:relative;display:block;height:var(--summary-height);min-height:0;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y;cursor:grab;user-select:none;-webkit-user-select:none}
[data-planner-mode="custom"] .case-group-preview.is-custom-summary::-webkit-scrollbar{display:none;width:0;height:0}
[data-planner-mode="custom"] .case-group-preview.is-custom-summary.is-dragging{cursor:grabbing}
[data-planner-mode="custom"] .case-group-preview.is-custom-summary:focus-visible{outline:2px solid var(--brand);outline-offset:-3px}
.case-group-drawing{display:flex;align-items:flex-end;justify-content:center;width:max(100%,calc(var(--summary-unit) * (var(--summary-group-width) + 100) + 40px));height:100%;padding:0 calc(var(--summary-unit) * 50 + 20px) 42px;box-sizing:border-box;gap:0}
[data-planner-mode="custom"] .case-group-drawing>.plan-module{flex:none;width:calc(var(--summary-unit) * var(--module-width));height:calc(var(--summary-unit) * var(--module-height));min-width:0;aspect-ratio:auto;margin:0;cursor:inherit;filter:none;transform:none}
.summary-module-plan{position:absolute;left:0;bottom:calc(var(--summary-unit) * var(--summary-max-height) + 24px);width:100%;height:calc(var(--summary-unit) * var(--summary-plan-span));pointer-events:none}
.case-group-drawing .module-config-tags,.case-group-drawing .cabinet-dimension-layer,.case-group-drawing .cabinet-external-dimension-layer{display:none!important}
.case-group-drawing .module-dimension{font-size:clamp(9px,calc(var(--summary-unit) * 11),12px);padding:2px 4px;box-shadow:none}
.case-group-drawing img{pointer-events:none;-webkit-user-drag:none}
.summary-view-label{position:absolute;left:16px;pointer-events:none;font-size:12px;line-height:18px;color:var(--muted);background:rgba(254,252,250,.86)}
.summary-view-plan{top:12px}
.summary-view-elevation{top:calc(var(--summary-unit) * var(--summary-plan-span) + 24px)}
.case-group-details{min-width:0}
.case-group-details>summary{display:flex;align-items:center;gap:12px;min-height:54px;padding:14px 18px;list-style:none;font-size:14px;color:var(--ink);cursor:pointer}
.case-group-details>summary::-webkit-details-marker{display:none}
.case-group-details>summary::after{content:'';width:8px;height:8px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.case-group-details[open]>summary::after{transform:rotate(225deg) translate(-2px,-2px)}
.case-group-details>summary:focus-visible{outline:2px solid var(--brand);outline-offset:-3px}
.case-group-details>summary small{font-size:12px;color:var(--muted)}
.summary-info-wrap{padding:0 18px 18px}
.summary-info-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.65;color:var(--ink);background:var(--paper)}
.summary-info-table th,.summary-info-table td{padding:10px 7px;border:1px solid var(--line);vertical-align:middle;text-align:center;overflow-wrap:anywhere}
.summary-info-table thead th{padding:7px 5px;background:var(--surface-2);font-weight:500;white-space:pre-line;line-height:1.45}
.summary-info-table tbody th{font-weight:500}
.summary-info-table tbody tr:nth-child(even){background:#f8f4f1}
.summary-cell-content{white-space:pre-line}
.summary-material{display:flex;align-items:center;gap:8px;text-align:left;min-width:0}
.summary-material>img{flex:0 0 44px;width:44px;height:44px;object-fit:cover;border:1px solid var(--line)}
.summary-material-copy{min-width:0}
.summary-material-model,.summary-material-name{display:block}
.summary-material-name{margin-top:4px;color:var(--muted)}
.custom-drawer-note{margin:6px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.custom-field.is-disabled .custom-field-top{opacity:.35;filter:grayscale(1)}
.custom-field.is-disabled .custom-stepper{background:#e6e2de}
.custom-field.is-disabled .custom-stepper input,.custom-field.is-disabled .custom-stepper button{cursor:not-allowed;color:var(--muted)}
@media(max-width:900px){
 .summary-info-wrap{padding:0 14px 14px}
 .summary-info-table,.summary-info-table tbody,.summary-info-table tr{display:block}
 .summary-info-table{font-size:13px;background:transparent}
 .summary-info-table colgroup{display:none}
 .summary-info-table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
 .summary-info-table tbody tr{border:1px solid var(--line);background:var(--paper);margin-bottom:12px}
 .summary-info-table tbody tr:last-child{margin-bottom:0}
 .summary-info-table tbody th{display:block;padding:8px 12px;border:0;border-bottom:1px solid var(--line);text-align:left;background:var(--surface-2);font-size:14px}
 .summary-info-table td{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px;padding:8px 12px;border:0;text-align:left}
 .summary-info-table td::before{content:attr(data-label);color:var(--muted)}
 .summary-material>img{flex-basis:44px}
}

.custom-size-tips{margin:8px 0;padding:10px 12px;background:#eee8de;border-left:2px solid #b7a48a;font-size:13px;line-height:1.7;color:var(--ink)}
.custom-size-tips[hidden]{display:none}

.custom-tabletop-section{margin:18px 0 8px;padding:14px;border:1px solid var(--line);border-radius:10px;min-width:0}
.custom-tabletop-section[hidden],.custom-tabletop-section [hidden]{display:none}
.custom-tabletop-section legend{padding:0 6px;font-size:14px}.custom-tabletop-toggle{display:flex;align-items:center;gap:9px;font-size:14px;cursor:pointer}.custom-tabletop-toggle input{width:20px;height:20px;accent-color:var(--brand)}
.custom-tabletop-section.is-disabled .custom-tabletop-toggle{opacity:.35;cursor:not-allowed}
.custom-tabletop-thickness{display:flex;gap:8px;margin-top:12px}.custom-tabletop-thickness button{flex:1;min-height:42px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer}.custom-tabletop-thickness button[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
.custom-tabletop-material-note{font-size:12px;color:var(--muted);line-height:1.6}
.custom-tabletop-thickness button:disabled{opacity:.3;cursor:not-allowed}
.cabinet-tabletop{position:absolute;display:block;left:0;bottom:100%;width:100%;min-height:2px;background-color:#c6b8a3;background-size:100% 100%;border:1px solid #8c8070;z-index:12;box-sizing:border-box;pointer-events:none}
@media(max-width:720px){.composer-sheet[data-mobile-storage-step="choices"] .custom-tabletop-section,.composer-sheet[data-mobile-storage-step="fittings"] .custom-tabletop-section{display:none}}

.module-cabinet-shell.has-tabletop{overflow:visible}

.custom-tabletop-thickness{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.custom-tabletop-thickness button{min-width:0;white-space:nowrap;font-size:14px;padding:6px 2px}
@media(max-width:720px){.custom-tabletop-thickness{gap:4px}.custom-tabletop-thickness button{font-size:12px;white-space:normal}.custom-tabletop-thickness button span{display:block}}

.custom-tabletop-section:not(.is-disabled) .custom-tabletop-toggle{color:var(--ink);font-weight:500}.custom-tabletop-section:not(.is-disabled){background:#f7f2e9;border-color:#a9977c}
.custom-drawer-handle-section{margin:10px 0 16px}.custom-drawer-handle-section[hidden]{display:none}.custom-drawer-handle-section [role="group"]{display:flex;flex-wrap:wrap;gap:8px}.custom-drawer-handle-section button{padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:var(--paper);font:inherit;color:var(--ink);cursor:pointer}.custom-drawer-handle-section button[aria-pressed="true"]{background:var(--ink);color:white}.custom-drawer-handle-section button:disabled{opacity:.3;cursor:not-allowed}
.cabinet-top-recessed-rail{position:absolute;left:0;width:100%;background:linear-gradient(#b4a68f 0 12%,#6e6050 12% 76%,#ddd0bb 76%);z-index:9;pointer-events:none;border-top:1px solid #5f5549;box-sizing:border-box}
.cabinet-tabletop{box-shadow:inset 0 1px #ffffff80,inset 0 -1px #73634e;background-color:#c6b8a3}

[data-planner-mode="custom"] .cabinet-preview-container.has-tabletop{overflow:visible!important}

.has-front-drawers .cabinet-drawer-front{background:#e9dfd0;border:1px solid #b4a895;box-sizing:border-box;z-index:7}.has-front-drawers .cabinet-drawer-material{inset:auto;opacity:1;z-index:8}.has-front-drawers .cabinet-drawer-material svg{width:100%;height:100%;padding:0}.has-front-drawers .cabinet-drawer-label{display:none}.custom-drawer-handle-section [hidden]{display:none!important}[data-door-enabled]:disabled{opacity:.3;cursor:not-allowed}

[data-planner-mode="custom"] .has-front-drawers>.cabinet-drawer-front{position:absolute;display:block;z-index:7}[data-planner-mode="custom"] .has-front-drawers .cabinet-drawer-material{z-index:8}[data-planner-mode="custom"] .has-front-drawers .cabinet-drawer-material>svg{left:0;top:0;width:100%;height:100%;opacity:1}
