
.so-page{max-width:1600px;margin:0 auto;padding:28px 3% 40px;color:#2e2e2e}.so-page h1{font-size:26px;margin:0 0 20px;font-weight:600}.so-page h2{font-size:17px;margin:0 0 20px;font-weight:600}.so-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:22px}.so-card{background:#fff;border:1px solid #e5e5e5;border-radius:9px;padding:16px;min-width:0}.so-card-label{font-size:12px;color:#767676;display:block;margin-bottom:9px}.so-card strong{display:block;font-size:25px;font-weight:500;line-height:1.3}.so-card-detail{font-size:11px;line-height:1.65;color:#7c7c7c;margin-top:8px;overflow-wrap:anywhere}.so-card:last-child{background:#f1f1f1}.so-panel{background:#fff;border:1px solid #e3e3e3;border-radius:10px;padding:22px}.so-customer{margin-bottom:20px}.so-section-head{display:flex;align-items:center;gap:24px;margin-bottom:16px}.so-section-head h2{margin:0}.so-customer-tabs{display:flex;gap:20px}.so-page button{font:inherit;color:#6f6f6f;cursor:pointer;border:0;background:none;padding:8px 0;font-size:13px}.so-page button[aria-pressed=true]{color:#975c23}.so-customer-fields{max-width:700px}.so-page label{display:grid;gap:8px;font-size:12px;color:#6f6f6f}.so-page input{width:100%;min-width:0;font:inherit;font-size:15px;color:#2e2e2e;background:#fff;padding:11px 12px;border:1px solid #dcdcdc;border-radius:6px;min-height:43px}.so-page input[type=number]{direction:ltr;text-align:right}.so-page input:focus{outline:1px solid #b78248;outline-offset:1px}.so-workspace{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.so-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 14px}.so-note{font-size:11px;line-height:1.9;color:#858585;margin:16px 0 0}.so-materials{margin-top:24px}.so-preview{text-align:center}.so-preview h2{text-align:right}.so-diagram>svg{width:100%;max-width:530px;height:330px;display:block;margin:0 auto}.so-side{margin:10px auto 0;max-width:250px}.so-side svg{width:100%;height:170px}.so-dimensions{font-size:13px;color:#626262}.so-status{font-size:13px;line-height:1.8;margin:0 0 16px}.so-status:empty{display:none}.so-error{color:#a05238}.so-customer-results{display:flex;flex-direction:column;align-items:stretch;max-height:150px;overflow-y:auto;margin-top:8px}.so-customer-results button{text-align:right;padding:9px 4px;border-bottom:1px solid #f2f2f2}.so-customer-results button:hover{color:#975c23;background:#fbfaf8}.so-selected{font-size:13px;margin:10px 0 0;color:#676767}.so-selected:empty{display:none}.so-customer-new{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end}.so-page button.so-save-customer{border-bottom:1px solid #b78248;color:#975c23;padding:10px 3px}.so-page button:disabled{opacity:.5;cursor:default}.qo-login{max-width:400px;margin:60px auto;padding:26px;border:1px solid #e0e0e0;border-radius:12px;background:white;display:grid;gap:16px}.qo-login label{display:grid;gap:7px}.qo-login input,.qo-login button{font:inherit;padding:12px;border:1px solid #e0e0e0;border-radius:8px}.qo-login button{background:#2e2e2e;color:#fff}.qo-login h1{font-size:23px}.qo-login [role=status],.so-load-error{color:#a33c32}.so-load-error{padding:30px}@media(max-width:1100px){.so-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.so-workspace{grid-template-columns:1fr}}@media(max-width:600px){.so-page{padding:22px 4%}.so-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.so-card{padding:13px}.so-card strong{font-size:23px}.so-panel{padding:17px}.so-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.so-customer-new{grid-template-columns:1fr 1fr}.so-save-customer{grid-column:1/-1;justify-self:start}.so-page input{font-size:16px}.so-diagram>svg{height:280px}.qo-login{margin:30px 16px}}

.so-page{width:100%;max-width:none;padding:20px;position:relative}.so-page h1{margin-bottom:16px;font-size:24px}.so-summary{grid-template-columns:repeat(9,minmax(0,1fr));gap:10px;margin-bottom:18px;align-items:stretch}.so-card{padding:10px 12px;border-radius:7px;min-height:85px}.so-card-label{font-size:11px;margin-bottom:5px}.so-card strong{font-size:21px}.so-card-detail{font-size:10px;line-height:1.45;margin-top:5px}.so-card-detail:empty{display:none}.so-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.so-editor{display:flex;flex-direction:column;gap:18px;min-width:0}.so-customer{margin-bottom:0}.so-panel{padding:20px}.so-customer-fields{max-width:none}.so-section-head{margin-bottom:14px}.so-preview{height:calc(100dvh - 235px);min-height:480px;padding:10px;display:flex;align-items:stretch;justify-content:stretch}.so-diagram{width:100%;height:100%;min-width:0}.so-diagram>svg{display:block;width:100%;height:100%;max-width:none;margin:0}.so-side,.so-materials,.so-dimensions{display:none}.so-fields{gap:20px 14px}.so-status{position:fixed;bottom:20px;right:20px;max-width:min(600px,calc(100vw - 40px));margin:0;padding:12px 16px;background:#fff;border:1px solid #eaded5;border-radius:8px;box-shadow:0 4px 20px #2e2e2e10;z-index:500}.so-status:empty{display:none}.so-loading{display:none;position:fixed;inset:82px 0 0;z-index:400;background:rgba(244,247,244,.5);align-items:center;justify-content:center;pointer-events:none;backdrop-filter:blur(1px)}.so-loading.is-loading{display:flex}.so-spinner{display:block;width:38px;height:38px;border:3px solid #e0e0e0;border-top-color:#a77946;border-radius:50%;animation:so-spin .7s linear infinite;box-shadow:0 0 0 10px #ffffffa0}@keyframes so-spin{to{transform:rotate(360deg)}}@media(max-width:1400px){.so-summary{grid-template-columns:repeat(5,minmax(0,1fr))}.so-preview{height:calc(100dvh - 320px)}}@media(max-width:900px){.so-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.so-workspace{grid-template-columns:1fr}.so-preview{height:65dvh;min-height:420px}}@media(max-width:600px){.so-page{padding:20px}.so-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.so-card{padding:10px}.so-card strong{font-size:20px}.so-panel{padding:16px}.so-preview{padding:5px;min-height:350px}.so-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.so-order-steps{display:flex;gap:24px;margin:-4px 0 16px;align-items:center}.so-page .so-order-steps button{font-size:12px;padding:5px 0}.so-order-steps button[aria-current=step]{color:#975c23}.so-page [data-order-pane][hidden]{display:none!important}.so-stage-actions{display:flex;gap:22px;justify-content:space-between;margin-top:24px;align-items:center}.so-page .so-stage-actions button{color:#975c23;font-size:13px}.so-page .so-stage-actions button:disabled{color:#939393}.so-selected-cell{font-size:12px;color:#6f6f6f;line-height:1.7;margin:0 0 12px}.so-cells{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px;max-height:170px;overflow:auto}.so-page .so-cell-choice{border:1px solid #e5e5e5;border-radius:5px;padding:7px 9px;font-size:11px}.so-page .so-cell-choice[aria-pressed=true]{border-color:#b78248;color:#975c23;background:#fbf7f1}.so-partition-orientations{display:flex;gap:24px;margin-bottom:14px}.so-page .so-partition-orientations button[aria-pressed=true]{color:#975c23;border-bottom:1px solid #b78248}.so-partition-position{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:18px;max-width:470px}.so-page .so-partition-position button{color:#975c23;padding-bottom:12px}.so-partition-feedback{font-size:12px;color:#a05238;line-height:1.6}.so-partition-feedback:empty{display:none}.so-partition-list{margin-top:18px}.so-partition-row{display:grid;grid-template-columns:minmax(0,1fr) 120px auto;gap:14px;align-items:center;padding:12px 0;border-top:1px solid #ededed}.so-partition-row>span{font-size:12px;color:#6f6f6f;line-height:1.6}.so-partition-row label{font-size:10px}.so-partition-row input{font-size:13px;padding:8px;min-height:36px}.so-page .so-partition-row button{font-size:11px}.so-diagram [data-cell-path]{pointer-events:none;outline:none}.so-page[data-stage=partitions] .so-diagram [data-cell-path]{pointer-events:all;cursor:pointer;transition:fill .12s}.so-page[data-stage=partitions] .so-diagram [data-cell-path]:hover{fill:#67676712;stroke:#676767;stroke-width:.7}.so-page[data-stage=partitions] .so-diagram [data-cell-path][aria-pressed=true],.so-page[data-stage=partitions] .so-diagram [data-cell-path]:focus-visible{fill:#b782481b;stroke:#b78248;stroke-width:1.1}@media(max-width:600px){.so-order-steps{gap:20px}.so-partition-row{grid-template-columns:minmax(0,1fr) 90px auto;gap:10px}.so-partition-position{gap:12px}.so-cells{max-height:150px}}.so-partition-placement{display:flex;gap:22px;margin-bottom:12px}.so-page .so-partition-placement button{font-size:12px}.so-page .so-partition-placement button[aria-pressed=true]{color:#975c23;border-bottom:1px solid #b78248}.so-partition-row{grid-template-columns:minmax(0,1fr) 105px auto auto;gap:12px}.so-partition-row input:disabled{background:#f6f6f6;color:#6f6f6f;opacity:1}.so-customer-new{grid-template-columns:1fr 1fr}@media(max-width:600px){.so-partition-row{grid-template-columns:minmax(0,1fr) 85px auto auto;gap:7px}.so-partition-row>span{font-size:11px}.so-partition-row label{font-size:9px}.so-page .so-partition-row button{font-size:10px}}

.so-partition-orientations,.so-partition-placement{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}.so-page .so-partition-orientations button,.so-page .so-partition-placement button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 16px;border:1px solid #d6d6d6;border-radius:7px;background:#fff;color:#4f4f4f;font-size:13px;font-weight:500;line-height:1.4;cursor:pointer;transition:background .12s,border-color .12s}.so-page .so-partition-orientations button:hover,.so-page .so-partition-placement button:hover{background:#f6f6f6;border-color:#b4b4b4}.so-page .so-partition-orientations button[aria-pressed=true],.so-page .so-partition-placement button[aria-pressed=true]{background:#f7ede0;border:1px solid #b78248;color:#895620;box-shadow:inset 0 0 0 1px #b7824830}.so-page .so-partition-orientations button[aria-pressed=true]::before,.so-page .so-partition-placement button[aria-pressed=true]::before{content:"✓";font-size:13px}.so-page .so-partition-orientations button:focus-visible,.so-page .so-partition-placement button:focus-visible{outline:2px solid #b78248;outline-offset:3px}

.so-partition-editor-title{font-size:13px;font-weight:500;color:#6f6f6f;margin:0 0 18px}.so-partition-config{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px}.so-control-group{border:0;min-width:0;margin:0;padding:0}.so-control-group legend{font-size:12px;color:#6f6f6f;padding:0;margin-bottom:9px}.so-control-group .so-partition-orientations,.so-control-group .so-partition-placement{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.so-page .so-control-group button{width:100%;min-height:43px;padding:10px 8px;white-space:nowrap}.so-page .so-control-group button[aria-pressed=true]::before{content:none}.so-page .so-control-group button[aria-pressed=true]{border-color:#a87743;box-shadow:inset 0 0 0 1px #a8774325}.so-partition-position{display:flex;align-items:flex-end;justify-content:flex-end;gap:16px;max-width:none}.so-partition-position>label{flex:1;min-width:0}.so-page [data-position-field][hidden],.so-page [data-delete-partition][hidden]{display:none!important}.so-page button.so-action-primary,.so-page .so-stage-actions button.so-action-primary{display:inline-flex;align-items:center;justify-content:center;min-height:43px;min-width:140px;padding:10px 20px;border:1px solid #2e2e2e;border-radius:7px;background:#2e2e2e;color:#fff;font-size:13px;font-weight:500;line-height:1.4;cursor:pointer;box-shadow:0 2px 4px #2e2e2e12}.so-page button.so-action-primary:hover{background:#434343;border-color:#434343}.so-page button.so-action-primary:disabled{opacity:.4;cursor:default}.so-page .so-stage-actions button:not(.so-action-primary){display:inline-flex;align-items:center;justify-content:center;min-height:41px;padding:9px 16px;border:1px solid #dcdcdc;border-radius:7px;background:#fff;color:#626262}.so-page button.so-action-danger{display:inline-flex;justify-content:center;align-items:center;margin-top:18px;padding:10px 16px;min-height:41px;border:1px solid #d9aca4;border-radius:7px;color:#a44235;background:#fff8f6;font-size:12px}.so-page button.so-action-danger:hover{background:#ffefeb;border-color:#a44235}.so-stage-actions{padding-top:20px;border-top:1px solid #ededed}.so-diagram [data-partition-id]{pointer-events:none;outline:none}.so-partition-hit{fill:transparent;stroke:none}.so-partition-mark{fill:transparent;stroke:transparent;stroke-width:1.5;pointer-events:none}.so-page[data-stage=partitions] .so-diagram [data-partition-id]{pointer-events:all;cursor:pointer}.so-page[data-stage=partitions] .so-diagram [data-partition-id]:hover .so-partition-mark{fill:#b7824850;stroke:#b78248}.so-page[data-stage=partitions] .so-diagram [data-partition-id][aria-pressed=true] .so-partition-mark,.so-page[data-stage=partitions] .so-diagram [data-partition-id]:focus-visible .so-partition-mark{fill:#d99b4d;stroke:#a36b2b}.so-preview-invalid .so-diagram{opacity:.55}@media(max-width:600px){.so-partition-config{gap:14px;grid-template-columns:1fr}.so-control-group .so-partition-orientations,.so-control-group .so-partition-placement{max-width:360px}.so-page button.so-action-primary,.so-page .so-stage-actions button.so-action-primary{min-width:120px;padding:10px 14px}.so-partition-position{gap:12px}.so-page .so-control-group button{padding:10px}.so-stage-actions{gap:10px}}

.so-preview{flex-direction:column}.so-preview-toolbar{display:flex;justify-content:flex-end;flex:0 0 auto;min-height:34px;padding:0 8px 7px}.so-page .so-preview-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:5px 11px;border:1px solid #dcdcdc;border-radius:6px;background:#fff;color:#626262;font-size:11px;line-height:1.4}.so-page .so-preview-toolbar button:hover{border-color:#b4b4b4;background:#f6f6f6}.so-diagram{flex:1;min-height:0}.so-page .so-diagram [data-cell-path]{pointer-events:all;cursor:pointer}.so-page .so-diagram [data-cell-path][aria-pressed=true]{fill:#b782481b;stroke:#b78248;stroke-width:1.1}.so-page .so-diagram [data-cell-path]:focus-visible{stroke:#b78248;stroke-width:1.1}.so-diagram [data-dimension-layer]{pointer-events:none}

.so-reference-group{margin:0 0 18px}.so-partition-references{display:flex;gap:8px}.so-page .so-partition-references button{width:auto;min-width:100px;min-height:39px;padding:8px 16px;border:1px solid #d6d6d6;border-radius:7px;background:#fff;color:#4f4f4f;font-size:12px}.so-page .so-partition-references button:hover{background:#f6f6f6;border-color:#b4b4b4}.so-page .so-partition-references button[aria-pressed=true]{background:#f7ede0;border-color:#a87743;color:#895620;box-shadow:inset 0 0 0 1px #a8774325}.so-page [data-reference-controls][hidden]{display:none!important}

.so-shelf-config{display:grid;grid-template-columns:minmax(110px,.65fr) minmax(0,1fr);gap:22px;align-items:end;margin-bottom:20px}.so-shelf-modes,.so-shelf-references{display:flex;gap:8px;flex-wrap:wrap}.so-page .so-shelf-modes button,.so-page .so-shelf-references button{width:auto;min-height:41px;padding:9px 14px;border:1px solid #d6d6d6;border-radius:7px;background:#fff;color:#4f4f4f;font-size:12px}.so-page .so-shelf-modes button[aria-pressed=true],.so-page .so-shelf-references button[aria-pressed=true]{background:#f7ede0;border-color:#a87743;color:#895620;box-shadow:inset 0 0 0 1px #a8774325}.so-shelf-heights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;margin:0 0 20px}.so-shelf-heights:empty{display:none}.so-shelf-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.so-page .so-shelf-actions .so-action-danger{margin:0}.so-shelf-feedback{font-size:12px;line-height:1.6;color:#a05238}.so-shelf-feedback:empty{display:none}.so-page [data-shelf-reference-group][hidden],.so-page [data-remove-shelves][hidden]{display:none!important}.so-diagram [data-shelf-path]{pointer-events:none;outline:none}.so-shelf-hit{fill:transparent;stroke:none}.so-shelf-mark{fill:transparent;stroke:transparent;stroke-width:1.5;pointer-events:none}.so-page[data-stage=shelves] .so-diagram [data-shelf-path]{pointer-events:all;cursor:pointer}.so-page[data-stage=shelves] .so-diagram [data-shelf-path]:hover .so-shelf-mark,.so-page[data-stage=shelves] .so-diagram [data-shelf-path][aria-pressed=true] .so-shelf-mark,.so-page[data-stage=shelves] .so-diagram [data-shelf-path]:focus-visible .so-shelf-mark{fill:#d99b4d;stroke:#a36b2b}@media(max-width:600px){.so-shelf-config{grid-template-columns:1fr;gap:16px}.so-shelf-heights{grid-template-columns:1fr 1fr}.so-shelf-actions{justify-content:stretch}.so-shelf-actions button{flex:1}}

.so-page .so-card[hidden],.so-page [data-partition-quantity][hidden],.so-page [data-placement-group][hidden],.so-page [data-batch-note][hidden]{display:none!important}.so-summary{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.so-partition-count{max-width:160px;margin:0 0 18px}.so-batch-note{font-size:12px;color:#6f6f6f;margin:0 0 16px;line-height:1.6}@media(max-width:600px){.so-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.so-order-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:800px;margin:0 0 22px;padding:0}.so-page .so-order-steps button{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:11px;min-height:65px;padding:10px 14px;border:0;border-radius:8px;background:transparent;text-align:right;color:#848484;line-height:1.4}.so-page .so-order-steps button:hover{background:#eeeeee}.so-order-marker{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border:1px solid #d4d4d4;border-radius:50%;background:#f5f5f5;color:#848484;font-size:13px;font-weight:500}.so-order-copy{display:flex;flex-direction:column;gap:3px}.so-order-copy strong{font-size:13px;font-weight:500}.so-order-state{font-size:10px;font-weight:400;color:#8c8c8c}.so-page .so-order-steps button[data-state=complete]{color:#676767}.so-order-steps button[data-state=complete] .so-order-marker{background:#676767;color:#fff;border-color:#676767}.so-page .so-order-steps button[data-state=active]{background:#ececec;color:#2e2e2e}.so-order-steps button[data-state=active] .so-order-marker{background:#2e2e2e;border-color:#2e2e2e;color:#fff;box-shadow:0 0 0 3px #2e2e2e0b}.so-order-steps button[data-state=active] .so-order-state{color:#676767}.so-page .so-stage-actions{justify-content:flex-end}.so-order-steps button:focus-visible{outline:2px solid #b78248;outline-offset:2px}@media(max-width:600px){.so-order-steps{gap:4px;margin-bottom:18px}.so-page .so-order-steps button{gap:7px;padding:9px 6px;min-height:61px}.so-order-marker{flex-basis:25px;width:25px;height:25px;font-size:11px}.so-order-copy strong{font-size:11px}.so-order-state{font-size:9px}}

.so-page [data-order-pane]{padding:0;overflow:hidden;transition:border-color .15s}.so-page [data-order-pane][data-state=active]{border-color:#b7b7b7}.so-page .so-pane-header{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:13px 20px;border:0;border-radius:0;background:#fff;color:#626262;text-align:right;cursor:pointer}.so-page .so-pane-header:hover{background:#f6f6f6}.so-page [data-order-pane][data-state=active]>.so-pane-header{background:#f1f1f1;color:#2e2e2e}.so-pane-header .so-pane-title{font-size:15px;font-weight:500;flex:1}.so-pane-header .so-order-state{font-size:11px;white-space:nowrap}.so-pane-chevron{font-size:18px;color:#7e7e7e}.so-pane-header .so-order-marker{flex-basis:28px;width:28px;height:28px;font-size:12px}.so-page [data-order-pane][data-state=active] .so-order-marker{background:#2e2e2e;border-color:#2e2e2e;color:#fff}.so-page [data-order-pane][data-state=complete] .so-order-marker{background:#676767;border-color:#676767;color:#fff}.so-pane-body{padding:20px;border-top:1px solid #e6e6e6}.so-pane-body[hidden]{display:none!important}.so-pane-body>h2{display:none}.so-pane-body .so-stage-actions{margin-top:22px}.so-page .so-pane-header:focus-visible{outline:2px solid #b78248;outline-offset:-3px}@media(max-width:600px){.so-page .so-pane-header{padding:12px 14px;gap:9px;min-height:58px}.so-pane-header .so-pane-title{font-size:14px}.so-pane-body{padding:16px}.so-pane-header .so-order-state{font-size:10px}}

/* Cell hanging and drawers */
.so-fitting-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end}
.so-fitting-fields label{display:flex;flex-direction:column;gap:8px;color:#868686;font-size:14px}
.so-fitting-fields input,.so-fitting-fields select{box-sizing:border-box;width:100%;min-width:0;height:43px;padding:8px 12px;border:1px solid #dbdbdb;border-radius:6px;background:#fff;color:#2e2e2e;font:inherit}
.so-fitting-fields .so-control-group{margin:0;min-width:0}
.so-fitting-references,.so-fitting-actions{display:flex;gap:10px;flex-wrap:wrap}
.so-fitting-references button{border:1px solid #d4d4d4;border-radius:6px;background:white;padding:10px 16px;color:#2e2e2e}
.so-fitting-references button[aria-pressed=true]{border-color:#b26f2d;background:#f7eee3;color:#8a511d}
.so-fitting-actions{margin-top:18px}
.so-fitting-feedback{color:#a3452d;font-size:14px;min-height:0}
.so-fitting-note{font-size:13px;color:#868686;margin:10px 0}
.so-fitting-note[hidden],[data-fitting-remove][hidden]{display:none!important}
[data-fitting-path]{pointer-events:none}
.so-fitting-target{fill:transparent;stroke:transparent;stroke-width:2}
.so-page[data-stage=hanging] [data-fitting-kind=hanging],.so-page[data-stage=drawers] [data-fitting-kind=drawers]{pointer-events:all;cursor:pointer}
[data-fitting-path][aria-pressed=true] .so-fitting-target{fill:#b26f2d18;stroke:#b26f2d}
@media(max-width:700px){.so-fitting-fields{grid-template-columns:1fr}.so-fitting-actions>button{flex:1}}

.so-page [data-shelf-to-partition][hidden],.so-page [data-partition-to-shelf][hidden]{display:none!important}
.so-page [data-shelf-to-partition],.so-page [data-partition-to-shelf]{margin-top:16px}

/* Keep SVG fitting focus from drawing the browser's thick default outline. */
.so-page .so-diagram [data-fitting-path],
.so-page .so-diagram [data-fitting-path]:focus,
.so-page .so-diagram [data-fitting-path]:focus-visible{outline:none!important;box-shadow:none!important}
.so-page .so-diagram [data-fitting-path] .so-fitting-target{stroke-width:.75;vector-effect:non-scaling-stroke}
.so-page .so-diagram [data-fitting-path]:focus-visible .so-fitting-target{fill:#b26f2d18;stroke:#b26f2d}

.so-front-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.so-front-actions label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#868686}
.so-front-actions select{min-height:43px;padding:8px 12px;border:1px solid #dbdbdb;border-radius:6px;background:#fff;color:#2e2e2e;font:inherit}
.so-front-selection{font-size:14px;color:#626262}
.so-door-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e6e6e6;font-size:13px}
.so-front-feedback{color:#a3452d;font-size:13px}
.so-front-feedback:empty{display:none}
.so-page[data-stage=fronts] .so-diagram [data-cell-path][aria-pressed=true]{fill:#b7824838;stroke:#a87743}
.so-page[data-stage=fronts] .so-diagram [data-cell-path]:hover{fill:#b782481a}

.so-drawer-sizing{margin-top:22px;padding-top:18px;border-top:1px solid #e6e6e6}
.so-drawer-sizing h3{font-size:14px;font-weight:500;margin:0 0 16px;color:#2e2e2e}
.so-drawer-sizing[hidden],.so-drawer-sizing [hidden]{display:none!important}

.so-page .so-diagram [fill="#39755d"],.so-page .so-diagram [fill="#829388"]{fill:#888}
.so-page .so-diagram [stroke="#39755d"],.so-page .so-diagram [stroke="#737f79"]{stroke:#888}
.so-page .so-diagram [fill="#f0f2f1"]{fill:#f2f2f2}
.so-page .so-diagram [fill="#dde2df"]{fill:#e1e1e1}
.so-page .so-diagram [stroke="#9ba9a2"]{stroke:#a5a5a5}

.so-front-actions label[hidden]{display:none!important}

.so-page [data-order-pane=handles] [hidden]{display:none!important}
.so-page [data-order-pane=handles] select{min-height:43px;padding:8px 12px;border:1px solid #ddd;border-radius:6px;background:#fff;color:#333;font:inherit}
.so-page [data-handle-form]{padding-top:18px}

.so-hinge-editor{border-top:1px solid #ddd;padding-top:18px;margin-top:18px}.so-hinge-editor h3{font-size:14px;font-weight:500;margin:0 0 16px}.so-hinge-editor[hidden],.so-hinge-editor [hidden]{display:none!important}.so-diagram [data-hinge-door]{cursor:pointer;outline:none!important}

.so-page .so-preview{position:sticky;top:20px;align-self:start;height:calc(100dvh - 40px);max-height:calc(100dvh - 40px);min-height:0;overflow:hidden;padding:12px;display:flex;flex-direction:column}
.so-page .so-preview-toolbar{flex-wrap:wrap;gap:8px;justify-content:center;min-height:34px;flex-shrink:0}
.so-page .so-diagram{display:flex;align-items:center;justify-content:center;width:100%;flex:1 1 0;min-height:0;height:auto;overflow:hidden}
.so-page .so-diagram>svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;margin:auto;flex:1 1 auto}
.so-page [name=handleSpacing][aria-invalid=true]{border-color:#a3452d}
@media(max-width:1100px){.so-page .so-preview{position:relative;top:auto;height:60dvh;max-height:calc(100dvh - 40px);min-height:0}}

.so-handle-copy{margin-top:20px;padding-top:16px;border-top:1px solid #ddd}.so-handle-copy h3{font-size:14px;font-weight:500;margin:0 0 14px}.so-handle-copy>button{margin-top:14px}

.so-space-bar{margin-bottom:18px}
.so-space-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}
.so-space-heading h2{margin:0}
.so-space-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.so-page .so-space-actions button:not(.so-action-primary){padding:9px 14px;border:1px solid #ddd;border-radius:6px;background:#fff;color:#444}
.so-space-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;direction:ltr}
.so-space-item{display:flex;align-items:center;border:1px solid #ddd;border-radius:6px;background:#fff;overflow:hidden}
.so-page .so-space-item>button{padding:9px 12px;direction:rtl}
.so-page .so-space-item>button[aria-pressed=true]{background:#f7eee4;color:#975c23}
.so-page .so-space-item>.so-space-remove{border-left:1px solid #ddd;color:#a3452d;font-size:18px;padding:6px 10px}
.so-space-totals{margin:14px 0 0}
.so-page .so-diagram[hidden],.so-page .so-space-diagram[hidden],.so-page .so-preview-toolbar button[hidden]{display:none!important}
.so-space-diagram{display:flex;align-items:center;justify-content:center;width:100%;flex:1 1 0;min-height:0;overflow:hidden}
.so-space-diagram>svg{display:block;width:100%;height:100%;max-height:100%}
.so-space-diagram [data-space-cabinet]{cursor:pointer;outline:none}
@media(max-width:700px){.so-space-heading{align-items:stretch}.so-space-actions{gap:8px}.so-space-actions>button{flex:1;white-space:nowrap}}

.so-space-diagram [data-space-cabinet]{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.so-space-diagram.is-reordering,.so-space-diagram.is-reordering [data-space-cabinet]{cursor:grabbing}
.so-space-diagram [data-space-cabinet].is-dragging{opacity:.85;filter:drop-shadow(0 3px 3px #0002)}

.so-stage-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}
.so-toolbox{max-height:calc(100dvh - 100px);overflow:auto;position:sticky;top:20px}
.so-toolbox .so-section-head{justify-content:space-between;gap:10px}
.so-toolbox .so-section-head h2{font-size:16px}
.so-toolbox input{margin-bottom:12px}
.so-library-item{padding:14px 0;border-bottom:1px solid #ddd;cursor:grab}
.so-library-item>strong,.so-library-item>small{display:block}
.so-library-item>strong{font-size:14px;color:#333}
.so-library-item>small{margin-top:7px;color:#777;font-size:11px;line-height:1.6}
.so-library-actions{display:flex;gap:14px;margin-top:8px}
.so-page .so-library-actions>button{font-size:12px;color:#975c23}
.so-stage{height:calc(100dvh - 330px);min-height:320px;display:flex;padding:16px}
.so-stage .so-space-diagram{min-height:0}
.so-stage.is-library-drop{border:2px dashed #b26f2d;background:#fcf8f2}
.so-stage-empty{display:grid;place-items:center;min-height:220px;color:#777;text-align:center;padding:20px;font-size:16px;line-height:1.8;border:1px dashed #ccc;border-radius:8px;width:100%}

.so-space-save-hint{font-size:13px;color:#777;margin:10px 0 0}
.so-space-bar .so-customer{margin-top:14px;padding:14px;border-radius:6px}
.so-space-bar .so-customer .so-section-head{margin-bottom:10px}
.so-cabinet-dialog{width:min(1700px,calc(100vw - 40px));height:calc(100dvh - 40px);max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #ddd;border-radius:12px;background:#f5f5f5;color:#333;box-shadow:0 20px 80px #0003;overflow:hidden}



.so-editor-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:#fff;border-bottom:1px solid #ddd;flex-shrink:0}
.so-editor-heading h2{font-size:19px;margin:0}
.so-page .so-editor-heading button{font-size:26px;padding:0 8px}
.so-editor-name{padding:12px 20px;background:#fff}
.so-editor-name label{max-width:450px}
.so-editor-content{overflow:auto;min-height:0;flex:1;padding:20px}
.so-editor-footer{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 20px;background:#fff;border-top:1px solid #ddd;flex-shrink:0}
.so-editor-footer>p{font-size:13px;margin:0;flex:1;min-width:180px;color:#666}
.so-page .so-editor-footer>button:not(.so-action-primary){border:1px solid #ddd;border-radius:6px;background:#fff;padding:10px 16px;color:#444}
.so-cabinet-dialog .so-preview{position:sticky;top:0;height:calc(100dvh - 310px);max-height:calc(100dvh - 310px);min-height:0}
.so-cabinet-dialog [data-handles-save]{display:none!important}
@media(max-width:1100px){.so-stage-layout{grid-template-columns:250px minmax(0,1fr)}.so-cabinet-dialog .so-workspace{grid-template-columns:1fr 1fr}.so-cabinet-dialog .so-preview{position:sticky;top:0}}
@media(max-width:700px){.so-stage-layout{grid-template-columns:1fr}.so-toolbox{position:static;max-height:280px}.so-stage{height:55dvh;min-height:260px}.so-cabinet-dialog{width:100vw;height:100dvh;border-radius:0;border:0}.so-editor-content{padding:12px}.so-cabinet-dialog .so-workspace{grid-template-columns:1fr}.so-cabinet-dialog .so-preview{position:relative;height:45dvh;max-height:45dvh}.so-editor-footer{padding:10px;gap:8px}.so-editor-footer>p{flex-basis:100%}.so-page .so-editor-footer>button{flex:1;font-size:12px;padding:9px}.so-space-bar .so-customer-new{grid-template-columns:1fr 1fr}}

/* Space dashboard: compact context, persistent library and a dedicated canvas. */
.so-dashboard{padding:16px 20px 20px;display:flex;flex-direction:column;gap:12px;background:#f5f5f6;min-height:calc(100dvh - 80px)}
.so-dashboard>.so-dashboard-context{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:24px;align-items:start;margin:0;padding:12px 16px;border-radius:8px}
.so-dashboard-context>.so-space-name{display:block;margin:0;min-width:0}
.so-dashboard-context .so-customer{border:0;border-inline-start:1px solid #e6e6e6;border-radius:0;margin:0;padding:0 20px 0 0;display:grid;grid-template-columns:auto minmax(200px,420px);gap:12px;align-items:start;justify-content:start}
.so-dashboard-context .so-customer .so-section-head{margin:0;gap:14px;min-height:36px}
.so-dashboard-context .so-customer h2{font-size:13px;white-space:nowrap}
.so-dashboard-context .so-customer-tabs{gap:12px;white-space:nowrap}
.so-dashboard-context .so-customer-tabs button{font-size:12px;padding:7px 0}
.so-dashboard-context .so-customer-fields{width:100%;min-width:0}
.so-dashboard-context .so-customer-fields>label{display:flex;align-items:center;gap:10px;font-size:0}
.so-dashboard-context input{height:36px;min-height:36px;padding:7px 10px;font-size:13px}
.so-dashboard-context .so-space-name label{font-size:11px;gap:5px}
.so-dashboard-context .so-customer-fields>label input{font-size:13px}
.so-dashboard-context .so-customer-new{gap:8px;grid-template-columns:1fr 1fr}
.so-dashboard-context .so-customer-new label{font-size:11px;gap:5px}
.so-dashboard-context .so-selected{font-size:12px;margin:5px 0 0}
.so-dashboard-context .so-customer-results:empty{display:none}
.so-dashboard-context .so-customer-results{margin-top:4px;max-height:112px}
.so-dashboard>.so-stage-layout{flex:1;min-height:0;grid-template-columns:250px minmax(0,1fr);gap:12px;align-items:stretch}
.so-dashboard .so-toolbox{position:static;max-height:calc(100dvh - 240px);min-height:360px;padding:16px;overflow:auto;border-radius:8px}
.so-dashboard .so-toolbox .so-section-head{margin-bottom:12px}
.so-dashboard .so-toolbox .so-section-head h2{font-size:14px}
.so-dashboard .so-toolbox input{min-height:36px;padding:7px 10px;font-size:12px;margin:0}
.so-dashboard .so-toolbox [data-library-status]:empty{display:none}
.so-dashboard .so-toolbox .so-fitting-note{font-size:12px;line-height:1.8;margin-top:18px}
.so-dashboard .so-library-item{padding:12px 0}
.so-dashboard .so-stage{height:calc(100dvh - 250px);min-height:400px;padding:0;flex-direction:column;overflow:hidden;border-radius:8px}
.so-dashboard .so-stage-heading{padding:12px 16px;border-bottom:1px solid #e6e6e6;background:#fff;flex-shrink:0}
.so-dashboard .so-space-heading{margin:0;gap:12px}
.so-dashboard .so-space-heading h2{font-size:14px}
.so-dashboard .so-space-actions{gap:8px}
.so-dashboard .so-space-actions button,.so-dashboard .so-space-actions button.so-action-primary{min-height:34px;min-width:0;padding:7px 12px;font-size:12px}
.so-dashboard .so-stage>.so-space-diagram{background-color:#fafafa;background-image:radial-gradient(#d8d8dc .7px,transparent .7px);background-size:20px 20px;padding:20px;position:relative}
.so-dashboard .so-stage-empty{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:0;width:auto;padding:24px;border:0;background:#fafafae8;font-size:13px;line-height:1.5}
.so-dashboard .so-stage-empty strong{font-size:18px;font-weight:500;color:#444}
.so-dashboard .so-empty-symbol{font-size:32px;line-height:1;color:#b26f2d}
.so-dashboard .so-stage-empty button{margin-top:6px;min-height:36px;min-width:130px;padding:8px 14px}
.so-dashboard .so-stage-footer{flex-shrink:0;padding:10px 16px;background:#fff;border-top:1px solid #e6e6e6;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.so-dashboard .so-stage-footer .so-space-list{margin:0;gap:6px}
.so-dashboard .so-stage-footer .so-space-list:empty{display:none}
.so-dashboard .so-stage-footer .so-space-totals{margin:0;font-size:12px}
.so-dashboard .so-space-item>button{padding:6px 9px;font-size:11px}
.so-dashboard>.so-dashboard-feedback{order:5;font-size:12px;color:#777}
.so-dashboard-feedback p{margin:0;line-height:1.7}
.so-dashboard-feedback p:empty{display:none}
.so-dashboard-feedback:has(p:not(:empty)){padding:0 4px}
@media(max-width:1100px){.so-dashboard>.so-dashboard-context{grid-template-columns:210px minmax(0,1fr);gap:14px}.so-dashboard-context .so-customer{grid-template-columns:1fr;gap:5px;padding-inline-start:14px}.so-dashboard-context .so-customer .so-section-head{min-height:24px}.so-dashboard>.so-stage-layout{grid-template-columns:220px minmax(0,1fr)}.so-dashboard .so-stage{height:calc(100dvh - 280px)}}
@media(max-width:700px){.so-dashboard{padding:12px;gap:10px}.so-dashboard>.so-dashboard-context{grid-template-columns:1fr;gap:10px;padding:12px}.so-dashboard-context .so-customer{padding:10px 0 0;border:0;border-top:1px solid #e6e6e6}.so-dashboard>.so-stage-layout{display:flex;flex-direction:column}.so-dashboard .so-toolbox{min-height:0;max-height:220px;padding:12px}.so-dashboard .so-stage{height:58dvh;min-height:350px}.so-dashboard .so-stage-heading{padding:10px}.so-dashboard .so-space-heading{align-items:center}.so-dashboard .so-stage>.so-space-diagram{padding:10px}.so-dashboard .so-stage-footer{padding:10px}.so-dashboard .so-stage-empty{padding:12px;font-size:12px}.so-dashboard .so-stage-empty strong{font-size:16px}}

/* Keep the planner inside the viewport; scrolling areas are opt-in. */
html:has(.so-dashboard),body:has(.so-dashboard){height:100%;overflow:hidden;overscroll-behavior:none}


body:has(.so-dashboard) #new-order-root{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
#new-order-root>.so-dashboard{height:100%;min-height:0;flex:1;overflow:hidden;box-sizing:border-box}.so-dashboard>.so-dashboard-context,.so-dashboard>.so-dashboard-feedback{flex-shrink:0}
.so-dashboard>.so-stage-layout{flex:1 1 0;min-height:0;overflow:hidden}
.so-dashboard .so-stage{height:100%;min-height:0;max-height:100%;box-sizing:border-box}
.so-dashboard .so-toolbox{min-height:0;max-height:100%;overflow:hidden;box-sizing:border-box}
.so-dashboard .so-customer-results,.so-dashboard .so-editor-content{overflow:hidden}
@media(max-width:700px){.so-dashboard>.so-stage-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,100px) minmax(0,1fr)}.so-dashboard .so-toolbox{height:100%;max-height:100%}.so-dashboard .so-stage{height:100%;min-height:0}.so-dashboard .so-stage-empty{gap:7px;padding:8px}.so-dashboard .so-stage-empty strong{font-size:14px}}

/* Cabinet library sidebar. */
.so-dashboard>.so-stage-layout{grid-template-columns:280px minmax(0,1fr)}
.so-dashboard .so-toolbox{background:#fff;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 2px 8px #20202004}
.so-dashboard .so-toolbox .so-section-head{margin:0;align-items:center}
.so-library-eyebrow{display:block;font-size:10px;color:#999;margin-bottom:5px;letter-spacing:.3px}
.so-dashboard .so-toolbox h2{display:flex;gap:8px;align-items:center;font-size:15px}
[data-library-count]{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:6px;background:#f1f1f3;color:#777;font-size:11px;font-weight:400}
.so-dashboard .so-toolbox [data-library-refresh]{display:grid;place-items:center;width:30px;height:30px;border:1px solid #e6e6e8;border-radius:7px;font-size:20px;padding:0;color:#777}
.so-dashboard .so-toolbox [data-library-refresh]:hover{background:#f5f5f6;color:#333}
.so-dashboard .so-toolbox [data-library-search]{background:#f7f7f8;border-color:#eee;border-radius:7px;font-size:12px}
.so-dashboard .so-library-filter{font-size:10px;color:#888;gap:5px}
.so-library-filter select{width:100%;min-width:0;height:34px;padding:5px 9px;border:1px solid #e5e5e7;background:#fff;border-radius:6px;font:inherit;font-size:12px;color:#444}
.so-dashboard [data-library-status]{margin:0;font-size:12px;color:#a3452d}
.so-dashboard [data-library-items]{flex:1;min-height:0;overflow:hidden}
.so-library-group{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#777;margin:0 0 8px;padding:4px 0}
.so-library-group>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.so-library-group>small{color:#aaa;font-size:10px}
.so-dashboard .so-library-item{padding:11px;margin:0 0 12px;border:1px solid #e8e8eb;border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s}
.so-dashboard .so-library-item:hover{border-color:#c9b49c;box-shadow:0 3px 12px #2e2e2e09}
.so-library-card-body{display:flex;gap:11px;align-items:center;min-width:0}
.so-library-cabinet-icon{width:34px;height:44px;border:1px solid #b7b1a9;box-shadow:inset 0 0 0 3px #f7f5f1;border-radius:2px;flex-shrink:0;background:linear-gradient(to bottom,transparent 48%,#d3cec6 48%,#d3cec6 51%,transparent 51%);position:relative}
.so-library-cabinet-icon:after{content:'';position:absolute;top:0;bottom:0;left:50%;border-left:1px solid #d3cec6}
.so-library-card-info{min-width:0;flex:1}
.so-library-card-info strong{display:block;font-size:13px;color:#3d3d3d;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.so-library-card-info small{display:block;font-size:10px;color:#8b8b8b;margin-top:6px;line-height:1.6}
.so-dashboard .so-library-actions{display:flex;gap:8px;margin-top:10px;padding-top:8px;border-top:1px solid #f0f0f1}
.so-dashboard .so-library-actions>button{font-size:11px;padding:5px 8px;min-height:28px;border-radius:5px;color:#777}
.so-dashboard .so-library-actions>button:first-child{background:#f5ede4;color:#975c23;flex:1}
.so-dashboard .so-library-actions>button:hover{background:#f0f0f1;color:#333}
.so-library-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid #ececee;color:#888;font-size:11px;flex-shrink:0}
.so-library-pagination[hidden]{display:none}
.so-page .so-library-pagination button{padding:3px 9px;border:1px solid #e5e5e7;border-radius:5px;font-size:16px}
.so-library-empty{padding:24px 5px;text-align:center;color:#999;line-height:1.8}
.so-library-empty>span{display:block;font-size:30px;color:#c5beb5;margin-bottom:8px}
.so-library-empty strong{display:block;font-size:13px;font-weight:500;color:#777}
.so-library-empty p{font-size:12px;margin:7px 0}
@media(max-width:1100px){.so-dashboard>.so-stage-layout{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:700px){.so-dashboard>.so-stage-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,38%) minmax(0,1fr)}.so-dashboard .so-toolbox{gap:6px;padding:10px}.so-dashboard .so-library-item{padding:7px;margin-bottom:6px}.so-dashboard .so-toolbox .so-section-head{display:none}}

/* Room totals stay above the stage; cabinet editing is part of the stage. */
.so-dashboard>.so-space-summary{flex-shrink:0;min-width:0}
.so-dashboard>.so-space-summary>.so-summary{margin:0;gap:7px;grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
.so-dashboard>.so-space-summary .so-card{padding:8px 10px;min-height:66px;border-radius:6px}
.so-dashboard>.so-space-summary .so-card strong{font-size:18px}
.so-dashboard>.so-space-summary .so-card-label{font-size:10px;margin-bottom:4px}
.so-dashboard>.so-space-summary .so-card-detail{font-size:9px;line-height:1.35;margin-top:4px}
.so-dashboard .so-inline-editor{position:static;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;max-height:none;margin:0;border:0;border-radius:0;padding:0;box-shadow:none;background:#fafafa;overflow:hidden}
.so-dashboard .so-inline-editor[hidden]{display:none!important}
.so-editing-cabinet .so-stage>.so-stage-heading,.so-editing-cabinet .so-stage>.so-space-diagram,.so-editing-cabinet .so-stage>.so-stage-footer{display:none!important}
.so-dashboard .so-inline-editor .so-editor-heading{padding:8px 14px;min-height:42px}
.so-dashboard .so-inline-editor .so-editor-heading h2{font-size:15px}
.so-dashboard .so-inline-editor .so-editor-name{padding:6px 14px;flex-shrink:0}
.so-dashboard .so-inline-editor .so-editor-name label{display:flex;align-items:center;gap:12px;max-width:360px;font-size:11px}
.so-dashboard .so-inline-editor .so-editor-name input{min-height:32px;height:32px;font-size:12px;padding:5px 9px;flex:1;min-width:0}
.so-dashboard .so-inline-editor .so-editor-content{padding:10px;flex:1;min-height:0;overflow:hidden}
.so-dashboard .so-inline-editor .so-workspace{height:100%;min-height:0;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:10px}
.so-dashboard .so-inline-editor .so-editor{min-height:0;height:100%;display:block;overflow:hidden}
.so-dashboard .so-inline-editor [data-order-pane]{height:100%;border:0;background:#fff;overflow:hidden}
.so-dashboard .so-inline-editor [data-order-pane]:not([data-state=active]){display:none!important}
.so-dashboard .so-inline-editor .so-pane-body{padding:12px;border:0;height:100%;overflow:hidden}
.so-dashboard .so-inline-editor .so-preview{position:static;top:auto;height:100%;max-height:100%;min-height:0;padding:8px}
.so-dashboard .so-inline-steps{display:flex;gap:4px;flex-wrap:wrap;padding:6px 10px;background:#fff;border-bottom:1px solid #e6e6e6;flex-shrink:0}
.so-dashboard .so-inline-steps .so-pane-header{width:auto;min-height:30px;padding:5px 9px;gap:6px;background:#f6f6f6;border-radius:5px;flex:1;white-space:nowrap}
.so-dashboard .so-inline-steps .so-pane-title{font-size:11px;flex:none}
.so-dashboard .so-inline-steps .so-order-marker{width:18px;height:18px;flex-basis:18px;font-size:10px}
.so-dashboard .so-inline-steps .so-order-state,.so-dashboard .so-inline-steps .so-pane-chevron{display:none}
.so-dashboard .so-inline-steps [data-state=active]{background:#f5eadd;color:#975c23}
.so-dashboard .so-inline-steps [data-state=active] .so-order-marker{background:#b26f2d;color:#fff;border-color:#b26f2d}
.so-dashboard .so-inline-editor .so-editor-footer{padding:8px 12px;gap:8px}
.so-dashboard .so-inline-editor .so-editor-footer>p{font-size:11px;min-width:0}
.so-dashboard .so-inline-editor .so-editor-footer>button{min-height:34px;font-size:11px;padding:7px 12px;min-width:0}
.so-dashboard .so-inline-editor .so-stage-actions{margin-top:14px;padding-top:12px}
.so-dashboard .so-inline-editor .so-fields{gap:10px}
.so-dashboard .so-inline-editor .so-fitting-fields{gap:10px}
.so-dashboard .so-inline-editor input,.so-dashboard .so-inline-editor select{min-height:34px;padding:6px 9px;font-size:12px}
.so-dashboard .so-inline-editor label{font-size:11px;gap:5px}
.so-dashboard .so-inline-editor .so-fitting-actions{margin-top:12px;gap:8px}
.so-dashboard .so-inline-editor .so-action-primary,.so-dashboard .so-inline-editor .so-action-danger{min-height:34px;font-size:12px;padding:7px 12px}
.so-dashboard .so-inline-editor .so-status{position:static;box-shadow:none;margin:0;padding:4px 8px;font-size:11px;max-width:100%}
@media(max-width:900px){.so-dashboard>.so-space-summary>.so-summary{grid-template-columns:repeat(6,minmax(0,1fr))}.so-dashboard>.so-space-summary .so-card-detail{display:none}.so-dashboard>.so-space-summary .so-card{min-height:48px;padding:5px 7px}.so-dashboard>.so-space-summary .so-card strong{font-size:15px}.so-dashboard .so-inline-editor .so-workspace{grid-template-columns:1fr 1fr}.so-dashboard .so-inline-steps .so-pane-header{flex:0 1 auto}}
@media(max-width:600px){.so-dashboard>.so-space-summary>.so-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.so-dashboard>.so-space-summary .so-card-label{font-size:9px}.so-dashboard .so-inline-editor .so-workspace{grid-template-columns:1fr 1fr}.so-dashboard .so-inline-editor .so-pane-body{padding:6px}.so-dashboard .so-inline-editor .so-editor-content{padding:6px}.so-dashboard .so-inline-editor .so-fields{grid-template-columns:1fr 1fr;gap:6px}.so-dashboard .so-inline-editor .so-editor-footer>p{flex-basis:100%}}

.so-dashboard>.so-dashboard-feedback:not(:has([data-space-feedback]:not(:empty))){display:none}

/* Full-height library and a compact workspace toolbar. */
#new-order-root>.so-dashboard{display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px 12px;padding:12px 20px}

.so-dashboard>.so-stage-layout{display:contents}
.so-dashboard .so-toolbox{grid-column:1;grid-row:1/5;height:100%;max-height:none;min-height:0}
.so-dashboard>.so-dashboard-context{grid-column:2;grid-row:1;display:flex;justify-content:space-between;align-items:center;padding:0;border:0;border-radius:0;background:transparent;gap:12px;margin:0}
.so-dashboard-context>.so-space-name{flex:0 1 330px}
.so-dashboard-context .so-space-name label{display:flex;align-items:center;gap:10px;white-space:nowrap}
.so-dashboard-context .so-space-name input{flex:1;min-width:0;background:#fff}
.so-dashboard-context>[data-save-cabinet]{min-height:36px;padding:7px 16px;border:1px solid #2e2e2e;border-radius:6px;background:#2e2e2e;color:#fff;font-size:12px;white-space:nowrap}
.so-dashboard>.so-space-summary{grid-column:2;grid-row:2}
.so-dashboard .so-stage{grid-column:2;grid-row:3;width:100%;height:100%;min-height:0}
.so-dashboard>.so-dashboard-feedback{grid-column:2;grid-row:4}
.so-dashboard>.so-space-summary .so-card:has([data-value=final]){background:#f6eadb;border-color:#dab991;color:#81501e}
.so-dashboard>.so-space-summary .so-card:has([data-value=final]) .so-card-label,.so-dashboard>.so-space-summary .so-card:has([data-value=final]) .so-card-detail{color:#956b3d}
.so-dashboard .so-inline-editor [data-drawers-save],.so-dashboard .so-inline-editor [data-fronts-save],.so-dashboard .so-inline-editor [data-shelves-save]{display:none!important}
.so-customer-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:22px;border:1px solid #ddd;border-radius:12px;background:#fff;color:#333;box-shadow:0 16px 60px #0003}
.so-customer-dialog::backdrop{background:#0006}
.so-customer-dialog:not([open]){display:none}
.so-customer-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.so-page .so-customer-dialog-heading h2{font-size:18px;margin:0}
.so-page .so-customer-dialog-heading button{padding:0 6px;font-size:25px;line-height:1}
.so-customer-dialog-intro{font-size:12px;color:#888;margin:10px 0 20px}
.so-customer-dialog .so-customer{padding:0;border:0;background:transparent}
.so-customer-dialog .so-section-head{gap:18px}
.so-customer-dialog .so-section-head h2{display:none}
.so-customer-dialog .so-customer-tabs{gap:20px}
.so-customer-dialog .so-customer-results{max-height:160px}
.so-customer-dialog [data-customer-save-feedback]{font-size:12px;color:#a3452d;margin:12px 0}
.so-customer-dialog [data-customer-save-feedback]:empty{display:none}
.so-customer-dialog-actions{display:flex;align-items:center;gap:14px;padding-top:20px;margin-top:20px;border-top:1px solid #eee}
.so-customer-dialog-actions button{font-size:12px}
@media(max-width:1100px){#new-order-root>.so-dashboard{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:700px){#new-order-root>.so-dashboard{grid-template-columns:190px minmax(0,1fr);gap:8px;padding:10px}.so-dashboard-context .so-space-name label{font-size:0;gap:0}.so-dashboard-context .so-space-name input{font-size:12px}.so-dashboard>.so-dashboard-context{gap:8px}.so-dashboard-context>[data-save-cabinet]{padding:6px 9px;font-size:11px}.so-dashboard .so-toolbox .so-section-head{display:flex}}
@media(max-width:480px){#new-order-root>.so-dashboard{grid-template-columns:130px minmax(0,1fr);padding:6px;gap:6px}.so-dashboard .so-toolbox{padding:8px}.so-dashboard .so-toolbox h2{font-size:12px}.so-dashboard .so-library-card-body{gap:6px}.so-dashboard .so-library-cabinet-icon{display:none}.so-dashboard .so-library-actions{flex-wrap:wrap}.so-dashboard>.so-space-summary>.so-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.so-dashboard>.so-dashboard-context{flex-wrap:wrap}.so-dashboard-context>.so-space-name{flex-basis:100%}}

/* The builder fills the shared shell's central workspace. */
body:has(.app-sidebar) #new-order-root>.so-dashboard{padding:14px;gap:10px;min-height:0;background:#f5f5f6;grid-template-columns:240px minmax(0,1fr)}
body:has(.app-sidebar) .so-dashboard .so-toolbox{padding:14px;border-radius:9px;border-color:#e6e6e9;box-shadow:none}
body:has(.app-sidebar) .so-dashboard .so-stage{border-radius:9px;border-color:#e6e6e9}
body:has(.app-sidebar) .so-dashboard .so-stage-heading{padding:10px 14px}
body:has(.app-sidebar) .so-dashboard .so-stage>.so-space-diagram{background-color:#fdfdfd;background-image:radial-gradient(#dedee3 .65px,transparent .65px);background-size:22px 22px}
body:has(.app-sidebar) .so-dashboard .so-space-summary .so-card{background:#fff;border-color:#e6e6e9;box-shadow:none}
body:has(.app-sidebar) .so-dashboard .so-space-summary .so-card:has([data-value=final]){background:#f3e5d5;border-color:#dfc6a8}
body:has(.app-sidebar) .so-dashboard .so-space-name input{border-color:#e2e2e6;border-radius:6px}
@media(max-width:1100px){body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:215px minmax(0,1fr);padding:12px}}
@media(max-width:700px){body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:160px minmax(0,1fr);padding:8px;gap:8px}body:has(.app-sidebar) .so-dashboard .so-toolbox{padding:10px}}
@media(max-width:480px){body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:115px minmax(0,1fr);padding:6px;gap:6px}body:has(.app-sidebar) .so-dashboard .so-toolbox{padding:7px}}

/* Continuous building workspace with no panel gaps or frames. */
body:has(.app-sidebar) #new-order-root>.so-dashboard{padding:0;gap:0}
body:has(.app-sidebar) .so-dashboard :is(.so-toolbox,.so-stage,.so-dashboard-context,.so-space-summary,.so-card,.so-library-item,.so-inline-editor,.so-preview,.so-editor-heading,.so-editor-name,.so-editor-content,.so-editor-footer,.so-stage-heading,.so-stage-footer,.so-space-item,.so-stage-empty){margin:0;border:0!important;border-radius:0!important;box-shadow:none!important}
body:has(.app-sidebar) .so-dashboard :is(.so-stage-layout,.so-summary,.so-workspace,.so-library-card-body,.so-inline-steps){gap:0}
body:has(.app-sidebar) .so-dashboard :is(.so-stage-heading,.so-stage-footer,.so-editor-content,.so-preview){padding:0}
body:has(.app-sidebar) .so-dashboard .so-stage>.so-space-diagram{padding:0}
body:has(.app-sidebar) .so-dashboard>.so-dashboard-context{padding:0;gap:0}
body:has(.app-sidebar) .so-dashboard>.so-space-summary>.so-summary{gap:0;margin:0}
body:has(.app-sidebar) .so-dashboard .so-inline-editor .so-workspace{gap:0}
body:has(.app-sidebar) .so-dashboard .so-toolbox{gap:0}
body:has(.app-sidebar) .so-dashboard .so-library-item{margin:0}
body:has(.app-sidebar) .so-dashboard .so-library-actions{border:0}
body:has(.app-sidebar) :is(button,input,select,textarea,.so-customer-dialog,.so-panel){border-radius:0!important;box-shadow:none!important}
body:has(.app-sidebar) .so-dashboard .so-toolbox{padding:0}
body:has(.app-sidebar) .so-dashboard :is(.so-editor-heading,.so-editor-name,.so-editor-footer,.so-inline-steps,.so-pane-body){border:0!important;border-radius:0;box-shadow:none}
body:has(.app-sidebar) .so-dashboard :is(input,select,textarea){border:0!important;background-color:#f1f1f3}
body:has(.app-sidebar) .so-dashboard button{border:0!important}


/* Planner workspace only: readable fields, grouped totals and cabinet library. */
body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:260px minmax(0,1fr);grid-template-rows:56px auto minmax(0,1fr) auto;padding:0;gap:0;background:#f5f5f6}
#new-order-root .so-dashboard>.so-dashboard-context{display:flex;align-items:center;justify-content:space-between;min-height:0;padding:10px 20px;gap:20px;background:#fff}
#new-order-root .so-dashboard-context>.so-space-name{flex:0 1 420px}
#new-order-root .so-dashboard-context .so-space-name label{display:flex;align-items:center;gap:14px;font-size:12px;font-weight:500;color:#555;white-space:nowrap}
#new-order-root .so-dashboard-context .so-space-name input{flex:1;height:36px;min-height:36px;padding:8px 12px;font-size:13px;color:#333;background:#f4f4f6}
#new-order-root .so-dashboard-context>[data-save-cabinet]{height:36px;min-height:36px;min-width:120px;padding:8px 16px;font-size:12px;font-weight:500;background:#303030;color:#fff}
#new-order-root .so-dashboard>.so-space-summary{padding:12px 20px 16px;background:#f5f5f6;min-width:0}
#new-order-root .so-dashboard>.so-space-summary>.so-summary{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px;margin:0;align-items:stretch}
#new-order-root .so-quantity-summary,#new-order-root .so-price-summary{min-width:0}
#new-order-root .so-space-summary h3{margin:0 0 8px;font-size:11px;line-height:1.5;font-weight:500;color:#777}
#new-order-root .so-quantity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:8px;height:calc(100% - 25px);align-content:stretch}
#new-order-root .so-price-grid{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:8px;height:calc(100% - 25px)}
#new-order-root .so-space-summary .so-card{background:#fff;padding:10px 11px;min-height:76px;text-align:right;min-width:0}
#new-order-root .so-space-summary .so-card-label{display:block;margin:0 0 6px;font-size:11px;line-height:1.5;color:#818181;font-weight:400}
#new-order-root .so-space-summary .so-card strong{display:block;font-size:21px;font-weight:500;line-height:1.35;color:#343434;font-variant-numeric:tabular-nums}
#new-order-root .so-space-summary .so-card-detail{font-size:10px;color:#999;line-height:1.55;margin-top:5px}
#new-order-root .so-price-summary .so-card strong{font-size:19px}
#new-order-root .so-price-summary .so-card:has([data-value=final]){background:#f1e3d1}
#new-order-root .so-price-summary .so-card:has([data-value=final]) strong{font-size:22px;color:#845521}
#new-order-root .so-price-summary .so-card:has([data-value=final]) .so-card-label,#new-order-root .so-price-summary .so-card:has([data-value=final]) .so-card-detail{color:#946d40}
#new-order-root .so-dashboard .so-toolbox{padding:20px 16px;gap:14px;background:#fff;height:100%;max-height:none;min-width:0}
#new-order-root .so-toolbox .so-section-head{margin:0;gap:12px}
#new-order-root .so-toolbox .so-section-head h2{font-size:15px;font-weight:500;color:#333}
#new-order-root .so-library-eyebrow{font-size:10px;color:#aaa;margin-bottom:6px}
#new-order-root .so-toolbox [data-library-count]{font-size:11px;min-width:22px;height:22px;background:#f2f2f4;color:#777}
#new-order-root .so-toolbox [data-library-refresh]{width:30px;height:30px;font-size:20px;color:#8e8e8e;background:#f6f6f7}
#new-order-root .so-toolbox input[data-library-search]{height:37px;min-height:37px;padding:8px 10px;font-size:12px;background:#f4f4f6;margin:0}
#new-order-root .so-library-filter{gap:6px;font-size:11px;font-weight:400;color:#777}
#new-order-root .so-library-filter select{height:36px;min-height:36px;padding:8px 10px 8px 30px;font-size:12px;background-color:#f4f4f6;color:#555}
#new-order-root .so-library-group{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 9px;padding:4px 0;font-size:12px;line-height:1.5;color:#666}
#new-order-root .so-library-group small{font-size:10px;color:#aaa}
#new-order-root .so-dashboard .so-library-item{padding:12px;margin:0 0 12px;background:#f7f7f8;transition:background .15s}
#new-order-root .so-dashboard .so-library-item:hover{background:#f4efe8}
#new-order-root .so-library-card-body{display:flex;align-items:center;gap:12px;min-width:0}
#new-order-root .so-library-cabinet-icon{width:29px;height:37px;background-color:#fff;flex-shrink:0}
#new-order-root .so-library-card-info strong{font-size:13px;font-weight:500;line-height:1.5;color:#3d3d3d}
#new-order-root .so-library-card-info small{font-size:10px;line-height:1.6;color:#999;margin-top:3px}
#new-order-root .so-library-measurements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
#new-order-root .so-library-measurements>div{display:grid;gap:3px}
#new-order-root .so-library-measurements span{font-size:10px;color:#999;line-height:1.5}
#new-order-root .so-library-measurements strong{font-size:12px;font-weight:400;color:#555;font-variant-numeric:tabular-nums}
#new-order-root .so-dashboard .so-library-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;padding-top:0}
#new-order-root .so-dashboard .so-library-actions>button{min-height:30px;padding:6px;font-size:11px;background:#efeff1;color:#777}
#new-order-root .so-dashboard .so-library-actions>button:first-child{background:#eddfce;color:#8b5c2b}
#new-order-root .so-dashboard .so-library-actions>button:hover{background:#e7d5bd;color:#795024}
#new-order-root .so-library-pagination{padding-top:8px;gap:12px;font-size:11px}
#new-order-root .so-library-pagination button{height:28px;min-height:28px;padding:3px 9px;background:#f2f2f4}
#new-order-root .so-dashboard .so-stage{background:#fcfcfc;min-width:0;min-height:0}
#new-order-root .so-dashboard .so-stage-heading{padding:12px 20px;background:#fff}
#new-order-root .so-space-heading{min-height:36px;gap:16px}
#new-order-root .so-space-heading h2{font-size:14px;font-weight:500;color:#555}
#new-order-root .so-space-actions{gap:10px}
#new-order-root .so-space-actions button{min-height:34px;padding:8px 12px;font-size:12px}
#new-order-root .so-space-actions button:not(.so-action-primary){background:#f3f3f5;color:#777}
#new-order-root .so-space-actions button.so-action-primary{background:#333;color:#fff}
#new-order-root .so-space-actions button:disabled{opacity:.35}
#new-order-root .so-dashboard .so-stage>.so-space-diagram{padding:18px;background-color:#fcfcfc}
#new-order-root .so-dashboard .so-stage-empty{gap:12px;padding:24px;background:transparent}
#new-order-root .so-dashboard .so-stage-empty strong{font-size:19px;font-weight:500;color:#4b4b4b}
#new-order-root .so-dashboard .so-stage-empty>span:not(.so-empty-symbol){font-size:12px;color:#999}
#new-order-root .so-dashboard .so-stage-empty .so-empty-symbol{font-size:28px;color:#bb864c}
#new-order-root .so-dashboard .so-stage-empty button{margin-top:6px;min-height:36px;padding:8px 18px;font-size:12px}
#new-order-root .so-dashboard .so-stage-footer{padding:10px 20px;background:#fff}
#new-order-root .so-dashboard .so-stage-footer .so-space-totals{font-size:12px;line-height:1.6;color:#888}
#new-order-root .so-dashboard .so-space-item>button{min-height:30px;padding:6px 10px;font-size:11px}
#new-order-root .so-dashboard .so-inline-editor .so-editor-heading{padding:10px 16px;min-height:42px;background:#fff}
#new-order-root .so-dashboard .so-inline-editor .so-editor-heading h2{font-size:15px;font-weight:500}
#new-order-root .so-dashboard .so-inline-editor .so-editor-name{padding:8px 16px;background:#fff}
#new-order-root .so-inline-editor .so-editor-name label{gap:12px;font-size:12px;color:#666;max-width:410px}
#new-order-root .so-inline-editor .so-editor-name input{height:35px;min-height:35px;padding:8px 10px;background:#f4f4f6;font-size:13px}
#new-order-root .so-dashboard .so-inline-steps{gap:5px;padding:8px 12px;background:#fff}
#new-order-root .so-inline-steps .so-pane-header{gap:6px;min-height:31px;padding:6px 8px;background:#f4f4f6;font-size:11px;color:#777}
#new-order-root .so-inline-steps .so-pane-header[data-state=active]{background:#eedfc9;color:#845520}
#new-order-root .so-dashboard .so-inline-editor .so-editor-content{padding:12px;background:#f5f5f6}
#new-order-root .so-dashboard .so-inline-editor .so-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px}
#new-order-root .so-dashboard .so-inline-editor .so-pane-body{padding:16px;background:#fff}
#new-order-root .so-inline-editor label{font-size:12px;color:#777;gap:7px}
#new-order-root .so-inline-editor input,#new-order-root .so-inline-editor select{height:36px;min-height:36px;font-size:13px;padding:8px 10px;background-color:#f4f4f6;color:#333}
#new-order-root .so-inline-editor input:focus,#new-order-root .so-inline-editor select:focus,#new-order-root .so-toolbox input:focus,#new-order-root .so-space-name input:focus{outline:1px solid #c9ae8e;outline-offset:0}
#new-order-root .so-inline-editor .so-fields,#new-order-root .so-inline-editor .so-fitting-fields{gap:14px 12px}
#new-order-root .so-dashboard .so-inline-editor .so-preview{padding:10px;background:#fcfcfc}
#new-order-root .so-dashboard .so-inline-editor .so-editor-footer{padding:10px 16px;gap:10px;background:#fff}
#new-order-root .so-inline-editor .so-editor-footer>button{min-height:35px;font-size:12px;padding:8px 14px}
#new-order-root .so-inline-editor .so-editor-footer>p{font-size:11px;line-height:1.6}
#new-order-root .so-dashboard>.so-dashboard-feedback{padding-inline:20px;font-size:11px;color:#999}
@media(max-width:1250px){body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:230px minmax(0,1fr)}#new-order-root .so-dashboard>.so-space-summary>.so-summary{grid-template-columns:minmax(0,1fr) 310px;gap:12px}#new-order-root .so-quantity-grid{grid-template-columns:repeat(auto-fit,minmax(76px,1fr))}#new-order-root .so-space-summary .so-card{padding:8px;min-height:70px}#new-order-root .so-space-summary .so-card strong{font-size:19px}#new-order-root .so-price-summary .so-card strong{font-size:17px}#new-order-root .so-price-summary .so-card:has([data-value=final]) strong{font-size:19px}}
@media(max-width:950px){#new-order-root .so-dashboard>.so-space-summary>.so-summary{grid-template-columns:1fr;gap:10px}#new-order-root .so-price-summary h3{display:none}#new-order-root .so-price-grid{height:auto}#new-order-root .so-quantity-grid{height:auto}#new-order-root .so-space-summary .so-card{min-height:52px;padding:7px 9px}#new-order-root .so-space-summary .so-card-detail{display:none}#new-order-root .so-price-summary .so-card{display:flex;justify-content:space-between;align-items:center;gap:8px}#new-order-root .so-price-summary .so-card-label{margin:0;font-size:10px}#new-order-root .so-dashboard .so-toolbox{padding:16px 12px}#new-order-root .so-dashboard>.so-space-summary{padding:10px 14px}#new-order-root .so-dashboard .so-inline-editor .so-workspace{grid-template-columns:1fr 1fr}}
@media(max-width:700px){body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:165px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto}#new-order-root .so-dashboard>.so-dashboard-context{padding:10px 12px;gap:10px;flex-wrap:wrap}#new-order-root .so-dashboard-context .so-space-name label{font-size:11px;gap:6px}#new-order-root .so-dashboard-context>[data-save-cabinet]{min-width:0;padding:7px 10px;font-size:11px}#new-order-root .so-quantity-grid{grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:5px}#new-order-root .so-price-grid{gap:5px}#new-order-root .so-price-summary .so-card{display:block}#new-order-root .so-space-summary .so-card strong{font-size:17px}#new-order-root .so-toolbox .so-section-head h2{font-size:13px}#new-order-root .so-library-card-info small{font-size:9px}#new-order-root .so-library-cabinet-icon{display:none}#new-order-root .so-dashboard .so-library-item{padding:10px}#new-order-root .so-dashboard .so-library-actions{grid-template-columns:1fr}#new-order-root .so-library-measurements{gap:4px}#new-order-root .so-space-heading{align-items:start;gap:8px}#new-order-root .so-dashboard .so-stage-heading{padding:10px 12px}#new-order-root .so-space-actions{gap:6px}}

/* Compact planning canvas: one summary strip, gentle colour and 6px corners. */
body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:minmax(0,1fr);grid-template-rows:54px 78px minmax(0,1fr) auto;background:#fbfaf8}
#new-order-root .so-dashboard>.so-dashboard-context,#new-order-root .so-dashboard>.so-space-summary,#new-order-root .so-dashboard .so-stage,#new-order-root .so-dashboard>.so-dashboard-feedback{grid-column:1}
#new-order-root .so-dashboard>.so-dashboard-context{padding:9px 18px;background:#fff;gap:16px}
#new-order-root .so-dashboard-context .so-space-name input{height:35px;background:#f4f3f1;border-radius:6px!important;color:#514b45}
#new-order-root .so-dashboard-context>[data-save-cabinet]{background:#a9753d;color:#fff;border-radius:6px!important;min-height:34px;height:34px;font-size:12px}
#new-order-root .so-dashboard-context>[data-save-cabinet]:disabled{background:#c5beb5;opacity:.75}
#new-order-root .so-dashboard>.so-space-summary{padding:10px 18px 12px;background:#fbfaf8;min-width:0;overflow:hidden}
#new-order-root .so-dashboard>.so-space-summary>.so-summary{display:flex;flex-wrap:nowrap;gap:7px;height:56px;width:100%;margin:0;overflow:hidden;align-items:stretch}
#new-order-root .so-summary .so-quantity-summary,#new-order-root .so-summary .so-price-summary,#new-order-root .so-summary .so-quantity-grid,#new-order-root .so-summary .so-price-grid{display:contents}
#new-order-root .so-dashboard .so-space-summary .so-card{flex:1 1 0;min-width:0;min-height:0;height:56px;max-height:56px;padding:7px 10px;border:0;border-radius:6px!important;background:#f3f1ee;text-align:right;overflow:hidden;box-shadow:none}
#new-order-root .so-space-summary .so-card-label{display:block;margin:0 0 4px;font-size:10px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#91857a}
#new-order-root .so-space-summary .so-card strong,#new-order-root .so-price-summary .so-card strong{font-size:19px;line-height:1.3;font-weight:500;color:#665a4e;white-space:nowrap}
#new-order-root .so-space-summary .so-card-detail{display:none}
#new-order-root .so-space-summary .so-card:has([data-value=raw]){background:#f2f0ec}
#new-order-root .so-space-summary .so-card:has([data-value=raw]) strong{color:#716457}
#new-order-root .so-space-summary .so-card:has([data-value=final]){flex:1.25 1 0;background:#f6e4d1}
#new-order-root .so-space-summary .so-card:has([data-value=final]) strong{font-size:20px;color:#a27749}
#new-order-root .so-space-summary .so-card:has([data-value=final]) .so-card-label{color:#b28c63}
#new-order-root .so-dashboard .so-stage{background:#fff}
#new-order-root .so-dashboard .so-stage>.so-space-diagram{background-color:#fdfcfb;background-image:radial-gradient(#ded8e5 .65px,transparent .65px);background-size:24px 24px;padding:24px}
#new-order-root .so-dashboard .so-stage-empty{background:transparent;padding:20px;gap:12px}
#new-order-root .so-dashboard .so-stage-empty .so-empty-symbol{display:grid;place-items:center;width:48px;height:48px;background:#f4ede4;border-radius:10px!important;color:#b58b5d;font-size:27px}
#new-order-root .so-dashboard .so-stage-empty strong{font-size:20px;font-weight:500;color:#756658}
#new-order-root .so-dashboard .so-stage-empty>span:not(.so-empty-symbol){font-size:12px;color:#aa9b8c}
#new-order-root .so-dashboard .so-stage-footer{background:#fff;padding:10px 18px}
#new-order-root .so-dashboard button,#new-order-root .so-dashboard input,#new-order-root .so-dashboard select,#new-order-root .so-dashboard textarea{border-radius:6px!important}
#new-order-root .so-dashboard .so-inline-editor .so-editor-heading,#new-order-root .so-dashboard .so-inline-editor .so-editor-name{background:#fff}
#new-order-root .so-dashboard .so-inline-editor .so-editor-content{background:#fbfaf8}
#new-order-root .so-dashboard .so-inline-editor .so-preview{background:#fff;border-radius:6px!important}
#new-order-root .so-dashboard .so-inline-editor .so-pane-body{background:#fff;border-radius:6px!important}
#new-order-root .so-inline-steps .so-pane-header{background:#f4f1ec;border-radius:5px!important;color:#a39789}
#new-order-root .so-inline-steps .so-pane-header[data-state=active]{background:#f0e1cd;color:#966b38}
#new-order-root .so-inline-steps [data-state=active] .so-order-marker{background:#af875a;border-color:#af875a;color:#fff}
#new-order-root .so-inline-editor input,#new-order-root .so-inline-editor select{background-color:#f6f4f1;color:#66594b}
#new-order-root .so-inline-editor button.so-action-primary{background:#a77a45;color:#fff}
#new-order-root .so-dashboard .so-inline-editor .so-editor-footer>button.so-action-primary{background:#a77a45;color:#fff}
@media(max-width:1100px){body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:minmax(0,1fr)}#new-order-root .so-dashboard .so-space-summary .so-card{padding:7px}#new-order-root .so-space-summary .so-card strong{font-size:17px}#new-order-root .so-space-summary .so-card-label{font-size:9px}}
@media(max-width:700px){body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:minmax(0,1fr);grid-template-rows:54px 72px minmax(0,1fr) auto}#new-order-root .so-dashboard>.so-space-summary{padding:8px 10px}#new-order-root .so-dashboard>.so-space-summary>.so-summary{gap:4px}#new-order-root .so-dashboard .so-space-summary .so-card{padding:6px 4px}#new-order-root .so-space-summary .so-card strong{font-size:15px}#new-order-root .so-space-summary .so-card-label{font-size:8px}}

/* Keep the room name on one line and remove the redundant bottom count. */
body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-rows:60px 78px minmax(0,1fr) auto}
#new-order-root .so-dashboard>.so-dashboard-context{height:60px;min-height:60px;max-height:none;display:flex;flex-wrap:nowrap;align-items:center;padding:12px 18px;overflow:visible}
#new-order-root .so-dashboard-context>.so-space-name{flex:0 1 460px;min-width:0}
#new-order-root .so-dashboard-context .so-space-name label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;line-height:1.5;font-size:12px;color:#777;white-space:nowrap}
#new-order-root .so-dashboard-context .so-space-name input{width:100%;min-width:0;height:36px;min-height:36px;margin:0;padding:8px 12px;line-height:20px;box-sizing:border-box;background:#f4f3f1;color:#514b45}
#new-order-root .so-dashboard .so-stage-footer:empty{display:none}
#new-order-root .so-dashboard .so-stage-footer:has(.so-space-list:empty){display:none}
#new-order-root .so-dashboard .so-space-summary .so-card{background:#f3f1ee}
#new-order-root .so-space-summary .so-card strong{color:#665a4e}
#new-order-root .so-space-summary .so-card-label{color:#91857a}
@media(max-width:700px){#new-order-root .so-dashboard-context .so-space-name label{gap:7px;font-size:11px}#new-order-root .so-dashboard-context>[data-save-cabinet]{min-width:85px;font-size:11px;padding-inline:10px}}

/* Room-level fronts: fixed toolbar, canvas and a compact inspector. */
.so-stage{position:relative}
.so-room-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:6px 14px;background:#fff;border-bottom:1px solid #ebe6df;flex:none}
.so-room-modes{display:flex;gap:4px;background:#f1efec;padding:3px;border-radius:6px}
.so-room-modes button{min-height:30px;padding:4px 14px;background:transparent;color:#666;border:0;border-radius:4px;font-size:13px}
.so-room-modes button[aria-pressed=true]{background:#fff;color:#98591f;box-shadow:0 1px 3px #00000012}
.so-room-toolbar>span{font-size:12px;color:#847b70}
.so-room-fronts{position:static;width:auto;z-index:auto;background:#fffdf9;border-left:1px solid #e9e2d8;padding:16px;box-sizing:border-box;font-size:12px;overflow:hidden}
.so-room-fronts[hidden]{display:none}

.so-room-front-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.so-room-front-heading strong{font-size:15px;color:#34302a}
.so-room-fronts button{min-height:30px;padding:5px 9px;font-size:12px;border-radius:5px}
.so-room-front-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.so-room-front-fields label{display:grid;gap:5px;font-size:11px;color:#776b5d}
.so-room-front-fields input,.so-room-front-fields select{width:100%;height:34px;min-height:34px;padding:4px 8px;box-sizing:border-box;background:#fff;border:1px solid #ddd6cd;border-radius:5px;color:#333;font-size:12px}
.so-room-front-limits{color:#998a78;font-size:11px}
.so-room-front-apply{display:flex;gap:6px;margin:14px 0 8px}
[data-room-front-feedback]{color:#a45d24;font-size:12px;line-height:1.6}
.so-room-front-list{display:grid;gap:6px;margin-top:16px}
.so-room-fronts .so-room-front-item{display:grid;gap:6px;width:100%;text-align:right;background:#f5f2ed;color:#514536;padding:10px;border:1px solid transparent;white-space:normal}
.so-room-fronts .so-room-front-item[aria-pressed=true]{background:#f7e9d7;border-color:#cda876}
.so-room-front-item strong{font-size:12px;font-weight:600}.so-room-front-item span{font-size:11px;color:#887a69}
.so-editing-cabinet .so-room-toolbar,.so-editing-cabinet .so-room-fronts{display:none}


.so-room-front-pages{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px;color:#887a69;font-size:11px}
.so-room-fronts details summary{cursor:pointer;color:#8f622c;padding:8px 0}

/* Planning tools form a dedicated second rail; primary navigation stays shared. */
body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:260px minmax(0,1fr);background:#f7f8f9}
#new-order-root .so-dashboard>.so-dashboard-context,#new-order-root .so-dashboard>.so-space-summary,#new-order-root .so-dashboard .so-stage,#new-order-root .so-dashboard>.so-dashboard-feedback{grid-column:2}
#new-order-root .so-dashboard .so-planning-tools{grid-column:1;grid-row:1/5;align-self:stretch;display:flex;flex-direction:column;height:100%;min-height:0;max-height:none;padding:0 14px!important;background:#f2f3f5;border-left:1px solid #dedfe2!important;overflow:hidden;gap:0}
.so-tools-heading{display:grid;gap:5px;padding:22px 4px 18px}.so-tools-heading>span{font-size:10px;color:#8d929a}.so-tools-heading>strong{font-size:18px;font-weight:600;color:#30343b}
#new-order-root .so-planning-tools [data-planner-actions]{padding:0 0 14px}
#new-order-root .so-planning-tools .so-submenu-actions{display:block}
#new-order-root .so-planning-tools .so-submenu-actions button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:36px;min-height:36px;background:#30343b;color:#fff;font-size:12px}
#new-order-root .so-planning-tools svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#new-order-root .so-planning-tools .so-room-toolbar{display:block;min-height:0;padding:0 0 18px;border:0;background:transparent}
#new-order-root .so-planning-tools .so-room-toolbar>span{display:none}
#new-order-root .so-planning-tools .so-room-modes{display:grid;grid-template-columns:1fr 1fr;background:#e5e7eb;border-radius:6px;padding:3px;gap:2px}
#new-order-root .so-planning-tools .so-room-modes button{padding:7px 3px;font-size:12px;color:#737a85;background:transparent}
#new-order-root .so-planning-tools .so-room-modes button[aria-pressed=true]{background:#fff;color:#30343b}
#new-order-root .so-planning-tools [hidden]{display:none!important}
.so-tools-section-title{display:grid;gap:6px;padding:0 3px 14px}.so-tools-section-title strong{font-size:13px;color:#404650}.so-tools-section-title span{font-size:11px;color:#8b929c}
#new-order-root .so-planning-tools .so-library-tabs{display:flex;gap:16px;padding:0 3px 10px;margin-bottom:6px;background:transparent;border-bottom:1px solid #e0e2e6}
#new-order-root .so-planning-tools .so-library-tabs button{background:transparent;color:#8a909a;font-size:11px;min-height:28px;padding:3px 0}
#new-order-root .so-planning-tools .so-library-tabs button[aria-pressed=true]{color:#a76a2d;font-weight:600}
#new-order-root .so-planning-tools .so-library-item{display:flex;align-items:center;gap:8px;min-height:54px;padding:8px!important;margin:0 0 6px;background:#fff;border-radius:5px!important;box-sizing:border-box;cursor:grab}
#new-order-root .so-planning-tools .so-library-item:hover{background:#faf7f2}
#new-order-root .so-planning-tools .so-library-card-info{flex:1;min-width:0;display:grid;gap:5px;text-align:right}
#new-order-root .so-planning-tools .so-library-card-info strong{font-size:12px;font-weight:600;color:#3c434d;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#new-order-root .so-planning-tools .so-library-card-info small{font-size:10px;color:#969ca5}
#new-order-root .so-planning-tools .so-library-grip{color:#c0c5cc;display:flex}
#new-order-root .so-planning-tools .so-library-pencil{width:26px;min-width:26px;min-height:28px;padding:5px;background:transparent;color:#87909a}
#new-order-root .so-planning-tools .so-library-pencil:hover{color:#a76a2d;background:#f4eee6}
#new-order-root .so-planning-tools .so-library-group{font-size:11px;color:#78808b;padding:12px 3px 8px}
#new-order-root .so-planning-tools .so-library-note{font-size:12px;color:#89919d;line-height:1.8;padding:6px}
#new-order-root .so-planning-tools .so-library-pagination{display:flex;justify-content:center;gap:16px;align-items:center;padding:12px 0;color:#9198a2;font-size:11px}
#new-order-root .so-planning-tools .so-library-pagination button{background:transparent;color:#777f8a;padding:4px;min-height:25px}
#new-order-root .so-planning-tools .so-room-fronts{padding:0;background:transparent;border:0;font-size:12px;overflow:hidden}
#new-order-root .so-room-front-heading{padding:0 3px 12px;margin:0;border-bottom:1px solid #e0e2e6}
#new-order-root .so-room-front-heading strong{font-size:13px;color:#404650}
#new-order-root .so-room-front-heading button{font-size:10px;background:transparent;color:#9b6e3e;padding:3px}
#new-order-root [data-room-selection]{font-size:12px;color:#737b87;line-height:1.7;min-height:38px;margin:14px 3px 8px}
#new-order-root .so-room-front-fields{gap:8px;margin:10px 0}
#new-order-root .so-room-front-fields label{font-size:11px;color:#89909a}
#new-order-root .so-room-front-fields select,#new-order-root .so-room-front-fields input{background:#fff;color:#424954;height:34px}
#new-order-root .so-room-front-limits{font-size:10px;color:#9ca2aa;margin:10px 3px}
#new-order-root .so-room-front-apply{display:grid;margin:14px 0}
#new-order-root .so-room-front-apply button.so-action-primary{background:#30343b;color:#fff;width:100%;min-height:35px}
#new-order-root .so-room-front-apply button:disabled{background:#e0e3e7;color:#a4aab2;opacity:1}
#new-order-root .so-room-front-list{margin-top:14px}
#new-order-root .so-room-fronts .so-room-front-item{background:#fff;color:#414852;padding:10px;border-radius:5px!important}
#new-order-root .so-room-fronts .so-room-front-item[aria-pressed=true]{background:#eee5d9}
#new-order-root .so-room-front-item span{color:#8d949e}
#new-order-root .so-room-front-list>p{font-size:11px;color:#969da7;line-height:1.8}
#new-order-root .so-room-front-mode>.so-space-diagram{width:100%;margin:0}
#new-order-root .so-copy-selected{font-size:11px;color:#8f6336;background:#f3ece3;padding:5px 9px}
@media(max-width:1100px){body:has(.app-sidebar) #new-order-root>.so-dashboard{grid-template-columns:230px minmax(0,1fr)}}

#new-order-root .so-selected-cabinet{padding:12px;margin:0 0 18px;background:#fff;border-radius:6px!important;display:grid;gap:7px}
.so-selected-heading{display:flex;align-items:center;justify-content:space-between;color:#9197a0;font-size:10px}
#new-order-root .so-selected-heading button{padding:0;min-height:18px;background:transparent;font-size:18px;color:#8b929b}


.so-canvas-tools{position:absolute;top:14px;left:14px;z-index:3;display:flex;gap:6px}
#new-order-root .so-canvas-tools button{display:flex;align-items:center;gap:7px;min-height:33px;padding:7px 11px;font-size:11px;color:#5c6570;background:#fff;box-shadow:0 2px 8px #00000012!important;border-radius:5px!important}
.so-canvas-tools svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.so-editing-cabinet .so-canvas-tools{display:none}
#new-order-root .so-planning-tools .so-library-delete{width:25px;min-width:25px;min-height:28px;padding:5px;background:transparent;color:#a87870}
#new-order-root .so-planning-tools .so-library-delete:hover{color:#ac4c3c;background:#f9e9e6}

.so-space-diagram.is-panning,.so-space-diagram.is-panning *{cursor:grabbing!important;user-select:none;-webkit-user-select:none}

#new-order-root .so-room-layout-controls{margin-bottom:16px;border-bottom:1px solid #dee2e7;padding-bottom:12px}
.so-wall-settings summary{font-size:12px;color:#58616d;cursor:pointer;padding:0 0 10px}
#new-order-root .so-room-layout-controls label{display:grid;gap:7px;font-size:11px;color:#8b949f;min-width:0}
#new-order-root .so-room-layout-controls input,#shape-workspace .sw-parameters input[type=number]{box-sizing:border-box;width:100%;min-width:0;min-height:36px;padding:8px 10px;background:#fff;border-radius:4px;font-size:12px;color:#46515e}
.so-wall-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
#new-order-root .so-wall-settings button{font-size:11px}
.so-wall-settings p{font-size:11px;line-height:1.5}
.so-room-view-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:5px 0 10px}
#new-order-root .so-room-view-tabs button{font-size:11px;min-height:30px;background:transparent;color:#8c949f;padding:5px}
#new-order-root .so-room-view-tabs button[aria-pressed=true]{background:#fff;color:#4c5663}
#new-order-root .so-tools-heading{padding-top:15px;padding-bottom:12px}

#new-order-root .so-room-view-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
#new-order-root .so-library-tabs{gap:10px!important}
#new-order-root .so-library-tabs button{font-size:10px!important;white-space:nowrap}
#new-order-root .so-planning-tools .so-library-group-select{width:100%;height:30px;min-height:30px;margin:4px 0 10px;padding:4px 7px;background:#fff;color:#737c89;font-size:11px}
.so-space-diagram.is-3d{padding:0!important;position:relative;display:block;touch-action:none;background:#f9fafb!important}
.so-kitchen-3d{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline:none}
.so-kitchen-3d.is-orbiting{cursor:grabbing}
.so-canvas-3d-hint{position:absolute;z-index:3;bottom:14px;left:50%;transform:translateX(-50%);background:#ffffffdc;border-radius:5px;padding:7px 12px;font-size:11px;color:#89929d;pointer-events:none;white-space:nowrap}
.so-canvas-3d-hint[hidden],.so-editing-cabinet .so-canvas-3d-hint{display:none}
.production-shell>.app-sidebar.is-compact:not(.is-expanded) .brand-header .official-logo{display:none}
.production-shell>.app-sidebar.is-compact:not(.is-expanded) .brand-header::before{content:'+';display:block;font-size:30px;font-weight:500;color:#b58248;line-height:24px;width:32px;text-align:center}

/* Scroll only inside the planning rail. Library rooms form a single-open accordion. */
#new-order-root .so-dashboard .so-planning-tools{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bfc5cd transparent;scrollbar-gutter:stable}
#new-order-root .so-planning-tools>*,#new-order-root .so-planning-tools .so-library-content{flex-shrink:0}
#new-order-root .so-planning-tools::-webkit-scrollbar{width:5px}
#new-order-root .so-planning-tools::-webkit-scrollbar-thumb{background:#bfc5cd;border-radius:5px}
#new-order-root .so-library-accordion{margin:0 0 9px;border:1px solid #d9dee5!important;border-radius:6px!important;background:#fafbfc;overflow:hidden}
#new-order-root .so-planning-tools .so-library-accordion-heading{display:flex;align-items:center;gap:7px;width:100%;min-height:43px;padding:11px 10px;text-align:right;color:#5c6673;background:#e9edf1;border-radius:0!important}
#new-order-root .so-library-accordion-heading strong{flex:1;font-size:11px;font-weight:600;line-height:1.5}
#new-order-root .so-library-group-count{font-size:10px;min-width:19px;padding:1px 5px;background:#fff;color:#8b95a2;border-radius:4px;text-align:center}
#new-order-root .so-library-group-chevron{display:flex;transition:transform 220ms ease;color:#8f99a5}
#new-order-root .so-library-accordion.is-open .so-library-group-chevron{transform:rotate(180deg)}
#new-order-root .so-library-accordion.is-open .so-library-accordion-heading{background:#e7e0d5;color:#886236}
#new-order-root .so-library-accordion-panel{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows 220ms ease,opacity 180ms ease,visibility 0s linear 220ms}
#new-order-root .so-library-accordion.is-open .so-library-accordion-panel{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows 220ms ease,opacity 180ms ease,visibility 0s}
#new-order-root .so-library-accordion-content{min-height:0;overflow:hidden;padding:0 7px}
#new-order-root .so-library-accordion-content .so-library-item:first-child{margin-top:8px}
#new-order-root .so-library-accordion-content .so-library-item:last-child{margin-bottom:8px}
#new-order-root .so-planning-tools .so-library-accordion .so-library-item{border:1px solid #e7eaee!important;background:#fff}
@media(prefers-reduced-motion:reduce){#new-order-root .so-library-accordion-panel,#new-order-root .so-library-group-chevron{transition-duration:.01ms!important;transition-delay:0s!important}}

.so-confirm-space{max-width:420px;width:calc(100vw - 48px);padding:24px;border:0;border-radius:8px;background:#fff;color:#414b56;box-shadow:0 14px 60px #0002}
.so-confirm-space::backdrop{background:#18212b66}
.so-confirm-space h2{font-size:18px;margin:0 0 12px}.so-confirm-space p{font-size:13px;line-height:1.8;color:#7d8691;margin:0 0 22px}
.so-confirm-space form>div{display:flex;gap:8px}.so-confirm-space button{font-size:12px;padding:9px 14px;background:#edf0f3;color:#67717f;border:0;border-radius:5px}
.so-confirm-space [data-confirm-accept]{background:#ae6655;color:white}
#new-order-root .so-canvas-tools .so-clear-all{color:#a96a5a}
.so-canvas-tools{flex-wrap:wrap;max-width:calc(100% - 28px)}

/* Four focused work stages. */
.so-flow-progress{display:flex;align-items:center;gap:8px;width:100%;justify-content:center}
#new-order-root .so-flow-progress button{display:flex;align-items:center;gap:7px;background:transparent;color:#8b95a1;font-size:12px;padding:8px 12px;min-height:36px}
.so-flow-progress button>span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#edf0f3;color:#939ca6;font-size:11px}
.so-flow-progress button>strong{font-weight:500}
#new-order-root .so-flow-progress button[aria-current=step]{color:#966b3c;background:#f3e9dd}
.so-flow-progress button[aria-current=step]>span{background:#a27745;color:white}
#new-order-root .so-flow-progress button:disabled{opacity:.4}
#new-order-root .so-flow-progress button[data-complete=true]>span{background:#dee3e9;color:#667180}
#new-order-root .so-planning-tools .so-wall-settings>summary{display:none}
#new-order-root .so-planning-tools .so-flow-footer{position:sticky;bottom:0;margin-top:auto;padding:14px 0 10px;background:#f2f3f5;z-index:4}
.so-flow-footer>div{display:flex;gap:8px}.so-flow-footer p{font-size:11px;color:#a86d45;line-height:1.7;margin:0 0 8px}
#new-order-root .so-flow-footer button{min-height:36px;padding:8px 10px;font-size:11px;background:#e3e7eb;color:#6e7885}
#new-order-root .so-flow-footer .so-action-primary{flex:1;background:#343a43;color:white}
#new-order-root .so-flow-save{display:grid;gap:14px;padding:10px 0}
.so-flow-save h3{margin:0;font-size:14px;color:#4c5664}
#new-order-root .so-flow-save label{display:grid;gap:8px;font-size:12px;color:#89939e}
#new-order-root .so-flow-save input{width:100%;box-sizing:border-box;min-height:36px;background:#fff;padding:8px;font-size:12px}
#new-order-root .so-flow-save [data-save-cabinet]{min-height:38px;background:#a47843;color:#fff;font-size:12px;padding:9px 12px}
.so-flow-help{font-size:11px;color:#929aa5;line-height:1.8}
.so-flow-skip{display:flex;align-items:flex-start;gap:7px;font-size:11px;line-height:1.7;color:#8a939f;margin-top:16px}.so-flow-skip input{width:auto!important;min-height:0!important;margin-top:4px}
#new-order-root .so-page[data-flow-stage="1"] [data-order-stage="fronts"],#new-order-root .so-page[data-flow-stage="1"] [data-order-stage="handles"]{display:none}

#new-order-root .so-page[data-flow-stage="2"] [data-order-stage]:not([data-order-stage="fronts"]):not([data-order-stage="handles"]){display:none}

@keyframes so-wall-change{from{opacity:.3;transform:translateY(6px) scale(.992)}to{opacity:1;transform:translateY(0) scale(1)}}
.so-space-diagram.is-wall-transition>svg,.so-space-diagram.is-wall-transition>.so-kitchen-3d{animation:so-wall-change 260ms cubic-bezier(.2,.7,.3,1) both;transform-origin:center}
@media(prefers-reduced-motion:reduce){.so-space-diagram.is-wall-transition>svg,.so-space-diagram.is-wall-transition>.so-kitchen-3d{animation:none}}

#new-order-root .so-wall-shapes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:2px 0 16px}
#new-order-root .so-planning-tools .so-wall-shapes button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:85px;padding:12px 5px 8px;background:#fff;color:#929ba6;border:1px solid #dce1e7!important;border-radius:6px!important;transition:background .18s,border-color .18s,color .18s}
#new-order-root .so-wall-shapes button svg{width:38px;height:38px;stroke:currentColor;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
#new-order-root .so-wall-shapes button span{font-size:11px;font-weight:500}
#new-order-root .so-wall-shapes button i{position:absolute;top:5px;left:5px;font-size:10px;font-style:normal;visibility:hidden}
#new-order-root .so-planning-tools .so-wall-shapes button[aria-pressed=true]{background:#f3e8d9;color:#97682f;border-color:#be965e!important}
#new-order-root .so-wall-shapes button[aria-pressed=true] i{visibility:visible}
#new-order-root .so-wall-shapes button:focus-visible{outline:2px solid #b9905c;outline-offset:2px}

.so-space-diagram [data-space-wall]{cursor:pointer;outline:none}
.so-space-diagram [data-space-wall]:focus-visible{stroke:#b18143;stroke-width:8}

.so-selected-wall-name{margin:0 0 8px;font-size:12px;font-weight:600;color:#a2763e}
#new-order-root .so-wall-fields{grid-template-columns:1fr 1fr;padding-top:8px;border-top:1px solid #dedfe3}

#new-order-root .so-planning-tools .so-view-dock{position:sticky;top:0;z-index:12;background:#f2f3f5;padding:13px 0 12px;border-bottom:1px solid #dce1e7;margin-bottom:5px;flex-shrink:0}
.so-view-dock-title{display:block;font-size:10px;color:#87919e;margin-bottom:8px}
#new-order-root .so-view-dock .so-room-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
#new-order-root .so-view-dock .so-room-view-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:65px;padding:9px 3px;color:#76818e;background:#fff;border:1px solid #d9dfe6!important;border-radius:6px!important;font-size:11px;transition:background .16s,color .16s,border-color .16s}
#new-order-root .so-view-dock .so-room-view-tabs button svg{width:23px;height:23px;stroke-width:1.5}
#new-order-root .so-view-dock .so-room-view-tabs button[aria-pressed=true]{background:#343b45;color:#fff;border-color:#343b45!important}
#new-order-root .so-view-dock .so-room-view-tabs button:focus-visible{outline:2px solid #b58b52;outline-offset:2px}

/* Persistent work summary: status-inspired accents, one compact row. */
#new-order-root .so-dashboard>.so-space-summary{background:#f3f6fa}
#new-order-root .so-dashboard .so-space-summary .so-card{--summary-accent:#64a8cf;--summary-tint:#eaf4fa;background:var(--summary-tint);position:relative;padding-top:10px}
#new-order-root .so-space-summary .so-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--summary-accent)}
#new-order-root .so-space-summary .so-card:has([data-value^=plate]){--summary-accent:#64a8cf;--summary-tint:#eaf4fa}
#new-order-root .so-space-summary .so-card:has([data-value=hardware]),#new-order-root .so-space-summary .so-card:has([data-value=hangerSupports]){--summary-accent:#7d8bdd;--summary-tint:#eef0fb}
#new-order-root .so-space-summary .so-card:has([data-value=runners]),#new-order-root .so-space-summary .so-card:has([data-value=runnerCost]){--summary-accent:#ef8c78;--summary-tint:#fff0eb}
#new-order-root .so-space-summary .so-card:has([data-value=hinges]),#new-order-root .so-space-summary .so-card:has([data-value=cabineo]){--summary-accent:#e9b75a;--summary-tint:#fff6e5}
#new-order-root .so-space-summary .so-card:has([data-value=raw]){--summary-accent:#7d8bdd;--summary-tint:#eef0fb;background:var(--summary-tint)}
#new-order-root .so-space-summary .so-card-label{color:#596879}
#new-order-root .so-space-summary .so-card strong,#new-order-root .so-price-summary .so-card strong{color:#26384b;font-weight:600}
#new-order-root .so-dashboard .so-space-summary .so-card:has([data-value=final]){--summary-accent:#c18b30;background:#f4d38e}
#new-order-root .so-space-summary .so-card:has([data-value=final]) .so-card-label,#new-order-root .so-space-summary .so-card:has([data-value=final]) strong{color:#5d421c}

.so-kitchen-work{padding-top:12px;display:grid;gap:10px}.so-kitchen-work[hidden]{display:none}.so-kitchen-layer{display:flex;gap:4px}.so-kitchen-layer button{flex:1;padding:7px 3px!important;background:#fff!important;color:#626d79!important;font-size:11px!important;border-radius:4px!important}.so-kitchen-layer button[aria-pressed=true]{background:#ead8bd!important;color:#795528!important}

#new-order-root .so-dashboard{position:relative}#new-order-root .so-dashboard>[data-selected-cabinet]{position:absolute;left:12px;top:200px;z-index:15;width:238px;max-height:calc(100% - 166px);overflow:auto;background:#fff;padding:14px!important;border:1px solid #e5e9ed!important;border-radius:7px!important;box-shadow:0 6px 24px #24344818!important;animation:so-inspector-in 180ms ease-out;box-sizing:border-box}
#new-order-root .so-dashboard>[data-selected-cabinet][hidden]{display:none}
.so-quick-cabinet{display:grid;gap:14px;margin:18px 0}.so-quick-cabinet label{display:grid;gap:7px;font-size:11px;color:#73808c}.so-quick-cabinet input,.so-quick-cabinet select{box-sizing:border-box;width:100%;background:#f4f6f8!important;padding:9px!important;border-radius:4px!important;min-width:0}.so-quick-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.so-quick-dimensions label:last-child{grid-column:1/-1}.so-quick-cabinet [role=status]{font-size:11px;color:#a47843;margin:0;line-height:1.6}@keyframes so-inspector-in{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:translateX(0)}}@media(prefers-reduced-motion:reduce){#new-order-root .so-dashboard>[data-selected-cabinet]{animation:none}}

#new-order-root [data-selected-cabinet] .so-selected-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0}#new-order-root [data-selected-cabinet] .so-selected-heading strong{font-size:12px;margin:0;line-height:1.5}#new-order-root [data-selected-cabinet] .so-quick-cabinet{gap:10px;margin:12px 0 0}#new-order-root [data-selected-cabinet] input,#new-order-root [data-selected-cabinet] select{font-size:11px!important;padding:7px!important;min-height:30px}

#new-order-root [data-quick-apply]{background:#a47843!important;color:white!important;padding:9px!important;border-radius:4px!important;font-size:12px!important;cursor:pointer}

#new-order-root .so-canvas-tools .so-history-button{color:#98652f;background:#fff8ed}#new-order-root .so-canvas-tools .so-history-button:disabled{color:#aeb5bc;background:#f1f3f5;box-shadow:none!important;opacity:.6;cursor:not-allowed}#new-order-root .so-canvas-tools .so-history-button:not(:disabled):hover{background:#f0dfc7}

#new-order-root [hidden]{display:none!important}.so-kitchen-plinth{display:grid;gap:7px;font-size:11px;color:#8b949f}.so-kitchen-plinth select{width:100%;box-sizing:border-box;padding:8px 10px;font-size:12px;background:#fff;border-radius:4px}

.so-body-finishes{display:grid;gap:9px;padding-top:12px;border-top:1px solid #e0e3e7}.so-body-finishes>strong{font-size:11px;color:#6e7781;font-weight:500}.so-body-swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}#new-order-root .so-body-swatches button{display:grid;justify-items:center;gap:5px;padding:7px 3px;min-width:0;background:transparent;border-radius:5px;font-size:10px;color:#747d87;border:1px solid transparent!important}#new-order-root .so-body-swatches button[aria-pressed=true]{border-color:#b18a55!important;background:#f3eadc}.so-body-swatches i{display:block;width:30px;height:30px;border-radius:50%;box-shadow:inset 0 0 0 1px #00000010}.so-body-swatches [data-body-finish=oak] i{background-image:repeating-linear-gradient(85deg,#75451d33 0 1px,transparent 1px 5px)}.so-body-swatches [data-body-finish=linen] i{background-image:repeating-linear-gradient(0deg,#ffffff33 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#655e4e22 0 1px,transparent 1px 3px)}

.so-fridge-opening{display:grid;gap:10px}

.so-kitchen-work{gap:16px;padding-bottom:18px;margin-bottom:14px;border-bottom:1px solid #e0e3e7}.so-kitchen-plinth{gap:9px}.so-kitchen-mode{display:flex;align-items:center;gap:8px;font-size:12px;color:#6e7781}.so-kitchen-mode input{width:auto}.so-body-finishes{padding-top:16px}

.so-room-types{margin-top:20px;padding-top:17px;border-top:1px solid #dfe3e7}.so-room-types-heading{display:grid;gap:4px;margin-bottom:12px}.so-room-types-heading>span{font-size:9px;letter-spacing:.5px;color:#a38d72}.so-room-types-heading>strong{font-size:14px;font-weight:500;color:#4c5661}.so-room-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#new-order-root .so-room-type-grid button{position:relative;display:flex;align-items:center;gap:8px;min-width:0;min-height:53px;padding:10px 8px;background:#fafbfc;border:1px solid #e3e6e9!important;border-radius:6px!important;text-align:right;color:#79828c;transition:background 160ms ease,border-color 160ms ease,transform 160ms ease}#new-order-root .so-room-type-grid button:hover{background:#fff;transform:translateY(-1px);border-color:#c6b399!important}#new-order-root .so-room-type-grid button[aria-pressed=true]{background:#f2e7d8;border-color:#b58a53!important;color:#946d3b}.so-room-type-grid svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}.so-room-type-grid span{font-size:10px;line-height:1.5}.so-room-type-grid i{position:absolute;top:2px;left:5px;font-style:normal;font-size:10px;opacity:0}.so-room-type-grid [aria-pressed=true] i{opacity:1}

#new-order-root .so-library-item{display:flex;align-items:center;gap:7px;padding:8px!important}.so-library-illustration{display:block;width:76px;height:76px;flex:0 0 76px;pointer-events:none}.so-library-illustration text{direction:ltr;unicode-bidi:isolate}#new-order-root .so-library-card-info{min-width:0;flex:1}#new-order-root .so-library-card-info strong{font-size:11px;line-height:1.5}#new-order-root .so-library-card-info small{display:block;white-space:normal;line-height:1.7;font-size:9px;margin-top:5px}.so-selected-room{display:inline-flex;align-items:center;gap:7px;margin:0 0 10px;padding:5px 9px;background:#f1e8da;border-radius:4px;color:#946f41;font-size:11px;width:fit-content}.so-selected-room svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}

#new-order-root .so-planning-tools .so-library-accordion .so-library-item{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px 10px;align-items:center;padding:11px!important}#new-order-root .so-planning-tools .so-library-item .so-library-card-info{display:contents}#new-order-root .so-planning-tools .so-library-item .so-library-card-info strong{grid-column:1/-1;grid-row:1;display:block;width:auto;max-width:none;overflow:visible;text-overflow:clip;white-space:nowrap;overflow-wrap:normal;font-size:11px;line-height:1.5;text-align:right}#new-order-root .so-planning-tools .so-library-item svg.so-library-illustration{grid-column:1;grid-row:2;width:82px!important;height:78px!important;min-width:82px;max-width:none;max-height:none;justify-self:center;flex:none}#new-order-root .so-planning-tools .so-library-card-info small{grid-column:2;grid-row:2;display:grid;gap:1px;margin:0;font-size:10px;line-height:1.3;white-space:normal}#new-order-root .so-planning-tools .so-library-card-info small>span{display:flex;justify-content:space-between;gap:6px;white-space:nowrap}#new-order-root .so-planning-tools .so-library-card-info small b{font-weight:500;color:#687482}

/* Planner notifications stay visible above the stage and editor dialogs. */
#new-order-root .so-notification{position:fixed;top:auto;bottom:22px;left:22px;z-index:10000;display:flex;align-items:center;gap:18px;width:max-content;max-width:min(620px,calc(100vw - 32px));padding:14px 18px;margin:0;border:1px solid #9ac8ad;border-radius:8px;background:#eaf7ef;color:#185d37;box-shadow:0 8px 28px #182b2326;font-size:13px;line-height:1.6;direction:rtl;animation:so-notice-in .32s cubic-bezier(.22,1,.36,1)}
#new-order-root .so-notification[hidden]{display:none!important}
#new-order-root .so-notification[data-kind=error]{background:#fff0ef;border-color:#e7a39e;color:#a02b25}
#new-order-root .so-notification button{flex:0 0 28px;width:28px;height:28px;padding:0;color:inherit;font-size:23px;line-height:1;background:transparent;border:0;cursor:pointer}
#new-order-root .so-notification.is-leaving{animation:so-notice-out .32s cubic-bezier(.4,0,1,1) forwards}
#new-order-root .so-selected-room[hidden]{display:none!important}
@keyframes so-notice-in{from{opacity:0;translate:0 calc(100% + 22px)}to{opacity:1;translate:0 0}}
@keyframes so-notice-out{from{opacity:1;translate:0 0}to{opacity:0;translate:0 calc(100% + 22px)}}
@media(prefers-reduced-motion:reduce){#new-order-root .so-notification,#new-order-root .so-notification.is-leaving{animation:none}}

#new-order-root .so-view-dock .so-selected-room{margin:12px 0 0}

#new-order-root .so-notification-stack{position:fixed;bottom:22px;left:22px;z-index:10000;display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:calc(100vw - 44px);max-height:calc(100dvh - 44px);overflow-y:auto;scrollbar-width:none;pointer-events:none} 
#new-order-root .so-notification-stack::-webkit-scrollbar{display:none;width:0;height:0}
#new-order-root .so-notification-stack .so-notification{position:relative;top:auto;bottom:auto;left:auto;flex-shrink:0;box-sizing:border-box;max-width:min(620px,calc(100vw - 44px));pointer-events:auto}

#new-order-root .so-catalog-planning{display:block;font-size:9px;color:#9a7b50;margin-top:5px}#new-order-root .so-catalog-guide{display:block;font-size:10px;color:#967746;margin:3px 0 12px;text-underline-offset:3px}#new-order-root .so-catalog-note{font-size:10px;line-height:1.7;color:#8a765b;margin:9px 0 0}

#new-order-root [data-corner-fields]{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;padding-top:10px;border-top:1px solid #ded7cc}
#new-order-root [data-corner-fields][hidden],#new-order-root [data-corner-fields] label[hidden]{display:none!important}
#new-order-root [data-corner-fields] label{display:grid;gap:4px;font-size:11px;min-width:0}
#new-order-root [data-corner-fields] :is(input,select){width:100%;min-width:0;box-sizing:border-box;font-size:11px;padding:6px}
#new-order-root [data-corner-fields] :is(small,button){grid-column:1/-1;font-size:10px;line-height:1.6}

#new-order-root [data-appliance-slots]{display:grid;gap:10px;margin:12px 0}
#new-order-root [data-appliance-slots][hidden]{display:none!important}
#new-order-root [data-appliance-slots] fieldset{min-width:0;border:1px solid #ded7cc;border-radius:4px;padding:9px}
#new-order-root [data-appliance-slots] legend{font-size:11px;color:#946f41;padding:0 4px}
#new-order-root [data-appliance-slots] .so-device-dimensions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#new-order-root [data-appliance-slots] label{display:grid;gap:4px;font-size:10px;min-width:0}
#new-order-root [data-appliance-slots] input{width:100%;min-width:0;box-sizing:border-box;padding:6px;font-size:11px}
#new-order-root [data-appliance-slots] small{font-size:10px;line-height:1.6}

/* Shared corner styling for room view and drawing tool buttons. */
#new-order-root .so-view-dock .so-room-view-tabs button,
#shape-workspace .sw-shape-dock button{border-radius:6px!important}

/* Numeric drawing fields share the room dimension controls and their rounded corners. */
#shape-workspace .sw-parameters input[type=number]{border:0!important;border-radius:6px!important;direction:ltr;text-align:right;margin:0;font-family:inherit;line-height:1.5}
#shape-workspace .sw-parameters input[type=number]:focus{outline:1px solid #c9ae8e;outline-offset:0}

.so-page .so-inline-customer:not([hidden]){display:block;position:static;width:100%;max-height:none;grid-column:1/-1;padding:16px;margin:12px 0;box-shadow:none;border-radius:6px}
.so-page .so-inline-customer[hidden]{display:none!important}

#new-order-root .so-missing-draft-notice{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 18px;padding:12px 16px;border:1px solid #d9dfe6;border-radius:7px;background:#f1e8dc;color:#946f41;font:inherit;font-size:13px}#new-order-root .so-missing-draft-notice button{border:1px solid #bc945e;border-radius:6px!important;background:#fff;color:#946f41;padding:7px 12px;font:inherit;cursor:pointer}

/* One aligned toolbar treatment for the original cabinet controls and workflow steps. */
#new-order-root :is(.so-canvas-tools,.so-preview-toolbar,.so-room-toolbar,.so-flow-progress){position:fixed;top:var(--cp-stage-top,7px);left:var(--cp-stage-left,12px);right:auto;bottom:auto;z-index:430;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;min-height:32px;height:auto;width:max-content;max-width:none;margin:0;padding:0;gap:8px;flex-wrap:wrap;background:transparent;border:0;box-shadow:none;transform:none;overflow:visible}
#new-order-root :is(.so-canvas-tools,.so-preview-toolbar,.so-room-toolbar,.so-flow-progress) button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 auto;height:32px;min-height:32px;max-height:32px;margin:0;padding:5px 10px;gap:6px;line-height:20px;font-family:inherit;font-size:11px;white-space:nowrap;overflow:visible;text-overflow:clip;border-radius:6px!important}
#new-order-root .so-room-toolbar>span{display:none}
#new-order-root .so-room-toolbar .so-room-modes{display:flex;align-items:center;box-sizing:border-box;flex:0 1 auto;flex-wrap:wrap;max-width:100%;gap:8px;margin:0;padding:0;min-height:32px;height:auto}
#new-order-root .so-flow-progress button>span{display:grid;place-items:center;box-sizing:border-box;flex:0 0 21px;width:21px;height:21px;line-height:1}
#new-order-root .so-flow-progress button>strong{display:block;font-size:inherit;font-weight:500;line-height:20px;white-space:nowrap;max-width:none;overflow:visible}
#new-order-root :is(.so-stage,.so-preview){isolation:auto}
#new-order-root .so-editing-cabinet .so-canvas-tools,#new-order-root :is(.so-canvas-tools,.so-preview-toolbar,.so-room-toolbar,.so-flow-progress)[hidden]{display:none!important}

#new-order-root :is(.so-canvas-tools,.so-room-toolbar,.so-preview-toolbar,.so-flow-progress){padding-inline-end:12px;border-inline-end:1px solid #d9dfe6}

/* Existing cabinet edits expand the current inspector without replacing the room. */
#new-order-root .so-dashboard>[data-selected-cabinet].so-context-editor-host{width:min(680px,calc(100% - 24px));}
#new-order-root .so-context-editor-host .so-inline-editor{height:auto;max-height:none;overflow:visible;background:transparent;}
#new-order-root .so-context-editor-host .so-inline-editor .so-editor-content{flex:none;overflow:visible;padding:10px 0;}
#new-order-root .so-context-editor-host .so-inline-editor .so-workspace{height:auto;min-height:360px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;}
#new-order-root .so-context-editor-host .so-inline-editor .so-editor,#new-order-root .so-context-editor-host .so-inline-editor [data-order-pane],#new-order-root .so-context-editor-host .so-inline-editor .so-pane-body{height:auto;overflow:visible;}
#new-order-root .so-context-editor-host .so-inline-editor .so-preview{height:380px;max-height:none;position:sticky;top:0;}
#new-order-root .so-context-editor-host .so-inline-editor .so-editor-heading,#new-order-root .so-context-editor-host .so-inline-editor .so-editor-name,#new-order-root .so-context-editor-host .so-inline-editor .so-editor-footer{padding:10px 0;}
#new-order-root .so-context-editor-host .so-inline-editor .so-inline-steps{padding:8px 0;gap:6px;}
#new-order-root .so-context-editor-host .so-inline-editor .so-stage-actions{display:none;}
#new-order-root .so-context-editor-host .so-inline-editor .so-editor-footer{flex-wrap:wrap;}
#new-order-root .so-context-editor-host .so-inline-editor .so-editor-footer>p{flex-basis:100%;}
#new-order-root .so-context-editor-host.so-room-fronts .so-inline-editor .so-workspace{grid-template-columns:1fr;}
#new-order-root .so-context-editor-host.so-room-fronts .so-inline-editor .so-preview{position:relative;height:260px;}
@media(max-width:700px){#new-order-root .so-context-editor-host .so-inline-editor .so-workspace{grid-template-columns:1fr;}#new-order-root .so-context-editor-host .so-inline-editor .so-preview{position:relative;height:260px;}}

/* A single room canvas; the contextual inspector contains controls only. */
#new-order-root .so-dashboard>[data-selected-cabinet].so-context-editor-host{width:min(350px,calc(100% - 24px));}
#new-order-root .so-context-editor-host .so-quick-cabinet,#new-order-root .so-context-editor-host .so-inline-editor .so-preview,#new-order-root .so-context-editor-host .so-inline-editor .so-editor-name{display:none!important;}
#new-order-root .so-context-editor-host .so-inline-editor .so-workspace{display:block;min-height:0;height:auto;}
#new-order-root .so-context-editor-host .so-inline-editor .so-editor-content{padding:8px 0;}
#new-order-root .so-context-editor-host .so-inline-editor .so-pane-body{padding:12px;}
#new-order-root .so-context-editor-host .so-inline-editor .so-inline-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px 0;}
#new-order-root .so-context-editor-host .so-inline-editor .so-pane-header{width:100%;min-width:0;white-space:normal;justify-content:flex-start;}
#new-order-root .so-context-editor-host .so-inline-editor .so-fields,#new-order-root .so-context-editor-host .so-inline-editor .so-fitting-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#new-order-root .so-context-editor-host .so-inline-editor .so-partition-config{display:grid;grid-template-columns:1fr;gap:10px;}
#new-order-root .so-context-editor-host .so-inline-editor .so-control-group{min-width:0;margin:0 0 10px;padding:0;}
#new-order-root .so-context-editor-host .so-inline-editor :is(.so-partition-orientations,.so-partition-placement,.so-partition-references,.so-fitting-actions){display:flex;flex-wrap:wrap;gap:6px;}
#new-order-root .so-context-editor-host .so-inline-editor :is(.so-partition-orientations,.so-partition-placement,.so-partition-references)>button{flex:1;min-width:85px;}
#new-order-root .so-context-editor-host .so-inline-editor .so-partition-position{display:grid;grid-template-columns:1fr;gap:8px;}
#new-order-root .so-context-editor-host .so-inline-editor .so-editor-footer{gap:8px;border-top:1px solid #e5e9ed!important;}
#new-order-root .so-context-editor-host .so-inline-editor .so-editor-footer>button{flex:1;min-width:90px;white-space:normal;}

/* Front design starts from the cabinet type, with a model gallery on the stage. */
#new-order-root .so-dashboard>.so-front-model-gallery{position:absolute;left:12px;width:300px;max-width:calc(100% - 24px);max-height:calc(100% - 160px);overflow:auto;z-index:15;padding:14px!important;margin:0;background:#fff;border:1px solid #e5e9ed!important;border-radius:7px!important;box-shadow:0 6px 24px #24344818!important;box-sizing:border-box;}
#new-order-root .so-front-model-gallery[hidden]{display:none!important;}
#new-order-root .so-front-model-gallery>strong{font-size:13px;}
#new-order-root .so-front-model-gallery .so-fitting-note{margin:5px 0 12px;line-height:1.6;}
.so-front-model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
#new-order-root .so-front-model-card{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;min-height:132px;padding:10px 8px;background:#faf9f7;color:#7c7062;border:1px solid #e5e9ed!important;border-radius:6px!important;white-space:normal;}
#new-order-root .so-front-model-card[aria-pressed=true]{background:#f2e7d8;color:#946d3b;border-color:#b58a53!important;}
.so-front-model-card svg{height:78px;width:66px;fill:#faf9f7;stroke:currentColor;stroke-width:1.3;}
.so-front-model-card span{font-size:11px;line-height:1.5;}
#new-order-root .so-front-model-gallery [data-front-model-feedback]{font-size:12px;line-height:1.6;color:#a45d24;margin:10px 0 0;}

/* The shared loader must not move the floating model gallery into page flow. */
#new-order-root .so-dashboard>.so-front-model-gallery{bottom:14px;max-height:none;overscroll-behavior:contain;scrollbar-gutter:stable;}
#new-order-root .so-dashboard>.so-front-model-gallery.cutplus-is-loading{position:absolute!important;}

/* Partition direction controls share the application's filled choice buttons. */
#new-order-root .so-inline-editor .so-partition-orientations{gap:6px;}
#new-order-root .so-inline-editor .so-partition-orientations button{flex:1;min-height:36px;padding:8px 12px;background:#f6f4f1;color:#66594b;border-radius:6px!important;}
#new-order-root .so-inline-editor .so-partition-orientations button:hover{background:#eee6dc;}
#new-order-root .so-inline-editor .so-partition-orientations button[aria-pressed=true]{background:#f2e7d8;color:#946d3b;}

/* All placement/reference choices use the same filled button treatment. */
#new-order-root .so-inline-editor :is(.so-partition-placement,.so-partition-references,.so-shelf-modes,.so-shelf-references,.so-cell-action-grid){gap:6px;}
#new-order-root .so-inline-editor :is(.so-partition-placement,.so-partition-references,.so-shelf-modes,.so-shelf-references,.so-cell-action-grid) button{flex:1;min-height:36px;padding:8px 12px;background:#f6f4f1;color:#66594b;border-radius:6px!important;}
#new-order-root .so-inline-editor :is(.so-partition-placement,.so-partition-references,.so-shelf-modes,.so-shelf-references,.so-cell-action-grid) button:hover:not(:disabled){background:#eee6dc;}
#new-order-root .so-inline-editor :is(.so-partition-placement,.so-partition-references,.so-shelf-modes,.so-shelf-references,.so-cell-action-grid) button[aria-pressed=true]{background:#f2e7d8;color:#946d3b;}
#new-order-root .so-cell-context{padding:12px 0;display:grid;gap:9px;border-top:1px solid #e5e9ed;}
#new-order-root .so-cell-context[hidden]{display:none!important;}
#new-order-root .so-cell-context label{display:grid;gap:7px;}
#new-order-root .so-cell-context select{width:100%;min-width:0;}
#new-order-root .so-cell-context p{margin:0;font-size:11px;line-height:1.6;color:#8a909a;}
#new-order-root .so-cell-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
#new-order-root .so-cell-action-grid [data-cell-action=dimensions]{grid-column:1/-1;}
#new-order-root .so-context-cabinet-edit .so-inline-editor .so-inline-steps{display:none;}

#new-order-root .so-interior-piece{display:grid;gap:10px;padding:12px 0;}
#new-order-root .so-interior-piece[hidden]{display:none!important;}
#new-order-root .so-interior-piece strong{font-size:13px;font-weight:500;}
#new-order-root .so-interior-piece label{display:grid;gap:7px;}
#new-order-root .so-interior-piece input{width:100%;box-sizing:border-box;}
#new-order-root .so-interior-piece p{margin:0;color:#a05238;font-size:11px;line-height:1.6;}
#new-order-root .so-piece-editing .so-editor-content,#new-order-root .so-piece-editing .so-cell-action-grid{display:none!important;}

.so-space-diagram.is-3d>.so-region-dimensions{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden;z-index:2;}
.so-region-dimensions line{stroke:#9b743e;stroke-width:1;}
.so-region-dimensions rect{fill:#fffefbee;stroke:none;}
.so-region-dimensions text{fill:#9b743e;stroke:none;font:12px Arial,sans-serif;}

#new-order-root .so-interior-piece.is-snapped [data-piece-feedback]{color:#9b743e;}
#new-order-root .so-interior-piece.is-snapped input{outline:1px solid #b58a53;outline-offset:0;}

.so-region-dimensions .so-interior-snap-guide{stroke:#a77a45;stroke-width:1.5;}
.so-region-dimensions .so-interior-snap-label{fill:#fffaf2;stroke:#a77a45;stroke-width:1;}

#new-order-root [data-kit-cart]{position:relative;min-height:44px;display:grid;gap:10px;padding-top:10px}
#new-order-root [data-kit-confirm]{display:flex;align-items:flex-start;gap:8px}
#new-order-root [data-kit-confirm] input{width:16px;min-height:16px;flex:0 0 16px;padding:0;margin:2px 0}
#new-order-root .so-flow-save>button{min-height:38px;border-radius:6px;padding:9px 12px}

.so-trial-pricing{font-size:12px;border-top:1px solid #dfe3e9;padding:12px;margin-top:10px;max-width:100%;color:#8493a5}.so-trial-pricing summary{color:#a77946;cursor:pointer}.so-trial-table>div{padding:8px 0;border-bottom:1px solid #dfe3e9;display:grid;grid-template-columns:1fr auto;gap:6px}.so-trial-table small{grid-column:1/-1}.so-trial-pricing>small{display:block;line-height:1.6;margin:5px 0}.so-flow-progress>button:not([data-flow-step]){font-size:11px;flex:0 0 auto;border:1px solid #dfe3e9;border-radius:6px;padding:6px;background:#f4f0e9;color:#a77946}

.so-fields input[type=checkbox]{width:16px;height:16px;min-height:0;accent-color:#a77946}

#new-order-root [data-order-review]{margin:12px 0;padding:12px 0;border-top:1px solid #d9dfe6;border-bottom:1px solid #d9dfe6}#new-order-root .so-order-review-row{display:grid;gap:5px;padding:10px 0;border-bottom:1px solid #e6e9ed}#new-order-root .so-order-review-row:last-child{border-bottom:0}#new-order-root .so-order-review-row small{color:#8995a4}#new-order-root [data-front-order-options]{border-top:1px solid #d9dfe6;padding-top:12px;margin-top:12px}#new-order-root [data-front-order-options]>p{grid-column:1/-1}


/* Commercial summary in the shared Production planner. */
#new-order-root .so-summary.so-carpenter-summary{display:block;overflow:visible}
#new-order-root .so-carpenter-summary>.so-quantity-summary,#new-order-root .so-carpenter-summary>.so-price-summary{display:none}
#new-order-root .so-live-prices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) minmax(0,1.3fr);gap:6px;direction:rtl}
#new-order-root .so-live-prices .so-card{overflow:visible;min-width:0}
#new-order-root .so-live-prices .so-card>summary{display:grid;gap:2px;cursor:pointer;list-style:none}
#new-order-root .so-live-prices .so-card>summary::-webkit-details-marker{display:none}
#new-order-root .so-live-prices [data-sale-group=total]{--summary-accent:#c18b30;--summary-tint:#f4d38e}
#new-order-root .so-live-prices [data-sale-group=total]>summary strong{font-size:1.15em}
@media(max-width:850px){#new-order-root .so-live-prices{grid-template-columns:repeat(4,minmax(0,1fr))}#new-order-root .so-dashboard:has(.so-carpenter-summary){grid-template-rows:54px auto minmax(0,1fr) auto}}

body:has(.app-sidebar) #new-order-root>.so-dashboard:has(.so-carpenter-summary){grid-template-rows:60px auto minmax(0,1fr) auto}
#new-order-root .so-dashboard>.so-space-summary:has(.so-carpenter-summary){overflow:visible;position:relative;z-index:20}

#new-order-root .so-dashboard>[data-selected-cabinet]{width:220px;z-index:25;animation:none}
#new-order-root [data-selected-cabinet] .so-quick-cabinet{gap:6px}
#new-order-root [data-selected-cabinet] .so-quick-dimensions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#new-order-root [data-selected-cabinet] .so-quick-dimensions input{width:100%;min-width:0;box-sizing:border-box}
#new-order-root [data-selected-cabinet] [data-cabinet-price],
#new-order-root [data-selected-cabinet] label:has(>select[data-quick-type]){display:none}
@media(max-width:600px){#new-order-root .so-dashboard>[data-selected-cabinet]{width:200px;padding:8px!important}}

#new-order-root .so-dashboard>[data-selected-cabinet]{left:12px!important;top:var(--so-quick-panel-top,150px)!important;animation:so-quick-dimensions-in 200ms ease-out both}
#new-order-root [data-selected-cabinet] .so-quick-cabinet>:not(.so-quick-dimensions):not([data-quick-feedback]):not([data-quick-apply]){display:none}
 #new-order-root [data-selected-cabinet] .so-quick-cabinet>[data-quick-apply]{display:block;width:100%}

#new-order-root [data-selected-cabinet] [data-quick-feedback]:empty{display:none}
@keyframes so-quick-dimensions-in{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){#new-order-root .so-dashboard>[data-selected-cabinet]{animation:none}}

#new-order-root [data-quick-top-front]{min-width:0}
#new-order-root .so-quick-dimensions>label:has([data-quick-top-front]):not([hidden]){grid-column:1/-1}


#new-order-root [data-selected-cabinet] .so-quick-cabinet>[data-cutlery-options]:not([hidden]){display:grid;gap:5px}
#new-order-root [data-cutlery-options] input[type=checkbox]{width:auto}

body:has(.app-sidebar) #new-order-root>.so-dashboard.so-front-design,#new-order-root>.so-dashboard.so-front-design{direction:rtl;grid-template-columns:minmax(145px,240px) minmax(0,1fr) minmax(105px,220px)}
#new-order-root .so-front-design>.so-front-model-gallery{position:relative;grid-column:3;grid-row:1/5;inset:auto;width:auto;max-width:none;min-height:0;max-height:100%;z-index:1;overflow:auto}
#new-order-root .so-front-design [data-front-order-options]{display:grid;gap:8px}
#new-order-root .so-front-design [data-front-order-options]>label{display:grid;gap:4px}
#new-order-root .so-front-design [data-front-order-options] select,#new-order-root .so-front-design [data-front-order-options] input{min-width:0;width:100%}
@media(max-width:800px){body:has(.app-sidebar) #new-order-root>.so-dashboard.so-front-design,#new-order-root>.so-dashboard.so-front-design{grid-template-columns:minmax(90px,24%) minmax(0,1fr) minmax(68px,20%)}#new-order-root .so-front-design .so-front-model-grid{grid-template-columns:1fr}#new-order-root .so-front-design>.so-front-model-gallery{padding:6px!important}}

#new-order-root .so-front-design .so-planning-tools .so-view-dock{border-bottom:0}
#new-order-root .so-front-design .so-room-front-heading{border:0;padding:0 0 10px}
#new-order-root .so-front-design [data-front-order-options]{gap:12px;padding:2px 0 14px;text-align:start}
#new-order-root .so-front-design [data-front-order-options]>label{font-weight:600;gap:5px}
#new-order-root .so-front-design [data-front-order-options] :is(select,input){box-sizing:border-box;min-height:36px;padding:7px 9px;border:1px solid #d6dce3;border-radius:7px;background:#fff;color:#26384b;font:inherit;text-align:start}
#new-order-root .so-front-design .so-flow-footer{padding:10px 0;background:#f2f3f5;box-shadow:0 -5px 8px #f2f3f5;z-index:14}
#new-order-root .so-front-design .so-body-only-secondary{width:100%;margin-top:5px;background:transparent;color:#526174;border:0;box-shadow:none;font-size:11px}
#new-order-root .so-front-finish-swatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(42px,1fr));gap:5px;margin-top:6px}
#new-order-root .so-front-finish-swatches button{display:grid;gap:3px;justify-items:center;padding:4px;border-radius:6px;background:#fff}
#new-order-root .so-front-finish-swatches button[aria-pressed=true]{outline:2px solid #ac8756}
#new-order-root .so-front-finish-swatches button>span{display:block;width:100%;height:24px;border:1px solid #a0a6af;border-radius:4px}

#new-order-root .so-sale-card-content{display:grid;gap:2px}
