@import url('./pond-placement-controls.css');
.sceneLibraryItems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sceneLibraryItems button{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:6px;text-align:left}.sceneLibraryItems img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#edf1f4}.sceneLibraryItems span{margin-top:6px}.sceneLibraryItems small{font-size:11px;color:var(--pt-muted)}.sceneLibraryItems button[aria-pressed="true"]{outline:2px solid var(--pt-accent);outline-offset:-2px}.sceneLibrary label{display:block}.sceneLibrary input,.sceneLibrary select{max-width:100%}

.sceneLibraryItems button{touch-action:pan-y;user-select:none}.sceneLibraryItems img{pointer-events:none;-webkit-user-drag:none}.sceneLibraryItems .libraryDragReady{outline:2px solid var(--pt-accent);outline-offset:-2px}.libraryDragActive{cursor:grabbing!important}

.sceneLibraryBrowse{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.sceneLibraryBrowse label{min-width:0;font-size:12px}.sceneLibraryBrowse input,.sceneLibraryBrowse select{width:100%;min-width:0;min-height:44px}.sceneLibrary #sl-options{margin:0 0 8px}.sceneLibrary #sl-options>summary{display:flex;align-items:center;min-height:44px;cursor:pointer}.sceneLibrary #sl-options>summary:before{content:"+";margin-right:8px}.sceneLibrary #sl-options[open]>summary:before{content:"\2212"}.sceneLibrary #sl-results{font-size:13px;color:var(--pt-muted)}

@media(max-width:600px){.sceneWorkspace .app[data-scene-category=structures]>#leftControls,.sceneWorkspace .app[data-scene-category=landscape]>#leftControls{height:auto}}

.sceneWorkspace .app[data-scene-category=structures] #sceneCloseDock,.sceneWorkspace .app[data-scene-category=landscape] #sceneCloseDock{min-width:44px;min-height:44px}

.sceneLibraryItems{display:block}
.sceneLibraryGroup{margin:0;border-bottom:1px solid var(--pt-border)}
.sceneLibraryGroup>summary{display:list-item;min-height:44px;padding:12px 4px;cursor:pointer;font-weight:600}
.sceneLibraryRow{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:4px;margin:0 0 4px}
.sceneLibraryItems .sceneLibraryRow button{min-height:44px;justify-content:center;padding:8px;border:1px solid var(--pt-border);background:var(--pt-panel);color:var(--pt-text)}
.sceneLibraryRow span{margin:0;font-size:13px;line-height:1.35}
.sceneLibraryItems .sceneLibraryPreviewButton{align-items:center;padding:0}
.sceneLibraryPreview{position:fixed;z-index:1000;background:var(--pt-panel);color:var(--pt-text);border:1px solid var(--pt-border);border-radius:var(--pt-radius-control);box-shadow:var(--pt-shadow);padding:6px;display:grid;grid-template-columns:minmax(0,1fr) 44px}
.sceneLibraryPreview[hidden]{display:none}
.sceneLibraryPreview strong{align-self:center;padding:4px 8px;font-size:14px}
.sceneLibraryPreview button{min-width:44px;min-height:44px;font-size:23px}
.sceneLibraryPreview img{grid-column:1/-1;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}

/* Library tiles: image and name, no box around each one. Tighter rows. */
.sceneLibraryItems{gap:2px 10px}.pt-controls .sceneLibraryItems button,.sceneLibraryItems button{border:0;background:transparent;border-radius:var(--pt-radius-control);padding:6px 4px 8px;gap:0;min-height:0}.sceneLibraryItems button:hover{background:var(--pt-hover)}.sceneLibraryItems img{aspect-ratio:5/3;border-radius:6px;background:var(--pt-surface)}.sceneLibraryItems span{margin-top:5px;font-size:12px;line-height:1.3}.sceneLibraryItems small{display:block;margin-top:1px;line-height:1.3}.sceneLibraryItems button[aria-pressed="true"],.sceneLibraryItems .libraryDragReady{outline-offset:0;background:var(--pt-selected)}

/* Object rows: name and preview on one quiet line, no box per row. */
.sceneLibraryGroup{display:block}
.sceneLibraryRow{display:flex;align-items:center;gap:2px;margin:0;border-bottom:1px solid var(--pt-border)}
.sceneLibraryRow:last-child{border-bottom:0}
#sceneLibraryHost .sceneLibraryRow button{border:0;background:transparent;border-radius:6px;min-height:34px;padding:6px 8px;font-weight:500;font-size:13px}
#sceneLibraryHost .sceneLibraryRow>button:first-child{flex:1 1 auto;text-align:left;min-width:0}
#sceneLibraryHost .sceneLibraryRow>button:first-child span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sceneLibraryHost .sceneLibraryRow .sceneLibraryPreviewButton{flex:0 0 32px;width:32px;padding:0;color:var(--pt-subtle)}
#sceneLibraryHost .sceneLibraryRow button:hover{background:var(--pt-hover);border-color:transparent}
#sceneLibraryHost .sceneLibraryRow button[aria-pressed="true"]{background:var(--pt-selected);outline:0}
