/* Shared workspace hierarchy and comfortable production controls. */
.workspace-navigation{padding:0 28px;border-bottom:1px solid #d9dfd1;background:#faf9f4}.workspace-groups{display:flex;gap:6px}.workspace-groups button{flex:1;border:0;border-radius:7px 7px 0 0;background:none;padding:13px 8px;font-size:14px;color:#576953;cursor:pointer;min-height:46px}.workspace-groups button[aria-current]{color:#fff;background:#273f36;font-weight:600}.workspace-mobile-location{display:none}.workspace-subnav.workspace-tabs{display:block;margin:0;min-height:0;overflow:visible;border:0}.workspace-subnav>div:not([hidden]){display:flex;gap:24px;flex-wrap:wrap}.workspace-subnav>div[hidden]{display:none}.workspace-subnav button{border:0;border-bottom:2px solid transparent;padding:13px 2px;background:none;font-size:14px;color:#5c6c55;cursor:pointer;min-height:44px}.workspace-subnav button.active{border-bottom-color:#355841;color:#273f36;font-weight:600}.workspace-subnav button:focus-visible,.workspace-groups button:focus-visible{outline:2px solid #8c673a;outline-offset:-3px}
.project-heading{padding:16px 28px 14px;align-items:center}.project-heading h1{font-size:26px}.is-editor .project-heading .eyebrow{display:none}.project-subtitle{margin-top:8px;font-size:12px;color:#5c6b54}.project-subtitle>span:first-child{font-size:12px}.project-heading-actions{padding-top:0}.project-heading-actions .btn{font-size:13px;min-height:38px}.is-overview .project-heading>div:first-child{display:none}.is-overview .project-heading{justify-content:flex-end;padding-top:10px;padding-bottom:10px}.topbar{height:56px}.breadcrumb{font-size:12px;color:#5b6c55}
.chapter-item-title{font-size:13px;color:#40583e}.chapter-item-title small,.chapter-number,.sidebar-section-label,.sidebar-book-meta,.connection-status{font-size:12px;color:#63755b}.chapter-item{padding:12px 10px}.chapter-search input{font-size:13px}.sidebar-bottom small{font-size:12px;color:#63755b}
:is(.workspace,.packs-workspace,.book-workspace,.assets-workspace,.production-workspace,.director-workspace,.world-workspace,.lore-workspace) :is(p,label,input,textarea,select,.btn){font-size:14px}:is(.workspace,.packs-workspace,.book-workspace,.assets-workspace,.production-workspace,.director-workspace) :is(p,label){color:#526449}:is(.workspace,.packs-workspace,.book-workspace,.assets-workspace,.production-workspace,.director-workspace) .text-btn{font-size:13px;color:#41603e}.btn:disabled{opacity:.6}.section-kicker{font-size:11px}.small-note{font-size:12px!important;color:#617253!important}
:is(.workspace,.packs-workspace,.book-workspace,.assets-workspace,.production-workspace,.director-workspace,.world-workspace){padding:22px 28px 32px}:is(.packs-heading,.book-heading,.section-header,.director-heading,.production-heading){margin-bottom:16px}:is(.packs-heading,.book-heading,.section-header,.director-heading,.production-heading) .section-kicker{display:none}:is(.packs-heading,.book-heading,.section-header,.director-heading,.production-heading) h2{font-size:23px;margin:0 0 7px}:is(.packs-heading,.book-heading,.section-header,.director-heading,.production-heading) p{margin:0;line-height:1.7}
.book-run{padding:16px;gap:12px}.book-run small{display:none}.book-callout,.pack-service-note{font-size:13px;padding:10px 14px;margin:10px 0 14px;line-height:1.7}.book-actions{gap:8px}.book-actions>.btn{min-height:38px}.book-actions>span{font-size:12px}.book-era-settings{margin:12px 0}.book-era-settings summary{font-size:14px}.book-material-card p{line-height:1.75}
.packs-heading h2{font-size:23px}.pack-overview{padding:12px 16px;gap:20px;margin-bottom:14px}.pack-switch{max-width:620px;flex:1}.pack-completion strong{font-size:22px}.pack-completion{min-width:130px}.pack-edit-heading{gap:12px;justify-content:space-between;margin-bottom:12px}.pack-more{position:relative}.pack-more summary{cursor:pointer;padding:11px;border:1px solid #d1d9c9;border-radius:7px;background:#fffef9;font-size:14px}.pack-more[open]>div{position:absolute;top:48px;left:0;z-index:22;width:300px;max-width:calc(100vw - 44px);padding:16px;background:#fffdf7;box-shadow:0 8px 30px #203a2826;border:1px solid #d3daca;border-radius:9px;display:grid;gap:12px}.pack-more input{width:100%;margin-top:8px}.pack-toolbar{padding:10px 0;gap:12px}.pack-run[hidden]{display:none}.pack-run:not([hidden]){padding:8px 12px;border-radius:7px;background:#e7eedd;display:flex;gap:12px}.pack-view-switch{display:flex;align-items:center;gap:16px;margin:12px 0;color:#63705b;font-size:12px}.pack-view-switch [aria-pressed=true]{font-weight:700;text-decoration:underline;text-underline-offset:5px}.pack-compact .pack-task-main{padding:11px 14px;gap:14px}.pack-compact .pack-task-visual{height:58px;width:50px}.pack-compact .pack-task-visual.background{width:88px}.pack-task-info h3{font-size:17px}.pack-task-kind,.pack-status,.pack-task-info p{font-size:12px!important;color:#526349}.pack-prompt-details summary{padding:10px 14px;font-size:13px}.pack-prompt-details summary>span{font-size:12px}.pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.pack-grid .pack-task-main{flex-wrap:wrap;align-items:flex-start}.pack-grid .pack-task-visual{width:100%;height:150px;order:-1}.pack-grid .pack-task-visual.background{width:100%;height:150px}.pack-grid .pack-task-controls{flex-direction:row;width:100%;justify-content:space-between}.pack-grid .pack-prompt-details summary>span{display:none}.artwork-methods{display:grid;gap:14px;margin:20px 0}.pack-task-drawer{inset:0 0 0 auto;margin:0;width:min(620px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;box-sizing:border-box;padding:30px;overflow:auto}.pack-task-drawer h2{padding-right:32px;font-size:23px}.pack-task-drawer textarea{width:100%;box-sizing:border-box;min-height:250px;font:14px/1.7 system-ui}.pack-task-drawer .pack-bilingual-brief{font-size:14px;white-space:pre-wrap;line-height:1.8}.pack-task-drawer .modal-footer{position:sticky;bottom:-30px;background:#fffdf7;padding:14px 0;z-index:1}.pack-footer{font-size:12px}
.chapter-toolbar{margin-bottom:14px}.chapter-toolbar h2{font-size:21px;line-height:1.5}.chapter-meta{font-size:12px}.chapter-tools .btn{font-size:13px;min-height:38px}.warnings{font-size:13px;margin-bottom:14px}.warnings summary>span{font-size:12px}.workbench-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px}.preview-panel{position:sticky;top:16px;align-self:start}.script-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 280px);min-height:380px}.script-lines{min-height:0;overflow-y:auto;flex:1;max-height:none}.script-line{padding:14px 16px;gap:12px}.script-line textarea{font-size:16px;line-height:1.8}.script-line .line-controls select{font-size:13px;padding:7px}.line-details label,.line-details select,.preview-line-btn{font-size:12px!important}.scene-picker label{font-size:13px}.script-footer{flex-shrink:0;padding:12px 16px;font-size:12px}.editor-view-switch{display:none}.preview-description p{font-size:14px;color:#56694d}.compact .vn-text{font-size:15px}
.director-heading{position:sticky;top:0;background:#f7f5ee;z-index:12;padding:9px 0}.director-layout{grid-template-columns:190px minmax(0,1fr) 300px;gap:16px}.director-timeline,.director-properties{max-height:calc(100dvh - 265px);overflow:auto;min-height:280px}.director-lines{max-height:none}.director-main{top:12px}.director-source p{font-size:14px}.director-properties label{font-size:13px}.director-lines button{font-size:14px}.director-lines button small{font-size:12px}#director-preview{height:min(45vh,430px)}.director-property-group{margin-bottom:14px}.director-property-group>summary{font-size:15px;font-weight:600;cursor:pointer;padding:12px 0;border-bottom:1px solid #dce1d3;margin-bottom:14px}
.asset-grid .asset-card-copy p{font-size:13px;line-height:1.7;color:#55664d}.asset-grid .asset-card-copy h4{font-size:18px}.asset-view-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.asset-view-tools button[aria-pressed=true]{font-weight:700;text-decoration:underline}.assets-workspace[data-asset-view=list] .asset-grid{grid-template-columns:1fr}.assets-workspace[data-asset-view=list] .asset-card{display:grid;grid-template-columns:100px minmax(0,1fr)}.assets-workspace[data-asset-view=list] .asset-visual{height:120px;aspect-ratio:auto}.assets-workspace[data-asset-view=list] .asset-card-copy{padding:14px}.assets-workspace[data-asset-view=list] .asset-card-copy p{max-width:none}.world-book{padding-bottom:22px;margin-bottom:20px}.world-book-cover{width:135px;min-height:180px}.world-book-copy h1{font-size:30px}.world-book-copy small{font-size:13px}.world-production{padding:18px;margin-bottom:24px}.world-more summary{cursor:pointer;font-size:14px;padding:16px 0;color:#426342}.world-entry p{font-size:13px;color:#526449}.world-entry-grid{gap:16px}.world-entry{min-height:150px}.world-entry h3{font-size:16px}
@media(max-width:1250px){.pack-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.director-layout{grid-template-columns:170px minmax(0,1fr)}.director-properties{grid-column:1/-1;max-height:none;display:block}.director-timeline{max-height:65vh}.director-main{position:static}#director-form{display:block}}
@media(max-width:760px){.topbar{height:52px;padding:0 16px}.project-heading{padding:10px 16px;gap:8px}.project-heading h1{font-size:21px;line-height:1.4}.project-subtitle{font-size:12px;gap:6px}.project-subtitle>span:first-child{font-size:11px}.project-heading-actions{gap:6px;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;max-width:160px}.project-heading-actions .btn{font-size:12px;min-height:36px;padding:6px 9px}.project-heading-actions [data-action=batch]{display:none}.workspace-navigation{padding:8px 16px 0}.workspace-groups{display:none}.workspace-mobile-location{display:flex;align-items:center;gap:12px;font-size:12px;color:#53674a}.workspace-mobile-location select{flex:1;min-width:0;padding:9px;background:#fffdf7;border:1px solid #d5ddcd;border-radius:7px;min-height:44px;font-size:14px;color:#273f36}.workspace-subnav>div:not([hidden]){gap:20px}.workspace-subnav button{font-size:13px;padding:11px 0;min-height:44px}:is(.workspace,.packs-workspace,.book-workspace,.assets-workspace,.production-workspace,.director-workspace,.world-workspace){padding:16px}:is(.packs-heading,.book-heading,.section-header,.director-heading,.production-heading) h2{font-size:20px}:is(.packs-heading,.book-heading,.section-header,.director-heading,.production-heading) p{display:none}:is(.workspace,.packs-workspace,.book-workspace,.assets-workspace,.director-workspace,.production-workspace) .btn{min-height:44px;font-size:13px;padding:9px 12px}.pack-service-note{margin:8px 0;padding:8px 10px;flex-direction:row;align-items:center;gap:8px}.pack-service-note>span{font-size:12px}.pack-service-note>span strong{display:none}.pack-service-note .text-btn{min-width:70px}.pack-overview{gap:9px;padding:12px}.pack-completion{display:flex;align-items:center;gap:12px;width:100%}.pack-completion>span{font-size:12px}.pack-completion progress{flex:1;max-width:130px}.pack-switch label,.pack-switch{font-size:12px}.pack-edit-heading{flex-wrap:wrap;gap:8px}.pack-edit-heading .pack-actions{flex:1;justify-content:flex-end;gap:6px}.pack-edit-heading .pack-actions>.btn{padding:8px;font-size:12px;min-height:40px}.pack-edit-heading [data-pack=save]:disabled{display:none}.pack-toolbar{padding:8px 0;gap:8px}.pack-filter{width:100%;justify-content:space-between}.pack-filter select{font-size:13px;max-width:150px}.pack-run:not([hidden]){width:100%;margin:0}.pack-view-switch{gap:14px;margin:10px 0}.pack-small-note{font-size:12px}.pack-compact .pack-task-main{flex-wrap:nowrap;padding:10px;gap:9px;align-items:center}.pack-compact .pack-task-visual{width:42px;min-width:42px;height:52px}.pack-compact .pack-task-visual.background{width:55px;min-width:55px}.pack-compact .pack-task-controls{width:auto;padding:0;flex-direction:column;flex-shrink:0;gap:6px}.pack-compact .pack-task-controls .btn{font-size:12px;min-height:40px;padding:7px}.pack-task-info{min-width:0}.pack-task-info h3{font-size:15px;overflow-wrap:anywhere}.pack-task-info p{display:none}.pack-prompt-details summary{min-height:40px;font-size:13px;display:flex;align-items:center}.pack-prompt-details summary>span{display:none}.pack-grid{grid-template-columns:1fr}.pack-task-drawer{padding:24px 16px}.artwork-methods .btn{min-height:48px}.book-run{display:block;padding:12px}.book-run>div:last-child{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.book-run p{font-size:13px!important}.book-callout{padding:8px 10px;font-size:13px}.book-actions{gap:8px}.book-actions>.btn{font-size:13px}.editor-view-switch{display:flex;gap:8px;margin:12px 0}.editor-view-switch button{flex:1;min-height:44px;background:#fffdf7;border:1px solid #d2dccb;border-radius:7px;font-size:14px;color:#42603d}.editor-view-switch button[aria-pressed=true]{background:#273f36;color:white}.workbench-grid{display:block}.workspace[data-editor-view=edit] .preview-panel,.workspace[data-editor-view=preview] .script-panel{display:none}.script-panel{max-height:none;min-height:0}.script-lines{max-height:none}.preview-panel{position:static}.chapter-toolbar{gap:10px}.chapter-toolbar h2{font-size:18px}.chapter-tools{gap:8px}.chapter-tools .btn{font-size:12px;padding:8px}.chapter-meta{font-size:12px}.scene-picker{display:block}.scene-picker label{margin-bottom:10px}.script-footer{position:sticky;bottom:0;background:#fffdf7;z-index:4}.director-heading{position:static;gap:10px}.director-layout{display:flex;flex-direction:column}.director-timeline,.director-main,.director-properties{width:100%;box-sizing:border-box;max-height:none;min-height:0}.director-timeline{order:0}.director-lines{max-height:200px}.director-main{order:1}.director-properties{order:2}#director-preview{height:380px}.world-book{gap:16px;align-items:flex-start}.world-book-cover{width:85px;min-width:85px;min-height:135px;height:135px}.world-book-copy h1{font-size:22px}.world-hero-actions{gap:8px}.world-book-copy small{display:block;font-size:12px}.world-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-entry{padding:14px;min-height:140px}.world-entry h3{font-size:14px}.world-entry p{font-size:12px}.asset-view-tools{gap:12px}.assets-workspace[data-asset-view=list] .asset-card{grid-template-columns:80px minmax(0,1fr)}.world-production{padding:14px}.world-production small{font-size:12px}}
.mobile-batch-entry{display:none}
@media(max-width:760px){.project-heading{display:block;padding:10px 16px}.project-heading>div:first-child{min-width:0}.project-heading h1{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.5}.project-heading h1 .icon-btn{display:none}.project-heading-actions{display:none}.project-subtitle{white-space:nowrap;flex-wrap:nowrap;margin-top:4px}.project-subtitle>span:first-child{flex-shrink:0}.mobile-batch-entry{display:inline-block}.workspace .chapter-toolbar .eyebrow{display:none}.scene-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:12px}.scene-picker label{min-width:0}.scene-picker select{width:100%;font-size:13px}.packs-heading{align-items:center;flex-direction:row;gap:10px;margin:0 0 12px}.packs-heading .pack-actions{margin:0}.packs-heading h2{margin:0;font-size:21px}.pack-service-note{border:0;background:none;justify-content:flex-end;margin:0 0 8px;padding:0}.pack-service-note>span{display:none}.pack-service-note>.text-btn{font-size:12px;min-height:28px}.pack-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px;margin-bottom:10px}.pack-switch{grid-column:1/-1;min-width:0!important;width:100%;max-width:none;font-size:0!important}.pack-switch select{font-size:14px;margin-top:0;min-height:40px}.pack-completion{min-width:0;width:auto;gap:8px;font-size:12px}.pack-completion progress{max-width:100px}.pack-completion strong{font-size:18px}.pack-overview>[data-pack=refresh]{margin:0;grid-column:2;grid-row:2;font-size:12px}.pack-view-switch{margin:8px 0}.pack-toolbar{margin:0}.pack-compact .pack-task-controls .btn{font-size:12px}.pack-more>summary{min-height:40px;box-sizing:border-box}}
.script-line .line-controls select{height:auto;min-height:36px;line-height:1.4}.script-line .line-source{font-size:12px;min-height:36px}.script-line .line-details select{height:auto;min-height:32px}
.unadapted-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.chapter-batch-range summary{cursor:pointer;margin-bottom:8px}
.chapter-batch-range .form-grid{margin:8px 0 12px}
.chapter-item-title small .chapter-state{font-weight:600;color:#647968}
.chapter-item-title small .chapter-state[data-stage="ready"]{color:#28624f}
.chapter-item-title small .chapter-state[data-stage="artwork"],.chapter-item-title small .chapter-state[data-stage="layout"]{color:#8b622c}
.chapter-visual-next{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:8px 12px;margin:0 0 12px;border:1px solid #e0e6d9;border-radius:8px;background:#f4f6ee;color:#53654b}
.chapter-visual-next details{width:100%}
.chapter-visual-next summary{width:fit-content;cursor:pointer;color:#785925;font-weight:600}
.chapter-visual-next ul{list-style:none;margin:8px 0 0;padding:0;max-height:20rem;overflow:auto}
.chapter-visual-next li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #e0e6d9}
.chapter-visual-next li>span{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.chapter-visual-next li small{display:block;color:#53654b}
.chapter-review-details{padding:8px 12px;margin:0 0 12px;border:1px solid #e1dfd1;border-radius:8px;background:#faf8ef;color:#59624f}
.chapter-review-details summary{cursor:pointer;font-weight:600;color:#785925}
.chapter-review-details ul{list-style:none;margin:8px 0 0;padding:0;max-height:20rem;overflow:auto}
.chapter-review-details li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #e1dfd1}
.chapter-review-details li>span{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.chapter-review-details li small{display:block}
.artwork-link-chapters{max-height:48vh;overflow:auto;padding-right:6px}
.artwork-link-chapter{padding:10px 12px;margin:0 0 8px;border:1px solid #dce4d7;border-radius:8px}
.artwork-link-chapter summary{cursor:pointer;font-weight:600}
.artwork-link-chapter summary span{margin-left:8px;color:#647968;font-weight:400}
.artwork-link-chapter label{margin:8px 0}
.existing-artwork-preview{max-width:100%;max-height:230px;object-fit:contain;margin:10px auto 0}
.existing-artwork-preview:not([hidden]){display:block}
.artwork-import-result{margin-top:10px;padding:10px 12px;border:1px solid #dce4d7;border-radius:8px}
.artwork-import-result p,.artwork-link-chapter p{margin:3px 0 6px}
.analysis-alerts{margin:12px clamp(16px,3vw,40px) 0;display:grid;gap:8px}
.analysis-alerts[hidden]{display:none}
.analysis-alert{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;border:1px solid #e1caa0;border-radius:10px;background:#fbf4e6;color:#524324;overflow-wrap:anywhere}
.analysis-alert p{margin:4px 0 0;font-size:.875rem;line-height:1.45}
.analysis-alert-actions{display:flex;flex-wrap:wrap;gap:8px}
.book-evidence-review{margin:12px 0;padding:12px 16px;border:1px solid #e1caa0;border-radius:10px;background:#fbf4e6}
.book-evidence-review summary{cursor:pointer;font-weight:600}
.book-evidence-review details{margin:10px 0;padding:8px 0;border-top:1px solid #e1caa0}
.book-evidence-review li p{margin:4px 0 10px}
