.studio-intro h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
.studio-panel h2 { margin-bottom: 12px; font-size: 1.4rem; }
.studio-panel label { display: grid; gap: 4px; font-size: .83rem; margin-block: 10px; color: var(--cream-dim); }
.studio-panel input, .studio-panel select { width: 100%; border: 1px solid #5c6170; border-radius: 6px; padding: 8px; color: var(--cream); background: #202534; font: inherit; }
.studio-panel input[type=color] { height: 38px; padding: 3px; }
.studio-panel button, .file-button { border: 1px solid #646676; border-radius: 6px; padding: 7px 11px; background: #242a39; color: #f4ebd9; font: inherit; font-size: .8rem; cursor: pointer; }
.studio-panel button:hover, .file-button:hover { border-color: var(--gold); }
.studio-panel button:disabled { opacity: .5; cursor: default; }
.project-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.studio-panel .file-button { display: inline-flex; margin-block: 5px; }
.file-button input { display: none; }
.file-button:focus-within { outline: 2px solid var(--gold); }
.studio-panel .check-label { display: flex; align-items: center; gap: 8px; }
.check-label input { width: auto; }
#volumes { padding: 0; list-style: none; display: grid; gap: 10px; }
.volume-row { border: 1px solid var(--line); padding: 10px; border-radius: 8px; display: grid; grid-template-columns: 65px minmax(0,1fr); gap: 10px; }
.volume-row img, .volume-row canvas { width: 65px; height: 100px; object-fit: contain; }
.volume-row label { margin-block: 4px; }
.volume-row .row-actions { display: flex; gap: 4px; flex-wrap: wrap; grid-column: 1 / -1; }
.volume-row .row-actions button { padding: 5px 8px; }
.spine-artwork { display: grid; justify-items: start; gap: 5px; margin-bottom: 10px; overflow-wrap: anywhere; }
.spine-artwork button:first-child { border-color: var(--gold); color: var(--gold); }
.creator-stage { width: min(100%, calc(66vh * var(--preview-ratio, 1))); margin: 14px auto; background: repeating-conic-gradient(#e1dbd1 0% 25%, #f4f0e8 0% 50%) 0 0 / 16px 16px; }
.creator-stage canvas { display: block; width: 100%; height: auto; }
.preview-panel { align-self: start; }
.design-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.design-grid canvas { width: 100%; display: block; border-radius: 4px; margin-bottom: 6px; }
.design-grid button[aria-pressed=true] { border: 2px solid var(--gold); }
#shelf-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-block: 10px; }
#shelf-picker img { height: 72px; width: 100%; object-fit: contain; }
#shelf-picker button { overflow-wrap: anywhere; }
.export-actions button:first-child { background: var(--gold); color: #17151a; font-weight: 650; }
@media(max-width: 850px) { .preview-panel { position: static; } }

#book-picker, #scene-gallery { margin-bottom: 1.25rem; }
#scene-gallery label { display: inline-grid; margin-right: 1rem; }
#scene-gallery .design-grid { grid-template-columns: repeat(auto-fill,minmax(min(155px,46%),1fr)); max-height: min(58vh, 620px); overflow-y: auto; padding: 4px; align-items: stretch; }
#scene-gallery .design-grid button { min-width: 0; text-align: left; padding: 6px; }
