/* Xiaoyunque short-drama reference: 2026-10-30, 1500x796. Own-brand local editors. */
.native-script,.native-assets,.native-storyboard{--native-surface:#161616;--native-border:#353535;--native-muted:#8d8d8d;color:#ededed;font-size:14px}
.native-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #3a3a3a;padding-bottom:14px;margin-bottom:24px}
.native-page-heading h1{font-family:Georgia,"Songti SC","STSong",serif;font-size:28px;font-weight:600;letter-spacing:0;line-height:1.2}
.native-page-heading>span{font-size:12px;color:var(--native-muted)}
.native-script.page{height:100%;min-height:0;padding:0!important;max-width:none;display:grid;grid-template-columns:348px minmax(0,1fr);gap:0;position:relative;overflow:hidden;background:#252525}
.native-script-directory{background:#161616;border-radius:24px;margin:0 8px 8px 0;overflow:auto;min-width:0;padding:12px 16px}
.native-script-directory>header{display:flex;align-items:center;justify-content:space-between;padding:0 0 18px}
.native-script-directory h2{font-size:14px;font-weight:550}
.native-script-directory .icon-btn,.native-script-directory .btn{border-radius:50%;min-height:24px}
.native-file-tree{display:flex;flex-direction:column;gap:0}
.native-file-tree>button,.native-file-tree summary{display:flex;gap:10px;align-items:center;min-height:40px;padding:8px 20px;font-size:14px;border-radius:8px;color:#d6d6d6;cursor:pointer;list-style:none;text-align:left}
.native-file-tree>button .icon,.native-file-tree summary .icon{width:22px;height:22px}
.native-file-tree>button.active{background:#2a2a2a;color:#f4f4f4}
.native-file-tree>button:hover,.native-file-tree summary:hover{background:#222}
.native-file-tree>button small{margin-left:auto;font-size:11px;color:#777}
.native-file-tree details>summary:before{content:'›';font-size:16px;width:10px;transform:rotate(0);margin-left:-18px;color:#858585}
.native-file-tree details[open]>summary:before{transform:rotate(90deg)}
.native-file-tree details>summary::-webkit-details-marker{display:none}
.native-file-tree details>form{padding:16px 14px 14px}
.native-file-tree details>form .field{margin-bottom:14px}
.native-file-tree details>form input,.native-file-tree details>form select{width:100%;padding:9px 11px;font-size:12px;background:#242424;border-color:#3d3d3d}
.native-file-tree details>.btn{justify-content:flex-start;padding:9px 20px;font-size:12px;border-radius:8px}
.native-file-tree details .field>label{font-size:12px}
.native-episode-links{display:flex;flex-direction:column;padding-left:20px}
.native-episode-links .btn{justify-content:flex-start;min-height:36px;max-width:100%;padding:5px 14px;border-radius:6px;font-size:13px}
.native-episode-links .btn>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native-tree-note{font-size:12px;color:#777;padding:8px 20px}
.native-script-main{min-width:0;min-height:0;display:flex;flex-direction:column;border-left:1px solid #3a3a3a;padding:28px 48px 0;position:relative;overflow:hidden}
.native-script-main .native-page-heading{margin-bottom:20px}
.native-script-toolbar{display:flex;align-items:center;gap:3px;margin-bottom:36px;height:42px;flex:none}
.native-script-toolbar .btn{padding:6px 8px;font-size:12px}
.native-script-tab{display:flex;align-items:center;gap:7px;font-size:14px;height:42px;border-bottom:1px solid #eee;white-space:nowrap}
.native-script-main #script-form{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden;padding-bottom:90px}
.native-script-document{display:flex;flex-direction:column;min-height:0;height:100%}
.native-document-caption{display:flex;align-items:center;gap:10px;flex:none;padding:8px 0 15px 0}
.native-document-caption>strong{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native-document-caption>span:not(.grow){font-size:11px;color:#888}
.native-document-caption>.icon{color:#aaa;width:14px}
.native-document-caption>.btn{font-size:11px;padding:4px 6px;min-height:24px}
.native-script-main .script-textarea{height:100%;min-height:0!important;width:100%;flex:1;border:0!important;border-radius:0;background:transparent;padding:4px 0 22px!important;resize:none;font-size:14px!important;line-height:1.75!important;color:#b6b6b6;box-shadow:none!important}
.native-script-document.is-collapsed .script-textarea{display:none}
.native-step-pill{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);border-radius:40px;display:flex;align-items:center;gap:15px;padding:12px 16px;background:#050505;color:#e9e9e9;white-space:nowrap;z-index:2;border:0;margin:0;width:max-content;max-width:calc(100% - 40px)}
.native-step-pill>span{font-size:12px;overflow:hidden;text-overflow:ellipsis}
.native-step-pill .btn{border-radius:24px;font-size:12px;padding:7px 17px;min-height:34px}
.native-step-pill .btn.ghost{padding:5px}
.native-directory-reopen{display:none;position:absolute;top:10px;left:8px;z-index:3}
.native-script.directory-collapsed{grid-template-columns:1fr}
.native-script.directory-collapsed .native-script-directory{display:none}
.native-script.directory-collapsed .native-directory-reopen{display:flex}
.native-script.directory-collapsed .native-script-main{border-left:0}
/* Asset library */
.native-assets.page{height:100%;min-height:0;padding:30px 32px 32px!important;display:flex;flex-direction:column;overflow:auto;position:relative;max-width:none;background:#252525}
.native-assets-content{max-width:1180px;margin:0 auto;flex:1 0 auto;width:100%}
.native-assets .native-page-heading{margin-bottom:15px}
.native-assets-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:20px;min-width:0}
.native-assets .asset-tabs{margin:0;display:flex;align-items:center;gap:16px;flex:1;overflow:auto;flex-wrap:nowrap;border:0;min-width:0}
.native-assets .asset-tab{border:0;border-radius:0;display:flex;align-items:center;gap:4px;padding:10px 8px 13px;background:transparent;font-size:14px;color:#aaa;white-space:nowrap}
.native-assets .asset-tab .icon{width:13px;height:13px;color:#909090}
.native-assets .asset-tab.active{color:#fff;border-bottom:2px solid #eee;background:transparent}
.native-assets .asset-tab.active .icon{color:#fff}
.native-assets .asset-tab span{padding:0;background:none;font-size:13px;color:inherit}
.native-assets .compact-search{flex:none;width:240px;height:36px;border:1px solid #595959;border-radius:30px;background:#363636;padding:0 13px;display:flex;gap:8px}
.native-assets .compact-search input{padding:0;font-size:14px;background:none;border:0;box-shadow:none}
.native-assets .compact-search .icon{width:15px;height:15px}
.native-assets .asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px;align-items:start}
.native-assets .asset-card{position:relative;display:block;padding:4px 4px 0;min-height:0;gap:0;border:1px solid #505050;border-radius:21px;overflow:visible;background:transparent;text-align:left;transform:none!important;transition:border-color .15s}
.native-assets .asset-card:hover{border-color:#888;background:#292929;transform:none}
.native-asset-main{width:100%;padding:0;display:block;text-align:left;border:0;background:none}
.native-assets .asset-thumb{height:222px;width:100%;border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#303030;position:relative}
.native-assets .asset-thumb img{height:100%;width:100%;padding:0;object-fit:contain}
.native-assets .asset-thumb.landscape{height:222px;width:100%}
.native-assets .asset-thumb.landscape img{object-fit:contain}
.native-assets .asset-thumb>.icon{color:#7c7c7c;width:30px;height:30px}
.native-assets .asset-card-info{display:block;padding:10px 15px 7px;min-width:0}
.native-assets .asset-card-info h3{font-size:14px;font-weight:550;margin:0 0 5px;line-height:1.35}
.native-assets .asset-card-info>span{font-size:12px;color:#828282;line-height:1.5}
.native-assets .asset-card-info>p{display:none;font-size:12px;color:#8d8d8d;line-height:1.7}
.native-asset-menu{position:absolute;right:11px;top:11px;z-index:2}
.native-asset-menu>summary{list-style:none;background:#171717bb;border-radius:50%;padding:2px 5px;font-size:12px;letter-spacing:1px;width:26px;height:26px;text-align:center;cursor:pointer;opacity:0;color:#eee}
.native-asset-menu>summary::-webkit-details-marker{display:none}
.asset-card:hover .native-asset-menu>summary,.native-asset-menu[open]>summary,.native-asset-menu>summary:focus-visible{opacity:1}
.native-asset-menu>div{position:absolute;top:32px;right:0;min-width:140px;border:1px solid #484848;border-radius:12px;padding:5px;background:#252525;box-shadow:0 8px 30px #0009;display:flex;flex-direction:column}
.native-asset-menu .btn{justify-content:flex-start;border-radius:7px;font-size:12px}
.native-assets .native-asset-add{cursor:pointer;color:#eee}
.native-asset-add .asset-thumb>span{width:40px;height:40px;display:grid;place-items:center;border:1px dashed #595959;border-radius:50%;color:#aaa}
.native-assets .native-assets-secondary{display:flex;justify-content:flex-end;gap:10px;margin:22px 0}
.native-assets .native-assets-secondary .btn{font-size:12px}
.native-assets .asset-bottom-bar{position:sticky;bottom:0;margin:30px auto 0;left:auto;transform:none;border:0;padding:12px 16px;flex:none}
.native-assets.asset-list-view .asset-grid{grid-template-columns:1fr}
.native-assets.asset-list-view .asset-card{padding:6px;border-radius:12px}
.native-assets.asset-list-view .native-asset-main,.native-assets.asset-list-view .native-asset-add{display:flex;align-items:center;gap:14px}
.native-assets.asset-list-view .asset-thumb{width:68px;height:84px;flex:none;border-radius:8px}
.native-assets.asset-list-view .asset-card-info{flex:1;padding:8px}
.native-assets.asset-list-view .asset-card-info>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:6px}
.native-assets .media-library-grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px}
.native-assets .media-library-card{border-radius:20px;background:#1c1c1c;border-color:#424242}
/* Storyboard editor */
.native-storyboard.studio{height:100%!important;min-height:0!important;padding:0 8px 8px 0!important;display:grid!important;grid-template-columns:280px minmax(0,1fr);gap:8px!important;background:#0e0e0e;position:relative;overflow:hidden}
.native-storyboard .studio-assets{display:flex!important;flex-direction:column;min-width:0;min-height:0;border:1px solid #252525;background:#161616;border-radius:0 24px 24px 0;padding:14px 18px 20px;overflow:hidden}
.native-storyboard .studio-assets .section-heading{gap:5px;margin-bottom:14px;flex:none}
.native-storyboard .studio-assets h2{font-size:14px;font-weight:550}
.native-storyboard .studio-assets .section-heading .btn{padding:3px 4px;min-height:24px}
.native-storyboard .studio-assets .compact-search{margin:0 0 17px;width:100%;min-width:0;height:29px;border:1px solid #363636;border-radius:20px;flex:none;background:#222;padding:0 10px;display:flex}
.native-storyboard .compact-search input{font-size:12px;padding:0;background:none;border:0;box-shadow:none}
.native-mini-scroll{overflow:auto;min-height:0;flex:1;padding-bottom:10px}
.native-mini-group{margin-bottom:14px}
.native-mini-group>summary{display:flex;gap:8px;align-items:center;font-size:12px;list-style:none;padding:6px 0;cursor:pointer;color:#ececec}
.native-mini-group>summary::-webkit-details-marker{display:none}
.native-mini-group>summary:before{content:'›';width:7px;transform:rotate(0);color:#949494}
.native-mini-group[open]>summary:before{transform:rotate(90deg)}
.native-mini-group>summary .icon{width:15px;height:15px}
.native-mini-group>summary>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}
.native-mini-group>summary>small{font-size:10px;color:#747474}
.native-storyboard .mini-asset{display:flex;align-items:center;gap:9px;border:0;background:transparent;width:100%;padding:6px 7px 5px 17px;border-radius:8px;text-align:left}
.native-storyboard .mini-asset:hover{background:#292929}
.native-storyboard .mini-asset.active{background:#222}
.native-storyboard .mini-img{width:38px;height:42px;border:0;border-radius:5px;background:#303030;flex:none;overflow:hidden}
.native-storyboard .mini-img img{width:100%;height:100%;object-fit:contain}
.native-storyboard .mini-name{font-size:12px;line-height:1.45;color:#b7b7b7;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native-storyboard .mini-name small{display:block;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#777;line-height:1.5}
.native-associated{margin-left:auto;flex:none;width:5px;height:5px;border-radius:50%;background:#aaa}
.native-mini-add.btn{border:1px dashed #444;border-radius:20px;flex:none;min-height:28px;font-size:12px;margin-top:10px}
.native-storyboard .studio-main{min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:minmax(0,1fr) 164px!important;gap:8px!important}
.native-storyboard .editor-panel{padding:0!important;border:0;border-radius:0!important;background:transparent;min-width:0;min-height:0;overflow:hidden;display:flex}
.native-storyboard .editor-columns{display:grid!important;grid-template-columns:minmax(260px,1.36fr) minmax(220px,1fr)!important;gap:8px!important;width:100%;height:100%;min-height:0}
.native-prompt-card{display:flex;flex-direction:column;min-height:0;min-width:0;container:shot-prompt / inline-size;background:#161616;border:1px solid #252525;border-radius:24px;padding:28px 24px 29px;overflow:hidden}
.native-storyboard .editor-heading{display:flex;align-items:center;gap:6px;padding:0;margin:0 0 12px;min-height:34.5px;height:34.5px;flex:none;border:0}
.native-storyboard .editor-heading h2{font-size:23px!important;white-space:nowrap;font-weight:500;line-height:34.5px!important;display:flex;gap:4px;margin:0}
.native-storyboard .editor-heading .icon-btn{width:26px;height:26px}
.native-storyboard .editor-heading .badge{padding:3px 6px;font-size:10px;border:0;border-radius:10px;background:#272727;color:#a1a1a1}
.native-shot-title{width:100%;font-size:11px;background:transparent!important;border:0!important;padding:0!important;color:#888;line-height:1.6;box-shadow:none!important;height:22px;flex:none;text-overflow:ellipsis}
.native-shot-title:focus{color:#ddd}
.native-storyboard .shot-reference-strip{padding:0 13px 16px;display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;flex:none;min-height:58px}
.native-storyboard .shot-reference-strip>button{position:relative;border:1px solid transparent;background:#2c2c2c;border-radius:10px;padding:0;flex:0 0 42px;width:42px;height:42px;overflow:hidden}
.native-storyboard .shot-reference-strip>button:hover{border-color:#aaa}
.native-storyboard .shot-reference-strip img{width:100%;height:100%;object-fit:contain;border-radius:8px}
.native-storyboard .shot-reference-strip span{display:none}
.native-storyboard .shot-reference-strip .native-add-reference{border:1px dashed #444;display:grid;place-items:center;background:transparent}
.native-storyboard .prompt-surface{display:flex;flex-direction:column;min-width:0;min-height:0;flex:1;border:0;border-radius:20px;background:#252525;overflow:hidden}
.native-storyboard .prompt-meta{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;font-size:11px!important;padding:12px 16px 3px;border:0;flex:none}
.native-storyboard .prompt-meta input{width:49px;height:25px;padding:3px 2px;background:transparent;border:0;border-radius:4px;font-size:12px}
.native-storyboard .prompt-meta .faint{font-size:10px}
.native-storyboard .prompt-textarea{padding:20px 20px 12px!important;font-size:14px!important;line-height:32px!important;min-height:75px;flex:1;resize:none;background:transparent;color:#fff;border:0!important;box-shadow:none!important;border-radius:0}
.native-prompt-tools{display:flex;align-items:center;gap:1px;padding:4px 9px;background:linear-gradient(transparent,#191919);flex:none}
.native-prompt-tools .btn{font-size:11px;padding:5px 7px;min-height:25px}
.native-storyboard .binding-summary{display:flex;align-items:center;gap:4px;font-size:10px!important;white-space:nowrap;padding:5px 3px;color:#909090;border:0;background:none}
.native-storyboard .prompt-footer{display:flex;align-items:center;gap:6px;padding:6px 10px 9px!important;background:#111;border:0;min-height:39px;flex:none}
.native-storyboard .prompt-footer .save-state{display:block!important;font-size:10px!important;color:#737373;white-space:nowrap;flex:none}
.native-storyboard .prompt-footer .btn{height:24px;min-height:24px!important;border-radius:20px;font-size:12px!important;line-height:14px!important;padding:4px 10px!important;white-space:nowrap;flex:none}
.native-storyboard .prompt-footer .btn.light{background:#eee;color:#1c1c1c}
/* Keep complete actions together when the editor card is narrow. */
@container shot-prompt (max-width:340px){
.native-storyboard .prompt-footer{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,max-content);column-gap:6px;row-gap:3px}
.native-storyboard .prompt-footer .save-state{grid-column:1 / 4;grid-row:1;line-height:12px}
.native-storyboard .prompt-footer .native-prompt-count{display:block;grid-column:4;grid-row:1;justify-self:end;line-height:12px}
.native-storyboard .prompt-footer>.grow{display:none}
.native-storyboard .prompt-footer [data-action="cancel-shot-edits"]{grid-column:2;grid-row:2}
.native-storyboard .prompt-footer [data-action="save-shot"]{grid-column:3;grid-row:2}
.native-storyboard .prompt-footer [data-action="review-shot"]{grid-column:4;grid-row:2}
}

.native-storyboard .editor-alert{font-size:10px;padding:8px 1px 0!important;color:#a39880;display:flex;gap:6px;line-height:1.6;flex:none}
.native-storyboard .preview-column{display:flex!important;flex-direction:column;min-width:0;min-height:0;border-radius:24px;border:1px solid #252525;background:#161616;padding:39px 27px 22px;gap:8px;overflow:hidden}
.native-storyboard .preview-window{border:0;flex:1;width:100%;min-height:80px;border-radius:22px;background:#1d1d1d;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.native-storyboard .preview-window video{width:100%;height:100%;object-fit:contain}
.native-storyboard .preview-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:16px;background:none}
.native-storyboard .play-ring{width:60px;height:60px;border-radius:20px;border:1px dashed #3d3d3d;background:#242424;margin-bottom:15px;color:#858585}
.native-storyboard .play-ring .icon{width:16px;height:16px;fill:currentColor;stroke-width:0}
.native-storyboard .preview-empty p{font-size:13px;color:#aaa}
.native-storyboard .preview-empty small{font-size:11px;color:#888;line-height:1.5}
.native-storyboard .preview-config{display:flex;align-items:center;gap:5px;flex:none;padding:0}
.native-storyboard .preview-config select{min-width:0;font-size:10px;padding:7px 5px;border:0;background:#222;border-radius:8px}
.native-storyboard .preview-config select:first-child{flex:1;width:0}
.native-storyboard .preview-config-label{font-size:9px;color:#6f6f6f;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.native-video-actions{display:flex;align-items:center;gap:4px;flex:none}
.native-storyboard .preview-generate{flex:1;border-radius:20px;padding:7px 10px;min-height:33px;font-size:12px}
/* Compact native episode strip. Unsupported tools do not appear as empty actions. */
.native-storyboard .timeline{padding:14px 24px 20px!important;border-radius:24px!important;background:#161616;border:1px solid #252525;min-width:0;min-height:0;overflow:hidden}
.native-storyboard .timeline-head{display:flex;align-items:center;gap:12px;height:24px;min-height:24px;font-size:12px!important;margin:0 0 6px;padding:0;white-space:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.native-storyboard .timeline-head::-webkit-scrollbar{display:none}
.native-storyboard .timeline-head>.grow{flex:1;min-width:12px}
.native-storyboard .stl-control{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;border:0;background:transparent;color:#e5e5e5;padding:2px 4px;height:24px;min-height:0;border-radius:5px;font-size:12px;font-weight:400;white-space:nowrap}
.native-storyboard .stl-control:hover:not(:disabled){background:#303030;color:#fff}
.native-storyboard .stl-control:disabled{color:#636363;opacity:1;cursor:default}
.native-storyboard .stl-control .icon{width:14px;height:14px}
.native-storyboard .stl-control[data-action=timeline-subtitles],.native-storyboard .stl-control[data-action=timeline-music]{background:#252525;border-radius:14px;padding:2px 10px;gap:5px}
.native-storyboard .stl-control[data-action=timeline-subtitles]:disabled,.native-storyboard .stl-control[data-action=timeline-music]:disabled{background:#202020}
.stl-separator{height:12px;width:1px;background:#3b3b3b;flex:none}
.stl-selection-count{font-size:12px;color:#999}
.native-storyboard .timeline-list{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;height:100px;padding:0 0 3px;scrollbar-width:thin;scrollbar-color:#424242 transparent}
.native-storyboard .stl-item{position:relative;flex:0 0 124px;width:124px;height:92px}
.native-storyboard .shot-card{height:92px!important;width:124px!important;min-width:124px!important;border:0!important;border-radius:0!important;background:none!important;overflow:visible;padding:0!important;position:relative;display:block;outline:none;box-shadow:none}
.native-shot-image{height:72px;border-radius:12px;border:1px solid transparent;background:#030303;overflow:hidden;display:flex;align-items:center;justify-content:center;position:relative;color:#646464}
.native-storyboard .shot-card.active .native-shot-image,.native-storyboard .shot-card.selected .native-shot-image,.native-storyboard .shot-card:focus-visible .native-shot-image{border-color:#eee}
.native-storyboard .shot-card:focus-visible .native-shot-image{box-shadow:inset 0 0 0 1px #eee}
.native-shot-image video{height:100%;width:100%;object-fit:contain}
.stl-placeholder{width:20px;height:20px;stroke:currentColor;stroke-width:1.4;fill:none;stroke-linejoin:round}
.native-storyboard .native-shot-caption{display:flex;justify-content:center;align-items:center;color:#b3b3b3;font-size:12px;line-height:18px;padding:2px 0 0;gap:5px;white-space:nowrap}
.stl-caption-dot{color:#8a8a8a}
.stl-checkbox{display:inline-flex;align-items:center;justify-content:center;flex:none;width:14px;height:14px;border:1px solid #777;border-radius:4px;background:#191919}
.stl-checkbox.checked{background:#f0f0f0;border-color:#f0f0f0;color:#161616}
.stl-checkbox .icon{width:12px!important;height:12px!important;stroke-width:2.3}
.native-shot-image>.stl-checkbox{position:absolute;right:7px;top:7px}
.stl-card-actions{position:absolute;right:5px;top:5px;display:flex;gap:3px;opacity:0;pointer-events:none}
.native-storyboard .stl-card-actions .stl-control{width:23px;height:23px;padding:4px;border-radius:5px;background:#262626e6;color:#ddd}
.native-storyboard .stl-card-actions .stl-control:disabled{color:#666}
.stl-item:hover .stl-card-actions,.stl-item:focus-within .stl-card-actions{opacity:1;pointer-events:auto}
.stl-insert{position:absolute;left:-11px;top:25px;width:14px;height:22px;display:grid;place-items:center;border-radius:4px;padding:0;background:#343434;color:#eee;opacity:0;pointer-events:none;z-index:2}
.stl-item:first-child>.stl-insert{left:0}
.stl-item:hover>.stl-insert,.stl-item:focus-within>.stl-insert,.stl-end:hover>.stl-insert,.stl-insert:focus-visible{opacity:1;pointer-events:auto}
.stl-insert:hover{background:#555}
.stl-end{position:relative;flex:0 0 15px;height:72px}
.stl-end>.stl-insert{left:-5px}
.stl-end.is-empty{flex-basis:124px}
.stl-end.is-empty>.stl-insert{left:0;top:0;width:124px;height:72px;border:1px dashed #3b3b3b;border-radius:12px;background:transparent;opacity:1;pointer-events:auto}
#modal.stl-delete-modal{width:400px;background:#252525;border:1px solid #414141;border-radius:16px}
#modal.stl-delete-modal .modal-head{border:0;padding-bottom:0}
#modal.stl-delete-modal .modal-body{padding:18px 25px;color:#ccc;font-size:14px}
#modal.stl-delete-modal .modal-foot{border:0;background:none}
#modal.stl-delete-modal .btn{border-radius:18px;min-height:32px}

.native-assets-reopen{display:none;position:absolute;top:13px;left:6px;z-index:3;background:#252525;border:1px solid #3a3a3a}
.native-storyboard.studio.assets-collapsed{grid-template-columns:minmax(0,1fr)}
.native-storyboard.assets-collapsed .studio-assets{display:none!important}
.native-storyboard.assets-collapsed .native-assets-reopen{display:flex}
.native-storyboard.assets-collapsed .native-prompt-card{padding-left:45px}
/* Keep full media visible on smaller desktops rather than silently hiding it. */
@media(max-width:1300px){.native-script.page{grid-template-columns:250px minmax(0,1fr)}.native-script-main{padding:25px 30px 0}.native-script-toolbar{margin-bottom:22px}.native-storyboard.studio{grid-template-columns:220px minmax(0,1fr)}.native-storyboard .editor-columns{grid-template-columns:minmax(230px,1.3fr) minmax(175px,1fr)!important}.native-prompt-card{padding:20px 15px 12px}.native-storyboard .preview-column{padding:30px 14px 18px}.native-storyboard .timeline{padding:10px 15px!important}.native-assets .asset-tabs{gap:7px}.native-assets .asset-tab{padding:10px 4px}.native-assets .compact-search{width:180px}}
@media(max-width:1200px){body .studio-shell.is-project.tab-storyboard{--native-chat-width:304px}}
@media(max-width:1050px){.native-script.page{grid-template-columns:190px minmax(0,1fr)}.native-script-directory{padding:12px 9px}.native-script-main{padding:24px 22px 0}.native-script-toolbar .btn{padding:5px}.native-storyboard.studio{grid-template-columns:170px minmax(0,1fr)}.native-storyboard .studio-assets{padding:14px 10px}.native-storyboard .editor-columns{grid-template-columns:minmax(220px,1fr) minmax(150px,.75fr)!important}.native-storyboard .prompt-textarea{font-size:13px!important;padding:7px 12px!important}.native-storyboard .editor-heading h2{font-size:19px!important}.native-storyboard .editor-heading .badge{display:none}.native-prompt-tools .btn{padding:4px}.native-storyboard .binding-summary{font-size:9px!important}.native-step-pill>span{max-width:240px}.native-assets .asset-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.native-assets .asset-thumb{height:200px}.native-assets-toolbar{flex-wrap:wrap}.native-assets .compact-search{margin:0;width:180px}.native-storyboard .timeline-head .btn{font-size:10px;padding:4px}}
@media(max-width:760px){.native-script.page{grid-template-columns:1fr}.native-script-directory{display:none}.native-directory-reopen{display:none!important}.native-script-main{padding:24px 20px 0}.native-assets.page{padding:24px 18px 100px!important}.native-storyboard.studio{grid-template-columns:1fr}.native-storyboard .studio-assets{display:none!important}.native-storyboard .editor-columns{display:flex!important;flex-direction:column;overflow:auto}.native-prompt-card{flex:0 0 400px;min-height:400px}.native-storyboard .preview-column{min-height:330px;flex:none}.native-storyboard .preview-window{min-height:210px}.native-step-pill>span{display:none}.native-storyboard .timeline-head .btn{font-size:10px}.native-storyboard .timeline-head>span:first-child{font-size:10px}.native-assets .asset-tabs{width:100%;flex-basis:100%}}
.native-asset-editor{width:min(1040px,94vw)!important;max-width:1040px!important;border-radius:24px!important;background:#202020!important}
.native-asset-editor .modal-head{padding:19px 26px;border-bottom:1px solid #343434}
.native-asset-editor .modal-head h2{font-size:18px;font-weight:550}
.native-asset-editor .modal-body{padding:22px 26px;max-height:calc(90vh - 145px)}
.native-asset-detail{display:grid;grid-template-columns:minmax(250px,1fr) minmax(0,1.35fr);gap:26px;align-items:start}
.native-asset-visual{position:sticky;top:0}
.native-asset-hero{height:min(54vh,480px);background:#161616;border-radius:18px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #353535}
.native-asset-hero>img{width:100%;height:100%;object-fit:contain}
.native-asset-empty{display:flex;flex-direction:column;gap:16px;align-items:center;color:#6f6f6f;font-size:12px}
.native-asset-empty .icon{width:48px;height:48px;stroke-width:1.1}
.native-asset-image-actions{display:flex;justify-content:center;gap:6px;margin-top:14px;flex-wrap:wrap}
.native-asset-image-actions .btn{border-radius:20px;font-size:12px;padding:7px 12px}
.native-asset-information{min-width:0}
.native-asset-information .modal-grid{grid-template-columns:1fr 125px;gap:13px}
.native-asset-information .field label{font-size:12px;color:#aaa}
.native-asset-information input,.native-asset-information select,.native-asset-information textarea{background:#292929;border:1px solid #424242;font-size:13px;border-radius:10px}
.native-asset-information textarea{line-height:1.8;resize:vertical}
.native-asset-review{display:flex;gap:6px;color:#aa9b7b;font-size:11px;line-height:1.6;margin:10px 0}
.native-asset-voice{padding:8px 0;font-size:12px;color:#aaa}
.native-asset-voice p{line-height:1.8;margin-top:9px;font-size:12px}
.native-asset-voice small{font-size:10px;color:#6f6f6f}
.native-reference-versions{margin-top:20px;padding-top:18px;border-top:1px solid #393939}
.native-reference-versions h3{font-size:13px;font-weight:500}
.native-reference-versions h3 span{font-size:11px;color:#777;margin-left:5px}
.native-reference-versions .image-list{display:flex;gap:10px;overflow:auto;margin-top:10px;padding:2px 1px 6px}
.native-reference-versions .reference-option{flex:0 0 90px;min-width:0;width:90px}
.native-reference-versions .image-choice{width:90px;height:126px;background:#161616;border-radius:10px;overflow:hidden;padding:3px;border:1px solid #444}
.native-reference-versions .image-choice img{width:100%;height:92px;object-fit:contain;background:#252525}
.native-reference-versions .image-choice span{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:7px 2px;display:block}
.native-reference-versions .image-choice.selected{border-color:#ccc;background:#292929}
.native-asset-advanced{margin-top:16px;padding-top:14px;border-top:1px solid #343434;color:#888;font-size:11px}
.native-asset-advanced summary{cursor:pointer}
.native-asset-advanced>p{margin:10px 0;font-size:11px}
.native-reference-technical{padding:10px 0;border-top:1px solid #333}
.native-reference-technical strong{font-size:11px;font-weight:500;color:#bbb}
.native-reference-technical .reference-bind{font-size:11px;margin:8px 0;color:#aaa}
.native-reference-technical .reference-origin{font-size:10px}
.native-asset-editor .modal-foot{padding:14px 26px;border-top:1px solid #343434}
.native-asset-editor .modal-foot .btn{border-radius:20px}
@media(max-width:760px){.native-asset-detail{grid-template-columns:1fr}.native-asset-visual{position:static}.native-asset-hero{height:250px}.native-asset-editor .modal-body{padding:18px}.native-asset-information .modal-grid{grid-template-columns:1fr 100px}}

/* Original editor measurements: serif title 23/34.5, body 14/32; settings stay editable. */
body .studio-shell .native-shot-heading-word{font-family:"Times New Roman",serif;font-weight:500}
body .studio-shell .native-shot-settings{position:relative;width:44px;flex:0 0 44px;margin-right:10px;z-index:4}
body .studio-shell .native-shot-settings>summary{display:grid;place-items:center;width:32px;height:34.5px;list-style:none;cursor:pointer;color:#888;border-radius:16px}
body .studio-shell .native-shot-settings>summary::-webkit-details-marker{display:none}
body .studio-shell .native-shot-settings>summary:hover{background:#252525;color:#fff}
body .studio-shell .native-shot-settings>div{position:absolute;top:40px;left:0;min-width:250px;padding:16px;background:#282828;border:1px solid #424242;border-radius:16px;box-shadow:0 12px 40px #0008;display:flex;flex-direction:column;gap:14px}
body .studio-shell .native-shot-settings label{display:flex;flex-direction:column;gap:6px;color:#aaa;font-size:12px}
body .studio-shell .native-shot-settings #shot-title{height:34px;background:#1d1d1d!important;border:1px solid #414141!important;border-radius:8px;padding:7px 9px!important;font-size:12px;color:#eee}
body .studio-shell .native-shot-settings #shot-duration{height:32px;width:80px;background:#1d1d1d;border:1px solid #414141;border-radius:8px;padding:6px 9px;font-size:12px}
body .studio-shell .native-prompt-count{font-size:10px;color:#777;white-space:nowrap}
@media(max-width:1050px){body .studio-shell .native-shot-settings{width:26px;flex-basis:26px;margin-right:0}body .studio-shell .native-shot-settings>summary{width:26px}.native-prompt-count{display:none}}
/* Match the reference's macOS text rasterization; no proprietary font assets. */
body .studio-shell .native-script,
body .studio-shell .native-assets,
body .studio-shell .native-storyboard,
body .studio-shell .native-asset-detail{-webkit-font-smoothing:antialiased}

body .studio-shell #shot-prompt[data-reference-drop="true"]{outline:1px solid #a796cf;outline-offset:-2px;background:#2b2930}

/* Current-prompt timing review; warnings remain an explicit editorial choice. */
.shot-timing-review { margin: 8px 0; padding: 10px 12px; border: 1px solid #645039; border-radius: 10px; background: #28231d; color: #e4cfad; }
.shot-timing-review > summary { cursor: pointer; font-size: 12px; line-height: 1.5; }
.shot-timing-review > div { max-height: 260px; overflow: auto; }
.shot-timing-review blockquote { margin: 8px 0; padding: 8px; max-height: 96px; overflow: auto; border-left: 2px solid #9b815b; color: #dedad3; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Keep terminal task feedback visible without replacing an adopted video. */
.native-storyboard .shot-video-failure{flex:none;border:1px solid #494038;border-radius:10px;background:#211e1a;padding:10px 12px;color:#d8cdc1;font-size:12px;line-height:1.55}
.native-storyboard .shot-video-failure strong{display:block;color:#f0d5b2;font-size:13px}
.native-storyboard .shot-video-failure p{margin:4px 0}
.native-storyboard .shot-video-failure>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:5px}
.native-storyboard .shot-video-quota{color:#c1d6c7}
.native-storyboard .preview-empty small{max-width:90%;white-space:normal;line-height:1.6}

/* Job progress stays with the clip, including when regenerating an existing video. */
.shot-generation-progress{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:12px 16px;font-size:13px;color:#d0d0d0;background:#202020;border-radius:12px;margin-bottom:12px}
.shot-generation-progress>span{display:flex;align-items:center;gap:8px;flex:1}
.shot-generation-progress progress{display:block;width:100%;height:4px;border:0;accent-color:#e7e7e7}
.shot-generation-progress progress::-webkit-progress-bar{background:#3a3a3a;border-radius:3px}
.shot-generation-progress progress::-webkit-progress-value{background:#ddd;border-radius:3px}

.preview-window{position:relative}
.preview-window>.shot-generation-progress{position:absolute;left:16px;right:16px;bottom:16px;margin:0;background:rgba(24,24,24,.88)}
.preview-empty .shot-generation-progress{width:min(280px,90%);background:transparent;justify-content:center;padding:8px 0;margin:0}
.preview-empty .shot-generation-progress>span{flex-basis:100%;justify-content:center}
.preview-empty .shot-generation-progress progress{order:1}

.native-source-note{display:flex;align-items:center;gap:14px;padding:9px 24px;color:#b9bdc3;background:#202327;font-size:12px}.sbe-missing-reference{display:inline-flex;align-items:center;gap:5px;color:#dbb67c;background:#4b3d293d;border:1px dashed #9f7b47;border-radius:5px;padding:0 5px;white-space:nowrap;cursor:pointer}.sbe-missing-reference small{font-size:10px;opacity:.85}

.sbe-heading .sbe-original{flex-shrink:0;margin-left:auto;border:1px solid #393939;border-radius:16px;padding:4px 9px;background:transparent;color:#aaa;font-size:11px;white-space:nowrap}
