/* AIVELI 2.2.36 — consistent topbar and compact, responsive workspace. */
#viewport.aiveli-blueprint-mode>.topbar{
  box-sizing:border-box!important;position:absolute!important;top:0!important;
  left:0!important;right:0!important;width:100%!important;z-index:110!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  min-height:66px!important;height:66px!important;padding:0 12px!important;border-radius:0!important;
}
#viewport.aiveli-blueprint-mode>.topbar .project-history,
#viewport.aiveli-blueprint-mode>.topbar .scene-actions{min-width:0;max-width:100%}
#viewport.aiveli-blueprint-mode>.topbar .modes{min-width:0;justify-self:center}
#aiveli-plan-sheet[data-concept-fidelity="2"]{
  inset:66px 0 0!important;padding:0!important;--aps-topbar:0px!important;
  grid-template-columns:clamp(170px,17vw,210px) minmax(0,1fr) clamp(200px,21vw,272px)!important;
  grid-template-rows:0 minmax(0,1fr) 56px!important;
}
#aiveli-plan-sheet[data-concept-fidelity="2"] .aps-board{
  grid-row:2!important;grid-column:2!important;min-width:0!important;min-height:0!important;
}
#aiveli-plan-sheet[data-concept-fidelity="2"] .aps-bottom{
  grid-row:2!important;grid-column:1!important;min-width:0!important;
  padding:12px 9px!important;overflow-y:auto!important;overscroll-behavior:contain;
}
#aiveli-plan-sheet[data-concept-fidelity="2"] .aps-ref-inspector{
  grid-row:2!important;grid-column:3!important;min-width:0!important;
  padding:12px 10px!important;overflow-y:auto!important;overscroll-behavior:contain;
}
#aiveli-plan-sheet[data-concept-fidelity="2"] .aps-ref-commands{grid-row:3!important;grid-column:1/-1!important;min-width:0!important}
#aiveli-plan-sheet .aps-glb-top-view{image-rendering:auto;opacity:1}
#aiveli-plan-sheet .aps-premium-model-surface{color-interpolation-filters:sRGB}
.aiveli-studio .acs-workbench .acs-settings .acs-section{
  border-radius:7px!important;margin-bottom:6px!important;padding:9px 10px 6px!important;
}
.aiveli-studio .acs-workbench .acs-settings{overscroll-behavior:contain}
.aiveli-studio .acs-workbench .acs-palette{border-radius:7px!important}
@media(max-width:1080px){
  #aiveli-plan-sheet[data-concept-fidelity="2"]{grid-template-columns:170px minmax(0,1fr) 210px!important}
}
@media(max-width:850px){
  #aiveli-plan-sheet[data-concept-fidelity="2"]{grid-template-columns:clamp(144px,22vw,175px) 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{
    min-height:56px!important;height:56px!important;left:0!important;right:0!important;
    width:100%!important;padding:0 7px!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;
  }
  #viewport.aiveli-blueprint-mode>.topbar .modes{justify-self:start;max-width:100%}
  #aiveli-plan-sheet[data-concept-fidelity="2"]{
    inset:56px 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;
    z-index:10!important;max-width:min(84vw,240px)!important;
  }
  #aiveli-plan-sheet[data-concept-fidelity="2"] .aps-board{grid-column:1!important}
  #aiveli-plan-sheet[data-concept-fidelity="2"] .aps-ref-inspector{display:none!important}
}
@media(prefers-reduced-motion:reduce){#aiveli-plan-sheet .aps-item{transition:none!important}}

/* v2.2.37: volumetric alpha furniture silhouettes, not opaque cards.
   Height is implied by contact shadow + a narrow light rim; hit areas remain vector. */
#aiveli-plan-sheet .aps-photo-top-view{isolation:isolate;pointer-events:none;overflow:visible}
#aiveli-plan-sheet .aps-photo-top-view image{image-rendering:auto}
#aiveli-plan-sheet .aps-premium-object[data-item-id]{paint-order:normal}
#aiveli-plan-sheet .aps-premium-object.aps-picked .aps-photo-top-view{opacity:1}
@media(prefers-reduced-motion:reduce){#aiveli-plan-sheet .aps-photo-top-view{transition:none}}
