/* AIVELI DESIGN STUDIO | standalone preview, no scene mutation before confirmation */
body.aiveli-studio-open{overflow:hidden!important}
.aiveli-studio,.aiveli-studio *{box-sizing:border-box}
.aiveli-studio{
  position:fixed;inset:0;z-index:2147482010;display:grid;place-items:center;
  font-family:Inter,"Helvetica Neue",Arial,sans-serif;color:#243447;
}
.acs-backdrop{position:absolute;inset:0;background:rgba(17,30,47,.62);backdrop-filter:blur(15px)}
.acs-window{position:relative;display:flex;flex-direction:column;width:min(1200px,calc(100vw - 36px));max-height:min(860px,calc(100dvh - 32px));min-height:0;overflow:hidden;
border:1px solid rgba(230,236,241,.95);border-radius:24px;background:#fafbfd;
box-shadow:0 35px 110px #06132666,0 8px 28px #13223b20}
.acs-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 28px 14px;flex-shrink:0}
.acs-head small{display:block;color:#8899a9;font-weight:650;letter-spacing:.17em;font-size:10px;margin-bottom:7px}
.acs-head h2{font-size:clamp(20px,2vw,28px);line-height:1.1;letter-spacing:-.055em;margin:0;color:#192b3d;font-weight:570}
.acs-close{flex-shrink:0;border:1px solid #e1e8ed;background:white;width:40px;height:40px;border-radius:50%;font-size:23px;color:#50657a;transition:background .22s,transform .24s}
.acs-close:hover{background:#e9f0f6;transform:rotate(90deg)}
.acs-mode{display:flex;margin:0 28px 15px;align-self:flex-start;padding:4px;background:#eaf0f5;border-radius:13px;gap:3px}
.acs-mode button{font-size:13px;border:0;background:transparent;color:#667b8e;font-weight:560;padding:10px 30px;border-radius:10px}
.acs-mode button.selected{background:white;color:#223a52;box-shadow:0 2px 8px #12243a12}
.acs-layout{display:grid;grid-template-columns:minmax(300px,40%) minmax(0,1fr);gap:18px;min-height:0;flex:1;overflow:hidden;padding:0 18px 18px 28px}
.acs-settings{min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 12px 20px 0;scrollbar-width:thin;scrollbar-color:#c2d2df transparent}
.acs-hint{font-size:12px;color:#7b8d9e;line-height:1.65;margin:3px 2px 17px}
.acs-section{border:1px solid #e7edf3;border-radius:16px;padding:16px 16px 10px;margin-bottom:11px;background:white}
.acs-section>b{display:block;color:#2b4053;font-size:13px;letter-spacing:-.015em;margin-bottom:14px;font-weight:610}
.acs-num{display:flex;align-items:center;justify-content:space-between;min-width:0;gap:12px;padding:8px 0;border-top:1px solid #f1f4f6}
.acs-num>span{color:#536779;font-size:12px;max-width:54%;line-height:1.4}
.acs-num>div{display:flex;align-items:center;gap:5px;max-width:48%}
.acs-num input,.acs-num select,.acs-num>select{width:80px;max-width:100%;height:35px;background:#f6f9fc;border:1px solid #dde7ef;border-radius:9px;text-align:center;color:#24384b;padding:5px 8px;font:550 12px Inter,Arial,sans-serif}
.acs-num select,.acs-num>select{width:auto;max-width:49%;min-width:110px;text-align:left;font-weight:500}
.acs-num small{color:#90a0ad;font-size:10px}
.acs-check{display:flex;align-items:center;gap:10px;margin:11px 0;font-size:12px;color:#4d6377}
.acs-check input{accent-color:#375f83;width:16px;height:16px}
.acs-shapes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:14px}
.acs-shapes button{border:1px solid #dfe8ef;background:#fff;color:#597083;font-size:12px;border-radius:12px;padding:12px 8px;transition:all .18s}
.acs-shapes button.active{background:#e8eff6;color:#254b6e;border-color:#9cb6ca}
.acs-shapes button:hover{border-color:#8eaec8}
.acs-preview{display:flex;flex-direction:column;min-height:0;min-width:0;border-radius:18px;background:radial-gradient(ellipse at 80% 16%,#f2f6f8,#e8eef2 70%,#e4ebef);border:1px solid #e1e9ef;overflow:hidden;padding:20px}
.acs-preview-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.acs-preview-top b{font-size:13px;color:#34495c;font-weight:580}
.acs-preview-top span{font-size:10px;color:#8598a8}
.acs-plan{flex:1;display:grid;place-items:center;min-height:140px;overflow:hidden}
.acs-plan-svg{height:100%;max-height:470px;width:100%;min-width:0;touch-action:none}
.acs-plan-svg text{font:13px Inter,Arial,sans-serif;fill:#50697c}
.acs-drag-handle{cursor:ns-resize;touch-action:none;transition:r .12s ease}
.acs-drag-handle:hover{r:16}
.acs-dimensions{padding:12px 0;border-top:1px solid #d6e1e9;font-size:12px;color:#3c5368;text-align:center;line-height:1.7}
.acs-note{text-align:center;font-size:10px;color:#8d9eab;margin:4px 0 2px;line-height:1.5}
.acs-footer{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:14px 26px;background:white;border-top:1px solid #e8edf2;flex-shrink:0}
.acs-footer>span{font-size:11px;color:#96a2ad;flex:1;text-align:right}
.acs-cancel{border:1px solid #e0e7ed;background:#fff;color:#697b8b;border-radius:12px;padding:12px 20px;font-size:12px}
.acs-place{background:linear-gradient(135deg,#2d4963,#1e344b);border:0;color:white;padding:13px 22px;border-radius:12px;font-size:12px;white-space:nowrap;box-shadow:0 7px 20px #1d38502a;transition:transform .2s,background .2s}
.acs-place:hover{transform:translateY(-1px);background:#355879}
.acs-place:disabled{opacity:.55;cursor:wait}
@media(max-width:880px){
 .acs-window{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:18px}
 .acs-head{padding:17px 19px 10px}
 .acs-mode{margin:0 19px 12px}
 .acs-layout{padding:0 12px 14px 19px;gap:12px;grid-template-columns:minmax(220px,45%) minmax(0,1fr)}
 .acs-preview{padding:12px}
 .acs-footer{padding:10px 14px;gap:8px}
 .acs-footer>span{display:none}
}
@media(max-width:650px){
 .aiveli-studio{place-items:stretch}
 .acs-window{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}
 .acs-head{padding:calc(12px + env(safe-area-inset-top,0px)) 16px 9px}
 .acs-head h2{font-size:23px}
 .acs-mode{margin:0 16px 12px;align-self:stretch}
 .acs-mode button{flex:1;padding:10px}
 .acs-layout{display:flex;flex-direction:column;padding:0 13px 10px;gap:10px;overflow-y:auto;overflow-x:hidden}
 .acs-settings{order:2;overflow:visible;flex-shrink:0;padding:0;max-height:none}
 .acs-preview{order:1;flex:0 0 auto;min-height:0;padding:10px 12px}
 .acs-plan{height:clamp(165px,31vh,230px);flex:0 0 auto}
 .acs-plan-svg{height:100%;max-height:230px}
 .acs-note{display:none}
 .acs-dimensions{font-size:11px;padding:7px 0}
 .acs-section{padding:12px}
 .acs-hint{font-size:11px;margin:0 2px 10px}
 .acs-shapes{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .acs-shapes button{font-size:10px;padding:8px 4px}
 .acs-footer{padding:10px 13px calc(10px + env(safe-area-inset-bottom,0px));justify-content:space-between}
 .acs-place{padding:12px 17px}
}
@media(max-width:390px){.acs-plan{height:150px}.acs-num>span{font-size:11px}.acs-section{margin-bottom:8px}.acs-preview-top span{display:none}}
@media(prefers-reduced-motion:reduce){.aiveli-studio *{transition:none!important}}

/* Kitchen engineering drawings · high-density details and editable equipment */
.acs-view-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding:3px;background:rgba(216,226,235,.85);border:1px solid #d4e0e8;border-radius:10px}
.acs-view-tabs button{background:transparent;color:#748798;border:0;border-radius:8px;padding:7px 11px;font:560 11px Inter,Arial,sans-serif;white-space:nowrap;transition:background .2s,color .2s}
.acs-view-tabs button.active{background:#fff;color:#274662;box-shadow:0 1px 5px #25364717}
.acs-view-tabs button:hover{color:#214863}
.acs-plan-svg{min-width:0;touch-action:none;overflow:visible}
.acs-plan-svg .acs-appliance{cursor:grab;transform-origin:center}
.acs-plan-svg .acs-appliance:hover rect:first-child{stroke:#245b80;stroke-width:3}
.acs-plan-svg .acs-drag-handle{cursor:grab;touch-action:none;transition:fill .2s ease}
.acs-plan-svg .acs-drag-handle:hover{fill:#163f65}
.acs-plan-svg text{font-family:Inter,"Helvetica Neue",Arial,sans-serif;fill:#48637a;font-size:11px;pointer-events:none}
.acs-elevation text{font-size:10px}
.acs-warnings{flex-shrink:0;max-height:112px;overflow:auto;font:11px/1.5 Inter,"Helvetica Neue",Arial,sans-serif}
.acs-warnings p{margin:5px 0 0;padding:7px 9px;border-radius:9px}
.acs-issue-block{background:#fff0ea;color:#9b4930;border:1px solid #f0c7b9}
.acs-issue-note{background:#f6f1e8;color:#816445;border:1px solid #e9ddc9}
.acs-issue-ok{background:#eaf3ef;color:#587a69;border:1px solid #d2e8dc}
.acs-num input[type=number]:focus,.acs-num select:focus{outline:2px solid #a4c1d6;outline-offset:1px}
.acs-plan .acs-appliance:focus-visible{outline:none;filter:drop-shadow(0 0 4px #386a8e)}
@media(max-width:920px){.acs-preview-top{align-items:flex-start}.acs-view-tabs{width:auto}.acs-view-tabs button{font-size:10px;padding:6px 9px}}
@media(max-width:650px){
 .acs-preview-top{gap:5px;flex-wrap:wrap}
 .acs-view-tabs button{font-size:10px}
 .acs-warnings{max-height:70px;font-size:10px}
 .acs-warnings p{padding:5px 7px}
 .acs-num{min-height:41px}
 .acs-num>span{max-width:49%;font-size:12px}
 .acs-num>div{max-width:51%}
 .acs-num input[type=number]{font-size:13px;min-width:64px}
}
@media(max-width:380px){.acs-view-tabs button{padding:5px 8px}.acs-preview-top b{font-size:11px}.acs-warnings{max-height:57px}}

/* AIVELI modular kitchen refinement · connected corners & orthographic views */
.acs-plan-v2 .acs-appliance{cursor:grab;outline:none}
.acs-plan-v2 .acs-appliance:active{cursor:grabbing}
.acs-plan-v2 .acs-appliance:hover>rect:first-child{stroke:#28668a;stroke-width:2.7}
.acs-plan-v2 .acs-drag-handle,.acs-elevation-v2 .acs-drag-handle{cursor:grab;pointer-events:all}
.acs-plan-v2 .acs-drag-handle:hover,.acs-elevation-v2 .acs-drag-handle:hover{filter:drop-shadow(0 1px 4px #376f9670)}
.acs-elevation-v2 text{font-family:Inter,'Helvetica Neue',Arial,sans-serif;letter-spacing:0}
.acs-preview-top{min-width:0}
.acs-preview-top b{color:#25384b}
.acs-preview .acs-dimensions{min-height:34px}
.acs-num>select{width:min(49%,178px)!important;max-width:50%!important;text-overflow:ellipsis;white-space:nowrap}
.acs-settings{scrollbar-gutter:stable}
.acs-num input[type=number]{min-width:0;width:85px;max-width:90px}
@media(max-width:920px){.acs-num>span{max-width:48%}.acs-num>select{max-width:50%!important}}
@media(max-width:650px){
 .acs-view-tabs{margin-top:4px}
 .acs-preview{min-width:0;overflow:hidden}
 .acs-plan{touch-action:none}
 .acs-plan-v2,.acs-elevation-v2{min-width:0;width:100%;height:100%}
 .acs-num>span{font-size:11px;max-width:51%}
 .acs-num>select{min-width:100px;max-width:46%!important;font-size:11px}
}
