/* Shared scene library dialog; inherits light/dark model-picker tokens. */
.scene-assets-dialog{width:min(44rem,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow:auto}
.scene-assets-dialog header{gap:1rem;align-items:start}
.scene-assets-dialog header h2{font-size:clamp(1.25rem,4vw,1.8rem);overflow-wrap:anywhere}
.scene-assets-dialog button,.scene-assets-dialog input{font:inherit;min-height:44px}
.scene-assets-dialog>header>button,.scene-assets-controls button,.scene-assets-dialog>button,.scene-assets-preview button{padding:.65rem 1rem;border:1px solid currentColor;border-radius:.65rem;background:transparent;color:inherit;cursor:pointer}
.scene-assets-controls{display:grid;grid-template-columns:1fr auto;gap:.65rem;margin:1rem 0}
.scene-assets-controls>div{grid-column:1/-1;display:flex;gap:.5rem}
.scene-assets-controls input{min-width:0;width:100%;padding:.65rem .8rem;border:1px solid currentColor;border-radius:.65rem;background:transparent;color:inherit}
.scene-assets-controls button[aria-pressed=true]{box-shadow:inset 0 -3px currentColor}
.scene-assets-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:1rem 0}
.scene-assets-grid .model-choice{display:flex;flex-direction:column;align-items:start;gap:.4rem;overflow-wrap:anywhere;text-align:left;min-width:0}
.scene-assets-grid small{opacity:.8}
.scene-assets-preview{margin:1rem 0}
.scene-assets-preview h3{overflow-wrap:anywhere}
.scene-assets-preview img,.scene-assets-preview video{display:block;width:100%;max-height:40dvh;object-fit:contain;margin:.8rem 0}
.scene-assets-dialog button:disabled{opacity:.55;cursor:default}
.scene-assets-dialog [hidden]{display:none!important}
@media(max-width:480px){.scene-assets-grid{grid-template-columns:1fr}.scene-assets-dialog{padding:1rem}.scene-assets-dialog header{display:flex}}
