/* AIVELI 2D library v2 — authored photographic assets only */
#aiveli-plan-sheet.aps-cards-only .aps-tool-filters,
#aiveli-plan-sheet.aps-cards-only .aps-toolbar{display:none!important}
#aiveli-plan-sheet .aps-photo-library{order:1;min-height:0;display:flex;flex-direction:column;gap:5px;width:100%}
#aiveli-plan-sheet .aps-library-group{border:1px solid #e7e7e6;border-radius:8px;background:#fff;min-width:0;overflow:hidden;flex:0 0 auto}
#aiveli-plan-sheet .aps-library-heading{width:100%;display:flex;align-items:center;justify-content:space-between;gap:6px;border:0;background:#fff;text-align:left;padding:11px 10px;color:#333d43;font:600 12px/1.35 system-ui,sans-serif;cursor:pointer}
#aiveli-plan-sheet .aps-library-heading[aria-expanded="true"]{background:#f5f6f4}
#aiveli-plan-sheet .aps-library-chevron{transition:transform .18s ease;color:#7b8891;font-size:18px}
#aiveli-plan-sheet .aps-library-heading[aria-expanded="true"] .aps-library-chevron{transform:rotate(180deg)}
#aiveli-plan-sheet .aps-library-panel[hidden]{display:none!important}
#aiveli-plan-sheet .aps-library-panel{padding:7px;display:grid;gap:4px}
#aiveli-plan-sheet .aps-library-panel>button[data-tool]{display:flex;align-items:center;gap:9px;min-height:38px;border:0;border-radius:6px;background:#fff;color:#536371;padding:7px 9px;text-align:left;font-size:12px}
#aiveli-plan-sheet .aps-library-panel>button[data-tool]:hover,#aiveli-plan-sheet .aps-library-panel>button[data-tool].active{background:#edf3f5;color:#195b7d}
#aiveli-plan-sheet .aps-library-panel>button[data-tool] svg{height:18px;width:18px}
#aiveli-plan-sheet .aps-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0}
#aiveli-plan-sheet .aps-photo-card{position:relative;min-width:0;min-height:100px;padding:7px 5px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:5px;border:1px solid #eaeeef;background:#f9faf9;border-radius:7px;cursor:grab;user-select:none;touch-action:none;color:#586671;font-size:10px;text-align:center}
#aiveli-plan-sheet .aps-photo-card:active{cursor:grabbing}
#aiveli-plan-sheet .aps-photo-card:hover{border-color:#a9bcc7;background:#f1f7f8}
#aiveli-plan-sheet .aps-photo-card img{pointer-events:none;display:block;width:100%;height:74px;object-fit:contain;filter:drop-shadow(0 5px 5px #42362b21)}
#aiveli-plan-sheet .aps-photo-card span{line-height:1.3;pointer-events:none}
#aiveli-plan-sheet .aps-empty-group{padding:9px 5px;color:#98a1a8;font-size:11px;line-height:1.5;margin:0}
.aps-photo-drag-ghost{position:fixed;z-index:2147483000;pointer-events:none;transform:translate(-50%,-65%);width:140px;height:110px;border:1px solid #c8d9e0;border-radius:8px;display:grid;place-items:center;background:#ffffffda;box-shadow:0 12px 38px #1c32403a}
.aps-photo-drag-ghost img{width:95%;height:95%;object-fit:contain}
#aiveli-plan-sheet.aps-drop-target .aps-board{outline:2px dashed #739eb0;outline-offset:-3px}
#aiveli-plan-sheet .aps-selected [data-choice="flip"]{color:#315d72}
#aiveli-plan-sheet .aps-floor-palette{max-height:min(48vh,390px);overflow:auto;display:flex;flex-wrap:wrap;gap:5px}
#aiveli-plan-sheet .aps-floor-palette[hidden]{display:none!important}
#aiveli-plan-sheet .aps-floor-palette .aps-palette-heading{flex:0 0 100%}
#aiveli-plan-sheet .aps-photo-top-view{filter:drop-shadow(0 2px 1px #29282024);transition:filter .16s ease}
#aiveli-plan-sheet .aps-premium-object.aps-picked .aps-photo-top-view{filter:drop-shadow(0 5px 2px #29282036)}
@media(max-width:850px){#aiveli-plan-sheet[data-concept-fidelity="2"].aps-ref-inspector-open .aps-ref-inspector{display:block!important;position:absolute!important;right:8px;top:70px;width:min(300px,83vw);height:auto;max-height:calc(100% - 130px);box-shadow:0 15px 35px #28313a25;border:1px solid #dce7e9;border-radius:8px;z-index:20}}
@media(prefers-reduced-motion:reduce){#aiveli-plan-sheet .aps-library-chevron,#aiveli-plan-sheet .aps-photo-top-view{transition:none!important}}
