@charset "UTF-8";
:root{--ink:#252c28;--muted:#7d8780;--line:#e3e7e3;--canvas:#f4f5f2;--paper:#fff;--pine:#425f4b;--pine-soft:#eaf0eb;--coral:#bd6b58;--amber:#ad8248;--rail:#f9faf8;--sidebar:264px;--inspector:306px}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--canvas);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:13px}.studio-body{overflow:hidden}.topbar{height:58px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 22px;gap:28px}.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink);flex:none}.brand-mark{height:30px;width:30px;background:#bd705b;color:white;border-radius:6px;display:grid;place-items:center;font-weight:700;font-size:16px}.brand-title{font-size:13px;font-weight:650}.project-name{height:30px;min-width:175px;border-left:1px solid var(--line);padding-left:19px;display:flex;align-items:center;gap:8px;font-size:11px;color:#5d675f}.project-light,.save-indicator i,.live-dot,.model-led{width:7px;height:7px;border-radius:50%;background:#77a17d;display:inline-block}.muted-caret{color:#969e98;margin-left:auto}.top-nav{height:100%;display:flex;gap:20px}.top-nav-link{height:100%;display:flex;align-items:center;padding:0 3px;text-decoration:none;color:#7c857e;font-size:11px;border-bottom:2px solid transparent}.top-nav-link.active{color:#35483b;border-color:#62826b}.topbar-right{margin-left:auto;display:flex;align-items:center;gap:15px}.model-pill{font-size:10px;color:#947548;background:#f5f1e9;border-radius:3px;padding:6px 8px}.model-pill i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#c59a5a;margin-right:5px}.top-icon,.square-button{width:29px;height:29px;border:1px solid var(--line);border-radius:4px;background:#fff;color:#778078;font-size:17px;line-height:1}.user-mark{display:grid;place-items:center;background:#4d6b55;color:white;width:27px;height:27px;border-radius:50%;font-size:10px}.studio-page{height:calc(100vh - 58px);display:grid;grid-template-columns:var(--sidebar) minmax(400px,1fr) var(--inspector);min-height:530px}.studio-page.is-library{display:none}.sequence-rail{background:var(--rail);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.rail-heading{height:76px;padding:18px 15px 12px 18px;display:flex;align-items:center;justify-content:space-between}.overline{font-size:9px;letter-spacing:1.15px;color:#8b948d;font-weight:650}.rail-heading h1{font-size:14px;margin:4px 0 0;font-weight:650}.square-button{font-size:17px;border-color:#dfe5df;color:#526d58}.square-button.light{border:0;background:#f1f4f1}.episode-filter{padding:0 15px 14px;border-bottom:1px solid var(--line)}.episode-filter label{display:block;color:#919a92;font-size:9px;margin-bottom:5px}.episode-filter .form-select{height:30px;font-size:10px;border-color:#e0e5e0;border-radius:4px;padding-top:4px;padding-bottom:4px}.sequence-list{overflow:auto;flex:1;padding:9px 8px}.sequence-item{width:100%;min-height:51px;border:0;border-radius:4px;background:transparent;display:flex;align-items:center;text-align:left;gap:9px;padding:7px 8px;margin:1px 0;color:#354038}.sequence-item:hover{background:#f0f3f0}.sequence-item.selected{background:#e9efea;box-shadow:inset 2px 0 #5e8066}.sequence-index{width:24px;height:24px;display:grid;place-items:center;border:1px solid #dfe5df;border-radius:3px;font-size:9px;color:#818a82;flex:none}.selected .sequence-index{background:#526d59;color:white;border-color:#526d59}.sequence-copy{min-width:0;flex:1}.sequence-copy b,.sequence-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sequence-copy b{font-size:10px;font-weight:600}.sequence-copy small{font-size:9px;color:#89928a;margin-top:4px}.sequence-chevron{color:#9ba39c;font-size:16px}.rail-loading,.rail-empty{padding:20px 12px;color:#919991;font-size:10px;line-height:1.8}.rail-bottom{height:42px;border-top:1px solid var(--line);display:flex;align-items:center;gap:7px;padding:0 15px;color:#929a93;font-size:9px}.model-led{background:#c69b5c}.creator-main{min-width:0;min-height:0;overflow:auto;padding:0 24px 18px;background:#f5f6f3}.creator-toolbar{height:43px;display:flex;align-items:center;justify-content:space-between}.breadcrumbs{display:flex;gap:9px;align-items:center;font-size:9px;color:#9aa19b}.breadcrumbs strong{color:#536158;font-weight:600}.toolbar-actions{display:flex;align-items:center;gap:12px}.save-indicator{color:#949c95;font-size:9px}.save-indicator i{width:6px;height:6px;margin-right:4px}.toolbar-icon{border:0;background:transparent;color:#7f8980;font-size:16px}.scene-context{height:66px;display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.scene-kicker{font-size:8px;letter-spacing:1px;color:#9b8058;font-weight:650}.scene-context h2{font-size:17px;margin:4px 0 3px;font-weight:650}.scene-context p{font-size:9px;color:#848d85;margin:0;max-width:650px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text-button{padding:5px 4px;border:0;background:none;color:#617967;font-size:9px;white-space:nowrap}.text-button:hover{color:#354e3c}.text-button:disabled,.primary-button:disabled,.secondary-button:disabled,.danger-button:disabled{opacity:.45;cursor:not-allowed}.scene-context .text-button span{font-size:12px;margin-left:3px}.preview-stage{height:clamp(210px,38vh,405px);aspect-ratio:16/9;max-width:100%;position:relative;background:#e8ebe7;border:1px solid #dfe3df;overflow:hidden;display:flex;align-items:center;justify-content:center}.preview-media{position:absolute;inset:0;display:grid;place-items:center}.stage-image{height:100%;width:100%;object-fit:contain;background:#e8ebe7}.preview-empty{display:flex;align-items:center;flex-direction:column;gap:7px;color:#778078;text-align:center}.empty-frame-icon{height:40px;width:53px;border:1px solid #c9d0c9;display:grid;place-items:center;border-radius:2px;color:#87928a;font-size:19px;margin-bottom:4px}.preview-empty strong{font-size:11px;font-weight:600;color:#58635b}.preview-empty>span:not(.empty-frame-icon){font-size:9px}.preview-empty small{font-size:8px;color:#969d97}.preview-top-label,.preview-bottom{position:absolute;z-index:1;display:flex;align-items:center;gap:7px;background:#fffE;padding:6px 8px;color:#69736b;font-size:8px;border:1px solid #dfe3de;border-radius:2px}.preview-top-label{left:10px;top:10px}.live-dot{width:6px;height:6px;background:#c79652}.preview-bottom{bottom:10px;left:10px;right:10px;justify-content:space-between}.preview-format{color:#9ba29b}.reference-overlay{position:absolute;right:10px;top:10px;padding:5px 7px;background:#222c26b5;color:#fff;font-size:8px}.shot-section-heading{height:58px;display:flex;align-items:flex-end;justify-content:space-between;padding-bottom:9px}.shot-section-heading h2{font-size:12px;margin:3px 0 0;font-weight:650}.shot-section-heading h2 small{font-size:9px;color:#939b94;font-weight:400;margin-left:4px}.shot-tools{display:flex;align-items:center;gap:13px}.primary-button,.secondary-button,.danger-button{min-height:30px;padding:0 11px;border-radius:4px;border:1px solid transparent;font-size:9px;white-space:nowrap}.primary-button{background:#425f4b;color:#fff}.primary-button:hover{background:#334d3b;color:#fff}.primary-button span{font-size:14px;vertical-align:-1px;margin-right:3px}.secondary-button{background:#fff;border-color:#dfe4df;color:#57645a}.danger-button{background:#fff;border-color:#eadeda;color:#a85f53}.shot-strip{min-height:115px;display:flex;gap:8px;align-items:stretch;overflow-x:auto;padding:2px 0 8px}.shot-tile{width:120px;min-width:120px;text-align:left;padding:5px;background:transparent;border:1px solid transparent;border-radius:4px;color:#364039}.shot-tile:hover{background:#fff}.shot-tile.active{background:#fff;border-color:#8ca591;box-shadow:0 0 0 1px #8ca591}.tile-index{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#717a72;padding:0 1px 4px}.tile-index i{font-size:7px;font-style:normal;color:#929a93}.shot-tile.active .tile-index i{color:#517359}.tile-image{height:57px;display:grid;place-items:center;background:#e8ebe7;border:1px solid #dfe4de;overflow:hidden}.tile-image img{width:100%;height:100%;object-fit:cover}.tile-placeholder{color:#9aa39a;font-size:13px}.shot-tile>b,.shot-tile>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shot-tile>b{font-size:9px;margin-top:5px;font-weight:600}.shot-tile>small{font-size:8px;color:#909890;margin-top:3px}.shot-add-tile{width:36px;min-width:36px;background:transparent;border:1px dashed #cbd3cb;color:#6c836f;border-radius:3px;font-size:18px}.shot-add-tile:hover,.shot-add-empty:hover{background:#edf2ed}.shot-empty{min-height:105px;width:100%;display:grid;place-items:center;color:#8c958d;font-size:10px;border-bottom:1px solid var(--line)}.shot-add-empty{min-width:220px;background:transparent;border:1px dashed #cbd3cb;border-radius:4px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#607663}.shot-add-empty>span{font-size:20px}.shot-add-empty>b{font-size:10px}.shot-add-empty>small{color:#969e97;font-size:8px}.model-notice{min-height:34px;border-top:1px solid var(--line);display:flex;align-items:center;gap:7px;color:#919990;font-size:8px}.notice-mark{width:13px;height:13px;display:grid;place-items:center;border:1px solid #d6ddd6;border-radius:50%;font-size:8px}.notice-link{margin-left:auto;border:0;background:none;color:#6e8371;font-size:8px}.inspector{background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.inspector-head{height:59px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid var(--line)}.inspector-head h2{font-size:12px;margin:3px 0 0;font-weight:650}.inspector-content{padding:4px 15px;flex:1;overflow:auto}.inspector-empty{font-size:10px;color:#939b94;line-height:1.8;padding:20px 0}.inspector-section{padding:12px 0;border-bottom:1px solid #edf0ed}.inspector-label{font-size:9px;color:#89928b;margin-bottom:8px}.state-badge{font-size:9px;color:#9c7846;background:#f5f1e8;border-radius:3px;padding:5px 7px;display:inline-flex;align-items:center;gap:5px}.state-badge i{width:6px;height:6px;border-radius:50%;background:#c59a5b}.state-badge.confirmed{color:#4e7057;background:#edf3ee}.state-badge.confirmed i{background:#73a07b}.actor-line{display:flex;align-items:center;gap:8px}.actor-avatar{display:grid;place-items:center;width:28px;height:28px;background:#e9efea;color:#54715a;border-radius:50%;font-size:11px}.actor-line b,.actor-line small{display:block}.actor-line b{font-size:10px}.actor-line small{font-size:8px;color:#919991;margin-top:4px}.dialogue-text{font-size:10px;line-height:1.8;color:#354039}.inspector-value{font-size:9px;line-height:1.7;color:#4d5850;overflow-wrap:anywhere}.inspector-value small{display:block;font-size:8px;color:#8c958e;margin-top:4px}.inspector-value.muted{color:#949c95}.continuity-box,.continuity-change{padding:8px;background:#f5f7f4;border-left:2px solid #93aa96}.continuity-change{background:#fbf7f1;border-left-color:#c6a068;margin-top:6px}.continuity-box small,.continuity-change small{font-size:8px;color:#8b948b}.continuity-box p,.continuity-change p{font-size:9px;color:#566058;line-height:1.65;margin:4px 0 0}.generation-state{display:flex;justify-content:space-between;gap:6px;font-size:8px;color:#808980;padding:3px 0}.generation-state b{font-weight:500;color:#a27e49;text-align:right}.inspector-actions{padding:11px 14px;border-top:1px solid var(--line);display:flex;gap:7px}.inspector-actions button{flex:1}.library-page{height:calc(100vh - 58px);display:none;overflow:auto;padding:38px clamp(20px,6vw,90px);max-width:1460px;margin:0 auto}.library-page.active{display:block}.library-heading{display:flex;justify-content:space-between;align-items:center;padding:5px 0 21px;border-bottom:1px solid var(--line)}.library-heading h1{font-size:23px;margin:6px 0;font-weight:650}.library-heading p{font-size:10px;color:#838c84;margin:0}.library-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-top:16px}.library-tab{height:39px;border:0;border-bottom:2px solid transparent;background:none;padding:0 2px;color:#7f8980;font-size:10px}.library-tab.active{color:#3f5e47;border-color:#607f67}.library-controls{height:57px;display:flex;align-items:center;gap:8px}.library-controls .form-control{height:30px;width:min(260px,45vw);font-size:10px;border-color:#dfe4df}.library-controls>span{margin-left:auto;color:#929a93;font-size:9px}.library-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.asset-item{min-height:105px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:13px 4px}.asset-thumb{height:65px;width:88px;flex:none;background:#e9ece8;display:grid;place-items:center;color:#8b958c;overflow:hidden}.asset-thumb img{width:100%;height:100%;object-fit:cover}.asset-copy{min-width:0;flex:1}.asset-copy>b,.asset-copy>small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-copy>b{font-size:10px;font-weight:600}.asset-copy>small{font-size:8px;color:#6f836f;margin-top:5px}.asset-copy>p{font-size:8px;color:#929a93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:5px 0 0}.asset-actions{display:flex;gap:6px}.asset-actions .text-button{font-size:8px}.text-button.danger{color:#ad685b}.library-empty{grid-column:1/-1;min-height:280px;display:flex;align-items:center;justify-content:center;flex-direction:column;border-bottom:1px solid var(--line);color:#667168}.library-empty>span{font-size:24px;color:#78907b}.library-empty>b{font-size:12px;margin-top:8px}.library-empty>p{font-size:9px;color:#929a93;margin:6px 0 12px}.library-footer{height:54px;display:flex;align-items:center;justify-content:space-between;color:#8d968e;font-size:9px}.pagination{gap:3px}.page-link{border:0;color:#59655b;border-radius:3px!important;min-width:26px;text-align:center;padding:5px 8px;font-size:9px}.page-item.active .page-link{background:#47644f;color:white}.page-item.disabled .page-link{color:#bbc1bb}.modal-content{border:1px solid #e0e5df;border-radius:6px;box-shadow:0 18px 55px #1e2b201f}.modal-header{padding:17px 20px 13px;border-color:var(--line)}.modal-title{font-size:16px;margin:4px 0 0;font-weight:650}.modal-body{padding:19px 20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 15px}.field{min-width:0}.field.span-2{grid-column:1/-1}.field label{display:block;font-size:9px;font-weight:600;color:#505a52;margin-bottom:6px}.field label i{color:var(--coral);font-style:normal}.field .form-control,.field .form-select{font-size:10px;border-color:#dfe4df;border-radius:4px;min-height:34px}.field textarea.form-control{min-height:68px;resize:vertical}.field-help{display:block;color:#929a93;font-size:8px;margin-top:4px}.upload-preview{margin-top:12px}.upload-preview img{max-width:180px;max-height:120px;object-fit:cover;border:1px solid var(--line)}.modal-footer{padding:11px 20px;border-color:var(--line);gap:8px}.modal-footer button{min-height:30px}.modal-note{font-size:8px;color:#a08150;margin-right:auto}.toast{background:#334a39;color:#fff;font-size:10px;border:0}.toast.toast-error{background:#8d5146}
@media(max-width:1160px){:root{--sidebar:220px;--inspector:270px}.creator-main{padding-left:18px;padding-right:18px}.library-items{grid-template-columns:1fr}}
@media(max-width:860px){.studio-body{overflow:auto}.topbar{padding:0 12px;gap:15px}.project-name{min-width:unset;padding-left:12px}.model-pill{display:none}.studio-page{height:auto;min-height:calc(100vh - 58px);grid-template-columns:190px minmax(0,1fr)}.sequence-rail{grid-row:1/3;min-height:calc(100vh - 58px)}.creator-main{overflow:visible}.inspector{grid-column:2;min-height:unset;border-top:1px solid var(--line);border-left:0}.inspector-content{max-height:430px}.preview-stage{height:clamp(180px,38vw,320px)}.library-page{height:auto;min-height:calc(100vh - 58px)}}
@media(max-width:560px){.brand-title,.project-name,.top-icon{display:none}.topbar{height:52px}.studio-page{height:auto;min-height:calc(100vh - 52px);display:flex;flex-direction:column}.sequence-rail{min-height:unset;border-right:0;border-bottom:1px solid var(--line)}.rail-heading{height:61px}.episode-filter{padding-bottom:9px}.sequence-list{display:flex;gap:6px;overflow-x:auto;max-height:70px;padding:7px 8px}.sequence-item{min-width:180px;width:180px}.rail-bottom{display:none}.creator-main{padding:0 12px 12px}.creator-toolbar{height:36px}.scene-context{height:auto;min-height:68px;gap:6px}.scene-context h2{font-size:15px}.scene-context p{max-width:230px}.scene-context .text-button{font-size:8px}.preview-stage{height:auto;width:100%;aspect-ratio:16/9}.preview-empty small{max-width:240px}.shot-section-heading{height:55px}.shot-strip{min-height:108px}.inspector{min-height:310px}.inspector-content{max-height:none}.inspector-actions{position:sticky;bottom:0;background:#fff}.library-page{height:auto;padding:24px 14px}.library-heading h1{font-size:19px}.library-heading p{max-width:245px;line-height:1.6}.library-heading>.primary-button{font-size:8px;padding:0 8px}.library-tabs{gap:15px}.library-tab{font-size:9px}.asset-item{gap:8px}.asset-thumb{width:62px;height:52px}.asset-actions{flex-direction:column;gap:1px}.form-grid{grid-template-columns:1fr}.field.span-2{grid-column:auto}.modal-note{max-width:120px;line-height:1.4}}

.production-link { height: auto; white-space: nowrap; }
.video-panel { display: grid; gap: 8px; padding: 12px 16px; border-top: 1px solid #e0e5df; background: #f6f8f5; }
.video-status { color: #4a5b4f; font-size: 13px; }
.video-panel .primary-button { width: 100%; }
.video-reference-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.video-reference-actions label { cursor: pointer; }
.video-feedback { margin-top: 10px; color: #865328; }
.video-feedback:empty { margin-top: 0; }
.stage-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #15251b; }
.preview-stage:has(.stage-video) .preview-bottom { display: none; }

.generation-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.image-gallery { margin-top: 12px; }
.image-gallery h3 { margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.image-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 166px), 1fr)); gap: 12px; }
.image-results:empty { margin: 0; }
.image-candidate { margin: 0; padding: 8px; border: 1px solid #dde3dc; border-radius: 8px; }
.image-candidate img { display: block; width: 100%; height: 138px; border-radius: 4px; object-fit: contain; background: #edf0ea; }
.image-candidate-preview { display: block; width: 100%; padding: 0; border: 0; background: #edf0ea; border-radius: 4px; cursor: zoom-in; }
.image-candidate-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.image-candidate-actions .secondary-button { flex: 1; }
.image-candidate-delete { flex: none; width: 34px; height: 34px; border: 1px solid #e0e6e0; border-radius: 4px; color: #a03a31; background: #fff; display: grid; place-items: center; }
.image-candidate-delete:hover:not(:disabled) { border-color: #b7554b; background: #fbefed; }
.image-candidate-actions button:disabled { opacity: .55; }
.image-gallery-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.image-gallery-pages[hidden] { display: none; }
.image-gallery-pages [aria-current="page"] { border-color: currentColor; font-weight: 700; }
.image-lightbox { width: min(94vw, 1120px); max-width: none; height: min(880px, 94dvh); max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid #dfe6df; border-radius: 8px; color: #212b27; background: #fff; }
.image-lightbox::backdrop { background: rgba(16, 21, 19, .78); }
.image-lightbox-panel { display: flex; flex-direction: column; height: 100%; }
.image-lightbox header { display: flex; flex: 0 0 auto; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid #dfe6df; }
.image-lightbox header h2 { margin: 0; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.image-lightbox header button { flex: none; }
.image-lightbox-stage { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; flex: 1 1 auto; min-height: 0; padding: 10px; overflow: hidden; background: #edf0ea; }
.image-lightbox-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.image-lightbox-stage p { margin: 0; color: #53645a; }
button.asset-preview-image { cursor: zoom-in; }
.workspace-credit { white-space: nowrap; color: #2d503c; font-size: 13px; }
.workspace-username { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
@media (max-width: 760px) { .workspace-username { display: none; } }

/* Creator chrome, preview and inspector. The management console has its own stylesheet. */
.studio-body { --sidebar: 230px; --inspector: 320px; --ink: #212b27; --muted: #56665e; --line: #dfe6df; font: 14px/1.55 system-ui, "Microsoft YaHei", sans-serif; background: #f6f7f3; }
.studio-body svg { width: 17px; height: 17px; flex: none; }
.studio-body :is(a,button):focus-visible { outline: 2px solid #3d7a63; outline-offset: 2px; }
.topbar { gap: 28px; padding-inline: 20px; }
.brand-mark { width: 35px; height: 35px; background: #ebaa8a; color: #34251f; }
.brand-mark svg { width: 21px; height: 21px; }
.brand-title { font-size: 16px; font-weight: 730; }
.top-nav { gap: 16px; }
.top-nav-link { gap: 7px; padding-inline: 6px; color: #52635a; font-size: 14px; white-space: nowrap; }
.top-nav-link.active { color: #245944; border-color: #487e67; font-weight: 650; }
.topbar-right { gap: 12px; }
.workspace-credit { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 5px; background: #e9f1e9; color: #295544; }
.workspace-credit strong { font-variant-numeric: tabular-nums; }
.workspace-username { color: #4c6055; }
.logout-tool, .studio-body .square-button, .studio-body .toolbar-icon { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #3f5f50; }
.studio-body .toolbar-icon:hover, .studio-body .square-button:hover:not(:disabled), .logout-tool:hover { background: #eaf1e9; }
.studio-body button:disabled { cursor: not-allowed; }
.studio-body :is(.primary-button,.secondary-button,.danger-button,.text-button) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; font-size: 13px; font-weight: 620; }
.studio-body :is(.primary-button,.secondary-button,.danger-button) { border-radius: 5px; }
.studio-body .primary-button { background: #285a46; }
.studio-body .primary-button:hover { background: #214c3b; }
.studio-body .secondary-button { color: #355446; }
.studio-body .danger-button { color: #8c4242; }
.sequence-rail { background: #fafcf9; }
.rail-heading { height: auto; min-height: 62px; padding: 12px 14px; }
.rail-heading h1, .inspector-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.episode-filter { padding-inline: 14px; }
.episode-filter label, .episode-filter .form-select { font-size: 13px; }
.episode-filter label { color: #506358; }
.episode-filter .form-select { min-height: 34px; }
.sequence-list { padding-inline: 10px; }
.sequence-item { gap: 8px; min-height: 61px; padding: 7px 9px; }
.sequence-item.selected { background: #e7f0e7; box-shadow: inset 2px 0 #437b61; }
.sequence-index { font-size: 13px; }
.sequence-copy b { font-size: 13px; }
.sequence-copy small, .rail-bottom, .rail-loading, .rail-empty { color: #53665a; font-size: 12px; }
.creator-main { padding: 0 clamp(15px, 2vw, 30px) 20px; background: #f3f5f1; }
.creator-toolbar { height: 53px; }
.creator-toolbar-actions { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.breadcrumbs { min-width: 0; font-size: 13px; }
.breadcrumbs strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumbs .workspace-project-title { min-width: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-project-title { display: block; margin-bottom: 4px; color: #4c6055; font-size: 13px; overflow-wrap: anywhere; }
.scene-context { height: auto; min-height: 76px; margin-bottom: 14px; gap: 10px; }
.scene-context > div { min-width: 0; }
.scene-context h2 { font-size: 24px; font-weight: 720; }
.scene-kicker { color: #557065; font-size: 12px; }
.scene-context p { color: #57665d; font-size: 13px; }
.scene-context .text-button { flex: none; }
.preview-stage { width: 100%; height: clamp(220px, 42vh, 470px); aspect-ratio: auto; border-radius: 7px; border: 1px solid #314944; background: #1b302d; }
.preview-media { background: radial-gradient(circle at center, #bde0d020 1px, transparent 1px) 0 0 / 16px 16px; }
.preview-empty { gap: 8px; padding: 0 42px; color: #c1d4ca; }
.preview-empty strong { font-size: 17px; color: #edf7ef; }
.preview-empty > span:not(.empty-frame-icon), .preview-empty small { font-size: 13px; color: #c2d4cb; }
.preview-empty .empty-frame-icon { display: grid; place-items: center; width: 47px; height: 42px; margin-bottom: 4px; border: 1px solid #92b5a58a; border-radius: 5px; color: #e0efe7; background: #283e39; }
.empty-frame-icon svg { width: 24px; height: 24px; }
.preview-top-label, .preview-bottom, .reference-overlay { color: #ecf7ef; background: #152823e8; border: 1px solid #77928770; border-radius: 4px; font-size: 12px; }
.preview-bottom { right: 10px; gap: 10px; }
.preview-bottom > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-section-heading { min-height: 58px; }
.shot-section-heading h2 { margin: 0; font-size: 17px; }
.shot-section-heading h2 small { color: #54655c; font-size: 12px; }
.shot-strip { gap: 11px; padding: 3px 2px 10px; }
.shot-tile { width: 150px; min-width: 150px; padding: 7px; border-radius: 6px; background: #fafcf8; border-color: #dce6dc; }
.shot-tile.active { border-color: #57856b; box-shadow: 0 0 0 1px #57856b; }
.shot-tile > b { font-size: 13px; }
.shot-tile > small, .tile-index i { color: #58685f; font-size: 11px; }
.tile-index { font-size: 12px; }
.tile-image { height: 60px; border-radius: 3px; color: #4d675b; background: #e8eee7; }
.tile-placeholder { color: #5b7267; }
.shot-add-tile { width: 43px; min-width: 43px; border-radius: 5px; }
.inspector-head { flex: none; height: 62px; padding-inline: 16px; }
.inspector-content { padding-inline: 16px; }
.inspector-section { padding-block: 12px; }
.inspector-label, .actor-line small, .inspector-value small, .continuity-box small, .continuity-change small { color: #53665c; font-size: 12px; }
.inspector-value, .inspector-empty, .actor-line b, .dialogue-text, .continuity-box p, .continuity-change p, .generation-state { font-size: 13px; }
.shot-status { font-size: 12px; }
.video-status { min-height: 21px; }
.video-panel, .inspector-actions { padding-inline: 13px; }
.clip-binding-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 0; font-size: 13px; }
.clip-binding-list dt { color: var(--muted); font-weight: 500; }
.clip-binding-list dd { margin: 0; overflow-wrap: anywhere; }
.clip-binding-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.clip-versions { display: grid; gap: 4px; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.clip-versions[hidden] { display: none; }
.clip-versions small { color: var(--muted); overflow-wrap: anywhere; }
.clip-versions select { font-size: 13px; }
.library-page { background: #f6f8f4; }
.library-heading h1 { margin: 0; font-size: 25px; }
.library-tab { font-size: 14px; }
.library-controls .form-control, .library-controls > span, .library-footer, .asset-copy > small, .asset-copy > p { font-size: 13px; }
.asset-copy > b { font-size: 15px; }
.asset-copy > p { color: #53655a; }
.asset-actions .text-button { font-size: 13px; }
.studio-body .field label, .studio-body .field-help { font-size: 13px; }
.studio-body .field :is(.form-control, .form-select) { font-size: 14px; }
.studio-body .modal-title { font-size: 18px; }
.studio-body .modal-note, .studio-body .toast, .studio-body .page-link { font-size: 13px; }
@media (max-width: 1120px) { .studio-body { --sidebar: 195px; --inspector: 285px; } }
@media (max-width: 960px) { .studio-page { grid-template-columns: var(--sidebar) minmax(0,1fr) var(--inspector); } }
@media (max-width: 860px) { .studio-page { grid-template-columns: 180px minmax(0,1fr); } .preview-stage { height: clamp(215px, 48vw, 390px); } }
@media (max-width: 560px) {
  .topbar { gap: 8px; padding-inline: 9px; }
  .top-nav { gap: 3px; }
  .top-nav-link { font-size: 12px; padding-inline: 4px; }
  .top-nav-link svg, .workspace-credit svg { display: none; }
  .topbar-right { gap: 5px; }
  .workspace-credit { font-size: 12px; padding-inline: 4px; white-space: normal; }
  .brand-mark, .logout-tool { width: 31px; height: 31px; }
  .scene-context h2 { font-size: 19px; }
  .scene-context p { max-width: none; }
  .preview-stage { height: auto; aspect-ratio: 16 / 9; min-height: 176px; }
  .shot-section-heading h2 small { display: block; margin-top: 3px; }
  .asset-item { flex-wrap: wrap; gap: 10px; }
  .asset-actions { width: 100%; }
  .library-heading > .primary-button { font-size: 13px; }
}
.record-cast{max-height:120px;overflow:auto;display:flex;flex-wrap:wrap;gap:5px 10px;padding:6px}.field .record-cast label{font-size:12px;margin:0;display:flex;align-items:center;gap:4px}
.library-heading-actions,.library-angle-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.library-angle-heading[hidden],.library-missing-label[hidden],#library-scope[hidden]{display:none}
.library-angle-heading{margin-top:12px;font-size:15px}.library-controls{flex-wrap:wrap;height:auto;min-height:58px;padding-block:8px;gap:8px}
.library-controls select{width:auto;font-size:13px}.library-missing-label{display:flex;gap:4px;align-items:center;white-space:nowrap;font-size:13px}
.library-page .asset-item{align-items:flex-start;min-width:0;gap:12px;border-radius:8px}
.library-page .asset-thumb{width:84px;height:106px;display:grid;place-items:center;flex:none}.asset-thumb svg{width:22px;height:22px;color:#596e65}
.library-page .asset-copy{flex:1;min-width:0}.library-page .asset-copy b{white-space:normal;overflow-wrap:anywhere}
.library-page .asset-actions{display:flex;align-items:center;flex-direction:row;flex-wrap:wrap;gap:5px;margin:7px 0}
.library-page .asset-missing{color:#8a4f1b}.asset-voice{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:13px;color:#405a52}
.asset-details summary,#record-advanced summary,#image-advanced summary{font-size:13px;cursor:pointer;color:#49625a}
.asset-menu{flex:none}.asset-menu button{display:block}.asset-details>a{margin-top:4px}
#record-advanced{margin-top:14px}#record-advanced-fields{margin-top:12px}
.voice-modal-dialog{--bs-modal-width:920px;width:min(920px,calc(100vw - 24px));max-width:min(920px,calc(100vw - 24px));height:min(680px,calc(100vh - 32px));flex:none}.voice-modal-dialog .modal-content{height:100%;min-height:0}.voice-modal-dialog .modal-header,.voice-modal-dialog .modal-footer{flex:none}.voice-modal-dialog .modal-body{min-height:0;overflow-y:auto;scrollbar-gutter:stable}
.voice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.voice-option{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid #dce6df;border-radius:6px;min-height:68px;cursor:pointer}
.voice-option:has(input:checked){border-color:#5d8b7d;background:#edf6f1}.voice-option input{flex:none}.voice-option span{overflow-wrap:anywhere}.voice-option small{color:#53695f;display:block;letter-spacing:0}
.voice-service-note{font-size:13px;color:#566b62;margin:4px 0 0}.voice-filters{display:grid;gap:8px;margin:0 0 16px;padding:12px 14px;border:1px solid #343a37;border-radius:10px;background:#171a19}.voice-filter-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:4px;color:#d9e2dc;font-size:13px}.voice-filter-row{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:start;gap:10px;padding:7px 0}.voice-filter-row+.voice-filter-row{border-top:1px solid #2b302e}.voice-filter-label{padding-top:7px;color:#aab7af;font-size:13px;font-weight:600}.voice-filter-options{display:flex;flex-wrap:wrap;gap:6px}.voice-filter-chip{min-height:30px;padding:4px 11px;border:1px solid #383e3b;border-radius:7px;background:#202422;color:#b8c4bc;font:inherit;font-size:13px;line-height:1.4;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.voice-filter-chip:hover{border-color:#64746b;color:#eff6f1}.voice-filter-chip[aria-pressed=true]{border-color:#8ee77a;background:#273526;color:#a5f48e;box-shadow:inset 0 0 0 1px rgb(142 231 122 / 12%)}.voice-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;color:#566b62;font-size:13px}.voice-pager button:disabled{opacity:.45}.voice-footer #voice-selected{margin-right:auto;color:#405a52;font-size:13px}.voice-legacy{font-size:13px;color:#8a4f1b;margin:0 0 10px}#voice-feedback{color:#a13b2e;margin:8px 0 0}
.voice-filter-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px}.voice-filter-actions #voice-match{min-height:30px;padding:4px 10px;border:1px solid #54784c;color:#b3eea4;font-size:12px}.voice-recommendation{margin:0;padding:8px 10px;border-radius:7px;background:#243124;color:#c4ebbc;font-size:13px;line-height:1.5}.voice-recommendation:empty{display:none}#voice-modal #voice-feedback{color:#f1a997}#voice-modal .voice-footer #voice-selected{color:#b4c6bb}
@media(max-width:560px){.library-heading{flex-wrap:wrap;gap:8px;height:auto}.library-page .asset-item{flex-wrap:nowrap}.library-page .asset-thumb{width:58px;height:75px}.library-controls #library-search{width:min(100%,185px)}.voice-options{grid-template-columns:1fr}.voice-filter-row{grid-template-columns:72px minmax(0,1fr);gap:6px}.voice-filter-options{gap:5px}.voice-filter-chip{padding-inline:8px}}

.performer-image-tools { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.performer-image-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 33px; color: var(--muted); }
.performer-image-toolbar strong { color: var(--ink); }
.performer-sheet-reference { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.performer-sheet-reference-copy { flex: 1 1 200px; min-width: 0; }
.performer-sheet-reference-copy strong { display: block; color: var(--ink); }
.performer-sheet-reference-copy :is(small, span) { color: var(--muted); font-size: .83em; }
.performer-sheet-reference-copy span { margin-inline-start: 4px; font-weight: normal; }
.performer-sheet-reference-preview { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: transparent; }
.performer-sheet-reference-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.performer-sheet-reference-actions { display: flex; align-items: center; gap: 8px; }
#performer-sheet-reference-file:focus-visible + label { outline: 2px solid currentColor; outline-offset: 2px; }
#performer-sheet-reference-file:disabled + label { opacity: .55; cursor: default; }
.performer-image-toolbar [aria-pressed="true"] { border-color: #426854; color: #2d533f; background: #edf5ef; }
#image-basic-fields[hidden], #performer-single-upload[hidden], .performer-sheet-reference[hidden], .performer-sheet-reference [hidden] { display: none; }
#performer-sheet-stage { margin: 10px 0; }
.performer-sheet-layout, .performer-sheet-preview { width: min(100%, 420px); aspect-ratio: 16 / 9; margin: 0 auto; }
.performer-sheet-layout { display: grid; grid-template: repeat(2, minmax(0, 1fr)) / repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.performer-sheet-layout span { display: grid; place-items: center; border: 1px solid #e4eae3; padding: 3px; color: var(--muted); text-align: center; font-size: 12px; }
.performer-sheet-layout span:nth-child(-n+4) { background: #eef4ee; }
.performer-sheet-preview { display: block; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #edf0ea; cursor: zoom-in; }
.performer-sheet-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.scene-image-stage { margin: 10px 0; }
.scene-image-placeholder { display: grid; place-items: center; width: min(100%, 420px); aspect-ratio: 16 / 9; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; background: #edf0ea; color: #596e65; }
.scene-image-placeholder svg { width: 26px; height: 26px; }
#performer-single-images > summary { color: #3f5f50; cursor: pointer; }
.image-gallery-sheet .image-results { grid-template-columns: repeat(auto-fill, minmax(min(100%, 267px), 1fr)); }
.image-gallery-sheet .image-candidate img { aspect-ratio: 16 / 9; height: auto; }
.performer-image-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 8px 0; }
.performer-image-slot { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); text-align: left; }
.performer-image-slot:hover { border-color: #779381; }
.performer-image-slot[aria-pressed="true"] { border-color: #426854; background: #edf5ef; box-shadow: inset 0 0 0 1px #426854; }
.performer-image-slot b, .performer-image-slot small { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.performer-image-slot small { color: var(--muted); }
.performer-image-thumb { flex: none; width: 44px; height: 56px; background: #e9efea; color: #64766a; border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
.performer-image-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.performer-image-thumb svg { width: 18px; height: 18px; }
.performer-image-upload:focus-within { outline: 2px solid #426854; outline-offset: 2px; }
.video-view-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
@media(max-width:560px) { #performer-image-angles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.asset-thumb{position:relative;overflow:hidden}
button.asset-thumb{border:0;padding:0;cursor:pointer}
.asset-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

.stage-composition { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); background: #192c29; }
.stage-composition.has-cast { grid-template-columns: minmax(0, 1fr) clamp(84px, 22%, 156px); }
.stage-zoom { display: block; min-width: 0; min-height: 0; width: 100%; padding: 0; border: 0; background: transparent; color: #eaf4ee; cursor: zoom-in; overflow: hidden; }
.stage-zoom:focus-visible, .stage-material-link:focus-visible { outline: 2px solid #aad5b5; outline-offset: -3px; }
.stage-primary img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stage-cast { min-height: 0; padding: 42px 8px 45px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(60px, 100%), 1fr)); grid-auto-rows: max-content; align-content: start; gap: 7px; overflow: auto; border-left: 1px solid #51665f; background: #263a34; }
.stage-cast-item { border-radius: 4px; text-align: center; background: #30483e; }
.stage-cast-item img { width: 100%; height: 56px; display: block; object-fit: contain; }
.stage-cast-item span { display: block; color: #eaf4ee; padding: 4px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-material-link { color: #d2eed9; font-size: 13px; text-underline-offset: 3px; }
.stage-material-link:hover { color: #fff; }
.preview-top-label { max-width: 62%; }
#preview-shot-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-top-label .live-dot { flex: none; }
.tile-image { position: relative; }
.tile-image svg.tile-placeholder { width: 20px; height: 20px; }
.tile-ref { position: absolute; right: 3px; bottom: 3px; background: #172b26e8; color: #edf8ee; padding: 1px 4px; border-radius: 3px; font-size: 10px; }
@media(max-width:560px) { .stage-cast { padding-inline: 5px; gap: 5px; } .stage-cast-item img { height: 32px; } .stage-cast-item span { padding: 2px; line-height: 15px; } }
.look-row{display:grid;grid-template-columns:62px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.look-row small{display:block;color:#66776d;overflow-wrap:anywhere}.look-thumb{display:grid;place-items:center;width:62px;height:48px;background:#f1f4f2;color:#65736b;overflow:hidden}
.look-thumb img{width:100%;height:100%;object-fit:cover}.look-image-preview{display:flex;align-items:center;gap:10px;margin-top:8px}.look-image-preview[hidden]{display:none}.look-image-preview img{max-width:140px;max-height:96px;object-fit:contain}
.relation-tools{display:flex;gap:8px;align-items:center;margin-bottom:12px}.relation-tools .form-control{min-width:0}.relation-tools button{flex:none}
.relation-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.relation-edge{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,1.35fr) minmax(0,1fr);align-items:center;gap:10px}.relation-edge strong{font-size:14px;overflow-wrap:anywhere}.relation-edge strong:last-child{text-align:right}
.relation-edge-label{display:grid;gap:3px;text-align:center;overflow-wrap:anywhere;color:#244d58}.relation-edge-label small,.relation-meta small{color:#5b6870}
.relation-line{display:block;position:relative;border-top:1px solid #648792;margin:4px 5px 2px}.relation-line:after{content:"";position:absolute;right:0;top:-4px;width:7px;height:7px;border-top:1px solid #648792;border-right:1px solid #648792;transform:rotate(45deg)}
.relation-meta{display:flex;align-items:center;gap:7px;white-space:nowrap}.relation-error{color:#9e382f}
@media(max-width:560px){.relation-row{grid-template-columns:minmax(0,1fr);gap:4px}.relation-meta{justify-content:flex-end}.relation-edge{gap:5px}.relation-edge strong{font-size:13px}}

/* Guided handoff after adopting a screenplay: review required episode materials before video generation. */
.episode-material-guide{margin:18px 0 20px;padding:16px 18px;background:#fff;border:1px solid #dfe6dd;border-radius:10px;box-shadow:0 4px 16px #2436240b}
.episode-material-steps{display:flex;align-items:center;gap:10px;color:#89928a;font-size:12px;padding-bottom:13px;border-bottom:1px solid #edf0eb}
.episode-material-steps span{display:flex;align-items:center;gap:7px}.episode-material-steps b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#eef1ed;font-size:11px}.episode-material-steps .complete{color:#52735b}.episode-material-steps .complete b,.episode-material-steps .current b{background:#e8f0e8;color:#42674b}.episode-material-steps .current{color:#304f37;font-weight:650}.episode-material-steps i{font-style:normal;color:#c2c9c1}
.episode-material-guide-body{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:13px}.episode-material-guide-body h2{font-size:16px;margin:0 0 7px}.episode-material-guide-body p{font-size:13px;color:#425c48;margin:0 0 5px}.episode-material-guide-body small{font-size:11px;color:#7d877e}.episode-material-guide-actions{display:flex;align-items:center;gap:8px;flex:none}
@media(max-width:700px){.episode-material-guide{padding:13px}.episode-material-guide-body{align-items:stretch;flex-direction:column}.episode-material-guide-actions{flex-wrap:wrap}.episode-material-guide-actions button{flex:1}.episode-material-steps{gap:6px;font-size:10px}.episode-material-steps span{gap:4px}}
/* Studio visual refinement */
.studio-body{--pine:#355c48;--pine-soft:#e9f0e9;--canvas:#f1f3ef;background:#f1f3ef;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;letter-spacing:.005em}.topbar{position:relative;z-index:4;height:64px;padding-inline:clamp(14px,2.4vw,34px);gap:clamp(12px,1.8vw,25px);background:#fff;border-bottom-color:#e6eae4;box-shadow:0 3px 14px #24342608}.brand{gap:10px}.brand-mark{width:35px;height:35px;border-radius:9px;background:#334f40;color:#eeeadd}.brand-title{font-size:14px;letter-spacing:.02em}.workspace-project-pill{display:flex;align-items:center;gap:8px;max-width:190px;min-width:90px;padding:8px 11px;border:1px solid #e8ece6;border-radius:7px;background:#fafbf8;color:#5c6e61;font-size:11px}.workspace-project-pill>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-project-dot{width:7px;height:7px;border-radius:50%;background:#87a17c;box-shadow:0 0 0 3px #eaf0e8;flex:none}.top-nav{gap:8px}.top-nav-link{position:relative;gap:7px;padding:0 11px;color:#657369;font-size:11px;border-radius:6px 6px 0 0}.top-nav-link.active{color:#315b43;border-color:#527b5f;background:linear-gradient(0deg,#eef3ed,#fff 75%);font-weight:650}.topbar-right{gap:10px}.workspace-credit{padding:7px 11px;border:1px solid #e6ede5;border-radius:20px;background:#f3f7f1;color:#365e47;font-size:11px}.workspace-username{max-width:130px;font-size:11px!important;color:#59685e}.logout-tool{border-radius:8px!important}.studio-page{height:calc(100vh - 64px);min-height:500px;grid-template-columns:clamp(212px,18vw,258px) minmax(360px,1fr) clamp(288px,23vw,340px);background:#f1f3ef}.sequence-rail{background:linear-gradient(180deg,#fafbf8,#f6f8f5);border-right-color:#e5eae4}.rail-heading{height:82px;padding-inline:20px}.rail-heading h1{font-size:14px;letter-spacing:.01em}.episode-filter{padding-inline:18px}.sequence-list{padding:11px 10px}.sequence-item{min-height:62px;margin:3px 0;border-radius:8px}.sequence-item.selected{background:#e9f0e9;box-shadow:inset 3px 0 #597e62,0 2px 7px #263d2808}.sequence-index{width:29px;height:29px;border-radius:8px}.sequence-copy b{font-size:11px}.sequence-copy small{font-size:10px}.creator-main{padding-inline:clamp(15px,2vw,32px);background:radial-gradient(ellipse at 50% 0,#fff 0,#f5f6f2 58%,#f0f2ee 100%)}.creator-toolbar{height:58px}.breadcrumbs{font-size:10px}.scene-context{min-height:82px;margin:0 0 15px}.scene-context h2{font-size:23px;letter-spacing:.01em}.scene-context p{max-width:740px;line-height:1.65}.preview-stage{border-radius:11px;box-shadow:0 12px 34px #16251f20}.shot-section-heading{min-height:64px}.shot-section-heading h2{font-size:16px}.shot-tile{width:164px;min-width:164px;border-radius:9px;box-shadow:0 4px 12px #21332607}.shot-tile.active{box-shadow:0 0 0 1px #57856b,0 7px 18px #42674b18}.inspector{background:#fbfcfa;border-left-color:#e4e9e3}.inspector-heading{min-height:62px}.inspector-content{padding:15px}.inspector-section,.inspector-panel,.episode-script,.episode-clips,.episode-history{border-radius:10px}.library-page{height:calc(100vh - 64px);padding:32px clamp(18px,4vw,58px);background:linear-gradient(145deg,#f5f7f3,#edf1ec)}.library-heading{min-height:66px}.library-heading h1{font-size:26px;letter-spacing:.01em}.library-heading-actions .secondary-button,.library-heading-actions .primary-button{border-radius:7px}.library-tabs{gap:23px;border-bottom-color:#dfe6df}.library-tab{padding:12px 3px;font-size:13px}.library-controls{margin-top:15px;padding:12px 14px;border:1px solid #e4e9e3;border-radius:9px;background:#fff;box-shadow:0 3px 12px #23322405}.library-items{gap:12px}.library-page .asset-item{border-color:#e2e8e1;box-shadow:0 4px 15px #22332406}.episode-material-guide{border-radius:12px;padding:19px 21px;box-shadow:0 8px 26px #2133260b}.episode-material-guide-actions .primary-button,.episode-material-guide-actions .secondary-button{min-height:39px;border-radius:7px}
@media(max-width:1040px){.topbar{gap:9px;padding-inline:12px}.workspace-project-pill{max-width:140px}.top-nav{gap:2px}.top-nav-link{padding-inline:7px;font-size:10px}.studio-page{grid-template-columns:205px minmax(320px,1fr) 280px}}
@media(max-width:760px){.topbar{height:58px}.workspace-project-pill{display:none}.top-nav-link{padding-inline:6px;font-size:9px}.studio-page{height:calc(100vh - 58px)}.library-page{height:auto;min-height:calc(100vh - 58px)}}
.rail-empty a{display:inline-flex;align-items:center;justify-content:center;min-height:31px;margin-top:9px;padding:0 11px;border:1px solid #d7e1d7;border-radius:6px;background:#fff;color:#3e684b;text-decoration:none;font-size:11px;font-weight:600}.rail-empty a:hover{background:#edf3ec;border-color:#a9bea9;color:#30593d}

/* 人物/场景设定图弹窗：仅滚动内容区，操作按钮始终留在视口内 */


/* 成片：播放器元素使用元数据真实尺寸等比缩放到播放框内，严禁横向铺满造成上下画面被裁。 */
.project-workspace .preview-media.has-stage-video {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #05070c;
}
.project-workspace .preview-media.has-stage-video > .stage-video {
  display: block;
  flex: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  background: #05070c;
}
.project-workspace .preview-stage:has(.stage-video) .preview-top-label { z-index: 2; }

.page-numbers, .voice-pagination { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; }
.page-numbers:empty { display: none; }
.page-numbers .secondary-button { min-width: 32px; min-height: 32px; justify-content: center; padding: 4px 8px; font-variant-numeric: tabular-nums; }
.studio-body .page-numbers [aria-current="page"] { color: #fff; background: #5743a4; border-color: #9885e5; cursor: default; }
.studio-body :is(.projects-pagination, .ep-audit-pager, .shot-scenes-pages, .voice-pager, #history-nav) { flex-wrap: wrap; gap: 7px; }


#library-pagination { flex-wrap: wrap; }

#performer-sheet-stage .performer-sheet-preview:has(.performer-3d-overview) { width: min(100%, 720px); }
.performer-3d-overview { display: grid; height: 100%; grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr)); gap: 4px; padding: 6px; }
.performer-3d-overview > span { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; }
.performer-3d-overview img { min-height: 0; }
.performer-3d-overview small { padding-top: 3px; font-size: 11px; }



.scene-sheet-hint { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.65; }
