/* AIVELI 2D precision and editorial material system — shares the actual 3D toolbar. */
/* Old 3D rail, furniture library and inspector consumed ~half the screen,
   despite 2D providing its own side panels. Remove duplicate columns only 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/-1!important;width:100%!important;min-width:0!important}
#viewport.aiveli-blueprint-mode{position:relative}
#viewport.aiveli-blueprint-mode>.topbar{
 display:grid!important;position:absolute!important;top:0!important;
 left:calc(var(--rail) + var(--library))!important;
 right:var(--inspector)!important;z-index:35!important;
 height:66px!important;min-height:66px!important;
 /* Keep the 2D mode switch at its old 3D screen position. */
}
#aiveli-plan-sheet[data-concept-fidelity="2"]{
 inset:66px 0 0 0!important;
 padding-top:0!important;--aps-topbar:0px!important;
 grid-template-columns:205px minmax(0,1fr) 252px!important;
 grid-template-rows:0 minmax(0,1fr) 56px!important;
 background:#f8f9f9;
}
#aiveli-plan-sheet[data-concept-fidelity="2"] .aps-board{
 grid-column:2!important;grid-row:2!important;min-height:0!important;
 background:#f8faf9;overflow:hidden;
}
#aiveli-plan-sheet[data-concept-fidelity="2"] .aps-bottom{grid-column:1!important;grid-row:2!important;padding:11px 9px!important}
#aiveli-plan-sheet[data-concept-fidelity="2"] .aps-ref-inspector{grid-column:3!important;grid-row:2!important;padding:12px 10px!important}
#aiveli-plan-sheet[data-concept-fidelity="2"] .aps-ref-commands{grid-column:1/-1!important;grid-row:3!important;min-height:56px}
#aiveli-plan-sheet[data-concept-fidelity="2"] .aps-info-bar{display:none!important;height:0!important}
#aiveli-plan-sheet[data-concept-fidelity="2"] .aps-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#aiveli-plan-sheet .aps-rotate-handle{
 fill:#fff;stroke:#526d7a;stroke-width:.035;pointer-events:all;
 cursor:crosshair;filter:drop-shadow(.012px .025px .035px #1a344d33);
}
#aiveli-plan-sheet .aps-rotate-handle:hover{stroke:#287ea6;fill:#f3fafd}
#aiveli-plan-sheet .aps-rotate-glyph{stroke:#465f6c;stroke-width:.022;stroke-linecap:round;stroke-linejoin:round;fill:none}
#aiveli-plan-sheet .aps-rotate-stem{stroke:#8a9ba4;stroke-width:.018;stroke-dasharray:.028 .026;pointer-events:none}
#aiveli-plan-sheet .aps-item-resize{
 fill:#fff;stroke:#537a90;stroke-width:.032;
 cursor:ew-resize;pointer-events:all;
 filter:drop-shadow(.012px .017px .025px #16364b33);
}
#aiveli-plan-sheet .aps-item-resize[data-resize-edge="top"],
#aiveli-plan-sheet .aps-item-resize[data-resize-edge="bottom"]{cursor:ns-resize}
#aiveli-plan-sheet .aps-item-resize:hover{fill:#dfeef5;stroke:#197aa3;stroke-width:.047}
#aiveli-plan-sheet .aps-floor-palette{
 position:absolute;top:14px;left:15px;z-index:6;
 background:#fffffff0;border:1px solid #e1e6e8;box-shadow:0 7px 20px #253b4b18;
 padding:11px;display:flex;gap:5px;align-items:center;flex-wrap:wrap;
 border-radius:9px;max-width:calc(100% - 30px);
}
#aiveli-plan-sheet .aps-floor-palette[hidden]{display:none!important}
#aiveli-plan-sheet .aps-palette-heading{font-size:11px;color:#415665;font-weight:650;margin-right:5px}
#aiveli-plan-sheet .aps-palette-heading small{display:block;font-weight:400;font-size:9px;color:#70858e}
#aiveli-plan-sheet .aps-floor-palette button{
 border:1px solid #e0e5e8;background:#fff;color:#50626c;border-radius:5px;
 padding:7px 9px;min-height:30px;cursor:pointer;font-size:10px;
}
#aiveli-plan-sheet .aps-floor-palette button.active{
 border-color:#45677a;background:#ebf2f5;color:#24465b;
}
#aiveli-plan-sheet .aps-floor{fill:#eae2d9}
#aiveli-plan-sheet .aps-floor-tile{stroke:#eee9e3;stroke-width:.008;pointer-events:none}
#aiveli-plan-sheet .aps-axis-guide-label{
 font-size:.145px;fill:#315d74;font-weight:650;paint-order:stroke;
 stroke:#fffffff2;stroke-width:.060px;pointer-events:none;
}
#aiveli-plan-sheet .aps-inside-note{font-size:.105px;fill:#9aabb4;letter-spacing:.08em;pointer-events:none}
#aiveli-plan-sheet .aps-kitchen-counter{fill:#ece6dc;stroke:#c2b6a4;stroke-width:.021}
#aiveli-plan-sheet .aps-kitchen-basin{fill:#f3f6f6;stroke:#a9b3b7;stroke-width:.023}
#aiveli-plan-sheet .aps-kitchen-faucet{fill:none;stroke:#a6b0b3;stroke-width:.035}
#aiveli-plan-sheet .aps-hob-glass{fill:#34383b;stroke:#83898d;stroke-width:.018}
#aiveli-plan-sheet .aps-hob-ring{fill:none;stroke:#cbd1d1;stroke-width:.019}
#aiveli-plan-sheet .aps-fridge-body{fill:#d9dfe0;stroke:#8a969a;stroke-width:.027}
#aiveli-plan-sheet .aps-fridge-divider{stroke:#909ba0;stroke-width:.026}
#aiveli-plan-sheet .aps-fridge-handle{fill:#a7b2b6;stroke:#75858c;stroke-width:.015}
#aiveli-plan-sheet .aps-fridge-inlay{fill:#f7fbfb;stroke:#c1cbce;stroke-width:.012}
#aiveli-plan-sheet .aps-f-sofa-base{filter:drop-shadow(.015px .03px .035px #3c303229)}
#aiveli-plan-sheet .aps-f-sofa-cushion{filter:drop-shadow(.01px .02px .03px #63574c24)}
#aiveli-plan-sheet .aps-f-sofa-back{fill:#bcb6ac}
#aiveli-plan-sheet .aps-f-sofa-arm{fill:#c9c3b9}
@media(max-width:1140px){
 #aiveli-plan-sheet[data-concept-fidelity="2"]{grid-template-columns:185px minmax(0,1fr) 210px!important}
}
@media(max-width:850px){
 #aiveli-plan-sheet[data-concept-fidelity="2"]{grid-template-columns:165px minmax(0,1fr)!important}
 #aiveli-plan-sheet[data-concept-fidelity="2"] .aps-ref-inspector{display:none!important}
}
@media(max-width:700px){
 #viewport.aiveli-blueprint-mode>.topbar{
  height:56px!important;min-height:56px!important;
  left:0!important;right:0!important;
 }
 #aiveli-plan-sheet[data-concept-fidelity="2"]{
  inset:56px 0 0 0!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:0 minmax(0,1fr) 54px!important;
 }
 #aiveli-plan-sheet[data-concept-fidelity="2"] .aps-bottom{position:absolute!important;top:0!important;bottom:54px!important;left:0!important}
 #aiveli-plan-sheet[data-concept-fidelity="2"] .aps-ref-inspector{display:none!important}
 #aiveli-plan-sheet[data-concept-fidelity="2"] .aps-board{grid-column:1!important}
 #aiveli-plan-sheet .aps-floor-palette{top:9px;left:9px;padding:7px;gap:4px}
 #aiveli-plan-sheet .aps-floor-palette button{padding:5px 6px;font-size:9px}
}
