#studio-tab[hidden], #studio-menu-btn[hidden], #studio-view[hidden], #studio-view [hidden] { display: none !important; }
body.studio-open:not(.top-authors-open) .main-content > :not(#catalog-toolbar):not(#studio-view),
body.studio-open #catalog-toolbar > :not(.tabs-container) { display: none !important; }
#studio-view { box-sizing: border-box; width: min(100%, 740px); margin: 0 auto; padding: 18px 16px 64px; color: var(--text-primary); }
#studio-title { margin: 0 0 16px; }
.studio-panel, .studio-job { display: grid; gap: 16px; padding: clamp(16px, 3vw, 26px); background: var(--bg-secondary); border: 1px solid rgba(var(--fg-rgb), .17); border-radius: 20px; }
.studio-panel select, .studio-panel textarea, .studio-panel input[type=number] { width: 100%; min-width: 0; box-sizing: border-box; color: var(--text-primary); background: var(--bg-primary); border: 1px solid rgba(var(--fg-rgb),.24); border-radius: 10px; padding: 10px; font: inherit; }
.studio-panel textarea { resize: vertical; }
.studio-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.studio-field > span:first-child, .studio-field > label:first-child { font-weight: 600; }
.studio-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(96px,1fr)); gap: 10px; }
.studio-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.studio-upload { position: relative; display: grid; place-items: center; min-height: 48px; border: 1px dashed rgba(var(--fg-rgb),.45); border-radius: 12px; cursor: pointer; }
#studio-file-hint, .studio-job > span { color: var(--text-secondary); font-size: .85em; }
.studio-refs { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-refs:empty { display: none; }
.studio-ref { position: relative; border: 0; background: transparent; padding: 0; cursor: pointer; }
.studio-ref img { display: block; width: 54px; height: 54px; object-fit: cover; border-radius: 9px; }
.studio-ref span { position: absolute; right: 2px; top: 2px; background: #101020ce; color: white; border-radius: 50%; width: 19px; line-height: 19px; }
#studio-run { width: 100%; }
#studio-run:disabled { opacity: .5; }
#studio-error { margin: 0; }
#studio-results h3 { margin: 24px 0 12px; }
#studio-jobs { display: grid; gap: 12px; }
.studio-job { gap: 8px; }
.studio-job video { display: block; max-width: 100%; max-height: 62vh; border-radius: 12px; }
.studio-job a { color: inherit; justify-self: start; }
