.production-episodes { display: grid; gap: 14px; margin-top: 28px; }
.text-assistant { display: grid; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 900px; }
.text-assistant label { display: grid; gap: 8px; }
.text-assistant textarea { min-height: 110px; width: 100%; padding: 14px; resize: vertical; }
.text-assistant select { max-width: 320px; }
.assistant-result pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.8; }
.shot-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.shot-number { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.first-project .episode-row + .empty-surface { margin-top: 24px; }
.first-project #production-status { color: var(--green); font-size: 12px; }
.first-project .app { min-height: calc(100vh - 58px); }
.first-project .context select { max-width: min(230px, 65vw); }
.first-project .episode-row h3, .first-project .new-item h3 { overflow-wrap: anywhere; }
.first-project #production-form { display: grid; gap: 16px; margin-top: 22px; }
.first-project #bible-form { display: grid; gap: 16px; margin-top: 22px; }
.revision-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.8; padding: 16px 0; }
.preserve-lines { white-space: pre-wrap; }
.first-project dialog details { padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .first-project.studio-session .sidebar.open { height: auto; top: 0; }
}
.library-upload { padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.library-upload input { max-width: 100%; }
.library-items { margin-top: 20px; }
.media-preview { display: block; width: 100%; max-height: 65vh; object-fit: contain; margin-top: 20px; }
.edit-workspace { display: grid; grid-template-columns: 190px minmax(250px, 1fr) 230px; gap: 20px; align-items: start; }
.edit-assets, .edit-inspector { display: grid; gap: 12px; min-width: 0; }
.edit-assets .button { white-space: normal; text-align: left; overflow-wrap: anywhere; }
.edit-preview { background: #000; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.edit-preview video, .edit-preview img { width: 100%; height: 100%; object-fit: contain; }
.edit-preview [hidden] { display: none; }
.edit-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.edit-controls input { width: 90px; }
.edit-scrubber { width: 100%; }
.edit-inspector form { display: grid; gap: 10px; }
.edit-tracks { border-top: 1px solid var(--line); margin-top: 20px; }
.edit-track { position: relative; height: 72px; background: var(--panel); border: 1px solid var(--line); }
.edit-clip { position: absolute; top: 4px; height: 62px; display: grid; gap: 4px; padding: 8px; background: #30334d; color: inherit; border: 1px solid #62678d; overflow: hidden; text-align: left; cursor: pointer; }
.edit-clip strong, .edit-clip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edit-clip.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 1100px) { .edit-workspace { grid-template-columns: 1fr; } .edit-assets { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); } }

/* V1 production desk. Values follow the approved reference, not its demo state. */
.studio-session { padding-top: 0; }
.studio-session .sidebar { top: 0; height: auto; min-height: 100vh; }
.studio-session .account-toolbar { position: absolute; left: auto; right: 25px; top: 15px; min-height: 32px; padding: 0; background: transparent; border: 0; gap: 10px; }
.account-toolbar > strong, .account-toolbar > span:not(.account-email), .account-toolbar > small { display: none; }
.account-toolbar .account-email { max-width: 160px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; color: var(--muted); }
.v1-studio .topbar > .muted { display: none; }
.v1-studio .breadcrumbs { max-width: calc(100% - 330px); }
.v1-studio .page { padding: 30px; }
.v1-studio .sidebar { gap: 22px; }
.v1-studio .brand { font-size: 22px; }
.v1-studio .production-context select { max-width: 190px; }
#production-status { font-size: 11px; color: var(--green); }
.empty-surface { min-height: 280px; padding: 38px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; text-align: center; border: 1px dashed var(--line); border-radius: 7px; background: var(--panel); }
.empty-surface h2 { font: 400 30px/1.2 Newsreader, Georgia, serif; }
.empty-surface p { max-width: 460px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty-surface .actions { display: flex; gap: 8px; }
.episode-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); margin-bottom: 12px; }
.episode-row p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.production-hero { min-height: 265px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 32px; background: linear-gradient(115deg,#242a3a,#171c26); }
.production-hero h2 { font-size: 46px; font-weight: 400; margin: 16px 0; }
.production-hero p { color: var(--muted); margin-bottom: 22px; }
.hero-frame { border: 1px solid #555c76; padding: 34px; transform: rotate(-8deg); margin: 0 55px; color: #929abc; }
.hero-frame svg { width: 65px; height: 65px; }
.asset-placeholder { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 140px; background: #202531; color: #77829a; border-bottom: 1px solid var(--line); }
.asset-placeholder svg { width: 30px; height: 30px; }
.shot-placeholder { width: 100%; aspect-ratio: 16/9; flex-direction: column; font-size: 11px; }
.shot-card.selected { border-color: var(--accent); }
.shot-copy h3 { margin: 10px 0; }
.shot-copy p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.detail-panel { margin-bottom: 16px; }
.detail-panel .field { margin: 15px 0; }
.detail-panel input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.detail-panel > p, .provider-state > p { line-height: 1.6; }
.provider-state { border: 1px solid var(--line); background: var(--panel); padding: 18px; border-radius: 7px; }
.provider-state .caption { margin-top: 12px; }
.production-canvas { aspect-ratio: 16/9; min-height: 250px; border: 1px solid var(--line); border-radius: 7px; display: grid; place-items: center; background: #10141c; padding: 28px; text-align: center; overflow: auto; }
.production-canvas svg { width: 32px; height: 32px; color: var(--muted); margin-bottom: 20px; }
.production-canvas h2 { font: 400 29px/1.2 Newsreader, Georgia, serif; }
.production-canvas p { max-width: 440px; margin: 14px auto 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.document-input { width: 100%; resize: vertical; border: 0; border-radius: 0; background: transparent; color: inherit; min-height: 360px; line-height: 1.8; padding: 0; }
.paper .document-input { font: 12px/1.9 'IBM Plex Mono',monospace; color: #31343b; }
.outline-layout { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 18px; align-items: start; }
.script-outline { background: var(--panel); padding: 16px; border: 1px solid var(--line); border-radius: 6px; margin: 0; }
.script-outline h3 { font-size: 12px; margin-bottom: 16px; }
.script-outline .button { margin-top: 16px; }
.director-scene-list button { display: block; width: 100%; text-align: left; padding: 10px 0; font-size: 12px; line-height: 1.8; }
.lyric-lines .document-input { font: 400 26px/1.7 Newsreader,Georgia,serif; min-height: 310px; }
.lyric-paper { min-height: 410px; }
.idea-notes { margin-top: 25px; }
.idea-notes textarea { min-height: 220px; padding: 16px; background: #171b23; border: 1px solid var(--line); font-size: 14px; }
.narration-input { padding: 26px; }
.narration-input textarea { min-height: 300px; }
.soft-note { font-size: 11px; color: var(--muted); margin: 14px 0; line-height: 1.7; }
.text-assistant { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 20px; margin-top: 20px; }
.text-assistant h2 { font-size: 15px; font-weight: 500; }
.text-assistant p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.text-assistant label { font-size: 11px; color: var(--muted); }
.song-detail h2 { font: 400 34px Newsreader,Georgia,serif; margin: 16px 0; }
.song-detail .button { margin-top: 20px; }
.music-empty { min-height: 140px; display: flex; flex-direction: column; justify-content: center; gap: 14px; text-align: center; border: 1px solid var(--line); }
.mixer-channels { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 20px 0; }
.mix-channel { background: var(--panel); border: 1px solid var(--line); padding: 14px; border-radius: 5px; }
.mix-channel h3 { font-size: 12px; }
.mix-channel p { font-size: 11px; color: var(--muted); line-height: 1.6; }
.empty-meter { height: 5px; background: var(--line); margin: 20px 0; }
.director-schematic { height: 310px; position: relative; overflow: hidden; margin: 20px 0; background: #141c24; border-radius: 7px; }
.stage-grid { position: absolute; inset: 45% -25% -60%; transform: perspective(250px) rotateX(45deg); background-image: linear-gradient(#52647755 1px,transparent 1px),linear-gradient(90deg,#52647755 1px,transparent 1px); background-size: 28px 28px; }
.stage-person { position: absolute; bottom: 50px; width: 32px; height: 120px; background: #bdc9d1; border-radius: 22px 22px 8px 8px; transform-origin: bottom; }
.stage-person::before { content: ''; width: 29px; height: 29px; border-radius: 50%; background: inherit; position: absolute; top: -36px; left: 2px; }
.stage-person.secondary { background: #8392aa; }
.director-schematic > span { position: absolute; bottom: 12px; left: 12px; color: var(--muted); }
dialog { width: min(740px,calc(100vw - 32px)); max-height: 90vh; }
dialog h2 { margin-bottom: 14px; }
dialog form { display: grid; gap: 16px; }
dialog .form-error { color: #f0b5ac; }
button:disabled { cursor: not-allowed; }
.generation-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.generation-result strong { font-size: 12px; font-weight: 500; }
.generation-result .button { margin-top: 5px; }
.delivery-preview { width: 100%; aspect-ratio: 16/9; background: #080a0e; border: 1px solid var(--line); border-radius: 7px; }
.edit-assets, .edit-inspector { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 16px; }
.edit-assets h2, .edit-inspector h2 { font-size: 13px; font-weight: 500; }
.edit-preview { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.edit-tracks { background: #161a23; border: 1px solid var(--line); border-radius: 7px; padding: 16px; }
.edit-tracks h3 { font-size: 11px; font-weight: 500; margin: 12px 0 8px; color: var(--muted); }
.edit-track > .caption { display: inline-block; margin: 20px; }
.edit-tracks section:nth-child(2) .edit-clip { background: #26443f; border-color: #527f76; }
.table-wrap { overflow-x: auto; margin-top: 20px; }
.library-upload { border-style: dashed; border-radius: 7px; background: #191d26; }
.library-upload > p { font-size: 11px; margin-top: 10px; }
.muted-box .button { margin-top: 18px; }
/* Project library: the production dashboard's imagery and restrained V1 palette. */
.account-dashboard { max-width:1320px; padding:28px 40px 60px; }
.account-dashboard header { border-color:var(--line); padding-bottom:24px; }
.account-dashboard header > span { color:var(--muted); font-size:13px; overflow:hidden; text-overflow:ellipsis; }
.account-dashboard .project-library { position:relative; padding-top:44px; }
.account-dashboard .project-library-heading { padding-right:190px; }
.account-dashboard h1 { font:400 clamp(38px,4vw,54px)/1.12 Newsreader,Georgia,serif; margin:0 0 12px; letter-spacing:-1px; }
.project-library-heading p { color:var(--muted); margin:0; line-height:1.6; }
.account-dashboard .project-create { margin:0; }
.project-create > summary { cursor:pointer; list-style:none; width:max-content; }
.project-create > summary::-webkit-details-marker { display:none; }
.account-dashboard .project-create > summary { position:absolute; right:0; top:48px; }
.account-dashboard .project-create[open] { margin-top:28px; padding:24px; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.account-dashboard #new-project { margin:0; flex-wrap:wrap; }
.account-dashboard #new-project .field { min-width:150px; }
.account-dashboard .project-library-tools { margin:36px 0 0; padding-top:24px; border-top:1px solid var(--line); gap:20px; align-items:center; }
.project-library-tools h2 { font-size:18px; font-weight:500; margin:0 auto 0 0; }
#project-count { color:var(--muted); font-size:13px; margin-left:8px; }
.project-library-tools .field { font-size:12px; width:260px; }
.account-dashboard #account-message:empty { display:none; }
.account-dashboard .cloud-projects { gap:24px; margin:24px 0; }
.account-dashboard .project-card { padding:0; min-height:0; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--panel); display:flex; flex-direction:column; align-items:stretch; }
.project-card-cover { position:relative; display:block; width:100%; aspect-ratio:16/9; border:0; padding:0; background:transparent; cursor:pointer; overflow:hidden; }
.project-card-cover img { width:100%; height:100%; object-fit:contain; display:block; }
.project-card-cover span { position:absolute; left:16px; bottom:14px; padding:4px 10px; border-radius:4px; background:#fff; color:#17253c; font-size:12px; font-weight:500; }
.project-card-body { padding:22px; flex:1; display:flex; flex-direction:column; }
.account-dashboard .project-card h2 { font:400 27px/1.2 Newsreader,Georgia,serif; margin:0 0 10px; }
.project-card h2 button { font:inherit; color:inherit; text-align:left; background:none; border:0; padding:0; cursor:pointer; overflow-wrap:anywhere; }
.project-card h2 button:hover { color:var(--accent); }
.account-dashboard .project-card p { margin:0 0 24px; color:var(--muted); font-size:12px; }
.project-card-actions { display:flex; gap:10px; margin-top:auto; flex-wrap:wrap; }
.account-dashboard .project-card .button { margin:0; }
.project-library-empty { grid-column:1/-1; padding:48px 24px; text-align:center; border:1px dashed var(--line); border-radius:10px; }
.project-library-empty p { color:var(--muted); }
@media(max-width:1000px) { .account-dashboard .cloud-projects { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .account-dashboard { padding:20px; }
 .account-dashboard .project-library { padding-top:28px; }
 .account-dashboard .project-library-heading { padding-right:0; }
 .account-dashboard .project-create { margin-top:22px; }
 .account-dashboard .project-create > summary { position:static; }
 .account-dashboard .project-library-tools { flex-wrap:wrap; gap:14px; margin-top:24px; }
 .project-library-tools h2 { width:100%; }
 .project-library-tools .field { flex:1; min-width:140px; }
 .account-dashboard .cloud-projects { grid-template-columns:1fr; }
 .account-dashboard .project-create[open] { padding:18px; }
 .account-dashboard #new-project .field { width:100%; }
}
@media (max-width: 1250px) { .outline-layout { grid-template-columns: 1fr; } .director-scene-list { display: flex; gap: 16px; overflow-x: auto; } .script-outline .button { margin-top: 10px; } }
@media (max-width: 900px) { .v1-studio .workspace, .v1-studio .chat-layout { grid-template-columns: 1fr; } .v1-studio .breadcrumbs { max-width: calc(100% - 170px); } .account-toolbar .account-email { display: none; } .mixer-channels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .v1-studio .app { display: block; } .v1-studio .sidebar { display: none; } .v1-studio .sidebar.open { display: flex; min-height: auto; padding-top: 70px; } .v1-studio .page { padding: 22px 16px; } .v1-studio .topbar { padding: 0 16px; } .v1-studio .production-context { padding: 12px 16px; } .production-hero { padding: 25px; } .hero-frame { display: none; } .production-hero h2 { font-size: 36px; } .studio-session .account-toolbar { right: 16px; } .page-head { flex-wrap: wrap; } .production-status { align-items: flex-start; flex-direction: column; } .production-canvas { aspect-ratio: auto; } }

/* Cast & world: image-first references within the approved V1 palette. */
.bible-summary { color: var(--muted); margin: 16px 0 24px; font-size: 13px; }
.bible-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 24px; align-items: start; }
.bible-card { overflow: visible; }
.bible-thumbnail { width: 100%; height: 290px; border: 0; border-radius: 7px 7px 0 0; background: var(--panel); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: zoom-in; padding: 0; overflow: hidden; }
.bible-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bible-empty { flex-direction: column; gap: 12px; cursor: default; }
.bible-empty svg { width: 36px; height: 36px; }
.bible-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; line-height: 1.6; }
.bible-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bible-image-menu { position: relative; font-size: 12px; }
.bible-image-menu summary { cursor: pointer; padding: 9px 4px; color: var(--muted); }
.bible-image-menu > div { position: absolute; right: 0; z-index: 2; min-width: 210px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; display: grid; gap: 8px; }
.bible-page button:focus-visible, .bible-image-menu summary:focus-visible { outline: 2px solid var(--accent, #82bba9); outline-offset: 3px; }
.bible-gallery-navigation { display:flex; align-items:center; justify-content:space-between; padding:8px 12px; color:var(--muted); font-size:12px; }
.bible-gallery-navigation .button { min-width:40px; }
.bible-image-prompt { padding:8px 16px; color:var(--muted); font-size:12px; }
.bible-image-prompt summary { cursor:pointer; }
.bible-image-prompt p { white-space:pre-wrap; overflow-wrap:anywhere; max-height:180px; overflow:auto; padding-top:8px; }
.bible-tag-filters, .bible-object-tags { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:14px 0; }
.bible-tag-filters > span:first-child { color:var(--muted); font-size:12px; }
.bible-style-help { color:var(--muted); max-width:70ch; line-height:1.7; margin-top:18px; }
.bible-appearances { border:1px solid var(--line); border-radius:7px; padding:14px; }
.bible-appearances legend { padding:0 5px; }
.bible-appearance { display:flex; align-items:center; gap:10px; padding:8px 0; font-size:13px; }
.bible-appearance input { width:auto; }
#bible-targets { max-height:280px; overflow:auto; padding:8px 12px; }
.bible-appearance-group summary { padding:10px 0; cursor:pointer; }
.bible-appearance-group details { margin-left:14px; }

.studio-dialog-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:24px; }
.studio-dialog-actions .button { flex:0 0 auto; min-width:136px; min-height:44px; padding:12px 20px; font-size:14px; line-height:20px; box-sizing:border-box; margin:0; }
.bible-variation-source { width:100%; max-height:220px; object-fit:contain; border-radius:12px; background:#101321; }
.bible-reference-fields { margin:16px 0; }
.bible-image-menu { margin-top:12px; }
.bible-image-menu > div { display:flex; flex-wrap:wrap; gap:8px; padding-top:10px; }

#close-dialog[hidden] { display:none; }
.studio-dialog .field { display:flex; flex-direction:column; gap:8px; margin:0; }
.studio-dialog input:not([type=radio]):not([type=checkbox]), .studio-dialog select, .studio-dialog textarea { width:100%; box-sizing:border-box; padding:12px; border:1px solid #393d4b; border-radius:8px; background:#141821; color:#ececf5; font:inherit; }
.studio-dialog .studio-dialog-actions { margin-top:20px; }

.studio-dialog form { gap:16px; }
.studio-dialog .bible-reference-fields .field { margin-top:12px; }
/* Supporting production workspaces share the approved Paper typography and surfaces. */
.v1-studio .support-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(270px,340px); gap:32px; align-items:start; }
.support-workspace > * { min-width:0; }
.workspace-tabs { display:flex; flex-wrap:wrap; gap:10px; padding:0 0 22px; margin-bottom:24px; border-bottom:1px solid var(--line); }
.workspace-filters { display:flex; flex-wrap:wrap; gap:16px; align-items:end; margin:20px 0; }
.workspace-filters .field { flex:1 1 180px; margin:0; }
.support-inspector { display:grid; gap:20px; padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.support-inspector .inspector { padding:0; border:0; background:transparent; }
.support-inspector h2 { font-size:20px; margin:0; }
.support-inspector h3 { margin:0 0 14px; }
.workspace-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.workspace-actions .field { margin:0; }
.sound-line { padding:24px 0; border-bottom:1px solid var(--line); }
.sound-line blockquote { margin:14px 0 22px; padding-left:16px; border-left:3px solid var(--line); font-size:18px; line-height:1.6; white-space:pre-wrap; }
.sound-line .section-heading { margin:0; align-items:start; }
.sound-line .caption { margin:6px 0; }
.status-chip { font-size:12px; color:var(--muted); border:1px solid var(--line); padding:5px 9px; border-radius:20px; white-space:nowrap; }
.voice-takes { margin-top:16px; }
.voice-takes .workspace-actions { padding-top:12px; }
.custom-narration,.writing-help,.asset-upload { margin:28px 0; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.custom-narration > summary,.writing-help > summary,.asset-upload > summary,.voice-takes > summary { cursor:pointer; font-weight:600; padding:4px 0; }
.custom-narration .support-workspace { margin-top:24px; }
.custom-narration h1 { font-size:24px; }
.asset-upload .field { margin-top:16px; max-width:450px; }
.asset-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:22px; }
.asset-tile { min-width:0; text-align:left; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--panel); color:var(--text); padding:0; }
.asset-tile > strong { display:block; padding:14px; }
.asset-preview { display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:16/10; border:0; background:var(--bg); color:var(--muted); cursor:pointer; padding:0; overflow:hidden; }
.asset-preview svg { width:44px; height:44px; }
.asset-tile img { width:100%; aspect-ratio:16/10; object-fit:contain; display:block; background:var(--bg); color:var(--muted); }
.asset-tile-body { padding:18px; }
.asset-tile h3 { font-size:16px; font-weight:600; line-height:1.5; margin:0 0 8px; overflow-wrap:anywhere; }
.asset-tile .workspace-actions { margin-top:16px; }
.asset-origin { display:block; text-align:left; background:transparent; color:var(--accent); border:0; padding:6px 0; cursor:pointer; font:inherit; font-size:13px; }
.asset-origin:hover { text-decoration:underline; }
.review-checks { padding-left:20px; margin:0; line-height:1.7; }
.review-checks li { margin:10px 0; }
.review-warning { background:#f5eddd; color:#76552c; padding:16px; border-radius:8px; }
.workspace-activity { font-size:13px; }
.support-workspace button:focus-visible,.workspace-tabs button:focus-visible,.asset-tile button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:1000px) { .v1-studio .support-workspace { grid-template-columns:1fr; } .support-inspector { max-width:none; } }
@media(max-width:600px) { .asset-grid { grid-template-columns:1fr; } .workspace-filters { display:grid; grid-template-columns:1fr; } .status-chip { white-space:normal; } .sound-line blockquote { font-size:16px; } }

/* Supporting workspaces use the same Paper surfaces as the production pages. */
.support-inspector .model-control, .custom-narration .model-control { background:transparent; color:var(--text); border:0; padding:0; margin:0; }
.support-inspector .model-control .caption { color:var(--muted); }
.shell.assistant-open .support-workspace { grid-template-columns:minmax(0,1fr); }
.asset-activity { padding:18px; border:1px solid var(--line); border-radius:10px; margin-bottom:20px; }
.asset-activity summary { cursor:pointer; font-weight:600; }
.asset-activity .workspace-actions { margin-top:14px; }

.shell.assistant-open .support-inspector { grid-row:1; }
.support-workspace .empty-surface { min-height:180px; padding:24px; }
.asset-tile img:not([src]) { visibility:hidden; }

/* Supporting work stays legible within the available page width, including chat. */
.sound-line { display:block; min-width:0; }
.sound-line h3 { font-size:16px; overflow-wrap:anywhere; }
.sound-line .workspace-actions { align-items:flex-end; margin-top:16px; }
.sound-line .workspace-actions .field { flex:0 1 220px; min-width:160px; }
.support-workspace .section-heading { gap:16px; flex-wrap:wrap; }
.support-workspace > section > .section-heading:first-child { margin-top:0; }
.support-workspace .section-heading > div { min-width:0; flex:1; }
.support-workspace .section-heading .button { flex-shrink:0; }
.support-inspector { gap:16px; }
.support-inspector .field { min-width:0; }
.support-inspector .checks { display:flex; flex-direction:row; align-items:center; gap:10px; }
.support-inspector .checks input { width:18px; height:18px; min-height:0; margin:0; flex:none; }
.support-inspector > h3 { margin:0; }
.support-inspector > .caption { margin:0; }
.support-inspector .button { white-space:normal; }
.asset-tile { display:flex; flex-direction:column; }
.asset-preview { flex:none; background:var(--raised); }
.asset-tile-body { display:flex; flex-direction:column; flex:1; }
.asset-tile-body > .workspace-actions { margin-top:auto; padding-top:16px; }
.asset-origin { overflow-wrap:anywhere; }
.workspace-filters .field { min-width:0; }
.support-workspace [role=status]:empty { display:none; }
.delivery-preview { display:block; }
@container workspace (max-width:850px) {
 .v1-studio .support-workspace { grid-template-columns:minmax(0,1fr); }
 .cut-workspace, .cut-workspace.episode-scope.has-audio-selection { grid-template-columns:minmax(0,1fr); }
 .cut-scope { flex-wrap:wrap; }
}
@container workspace (max-width:500px) {
 .workspace-filters { display:grid; grid-template-columns:minmax(0,1fr); }
 .asset-grid { grid-template-columns:minmax(0,1fr); }
 .sound-line .section-heading { align-items:flex-start; }
 .sound-line .status-chip { white-space:normal; }
 .cut-scope .field { width:100%; min-width:0; }
}
.cut-workspace > section { min-width:0; }
.cut-editor .edit-controls label { display:flex; align-items:center; gap:8px; }
.cut-editor .edit-controls input { min-height:var(--control); border:1px solid var(--line); border-radius:var(--radius); padding:8px; font:inherit; }
.cut-editor [data-rendered-preview] { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; }
.cut-editor .edit-inspector { display:grid; gap:12px; }
.cut-editor .episode-scope:not(.has-audio-selection) .edit-inspector { display:none; }
.cut-editor .edit-inspector .button { white-space:normal; }
.cut-editor .edit-inspector .field { margin:0; }
.cut-editor .edit-clip { background:var(--accentbg); color:var(--text); border-color:var(--line); }
:root[data-theme=paper] .cut-alert { background:#f5eddd; color:#76552c; border-color:#dfcda9; }
:root[data-theme=paper] .cut-warning { color:#76552c; }

.support-inspector .field:has(>input[type=checkbox]) { display:flex; flex-direction:row; align-items:center; gap:10px; }
.support-inspector .field>input[type=checkbox] { order:-1; width:18px; height:18px; min-height:0; margin:0; flex:none; }

/* Image actions follow the paper theme with restrained destructive emphasis. */
.image-management-actions { display:flex; justify-content:flex-end; gap:8px; padding:8px 12px; }
.button.image-delete-action { color:#943e39; background:#fff8f7; border:1px solid #dcc0bc; }
.button.image-delete-action:hover { background:#f8e9e6; border-color:#b87972; }
.deleted-frame-list { margin:8px 0 16px; }
.deleted-frame-row { display:flex; align-items:center; gap:12px; padding:10px 0; flex-wrap:wrap; }
.deleted-frame-row img { width:72px; height:48px; object-fit:contain; border-radius:6px; }
.deleted-frame-row .button { margin-left:auto; }
