/* 2D reference layout — additive override, keeps all geometric tools intact. */
#aiveli-plan-sheet[data-reference-workspace="1"]{
 --aps-ink:#24384b;--aps-line:#e0e7ed;
 grid-template-columns:224px minmax(0,1fr) 288px;
 grid-template-rows:52px minmax(0,1fr) 55px;
 background:#f6f9fc;color:#24384b;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-info-bar{
 grid-column:1/-1;grid-row:1;min-height:52px;padding:0 20px;
 background:#fff;border-bottom:1px solid #e0e7ed;box-shadow:none;justify-content:flex-start;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-brand .brand-mark{
 font-size:19px;font-weight:600;letter-spacing:.27em;color:#182f45;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-brand small{
 font-size:14px;letter-spacing:0;color:#24384b;font-weight:650;
 border-left:1px solid #dce3e9;padding-left:15px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-board{
 grid-column:2;grid-row:2;background:#fcfdff;min-width:0;min-height:0;
 border-right:1px solid #e4eaf0;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-floor{fill:#f6f1e9;fill-opacity:.55}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-grid-minor,
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-grid-major{stroke:transparent}
#aiveli-plan-sheet[data-reference-workspace="1"].aps-ref-grid .aps-grid-minor{stroke:#e9eef3}
#aiveli-plan-sheet[data-reference-workspace="1"].aps-ref-grid .aps-grid-major{stroke:#d8e4ec}
#aiveli-plan-sheet[data-reference-workspace="1"].aps-ref-no-dimensions .aps-dim-line,
#aiveli-plan-sheet[data-reference-workspace="1"].aps-ref-no-dimensions .aps-dim-text{display:none}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-wall{stroke:#3c4953}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-dim-line{stroke:#829bad;stroke-width:.012}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-dim-text{fill:#4d6577;font-weight:500}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-stats{
 top:13px;bottom:auto;left:14px;border-radius:7px;
 background:#ffffffdf;border:1px solid #e7edf2;color:#768a9b;font-size:10px;font-weight:500;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-zoom{display:none}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-bottom{
 grid-column:1;grid-row:2;display:flex;flex-direction:column;min-height:0;
 padding:15px 12px 10px;background:#fff;border-right:1px solid #e4eaf0;box-shadow:none;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-tool-filters{
 display:flex;flex:0 0 auto;overflow-x:auto;gap:5px;padding:0 0 12px;
 border-bottom:1px solid #ecf0f4;margin-bottom:7px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-tool-filters button{
 border:0;border-radius:6px;background:#f2f6f9;color:#718399;
 min-height:30px;font-size:10px;padding:7px 9px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-tool-filters button.active{
 background:#eaf4fc;color:#397faf;box-shadow:none;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-toolbar{
 order:1;display:flex;flex-direction:column;gap:2px;min-height:0;
 overflow-y:auto;overflow-x:hidden;padding:0 3px 12px;scrollbar-width:thin;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-group{
 width:100%;color:#75889b;font-weight:650;font-size:11px;
 padding:13px 9px 7px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-group[hidden]{display:none!important}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-toolbar button,
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-toolbar button.aps-undo{
 flex:0 0 auto;display:flex;flex-direction:row;justify-content:flex-start;gap:12px;
 align-items:center;min-height:39px;padding:9px 11px;border:0;border-radius:7px;
 background:transparent;color:#53697d;font-size:12px;font-weight:500;
 text-align:left;white-space:nowrap;overflow-wrap:normal;outline:none;box-shadow:none;margin:0;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-toolbar button svg{width:20px;height:20px;flex:0 0 20px}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-toolbar button.active{
 background:#eaf4fc;color:#397fb1;border:0;outline:0;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-toolbar button:hover:not(.active){background:#f2f7fa}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-selected{
 order:2;flex:0 0 auto;justify-content:flex-start;flex-wrap:wrap;
 border-top:1px solid #ecf0f4;padding:10px 0;margin:7px 0 0;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-selected button{
 font-size:10px;min-height:31px;border-radius:6px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-message{
 order:3;min-height:0;max-height:58px;font-size:10px;color:#8697a6;line-height:1.4;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector{
 grid-column:3;grid-row:2;overflow-y:auto;min-height:0;min-width:0;
 padding:17px 16px 22px;background:#fff;scrollbar-width:thin;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector-title{
 display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:17px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector-title strong{
 font-size:15px;font-weight:700;color:#24384b;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector-title small{
 font-size:9px;color:#a2aeb7;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-tabs{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;
 padding:4px;margin-bottom:21px;border-radius:8px;background:#f1f5f8;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-tabs button{
 font-size:11px;min-height:35px;border:0;border-radius:6px;
 color:#72859a;background:transparent;padding:6px 2px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-tabs button.is-active{
 background:#fff;color:#24384b;font-weight:600;box-shadow:0 2px 9px #2b41500f;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector section[hidden]{display:none!important}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector h3{
 font-size:14px;font-weight:700;color:#263d50;margin:0 0 14px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector h4{
 font-size:12px;color:#263d50;font-weight:700;border-top:1px solid #eaf0f4;
 margin:18px 0 9px;padding-top:18px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-metric,
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-height{
 display:flex;justify-content:space-between;align-items:center;gap:8px;
 border-bottom:1px solid #edf1f4;padding:11px 0;font-size:11px;color:#71869a;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-metric strong{
 font-size:12px;font-weight:600;color:#2e475c;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-height>span:last-child{
 display:flex;align-items:center;gap:6px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-height input{
 width:74px;min-height:34px;border:1px solid #dde7ee;border-radius:6px;
 background:#f7f9fc;color:#294459;padding:5px;text-align:center;font-size:12px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-dims{
 display:flex;flex-direction:column;align-items:stretch;justify-content:stretch;
 width:100%;gap:3px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-dims label{
 display:flex;align-items:center;justify-content:space-between;gap:10px;
 font-size:11px;width:100%;color:#71869a;padding:7px 0;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-dims input{
 width:88px;height:35px;border-radius:6px;background:#f7f9fc;
 border:1px solid #dde7ee;text-align:center;font-size:12px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-dims .aps-apply{
 height:37px;width:100%;border-radius:6px;margin-top:8px;
 background:#243f5d;color:white;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector .aps-properties{
 position:static!important;top:auto!important;right:auto!important;
 width:100%;max-height:none;max-width:100%;overflow:visible;
 border:0;border-radius:0;box-shadow:none;background:transparent;
 padding:0;margin:0;display:flex;flex-direction:column;align-items:stretch;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector .aps-properties[hidden]{display:none!important}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector .aps-properties label{
 display:flex;flex-direction:column;align-items:stretch;gap:6px;
 padding:7px 0;font-size:11px;color:#71869a;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector .aps-properties input,
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector .aps-properties select{
 width:100%;max-width:100%;min-height:36px;background:#f7f9fc;border-radius:6px;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector p{
 color:#7b8d9d;font-size:11px;line-height:1.55;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-empty[hidden]{display:none}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-commands{
 grid-column:1/-1;grid-row:3;display:flex;align-items:center;justify-content:space-between;
 gap:6px;padding:6px 14px;border-top:1px solid #e4eaf0;background:#fff;min-width:0;z-index:5;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-set{
 display:flex;align-items:center;gap:2px;background:#fcfdff;
 padding:2px;border:1px solid #e2e9ef;border-radius:8px;min-width:0;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-set button{
 border:0;border-radius:6px;min-height:32px;padding:7px 9px;
 display:flex;align-items:center;justify-content:center;gap:5px;
 color:#5a7185;background:transparent;font-size:11px;white-space:nowrap;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-set button.is-active{
 background:#eaf4fc;color:#377caf;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-set button:hover{
 background:#eef5fa;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-zoom-label{
 min-width:54px;text-align:center;font-size:10px;color:#5f7286;
}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-end{margin-left:auto}
#aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-end button:last-child{
 background:#243f5d;color:#fff;
}
@media(max-width:1160px){
 #aiveli-plan-sheet[data-reference-workspace="1"]{grid-template-columns:205px minmax(0,1fr) 254px}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector{padding-inline:12px}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-set button{padding-inline:6px}
}
@media(max-width:880px){
 #aiveli-plan-sheet[data-reference-workspace="1"]{grid-template-columns:210px minmax(0,1fr)}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-inspector{
  display:none;position:absolute;right:8px;top:calc(var(--aps-topbar) + 60px);
  bottom:63px;z-index:12;width:min(290px,80vw);border:1px solid #e2e9ef;
  border-radius:10px;box-shadow:0 15px 42px #24384b26;
 }
 #aiveli-plan-sheet[data-reference-workspace="1"].aps-ref-inspector-open .aps-ref-inspector{display:block}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-set button span{display:none}
}
@media(max-width:700px){
 #aiveli-plan-sheet[data-reference-workspace="1"]{
  grid-template-columns:minmax(0,1fr);grid-template-rows:49px minmax(0,1fr) 53px;
 }
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-info-bar{
  grid-column:1;grid-row:1;min-height:49px;padding:0 10px;
 }
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-panel-toggle{display:flex}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-brand small{font-size:10px;padding-left:7px}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-brand .brand-mark{font-size:15px;letter-spacing:.17em}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-board{grid-column:1;grid-row:2}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-bottom{
  position:absolute;top:calc(var(--aps-topbar) + 49px);bottom:53px;left:0;
  width:min(276px,84vw);z-index:12;grid-column:auto;grid-row:auto;
  transform:translateX(-110%);pointer-events:none;
 }
 #aiveli-plan-sheet[data-reference-workspace="1"].aps-sidebar-open .aps-bottom{transform:none;pointer-events:auto}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-set:nth-child(4){display:none}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-commands{gap:3px;padding-inline:5px}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-set button{font-size:10px;padding-inline:5px}
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-zoom-label{min-width:36px}
}
@media(max-width:420px){
 #aiveli-plan-sheet[data-reference-workspace="1"] .aps-ref-command-set:nth-child(3){display:none}
}