.media-viewer{box-sizing:border-box;width:min(960px,96vw);max-height:94dvh;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);overflow:auto}
.media-viewer::backdrop{background:#000b}
.media-viewer header{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.media-viewer header h2{margin:0;font-size:1.1rem}
.media-viewer-stage{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.5rem;margin-top:1rem;overflow:auto}
.media-viewer-stage img{display:block;max-width:100%;max-height:62dvh;margin:auto;object-fit:contain;cursor:zoom-in}
.media-viewer-stage img.zoomed{max-height:none;max-width:none;width:100%;min-width:0;cursor:zoom-out}
.media-viewer-thumbnails{display:flex;gap:.5rem;overflow:auto;padding:.25rem}
.media-viewer-thumbnails button{flex:none;background:none;border:2px solid transparent;border-radius:8px;padding:2px;cursor:pointer}
.media-viewer-thumbnails button[aria-current=true]{border-color:var(--accent)}
.media-viewer-thumbnails img{display:block;width:64px;height:64px;object-fit:cover;border-radius:4px}
.media-viewer video{display:block;width:100%;height:70dvh;object-fit:contain;margin-top:1rem;background:#000}
video[controlslist~=nofullscreen]::-webkit-media-controls-fullscreen-button{display:none}
.saved-search-list{display:grid;gap:.5rem;list-style:none;margin:.5rem 0;padding:0}
.saved-alert-profiles{margin:.5rem 0}
@media(max-width:600px){.media-viewer{padding:.6rem}.media-viewer-stage{gap:.2rem}.media-viewer-stage>button{padding:.4rem;min-width:30px}.media-viewer-thumbnails img{width:48px;height:48px}}
