/* AIVELI Planner 2D v2 — all controls occupy dedicated layout areas;
   the document is NEVER positioned underneath buttons or navigation. */
#aiveli-plan-sheet{
 --aps-topbar:66px;
 --aps-ink:#294354;
 --aps-line:#d8e2e8;
 position:absolute;inset:0;z-index:9;
 display:flex;flex-direction:column;
 padding-top:var(--aps-topbar);
 background:#f8fafb;color:var(--aps-ink);
 overflow:hidden;min-width:0;min-height:0;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
#aiveli-plan-sheet[hidden]{display:none!important}
#aiveli-plan-sheet button,#aiveli-plan-sheet input{
 font-family:inherit;-webkit-tap-highlight-color:transparent;
}
#aiveli-plan-sheet button{cursor:pointer}
#aiveli-plan-sheet button:focus-visible,#aiveli-plan-sheet input:focus-visible{
 outline:2px solid #37799c;outline-offset:2px;
}
#aiveli-plan-sheet .aps-info-bar{
 flex:0 0 auto;min-width:0;
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:11px clamp(12px,2vw,24px);
 border-bottom:1px solid #dce5ea;
 background:#fbfcfd;box-shadow:0 4px 18px #192e3a08;z-index:2;
}
#aiveli-plan-sheet .aps-title{display:flex;flex-direction:column;gap:3px;min-width:0}
#aiveli-plan-sheet .aps-title strong{font-size:clamp(13px,1.15vw,16px);letter-spacing:-.025em;font-weight:650;line-height:1.3;white-space:nowrap}
#aiveli-plan-sheet .aps-title span{color:#82949e;font-size:11px;white-space:nowrap}
#aiveli-plan-sheet .aps-dims{
 display:flex;align-items:end;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0;
}
#aiveli-plan-sheet .aps-dims label{
 display:flex;align-items:center;gap:7px;color:#718590;font-size:11px;white-space:nowrap;
}
#aiveli-plan-sheet .aps-dims input{
 appearance:textfield;-moz-appearance:textfield;
 background:#fff;color:#344e5d;border:1px solid #d9e3e8;border-radius:7px;
 height:34px;width:72px;padding:5px 8px;font-size:13px;font-variant-numeric:tabular-nums;
}
#aiveli-plan-sheet .aps-dims input::-webkit-inner-spin-button{appearance:none}
#aiveli-plan-sheet .aps-dims .aps-apply{
 border:0;border-radius:7px;height:34px;padding:0 13px;
 font-size:11px;font-weight:600;color:#fff;background:#36596c;
}
#aiveli-plan-sheet .aps-board{
 position:relative;flex:1 1 auto;min-height:105px;min-width:0;
 overflow:hidden;background:#fff;
}
#aiveli-plan-sheet .aps-svg{
 display:block;width:100%;height:100%;
 cursor:crosshair;touch-action:none;user-select:none;-webkit-user-select:none;
}
#aiveli-plan-sheet .aps-floor{fill:#fcfdfe;fill-opacity:.45;stroke:none}
#aiveli-plan-sheet .aps-grid-minor{fill:none;stroke:#d9e4eb;stroke-width:.009}
#aiveli-plan-sheet .aps-grid-major{fill:none;stroke:#c4d3dd;stroke-width:.012}
#aiveli-plan-sheet .aps-wall{
 stroke:#29424d;stroke-width:.16;fill:none;stroke-linecap:square;
}
#aiveli-plan-sheet .aps-edge{
 stroke:#9daeb9;stroke-dasharray:.12 .08;stroke-width:.07;fill:none;
}
#aiveli-plan-sheet .aps-wall-hit{
 stroke:transparent;stroke-width:.34;fill:none;pointer-events:stroke;cursor:pointer;
}
#aiveli-plan-sheet .aps-highlight{stroke:#2a89b3;stroke-width:.2}
#aiveli-plan-sheet .aps-dim-line{stroke:#7292a2;stroke-width:.014;fill:none}
#aiveli-plan-sheet .aps-dim-text{
 font-size:.16px;fill:#35596d;letter-spacing:.025em;font-weight:600;
}
#aiveli-plan-sheet .aps-window-frame{
 stroke:#fdfefe;stroke-width:.12;fill:none;stroke-linecap:butt;
}
#aiveli-plan-sheet .aps-window-glass{stroke:#348db1;stroke-width:.026;fill:none}
#aiveli-plan-sheet .aps-opening-dot{fill:#edf7fb;stroke:#348db1;stroke-width:.018}
#aiveli-plan-sheet .aps-door-leaf{stroke:#34687e;stroke-width:.055;fill:none}
#aiveli-plan-sheet .aps-door-arc{stroke:#86a4b3;stroke-width:.018;stroke-dasharray:.06 .045;fill:none}
#aiveli-plan-sheet .aps-hinge{fill:#fff;stroke:#345d72;stroke-width:.024}
#aiveli-plan-sheet .aps-opening{cursor:pointer;pointer-events:stroke}
#aiveli-plan-sheet .aps-opening-hit{stroke:transparent;stroke-width:.34;fill:none;pointer-events:stroke;cursor:pointer}
#aiveli-plan-sheet .aps-opening.aps-picked .aps-door-leaf,
#aiveli-plan-sheet .aps-opening.aps-picked .aps-window-glass{stroke:#db8257;stroke-width:.06}
#aiveli-plan-sheet .aps-item{cursor:grab;touch-action:none}
#aiveli-plan-sheet .aps-item:active{cursor:grabbing}
#aiveli-plan-sheet .aps-item rect{stroke-width:.021}
#aiveli-plan-sheet .aps-item rect.aps-f-sofa-base{fill:#d5dce0;stroke:#546d7c}
#aiveli-plan-sheet .aps-item .aps-f-sofa-arm{fill:#b9c9d1;stroke:#657c88}
#aiveli-plan-sheet .aps-item .aps-f-sofa-back{fill:#bbcbd4;stroke:#577583}
#aiveli-plan-sheet .aps-item .aps-f-sofa-cushion{fill:#e7edf0;stroke:#708c9a}
#aiveli-plan-sheet .aps-item .aps-f-chair{fill:#c7d5db;stroke:#58727e}
#aiveli-plan-sheet .aps-item .aps-f-chair-seat{fill:#eef2f3;stroke:#76929f}
#aiveli-plan-sheet .aps-item .aps-f-chair-back{fill:#aabdc8;stroke:#69828e}
#aiveli-plan-sheet .aps-item .aps-f-table{fill:#c4b6a5;stroke:#8e7c6b}
#aiveli-plan-sheet .aps-item .aps-f-table-inner{fill:#ecdfcd;stroke:#b5a18c}
#aiveli-plan-sheet .aps-item .aps-f-table-leg{fill:#927d66;stroke:none}
#aiveli-plan-sheet .aps-item .aps-f-bed{fill:#dedde0;stroke:#7c7a86}
#aiveli-plan-sheet .aps-item .aps-f-bed-head{fill:#afb1bb;stroke:#727582}
#aiveli-plan-sheet .aps-item .aps-f-bed-cover{fill:#f2f0ef;stroke:#a8a6ae}
#aiveli-plan-sheet .aps-item .aps-f-bed-pillow{fill:#fff;stroke:#b6bbc0}
#aiveli-plan-sheet .aps-f-bed-fold{stroke:#b3b5be;stroke-width:.017;fill:none}
#aiveli-plan-sheet .aps-item .aps-f-cabinet{fill:#c4baa9;stroke:#817a6d}
#aiveli-plan-sheet .aps-f-cabinet-seam{stroke:#847c70;stroke-width:.02;fill:none}
#aiveli-plan-sheet .aps-f-cabinet-handle{stroke:#444b51;stroke-width:.028;fill:none}
#aiveli-plan-sheet .aps-item.aps-picked rect:first-child{
 stroke:#2583b1;stroke-width:.05;filter:drop-shadow(0 0 .035px #77bed9);
}
#aiveli-plan-sheet .aps-preview{
 stroke:#2a91b9;stroke-width:.05;stroke-dasharray:.11 .075;fill:none;
}
#aiveli-plan-sheet .aps-start-point{fill:#258bb1;stroke:white;stroke-width:.04}
#aiveli-plan-sheet .aps-preview-label{
 font-size:.18px;fill:#227fa5;font-weight:650;
 paint-order:stroke;stroke:#fff;stroke-width:.07;
}
#aiveli-plan-sheet .aps-opening-preview{fill:#3ab0d4;fill-opacity:.21;stroke:#247f9b;stroke-width:.035}
#aiveli-plan-sheet .aps-zoom{
 position:absolute;right:clamp(10px,2vw,24px);top:50%;transform:translateY(-50%);
 display:flex;flex-direction:column;gap:3px;
 padding:5px;background:#fffffff2;border:1px solid #dce5ea;border-radius:10px;
 box-shadow:0 8px 25px #172b3a15;z-index:2;
}
#aiveli-plan-sheet .aps-zoom button{
 width:36px;height:35px;border:0;border-radius:7px;background:transparent;
 display:grid;place-items:center;color:#3d6174;font-size:22px;
}
#aiveli-plan-sheet .aps-zoom button:hover{background:#edf4f7}
#aiveli-plan-sheet .aps-stats{
 position:absolute;bottom:12px;left:14px;z-index:2;
 background:#ffffffed;border:1px solid #e5ebef;border-radius:7px;
 font-size:11px;font-weight:600;color:#446274;
 padding:7px 10px;pointer-events:none;font-variant-numeric:tabular-nums;
}
#aiveli-plan-sheet .aps-bottom{
 flex:0 0 auto;min-width:0;background:#fbfcfd;
 border-top:1px solid #dce5ea;
 padding:7px clamp(7px,1.25vw,16px) max(9px,env(safe-area-inset-bottom,0px));
 z-index:3;box-shadow:0 -10px 34px #233c4a0b;
}
#aiveli-plan-sheet .aps-message{
 font-size:11px;color:#6c8592;line-height:17px;text-align:center;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 padding:1px 5px 7px;min-height:24px;
}
#aiveli-plan-sheet .aps-selected{
 display:flex;align-items:center;justify-content:center;gap:9px;
 min-height:33px;margin-bottom:5px;font-size:11px;
}
#aiveli-plan-sheet .aps-selected[hidden]{display:none!important}
#aiveli-plan-sheet .aps-selected-name{font-weight:650;color:#2b5365}
#aiveli-plan-sheet .aps-selected button{
 border:1px solid #d9e3e8;color:#435e6b;background:#fff;border-radius:6px;
 padding:7px 10px;font-size:11px;min-height:31px;
}
#aiveli-plan-sheet .aps-selected button[data-choice="delete"]{color:#a84d42}
#aiveli-plan-sheet .aps-toolbar{
 display:flex;justify-content:center;gap:4px;
 overflow-x:auto;overflow-y:hidden;min-width:0;width:100%;
 padding:3px 2px 5px;scrollbar-width:thin;overscroll-behavior-inline:contain;
 -webkit-overflow-scrolling:touch;
}
#aiveli-plan-sheet .aps-toolbar button{
 border:1px solid transparent;border-radius:8px;flex:0 0 auto;
 background:transparent;color:#566e7b;
 display:flex;align-items:center;justify-content:center;gap:6px;
 padding:9px 10px;min-height:43px;font-size:11px;font-weight:550;white-space:nowrap;
}
#aiveli-plan-sheet .aps-toolbar button svg{flex:0 0 19px}
#aiveli-plan-sheet .aps-toolbar button.active{
 color:#fff;background:#345a6d;border-color:#345a6d;
 box-shadow:0 4px 9px #1c395226;
}
#aiveli-plan-sheet .aps-toolbar button:not(.active):hover{background:#edf3f6}
#aiveli-plan-sheet .aps-toolbar button.aps-undo{
 border-left:1px solid #e0e8ec;border-radius:0;padding-left:13px;margin-left:4px;
}
.aiveli-blueprint-mode .topbar{
 z-index:14!important;background:#fbfcfdf7!important;border-bottom:1px solid #dce5eb!important;
 box-shadow:0 4px 16px #243a490d!important;color:#2e4551!important;
}
.aiveli-blueprint-mode .project-btn,.aiveli-blueprint-mode .reset-btn,
.aiveli-blueprint-mode .scene-actions button{color:#2e4551!important}
.aiveli-blueprint-mode .modes{background:#e9eff2!important;border:1px solid #d8e3e7}
.aiveli-blueprint-mode .modes button{color:#536a77}
.aiveli-blueprint-mode .modes button.active{background:#fff;color:#244456}
.aiveli-blueprint-mode .scene-toolbar{display:none!important}
/* Planner and visualizer share the full editor: only hide its other panels in 2D. */
.shell.aiveli-plan-2d{grid-template-columns:minmax(0,1fr)!important}
.shell.aiveli-plan-2d>.rail,.shell.aiveli-plan-2d>.library,.shell.aiveli-plan-2d>.inspector{display:none!important}
.shell.aiveli-plan-2d>.viewport{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important}
html.aiveli-planner-entry .topbar{padding-inline:clamp(7px,1.5vw,18px)!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important}
/* Tablets: two rows max above canvas, bottom toolbar scrolls instead of overlapping. */
@media(max-width:1050px){
 #aiveli-plan-sheet .aps-toolbar{justify-content:flex-start}
 #aiveli-plan-sheet .aps-title span{display:none}
 #aiveli-plan-sheet .aps-info-bar{padding:8px 12px}
}
@media(max-width:650px){
 #aiveli-plan-sheet .aps-info-bar{gap:6px;padding:7px 9px;min-height:47px}
 #aiveli-plan-sheet .aps-title strong{font-size:12px}
 #aiveli-plan-sheet .aps-dims{gap:4px}
 #aiveli-plan-sheet .aps-dims label{font-size:0;gap:3px}
 #aiveli-plan-sheet .aps-dims label::before{content:'Ш';font-size:10px;font-weight:650;color:#6f8692}
 #aiveli-plan-sheet .aps-dims label:nth-child(2)::before{content:'Д'}
 #aiveli-plan-sheet .aps-dims input{height:32px;width:57px;font-size:12px;padding:4px 6px}
 #aiveli-plan-sheet .aps-dims .aps-apply{height:32px;padding:0 9px;font-size:10px}
 #aiveli-plan-sheet .aps-zoom{top:auto;bottom:13px;right:9px;transform:none;padding:3px}
 #aiveli-plan-sheet .aps-zoom button{height:30px;width:32px;font-size:19px}
 #aiveli-plan-sheet .aps-stats{bottom:8px;left:8px;font-size:10px}
 #aiveli-plan-sheet .aps-bottom{padding:5px 6px max(6px,env(safe-area-inset-bottom,0px))}
 #aiveli-plan-sheet .aps-toolbar button{min-height:43px;padding:9px 10px;font-size:11px}
 #aiveli-plan-sheet .aps-message{font-size:10px;min-height:19px;padding:0 4px 4px}
 html.aiveli-planner-entry .scene-actions{gap:3px!important}
 html.aiveli-planner-entry .project-history{gap:2px!important}
 html.aiveli-planner-entry .project-history .history-btn{height:33px!important;width:33px!important}
 html.aiveli-planner-entry .modes button{padding:8px 12px!important;min-width:41px}
}
@media(max-width:380px){
 #aiveli-plan-sheet .aps-title strong{font-size:11px}
 #aiveli-plan-sheet .aps-dims input{width:49px}
 #aiveli-plan-sheet .aps-dims .aps-apply{padding:0 6px}
 #aiveli-plan-sheet .aps-toolbar{gap:2px}
 #aiveli-plan-sheet .aps-toolbar button{padding:8px 9px}
 html.aiveli-planner-entry .project-history .history-btn{width:30px!important}
}
@media(max-height:570px){
 #aiveli-plan-sheet .aps-info-bar{padding-block:5px}
 #aiveli-plan-sheet .aps-toolbar button{min-height:36px;padding:6px}
 #aiveli-plan-sheet .aps-message{display:none}
 #aiveli-plan-sheet .aps-bottom{padding-block:3px}
}
@media(prefers-reduced-motion:reduce){
 #aiveli-plan-sheet *{scroll-behavior:auto!important;transition:none!important}
}

/* 2D Planner v3 — compact responsive property editor, no overlay on the drawing. */
#aiveli-plan-sheet .aps-properties{
 display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px 12px;
 padding:7px 9px;margin:0 0 5px;background:#f2f6f8;
 border:1px solid #e0e8ed;border-radius:9px;min-width:0;
}
#aiveli-plan-sheet .aps-properties[hidden]{display:none!important}
#aiveli-plan-sheet .aps-properties label{
 display:flex;align-items:center;gap:7px;white-space:nowrap;
 color:#4b6471;font-size:11px;font-weight:550;
}
#aiveli-plan-sheet .aps-properties input,
#aiveli-plan-sheet .aps-properties select{
 min-height:31px;height:31px;border:1px solid #cedbe2;border-radius:6px;
 padding:4px 7px;background:white;color:#2c4959;font-weight:600;font-size:12px;font-family:inherit;
 font-variant-numeric:tabular-nums;
}
#aiveli-plan-sheet .aps-properties input{width:66px}
#aiveli-plan-sheet .aps-properties select{max-width:168px;min-width:90px;font-size:11px}
#aiveli-plan-sheet .aps-property-note{font-size:11px;color:#758d99}
#aiveli-plan-sheet .aps-slide-leaf{
 stroke:#416e80;stroke-width:.06;stroke-linecap:round;fill:none
}
#aiveli-plan-sheet .aps-slide-arrow{
 stroke:#54879b;stroke-width:.027;stroke-linecap:round;fill:none
}
#aiveli-plan-sheet .aps-item ellipse{stroke-width:.021}
#aiveli-plan-sheet .aps-item ellipse.aps-f-table{fill:#c4b6a5;stroke:#8e7c6b}
#aiveli-plan-sheet .aps-item ellipse.aps-f-table-inner{fill:#ecdfcd;stroke:#b5a18c}
#aiveli-plan-sheet .aps-selected button[data-choice="align"]{
 background:#e9f4f8;border-color:#c8dfe9;color:#2e677e;font-weight:700
}
@media(max-width:650px){
 #aiveli-plan-sheet .aps-properties{
  flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;
  scrollbar-width:thin;overscroll-behavior-inline:contain;gap:10px;
  padding:6px 8px;margin-bottom:3px
 }
 #aiveli-plan-sheet .aps-properties label{gap:4px;font-size:10px}
 #aiveli-plan-sheet .aps-properties input{width:60px}
 #aiveli-plan-sheet .aps-properties select{max-width:134px}
 #aiveli-plan-sheet .aps-selected{min-height:29px;gap:5px}
 #aiveli-plan-sheet .aps-selected button{padding:6px 7px;min-height:29px;font-size:10px}
 #aiveli-plan-sheet .aps-selected-name{max-width:30vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media(max-height:570px){
 #aiveli-plan-sheet .aps-properties{padding-block:4px}
 #aiveli-plan-sheet .aps-properties input,#aiveli-plan-sheet .aps-properties select{min-height:27px;height:27px}
}

/* v3.1 — more furniture, categorized without overlaying the drawing. */
#aiveli-plan-sheet .aps-tool-filters{display:flex;justify-content:center;gap:6px;overflow-x:auto;padding:2px 4px 5px;scrollbar-width:thin;min-width:0;overscroll-behavior-inline:contain}
#aiveli-plan-sheet .aps-tool-filters button{flex:0 0 auto;min-height:27px;padding:5px 11px;border-radius:7px;border:1px solid #dbe6eb;background:#fff;color:#617983;font-size:11px;font-weight:600}
#aiveli-plan-sheet .aps-tool-filters button.active{background:#e8f2f7;border-color:#b8d2df;color:#24536c}
#aiveli-plan-sheet .aps-toolbar [hidden]{display:none!important}
#aiveli-plan-sheet .aps-item .aps-f-pouf{fill:#ded4cd;stroke:#8a7a77;stroke-width:.027}
#aiveli-plan-sheet .aps-item .aps-f-banquette{fill:#c8bac0;stroke:#7f7580;stroke-width:.027}
#aiveli-plan-sheet .aps-item .aps-f-stool{fill:#b9a28e;stroke:#836f60;stroke-width:.027}
@media(max-width:1050px){#aiveli-plan-sheet .aps-tool-filters{justify-content:flex-start}}
@media(max-width:650px){#aiveli-plan-sheet .aps-tool-filters{gap:4px}#aiveli-plan-sheet .aps-tool-filters button{padding:5px 9px;min-height:26px;font-size:10px}}

/* AIVELI Plan Sheet v4: vertical tool shelf plus large uninterrupted drawing. */
#aiveli-plan-sheet{display:grid;grid-template-columns:276px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:0;padding-top:var(--aps-topbar)}
#aiveli-plan-sheet .aps-info-bar{grid-column:1/-1;grid-row:1;padding-block:8px;min-height:53px}
#aiveli-plan-sheet .aps-board{grid-column:2;grid-row:2;min-height:0;min-width:0}
#aiveli-plan-sheet .aps-bottom{grid-column:1;grid-row:2;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;
 border-top:0;border-right:1px solid #dae4e9;background:#fafcfd;box-shadow:4px 0 20px #2943540a;padding:10px 10px 8px}
#aiveli-plan-sheet .aps-message{order:5;flex:0 0 auto;white-space:normal;text-align:left;font-size:10px;line-height:1.5;padding:9px 5px 3px;min-height:0;max-height:65px}
#aiveli-plan-sheet .aps-selected{order:2;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-start;gap:5px;padding:8px 4px}
#aiveli-plan-sheet .aps-properties{order:3;flex:0 0 auto;max-height:min(32vh,250px);overflow:auto;
 flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap}
#aiveli-plan-sheet .aps-properties label{justify-content:space-between;flex:0 0 auto}
#aiveli-plan-sheet .aps-properties input,#aiveli-plan-sheet .aps-properties select{max-width:130px;min-width:72px}
#aiveli-plan-sheet .aps-tool-filters{order:0;flex:0 0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 justify-content:stretch;gap:5px;overflow:visible;padding:0;margin-bottom:8px}
#aiveli-plan-sheet .aps-tool-filters button{font-size:10px;min-width:0;padding:7px 5px;white-space:normal}
#aiveli-plan-sheet .aps-toolbar{order:1;flex:1 1 auto;min-height:0;min-width:0;display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;justify-content:stretch;gap:5px;
 overflow-y:auto;overflow-x:hidden;padding:2px 2px 8px;scrollbar-width:thin}
#aiveli-plan-sheet .aps-toolbar button{min-width:0;min-height:49px;padding:8px 6px;
 flex-direction:column;white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.15;
 text-align:center;border-color:#e3e9ed;background:#fff}
#aiveli-plan-sheet .aps-toolbar button.aps-undo{border:1px solid #e3e9ed;border-radius:8px;padding:8px 6px;margin:0}
#aiveli-plan-sheet .aps-panel-toggle{display:none;align-items:center;gap:7px;
 background:#fff;color:#305368;border:1px solid #d6e2e8;border-radius:7px;padding:7px 9px;font-size:11px;font-weight:650}
#aiveli-plan-sheet .aps-panel-toggle svg{height:18px;width:18px}
#aiveli-plan-sheet .aps-item .aps-tv-screen{fill:#293642;stroke:#394a51;stroke-width:.02}
#aiveli-plan-sheet .aps-item .aps-tv-glass{fill:#64808f;stroke:#a6bac2;stroke-width:.009}
#aiveli-plan-sheet .aps-tv-stand{stroke:#566b78;stroke-width:.023}
#aiveli-plan-sheet .aps-item .aps-cabinet-drawer{fill:#e8e1d5;stroke:#999080;stroke-width:.018}
#aiveli-plan-sheet .aps-item .aps-laptop-body{fill:#aab5bb;stroke:#677980;stroke-width:.018}
#aiveli-plan-sheet .aps-item .aps-laptop-screen{fill:#263c4b;stroke:#547180;stroke-width:.009}
#aiveli-plan-sheet .aps-item .aps-laptop-keys{fill:#e5e9ed;stroke:#8097a0;stroke-width:.01}
#aiveli-plan-sheet .aps-item .aps-laptop-trackpad{fill:#f4f7f7;stroke:#b5c2c8;stroke-width:.008}
#aiveli-plan-sheet .aps-item .aps-mug-icon{fill:#fff;stroke:#8ba2af;stroke-width:.019}
#aiveli-plan-sheet .aps-item .aps-book-icon{fill:#91a9b4;stroke:#637d85;stroke-width:.02}
#aiveli-plan-sheet .aps-item .aps-lamp-icon{fill:#e2c89e;stroke:#9a856d;stroke-width:.022}
#aiveli-plan-sheet .aps-item .aps-place-setting{fill:#f9f8f5;stroke:#a79c8b;stroke-width:.017}
#aiveli-plan-sheet .aps-item .aps-vase-icon{fill:#9fbba5;stroke:#638871;stroke-width:.018}
@media(min-width:701px) and (max-width:1000px){#aiveli-plan-sheet{grid-template-columns:242px minmax(0,1fr)}}
@media(max-width:700px){
 #aiveli-plan-sheet{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 #aiveli-plan-sheet .aps-info-bar{grid-column:1;grid-row:1;gap:6px}
 #aiveli-plan-sheet .aps-title{display:none}
 #aiveli-plan-sheet .aps-panel-toggle{display:flex;flex:0 0 auto}
 #aiveli-plan-sheet .aps-board{grid-column:1;grid-row:2}
 #aiveli-plan-sheet .aps-bottom{position:absolute;grid-column:auto;grid-row:auto;top:calc(var(--aps-topbar) + 48px);bottom:0;left:0;
  width:min(280px,84vw);max-width:84vw;z-index:8;transform:translateX(-110%);
  pointer-events:none;transition:transform .2s;box-shadow:12px 0 28px #293b4a27}
 #aiveli-plan-sheet.aps-sidebar-open .aps-bottom{transform:none;pointer-events:auto}
 #aiveli-plan-sheet .aps-properties{flex-wrap:nowrap;overflow-x:hidden;overflow-y:auto}
 #aiveli-plan-sheet .aps-toolbar{overflow-y:auto;overflow-x:hidden}
}
@media(max-height:570px) and (min-width:701px){#aiveli-plan-sheet .aps-message{display:none}#aiveli-plan-sheet .aps-properties{max-height:140px}}

/* Workspace v5 — independent, small scene inspector; catalog never resizes on selection */
#aiveli-plan-sheet>.aps-properties{position:absolute!important;top:calc(var(--aps-topbar) + 66px);right:64px;
 z-index:12;width:250px;max-width:calc(100% - 40px);max-height:min(60vh,480px);
 display:flex;flex-direction:column;align-items:stretch;gap:8px;
 padding:14px 14px 17px;background:#fffffff9;border:1px solid #dae4e9;
 box-shadow:0 16px 42px #243b4c28;border-radius:13px;overflow-y:auto}
#aiveli-plan-sheet>.aps-properties[hidden]{display:none!important}
#aiveli-plan-sheet>.aps-properties label{display:flex;align-items:center;justify-content:space-between;gap:10px;
 color:#4d626d;font-size:11px}
#aiveli-plan-sheet>.aps-properties input,#aiveli-plan-sheet>.aps-properties select{width:100px;max-width:105px}
#aiveli-plan-sheet .aps-props-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding-bottom:9px;margin-bottom:4px;border-bottom:1px solid #e2eaf0;font-size:12px;color:#2d4857}
#aiveli-plan-sheet .aps-props-heading button{width:28px;height:28px;border:0;background:#edf2f4;border-radius:6px;
 font-size:18px;color:#4c626e;flex:none}
#aiveli-plan-sheet .aps-rotate-stem{stroke:#176f98;stroke-width:.036;stroke-dasharray:.05 .04;pointer-events:none}
#aiveli-plan-sheet .aps-rotate-handle{fill:#fff;stroke:#1b89ba;stroke-width:.044;
 cursor:crosshair;filter:drop-shadow(0 0 .05px #186a8a70);pointer-events:all}
#aiveli-plan-sheet .aps-rotate-glyph{fill:none;stroke:#1680af;stroke-width:.035}
#aiveli-plan-sheet .aps-wall-node{fill:#fff;stroke:#168abd;stroke-width:.05;cursor:move;pointer-events:all}
#aiveli-plan-sheet .aps-magnet-dot{fill:#19b5ce77;stroke:#007eaf;stroke-width:.042;pointer-events:none}
#aiveli-plan-sheet .aps-f-rug{fill:url(#aps-fabric);stroke:#806e67;stroke-width:.025}
#aiveli-plan-sheet .aps-f-rug-border{fill:none;stroke:#f4e3c9;stroke-width:.035}
#aiveli-plan-sheet .aps-f-rug-thread{fill:none;stroke:#8f6a66;stroke-opacity:.26;stroke-width:.012}
#aiveli-plan-sheet .aps-f-pillowcase{fill:url(#aps-fabric);stroke:#7e837b;stroke-width:.032}
#aiveli-plan-sheet .aps-f-pillowline{fill:#f2ddc7;fill-opacity:.55;stroke:#bf9f90;stroke-width:.012}
#aiveli-plan-sheet .aps-f-seam{fill:none;stroke:#a47e6f;stroke-width:.016;stroke-dasharray:.04 .035}
#aiveli-plan-sheet .aps-f-throw{fill:url(#aps-fabric);stroke:#9d8277;stroke-width:.028}
#aiveli-plan-sheet .aps-f-throwfold{fill:#f9eee9;fill-opacity:.26;stroke:#9f8780;stroke-width:.01}
#aiveli-plan-sheet .aps-f-curtain{fill:url(#aps-curtain);stroke:#728f93;stroke-width:.02}
#aiveli-plan-sheet .aps-f-curtain-fold{stroke:#6b8b8a;stroke-width:.025;stroke-opacity:.42}
#aiveli-plan-sheet .aps-item rect.aps-f-sofa-base{fill:url(#aps-sofa);stroke:#866c69;stroke-width:.028}
#aiveli-plan-sheet .aps-item .aps-f-sofa-arm{fill:#9c8984;stroke:#7e6e6c}
#aiveli-plan-sheet .aps-item .aps-f-sofa-back{fill:url(#aps-sofa);stroke:#96807b}
#aiveli-plan-sheet .aps-item .aps-f-sofa-cushion{fill:url(#aps-cushion);stroke:#b19d91}
#aiveli-plan-sheet .aps-item .aps-f-chair{fill:url(#aps-sofa);stroke:#7c7774}
#aiveli-plan-sheet .aps-item .aps-f-chair-seat{fill:#e3d5c8;stroke:#a49387}
#aiveli-plan-sheet .aps-item .aps-f-table{fill:url(#aps-wood);stroke:#866955}
#aiveli-plan-sheet .aps-item .aps-f-table-inner{fill:url(#aps-wood);stroke:#ac9072}
#aiveli-plan-sheet .aps-item .aps-f-bed{fill:#c8d4d6;stroke:#7e8b90}
#aiveli-plan-sheet .aps-item .aps-f-bed-cover{fill:url(#aps-cover);stroke:#bdb8af}
#aiveli-plan-sheet .aps-item .aps-f-bed-pillow{fill:#fffdfa;stroke:#cbc5bc}
#aiveli-plan-sheet .aps-item .aps-f-cabinet{fill:url(#aps-wood);stroke:#8d715b}
@media(max-width:700px){
 #aiveli-plan-sheet>.aps-properties{top:calc(var(--aps-topbar) + 64px);right:8px;
 width:min(218px,60vw);max-height:48vh;padding:10px;gap:5px}
 #aiveli-plan-sheet>.aps-properties label{font-size:10px;flex-wrap:wrap}
 #aiveli-plan-sheet>.aps-properties input,#aiveli-plan-sheet>.aps-properties select{width:100%;max-width:none}
}

/* AIVELI v6: detailed, identifiable kitchen/bath symbols and easy rotation targets */
#aiveli-plan-sheet .aps-item .aps-f-fixture{fill:#e0eaed;stroke:#84a0ad;stroke-width:.026}
#aiveli-plan-sheet .aps-item .aps-fixture-bowl{fill:#f6f9f8;stroke:#8eb0b8;stroke-width:.024}
#aiveli-plan-sheet .aps-item .aps-fixture-tank{fill:#c4d8e0;stroke:#7b9da8;stroke-width:.026}
#aiveli-plan-sheet .aps-item .aps-fixture-drain{fill:#8ba5b0;stroke:#fafcfc;stroke-width:.014}
#aiveli-plan-sheet .aps-item .aps-fixture-tap{fill:#a8b4b8;stroke:#668795;stroke-width:.015}
#aiveli-plan-sheet .aps-item .aps-fixture-shower{fill:#a4d2e0;fill-opacity:.25;stroke:#5a9fb3;stroke-width:.025}
#aiveli-plan-sheet .aps-item .aps-fixture-cooktop{fill:#343e42;stroke:#7a8b91;stroke-width:.012}
#aiveli-plan-sheet .aps-item .aps-f-kitchen{fill:url(#aps-wood);stroke:#967a65;stroke-width:.03}
#aiveli-plan-sheet .aps-kitchen-seam{stroke:#84674f;stroke-width:.028}
#aiveli-plan-sheet .aps-item .aps-f-sofa-corner{fill:url(#aps-cushion);stroke:#aa9789;stroke-width:.028}
#aiveli-plan-sheet .aps-rotate-handle{stroke-width:.056;stroke:#167fab;fill:#fff;cursor:crosshair;pointer-events:all}
#aiveli-plan-sheet .aps-rotate-handle:hover{fill:#e7f8ff;stroke:#007da8}
#aiveli-plan-sheet .aps-item.aps-picked{filter:drop-shadow(0 0 .04px rgba(28,136,178,.25))}
#aiveli-plan-sheet .aps-toolbar button.active{outline:1px solid #aacde1;outline-offset:1px}
#aiveli-plan-sheet .aps-properties .aps-property-note{color:#597f8d;font-size:11px;line-height:1.5;display:block}
@media(max-width:720px){.modes button[data-mode="iso"]{font-size:10px;padding-inline:7px!important}}

/* No underlying Cloud host appears in native browser dialogs. */
#aiveli-plan-sheet .aps-confirm-overlay{position:absolute;inset:0;display:grid;place-items:center;z-index:50;background:rgba(19,32,40,.36);backdrop-filter:blur(4px);padding:16px}
#aiveli-plan-sheet .aps-confirm-overlay[hidden]{display:none!important}
#aiveli-plan-sheet .aps-confirm-card{width:min(410px,100%);background:#fff;border-radius:15px;box-shadow:0 24px 80px #17283542;padding:25px;color:#334753}
#aiveli-plan-sheet .aps-confirm-card small{font-size:10px;color:#788f9c;letter-spacing:.1em}
#aiveli-plan-sheet .aps-confirm-card h3{font-size:23px;margin:14px 0 9px;line-height:1.2}
#aiveli-plan-sheet .aps-confirm-card p{font-size:12px;line-height:1.65;color:#617884}
#aiveli-plan-sheet .aps-confirm-actions{display:flex;gap:9px;margin-top:20px;flex-wrap:wrap}
#aiveli-plan-sheet .aps-confirm-actions button{flex:1;min-width:120px;min-height:40px;border-radius:7px;background:#eff2f3;color:#344d58;border:1px solid #dce4e7}
#aiveli-plan-sheet .aps-confirm-actions [data-confirm-accept]{background:#304e5e;color:white;border-color:#304e5e}

/* Shared visual identity: compact AIVELI logo in plan view. */
#aiveli-plan-sheet .aps-brand{display:flex;align-items:center;gap:10px;flex:0 1 auto;min-width:0;white-space:nowrap}
#aiveli-plan-sheet .aps-brand .brand-mark{font-size:20px;letter-spacing:.12em;font-weight:600;line-height:1.1;color:#303a40;white-space:nowrap}
#aiveli-plan-sheet .aps-brand small{font-size:9px;line-height:1.24;color:#667c87;border-left:1px solid #dce4e8;padding-left:10px}
#aiveli-plan-sheet .aps-dims{min-width:0;flex:1 1 auto}
@media(max-width:970px){#aiveli-plan-sheet .aps-brand{gap:6px}#aiveli-plan-sheet .aps-brand .brand-mark{font-size:17px}#aiveli-plan-sheet .aps-brand small{font-size:8px;padding-left:6px}}
@media(max-width:720px){#aiveli-plan-sheet .aps-info-bar{flex-wrap:wrap}#aiveli-plan-sheet .aps-brand{flex:1 0 auto;justify-content:flex-start}#aiveli-plan-sheet .aps-dims{flex:1 1 100%;justify-content:flex-end}}
@media(max-width:480px){#aiveli-plan-sheet .aps-brand .brand-mark{font-size:15px}#aiveli-plan-sheet .aps-brand small{font-size:7px}#aiveli-plan-sheet .aps-dims{justify-content:center;gap:5px}}

/* 2D is a drafting mode: lighting and presentation tools belong to 3D only. */
.aiveli-plan-2d #lightBtn,.aiveli-plan-2d #presentationBtn,.aiveli-plan-2d #photoBtn,.aiveli-plan-2d #renderBtn,.aiveli-plan-2d #markerBtn{display:none!important}
#aiveli-plan-sheet .aps-guide-dash{stroke:#6da2b8;stroke-width:.012;stroke-dasharray:.10 .08;pointer-events:none;fill:none}
#aiveli-plan-sheet .aps-edit-kitchen{border:1px solid #acc6d4;border-radius:8px;background:#f1f7fa;color:#325b70;min-height:40px;font-size:11px;padding:8px 10px;white-space:normal;text-align:left}
#aiveli-plan-sheet .aps-edit-kitchen:hover{background:#dcecf4}
