:root{color-scheme:light;font-family:DM Sans,Noto Sans SC,PingFang SC,Microsoft YaHei,sans-serif;color:#1c211d;background:#eff0e9;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #1c211d;--ink-soft: #2b332d;--sidebar: #121714;--sidebar-soft: #1a211c;--canvas: #eff0e9;--surface: #fbfcf8;--surface-strong: #ffffff;--surface-muted: #f5f6f0;--line: #dfe2d9;--line-strong: #cdd1c7;--muted: #727970;--muted-light: #a3a99f;--accent: #dff36a;--accent-deep: #b9d538;--coral: #ff8064;--sky: #8eb8ff;--mint: #8ee1c0;--amber: #f2bc59;--danger: #cf4d3d;--shadow: 0 16px 40px rgba(28, 34, 29, .08)}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;background:var(--canvas)}button,input,select,textarea{font:inherit}button{border:0;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}img,video{display:block;max-width:100%}h1,h2,h3,p{margin:0}::selection{color:var(--ink);background:var(--accent)}.app-shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.app-main{min-width:0}.workspace-toolbar{display:flex;min-height:60px;align-items:center;justify-content:space-between;gap:18px;padding:10px 24px;border-bottom:1px solid var(--line);background:#fbfcf8eb;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.workspace-drama-switcher,.workspace-toolbar-actions{display:flex;align-items:center;gap:9px}.workspace-drama-switcher>span{color:var(--muted);font-size:18px;font-weight:750}.workspace-drama-switcher select{min-width:210px;height:38px;padding:0 34px 0 11px;border:1px solid var(--line-strong);border-radius:6px;outline:none;background:var(--surface-strong);color:var(--ink);font-size:14px;font-weight:700}.workspace-drama-switcher select:focus{border-color:#aeb8a9;box-shadow:0 0 0 3px #aeb8a921}.workspace-action{display:inline-flex;height:36px;align-items:center;gap:6px;padding:0 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font-size:13px;font-weight:700}.workspace-action:hover{border-color:var(--line);background:var(--surface-strong);color:var(--ink)}.workspace-library-action{height:38px;margin-right:3px;border-color:var(--line);background:var(--surface-strong);color:var(--ink)}.workspace-account{max-width:190px;overflow:hidden;color:#4d574f;font-size:13px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.create-drama-modal{width:min(520px,100%)}.drama-library-page{width:min(1420px,100%);min-height:100vh;padding-top:clamp(34px,6vh,72px)}.drama-library-header p{max-width:690px}.drama-library-meta{display:flex;min-height:72px;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;padding:15px 19px;border:1px solid var(--line);border-radius:8px;background:#fbfcf8b8}.drama-library-meta>div{display:flex;align-items:baseline;gap:10px}.drama-library-user{color:var(--ink);font-size:16px;font-weight:800}.drama-library-meta small{color:var(--muted);font-size:12px;font-weight:750}.drama-library-meta p{color:var(--muted);font-size:14px}.drama-library-meta strong{color:var(--ink)}.drama-library-sync-status{display:inline-flex;align-items:center;gap:7px;color:#5d6a22;font-weight:750}.drama-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.drama-library-section{display:grid;gap:13px}.drama-library-section+.drama-library-section{margin-top:32px;padding-top:26px;border-top:1px solid var(--line)}.drama-library-section-header{display:flex;align-items:end;justify-content:space-between;gap:18px}.drama-library-section-header h2{color:var(--ink);font-size:17px;font-weight:850}.drama-library-section-header p{margin-top:3px;color:var(--muted);font-size:13px}.drama-library-section-header>span{flex:0 0 auto;color:#5f695c;font-size:13px;font-weight:800}.drama-library-empty{display:flex;min-height:220px;align-items:center;justify-content:center;gap:18px;grid-column:1 / -1;padding:28px;border:1px dashed var(--line-strong);border-radius:8px;background:var(--surface-muted);color:var(--muted)}.drama-library-empty>svg{flex:0 0 auto;color:#66702d}.drama-library-empty>div{display:grid;max-width:460px;gap:5px}.drama-library-empty strong{color:var(--ink);font-size:17px}.drama-library-empty span{font-size:14px;line-height:1.55}.drama-library-empty .button{margin-left:auto;flex:0 0 auto}.drama-library-card{display:flex;min-height:266px;flex-direction:column;padding:17px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong);box-shadow:0 8px 22px #1c221d09;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.drama-library-card:hover{border-color:#b9c0b4;box-shadow:0 13px 30px #1c221d12;transform:translateY(-2px)}.drama-library-card.granted{border-color:#c8d6b2;background:#fcfdf8}.drama-card-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.drama-card-index{color:#81897f;font-size:13px;font-weight:850;letter-spacing:0}.drama-card-actions{display:flex;gap:5px}.drama-card-actions button{display:grid;width:34px;height:34px;place-items:center;border:1px solid var(--line);border-radius:6px;background:var(--surface-muted);color:var(--muted)}.drama-card-actions button:hover:not(:disabled){border-color:var(--line-strong);background:var(--surface-strong);color:var(--ink)}.drama-card-actions button.danger:hover:not(:disabled){border-color:#e3b4ad;background:#fff5f3;color:var(--danger)}.drama-card-mark{display:grid;width:50px;height:50px;margin-top:24px;place-items:center;border:1px solid #d7dfac;border-radius:8px;background:#f2f7d5;color:#5d6a22}.drama-library-card h2{margin-top:16px;color:var(--ink);font-size:20px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}.drama-card-time{display:flex;align-items:center;gap:7px;margin-top:8px;color:var(--muted);font-size:13px}.drama-card-owner{display:flex;align-items:center;gap:7px;margin-top:9px;color:#5e675c;font-size:13px;font-weight:700;line-height:1.4}.drama-card-owner svg{flex:0 0 auto}.drama-card-owner.granted{width:fit-content;padding:4px 7px;border:1px solid #d5dfc0;border-radius:5px;background:#f2f6e5;color:#52652b;font-size:12px}.drama-enter-button{display:inline-flex;width:100%;min-height:42px;align-items:center;justify-content:center;gap:8px;margin-top:auto;padding:8px 13px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface-muted);color:var(--ink);font-size:14px;font-weight:800}.drama-enter-button:hover:not(:disabled){border-color:#aeb8a9;background:#f0f4e1}.drama-editor-modal{width:min(540px,100%)}.drama-delete-modal{width:min(520px,100%)}.drama-delete-copy{color:#535b54;font-size:15px;line-height:1.75}.page{width:min(1480px,100%);margin:0 auto;padding:34px 42px 72px}.eyebrow{display:inline-flex;align-items:center;margin-bottom:8px;color:var(--muted);font-size:10px;font-weight:800;line-height:1;letter-spacing:0;text-transform:uppercase}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-loading{display:flex;min-height:100vh;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:var(--sidebar);color:#f4f6ee}.app-loading .loading-mark{display:grid;width:58px;height:58px;margin-bottom:12px;place-items:center;border:1px solid rgba(223,243,106,.38);border-radius:50%;color:var(--accent)}.app-loading strong{font-size:18px}.app-loading span{color:#8e998f;font-size:13px}.auth-page{display:grid;min-height:100vh;padding:32px;place-items:center;background:radial-gradient(circle at 22% 18%,rgba(223,243,106,.13),transparent 28%),linear-gradient(145deg,#121714,#1d2821)}.auth-panel{width:min(460px,100%);padding:30px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:#fbfcf8;box-shadow:0 30px 90px #00000052}.auth-brand{display:flex;align-items:center;gap:12px}.auth-brand>div{display:flex;flex-direction:column;gap:2px}.auth-brand strong{color:var(--ink);font-size:21px;font-weight:800}.auth-brand span:not(.brand-mark){color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase}.auth-copy{margin:30px 0 20px}.auth-copy h1{color:var(--ink);font-size:30px;line-height:1.2}.auth-copy p{margin-top:10px;color:var(--muted);font-size:14px;line-height:1.7}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:7px;background:#e9ebe4}.auth-tabs button{height:38px;border-radius:5px;background:transparent;color:var(--muted);font-size:14px;font-weight:750}.auth-tabs button.active{background:var(--surface-strong);color:var(--ink);box-shadow:0 2px 8px #1c221d14}.auth-form{display:flex;margin-top:20px;flex-direction:column;gap:15px}.auth-form>label{display:flex;flex-direction:column;gap:7px;color:#505951;font-size:13px;font-weight:750}.auth-input{display:flex;height:44px;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface-strong);color:var(--muted-light)}.auth-input:focus-within{border-color:#9da993;box-shadow:0 0 0 3px #aeb8a924}.auth-input input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px}.auth-challenge{display:flex;flex-direction:column;gap:7px}.auth-challenge-head{display:flex;min-height:24px;align-items:center;justify-content:space-between;gap:10px}.auth-challenge-title{color:#505951;font-size:13px;font-weight:750}.auth-challenge-refresh{display:grid;width:27px;height:27px;place-items:center;border:1px solid var(--line);border-radius:5px;background:#f1f3ed;color:#5d675e}.auth-challenge-refresh:hover:not(:disabled){border-color:var(--line-strong);background:#e8ebe2;color:var(--ink)}.auth-slider{--auth-slide-value: 0%;position:relative;display:flex;height:48px;align-items:center;overflow:hidden;border:1px solid #cbd1c5;border-radius:7px;background:#eef1e9;color:#687169;-webkit-user-select:none;user-select:none}.auth-slider:focus-within{border-color:#8f9c86;box-shadow:0 0 0 3px #81917729}.auth-slider-fill{position:absolute;inset:0 auto 0 0;width:var(--auth-slide-value);background:linear-gradient(90deg,#dcebb1,#cfe57a);transition:width 80ms linear}.auth-slider-label{position:relative;z-index:1;width:100%;padding:0 50px;overflow:hidden;font-size:12px;font-weight:700;line-height:1.35;text-align:center;text-overflow:ellipsis;white-space:nowrap}.auth-slider-thumb{position:absolute;z-index:2;top:50%;left:clamp(3px,var(--auth-slide-value),calc(100% - 43px));display:grid;width:40px;height:40px;place-items:center;border:1px solid rgba(67,81,55,.22);border-radius:6px;background:#fbfcf8;color:#4e6044;box-shadow:0 3px 10px #28332329;pointer-events:none;transform:translateY(-50%)}.auth-slider input[type=range]{position:absolute;z-index:3;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;cursor:grab;opacity:0;touch-action:none}.auth-slider input[type=range]:active{cursor:grabbing}.auth-slider.is-complete{border-color:#8fb583;background:#e4f0dc;color:#375f31}.auth-slider.is-complete .auth-slider-fill{background:linear-gradient(90deg,#d7ebca,#bcddac)}.auth-slider.is-complete .auth-slider-thumb{border-color:#88ad7b;color:#335d2e}.auth-slider.is-error{border-color:#d5a99e;background:#fff5f1;color:#95473a}.auth-slider.is-loading{color:#7a827b}.auth-challenge-retry{align-self:flex-start;padding:2px 0;background:transparent;color:#7c4b3f;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px}.auth-error{padding:10px 12px;border:1px solid #e8c5bc;border-radius:5px;background:#fff6f3;color:#a2493a;font-size:13px;line-height:1.55}.auth-submit{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:8px;margin-top:3px;border-radius:6px;background:var(--accent);color:#1a2115;font-size:15px;font-weight:800}.auth-submit:hover:not(:disabled){background:#e9fa84}.auth-security-note{display:flex;align-items:flex-start;gap:8px;margin-top:18px;padding-top:15px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.65}.auth-security-note svg{flex:0 0 auto;margin-top:2px;color:#65745d}.sidebar{position:sticky;top:0;z-index:20;display:flex;height:100vh;flex-direction:column;padding:22px 16px 18px;background:var(--sidebar);color:#eff2e9}.brand{display:flex;align-items:center;gap:11px;width:100%;padding:3px 7px 23px;background:transparent;text-align:left}.brand-mark{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border-radius:8px;background:var(--accent);color:#182015;box-shadow:inset 0 0 0 1px #ffffff40}.brand-copy{display:flex;min-width:0;flex-direction:column;gap:2px}.brand-copy strong{font-size:19px;font-weight:800}.brand-copy small{color:#7d887e;font-size:8px;font-weight:700}.sidebar-section-label{padding:12px 10px 8px;color:#626e64;font-size:9px;font-weight:800;text-transform:uppercase}.sidebar-nav{display:flex;flex-direction:column;gap:4px}.sidebar-nav-item{display:flex;width:100%;height:46px;align-items:center;gap:11px;padding:0 12px;border-radius:7px;background:transparent;color:#aeb8af;font-size:15px;font-weight:650;text-align:left;transition:background .16s ease,color .16s ease}.sidebar-nav-item:hover{background:#ffffff0d;color:#f5f7f1}.sidebar-nav-item.active{background:#252e28;color:#f7f9f3;box-shadow:inset 3px 0 0 var(--accent)}.sidebar-nav-item.active svg{color:var(--accent)}.sidebar-nav-item b{display:grid;min-width:21px;height:20px;margin-left:auto;padding:0 5px;place-items:center;border-radius:5px;background:#ffffff14;color:#c6cdc6;font-size:12px}.sidebar-nav-item.active b{background:#dff36a1f;color:var(--accent)}.sidebar-footer{display:flex;margin-top:auto;flex-direction:column;gap:16px}.storage-card{padding:13px;border:1px solid #2b342e;border-radius:7px;background:#171e19}.storage-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:#7f8b81;font-size:9px;font-weight:750}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 4px #cf4d3d1f}.status-dot.ok{background:var(--mint);box-shadow:0 0 0 4px #8ee1c01a}.storage-card strong{display:block;color:#dfe5dc;font-size:11px}.storage-card p{margin-top:4px;color:#68736a;font-size:9px}.sidebar-signature{display:flex;align-items:center;gap:9px;padding:0 7px}.sidebar-signature>span{display:grid;width:27px;height:27px;place-items:center;border:1px solid #344039;border-radius:50%;color:#aab4ac;font-size:9px;font-weight:800}.sidebar-signature div{display:flex;flex-direction:column;gap:2px}.sidebar-signature strong{color:#9aa59c;font-size:10px}.sidebar-signature small{color:#586259;font-size:7px}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.page-header h1{color:var(--ink);font-size:clamp(28px,2.4vw,38px);font-weight:790;line-height:1.12}.page-header p{margin-top:9px;color:var(--muted);font-size:13px;line-height:1.6}.page-header.compact-page-header{margin-bottom:14px}.compact-page-header h1.compact-page-title{margin:0;font-size:clamp(14px,1.2vw,19px)}.dashboard-page .page-header h1{font-size:clamp(14px,1.2vw,19px)}.page-actions{display:flex;flex:0 0 auto;align-items:center;gap:9px}.button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:1px solid transparent;border-radius:6px;font-size:14px;font-weight:750;line-height:1;white-space:nowrap;transition:background .15s ease,border-color .15s ease,transform .15s ease}.button:active:not(:disabled){transform:translateY(1px)}.button.primary{border-color:var(--accent-deep);background:var(--accent);color:#1a2115;box-shadow:0 2px #4c5b1f1f}.button.primary:hover:not(:disabled){background:#e9fa84}.button.ghost{border-color:var(--line-strong);background:var(--surface-strong);color:#343b35}.button.ghost:hover:not(:disabled){border-color:#b6bdb2;background:#f7f8f3}.button.compact{min-height:34px;padding:0 12px;font-size:12px}.icon-button{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border:1px solid var(--line);border-radius:6px;background:var(--surface-strong);color:var(--muted)}.icon-button:hover:not(:disabled){border-color:var(--line-strong);color:var(--ink)}.icon-button.subtle{width:28px;height:28px;border-color:transparent;background:transparent}.search-box{display:flex;height:40px;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--line);border-radius:6px;background:var(--surface-strong);color:var(--muted-light)}.search-box:focus-within{border-color:#aeb8a9;box-shadow:0 0 0 3px #aeb8a921}.search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:14px}.search-box input::placeholder{color:#a0a69d}.tab-group{display:flex;align-items:center;gap:3px}.tab-group button{display:inline-flex;height:36px;align-items:center;gap:6px;padding:0 11px;border-radius:5px;background:transparent;color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap}.tab-group button:hover{color:var(--ink)}.tab-group button.active{background:var(--surface-strong);color:var(--ink);box-shadow:0 1px 4px #1c221d14}.tab-group button b{display:grid;min-width:18px;height:17px;padding:0 5px;place-items:center;border-radius:4px;background:#e8ebe3;color:#697067;font-size:11px}.status-pill{display:inline-flex;height:25px;align-items:center;gap:6px;padding:0 9px;border-radius:999px;font-size:10px;font-weight:750;white-space:nowrap}.status-pill>span{width:5px;height:5px;border-radius:50%;background:currentColor}.status-pill.neutral{background:#eff0eb;color:#7c8279}.status-pill.working{background:#fff3d8;color:#9c6a11}.status-pill.done{background:#e4f6ec;color:#277858}.empty-filter-state{display:flex;min-height:260px;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);text-align:center}.empty-filter-state strong{color:var(--ink);font-size:14px}.empty-filter-state span{font-size:12px}.metric-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.metric{position:relative;display:flex;min-width:0;align-items:center;gap:11px;padding:17px 18px}.metric+.metric{border-left:1px solid var(--line)}.metric-icon{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:6px}.metric-icon.lime{background:#eff7c9;color:#61751e}.metric-icon.sky{background:#e8f0ff;color:#446da9}.metric-icon.coral{background:#ffebe5;color:#ad4f3c}.metric-icon.mint{background:#e4f7ef;color:#28775e}.metric>div{display:flex;min-width:0;flex-direction:column;gap:1px}.metric small{color:var(--muted);font-size:10px;font-weight:650}.metric strong{color:var(--ink);font-size:23px;line-height:1.05}.metric strong span{margin-left:2px;color:var(--muted-light);font-size:12px;font-weight:650}.metric em{display:none;margin-left:auto;color:#b3b8af;font-size:8px;font-style:normal;font-weight:750}.workspace-section{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.section-toolbar{display:flex;min-height:58px;align-items:center;justify-content:space-between;gap:16px;padding:12px 17px;border-bottom:1px solid var(--line);background:#f9faf6}.list-search-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 17px;border-bottom:1px solid var(--line)}.list-search-row .search-box{width:min(340px,100%)}.list-count{color:var(--muted);font-size:12px}.episode-table-head,.episode-row{display:grid;grid-template-columns:minmax(210px,2fr) .58fr 1fr .75fr .65fr 34px;align-items:center;gap:16px;padding:0 18px}.episode-table-head{height:37px;border-bottom:1px solid var(--line);background:#fcfcf9;color:#9ba198;font-size:10px;font-weight:750;text-transform:uppercase}.episode-row{width:100%;min-height:74px;border-bottom:1px solid #e9ebe4;background:transparent;text-align:left;transition:background .14s ease}.episode-row:last-child{border-bottom:0}.episode-row:hover{background:#f8f9f4}.episode-title-cell{display:flex;min-width:0;align-items:center;gap:12px}.episode-cover{display:grid;width:37px;height:37px;flex:0 0 auto;place-items:center;border:1px solid #e1e4da;border-radius:6px;background:linear-gradient(135deg,rgba(223,243,106,.32),transparent 72%),#f2f4eb;color:#53613e}.episode-title-cell>span:last-child{display:flex;min-width:0;flex-direction:column;gap:4px}.episode-title-cell strong{overflow:hidden;color:var(--ink);font-size:13px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.episode-title-cell small{display:flex;min-width:0;align-items:center;gap:6px;overflow:hidden;color:#949b91;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.episode-title-cell small i{padding:2px 5px;border-radius:3px;background:#eff5ce;color:#637323;font-size:8px;font-style:normal;font-weight:750}.shot-count-cell{display:flex;align-items:baseline;gap:4px}.shot-count-cell strong{font-size:14px}.shot-count-cell small{color:var(--muted);font-size:9px}.progress-cell{display:flex;flex-direction:column;gap:7px}.progress-top{display:flex;align-items:baseline;justify-content:space-between}.progress-top b{font-size:11px}.progress-top small{color:var(--muted);font-size:9px}.progress-track{height:4px;overflow:hidden;border-radius:999px;background:#e9ebe4}.progress-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8ca33d,var(--accent-deep))}.updated-cell{color:var(--muted);font-size:10px}.row-action{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;color:#a4aaa1;transition:color .14s ease,background .14s ease}.episode-row:hover .row-action{background:var(--accent);color:var(--ink)}.dashboard-empty{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);min-height:470px;background:#fcfdf9}.empty-copy{display:flex;flex-direction:column;justify-content:center;padding:48px}.empty-kicker{display:inline-flex;width:fit-content;height:27px;align-items:center;gap:7px;margin-bottom:18px;padding:0 9px;border:1px solid #dfe6c1;border-radius:5px;background:#f3f8dc;color:#63752d;font-size:10px;font-weight:750}.empty-copy h2{max-width:470px;font-size:clamp(26px,2.2vw,36px);line-height:1.2}.empty-copy>p{max-width:520px;margin-top:15px;color:var(--muted);font-size:13px;line-height:1.8}.empty-copy>p b{color:#4d5d30}.empty-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}.empty-flow{display:flex;max-width:510px;align-items:center;gap:9px;margin-top:38px;padding-top:20px;border-top:1px solid var(--line)}.empty-flow span{display:flex;align-items:center;gap:6px;color:#737b71;font-size:10px}.empty-flow b{color:#a1a79e;font-size:8px}.empty-flow i{width:clamp(12px,3vw,35px);height:1px;background:#d3d7cc}.empty-preview{align-self:stretch;margin:20px;padding:14px;border-radius:8px;background:#17201b;color:#eef1e8;box-shadow:var(--shadow)}.preview-topline{display:flex;height:24px;align-items:center;gap:9px;color:#768179;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:8px}.preview-topline i{height:1px;flex:1;background:#2b352f}.preview-frame{position:relative;height:280px;overflow:hidden;border-radius:4px;background:#253631}.preview-sky{position:absolute;top:0;right:0;bottom:38%;left:0;background:linear-gradient(180deg,rgba(142,184,255,.17),transparent),#23312d}.preview-building{position:absolute;right:14%;bottom:0;width:52%;height:62%;background:#101714}.preview-building:before{position:absolute;top:-18%;left:12%;width:62%;height:20%;background:#101714;content:"";clip-path:polygon(0 100%,16% 0,100% 35%,100% 100%)}.preview-building span{position:absolute;width:9%;height:10%;background:#d5e566;opacity:.35}.preview-building span:nth-child(1){top:22%;left:18%}.preview-building span:nth-child(2){top:42%;right:20%;opacity:.16}.preview-building span:nth-child(3){bottom:16%;left:42%;opacity:.22}.preview-person{position:absolute;bottom:0;left:34%;width:34px;height:128px;border-radius:18px 18px 0 0;background:#0d1210}.preview-person:before{position:absolute;top:-27px;left:5px;width:24px;height:24px;border-radius:50%;background:#0d1210;content:""}.rain-lines{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;opacity:.36}.rain-lines i{position:absolute;top:-10%;width:1px;height:60px;background:#c9dbef;transform:rotate(15deg)}.rain-lines i:nth-child(1){left:5%;animation:rain 1.2s linear infinite}.rain-lines i:nth-child(2){left:13%;animation:rain 1.5s linear infinite .2s}.rain-lines i:nth-child(3){left:21%;animation:rain 1.1s linear infinite .5s}.rain-lines i:nth-child(4){left:31%;animation:rain 1.7s linear infinite .1s}.rain-lines i:nth-child(5){left:42%;animation:rain 1.3s linear infinite .7s}.rain-lines i:nth-child(6){left:51%;animation:rain 1.6s linear infinite .3s}.rain-lines i:nth-child(7){left:61%;animation:rain 1.2s linear infinite .6s}.rain-lines i:nth-child(8){left:68%;animation:rain 1.4s linear infinite .1s}.rain-lines i:nth-child(9){left:77%;animation:rain 1.1s linear infinite .8s}.rain-lines i:nth-child(10){left:84%;animation:rain 1.8s linear infinite .4s}.rain-lines i:nth-child(11){left:91%;animation:rain 1.3s linear infinite .2s}.rain-lines i:nth-child(12){left:97%;animation:rain 1.5s linear infinite .7s}@keyframes rain{0%{transform:translateY(-80px) rotate(15deg)}to{transform:translate(-25px,360px) rotate(15deg)}}.preview-caption{position:absolute;right:18px;bottom:18px;left:18px;display:flex;flex-direction:column;gap:4px;padding-left:10px;border-left:3px solid var(--accent)}.preview-caption small{color:#8d9a92;font-size:8px}.preview-caption strong{font-size:13px;font-weight:650}.preview-assets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.preview-assets span{display:flex;min-width:0;align-items:center;gap:5px;padding:8px;border:1px solid #2a352f;border-radius:5px;color:#a7b1a9;font-size:8px}.preview-assets b{margin-left:auto;color:var(--accent);font-size:7px;font-weight:700}.modal-backdrop{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:grid;padding:24px;place-items:center;overflow-y:auto;background:#0c110ea3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal{width:min(620px,100%);max-height:calc(100vh - 48px);overflow:auto;border:1px solid rgba(255,255,255,.22);border-radius:8px;background:var(--surface-strong);box-shadow:0 28px 80px #080d0a47}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 17px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:22px;line-height:1.2}.modal-body{padding:22px 24px}.modal-footer{display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:16px;padding:13px 24px;border-top:1px solid var(--line);background:#fafbf7}.modal-actions{display:flex;align-items:center;gap:8px}.footer-note{color:var(--muted);font-size:12px;line-height:1.5}.file-drop{display:flex;width:100%;min-height:160px;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px dashed #bfc6b9;border-radius:7px;background:linear-gradient(90deg,rgba(223,243,106,.055) 1px,transparent 1px),linear-gradient(rgba(223,243,106,.055) 1px,transparent 1px),#f9faf5;background-size:18px 18px;transition:border-color .15s ease,background .15s ease}.file-drop:focus-visible,.quick-upload-control:focus-within{outline:2px solid rgba(167,188,67,.55);outline-offset:2px}.file-drop:hover,.file-drop.dragging{border-color:#92a44d;background-color:#f6f9e9}.drop-icon{display:grid;width:44px;height:44px;margin-bottom:4px;place-items:center;border:1px solid #d6dec4;border-radius:50%;background:#eef4d7;color:#61732c}.file-drop strong{font-size:14px}.file-drop small{color:var(--muted);font-size:10px}.prompt-upload-drop{min-height:190px;gap:11px;padding:18px 22px}.prompt-upload-drop .prompt-upload-title{font-size:14px;line-height:1.35}.prompt-upload-drop .prompt-upload-detail{max-width:100%;color:#6f766d;font-size:15px;font-weight:650;line-height:1.2;text-align:center;overflow-wrap:anywhere}.selected-files{display:flex;max-height:170px;margin-top:13px;flex-direction:column;gap:5px;overflow-y:auto}.selected-file{display:flex;align-items:center;gap:10px;padding:7px 8px;border:1px solid var(--line);border-radius:6px;background:#fcfcf9}.file-type-icon{display:grid;width:30px;height:30px;flex:0 0 auto;place-items:center;border-radius:5px;background:#eff3df;color:#647236}.selected-file>div{display:flex;min-width:0;flex:1;flex-direction:column}.selected-file strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.selected-file small{color:var(--muted);font-size:9px}.parse-rules-strip{display:flex;align-items:center;gap:11px;margin-top:16px;padding:12px 13px;border:1px solid #e1e6d0;border-radius:6px;background:#f6f9ea;color:#61702b}.parse-rules-strip>div{display:flex;flex-direction:column;gap:3px}.parse-rules-strip strong{font-size:10px}.parse-rules-strip span{color:#7b8561;font-size:9px}.form-stack{display:flex;flex-direction:column;gap:16px}.field{display:flex;flex-direction:column;gap:7px}.field>span{color:#545c54;font-size:10px;font-weight:750}.field input,.field textarea{width:100%;border:1px solid var(--line-strong);border-radius:6px;outline:0;background:#fff;color:var(--ink);font-size:12px}.field input{height:40px;padding:0 11px}.field textarea{min-height:126px;padding:11px;line-height:1.65;resize:vertical}.field input:focus,.field textarea:focus{border-color:#899676;box-shadow:0 0 0 3px #8996761f}.field.narrow{width:150px}.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:21px;padding:0;background:transparent;color:var(--muted);font-size:13px;font-weight:700}.back-link:hover{color:var(--ink)}.episode-header{display:flex;align-items:flex-start;justify-content:space-between;gap:26px;margin-bottom:23px}.episode-heading{--episode-heading-size: clamp(14px, 1.3vw, 20px);min-width:0}.episode-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.episode-title-row h1{font-size:var(--episode-heading-size);line-height:1.15}.status-dot-badge{width:9px;height:9px;border-radius:50%;background:var(--muted)}.status-dot-badge.working{background:var(--amber);box-shadow:0 0 0 5px #f2bc5921}.status-dot-badge.done{background:var(--mint);box-shadow:0 0 0 5px #8ee1c021}.demo-pill{padding:3px 7px;border:1px solid #dbe5ad;border-radius:4px;background:#f4f8dd;color:#6e7f2e;font-size:9px;font-weight:750}.episode-meta{display:flex;align-items:center;gap:7px 16px;margin-top:12px;flex-wrap:wrap}.episode-meta span{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;line-height:1.45}.episode-actions{display:flex;flex:0 0 auto;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.episode-primary-actions .button{min-height:58px;gap:10px;padding:0 22px;border-radius:8px;font-size:18px}.episode-primary-actions .button svg{width:22px;height:22px}.rule-section-heading h2,.sample-heading h2{font-size:21px;line-height:1.2}.shot-list-download-toolbar{display:grid;min-height:38px;align-items:center;grid-template-columns:clamp(260px,var(--shot-left-width, 30%),calc(100% - 390px)) 18px minmax(0,1fr) 82px;padding:0 20px}.shot-list-download-anchor{display:flex;flex-wrap:wrap;min-width:0;align-items:center;grid-column:3;gap:7px;justify-self:start}.shot-batch-generate-button{min-width:96px}.shot-batch-download-button{min-width:88px}.shot-batch-cancel-button{min-height:34px}.shot-list{display:flex;flex-direction:column;gap:10px}.shot-row{position:relative;display:grid;grid-template-columns:clamp(220px,var(--shot-left-width, 52%),calc(100% - 390px)) 18px minmax(0,1fr) 82px;gap:0;padding:20px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong);transition:border-color .15s ease,box-shadow .15s ease}.shot-row:hover{border-color:#c9cec2;box-shadow:0 8px 22px #1c221d0b}.shot-row.complete:before{position:absolute;top:14px;bottom:14px;left:0;width:3px;border-radius:0 3px 3px 0;background:#a8bd4a;content:""}.shot-copy{position:relative;display:flex;min-width:0;flex-direction:column;justify-content:center;container-type:inline-size}.shot-media-pane.generation-drawer-open{z-index:2}.shot-splitter{position:relative;width:18px;min-height:100%;cursor:col-resize;touch-action:none}.shot-splitter:before{position:absolute;top:4px;bottom:4px;left:8px;width:2px;border-radius:2px;background:#e0e4da;content:"";transition:background .14s ease,box-shadow .14s ease}.shot-splitter:hover:before,.shot-splitter:focus-visible:before,.shot-row.is-resizing .shot-splitter:before{background:#a8bd4a;box-shadow:0 0 0 3px #a8bd4a21}.shot-splitter:focus-visible{outline:none}.shot-splitter-handle{position:absolute;top:50%;left:50%;display:grid;width:18px;height:48px;place-items:center;border:1px solid #d8ddd2;border-radius:5px;background:#fcfdf9;color:#899283;box-shadow:0 2px 7px #1f272114;transform:translate(-50%,-50%);transition:border-color .14s ease,color .14s ease,box-shadow .14s ease}.shot-splitter:hover .shot-splitter-handle,.shot-splitter:focus-visible .shot-splitter-handle,.shot-row.is-resizing .shot-splitter-handle{border-color:#b2c46f;color:#617532;box-shadow:0 3px 10px #4558201f}.shot-row.is-resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.shot-row.is-resizing .shot-copy,.shot-row.is-resizing .shot-assets,.shot-row.is-resizing .shot-media-pane,.shot-row.is-resizing .shot-generation-rail,.shot-row.is-resizing .shot-unreferenced{pointer-events:none}.shot-order-line{display:flex;align-items:center;gap:9px;margin-bottom:10px}.shot-number{color:#6f7969;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:800}.shot-rule{width:26px;height:1px;background:#d4d8ce}.shot-duration{padding:2px 6px;border:1px solid #e1e5da;border-radius:4px;background:#f7f8f3;color:#747d70;font-size:8px;font-weight:700}.shot-readiness{margin-left:auto;padding:2px 6px;border-radius:3px;background:#f1f2ed;color:#8a9186;font-size:8px;font-weight:700}.shot-readiness.ready{background:#edf6df;color:#66803a}.shot-copy h3{overflow:hidden;font-size:16px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.shot-prompt-input{width:100%;min-width:0;max-width:100%;min-height:132px;max-height:230px;margin-top:9px;padding:10px 11px;overflow-y:auto;border:1px solid #e0e3da;border-radius:6px;background:#fafbf7;color:#676e66;font-size:14px;line-height:1.7;overflow-wrap:anywhere;resize:vertical;scrollbar-gutter:stable;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.shot-prompt-input:hover{border-color:#cbd0c5}.shot-prompt-input:focus{border-color:#a8b873;outline:none;background:#fffef9;box-shadow:0 0 0 3px #b2cd491f}.shot-prompt-toolbar{display:flex;min-height:34px;align-items:center;justify-content:space-between;gap:10px;margin-top:7px}.shot-prompt-toolbar>span{color:#92998f;font-size:12px;line-height:1.4}.shot-prompt-toolbar>span.prompt-dirty-state{color:#8b761f;font-weight:700}.shot-prompt-toolbar>div{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.shot-prompt-toolbar .button{min-height:32px;padding:0 11px;font-size:12px}.shot-prompt-toolbar .prompt-rematch-button{border-color:#cdd8a9;background:#f8fbe9;color:#5f712d}.shot-prompt-toolbar .prompt-rematch-button:hover:not(:disabled){border-color:#b4c477;background:#f2f7d8}@container (max-width: 360px){.shot-prompt-toolbar{flex-wrap:wrap}.shot-prompt-toolbar>span{flex:1 0 100%;white-space:nowrap}}.prompt-viewer-modal{width:min(940px,100%)}.prompt-viewer-modal .modal-body{padding-top:18px;padding-bottom:18px}.prompt-viewer-field{display:grid;gap:9px}.prompt-viewer-field>span{color:var(--muted);font-size:10px;font-weight:750}.prompt-viewer-field textarea{width:100%;min-height:min(56vh,610px);max-height:68vh;padding:19px 20px;overflow-y:auto;border:1px solid #d9ddd3;border-radius:7px;background:#fcfdf9;color:#303832;font-family:inherit;font-size:12px;line-height:1.75;resize:vertical;scrollbar-gutter:stable}.prompt-viewer-field textarea:focus{border-color:#9ead65;outline:none;box-shadow:0 0 0 4px #b2cd4921}.prompt-viewer-assets{display:flex;margin-top:16px;padding:13px 14px;border:1px solid #dfe4d8;border-radius:7px;background:#f8faf3;flex-direction:column;gap:10px}.prompt-viewer-assets>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px 14px;flex-wrap:wrap}.prompt-viewer-assets strong{color:#3f493f;font-size:14px}.prompt-viewer-assets small{color:#7d857a;font-size:12px;line-height:1.45}.prompt-viewer-asset-list{display:flex;gap:8px;flex-wrap:wrap}.prompt-viewer-asset-list>span{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid #d8e2c4;border-radius:5px;background:#fff;color:#52632e;font-size:13px;font-weight:750}.prompt-viewer-asset-list>span.missing{border-color:#edd4cb;background:#fff8f5;color:#986052}.prompt-viewer-asset-list>span small{color:#81906a;font-size:12px;font-weight:550}.prompt-viewer-asset-list>span.missing small{color:#a4776b}.shot-refs{display:flex;margin-top:12px;gap:5px;flex-wrap:wrap}.shot-refs span{padding:3px 7px;border:1px solid #dfe6c5;border-radius:4px;background:#f5f8e9;color:#6b7c32;font-size:11px;font-weight:650}.shot-refs span.no-ref{border-color:#e4e6df;background:#f6f7f2;color:#a0a69d}.shot-assets{display:grid;min-width:0;align-content:start;grid-template-columns:repeat(auto-fit,minmax(max(104px,calc((100% - 30px)/4)),1fr));gap:10px}.shot-media-pane{position:relative;min-width:0;align-self:start}.shot-generation-rail{display:grid;min-width:0;align-content:start;align-self:stretch;grid-template-columns:52px 24px;gap:7px;margin-left:10px;padding-left:8px;border-left:1px solid #e3e6dc}.shot-generation-attempts{display:flex;min-width:0;flex-direction:column;gap:7px}.shot-generation-attempt{display:flex;width:52px;min-height:62px;align-items:center;justify-content:center;padding:5px 3px;border:1px solid #d9ddd4;border-radius:7px;background:#fff;color:#6f776e;box-shadow:0 2px 7px #2028220d;flex-direction:column;gap:3px;transition:border-color .14s ease,background .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease}.shot-generation-attempt:hover,.shot-generation-attempt:focus-visible{border-color:#b7c0aa;box-shadow:0 4px 12px #2028221c;transform:translateY(-1px)}.shot-generation-attempt:focus-visible{outline:3px solid rgba(135,151,101,.2);outline-offset:2px}.shot-generation-attempt.selected{box-shadow:0 0 0 2px #fff,0 0 0 4px #70864a,0 5px 14px #27341e26}.shot-generation-attempt.active{position:relative;justify-content:center;border-color:#d4a91e;background:#f4c53f;color:#4c3700}.shot-generation-attempt.success{border-color:#35884e;background:#3f9b59;color:#fff}.shot-generation-attempt.failed{border-color:#b53c36;background:#d9534f;color:#fff}.shot-generation-attempt.idle{border-color:#d9ddd4;background:#fff;color:#6b736a}.shot-generation-number{color:currentColor;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;font-weight:900;line-height:1;opacity:.72}.shot-generation-signal{display:grid;place-items:center}.shot-generation-attempt strong{overflow:hidden;max-width:46px;font-size:11px;font-weight:850;line-height:1.1;text-align:center;text-overflow:ellipsis;white-space:nowrap}.shot-generation-attempt.active strong{width:100%;max-width:100%;overflow:hidden;font-family:inherit;font-size:11px;letter-spacing:0;text-overflow:clip;white-space:nowrap}.shot-generation-attempt.active small{color:#5c4500;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;font-weight:850;line-height:1}.shot-generation-attempt.active:not(.submitting) strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px}.shot-generation-attempt.active.submitting{min-height:70px;gap:2px}.shot-generation-attempt.active.submitting strong{animation:shot-generation-submitting-pulse 1.15s ease-in-out infinite}@keyframes shot-generation-submitting-pulse{0%,to{opacity:.55}50%{opacity:1}}.shot-generation-attempt.active .shot-generation-number{position:absolute;top:5px;right:0;left:0;text-align:center}.shot-generation-attempt.active .shot-generation-signal{display:none}.shot-generation-drawer-toggle{display:grid;width:24px;min-height:76px;align-self:start;place-items:center;padding:0;border:1px solid #d9ddd2;border-radius:0 6px 6px 0;background:#f4f6ee;color:#67715e;transition:border-color .14s ease,background .14s ease,color .14s ease}.shot-generation-drawer-toggle:hover,.shot-generation-drawer-toggle:focus-visible,.shot-generation-drawer-toggle.active{border-color:#aebc87;outline:none;background:#eaf0db;color:#4f652b}.shot-generation-drawer-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:20;width:100%;height:100%;overflow:hidden}.shot-generation-drawer{position:relative;display:flex;width:100%;height:100%;min-height:0;flex-direction:column;overflow:hidden;border:1px solid #cfd5c6;border-radius:7px;background:#f5f6f0;box-shadow:-12px 0 32px #171f192e;animation:shot-generation-drawer-in .21s cubic-bezier(.2,.78,.2,1) both;container-name:generation-drawer;container-type:inline-size}.shot-generation-drawer-body-shell{display:flex;min-height:0;flex:1;padding:8px;overflow:hidden}.shot-generation-drawer-body-shell.selection-mode{gap:7px;padding:8px}.shot-generation-drawer-body-shell.selection-mode .shot-generation-drawer-body{padding:0}.shot-generation-drawer-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #dfe3d8;background:#fbfcf8}.shot-generation-drawer-header>div{min-width:0}.shot-generation-drawer-header h2{margin-top:2px;overflow:hidden;color:#2b332d;font-size:16px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.shot-generation-drawer-header p{margin-top:3px;color:#777f75;font-size:11px;line-height:1.4}.shot-generation-drawer-body{display:grid;min-height:0;flex:1;align-content:start;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:8px;overflow-y:auto;overflow-x:hidden}.generation-row-selection{display:flex;width:38px;flex:0 0 38px;align-items:center;padding-top:5px;color:#66705f;font-size:9px;font-weight:750;flex-direction:column;gap:5px}.generation-selection-toggle{display:grid;width:22px;height:22px;flex:0 0 auto;place-items:center;padding:0;border:1px solid #b9c0b1;border-radius:5px;background:#fff;color:#7f8879;cursor:pointer;transition:border-color .13s ease,background .13s ease,color .13s ease}.generation-selection-toggle:hover:not(:disabled),.generation-selection-toggle:focus-visible{border-color:#8d9f62;outline:none;color:#52652f}.generation-selection-toggle.checked,.generation-selection-toggle.mixed{border-color:#698341;background:#78964c;color:#fff}.generation-selection-toggle:disabled{border-color:#d9ddd3;background:#eef0eb;color:#aeb4a8;cursor:not-allowed}.generation-video-selection{position:absolute;top:5px;left:5px;z-index:6;box-shadow:0 2px 7px #1c231d33}.generation-version-card{position:relative;display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden;border:1px solid #d9ddd4;border-radius:8px;background:#fff;box-shadow:0 5px 18px #1f27210f;transition:border-color .14s ease,box-shadow .14s ease}.generation-version-card:hover{border-color:#bfc7b6}.generation-version-card.selected{border-color:#7e934f;box-shadow:0 0 0 2px #7e934f29,0 7px 22px #1f27211a}.generation-version-card.active{border-color:#ddbd5c}.generation-version-card.success{border-color:#b8d4b6}.generation-version-card.failed{border-color:#e3c5c0}.generation-version-head{display:flex;min-height:38px;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:3px;padding:6px;border-bottom:1px solid #e6e9e1;background:#fafbf7}.generation-version-card.selectable .generation-version-head{padding-left:31px}.generation-version-title-block{display:flex;width:100%;min-width:0;flex-direction:column;gap:1px}.generation-version-title{max-width:100%;overflow:hidden;color:#303832;font-size:13px;font-weight:850;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.generation-version-number{display:inline-flex;width:fit-content;align-items:center;gap:3px;padding:1px 0;border:0;background:transparent;color:#778072;cursor:default;font-size:11px;font-weight:800;font-family:inherit;line-height:1.3;text-align:left}.generation-version-number.is-downloadable{min-width:5.4em;justify-content:center;padding:3px 6px;border:1px solid #c8d5ae;border-radius:4px;background:#f2f7e4;color:#526d2d;cursor:pointer;white-space:nowrap}.generation-version-number.is-downloadable:hover:not(:disabled),.generation-version-number.is-downloadable:focus-visible{border-color:#98aa70;outline:none;background:#e7f0d2;color:#3f5722}.generation-version-number.is-downloadable:disabled{border-color:#dfe2d9;background:#f1f2ee;color:#a3aaa0;cursor:not-allowed}.generation-version-state{display:inline-flex;min-height:20px;align-items:center;gap:3px;padding:0 4px;border-radius:5px;background:#edf0e8;color:#747c72;font-size:10px;font-weight:800;white-space:nowrap}.generation-version-state svg{width:12px;height:12px}.generation-version-card.active .generation-version-state{background:#fff3c5;color:#805f08}.generation-version-card.success .generation-version-state{background:#e7f4e8;color:#397648}.generation-version-card.failed .generation-version-state{background:#fbe9e6;color:#a4453b}.generation-version-preview{display:grid;min-height:0;flex:0 0 auto;aspect-ratio:9 / 16;place-items:center;padding:4px;overflow:hidden;background:linear-gradient(135deg,rgba(255,255,255,.03),transparent 55%),#202722}.generation-version-preview video{width:100%;height:100%;max-height:none;border-radius:5px;background:#000;object-fit:contain}.generation-video-player{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px;background:#000}.generation-video-player video{display:block;cursor:pointer}.generation-video-center-play{position:absolute;top:50%;left:50%;z-index:2;display:grid;width:38px;height:38px;place-items:center;padding:0 0 0 2px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:#141b16b8;color:#fff;box-shadow:0 5px 18px #00000040;cursor:pointer;transform:translate(-50%,-50%)}.generation-video-center-play:hover,.generation-video-center-play:focus-visible{border-color:#fffc;outline:none;background:#28352ae0}.generation-video-controls{position:absolute;right:0;bottom:0;left:0;z-index:3;padding:20px 5px 5px;background:linear-gradient(transparent,#050906e6);color:#fff}.generation-video-progress{display:block;width:100%;height:12px;margin:0 0 2px;accent-color:#e4f584;cursor:pointer}.generation-video-control-row{display:flex;min-width:0;align-items:center;gap:3px}.generation-video-control-row button{display:grid;width:22px;height:22px;flex:0 0 22px;place-items:center;padding:0;border:0;border-radius:4px;background:transparent;color:#fff;cursor:pointer}.generation-video-control-row button:hover,.generation-video-control-row button:focus-visible{outline:none;background:#ffffff2e}.generation-video-control-row button:disabled{color:#ffffff5c;cursor:not-allowed}.generation-video-time{min-width:0;flex:1;overflow:hidden;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:800;line-height:1;text-align:center;text-overflow:ellipsis;white-space:nowrap}.generation-video-pip{position:absolute;top:6px;right:6px;z-index:4;display:grid;width:28px;height:28px;place-items:center;padding:0;border:1px solid rgba(255,255,255,.42);border-radius:5px;background:#101612c2;color:#fff;cursor:pointer;box-shadow:0 4px 12px #00000047}.generation-video-pip:hover,.generation-video-pip:focus-visible,.generation-video-pip.active{border-color:#e4f584f2;outline:none;background:#455731f0;color:#efffb8}.generation-video-pip:disabled{display:none}.generation-version-placeholder{display:flex;width:100%;height:100%;min-height:0;align-items:center;justify-content:center;padding:6px;border:1px dashed #bfc6b6;border-radius:6px;color:#778073;flex-direction:column;gap:5px;text-align:center}.generation-version-placeholder>strong{color:#3d473e;font-size:12px;line-height:1.2}.generation-version-placeholder>span{max-width:100%;font-size:10px;line-height:1.35}.generation-version-placeholder>svg{width:22px;height:22px}.generation-version-placeholder .button{min-height:28px;padding:0 8px;font-size:10px}.generation-version-placeholder.idle{background:#fafbf7}.generation-version-placeholder.active{border-color:#d7b743;background:#fffaf0;color:#7b641d}.generation-version-placeholder.active>strong{color:#5b4700;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:18px;line-height:1.1}.generation-version-placeholder.failed{border-color:#dda49b;background:#fff6f4;color:#9d4b40}.generation-version-orbit{display:grid;width:34px;height:34px;place-items:center;border:1px solid #ead99b;border-radius:50%;background:#fff4c8;color:#9a7414}.generation-version-progress{width:min(100%,120px);height:4px;overflow:hidden;border-radius:6px;background:#eee3bb}.generation-version-progress b{display:block;height:100%;border-radius:inherit;background:#d5aa23;transition:width .3s ease}.generation-version-download,.generation-version-start{display:inline-flex;align-items:center;gap:5px;color:#747c72;font-size:11px;font-weight:700}.generation-version-download,.generation-version-start{flex:0 0 auto;justify-content:center;padding:4px 5px;border:1px solid #c8d5ae;border-radius:5px;background:#f2f7e4;color:#526d2d;cursor:pointer;font:inherit;font-size:11px;font-weight:700;text-decoration:none}.generation-version-download:disabled{border-color:#dfe2d9;background:#f1f2ee;color:#a3aaa0;cursor:not-allowed}.generation-version-start{border-color:#b8c990;background:#eaf2d6}.shot-generation-drawer-footer{display:flex;min-height:42px;flex:0 0 auto;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;border-top:1px solid #d9ded2;background:#fbfcf8}.shot-generation-drawer-footer>span{display:inline-flex;align-items:center;gap:5px;color:#757d72;font-size:10px}@container generation-drawer (max-width: 360px){.shot-generation-drawer-header p,.shot-generation-drawer-footer{display:none}.shot-generation-drawer-body-shell,.shot-generation-drawer-body-shell.selection-mode{padding:6px}.shot-generation-drawer-body{align-content:stretch;grid-auto-rows:minmax(0,1fr)}.generation-version-card{position:relative;height:100%;min-height:0;border-radius:6px;background:#202722}.generation-version-head{position:absolute;inset:5px 5px auto;z-index:2;min-height:0;align-items:center;padding:0;border:0;background:transparent;flex-direction:row;pointer-events:none}.generation-version-title-block{min-width:0;flex:1}.generation-version-title{padding:3px 4px;border-radius:4px;background:#181f1ac7;color:#fff;font-size:10px;line-height:1}.generation-version-number{width:fit-content;min-width:18px;padding:3px 4px;border:0;border-radius:4px;background:#181f1ac7;color:#fff;font-size:0;line-height:1;text-align:center;white-space:nowrap}.generation-version-number.is-downloadable{pointer-events:auto}.generation-video-selection{top:4px;left:4px;width:20px;height:20px}.generation-version-number:after{font-size:11px;content:attr(data-generation-label)}.generation-version-state{width:21px;height:21px;min-height:21px;justify-content:center;padding:0;border:1px solid rgba(255,255,255,.38);border-radius:50%;background:#181f1ac2;color:#fff;font-size:0}.generation-version-state svg{width:12px;height:12px}.generation-version-card.active .generation-version-state,.generation-version-card.success .generation-version-state,.generation-version-card.failed .generation-version-state{color:#fff}.generation-version-preview{flex:1;aspect-ratio:auto;padding:0}.generation-version-preview video{border-radius:0;object-fit:cover}.generation-version-placeholder{min-height:0;padding:34px 4px 30px;border:0;border-radius:0;gap:4px}.generation-version-placeholder>svg{width:20px;height:20px}.generation-version-placeholder>strong{max-width:100%;font-size:10px;line-height:1.15;overflow-wrap:anywhere}.generation-version-placeholder>span{display:none}.generation-version-placeholder.idle>strong{display:none}.generation-version-placeholder.active>strong{font-size:10px;line-height:1.1;white-space:nowrap}.generation-version-placeholder .button{width:30px;height:30px;min-height:30px;overflow:hidden;padding:0;font-size:0}.generation-version-download,.generation-version-start{width:29px;height:29px;margin-left:auto;overflow:hidden;padding:0;border-color:#ffffff6b;background:#181f1ac7;color:#fff;font-size:0;pointer-events:auto}.generation-version-download svg,.generation-version-start svg{flex:0 0 auto}}@keyframes shot-generation-drawer-in{0%{transform:translate(100%)}to{transform:translate(0)}}.shot-media-pane.has-generation-indicator{padding-top:48px}.shot-video-status-icon{position:absolute;top:0;right:0;z-index:4;display:grid;width:46px;height:46px;place-items:center;padding:0;border:1px solid #d2d9c4;border-radius:8px;background:#f8faef;color:#5e7131;box-shadow:0 6px 16px #34402a21;transition:border-color .14s ease,background .14s ease,color .14s ease,transform .14s ease}.shot-video-status-icon:hover,.shot-video-status-icon:focus-visible{border-color:#a9bd6c;background:#f2f7df;transform:translateY(-1px)}.shot-video-status-icon:focus-visible{outline:3px solid rgba(168,189,74,.22);outline-offset:2px}.shot-video-status-icon.running{border-color:#bfd1e3;background:#f3f8fd;color:#4e789f}.shot-video-status-icon.running:hover,.shot-video-status-icon.running:focus-visible{border-color:#8eb4d6;background:#eaf3fb}.shot-video-status-icon.preparing,.shot-video-status-icon.waiting{border-color:#ddd5b3;background:#fcfaf0;color:#97772e}.shot-video-status-icon.success{border-color:#c5d8a4;background:#f5faeb;color:#627f32}.shot-video-status-icon.failed{border-color:#e4c2ba;background:#fff7f4;color:#a65443}.shot-video-status-main{position:relative;display:grid;place-items:center}.shot-video-status-signal{position:absolute;right:-8px;bottom:-7px;display:grid;width:18px;height:18px;place-items:center;border:2px solid #fff;border-radius:50%;background:currentColor}.shot-video-status-signal svg{color:#fff}.shot-video-status-progress{position:absolute;right:4px;bottom:2px;color:currentColor;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px;font-weight:850;line-height:1}.shot-video-status-tooltip{position:absolute;top:calc(100% + 8px);right:0;z-index:8;display:none;width:max-content;max-width:230px;padding:7px 9px;border-radius:5px;background:#253028;color:#f2f6ee;font-size:12px;font-weight:700;line-height:1.4;text-align:left;box-shadow:0 7px 18px #1a221c33}.shot-video-status-icon:hover .shot-video-status-tooltip,.shot-video-status-icon:focus-visible .shot-video-status-tooltip{display:block}.media-slot{min-width:0;padding:10px;border:1px solid #e0e3db;border-radius:7px;background:#f7f8f3;container-type:inline-size}.media-slot.filled{background:#fbfcf8}.match-card-head{display:flex;min-width:0;align-items:center;gap:8px}.match-index{display:grid;width:32px;height:29px;flex:0 0 auto;place-items:center;border-radius:4px;background:#242d27;color:#dce5dc;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;font-weight:800}.match-reference{min-width:0;flex:1;overflow:hidden;color:#394139;font-size:16px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.match-status{flex:0 0 auto;padding:4px 8px;border-radius:4px;background:#f0f1eb;color:#92988e;font-size:14px;font-weight:750}.match-status.auto{background:#edf4dc;color:#617832}.match-status.manual{background:#e7effb;color:#4c6d9c}.match-status.missing{background:#fff0e9;color:#a45e48}.match-status.cleared{background:#eef0ed;color:#70776e}.slot-label{display:flex;min-height:34px;align-items:center;justify-content:space-between;gap:7px;margin-top:9px}.slot-label>span{display:inline-flex;align-items:center;gap:5px;color:#5a625a;font-size:15px;font-weight:750}.slot-label small{padding:3px 6px;border-radius:3px;background:#eceee7;color:#92998f;font-size:12px;font-weight:700;white-space:nowrap}.slot-label small.from-library{background:#edf4dc;color:#69803b}.slot-label small.from-local{background:#e7effb;color:#5575a3}.media-visual{position:relative;height:122px;overflow:hidden;border-radius:4px;background:#1a211d}.media-visual img,.media-visual video{width:100%;height:100%;object-fit:cover}.media-visual.previewable{cursor:zoom-in;-webkit-user-select:none;user-select:none}.media-preview-popover{position:fixed;z-index:130;overflow:hidden;border:1px solid rgba(255,255,255,.22);border-radius:8px;background:#121914;box-shadow:0 18px 48px #0307056b;transform-origin:center bottom;animation:media-preview-popover-in .15s ease-out}.media-preview-close{position:absolute;top:8px;right:8px;z-index:2;display:grid;width:32px;height:32px;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:6px;background:#0a0f0cb8;color:#eef2eb;cursor:pointer}.media-preview-close:hover{border-color:#ffffff6b;background:#0a0f0ceb;color:#fff}.media-preview-dialog-body{width:100%;height:100%;overflow:hidden;background:#090e0b}.media-preview-dialog-body img,.media-preview-dialog-body video{display:block;width:100%;height:100%;object-fit:contain}.media-preview-caption{position:absolute;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:22px 44px 8px 10px;background:linear-gradient(transparent,#040806e6);color:#aeb7af;font-size:11px;font-weight:700;pointer-events:none}.media-preview-caption strong{overflow:hidden;color:#f1f4ee;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.media-preview-caption span{flex:0 0 auto}@keyframes media-preview-popover-in{0%{opacity:0;transform:translateY(5px)}}.video-demo-tag{position:absolute;right:5px;bottom:5px;padding:2px 4px;border-radius:3px;background:#0d1410b8;color:var(--accent);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.slot-hover-actions{position:absolute;top:5px;right:5px;display:flex;gap:4px;opacity:0;transition:opacity .14s ease}.media-slot:hover .slot-hover-actions{opacity:1}.media-icon-button{display:grid;width:24px;height:24px;place-items:center;border-radius:4px;background:#0f1411c7;color:#eef1e9;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.media-icon-button:hover{background:#111713}.media-icon-button.danger:hover{background:#9e3d31}.slot-uploading{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#0f1411ad;color:var(--accent)}.empty-media-visual{display:flex;width:100%;height:122px;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px dashed #cdd2c6;border-radius:4px;background:#f9faf6;color:#81897f;cursor:pointer}.empty-media-visual:hover{border-color:#a8b388;background:#f6f9ec;color:#617039}.empty-media-visual[aria-disabled=true]{cursor:not-allowed;opacity:.58;pointer-events:none}.empty-media-plus{display:grid;width:30px;height:30px;margin-bottom:3px;place-items:center;border:1px solid #d9ddd3;border-radius:50%;background:#fff}.empty-media-plus.cleared{border-color:#d5d9d2;background:#f1f3ef;color:#7d857b}.empty-media-visual strong{font-size:17px}.empty-media-visual small{color:#a2a89f;font-size:14px}.slot-caption{display:flex;min-width:0;padding:8px 2px 2px;align-items:center;justify-content:space-between;gap:5px}.slot-caption strong{overflow:hidden;color:#454c45;font-size:15px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.slot-caption.pending-caption strong{display:-webkit-box;overflow:hidden;line-height:1.3;text-overflow:ellipsis;white-space:normal;word-break:break-word;-webkit-box-orient:vertical;-webkit-line-clamp:2}.slot-caption.pending-caption span{color:#a45e48}.slot-caption.pending-caption.cleared-caption span{color:#7d857b}.slot-caption span{display:inline-flex;flex:0 0 auto;align-items:center;gap:2px;color:#9aa095;font-size:14px}.match-card-actions{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;margin-top:10px}.match-action-picker-feedback{position:absolute;top:auto;right:0;bottom:calc(100% + 8px);z-index:30;display:none;padding:7px 10px;border:2px solid #222;background:#fff;color:#222;font-size:15px;font-weight:650;line-height:1.3;white-space:nowrap;pointer-events:none;box-shadow:2px 2px #0000001f}.upload-action[aria-busy=true]:hover+.match-action-picker-feedback,.upload-action[aria-busy=true]:focus-visible+.match-action-picker-feedback{display:block}.match-action{display:inline-flex;position:relative;min-width:0;height:42px;align-items:center;justify-content:center;gap:7px;padding:0 10px;border:1px solid #d9ddd3;border-radius:5px;background:#fff;color:#4f574f;font-size:15px;font-weight:750;white-space:nowrap;cursor:pointer}.match-action-file-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}.match-action:hover{border-color:#afb9a7;background:#f7f9f1;color:#303830}.match-action.danger{width:42px;padding:0;color:#a35c4b}.match-action.danger:hover{border-color:#e1b9ae;background:#fff3ef;color:#963f2d}.match-action[aria-disabled=true]{cursor:not-allowed;opacity:.58;pointer-events:none}@container (max-width: 200px){.match-card-head{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:5px}.match-index{width:30px;height:27px;font-size:13px}.match-reference{font-size:14px}.match-status{grid-column:1 / -1;justify-self:start;padding:3px 6px;font-size:13px}.slot-label{min-height:28px;margin-top:6px}.slot-label>span{font-size:14px}.slot-label small{display:none}.media-visual,.empty-media-visual{height:96px}.empty-media-plus{width:26px;height:26px}.empty-media-visual strong{font-size:14px}.empty-media-visual small{font-size:12px}.slot-caption strong{font-size:13px}.slot-caption span{display:none}.match-card-actions{grid-template-columns:1fr;gap:5px;margin-top:8px}.match-action{height:36px;padding:0 6px;gap:4px;font-size:13px}.match-action.danger{width:auto}}.shot-unreferenced{display:flex;min-height:158px;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:18px;border:1px dashed #d7dbd1;border-radius:7px;background:#fafbf7;color:#939a90;text-align:center}.shot-unreferenced strong{color:#5d655d;font-size:13px}.shot-unreferenced span{max-width:360px;font-size:12px;line-height:1.55}.audio-preview{display:flex;height:100%;align-items:center;gap:7px;padding:11px 8px;background:linear-gradient(90deg,rgba(142,225,192,.08),transparent 58%),#18231e}.audio-play{display:grid;width:32px;height:32px;flex:0 0 auto;place-items:center;border-radius:50%;background:var(--mint);color:#11251e}.waveform{display:flex;height:35px;flex:1;align-items:center;gap:2px}.waveform span{display:block;width:2px;min-height:3px;border-radius:999px;background:#8ee1c0;opacity:.72}.asset-picker-modal{display:flex;width:min(1120px,100%);flex-direction:column;overflow:hidden}.asset-picker-toolbar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:14px;padding:14px 24px;border-bottom:1px solid var(--line);background:#f9faf6}.asset-picker-toolbar .search-box{width:min(470px,100%)}.picker-required-type{display:inline-flex;height:38px;flex:0 0 auto;align-items:center;gap:7px;padding:0 12px;border-radius:5px;background:#eef2e4;color:#657436;font-size:12px;font-weight:750}.picker-required-type.video{background:#e9f0fc;color:#4e6f9f}.picker-required-type.audio{background:#e6f5ee;color:#3f7761}.asset-picker-body{min-height:240px;flex:1;overflow-y:auto;padding:18px 24px 24px;scrollbar-gutter:stable}.asset-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.asset-picker-item{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid #dfe2d9;border-radius:7px;background:#fff;text-align:left;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.asset-picker-item:hover:not(:disabled){border-color:#aeb99f;box-shadow:0 8px 22px #1f282114;transform:translateY(-1px)}.asset-picker-item.current{border-color:#9fb353;box-shadow:inset 0 0 0 1px #9fb353}.asset-picker-visual{position:relative;display:block;width:100%;aspect-ratio:16 / 10;overflow:hidden;background:#18211c}.asset-picker-visual img,.asset-picker-visual video{width:100%;height:100%;object-fit:cover}.picker-video-tag,.asset-picker-current{position:absolute;z-index:1;border-radius:4px;font-size:10px;font-weight:800}.picker-video-tag{right:8px;bottom:8px;padding:3px 6px;background:#0a100cb3;color:#dce6df}.asset-picker-current{top:8px;right:8px;display:inline-flex;align-items:center;gap:4px;padding:4px 7px;background:var(--accent);color:#263017}.asset-picker-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#0c120e9e;color:var(--accent)}.picker-audio-preview{display:flex;width:100%;height:100%;align-items:center;justify-content:center;gap:16px;padding:20px;color:#8ee1c0}.picker-audio-preview>span{display:flex;width:min(145px,65%);height:62px;align-items:center;gap:3px}.picker-audio-preview i{display:block;width:4px;min-height:6px;flex:1;border-radius:999px;background:#8ee1c0;opacity:.76}.asset-picker-copy{display:flex;min-width:0;align-items:center;gap:9px;padding:10px 11px 11px}.asset-picker-copy>span:last-child{display:flex;min-width:0;flex-direction:column;gap:3px}.asset-picker-copy strong{overflow:hidden;color:#3a423b;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.asset-picker-copy small{color:#91988e;font-size:10px}.asset-picker-icon{display:grid;width:28px;height:28px;flex:0 0 auto;place-items:center;border-radius:5px;background:#fff0e9;color:#b36247}.asset-picker-icon.video{background:#e9f1ff;color:#5376a7}.asset-picker-icon.audio{background:#e5f6ee;color:#3a7b63}.asset-picker-empty{display:flex;min-height:260px;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#9aa097;text-align:center}.asset-picker-empty strong{color:#4d554d;font-size:15px}.asset-picker-empty span{font-size:12px}.empty-shot-list{display:flex;min-height:280px;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px dashed var(--line-strong);border-radius:8px;background:#ffffff75;color:var(--muted)}.asset-overview{display:grid;grid-template-columns:280px minmax(0,1fr);gap:30px;margin-bottom:22px;padding:22px 24px;border-radius:8px;background:#17201b;color:#f1f4ec}.asset-overview-copy{display:flex;flex-direction:column;justify-content:center}.asset-overview-copy .eyebrow{color:#667269}.asset-overview-copy strong{color:var(--accent);font-size:38px;line-height:1}.asset-overview-copy p{margin-top:3px;color:#d2d8d1;font-size:12px}.asset-overview-copy>span:last-child{margin-top:10px;color:#707b72;font-size:9px}.asset-count-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;overflow:hidden;border:1px solid #2b352f;border-radius:6px;background:#2b352f}.asset-count-grid button{display:flex;min-width:0;align-items:center;gap:10px;padding:15px;background:#1b241f;text-align:left}.asset-count-grid button:hover{background:#202b24}.asset-count-icon{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:5px}.asset-count-icon.image{background:#ff80641f;color:#ff9b83}.asset-count-icon.video{background:#8eb8ff1f;color:#a8c8fb}.asset-count-icon.audio{background:#8ee1c01f;color:#99e7c9}.asset-count-grid button>span:nth-child(2){display:flex;flex-direction:column}.asset-count-grid small{color:#7b867e;font-size:8px}.asset-count-grid strong{color:#ecf0e8;font-size:21px;line-height:1.1}.asset-count-grid i{margin-left:auto;color:#4d5850;font-size:7px;font-style:normal;font-weight:700}.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px;padding:12px 14px;border:1px solid var(--line);border-radius:7px;background:#f9faf6}.library-toolbar .tab-group{gap:5px}.library-toolbar .tab-group button{height:46px;gap:9px;padding:0 17px;font-size:19.5px}.library-toolbar .tab-group button b{min-width:27px;height:26px;padding:0 8px;font-size:16.5px}.library-controls{display:flex;align-items:center;gap:8px}.library-controls .search-box{width:280px;height:56px;gap:12px;padding:0 16px}.library-controls .search-box svg{width:25px;height:25px}.library-toolbar .search-box input{font-size:21px}.library-toolbar .sort-select select{height:56px;padding:0 36px 0 15px;font-size:18px}.sort-select select{height:40px;padding:0 28px 0 10px;border:1px solid var(--line);border-radius:6px;outline:0;background:var(--surface-strong);color:#555d54;font-size:12px}.asset-upload-row{display:flex;justify-content:flex-end;margin-bottom:14px}.asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.asset-load-more,.asset-picker-load-more{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;color:var(--muted);font-size:13px;font-weight:700}.asset-load-more{grid-column:1 / -1}.asset-picker-load-more{padding-top:16px}.asset-card{position:relative;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.asset-card:hover{border-color:#c7ccc0;box-shadow:0 12px 28px #1c221d12;transform:translateY(-2px)}.asset-thumb{position:relative;display:block;width:100%;aspect-ratio:16 / 10;overflow:hidden;padding:0;background:#1a211d}.asset-image-visual{position:relative;width:100%;height:100%}.asset-image-visual img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}.asset-card:hover .asset-image-visual img{transform:scale(1.025)}.video-play-mark{position:absolute;top:50%;left:50%;display:grid;width:38px;height:38px;place-items:center;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:#0f161294;color:#fff;transform:translate(-50%,-50%);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.video-label{position:absolute;right:8px;bottom:8px;padding:2px 5px;border-radius:3px;background:#0d1410b8;color:#d5e3dc;font-size:7px;font-weight:750}.asset-audio-visual{position:relative;display:flex;height:100%;align-items:center;justify-content:center;padding:24px;background:linear-gradient(90deg,rgba(142,225,192,.06),transparent 68%),#17211c}.asset-waveform{display:flex;width:100%;height:65%;align-items:center;justify-content:center;gap:4px}.asset-waveform span{width:3px;min-height:6px;border-radius:999px;background:#8ee1c0;opacity:.72}.audio-time{position:absolute;right:9px;bottom:8px;color:#5f766b;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:6px}.asset-preview-hint{position:absolute;top:8px;right:8px;padding:3px 6px;border-radius:3px;background:#0d1310a8;color:#eef1e9;font-size:8px;opacity:0;transition:opacity .14s ease;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.asset-thumb:hover .asset-preview-hint{opacity:1}.demo-badge{position:absolute;top:8px;left:8px;padding:3px 6px;border-radius:3px;background:var(--accent);color:#283118;font-size:7px;font-weight:800}.asset-card-body{padding:11px 12px 12px}.asset-name-line{display:flex;min-width:0;align-items:center;gap:7px}.asset-kind-icon{display:grid;width:23px;height:23px;flex:0 0 auto;place-items:center;border-radius:4px}.asset-kind-icon.image{background:#fff0e9;color:#b36247}.asset-kind-icon.video{background:#e9f1ff;color:#5376a7}.asset-kind-icon.audio{background:#e5f6ee;color:#3a7b63}.asset-name-line strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.asset-meta-line{display:flex;align-items:center;gap:6px;margin-top:8px;padding-left:30px;color:#939a90;font-size:8px}.asset-meta-line i{width:2px;height:2px;border-radius:50%;background:#c0c5bb}.asset-card-actions{position:absolute;right:9px;bottom:34px;display:flex;gap:3px;padding:3px;border:1px solid rgba(255,255,255,.2);border-radius:5px;background:#161c18c7;opacity:0;transition:opacity .14s ease;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.asset-card:hover .asset-card-actions{opacity:1}.asset-card-actions button{display:grid;width:25px;height:25px;place-items:center;border-radius:3px;background:transparent;color:#d8ddd7}.asset-card-actions button:hover{background:#ffffff1a}.asset-card-actions button.danger:hover{background:#a64236}.delete-confirm{position:absolute;right:8px;bottom:8px;left:8px;display:flex;align-items:center;gap:6px;padding:8px;border:1px solid #38433c;border-radius:5px;background:#17201b;color:#e9ede6;box-shadow:0 8px 22px #070c0938}.delete-confirm span{flex:1;font-size:9px}.delete-confirm button{display:inline-flex;height:24px;align-items:center;gap:4px;padding:0 7px;border-radius:3px;background:#303b34;color:#dbe0da;font-size:8px}.delete-confirm button.danger{background:#b24a3c;color:#fff}.library-empty{display:flex;min-height:420px;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px dashed var(--line-strong);border-radius:8px;background:#ffffff80;text-align:center}.library-empty-icon{display:grid;width:62px;height:62px;margin-bottom:5px;place-items:center;border:1px solid #dce1d3;border-radius:50%;background:#f7f9f0;color:#79865e}.library-empty h2{font-size:20px}.library-empty p{max-width:430px;margin-bottom:8px;color:var(--muted);font-size:11px;line-height:1.7}.segmented-control{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:15px;padding:4px;border:1px solid var(--line);border-radius:7px;background:#f3f5ee}.segmented-control button{display:flex;height:34px;align-items:center;justify-content:center;gap:6px;border-radius:5px;background:transparent;color:var(--muted);font-size:10px;font-weight:700}.segmented-control button.active{background:#fff;color:var(--ink);box-shadow:0 1px 5px #1c221d14}.asset-drop{position:relative;min-height:148px;overflow:hidden;cursor:pointer}.asset-drop-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.quick-upload-control{min-width:132px}.quick-upload-wrap{position:relative;display:flex;align-items:center}.quick-upload-picker-feedback{position:absolute;right:0;bottom:calc(100% + 8px);z-index:30;display:none;padding:7px 10px;border:2px solid #222;background:#fff;color:#222;font-size:15px;font-weight:650;line-height:1.3;white-space:nowrap;pointer-events:none;box-shadow:2px 2px #0000001f}.quick-upload-control[aria-busy=true]:hover+.quick-upload-picker-feedback,.quick-upload-control[aria-busy=true]:focus-visible+.quick-upload-picker-feedback{display:block}.quick-upload-file-input{position:fixed;top:-1px;left:-1px;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.upload-selection{margin-top:15px}.upload-progress{margin-top:12px;padding:10px 12px;border:1px solid #d9dfc9;border-radius:6px;background:#f7f8f2}.upload-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.upload-progress strong{font-size:12px}.upload-progress span{color:var(--muted);font-size:11px;font-weight:700}.upload-progress-track{height:6px;overflow:hidden;border-radius:999px;background:#e3e7d9}.upload-progress-track i{display:block;height:100%;border-radius:inherit;background:#7b874f;transition:width .18s ease}.selection-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.selection-heading strong{font-size:10px}.selection-heading button{padding:0;background:transparent;color:#8c9388;font-size:9px}.selection-grid{display:grid;max-height:180px;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow-y:auto}.selection-file{display:flex;min-width:0;align-items:center;gap:8px;padding:7px;border:1px solid var(--line);border-radius:5px}.selection-file>span{display:grid;width:28px;height:28px;flex:0 0 auto;place-items:center;border-radius:4px;background:#f0f3e8;color:#6d7951}.selection-file>div{display:flex;min-width:0;flex:1;flex-direction:column}.selection-file strong{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.selection-file small{color:var(--muted);font-size:8px}.asset-preview-modal{width:min(900px,100%)}.preview-modal-body{padding:20px 22px 22px}.large-asset-preview{aspect-ratio:16 / 9;overflow:hidden;border-radius:6px;background:#17201b}.large-asset-preview video{width:100%;height:100%;object-fit:contain;background:#0d1210}.asset-image-visual.large,.asset-audio-visual.large{height:100%}.asset-preview-image-stage{position:relative;width:100%;height:100%;overflow:hidden;background:#111914}.asset-preview-image-stage img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain}.preview-image-placeholder{opacity:.92}.preview-image-original{z-index:1;opacity:0;transition:opacity .18s ease}.preview-image-original.loaded{opacity:1}.preview-image-status{position:absolute;top:14px;left:50%;z-index:2;display:inline-flex;max-width:calc(100% - 28px);min-height:34px;align-items:center;gap:7px;padding:7px 11px;border:1px solid rgba(255,255,255,.16);border-radius:6px;background:#0d1410d1;color:#edf2eb;font-size:12px;font-weight:700;transform:translate(-50%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.preview-image-status.error{top:50%;flex-wrap:wrap;justify-content:center;padding:12px 14px;transform:translate(-50%,-50%)}.preview-image-status button{display:inline-flex;height:28px;align-items:center;gap:5px;padding:0 9px;border-radius:4px;background:#d9e6c0;color:#27301d;font-size:12px;font-weight:800}.asset-image-visual.large .video-play-mark{width:58px;height:58px}.audio-large-preview{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:linear-gradient(90deg,rgba(142,225,192,.08),transparent 65%),#17211c;color:#edf2eb}.audio-large-icon{display:grid;width:82px;height:82px;place-items:center;border:1px solid rgba(142,225,192,.28);border-radius:50%;background:#8ee1c014;color:var(--mint)}.audio-large-preview strong{font-size:17px}.audio-large-preview audio{width:min(440px,84%)}.preview-detail-bar{display:flex;min-width:0;align-items:center;gap:13px;margin-top:13px;color:var(--muted);font-size:9px}.preview-detail-bar>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.preview-detail-bar .file-name{margin-left:auto;overflow:hidden;color:#92998f;text-overflow:ellipsis}.asset-kind{display:inline-flex;height:25px;align-items:center;gap:4px;padding:0 7px;border-radius:4px;font-weight:700}.asset-kind.image{background:#fff0e9;color:#a95d43}.asset-kind.video{background:#e9f1ff;color:#5275a5}.asset-kind.audio{background:#e6f7ef;color:#397b63}.rename-modal{width:min(460px,100%)}.pipeline-band{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:31px;padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.pipeline-band>svg{flex:0 0 auto;color:#afb5aa}.pipeline-step{display:flex;min-width:0;align-items:center;gap:9px}.pipeline-icon{display:grid;width:39px;height:39px;flex:0 0 auto;place-items:center;border-radius:6px;background:#f3f6e4;color:#66763b}.pipeline-icon.sky{background:#eaf1fc;color:#5478a5}.pipeline-icon.mint{background:#e5f7ef;color:#377a62}.pipeline-step>div{display:flex;min-width:0;flex-direction:column;gap:3px}.pipeline-step small{color:#a1a79e;font-size:7px;font-weight:750}.pipeline-step strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.parser-step{padding:9px 13px;border:1px solid #d8dfbf;border-radius:6px;background:#f7f9ed}.pipeline-index{align-self:flex-start;padding:3px 5px;border-radius:3px;background:var(--accent);color:#4a571d;font-size:6px;font-weight:800}.rule-section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:13px}.rule-count{color:var(--muted);font-size:9px}.rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px;margin-bottom:31px}.rule-card{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.rule-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.rule-icon{display:grid;width:35px;height:35px;place-items:center;border-radius:5px;background:#f3f6e6;color:#68783c}.rule-number{color:#c3c8bd;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;font-weight:700}.rule-card h3{font-size:13px}.rule-card code{display:block;margin-top:10px;padding:7px;overflow:hidden;border:1px solid #e5e8df;border-radius:4px;background:#f7f8f3;color:#67745b;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.rule-card p{margin-top:10px;color:var(--muted);font-size:9px;line-height:1.65}.sample-section{padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.sample-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}.sample-heading p{margin-top:6px;color:var(--muted);font-size:10px}.sample-actions{display:flex;gap:7px}.sample-code-wrap{overflow:hidden;border:1px solid #2b352f;border-radius:6px;background:#17201b}.code-topbar{display:flex;height:34px;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #2a342e;color:#78837b;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:7px}.code-topbar span{display:inline-flex;align-items:center;gap:6px}.code-dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}.sample-code-wrap pre{max-height:390px;margin:0;padding:18px;overflow:auto;color:#cdd5cd;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;line-height:1.8;-moz-tab-size:2;tab-size:2}.match-example{display:grid;grid-template-columns:120px 20px repeat(3,minmax(0,1fr));align-items:stretch;gap:8px;margin-top:12px}.match-example>svg{align-self:center;color:#b2b8ae}.match-source,.match-target{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:10px;border:1px solid var(--line);border-radius:5px;background:#f8f9f5}.asset-ref{overflow:hidden;color:#66782d;font-size:13px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.match-source small,.match-target small{margin-top:3px;color:var(--muted);font-size:7px}.match-target strong{overflow:hidden;margin-top:3px;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.match-type{color:#9aa197;font-size:6px;font-weight:800}.library-match{border-color:#dfe5cd;background:#f7f9ef}.empty-match{border-style:dashed;background:#fbfcf8}.api-settings-entry{border-color:#c8d39b;background:#f7f9e9;color:#53652a}.video-api-settings-modal,.video-generation-modal{display:flex;width:min(940px,100%);max-height:calc(100vh - 48px);flex-direction:column;overflow:hidden}.video-api-settings-body,.video-generation-body{min-height:0;overflow-y:auto}.api-manual-notice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:13px;padding:15px 16px;border:1px solid #ecd5a7;border-radius:7px;background:#fffaf0;color:#6e5421}.api-manual-notice>svg{margin-top:1px;color:#a97617}.api-manual-notice strong{display:block;color:#4a3a1d;font-size:15px;line-height:1.45}.api-manual-notice p{margin-top:5px;color:#826a3e;font-size:13px;line-height:1.6}.api-manual-notice code{padding:1px 4px;border-radius:3px;background:#f4ead5;color:#76501c;font-size:12px}.api-manual-notice.configured{border-color:#d9e2bc;background:#f8faef;color:#56632f}.api-manual-notice.configured>svg{color:#78913e}.api-connection-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.api-connection-status{display:inline-flex;min-height:32px;align-items:center;gap:7px;color:#747b70;font-size:13px;font-weight:700}.api-connection-status.connected{color:#587133}.api-connection-status.error{color:#9c5749}.api-inline-warning{margin-top:13px;padding:10px 12px;border:1px solid #dbe4ed;border-radius:6px;background:#f4f8fc;color:#546a80;font-size:13px;line-height:1.55}.api-inline-warning code{font-weight:750}.api-verify-result{display:flex;align-items:flex-start;gap:10px;margin-top:13px;padding:11px 13px;border:1px solid transparent;border-radius:6px;font-size:13px;line-height:1.55}.api-verify-result>svg{flex:none;margin-top:1px}.api-verify-result>span{display:flex;min-width:0;flex-direction:column;gap:2px}.api-verify-result strong{font-size:13px;font-weight:800}.api-verify-result em{font-style:normal;overflow-wrap:anywhere}.api-verify-result.ok{border-color:#cddfb8;background:#f3f8ec;color:#4d6b2f}.api-verify-result.ok>svg{color:#6f9b3d}.api-verify-result.fail{border-color:#f0cfc6;background:#fdf4f1;color:#9c5749}.api-verify-result.fail>svg{color:#c2654f}.api-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:18px}.api-field{display:flex;min-width:0;flex-direction:column;gap:7px}.api-field-wide{grid-column:1 / -1}.api-field>span{display:flex;min-height:22px;align-items:center;gap:7px;color:#454d46;font-size:13px;font-weight:750}.api-field>span svg{color:#727b70}.api-field>span b{margin-left:auto;padding:3px 7px;border-radius:4px;background:#edf4dc;color:#647b34;font-size:11px}.api-field input,.api-field select,.generation-field select{width:100%;min-height:42px;padding:0 11px;border:1px solid #d8dcd2;border-radius:6px;outline:0;background:#fff;color:#252c27;font-size:14px}.api-field input:focus,.api-field select:focus,.generation-field select:focus{border-color:#9dad62;box-shadow:0 0 0 3px #a8bd4a21}.api-field small,.generation-field small{color:#7f867c;font-size:12px;line-height:1.5}.api-model-error{display:flex;align-items:flex-start;gap:8px;margin-top:15px;padding:11px 12px;border:1px solid #ecd0ca;border-radius:6px;background:#fff6f4;color:#925244;font-size:13px;line-height:1.55}.api-model-list{margin-top:19px;padding-top:17px;border-top:1px solid var(--line)}.api-model-list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.api-model-list-heading strong{font-size:14px}.api-model-list-heading span{color:var(--muted);font-size:12px}.api-model-scroll{display:flex;max-height:235px;flex-direction:column;gap:7px;overflow-y:auto;padding-right:4px;scrollbar-gutter:stable}.api-model-option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:11px 12px;border:1px solid #e0e3da;border-radius:6px;background:#fafbf7;text-align:left}.api-model-option:hover{border-color:#c5cdb7;background:#f7f9ef}.api-model-option.active{border-color:#b9c97d;background:#f4f8df;box-shadow:inset 3px 0 #a9bf4b}.api-model-option>span{display:flex;min-width:0;flex-direction:column;gap:3px}.api-model-option>span:last-child{align-items:flex-end;text-align:right}.api-model-option strong,.api-model-option b{overflow:hidden;color:#343c35;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.api-model-option b{color:#5f742f}.api-model-option small{color:#858c82;font-size:11px}.video-api-settings-footer,.video-generation-footer{flex:0 0 auto;flex-wrap:wrap}.danger-text{color:#a74f3e}.generation-manual-notice .button{align-self:center}.generation-loading{display:flex;align-items:center;gap:9px;margin-top:15px;padding:12px;border:1px solid #dfe3d8;border-radius:6px;background:#f8f9f4;color:#687064;font-size:13px}.generation-error{display:flex;align-items:center;gap:8px;margin-top:13px;padding:11px 12px;border:1px solid #ecd0ca;border-radius:6px;background:#fff6f4;color:#925244;font-size:13px}.generation-error>span{flex:1}.generation-control-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(150px,.65fr) minmax(130px,.55fr);gap:12px;margin-top:17px}.generation-field{display:flex;min-width:0;flex-direction:column;gap:7px}.generation-field>span{color:#4b534c;font-size:13px;font-weight:750}.generation-overview{display:grid;grid-template-columns:minmax(150px,auto) minmax(0,1fr) auto;align-items:center;gap:18px;margin-top:17px;padding:14px 15px;border:1px solid #dde2d4;border-radius:7px;background:#f8faf2}.generation-credit{display:flex;flex-direction:column;gap:2px}.generation-credit>span{color:#737b70;font-size:11px;font-weight:750}.generation-credit strong{color:#485c1d;font-size:22px;line-height:1.2}.generation-credit small{color:#8c9387;font-size:10px}.generation-counts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.generation-counts span,.generation-timing{display:inline-flex;min-height:30px;align-items:center;gap:5px;padding:0 9px;border:1px solid #dde2d4;border-radius:5px;background:#fff;color:#586058;font-size:12px;font-weight:700;white-space:nowrap}.generation-current-assets{margin-top:14px;padding:13px 14px;border:1px solid #dfe4d4;border-radius:7px;background:#f8faf3}.generation-current-assets-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px 14px;flex-wrap:wrap}.generation-current-assets-head strong{color:#414b41;font-size:14px}.generation-current-assets-head small{color:#7d857a;font-size:12px}.generation-current-assets-list{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}.generation-current-assets-list>span{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #d8e2c4;border-radius:5px;background:#fff;color:#53652d;font-size:13px;font-weight:750}.generation-current-assets-list>span.missing{border-color:#edd4cb;background:#fff8f5;color:#986052}.generation-current-assets-list>span small{color:#81906a;font-size:12px;font-weight:550}.generation-current-assets-list>span.missing small{color:#a4776b}.generation-preflight-loading{display:flex;align-items:center;gap:8px;margin-top:12px;padding:10px 12px;border:1px solid #dfe4d4;border-radius:6px;background:#f8faf3;color:#697462;font-size:13px;line-height:1.45}.generation-missing,.generation-issues,.generation-ready{margin-top:14px;padding:13px 14px;border-radius:6px;font-size:13px}.generation-missing{border:1px solid #eed8c8;background:#fff9f5;color:#895345}.generation-missing>strong{display:block;margin-bottom:9px}.generation-missing>div{display:flex;gap:7px;flex-wrap:wrap}.generation-missing span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #eed4c9;border-radius:4px;background:#fff;font-weight:750}.generation-missing span small{color:#9a756c;font-size:11px;font-weight:500}.generation-issues{border:1px solid #e9d8b6;background:#fffaf1;color:#765d31}.generation-issues-title{display:flex;align-items:center;gap:7px;margin-bottom:7px}.generation-issues ul{margin:0;padding-left:21px;line-height:1.65}.generation-ready{display:flex;align-items:center;gap:8px;border:1px solid #d8e4bd;background:#f7faee;color:#5d7434;font-weight:700}.generation-prompt-preview{margin-top:14px;border:1px solid #dfe2d9;border-radius:7px;background:#fafbf7}.generation-prompt-preview summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;color:#4a524b;cursor:pointer;font-size:13px;font-weight:750}.generation-prompt-preview summary small{color:#8a9187;font-size:11px;font-weight:500}.generation-prompt-preview pre{max-height:230px;margin:0;padding:13px 15px 16px;overflow:auto;border-top:1px solid #e7e9e2;color:#4d554e;font-family:inherit;font-size:13px;line-height:1.72;white-space:pre-wrap;overflow-wrap:anywhere}.video-credit-confirm{display:flex;max-width:410px;align-items:flex-start;gap:8px;color:#725926;font-size:12px;line-height:1.5}.video-credit-confirm>svg{flex:0 0 auto;margin-top:1px;color:#a37a28}.video-credit-confirm span{display:flex;flex-direction:column}.generation-submit{min-width:162px}.shot-prompt-toolbar .prompt-generate-button{min-height:32px;padding:0 11px;font-size:12px}.video-generation-status{margin-top:10px;padding:12px;border:1px solid #dfe3da;border-radius:7px;background:#f8f9f4}.video-generation-status.waiting{border-color:#ddd9c3;background:#fbfaf4}.video-generation-status.running{border-color:#cedbe9;background:#f5f9fd}.video-generation-status.success{border-color:#d5e3b9;background:#f7faee}.video-generation-status.failed{border-color:#ecd0c9;background:#fff7f5}.generation-status-head{display:flex;align-items:flex-start;gap:9px}.generation-status-icon{display:grid;width:30px;height:30px;flex:0 0 auto;place-items:center;border-radius:5px;background:#ffffffc7;color:#68775c}.video-generation-status.running .generation-status-icon{color:#52779c}.video-generation-status.success .generation-status-icon{color:#668334}.video-generation-status.failed .generation-status-icon{color:#aa5746}.generation-status-head>div{min-width:0;flex:1}.generation-status-head strong{display:flex;align-items:baseline;gap:7px;color:#3e473f;font-size:14px}.generation-status-head strong small{overflow:hidden;color:#858d82;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.generation-status-head p{margin-top:3px;color:#737b70;font-size:12px;line-height:1.5}.generation-status-progress{flex:0 0 auto;padding:3px 7px;border-radius:4px;background:#ffffffc7;color:#64705d;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:800}.generation-progress-track{height:5px;margin-top:10px;overflow:hidden;border-radius:999px;background:#75827024}.generation-progress-track span{display:block;height:100%;border-radius:inherit;background:#87a75c;transition:width .3s ease}.generation-status-meta{display:flex;align-items:center;gap:7px;margin-top:9px;flex-wrap:wrap}.generation-status-meta>span,.generation-download{display:inline-flex;min-height:27px;align-items:center;gap:5px;padding:0 7px;border-radius:4px;background:#ffffffc2;color:#687164;font-size:11px;font-weight:700}.generation-download{margin-left:auto;border:1px solid #cfdab1;color:#576e2d;text-decoration:none}.generation-download:hover{background:#f1f7dc}.generation-result-video{width:100%;max-height:310px;margin-top:10px;border-radius:5px;background:#17201b}.generation-status-error{display:flex;align-items:center;gap:7px;margin-top:9px;padding:8px 9px;border-radius:5px;background:#ffffffb8;color:#9a5144;font-size:12px;line-height:1.5}.generation-status-error>span{flex:1}.generation-polling-note{display:inline-flex;align-items:center;gap:5px;margin-top:8px;color:#7f887c;font-size:11px}.toast{position:fixed;right:auto;bottom:32px;left:50%;z-index:200;display:flex;width:min(760px,calc(100vw - 48px));min-height:64px;align-items:center;gap:13px;padding:17px 56px 17px 20px;border:1px solid #2d3931;border-radius:9px;background:#17201b;color:#edf1e9;box-shadow:0 20px 60px #0a100c57;font-size:16px;font-weight:650;line-height:1.6;text-align:left;transform:translate(-50%);animation:toast-in .18s ease-out}.toast.compact{width:min(620px,calc(100vw - 48px));min-height:0;max-height:min(48vh,380px);align-items:flex-start;overflow:hidden;padding:13px 46px 13px 16px;font-size:13px;font-weight:500;line-height:1.6;gap:10px}.toast.compact svg{width:17px;height:17px;margin-top:2px}.toast.compact span{white-space:pre-line}.toast-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.toast-title{flex:0 0 auto;font-weight:650}.toast-body{flex:1 1 auto;min-height:0;white-space:pre-line;max-height:min(46vh,210px);overflow-y:auto;padding-right:8px;scrollbar-width:thin;scrollbar-color:rgba(237,241,233,.32) transparent;scrollbar-gutter:stable;overscroll-behavior:contain}.toast-body::-webkit-scrollbar{width:8px}.toast-body::-webkit-scrollbar-track{background:transparent}.toast-body::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#edf1e94d;background-clip:padding-box}.toast-body::-webkit-scrollbar-thumb:hover{background:#edf1e980;background-clip:padding-box}.toast-items{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;list-style:none}.toast-item{display:flex;align-items:flex-start;gap:7px}.toast .toast-item svg,.toast.compact .toast-item svg{width:13px;height:13px;margin-top:3px;flex:0 0 auto}.toast .toast-item.ok svg{color:var(--mint)}.toast .toast-item.fail svg{color:#ff9c88}.toast-item span{flex:1;min-width:0}.toast-close{position:absolute;top:9px;right:9px;display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;padding:0;border:0;border-radius:7px;background:transparent;color:#edf1e99e;cursor:pointer;transition:background .14s ease,color .14s ease}.toast-close:hover{background:#ffffff1f;color:#edf1e9}.toast-close:focus-visible{outline:2px solid var(--mint);outline-offset:1px}.toast .toast-close svg,.toast.compact .toast-close svg{width:14px;height:14px;margin-top:0}.toast svg{width:24px;height:24px;flex:0 0 auto}.toast span{flex:1}.toast.success svg{color:var(--mint)}.toast.error svg{color:#ff9c88}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%)}}.video-history-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.video-history-metric{position:relative;display:flex;min-width:0;min-height:88px;align-items:center;gap:12px;padding:17px 19px}.video-history-metric+.video-history-metric{border-left:1px solid var(--line)}.video-history-metric-icon{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border-radius:7px}.video-history-metric-icon.total{background:#edf0ff;color:#5e6eb5}.video-history-metric-icon.success{background:#e5f7ed;color:#2e7d5d}.video-history-metric-icon.active{background:#fff1d6;color:#986a18}.video-history-metric-icon.credits{background:#f1f5dc;color:#70802c}.video-history-metric div{display:flex;min-width:0;flex-direction:column;gap:3px}.video-history-metric small{color:var(--muted);font-size:11px;font-weight:700}.video-history-metric strong{color:var(--ink);font-size:25px;font-weight:800;line-height:1}.video-history-metric em{position:absolute;right:14px;bottom:11px;color:#c5c9c1;font-size:8px;font-style:normal;font-weight:800}.video-history-workspace{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.video-history-retention{color:var(--muted);font-size:12px}.video-history-list{display:flex;flex-direction:column}.video-history-item{display:grid;grid-template-columns:270px minmax(0,1fr);gap:22px;padding:20px;border-bottom:1px solid #e8ebe3}.video-history-item:last-child{border-bottom:0}.video-history-item.active{background:#fffdf8}.video-history-item.failed{background:snow}.video-history-item.selected{box-shadow:inset 3px 0 #9fbd39}.video-history-filters{flex-wrap:wrap}.video-history-filters .search-box{width:min(380px,100%)}.video-history-selection-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}.video-history-select-all,.video-history-batch-download{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:7px;padding:0 13px;border-radius:6px;font-size:13px;font-weight:750;white-space:nowrap}.video-history-select-all{border:1px solid var(--line);background:var(--surface-strong);color:var(--ink-soft)}.video-history-select-all:hover:not(:disabled){border-color:var(--line-strong);background:var(--surface-muted)}.video-history-select-all[aria-pressed=true]{border-color:#c8da70;background:#f2f8d2;color:#46520f}.video-history-select-all:focus-visible,.video-history-select-toggle:focus-visible{outline:3px solid rgba(173,205,45,.35);outline-offset:2px}.video-history-select-all svg,.video-history-batch-download svg{flex:0 0 auto}.video-history-result-count{white-space:nowrap}.video-history-media{position:relative;overflow:hidden;min-width:0;aspect-ratio:16 / 10;border:1px solid #252d28;border-radius:8px;background:#151b17}.video-history-media video{width:100%;height:100%;background:#0e120f;object-fit:contain}.video-version-badge{position:absolute;top:9px;right:9px;z-index:2;padding:4px 7px;border:1px solid rgba(255,255,255,.18);border-radius:5px;background:#0d120fcc;color:#f1f4ed;font-size:10px;font-weight:750;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.video-history-select-toggle{position:absolute;top:9px;left:9px;z-index:3;display:grid;width:38px;height:38px;padding:0;place-items:center;border:1px solid rgba(255,255,255,.3);border-radius:6px;background:#0d120fdb;color:#f1f4ed;box-shadow:0 5px 14px #0000003d;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.video-history-select-toggle:hover:not(:disabled){border-color:#ffffff9e;background:#151d17f0}.video-history-select-toggle.selected{border-color:#c7dc61;background:var(--accent);color:#26300d}.video-history-select-toggle:disabled{border-color:#ffffff1f;background:#0d120f8a;color:#7f8981;cursor:not-allowed}.video-history-placeholder{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#9fa9a1}.video-history-placeholder strong{color:#e8ece5;font-size:13px}.video-history-placeholder>span:not(.history-state-icon){font-size:11px;font-variant-numeric:tabular-nums}.history-state-icon{display:grid;width:36px;height:36px;margin-bottom:3px;place-items:center;border-radius:50%;background:#ffffff14}.history-state-icon.active{color:var(--amber)}.history-state-icon.success{color:var(--mint)}.history-state-icon.failed{color:#ff9b89}.video-history-content{display:flex;min-width:0;flex-direction:column}.video-history-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.video-history-title-row>div{min-width:0}.video-history-episode{display:flex;min-width:0;align-items:center;gap:6px;overflow:hidden;color:var(--muted);font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.video-history-episode i{flex:0 0 auto;padding-left:6px;border-left:1px solid var(--line-strong);color:#929a8f;font-size:10px;font-style:normal}.video-history-title-row h2{margin-top:7px;overflow-wrap:anywhere;color:var(--ink);font-size:20px;font-weight:780;line-height:1.28}.history-status-pill{display:inline-flex;min-height:29px;flex:0 0 auto;align-items:center;gap:6px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:750}.history-status-pill.active{background:#fff3db;color:#986a18}.history-status-pill.success{background:#e5f7ed;color:#267153}.history-status-pill.failed{background:#fdebe8;color:#a74234}.history-status-pill svg{width:14px;height:14px}.video-history-meta{display:flex;align-items:center;gap:7px 13px;margin-top:13px;flex-wrap:wrap}.video-history-meta span{display:inline-flex;min-width:0;align-items:center;gap:5px;color:var(--muted);font-size:11px;line-height:1.4}.video-history-meta span:first-child{max-width:240px;overflow:hidden;color:#454d46;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.video-history-progress{display:flex;align-items:center;gap:9px;margin-top:15px}.video-history-progress>span{height:4px;flex:1;overflow:hidden;border-radius:999px;background:#eceee7}.video-history-progress b{display:block;height:100%;border-radius:inherit;background:var(--amber);transition:width .24s ease}.video-history-progress small{width:31px;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums;text-align:right}.video-history-error{display:flex;align-items:flex-start;gap:7px;margin-top:13px;color:#a74234;font-size:12px;line-height:1.55}.video-history-error svg{flex:0 0 auto;margin-top:1px}.video-history-actions{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:18px;flex-wrap:wrap}.video-record-note{display:inline-flex;align-items:center;gap:7px;margin-right:auto;color:var(--muted);font-size:10px;font-weight:650}.video-record-note i{width:3px;height:3px;border-radius:50%;background:#bdc2b9}.video-history-actions .button{text-decoration:none}.video-history-download{min-width:102px}@media(max-width:760px){.video-history-filters .search-box{width:100%;flex-basis:100%}.video-history-selection-actions{min-width:0;flex:1;margin-left:0}.video-history-select-all,.video-history-batch-download{min-height:44px;flex:1}.video-history-result-count{width:100%}}@media(max-width:440px){.video-history-selection-actions{display:grid;width:100%;grid-template-columns:minmax(0,1fr)}.video-history-select-all,.video-history-batch-download{width:100%}}.video-history-empty{display:flex;min-height:330px;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:30px 20px;color:var(--muted);text-align:center}.video-history-empty strong{color:var(--ink);font-size:16px}.video-history-empty>span:not(.video-history-empty-icon){font-size:12px}.video-history-empty .button{margin-top:8px}.video-history-empty-icon{display:grid;width:56px;height:56px;margin-bottom:5px;place-items:center;border:1px solid #dfe3d8;border-radius:8px;background:#f3f5ed;color:#6d7865}.admin-accounts-page{max-width:1260px}.admin-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px}.admin-metrics>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;min-height:76px;align-items:center;gap:12px;padding:15px 17px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.admin-metrics svg{color:#61751e}.admin-metrics span{color:var(--muted);font-size:13px;font-weight:700}.admin-metrics strong{color:var(--ink);font-size:24px;line-height:1}.admin-account-section .section-toolbar{min-height:72px}.admin-account-section .section-toolbar>div{display:flex;min-width:0;flex-direction:column;gap:4px}.admin-account-section .section-toolbar strong{color:var(--ink);font-size:15px}.admin-account-section .section-toolbar span{color:var(--muted);font-size:12px;line-height:1.45}.admin-account-table{min-width:920px}.admin-account-table-head,.admin-account-row{display:grid;grid-template-columns:minmax(155px,1.2fr) minmax(120px,.9fr) 130px 160px minmax(280px,auto);align-items:center;gap:16px;padding:0 18px}.admin-account-table-head{min-height:39px;border-bottom:1px solid var(--line);background:#f8f9f4;color:#858c82;font-size:10px;font-weight:800;letter-spacing:0}.admin-account-row{min-height:74px;border-bottom:1px solid var(--line);color:#4b544d;font-size:13px;transition:background .15s ease}.admin-account-row:last-child{border-bottom:0}.admin-account-row:hover{background:#fbfcf8}.admin-account-name{display:flex;min-width:0;align-items:center;gap:10px}.admin-account-name strong{min-width:0;overflow:hidden;color:var(--ink);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.admin-account-avatar{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;border-radius:7px;background:#eef1e7;color:#64705d}.account-role-pill{display:inline-flex;min-height:27px;align-items:center;padding:0 9px;border-radius:5px;font-size:11px;font-weight:800;white-space:nowrap}.account-role-pill.admin{background:#edf6c8;color:#566a17}.account-role-pill.sub{background:#e9eef7;color:#526886}.admin-account-date{color:var(--muted);font-size:12px;white-space:nowrap}.admin-account-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}.admin-account-actions .button{min-height:34px;padding:0 10px;font-size:12px}.admin-protected{color:var(--muted-light);font-size:12px;font-weight:700}.admin-state{display:flex;min-height:190px;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:13px}.account-editor-modal{width:min(560px,100%)}.account-delete-modal{width:min(500px,100%)}.account-delete-copy{color:#535b54;font-size:14px;line-height:1.75}.account-delete-copy strong{color:var(--danger)}.drama-grant-modal{width:min(720px,100%)}.drama-grant-intro{margin:0 0 16px;color:#4f5851;font-size:14px;line-height:1.7}.drama-grant-intro strong{color:var(--ink)}.drama-grant-list{display:grid;max-height:min(360px,42vh);gap:8px;overflow-y:auto;padding:2px}.drama-grant-option{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;align-items:center;gap:11px;min-height:66px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fbfcf8;cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.drama-grant-option:hover{border-color:#b9c5ad;background:#f7f9f1}.drama-grant-option.selected{border-color:#b5c986;background:#f4f8e6;box-shadow:0 0 0 2px #b5c98629}.drama-grant-option input{width:17px;height:17px;margin:0;accent-color:#6f832f}.drama-grant-icon{display:grid;width:35px;height:35px;place-items:center;border-radius:6px;background:#eef1e6;color:#65715d}.drama-grant-option.selected .drama-grant-icon{background:#e6efc9;color:#5a7021}.drama-grant-copy{display:flex;min-width:0;flex-direction:column;gap:3px}.drama-grant-copy strong{color:var(--ink);font-size:14px;line-height:1.4}.drama-grant-copy small{color:var(--muted);font-size:12px;line-height:1.4}.drama-grant-status{min-width:54px;color:var(--muted);font-size:12px;font-weight:800;text-align:right}.drama-grant-option.selected .drama-grant-status{color:#5d7420}.drama-grant-state{min-height:132px;border:1px dashed var(--line-strong);border-radius:7px;background:#fafbf7}.drama-grant-note{margin:16px 0 0;padding:11px 13px;border:1px solid #dce2d4;border-radius:6px;background:#f5f7f1;color:#606960;font-size:12px;line-height:1.65}.button.danger{border-color:#a8382c;background:var(--danger);color:#fff}.button.danger:hover:not(:disabled){background:#b93f31}.button.danger-ghost{border-color:#ecc7c1;background:#fff7f5;color:#ad4033}.button.danger-ghost:hover:not(:disabled){border-color:#dfa99f;background:#fff0ed}@media(max-width:900px){.admin-accounts-page .page-header{align-items:flex-start;flex-direction:column}.admin-account-section{overflow:visible;border:0;background:transparent}.admin-account-section .section-toolbar{border:1px solid var(--line);border-radius:8px 8px 0 0}.admin-account-table{min-width:0;border:1px solid var(--line);border-top:0;border-radius:0 0 8px 8px;background:var(--surface-strong)}.admin-account-table-head{display:none}.admin-account-row{grid-template-columns:minmax(0,1fr) auto;gap:9px 14px;padding:16px 17px}.admin-account-name,.admin-account-date,.admin-account-actions{grid-column:1 / -1}.admin-account-name{padding-bottom:3px}.admin-account-row>span:nth-child(2){grid-column:1;color:var(--ink-soft);font-weight:700}.admin-account-row>span:nth-child(3){grid-column:2;grid-row:2}.admin-account-date{padding-top:2px}.admin-account-actions{justify-content:flex-start;padding-top:9px;border-top:1px solid var(--line)}.admin-account-actions .button{min-height:38px;padding:0 13px;font-size:13px}}@media(max-width:600px){.admin-metrics{grid-template-columns:1fr}.admin-metrics>div{min-height:64px}.admin-account-section .section-toolbar{align-items:stretch;flex-direction:column}.admin-account-section .section-toolbar .button{width:100%}.admin-account-actions{display:grid;grid-template-columns:1fr 1fr}.account-editor-modal .modal-footer,.account-delete-modal .modal-footer,.drama-grant-modal .modal-footer{align-items:stretch;flex-direction:column}.account-editor-modal .modal-actions,.account-delete-modal .modal-actions,.drama-grant-modal .modal-actions{width:100%}.account-editor-modal .modal-actions .button,.account-delete-modal .modal-actions .button,.drama-grant-modal .modal-actions .button{min-width:0;flex:1}.drama-grant-option{grid-template-columns:auto auto minmax(0,1fr)}.drama-grant-status{grid-column:2 / -1;min-width:0;text-align:left}}@media(min-width:1320px){.metric em{display:block}}@media(max-width:1180px){.page{padding-right:28px;padding-left:28px}.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shot-row,.shot-list-download-toolbar{grid-template-columns:clamp(250px,var(--shot-left-width, 52%),calc(100% - 350px)) 18px minmax(0,1fr) 82px}.pipeline-band{gap:9px}.pipeline-step strong{font-size:9px}.video-history-item{grid-template-columns:230px minmax(0,1fr);gap:18px}}@media(max-width:1000px){.app-shell{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding-right:9px;padding-left:9px}.brand{justify-content:center;padding-right:0;padding-left:0}.brand-copy,.sidebar-section-label,.sidebar-nav-item span,.sidebar-nav-item b,.sidebar-footer{display:none}.sidebar-nav-item{justify-content:center;padding:0}.metric-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.metric:nth-child(3){border-left:0;border-top:1px solid var(--line)}.metric:nth-child(4){border-top:1px solid var(--line)}.dashboard-empty{grid-template-columns:1fr}.empty-preview{width:min(540px,calc(100% - 40px));margin:0 auto 20px}.shot-row{grid-template-columns:1fr}.shot-list-download-toolbar{grid-template-columns:minmax(0,1fr);padding:0 15px}.shot-list-download-anchor{grid-column:1;width:100%;justify-self:stretch;justify-content:flex-end}.shot-splitter{display:none}.shot-generation-rail{display:grid;align-self:auto;grid-template-columns:minmax(0,1fr) 34px;margin:14px 0 0;padding:13px 0 0;border-top:1px solid #e3e6dc;border-left:0}.shot-generation-attempts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.shot-generation-attempt{width:100%;min-height:58px}.shot-generation-drawer-toggle{width:34px;min-height:58px;border-radius:6px}.shot-assets{max-width:620px;grid-template-columns:repeat(4,minmax(0,1fr))}.episode-header{flex-direction:column}.episode-actions{justify-content:flex-start}.rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pipeline-band>svg{display:none}.pipeline-band{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.asset-overview{grid-template-columns:1fr;gap:18px}.match-example{grid-template-columns:110px 18px repeat(3,minmax(0,1fr))}.video-history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.video-history-metric:nth-child(3){border-left:0;border-top:1px solid var(--line)}.video-history-metric:nth-child(4){border-top:1px solid var(--line)}.video-history-item{grid-template-columns:210px minmax(0,1fr)}}@media(max-width:760px){.workspace-toolbar{flex-wrap:wrap;padding:10px 14px}.workspace-drama-switcher{width:100%}.workspace-drama-switcher select{min-width:0;flex:1}.workspace-toolbar-actions{width:100%;justify-content:flex-end}.workspace-account{margin-right:auto}.app-shell{display:block}.sidebar{position:fixed;top:auto;z-index:50;right:0;bottom:0;left:0;display:flex;width:100%;height:66px;flex-direction:row;align-items:center;padding:7px 12px;border-top:1px solid #2a342d}.brand,.sidebar-section-label{display:none}.sidebar-nav{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}.sidebar-nav-item{height:50px;flex-direction:column;gap:3px;font-size:12px}.sidebar-nav-item span{display:block}.sidebar-nav-item.active{box-shadow:inset 0 -2px 0 var(--accent)}.app-main{padding-bottom:70px}.page{padding:22px 16px 48px}.page-header{align-items:flex-start;flex-direction:column;gap:15px}.page-header h1{font-size:28px}.drama-library-grid{grid-template-columns:1fr}.drama-library-meta{align-items:flex-start;flex-direction:column;gap:8px}.drama-library-card{min-height:244px}.drama-library-empty{align-items:flex-start;flex-direction:column}.drama-library-empty .button{width:100%;margin-left:0}.page-actions{width:100%;flex-wrap:wrap}.page-actions .button,.page-actions .quick-upload-wrap{flex:1}.quick-upload-wrap .button{width:100%}.metric-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:13px}.metric strong{font-size:20px}.section-toolbar{align-items:flex-start;flex-direction:column}.tab-group{width:100%;overflow-x:auto}.section-toolbar>.button{width:100%}.episode-table-head{display:none}.episode-row{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:13px}.episode-title-cell{grid-column:1}.shot-count-cell,.updated-cell{display:none}.progress-cell{grid-column:1}.episode-row>span:nth-child(4){grid-column:2;grid-row:1}.row-action{grid-column:2;grid-row:2;justify-self:end}.dashboard-empty{min-height:auto}.empty-copy{padding:30px 22px}.empty-copy h2{font-size:25px}.empty-flow{display:grid;grid-template-columns:1fr;gap:7px}.empty-flow i{display:none}.empty-preview{width:calc(100% - 24px)}.preview-frame{height:230px}.modal-backdrop{align-items:end;padding:10px}.modal{width:100%;max-height:calc(100vh - 20px)}.modal-header,.modal-body,.modal-footer{padding-right:17px;padding-left:17px}.modal-footer{align-items:flex-start;flex-direction:column}.modal-actions{width:100%}.modal-actions .button{flex:1}.asset-picker-toolbar{align-items:stretch;flex-direction:column;padding-right:17px;padding-left:17px}.asset-picker-toolbar .search-box{width:100%}.asset-picker-body{padding:14px 17px 18px}.asset-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.episode-header{gap:16px}.episode-actions{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.episode-actions .button{width:100%}.episode-primary-actions{grid-template-columns:1fr}.shot-row{padding:15px}.shot-generation-attempts{gap:6px}.shot-generation-attempt strong{max-width:100%}.shot-generation-drawer{width:100%}.shot-generation-drawer-header{padding:17px 16px 14px}.shot-generation-drawer-header h2{font-size:18px}.shot-generation-drawer-body{grid-template-columns:repeat(5,minmax(0,1fr));padding:8px}.generation-version-card{min-height:0}.generation-version-preview{min-height:240px}.shot-generation-drawer-footer{align-items:flex-start;flex-direction:column;padding:12px 16px}.shot-generation-drawer-footer .button{width:100%}.shot-prompt-input{min-height:124px;font-size:14px}.shot-prompt-toolbar{align-items:flex-start;flex-direction:column}.shot-prompt-toolbar>div{width:100%}.shot-prompt-toolbar .button{flex:1}.prompt-viewer-field textarea{min-height:54vh;padding:15px;font-size:11px;line-height:1.72}.api-manual-notice{grid-template-columns:auto minmax(0,1fr)}.generation-manual-notice .button{grid-column:2;justify-self:start;margin-top:2px}.api-connection-row,.api-model-list-heading{align-items:flex-start;flex-direction:column}.api-form-grid,.generation-control-grid,.generation-overview{grid-template-columns:1fr}.api-field-wide{grid-column:auto}.api-model-option{grid-template-columns:minmax(0,1fr)}.api-model-option>span:last-child{align-items:flex-start;text-align:left}.video-credit-confirm{max-width:none}.video-api-settings-footer .modal-actions,.video-generation-footer .modal-actions{flex-wrap:wrap}.video-api-settings-footer .modal-actions .button,.video-generation-footer .modal-actions .button{min-width:min(100%,145px);flex:1 1 145px}.generation-prompt-preview summary{align-items:flex-start;flex-direction:column}.shot-assets{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.media-slot{padding:8px}.slot-label small{display:none}.media-visual,.empty-media-visual{height:112px}.slot-caption span{display:none}.asset-overview{padding:18px}.asset-count-grid{grid-template-columns:1fr}.asset-count-grid button{padding:11px}.asset-count-grid i{display:none}.library-toolbar{align-items:stretch;flex-direction:column}.library-controls{display:grid;grid-template-columns:1fr auto}.library-controls .search-box{width:100%}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.asset-card-body{padding:9px}.asset-card-actions{opacity:1}.asset-card-actions{bottom:32px}.asset-meta-line{gap:4px;padding-left:0}.asset-meta-line span:nth-of-type(3),.asset-meta-line i:nth-of-type(2){display:none}.selection-grid,.pipeline-band,.rule-grid{grid-template-columns:1fr}.sample-heading{align-items:flex-start;flex-direction:column}.sample-actions{width:100%}.sample-actions .button{flex:1}.match-example{grid-template-columns:1fr}.match-example>svg{justify-self:center;transform:rotate(90deg)}.video-history-item{grid-template-columns:1fr;gap:15px;padding:15px}.video-history-media{width:100%;aspect-ratio:16 / 9}.video-history-title-row{gap:10px}.video-history-title-row h2{font-size:18px}.video-history-actions{padding-top:15px}.video-record-note{width:100%;margin-right:0}.video-history-actions .button{flex:1}.video-history-empty{min-height:280px}.preview-detail-bar{align-items:flex-start;flex-wrap:wrap}.preview-detail-bar .file-name{width:100%;margin-left:0}.toast{right:auto;bottom:80px;left:50%;width:calc(100vw - 24px);min-height:58px;padding:14px 16px;font-size:15px}}@media(max-width:440px){.metric-strip{grid-template-columns:1fr 1fr}.metric-icon{width:30px;height:30px}.asset-grid,.episode-actions{grid-template-columns:1fr}.episode-heading{--episode-heading-size: 14px}.episode-meta span:last-child{display:none}.shot-order-line{flex-wrap:wrap}.shot-readiness{margin-left:0}.slot-label>span{font-size:14px}.slot-label>span svg{display:none}.audio-preview{gap:4px;padding:8px 5px}.audio-play{width:22px;height:22px}.waveform{gap:1px}.waveform span:nth-child(n+9){display:none}.asset-picker-grid,.api-manual-notice{grid-template-columns:1fr}.api-manual-notice>svg{display:none}.generation-manual-notice .button{grid-column:auto;width:100%}.api-connection-row>.button,.generation-error>.button{width:100%}.generation-error,.generation-status-head{align-items:flex-start;flex-wrap:wrap}.generation-error>span{min-width:calc(100% - 30px)}.generation-status-progress{margin-left:39px}.generation-counts{display:grid;grid-template-columns:1fr}.generation-counts span,.generation-timing{justify-content:center}.generation-download{width:100%;justify-content:center;margin-left:0}.video-history-metrics{grid-template-columns:1fr 1fr}.video-history-metric{min-height:76px;gap:9px;padding:13px}.video-history-metric-icon{width:32px;height:32px}.video-history-metric strong{font-size:21px}.video-history-metric em,.video-history-retention{display:none}.video-history-title-row{flex-direction:column}.history-status-pill{min-height:26px}.video-history-meta{gap:6px 11px}.video-history-actions .button,.video-api-settings-footer .modal-actions .button,.video-generation-footer .modal-actions .button{min-width:100%;flex-basis:100%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.drama-library-page{width:100%;max-width:none;min-height:100vh;margin:0;padding:0}.drama-library-shell{display:grid;min-height:100vh;grid-template-columns:264px minmax(0,1fr);background:var(--canvas)}.drama-library-nav{position:sticky;top:0;display:flex;height:100vh;min-height:0;flex-direction:column;gap:18px;padding:24px 16px 18px;overflow-y:auto;background:var(--sidebar);color:#edf1e9}.drama-library-brand{display:flex;align-items:center;gap:11px;padding:2px 5px 8px}.drama-library-brand>div{display:flex;min-width:0;flex-direction:column;gap:2px}.drama-library-brand strong{color:#f6f8f2;font-size:19px;font-weight:800}.drama-library-brand small{color:#7f8b81;font-size:11px;font-weight:700}.drama-library-account{display:flex;min-width:0;align-items:center;gap:10px;padding:12px;border:1px solid #2b352e;border-radius:8px;background:#171e19}.drama-library-account-avatar{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;border-radius:7px;background:#dff36a1a;color:var(--accent)}.drama-library-account>div{display:flex;min-width:0;flex-direction:column;gap:3px}.drama-library-account strong{overflow:hidden;color:#f1f4ed;font-size:14px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.drama-library-account small{color:#7d8980;font-size:11px;font-weight:700}.drama-library-navigation,.drama-library-nav-actions{display:flex;flex-direction:column;gap:5px}.drama-library-nav-label{padding:0 10px 7px;color:#667169;font-size:11px;font-weight:800}.drama-library-navigation button,.drama-library-nav-actions button{display:flex;width:100%;min-height:46px;align-items:center;gap:11px;padding:0 12px;border-radius:7px;background:transparent;color:#b9c2ba;font-size:15px;font-weight:700;text-align:left;transition:background .15s ease,color .15s ease,box-shadow .15s ease}.drama-library-navigation button:hover,.drama-library-nav-actions button:hover:not(:disabled){background:#ffffff0e;color:#f6f8f2}.drama-library-navigation button.active{background:#273129;color:#f7f9f3;box-shadow:inset 3px 0 0 var(--accent)}.drama-library-navigation button.active svg{color:var(--accent)}.drama-library-navigation button>span,.drama-library-nav-actions button>span{min-width:0;flex:1}.drama-library-navigation button b{display:grid;min-width:24px;height:22px;padding:0 6px;place-items:center;border-radius:5px;background:#ffffff14;color:#cdd4cd;font-size:12px}.drama-library-navigation button.active b{background:#dff36a1f;color:var(--accent)}.drama-library-nav-actions{padding-top:4px;border-top:1px solid #252f28}.drama-library-nav-actions button svg{color:#919d93}.drama-library-nav-actions button.logout{color:#d6a69e}.drama-library-nav-actions button.logout svg{color:#c47769}.drama-library-nav-foot{display:flex;align-items:center;gap:8px;margin-top:auto;padding:12px 9px 2px;color:#68746b;font-size:11px;font-weight:650}.drama-library-nav-foot>span{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:var(--mint);box-shadow:0 0 0 4px #8ee1c014}.drama-library-nav-foot>span.syncing{background:var(--amber);box-shadow:0 0 0 4px #f2bc591a}.drama-library-workspace{min-width:0;padding:38px clamp(24px,4vw,58px) 72px}.library-section-pane{min-width:0}.drama-library-overview,.admin-accounts-embedded,.rules-page-embedded{width:min(1180px,100%);margin:0 auto}.drama-library-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.drama-library-header h1{color:var(--ink);font-size:clamp(30px,3vw,40px);font-weight:790;line-height:1.12}.drama-library-header p{max-width:690px;margin-top:9px;color:var(--muted);font-size:14px;line-height:1.65}.admin-accounts-embedded{max-width:none}.rules-page-embedded{max-width:none;padding:0}.rules-page-embedded .page-header{margin-bottom:24px}.rules-page-embedded .pipeline-step small{font-size:10px}.rules-page-embedded .pipeline-step strong{font-size:13px}.rules-page-embedded .pipeline-index{font-size:9px}.rules-page-embedded .rule-count{font-size:12px}.rules-page-embedded .rule-card h3{font-size:16px}.rules-page-embedded .rule-card code{font-size:11px}.rules-page-embedded .rule-card p,.rules-page-embedded .sample-heading p{font-size:13px}.rules-page-embedded .code-topbar{font-size:10px}.rules-page-embedded .sample-code-wrap pre{font-size:12px}.rules-page-embedded .match-source small,.rules-page-embedded .match-target small{font-size:11px}.rules-page-embedded .match-target strong{font-size:12px}.rules-page-embedded .match-type{font-size:9px}.managed-video-library{width:min(1280px,100%);margin:0 auto}.managed-video-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.managed-video-header h1{margin-top:3px;color:var(--ink);font-size:clamp(30px,3vw,40px);font-weight:790;line-height:1.12}.managed-video-header p{max-width:720px;margin-top:9px;color:var(--muted);font-size:15px;line-height:1.65}.managed-video-header-actions{display:flex;flex:0 0 auto;align-items:center;gap:10px}.managed-video-action{min-height:42px;font-size:14px}.managed-video-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.managed-video-metric{display:flex;min-width:0;min-height:94px;align-items:center;gap:13px;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong);color:inherit;font:inherit;text-align:left;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.managed-video-metric:hover:not(:disabled){border-color:var(--line-strong);box-shadow:0 6px 18px -14px #00000080}.managed-video-metric.is-current{border-color:var(--accent-deep);background:#dff36a2e;box-shadow:0 0 0 1px var(--accent-deep) inset}.managed-video-metric.is-current small{color:var(--ink-soft)}.managed-video-metric:focus-visible{outline:2px solid var(--accent-deep);outline-offset:2px}.managed-video-metric-icon{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border-radius:7px}.managed-video-metric-icon.total{background:#edf0ff;color:#5668b2}.managed-video-metric-icon.success{background:#e5f7ed;color:#287857}.managed-video-metric-icon.active{background:#fff1d6;color:#91610d}.managed-video-metric-icon.failed{background:#fdebe8;color:#a74234}.managed-video-metric>div{display:flex;min-width:0;flex-direction:column;gap:4px}.managed-video-metric small{color:var(--muted);font-size:13px;font-weight:700}.managed-video-metric strong{color:var(--ink);font-size:28px;font-weight:800;line-height:1}.managed-video-workspace{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.managed-video-toolbar{display:flex;min-height:64px;align-items:center;justify-content:space-between;gap:18px;padding:12px 17px;border-bottom:1px solid var(--line);background:#f9faf6}.managed-video-tabs{min-width:0;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.managed-video-tabs button{height:40px;padding:0 13px;font-size:14px}.managed-video-tabs button b{min-width:22px;height:20px;font-size:12px}.managed-video-toolbar-meta{display:flex;min-width:0;flex:0 0 auto;align-items:center;gap:14px}.managed-video-toolbar-meta span{display:inline-flex;min-width:0;align-items:center;gap:6px;color:var(--muted);font-size:12px;white-space:nowrap}.managed-video-toolbar-meta strong{padding:6px 9px;border-radius:5px;background:#edf1db;color:#657429;font-size:12px;white-space:nowrap}.managed-video-filters{display:flex;align-items:center;gap:10px;padding:14px 17px;border-bottom:1px solid var(--line);flex-wrap:wrap}.managed-video-search{width:min(215px,100%);height:42px}.managed-video-search input{font-size:14px}.managed-video-select{display:inline-flex;height:42px;min-height:42px;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface-strong)}.managed-video-select span{color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap}.managed-video-select select{max-width:210px;height:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:14px;font-weight:700}.managed-video-selection-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}.managed-video-select-all,.managed-video-batch-download{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:7px;padding:0 13px;border-radius:6px;font-size:14px;font-weight:750;white-space:nowrap}.managed-video-select-all{border:1px solid var(--line);background:var(--surface-strong);color:var(--ink-soft)}.managed-video-select-all:hover:not(:disabled){border-color:var(--line-strong);background:var(--surface-muted)}.managed-video-select-all[aria-pressed=true]{border-color:#c8da70;background:#f2f8d2;color:#46520f}.managed-video-select-all svg,.managed-video-batch-download svg{flex:0 0 auto}.managed-video-result-count{margin-left:auto;color:var(--muted);font-size:19.5px;line-height:1.25;white-space:nowrap}.managed-video-actions-row{display:flex;align-items:center;gap:10px;padding:12px 17px;border-bottom:1px solid var(--line);background:#fbfcf8;flex-wrap:wrap}.managed-video-actions-row .managed-video-selection-actions{flex:1 1 auto;justify-content:flex-start;margin-left:0}.button.managed-video-batch-download.is-grow{flex:1 1 240px;min-width:195px}.managed-video-list{display:flex;flex-direction:column}.managed-video-pagination{display:flex;min-height:62px;align-items:center;justify-content:space-between;gap:16px;padding:11px 17px;border-top:1px solid var(--line);background:#fbfcf8}.managed-video-pagination-summary{color:var(--muted);font-size:13px;font-weight:680;line-height:1.5}.managed-video-pagination-controls,.managed-video-page-numbers{display:flex;align-items:center;gap:6px}.managed-video-pagination-controls{flex:0 0 auto;flex-wrap:wrap}.managed-video-page-numbers{justify-content:center;flex-wrap:wrap}.managed-video-item{display:grid;min-width:0;grid-template-columns:280px minmax(0,1fr);gap:24px;padding:22px;border-bottom:1px solid #e8ebe3}.managed-video-item:last-child{border-bottom:0}.managed-video-item.active{background:#fffdf8}.managed-video-item.failed{background:snow}.managed-video-preview{position:relative;min-width:0;overflow:hidden;aspect-ratio:16 / 10;border:1px solid #252d28;border-radius:8px;background:#151b17}.managed-video-preview video{width:100%;height:100%;background:#0e120f;object-fit:contain}.managed-video-playback{display:grid;width:100%;height:100%;min-height:0;place-items:center}.compact-video-player{position:relative;width:100%;height:100%;min-height:0;background:#0e120f}.video-history-media .compact-video-player,.managed-video-preview .compact-video-player{position:absolute;top:0;right:0;bottom:0;left:0}.compact-video-player video{display:block;width:100%;height:100%;background:#0e120f;object-fit:contain;cursor:pointer}.compact-video-player:fullscreen{background:#000}.cvp-center{position:absolute;top:50%;left:50%;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;color:#f4f7f0;background:#080c0a9e;box-shadow:0 2px 10px #00000073;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transform:translate(-50%,-50%);cursor:pointer;transition:background .15s ease,transform .15s ease}.cvp-center:hover{background:#080c0acc;transform:translate(-50%,-50%) scale(1.06)}.cvp-center svg{margin-left:2px}.cvp-center-waiting{cursor:default}.cvp-center-waiting:hover{background:#080c0a9e;transform:translate(-50%,-50%)}.cvp-spinner{width:18px;height:18px;border:2px solid rgba(244,247,240,.26);border-top-color:var(--accent);border-radius:50%;animation:cvp-spin .7s linear infinite}@keyframes cvp-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.cvp-spinner{animation-duration:2s}}.cvp-bar{position:absolute;right:0;bottom:0;left:0;display:flex;align-items:center;gap:6px;padding:12px 8px 6px;background:linear-gradient(to top,#060a08eb,#060a086b 62%,#060a0800);pointer-events:none}.cvp-bar>*{pointer-events:auto}.cvp-btn{display:grid;flex:0 0 auto;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:50%;color:#f4f7f0;background:#ffffff29;cursor:pointer;transition:background .15s ease}.cvp-btn:hover{background:#ffffff4d}.cvp-seek{flex:1 1 auto;min-width:36px;height:12px;margin:0;padding:0;-moz-appearance:none;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer}.cvp-seek:disabled{cursor:default;opacity:.6}.cvp-seek::-webkit-slider-runnable-track{height:3px;border-radius:2px;background:linear-gradient(to right,var(--accent) 0,var(--accent) var(--cvp-progress, 0%),rgba(255,255,255,.3) var(--cvp-progress, 0%),rgba(255,255,255,.3) 100%)}.cvp-seek::-webkit-slider-thumb{width:9px;height:9px;margin-top:-3px;border-radius:50%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;box-shadow:0 0 0 2px #00000059}.cvp-seek::-moz-range-track{height:3px;border-radius:2px;background:#ffffff4d}.cvp-seek::-moz-range-progress{height:3px;border-radius:2px;background:var(--accent)}.cvp-seek::-moz-range-thumb{width:9px;height:9px;border:0;border-radius:50%;background:#fff}.cvp-time{flex:0 0 auto;color:#f4f7f0e0;font-size:10px;font-variant-numeric:tabular-nums;letter-spacing:.02em;white-space:nowrap}.managed-video-lazy-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#9da89f;font-size:12px;text-align:center}.managed-video-lazy-placeholder svg{color:#c7dc61}.managed-video-version{position:absolute;top:10px;right:10px;z-index:2;padding:5px 8px;border:1px solid rgba(255,255,255,.18);border-radius:5px;background:#0d120fd1;color:#f1f4ed;font-size:12px;font-weight:750;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.managed-video-select-toggle{position:absolute;top:10px;left:10px;z-index:3;display:grid;width:38px;height:38px;padding:0;place-items:center;border:1px solid rgba(255,255,255,.3);border-radius:6px;background:#0d120fdb;color:#f1f4ed;box-shadow:0 5px 14px #0000003d;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.managed-video-select-toggle:hover:not(:disabled){border-color:#ffffff9e;background:#151d17f0}.managed-video-select-toggle.selected{border-color:#c7dc61;background:var(--accent);color:#26300d}.managed-video-select-toggle:focus-visible,.managed-video-select-all:focus-visible{outline:3px solid rgba(173,205,45,.35);outline-offset:2px}.managed-video-placeholder{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#aab3ab}.managed-video-placeholder strong{color:#edf1e9;font-size:15px}.managed-video-placeholder>span:not(.history-state-icon){font-size:13px;font-variant-numeric:tabular-nums}.managed-video-content{display:flex;min-width:0;flex-direction:column}.managed-video-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.managed-video-title-row>div{min-width:0}.managed-video-owner{display:flex;min-width:0;align-items:center;gap:7px;overflow:hidden;color:#697168;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.managed-video-owner i{width:3px;height:3px;flex:0 0 auto;border-radius:50%;background:#aeb5aa}.managed-video-owner svg{flex:0 0 auto}.managed-video-title-row h2{margin-top:8px;overflow-wrap:anywhere;color:var(--ink);font-size:22px;font-weight:790;line-height:1.25}.managed-video-title-row p{margin-top:5px;color:var(--muted);font-size:14px;line-height:1.5}.managed-video-status{display:inline-flex;min-height:34px;flex:0 0 auto;align-items:center;gap:7px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:750}.managed-video-status.active{background:#fff3db;color:#8b5e12}.managed-video-status.success{background:#e5f7ed;color:#267153}.managed-video-status.failed{background:#fdebe8;color:#a74234}.managed-video-status svg{width:16px;height:16px}.managed-video-meta{display:flex;align-items:center;gap:8px 14px;margin-top:15px;flex-wrap:wrap}.managed-video-meta span{display:inline-flex;min-width:0;align-items:center;gap:6px;color:var(--muted);font-size:13px;line-height:1.45}.managed-video-meta span:first-child{max-width:260px;overflow:hidden;color:#444c45;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.managed-video-progress{display:flex;align-items:center;gap:10px;margin-top:16px}.managed-video-progress>span{height:5px;flex:1;overflow:hidden;border-radius:999px;background:#eceee7}.managed-video-progress b{display:block;height:100%;border-radius:inherit;background:var(--amber);transition:width .24s ease}.managed-video-progress small{width:52px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;text-align:right}.managed-video-error{display:flex;align-items:flex-start;gap:8px;margin-top:14px;color:#a74234;font-size:13px;line-height:1.55}.managed-video-error svg{flex:0 0 auto;margin-top:1px}.managed-video-actions{display:flex;align-items:center;gap:9px;margin-top:auto;padding-top:18px;flex-wrap:wrap}.managed-video-actions>span{display:inline-flex;align-items:center;gap:8px;margin-right:auto;color:var(--muted);font-size:13px;font-weight:650}.managed-video-actions>span i{width:3px;height:3px;border-radius:50%;background:#bdc2b9}.managed-video-state{display:flex;min-height:360px;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:34px 22px;color:var(--muted);text-align:center}.managed-video-state strong{color:var(--ink);font-size:17px}.managed-video-state span{max-width:520px;font-size:14px;line-height:1.6}@media(max-width:1100px){.drama-library-shell{grid-template-columns:232px minmax(0,1fr)}.drama-library-workspace{padding-right:26px;padding-left:26px}.managed-video-item{grid-template-columns:235px minmax(0,1fr);gap:20px}}@media(max-width:820px){.drama-library-page{padding:0}.drama-library-shell{display:block}.drama-library-nav{position:sticky;z-index:30;display:grid;width:100%;height:auto;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;padding:12px 16px 13px;overflow:visible;border-bottom:1px solid #2b352e}.drama-library-brand{padding:0}.drama-library-brand .brand-mark{width:34px;height:34px}.drama-library-account{min-width:0;padding:7px 10px}.drama-library-account-avatar{width:30px;height:30px}.drama-library-account>div{display:none}.drama-library-navigation,.drama-library-nav-actions{grid-column:1 / -1;flex-direction:row;gap:6px;overflow-x:auto;padding:0;border:0;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain;scroll-snap-type:x proximity}.drama-library-navigation::-webkit-scrollbar,.drama-library-nav-actions::-webkit-scrollbar{display:none}.drama-library-nav-label,.drama-library-nav-foot{display:none}.drama-library-navigation button,.drama-library-nav-actions button{width:auto;min-height:40px;flex:0 0 auto;padding:0 12px;font-size:14px;white-space:nowrap;scroll-snap-align:start}.drama-library-navigation button.active{box-shadow:inset 0 -2px 0 var(--accent)}.drama-library-navigation button b{margin-left:2px}.drama-library-workspace{padding:26px 18px 54px}.drama-library-header{align-items:flex-start;flex-direction:column;gap:16px}.admin-accounts-embedded .page-header,.rules-page-embedded .page-header{align-items:flex-start;flex-direction:column}.managed-video-header{align-items:flex-start;flex-direction:column;gap:17px}.managed-video-header-actions{width:100%;flex-wrap:wrap}.managed-video-header-actions .managed-video-action{min-height:44px;flex:1}.managed-video-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.managed-video-toolbar{align-items:stretch;flex-direction:column;gap:12px}.managed-video-toolbar-meta{justify-content:space-between}.managed-video-search{width:100%}.managed-video-select{flex:1}.managed-video-select select{max-width:none;flex:1}.managed-video-selection-actions{width:100%;margin-left:0}.managed-video-select-all,.managed-video-batch-download{min-height:44px;flex:1}.managed-video-result-count{width:100%;margin-left:0}.managed-video-item{grid-template-columns:minmax(0,1fr)}.managed-video-preview{width:min(440px,100%)}}@media(max-width:560px){.drama-library-nav-actions button span{display:inline}.drama-library-workspace{padding-right:14px;padding-left:14px}.drama-library-header h1{font-size:30px}.drama-library-meta{align-items:flex-start;flex-direction:column;gap:8px}.drama-library-grid{grid-template-columns:1fr}.drama-library-empty{align-items:flex-start;flex-direction:column}.drama-library-empty .button{width:100%;margin-left:0}.rules-page-embedded .sample-heading{align-items:flex-start;flex-direction:column}.rules-page-embedded .match-example{grid-template-columns:1fr}.rules-page-embedded .match-example>svg{transform:rotate(90deg)}.managed-video-metrics{grid-template-columns:minmax(0,1fr)}.managed-video-metric{min-height:82px;padding:14px 16px}.managed-video-toolbar-meta{align-items:flex-start;flex-direction:column;gap:8px}.managed-video-toolbar-meta span{white-space:normal}.managed-video-filters{align-items:stretch;flex-direction:column}.managed-video-select{width:100%}.managed-video-selection-actions{display:grid;grid-template-columns:minmax(0,1fr)}.managed-video-select-all,.managed-video-batch-download{width:100%}.managed-video-item{gap:18px;padding:16px}.managed-video-title-row{flex-direction:column;gap:12px}.managed-video-owner{align-items:flex-start;flex-wrap:wrap;white-space:normal}.managed-video-owner i{display:none}.managed-video-actions{align-items:stretch;display:grid;order:-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:0;margin-bottom:14px}.managed-video-actions>span{grid-column:1 / -1;margin-right:0;order:2}.managed-video-actions .managed-video-action{width:100%;order:1}}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}html,body,#root{width:100%;min-width:0;max-width:100%}.app-shell,.app-main,.workspace-toolbar,.workspace-drama-switcher,.workspace-toolbar-actions,.page,.page>*,.shot-row,.shot-copy,.shot-media-pane,.shot-assets,.shot-generation-rail,.media-slot,.library-toolbar,.library-controls,.asset-card,.asset-card-body,.asset-name-line,.asset-grid,.asset-picker-grid,.asset-picker-grid>*,.managed-video-item,.managed-video-toolbar,.managed-video-filters,.managed-video-selection-actions{min-width:0}.page :where(h1,h2,h3,p,strong,small,label),.modal :where(h1,h2,h3,p,strong,small,label),.managed-video-item :where(h1,h2,h3,p,strong,small,label),.drama-library-card :where(h1,h2,h3,p,strong,small,label){overflow-wrap:anywhere;word-break:break-word}.workspace-drama-switcher select,.workspace-toolbar-actions .workspace-account,.search-box input,.sort-select select{min-width:0}.modal-backdrop{min-height:100vh;min-height:100dvh}.modal{max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px)}.asset-name-line strong,.slot-caption strong,.slot-caption span,.slot-label>span,.shot-copy h3,.drama-library-card h2{min-width:0;overflow-wrap:anywhere;word-break:break-word}@media(max-width:820px){.library-toolbar{align-items:stretch;flex-wrap:wrap}.library-toolbar>.tab-group{width:100%;max-width:100%;min-width:0}.library-controls{width:100%;min-width:0;flex:1 1 100%}.library-controls .search-box{width:auto;min-width:0;flex:1 1 220px}.library-controls .sort-select{min-width:0;flex:0 1 auto}.library-controls .sort-select select{width:100%;max-width:100%}}@media(max-width:760px){.workspace-toolbar,.workspace-drama-switcher,.workspace-toolbar-actions{min-width:0}.workspace-drama-switcher select{width:100%}.sidebar-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar{height:calc(66px + env(safe-area-inset-bottom,0px));padding-bottom:calc(7px + env(safe-area-inset-bottom,0px))}.app-main{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}.toast{bottom:calc(80px + env(safe-area-inset-bottom,0px))}.shot-prompt-toolbar{width:100%;min-width:0;align-items:stretch;flex-wrap:nowrap}.shot-prompt-toolbar>span{width:100%;min-width:0;flex:0 1 auto;line-height:1.55;white-space:normal}.shot-prompt-toolbar>div{width:100%;max-width:100%;min-width:0;margin-left:0;flex:1 1 100%;justify-content:flex-start;flex-wrap:wrap}.shot-prompt-toolbar .button{min-width:0;min-height:40px;flex:1 1 112px;padding-right:9px;padding-left:9px;white-space:normal}.shot-generation-drawer-body{grid-template-columns:repeat(5,minmax(124px,1fr));overflow-x:auto;overscroll-behavior-x:contain}.library-toolbar{align-items:stretch;flex-direction:column}.library-controls,.library-controls .search-box,.library-controls .sort-select{width:100%}.library-controls{display:grid;grid-template-columns:minmax(0,1fr) auto}.library-controls .search-box{grid-column:1}.library-controls .sort-select{grid-column:2}.modal-backdrop{min-height:100vh;min-height:100dvh;padding:max(10px,env(safe-area-inset-top,0px)) 10px max(10px,env(safe-area-inset-bottom,0px))}.modal{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}}@media(max-width:440px){.workspace-toolbar{gap:10px}.drama-library-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.drama-library-nav-actions{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible}.drama-library-navigation button,.drama-library-nav-actions button{width:100%;padding-right:9px;padding-left:9px;font-size:13px}.workspace-drama-switcher{flex-wrap:wrap}.workspace-drama-switcher>span{display:none}.workspace-library-action{flex:0 0 auto}.workspace-drama-switcher select{min-width:150px}.workspace-toolbar-actions{justify-content:space-between}.workspace-account{min-width:0;flex:1}.library-controls{grid-template-columns:minmax(0,1fr)}.library-controls .search-box,.library-controls .sort-select{grid-column:1}.shot-prompt-toolbar .button{flex-basis:calc(50% - 5px)}.asset-grid{grid-template-columns:minmax(0,1fr)}}@media(min-width:821px)and (max-width:1180px){.managed-video-search{width:100%;flex:1 1 100%}.managed-video-select{min-width:0;flex:1 1 190px}.managed-video-select select{width:100%;max-width:none}.managed-video-selection-actions{margin-left:0;flex:0 1 auto;flex-wrap:wrap}.managed-video-result-count{margin-left:auto}}@media(min-width:821px)and (max-width:960px){.managed-video-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.managed-video-toolbar{align-items:stretch;flex-direction:column;gap:12px}.managed-video-toolbar-meta{justify-content:flex-start;flex-wrap:wrap}.managed-video-item{grid-template-columns:minmax(0,1fr);gap:18px}.managed-video-preview{width:min(440px,100%)}}.credit-statistics{width:min(1280px,100%);margin:0 auto}.credit-statistics-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}.credit-statistics-header h1{margin-top:3px;color:var(--ink);font-size:clamp(30px,3vw,40px);font-weight:790;line-height:1.12}.credit-statistics-header.compact-page-header h1.compact-page-title{margin:0;font-size:clamp(15px,1.5vw,20px)}.credit-statistics-header p{max-width:740px;margin-top:9px;color:var(--muted);font-size:15px;line-height:1.65}.credit-statistics-header-actions{display:flex;flex:0 0 auto;align-items:flex-end;gap:10px}.credit-period-select{display:flex;min-width:150px;flex-direction:column;gap:6px}.credit-period-select>span{color:var(--muted);font-size:13px;font-weight:750}.credit-period-select select{height:42px;padding:0 34px 0 11px;border:1px solid var(--line-strong);border-radius:7px;outline:0;background:var(--surface-strong);color:var(--ink);font-size:14px;font-weight:700}.credit-period-select select:focus{border-color:#9daa91;box-shadow:0 0 0 3px #9daa9124}.credit-refresh-button{min-height:42px;font-size:14px}.credit-statistics-notice{display:flex;align-items:flex-start;gap:11px;margin-bottom:18px;padding:14px 16px;border:1px solid #d9ddca;border-radius:8px;background:#f8faef;color:#59604f}.credit-statistics-notice>svg{flex:0 0 auto;margin-top:1px;color:#718231}.credit-statistics-notice>div{display:flex;min-width:0;flex-direction:column;gap:3px}.credit-statistics-notice strong{color:#343b2d;font-size:14px;font-weight:790}.credit-statistics-notice span{font-size:13px;line-height:1.65}.credit-statistics-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.credit-statistics-metric{display:flex;min-width:0;min-height:108px;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.credit-statistics-metric-icon{display:grid;width:44px;height:44px;flex:0 0 auto;place-items:center;border-radius:7px}.credit-statistics-metric-icon.success{background:#e5f7ed;color:#287857}.credit-statistics-metric-icon.active{background:#edf0ff;color:#5668b2}.credit-statistics-metric-icon.pending{background:#fff2d8;color:#8e610f}.credit-statistics-metric-icon.failed{background:#fdebe8;color:#a74234}.credit-statistics-metric>div{display:flex;min-width:0;flex-direction:column;gap:4px}.credit-statistics-metric small{color:var(--muted);font-size:13px;font-weight:720}.credit-statistics-metric strong{overflow-wrap:anywhere;color:var(--ink);font-size:24px;font-weight:800;line-height:1.08}.credit-statistics-metric>div>span{color:var(--muted);font-size:12px;line-height:1.45}.credit-statistics-panel{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong)}.credit-statistics-panel+.credit-statistics-panel{margin-top:20px}.credit-statistics-panel-header{display:flex;min-height:76px;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;border-bottom:1px solid var(--line);background:#f9faf6}.credit-statistics-panel-header>div{display:flex;min-width:0;align-items:center;gap:12px}.credit-statistics-panel-icon{display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border-radius:7px;background:#eef1df;color:#627327}.credit-statistics-panel-header h2{color:var(--ink);font-size:17px;font-weight:790}.credit-statistics-panel-header p{margin-top:3px;color:var(--muted);font-size:13px;line-height:1.45}.credit-statistics-panel-count{flex:0 0 auto;padding:6px 9px;border-radius:5px;background:#edf1db;color:#657429;font-size:12px;font-weight:760;white-space:nowrap}.internal-credit-panel{margin-bottom:20px}.internal-credit-header{background:linear-gradient(90deg,#eef5e0e6,#f9faf6f2),var(--surface-strong)}.internal-credit-icon{background:#e3edd0;color:#52691e}.internal-credit-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:17px;border-bottom:1px solid var(--line);background:#fbfcf8}.internal-credit-summary.has-allocation{grid-template-columns:repeat(4,minmax(0,1fr))}.internal-credit-balance-card{display:flex;min-width:0;min-height:104px;align-items:center;gap:14px;padding:16px;border:1px solid #e0e4d8;border-radius:8px;background:var(--surface-strong)}.internal-credit-balance-card.clickable{width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:inherit;cursor:pointer;font:inherit;text-align:left;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.internal-credit-balance-card.clickable:hover,.internal-credit-balance-card.clickable:focus-visible{border-color:#c9bed2;box-shadow:0 8px 20px #41304c14;outline:none;transform:translateY(-1px)}.internal-credit-balance-card.primary{border-color:#cfd9b6;background:#f6f9ed}.internal-credit-balance-icon{display:grid;width:44px;height:44px;flex:0 0 auto;place-items:center;border-radius:7px;background:#e4f1dc;color:#347051}.internal-credit-balance-icon.total{background:#e9edfb;color:#5268a9}.internal-credit-balance-icon.used{background:#fbe9e3;color:#9a4b2e}.internal-credit-balance-icon.allocated{background:#f0e8f4;color:#71517d}.internal-credit-balance-card>div{display:flex;min-width:0;flex-direction:column;gap:4px}.internal-credit-balance-card small{color:var(--muted);font-size:13px;font-weight:740}.internal-credit-balance-card strong{overflow-wrap:anywhere;color:var(--ink);font-size:27px;font-weight:820;line-height:1.05}.internal-credit-balance-card span{overflow:hidden;color:var(--muted);font-size:12px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.internal-credit-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:17px;border-bottom:1px solid var(--line)}.internal-credit-action-card{display:flex;min-width:0;flex-direction:column;gap:13px;padding:17px;border:1px solid #dfe3d7;border-radius:8px;background:#fcfdfa}.internal-credit-action-card.allocation{border-color:#d8ddec;background:#fafbff}.internal-credit-action-title{display:flex;align-items:flex-start;gap:11px}.internal-credit-action-title>span{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:7px;background:#edf1df;color:#617326}.internal-credit-action-card.allocation .internal-credit-action-title>span{background:#ebedf8;color:#5668a5}.internal-credit-action-title h3{color:var(--ink);font-size:16px;font-weight:790}.internal-credit-action-title p{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.5}.internal-credit-field-row{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(170px,1.2fr);gap:10px}.internal-credit-action-card label{display:flex;min-width:0;flex-direction:column;gap:6px}.internal-credit-action-card label>span{color:var(--muted);font-size:12px;font-weight:740}.internal-credit-action-card input,.internal-credit-action-card select{width:100%;min-width:0;height:42px;padding:0 11px;border:1px solid var(--line-strong);border-radius:7px;outline:0;background:var(--surface-strong);color:var(--ink);font-size:14px;font-weight:680}.internal-credit-action-card input:focus,.internal-credit-action-card select:focus{border-color:#93a375;box-shadow:0 0 0 3px #93a37524}.internal-credit-description-field{width:100%}.internal-credit-action-buttons{display:flex;align-items:center;gap:9px}.internal-credit-action-buttons .button{min-height:42px}.internal-credit-empty{display:flex;min-height:90px;align-items:center;justify-content:center;gap:9px;padding:16px;border:1px dashed #ccd1c2;border-radius:7px;color:var(--muted);font-size:13px;text-align:center}.internal-credit-empty.compact{min-height:120px;border:0}.internal-credit-lower-grid{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.4fr);align-items:start;gap:12px;padding:17px;background:#f7f8f4}.internal-credit-account-panel,.internal-credit-ledger-panel{min-width:0;overflow:hidden;border:1px solid #dfe3d8;border-radius:8px;background:var(--surface-strong)}.internal-credit-ledger-panel.wide{grid-column:1 / -1}.internal-credit-account-panel>header,.internal-credit-ledger-panel>header{display:flex;min-height:54px;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border-bottom:1px solid var(--line);background:#fafbf7}.internal-credit-account-panel>header>div,.internal-credit-ledger-panel>header>div{display:flex;min-width:0;align-items:center;gap:8px;color:#66735e}.internal-credit-account-panel>header strong,.internal-credit-ledger-panel>header strong{color:var(--ink);font-size:14px;font-weight:780}.internal-credit-account-panel>header>span,.internal-credit-ledger-panel>header>span{flex:0 0 auto;color:var(--muted);font-size:12px}.internal-credit-account-list,.internal-credit-ledger-list{max-height:330px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}.internal-credit-account-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 13px;border-bottom:1px solid #edf0e8}.internal-credit-account-row:last-child{border-bottom:0}.internal-credit-account-avatar{display:grid;width:32px;height:32px;place-items:center;border-radius:7px}.internal-credit-account-avatar.admin{background:#e7f2dc;color:#3d6c41}.internal-credit-account-avatar.sub{background:#e9edf8;color:#596a9d}.internal-credit-account-row>div{display:flex;min-width:0;flex-direction:column;gap:2px}.internal-credit-account-row>div strong{overflow:hidden;color:var(--ink);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.internal-credit-account-row>div span{color:var(--muted);font-size:11px}.internal-credit-account-row>b{color:#4c6523;font-size:13px;white-space:nowrap}.internal-credit-ledger-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 13px;border-bottom:1px solid #edf0e8}.internal-credit-ledger-row:last-child{border-bottom:0}.internal-credit-ledger-icon{display:grid;width:32px;height:32px;place-items:center;border-radius:7px}.internal-credit-ledger-icon.positive{background:#e5f5eb;color:#2c7655}.internal-credit-ledger-icon.negative{background:#fae9e5;color:#a14638}.internal-credit-ledger-main{display:flex;min-width:0;flex-direction:column;gap:4px}.internal-credit-ledger-main>div{display:flex;min-width:0;align-items:baseline;gap:8px}.internal-credit-ledger-main strong{flex:0 0 auto;color:var(--ink);font-size:13px;font-weight:820}.internal-credit-ledger-title{display:inline-flex;align-items:baseline;gap:4px}.internal-credit-ledger-title b{color:#4f5f2d;font-weight:900}.internal-credit-ledger-main span{overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.internal-credit-ledger-main small{overflow:hidden;color:#8a9284;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.internal-credit-ledger-value{display:flex;min-width:100px;flex-direction:column;align-items:flex-end;gap:3px}.internal-credit-ledger-value strong{font-size:14px;font-weight:800;white-space:nowrap}.internal-credit-ledger-value strong.positive{color:#287857}.internal-credit-ledger-value strong.negative{color:#a74234}.internal-credit-ledger-value span{color:var(--muted);font-size:11px;white-space:nowrap}.internal-credit-allocation-modal{width:min(760px,100%)}.internal-credit-allocation-modal .modal-header p{margin-top:6px;color:var(--muted);font-size:13px;line-height:1.55}.internal-credit-allocation-body{display:grid;gap:14px}.internal-credit-allocation-summary{display:grid;gap:4px;padding:16px 18px;border:1px solid #dfd4e4;border-radius:8px;background:#faf6fb}.internal-credit-allocation-summary>span{color:var(--muted);font-size:13px;font-weight:720}.internal-credit-allocation-summary strong{color:#594063;font-size:30px;line-height:1.1}.internal-credit-allocation-summary strong small{color:var(--muted);font-size:13px;font-weight:720}.internal-credit-allocation-summary.total{border-color:#d8ddec;background:#f7f8fd}.internal-credit-allocation-summary.total strong{color:#5268a9}.internal-credit-allocation-summary.balance{border-color:#d1ddc6;background:#f7faf2}.internal-credit-allocation-summary.balance strong{color:#3d6c41}.internal-credit-allocation-summary.usage{border-color:#ecd5cc;background:#fff8f5}.internal-credit-allocation-summary.usage strong{color:#9a4b2e}.internal-credit-allocation-list{max-height:min(48vh,460px);overflow-y:auto}.credit-statistics-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}.credit-account-table,.credit-record-table{width:100%;border-collapse:collapse;color:var(--ink-soft);font-size:13px}.credit-account-table{min-width:1020px}.credit-record-table{min-width:940px}.credit-account-table th,.credit-record-table th{position:sticky;top:0;z-index:1;padding:11px 13px;border-bottom:1px solid var(--line);background:#f5f7f1;color:#687065;font-size:12px;font-weight:790;text-align:left;white-space:nowrap}.credit-account-table td,.credit-record-table td{padding:13px;border-bottom:1px solid #eceee8;vertical-align:middle}.credit-account-table tbody tr:last-child td,.credit-record-table tbody tr:last-child td{border-bottom:0}.credit-account-table tbody tr:hover,.credit-record-table tbody tr:hover{background:#fbfcf8}.credit-account-table td:first-child{min-width:210px}.credit-account-table td:nth-child(2){min-width:105px}.credit-account-cell{display:flex;min-width:0;align-items:center;gap:10px}.credit-account-avatar{display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border-radius:7px}.credit-account-avatar.admin{background:#eef1df;color:#627327}.credit-account-avatar.sub{background:#edf0ff;color:#5668b2}.credit-account-cell>div{display:flex;min-width:0;flex-direction:column;gap:4px}.credit-account-cell strong{overflow:hidden;max-width:190px;color:var(--ink);font-size:13px;font-weight:770;text-overflow:ellipsis;white-space:nowrap}.credit-account-role-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.credit-account-role,.credit-account-current{display:inline-flex;align-items:center;min-height:21px;padding:0 6px;border-radius:4px;font-size:11px;font-weight:760;white-space:nowrap}.credit-account-role.admin{background:#f0f3df;color:#64732c}.credit-account-role.sub{background:#edf1f9;color:#53688c}.credit-account-current{background:#e8f7ee;color:#2d7557}.credit-account-share{display:block;width:70px;height:4px;margin-top:7px;overflow:hidden;border-radius:2px;background:#e9ece4}.credit-account-share i{display:block;height:100%;border-radius:inherit;background:#8eaa3d}.credit-value-confirmed,.credit-value-active,.credit-value-pending{white-space:nowrap}.credit-value-confirmed{color:#287857}.credit-value-active{color:#5668b2}.credit-value-pending{color:#9a650e}.credit-statistics-filters{display:flex;align-items:center;gap:10px;padding:14px 17px;border-bottom:1px solid var(--line);flex-wrap:wrap}.credit-statistics-search{width:min(400px,100%);height:42px;flex:1 1 280px}.credit-statistics-search input{font-size:14px}.credit-filter-select{display:inline-flex;height:42px;min-width:0;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface-strong)}.credit-filter-select>span{color:var(--muted);font-size:13px;font-weight:740;white-space:nowrap}.credit-filter-select select{min-width:0;max-width:220px;height:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:14px;font-weight:700}.credit-statistics-fetched-at{display:inline-flex;align-items:center;gap:6px;margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}.credit-statistics-fetched-at svg{flex:0 0 auto}.credit-statistics-state{display:flex;min-height:320px;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:32px 22px;color:var(--muted);text-align:center}.credit-statistics-state>svg{color:#7b876d}.credit-statistics-state strong{color:var(--ink);font-size:17px}.credit-statistics-state span{max-width:560px;font-size:14px;line-height:1.6}.credit-statistics-state.error>svg{color:var(--danger)}.credit-statistics-state .button{margin-top:4px}.credit-task-status{display:inline-flex;min-height:27px;align-items:center;gap:5px;padding:0 8px;border-radius:5px;font-size:12px;font-weight:760;white-space:nowrap}.credit-task-status.success{background:#e8f7ee;color:#2b7758}.credit-task-status.active{background:#edf0ff;color:#5468b4}.credit-task-status.failed{background:#fdebe8;color:#a43f32}.credit-attach-button{display:inline-flex;align-items:center;margin-top:5px;padding:3px 8px;border:1px dashed rgba(35,45,70,.28);border-radius:5px;background:transparent;color:var(--ink);font-size:12px;font-weight:700;cursor:pointer;transition:border-color .15s ease,color .15s ease}.credit-attach-button:hover{border-color:var(--mint);color:var(--mint)}.credit-attach-button:disabled{opacity:.55;cursor:not-allowed;border-color:#232d4647;color:var(--ink)}.credit-replay-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:8px 12px;border:1px dashed rgba(35,45,70,.2);border-radius:8px;background:#232d4608;font-size:12px;color:var(--ink-soft, #5b6478)}.credit-replay-toolbar .credit-attach-button{margin-top:0;flex-shrink:0}.credit-hold-note{display:block;margin-top:4px;color:var(--muted);font-size:11.5px;line-height:1.45}.credit-record-account,.credit-record-model{display:inline-flex;max-width:220px;align-items:center;gap:6px;overflow:hidden;color:#4f584f;text-overflow:ellipsis;white-space:nowrap}.credit-record-account svg,.credit-record-model svg{flex:0 0 auto;color:#83907a}.credit-record-title{display:flex;min-width:220px;max-width:370px;flex-direction:column;gap:3px}.credit-record-title strong{overflow:hidden;color:var(--ink);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.credit-record-title span{overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.credit-record-title small{overflow:hidden;max-width:100%;color:#a34438;font-size:11px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.credit-record-cost{white-space:nowrap}.credit-record-cost.success{color:#287857}.credit-record-cost.active{color:#5668b2}.credit-record-cost.failed{color:#a74234}.credit-record-cost.pending{color:#9a650e}.credit-record-pagination{display:flex;min-height:64px;align-items:center;justify-content:space-between;gap:18px;padding:11px 17px;border-top:1px solid var(--line);background:#fbfcf8}.credit-record-pagination-summary{color:var(--muted);font-size:13px;font-weight:680;line-height:1.5}.credit-record-pagination-controls,.credit-record-page-numbers{display:flex;align-items:center;gap:6px}.credit-record-pagination-controls{flex:0 0 auto}.credit-record-page-numbers{justify-content:center;flex-wrap:wrap}.credit-page-button{display:inline-flex;min-width:38px;height:38px;align-items:center;justify-content:center;gap:4px;padding:0 10px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface-strong);color:var(--ink-soft);cursor:pointer;font-size:13px;font-weight:740;line-height:1;transition:border-color .15s ease,background .15s ease,color .15s ease}.credit-page-button:hover:not(:disabled){border-color:#aab59e;background:#f4f7ed;color:var(--ink)}.credit-page-button:focus-visible{border-color:#899a78;outline:3px solid rgba(137,154,120,.18);outline-offset:1px}.credit-page-button:disabled{background:#f4f5f2;color:#a6aca3;cursor:not-allowed}.credit-page-number{padding:0}.credit-page-number[aria-current=page]{border-color:#738446;background:#eef2df;color:#4f5f23}.credit-record-page-ellipsis{display:inline-grid;width:28px;height:38px;place-items:center;color:var(--muted);font-size:13px;font-weight:740}@media(max-width:1100px){.credit-statistics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.credit-statistics-header{align-items:flex-start}.internal-credit-actions,.internal-credit-lower-grid{grid-template-columns:minmax(0,1fr)}.internal-credit-ledger-panel{grid-column:1}}@media(max-width:820px){.credit-statistics-header{flex-direction:column;gap:17px}.credit-statistics-header-actions{width:100%;align-items:flex-end}.credit-period-select{flex:1}.credit-period-select select{width:100%}.credit-refresh-button{min-height:44px}.credit-statistics-filters{align-items:stretch}.credit-statistics-search{flex-basis:100%}.credit-filter-select{flex:1 1 190px}.credit-filter-select select{width:100%;max-width:none}.credit-statistics-fetched-at{width:100%;margin-left:0;padding-top:2px;white-space:normal}.credit-record-pagination{align-items:stretch;flex-direction:column;gap:10px}.credit-record-pagination-controls{justify-content:space-between}.internal-credit-summary,.internal-credit-summary.has-allocation{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.credit-statistics-metrics{grid-template-columns:minmax(0,1fr)}.credit-statistics-metric{min-height:88px;padding:14px 16px}.credit-statistics-header-actions{align-items:stretch;flex-direction:column}.credit-refresh-button{width:100%}.credit-statistics-notice{padding:13px}.credit-statistics-panel-header{align-items:flex-start;flex-direction:column;gap:10px;padding:14px}.credit-statistics-panel-count{align-self:flex-start}.credit-statistics-filters{flex-direction:column;padding:13px 14px}.credit-filter-select{width:100%;flex-basis:auto}.credit-filter-select select{flex:1}.credit-statistics-state{min-height:260px;padding:28px 18px}.credit-record-pagination{padding:12px 14px}.credit-record-page-numbers{order:3;width:100%}.credit-record-pagination-controls{flex-wrap:wrap}.credit-page-step{flex:1 1 calc(50% - 3px)}.internal-credit-summary,.internal-credit-summary.has-allocation,.internal-credit-field-row{grid-template-columns:minmax(0,1fr)}.internal-credit-summary,.internal-credit-actions,.internal-credit-lower-grid{padding:13px}.internal-credit-action-card{padding:14px}.internal-credit-action-buttons{align-items:stretch;flex-direction:column}.internal-credit-action-buttons .button{width:100%}.internal-credit-ledger-row{grid-template-columns:32px minmax(0,1fr)}.internal-credit-ledger-value{grid-column:2;min-width:0;flex-direction:row;align-items:baseline;justify-content:space-between}.internal-credit-ledger-main>div{align-items:flex-start;flex-direction:column;gap:2px}}:root{--canvas: #f3f4ef;--surface: #fcfdfa;--surface-muted: #f6f7f2;--line: #dde1d8;--line-strong: #cbd1c6;--shadow: 0 8px 24px rgba(28, 34, 29, .045)}html{scrollbar-gutter:stable}body{overflow-x:clip;background:linear-gradient(#ffffff52,#ffffff52),var(--canvas)}button,select,input,textarea{-webkit-tap-highlight-color:transparent}:where(button,input,select,textarea):focus-visible{outline:3px solid rgba(156,174,82,.24);outline-offset:2px}:where(.workspace-section,.metric-strip,.library-toolbar,.asset-card,.drama-library-card,.managed-video-item,.managed-video-toolbar,.credit-statistics-panel,.credit-statistics-metric,.internal-credit-balance-card,.internal-credit-action-card){border-radius:6px}:where(.drama-library-card,.asset-card,.credit-statistics-metric){box-shadow:none}.drama-library-card:hover,.asset-card:hover{box-shadow:none;transform:none}.button.primary{box-shadow:none}.page-header.compact-page-header h1.compact-page-title,.dashboard-page .page-header h1{font-size:clamp(17px,1.45vw,21px)}.drama-library-header h1.compact-page-title{font-size:clamp(26px,3vw,32px)}.drama-library-workspace{padding-top:clamp(24px,3.5vw,42px)}.drama-library-header{margin-bottom:20px}.drama-library-meta{min-height:64px;margin-bottom:18px;padding:13px 16px;border-radius:6px;box-shadow:none}.drama-library-card{min-height:238px;padding:16px}.drama-library-section-header h2{font-size:16px;font-weight:790}.drama-library-section-header p{font-size:12.5px}.library-toolbar{padding:10px 12px}.library-toolbar .tab-group button{height:42px;gap:7px;padding:0 13px;font-size:14px}.library-toolbar .tab-group button b{min-width:22px;height:21px;padding:0 6px;font-size:12px}.library-controls .search-box{height:44px}.library-controls .search-box svg{width:18px;height:18px}.library-toolbar .search-box input{font-size:14px}.library-toolbar .sort-select select{height:44px;padding:0 30px 0 11px;font-size:13px}.asset-card-body{padding:10px 11px 11px}.asset-name-line strong{font-size:13px}.asset-meta-line{margin-top:6px;font-size:10px}.managed-video-header h1{font-size:clamp(20px,2vw,25px)}.managed-video-title-row h2{font-size:16px}.managed-video-title-row p,.managed-video-meta,.managed-video-actions{font-size:12.5px}.credit-statistics-header.compact-page-header h1.compact-page-title{font-size:clamp(19px,1.8vw,23px)}.credit-statistics-metric{min-height:96px;padding:16px}.credit-statistics-metric strong{font-size:22px}@media(max-width:1180px){.page,.drama-library-workspace{padding-right:clamp(20px,2.6vw,30px);padding-left:clamp(20px,2.6vw,30px)}.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1000px){.app-shell{grid-template-columns:82px minmax(0,1fr)}.drama-library-shell{grid-template-columns:218px minmax(0,1fr)}.drama-library-workspace{padding-right:22px;padding-left:22px}.drama-library-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}}@media(max-width:820px){.drama-library-shell{display:block}.drama-library-nav{position:sticky;top:0;display:grid;width:100%;height:auto;min-height:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 12px;padding:10px 12px;overflow:visible;border-bottom:1px solid #2b352e;box-shadow:none}.drama-library-brand{grid-column:1;grid-row:1;min-width:0;padding:0}.drama-library-brand .brand-mark{width:36px;height:36px;border-radius:7px}.drama-library-brand strong{font-size:17px}.drama-library-brand small{font-size:10px}.drama-library-account{display:none}.drama-library-navigation{grid-column:1 / -1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible}.drama-library-nav-actions{grid-column:2;grid-row:1;display:flex;align-self:center;padding:0;overflow:visible;border:0}.drama-library-nav-label,.drama-library-nav-foot{display:none}.drama-library-navigation button,.drama-library-nav-actions button{width:100%;min-height:42px;padding:0 10px;font-size:13.5px;white-space:nowrap}.drama-library-navigation button{justify-content:flex-start}.drama-library-navigation button.active{box-shadow:inset 0 -2px 0 var(--accent)}.drama-library-navigation button b{margin-left:auto}.drama-library-nav-actions button.logout{width:auto;min-height:40px;padding:0 12px;border:1px solid #303b34;background:#ffffff06}.drama-library-workspace{padding:22px 16px 48px}.drama-library-header{align-items:center;flex-direction:row;gap:12px;margin-bottom:16px}.drama-library-header .page-actions{width:auto;flex:0 0 auto;margin-left:auto}.drama-library-header .page-actions .button{width:auto;min-height:40px;padding:0 14px}.drama-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.drama-library-card{min-height:220px}.drama-card-mark{width:40px;height:40px;margin-top:14px}.drama-library-card h2{margin-top:10px;font-size:18px}.drama-card-owner,.drama-card-time{font-size:12px}.drama-enter-button{min-height:40px;margin-top:14px;font-size:13px}.library-toolbar{align-items:stretch;flex-direction:column;gap:10px;padding:10px}.library-toolbar>.tab-group{display:grid;width:100%;max-width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible}.library-toolbar .tab-group button{width:100%;justify-content:center;padding:0 6px;font-size:13px}.library-controls{display:grid;width:100%;grid-template-columns:minmax(0,1fr) minmax(126px,auto);gap:7px}.library-controls .search-box,.library-controls .sort-select,.library-controls .sort-select select{width:100%;min-width:0;max-width:none}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.asset-thumb{aspect-ratio:4 / 3}.managed-video-header{gap:14px}.managed-video-header-actions{gap:8px}.managed-video-header-actions .managed-video-action{min-height:42px}.managed-video-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.managed-video-metric{min-height:88px;padding:14px}.managed-video-toolbar{padding:12px}.managed-video-tabs{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible}.managed-video-tabs button{width:100%;justify-content:center;padding:0 5px;font-size:12.5px}.managed-video-filters{gap:8px}.managed-video-search,.managed-video-search input,.managed-video-select,.managed-video-select select{min-width:0;max-width:none}.managed-video-selection-actions{gap:7px}.managed-video-select-all,.managed-video-batch-download{min-height:42px}.credit-statistics-header{gap:14px}.credit-statistics-header-actions{width:100%;align-items:stretch}.credit-statistics-metrics{gap:8px}.credit-statistics-metric{min-height:88px;padding:14px}.credit-statistics-notice,.credit-statistics-panel-header,.credit-statistics-filters{border-radius:6px}.admin-account-section .section-toolbar{gap:10px}}@media(max-width:760px){.workspace-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:54px;padding:8px 12px}.workspace-drama-switcher{display:grid;width:100%;min-width:0;grid-template-columns:auto minmax(0,1fr);gap:7px}.workspace-drama-switcher>span{display:none}.workspace-drama-switcher select{width:100%;min-width:0;height:38px;padding-right:28px;font-size:13px}.workspace-library-action{height:38px;min-height:38px;margin:0;padding:0 9px;font-size:12.5px}.workspace-toolbar-actions{width:auto;min-width:0;justify-content:flex-end;gap:2px}.workspace-account{display:none}.workspace-toolbar-actions .workspace-action{height:38px;padding:0 7px;font-size:12.5px}.app-shell{display:block}.sidebar{position:fixed;top:auto;right:0;bottom:0;left:0;z-index:50;display:flex;width:100%;height:calc(68px + env(safe-area-inset-bottom,0px));padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));overflow:hidden;border-top:1px solid #2a342d}.brand,.sidebar-section-label,.sidebar-footer{display:none}.sidebar-nav{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.sidebar-nav-item{width:100%;height:54px;min-height:54px;flex-direction:column;gap:2px;justify-content:center;padding:4px 1px;border-radius:6px;font-size:11.5px;line-height:1.1;text-align:center}.sidebar-nav-item span{display:block}.sidebar-nav-item.active{box-shadow:inset 0 -2px 0 var(--accent)}.app-main{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}.page{padding:20px 14px 42px}.page-header{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:18px}.page-actions{gap:7px}.page-actions .button{min-height:42px}.metric-strip{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}.metric{min-height:76px;padding:12px}.metric-icon{width:32px;height:32px}.metric small{font-size:11px}.metric strong{font-size:20px}.workspace-section{border-radius:6px}.section-toolbar{min-height:0;gap:10px;padding:11px 12px}.section-toolbar .tab-group{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;overflow:visible}.section-toolbar .tab-group button{width:100%;height:38px;justify-content:center;padding:0 5px;font-size:12px}.section-toolbar>.button{min-height:40px}.list-search-row{align-items:stretch;flex-direction:column;gap:7px;padding:11px 12px}.list-search-row .search-box{width:100%;min-height:42px}.list-count{align-self:flex-end;font-size:11.5px}.episode-row{min-height:0;gap:8px 10px;padding:12px}.episode-title-cell{gap:9px}.episode-cover{width:34px;height:34px}.episode-title-cell strong{font-size:13px}.episode-title-cell small{font-size:9.5px}.progress-top b{font-size:11.5px}.progress-top small{font-size:10px}.status-pill{height:24px;padding:0 8px;font-size:10.5px}.row-action{width:34px;height:34px}.modal-backdrop{padding:max(8px,env(safe-area-inset-top,0px)) 8px max(8px,env(safe-area-inset-bottom,0px))}.modal{max-height:calc(100dvh - 16px);border-radius:8px}.modal-header,.modal-body,.modal-footer{padding-right:16px;padding-left:16px}.modal-actions{gap:8px}.modal-actions .button{min-height:44px}input,select,textarea{font-size:16px}.toast{right:12px;left:12px;justify-content:center}}@media(max-width:560px){.drama-library-nav{padding:9px 10px 10px}.drama-library-brand>div{max-width:150px}.drama-library-navigation{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.drama-library-navigation button{min-height:40px;padding:0 10px;font-size:13px}.drama-library-nav-actions button.logout{min-height:38px;padding:0 10px;font-size:12.5px}.drama-library-workspace{padding:18px 12px 42px}.drama-library-header h1.compact-page-title{font-size:24px}.drama-library-header .page-actions .button{min-height:38px;padding:0 11px;font-size:13px}.drama-library-meta{min-height:0;align-items:flex-start;flex-direction:column;gap:5px;margin-bottom:14px;padding:11px 12px}.drama-library-meta>div{gap:6px}.drama-library-user{font-size:14px}.drama-library-meta p{font-size:12px}.drama-library-section{gap:10px}.drama-library-section+.drama-library-section{margin-top:24px;padding-top:20px}.drama-library-section-header{align-items:flex-start;gap:10px}.drama-library-section-header h2{font-size:15px}.drama-library-section-header p{font-size:11.5px;line-height:1.5}.drama-library-section-header>span{font-size:11.5px}.drama-library-grid{grid-template-columns:minmax(0,1fr);gap:10px}.drama-library-card{display:grid;min-height:0;grid-template-columns:42px minmax(0,1fr) auto;gap:7px 10px;padding:13px}.drama-card-topline{display:contents}.drama-card-index{grid-column:1;grid-row:1;align-self:center}.drama-card-actions{grid-column:3;grid-row:1 / span 2;align-self:start;gap:4px}.drama-card-actions button{width:38px;height:38px}.drama-card-mark{width:40px;height:40px;grid-column:1;grid-row:2;margin:0;align-self:center}.drama-library-card h2{grid-column:2;grid-row:1;align-self:end;margin:0;font-size:17px;line-height:1.35}.drama-card-owner,.drama-card-time{grid-column:2 / -1;font-size:11.5px}.drama-card-owner{grid-row:2;margin-top:0;padding-right:44px}.drama-card-time{grid-row:3;margin-top:0}.drama-enter-button{grid-column:1 / -1;grid-row:4;min-height:38px;margin-top:3px}.page-header.compact-page-header h1.compact-page-title,.dashboard-page .page-header h1{font-size:18px}.credit-statistics-header.compact-page-header h1.compact-page-title{font-size:19px}.managed-video-header h1{font-size:20px}.managed-video-header-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.managed-video-header-actions .managed-video-action{width:100%;min-width:0;padding:0 8px;font-size:13px}.managed-video-metrics,.credit-statistics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.managed-video-metric,.credit-statistics-metric{min-height:82px;gap:10px;padding:12px}.managed-video-metric-icon,.credit-statistics-metric-icon{width:36px;height:36px}.managed-video-metric strong,.credit-statistics-metric strong{font-size:20px}.managed-video-metric small,.credit-statistics-metric small{font-size:11.5px}.managed-video-toolbar,.managed-video-filters{padding:10px}.managed-video-tabs button{font-size:12px}.managed-video-tabs button b{min-width:17px;height:17px;padding:0 4px;font-size:10.5px}.managed-video-toolbar-meta{gap:5px;font-size:11.5px}.managed-video-filters{gap:7px}.managed-video-item{gap:13px;padding:12px}.managed-video-preview{width:100%;border-radius:6px}.managed-video-title-row{gap:8px}.managed-video-title-row h2{font-size:16px}.credit-statistics-header-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.credit-period-select{min-width:0}.credit-refresh-button{width:auto;min-width:104px;padding:0 12px}.credit-statistics-notice{padding:11px 12px}.credit-statistics-notice strong{font-size:13px}.credit-statistics-notice span{font-size:12px}.credit-statistics-panel-header{padding:12px}.credit-statistics-panel-header h2{font-size:16px}.credit-statistics-panel-header p{font-size:12px}.internal-credit-summary,.internal-credit-summary.has-allocation{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}.internal-credit-balance-card{min-height:88px;gap:10px;padding:12px}.internal-credit-balance-icon{width:36px;height:36px}.internal-credit-balance-card strong{font-size:22px}.internal-credit-balance-card span{white-space:normal}.asset-upload-row{justify-content:stretch}.asset-upload-row>*{width:100%}.asset-upload-row .button{width:100%;min-height:42px}.library-empty{min-height:300px;padding:24px 16px}}@media(max-width:380px){.workspace-toolbar{padding-right:8px;padding-left:8px}.workspace-library-action{padding:0 7px;font-size:12px}.workspace-toolbar-actions .workspace-action{width:36px;padding:0;font-size:0}.workspace-toolbar-actions .workspace-action svg{width:17px;height:17px}.drama-library-brand>div{max-width:120px}.drama-library-brand small,.drama-library-nav-actions button.logout span{display:none}.drama-library-nav-actions button.logout{width:40px;padding:0}.drama-library-header{align-items:flex-start;flex-direction:column}.drama-library-header .page-actions{width:100%;margin-left:0}.drama-library-header .page-actions .button{width:100%}.section-toolbar .tab-group button{padding:0 3px;font-size:11px}.managed-video-tabs button{font-size:11px}.managed-video-metrics,.credit-statistics-metrics,.internal-credit-summary,.internal-credit-summary.has-allocation,.credit-statistics-header-actions{grid-template-columns:minmax(0,1fr)}.credit-refresh-button{width:100%}.asset-grid{grid-template-columns:minmax(0,1fr)}}@media(hover:none),(pointer:coarse){.asset-card-actions{opacity:1}.asset-card-actions button{width:32px;height:32px}.asset-card:hover .asset-image-visual img{transform:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media(min-width:821px){.drama-library-grid{grid-template-columns:repeat(auto-fill,minmax(184px,1fr));gap:10px}}@media(min-width:561px){.drama-library-card{display:grid;min-height:132px;grid-template-columns:18px 30px minmax(0,1fr) 30px;grid-template-rows:36px auto auto 32px;gap:4px 6px;padding:9px}.drama-card-topline{display:contents}.drama-card-index{grid-column:1;grid-row:1;align-self:center;font-size:10px}.drama-card-actions{grid-column:4;grid-row:1;align-self:center}.drama-card-actions button{width:30px;height:30px;border-radius:5px}.drama-card-actions button svg{width:14px;height:14px}.drama-card-mark{width:28px;height:28px;grid-column:2;grid-row:1;margin:0;align-self:center;border-radius:5px}.drama-card-mark svg{width:15px;height:15px}.drama-library-card h2{display:-webkit-box;min-width:0;grid-column:3;grid-row:1;align-self:center;margin:0;overflow:hidden;font-size:15px;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2}.drama-card-owner,.drama-card-time{min-width:0;grid-column:1 / -1;gap:5px;margin-top:0;overflow:hidden;font-size:11px;line-height:1.35;white-space:nowrap}.drama-card-owner{grid-row:2}.drama-card-time{grid-row:3}.drama-card-owner span{min-width:0;overflow:hidden;text-overflow:ellipsis}.drama-card-owner svg,.drama-card-time svg{width:12px;height:12px}.drama-enter-button{min-height:32px;grid-column:1 / -1;grid-row:4;gap:5px;margin-top:0;padding:4px 7px;font-size:12px}.drama-enter-button svg{width:14px;height:14px}}.shot-generation-drawer-body{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.generation-version-head{min-height:34px;padding:4px}.generation-version-title{font-size:11.5px}.generation-version-number{font-size:9.5px}.generation-version-number.is-downloadable{min-width:0;gap:2px;padding:2px 4px}.generation-version-state{min-height:18px;padding:0 3px;font-size:9px}.generation-version-preview{padding:2px}.generation-picture-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483000;background:#080c0957;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px)}.generation-picture-window{position:fixed;top:50%;left:50%;display:flex;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 28px);flex-direction:column;overflow:hidden;border:1px solid #b9c2ad;border-radius:8px;background:#f8faf4;box-shadow:0 24px 70px #080f0a5c,0 3px 12px #080f0a33}.generation-picture-head{display:flex;min-height:40px;flex:0 0 auto;align-items:center;gap:7px;padding:7px 7px 7px 10px;border-bottom:1px solid #dce1d4;background:#f1f5e9;color:#65705a;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.generation-picture-head:active{cursor:grabbing}.generation-picture-head>svg{flex:0 0 auto}.generation-picture-head strong{min-width:0;flex:1;overflow:hidden;color:#2d372f;font-size:13px;font-weight:850;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.generation-picture-head button{display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;padding:0;border:1px solid #ccd3c3;border-radius:5px;background:#fff;color:#5d6756;cursor:pointer}.generation-picture-head button:hover,.generation-picture-head button:focus-visible{border-color:#9eae7f;outline:none;background:#e7eedb;color:#3f5227}.generation-picture-video{display:grid;height:min(68dvh,720px);min-height:240px;place-items:center;overflow:hidden;background:#080b09}.generation-picture-video video{display:block;width:100%;height:100%;background:#000;object-fit:contain}@media(max-width:700px){.shot-generation-drawer-body{grid-template-columns:repeat(8,minmax(92px,1fr));overflow-x:auto;overscroll-behavior-x:contain}.generation-picture-video{height:min(62dvh,620px);min-height:210px}}@container generation-drawer (max-width: 360px){.shot-generation-drawer-body{align-content:start;grid-auto-rows:auto;grid-template-columns:repeat(8,minmax(92px,1fr));overflow-x:auto}.generation-version-card{height:auto;background:#fff}.generation-version-head{position:static;inset:auto;min-height:32px;align-items:flex-start;padding:4px;border-bottom:1px solid #e6e9e1;background:#fafbf7;flex-direction:row;pointer-events:auto}.generation-version-title{padding:0;background:transparent;color:#303832;font-size:10px;line-height:1.25}.generation-version-number.is-downloadable{min-width:0;padding:2px 3px}.generation-version-number:after{font-size:9px}.generation-version-preview{flex:0 0 auto;aspect-ratio:9 / 16;padding:2px}.generation-version-preview video{border-radius:4px;object-fit:contain}.generation-version-placeholder{padding:8px 3px;border:1px solid #303a32;border-radius:4px;gap:3px}.generation-version-placeholder>svg{width:18px;height:18px}.generation-version-placeholder>strong{font-size:9px}}.asset-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.asset-thumb{aspect-ratio:16 / 10}.asset-card-body{padding:7px 8px 8px}.asset-name-line{gap:6px}.asset-kind-icon{width:19px;height:19px}.asset-name-line strong{font-size:11.5px}.asset-meta-line{gap:5px;margin-top:5px;padding-left:25px;font-size:8.5px}@media(max-width:1180px){.asset-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:900px){.asset-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:560px){.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}}@media(max-width:380px){.asset-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:560px){.drama-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.drama-library-card{display:grid;min-height:0;grid-template-columns:16px 26px minmax(0,1fr) 30px;grid-template-rows:30px auto auto 30px;gap:3px 5px;padding:7px}.drama-card-topline{display:contents}.drama-card-index{grid-column:1;grid-row:1;align-self:center;font-size:9px}.drama-card-actions{grid-column:4;grid-row:1;align-self:center}.drama-card-actions button{width:30px;height:30px;border-radius:5px}.drama-card-actions button svg{width:14px;height:14px}.drama-card-mark{width:26px;height:26px;grid-column:2;grid-row:1;margin:0;align-self:center;border-radius:5px}.drama-card-mark svg{width:14px;height:14px}.drama-library-card h2{min-width:0;grid-column:3;grid-row:1;align-self:center;margin:0;font-size:12.5px;line-height:1.25}.drama-card-owner,.drama-card-time{min-width:0;grid-column:1 / -1;gap:4px;margin-top:0;overflow:hidden;font-size:9.5px;line-height:1.35;white-space:nowrap}.drama-card-owner{grid-row:2;padding-right:0}.drama-card-time{grid-row:3}.drama-card-owner span{min-width:0;overflow:hidden;text-overflow:ellipsis}.drama-card-owner svg,.drama-card-time svg{width:12px;height:12px}.drama-enter-button{min-height:30px;grid-column:1 / -1;grid-row:4;gap:5px;margin-top:1px;padding:5px 7px;font-size:10.5px}.drama-enter-button svg{width:14px;height:14px}}.drama-card-grants{display:flex;min-width:0;flex-direction:column;gap:6px;margin-top:10px;padding-top:8px;border-top:1px solid #e1e5dc}.drama-card-grants-head{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:6px}.drama-card-grants-head>span{display:inline-flex;min-width:0;align-items:center;gap:4px;color:#596257;font-size:11.5px;font-weight:750;line-height:1.35}.drama-card-grants-head>span svg{width:14px;height:14px;flex:0 0 auto}.drama-card-grants-head>span b{display:inline-grid;min-width:18px;height:18px;place-items:center;padding:0 5px;border-radius:999px;background:#e9eee2;color:#526348;font-size:10.5px;font-weight:850;line-height:1}.drama-card-grants-head>button{display:inline-flex;min-height:26px;flex:0 0 auto;align-items:center;justify-content:center;gap:3px;padding:3px 7px;border:1px solid #cbd5bc;border-radius:5px;background:#f6f9ef;color:#556642;font-size:10.5px;font-weight:800;line-height:1;white-space:nowrap}.drama-card-grants-head>button:hover:not(:disabled){border-color:#acbd8e;background:#edf3df;color:#41542c}.drama-card-grants-head>button:disabled{cursor:not-allowed;opacity:.55}.drama-card-grant-users{display:flex;max-height:72px;min-width:0;flex-wrap:wrap;gap:4px;overflow-y:auto;padding:1px 2px 1px 0;scrollbar-width:thin}.drama-card-grant-user{display:inline-flex;max-width:100%;min-width:0;align-items:center;gap:2px;padding:2px 2px 2px 6px;border:1px solid #d8dfcb;border-radius:5px;background:#f4f7ec;color:#4f5f45;font-size:10.5px;font-weight:750;line-height:1.3}.drama-card-grant-user>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drama-card-grant-user>button{display:grid;width:20px;height:20px;flex:0 0 20px;place-items:center;padding:0;border:0;border-radius:4px;background:transparent;color:#75806d}.drama-card-grant-user>button:hover:not(:disabled){background:#fce9e5;color:#ae4034}.drama-card-grant-user>button:disabled{cursor:not-allowed;opacity:.6}.drama-card-grants-state{display:inline-flex;min-height:22px;align-items:center;gap:5px;color:#7a8276;font-size:10.5px;line-height:1.4}.drama-card-grants-state svg{flex:0 0 auto}.drama-card-grants-selection{color:#657653;font-size:10.5px;font-weight:800}.drama-user-grant-modal{width:min(680px,100%)}@media(min-width:561px){.drama-library-card{grid-template-rows:36px auto auto auto 32px}.drama-card-grants{grid-column:1 / -1;grid-row:4;margin-top:0;padding-top:6px}.drama-enter-button{grid-row:5}}@media(max-width:560px){.drama-library-card{grid-template-rows:30px auto auto auto 30px}.drama-card-grants{grid-column:1 / -1;grid-row:4;gap:5px;margin-top:1px;padding-top:6px}.drama-card-grants-head{align-items:stretch;flex-direction:column;gap:4px}.drama-card-grants-head>button{width:100%;min-height:25px}.drama-card-grant-users{max-height:58px}.drama-card-grant-user{max-width:100%;font-size:10px}.drama-enter-button{grid-row:5}.drama-user-grant-modal .drama-grant-option{grid-template-columns:auto auto minmax(0,1fr);gap:8px;padding:9px}.drama-user-grant-modal .drama-grant-status{grid-column:3;grid-row:2;justify-self:start;text-align:left}}.download-progress-button{position:relative;overflow:hidden}.button.download-progress-button,.button.download-progress-button:disabled{border-color:var(--line-strong);background:var(--surface-muted);color:var(--ink-soft);cursor:progress;opacity:1}.managed-video-batch-download,.video-history-batch-download,.shot-batch-individual-button{min-width:170px;font-variant-numeric:tabular-nums}.download-progress-track,.download-progress-fill{position:absolute;bottom:0;left:0;height:3px;background:currentColor;pointer-events:none}.download-progress-track{right:0;opacity:.14}.download-progress-fill{opacity:.7;transition:width .3s ease}.button.download-resume-button{border-color:var(--accent-deep);background:#dff36a42;color:var(--ink);box-shadow:none;animation:none}.button.download-resume-button:hover:not(:disabled){border-color:var(--accent-deep);background:#dff36a66}.download-location{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 10px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface-muted);color:var(--muted);font-size:12.5px;line-height:1.5}.download-location-icon{flex:0 0 auto;color:var(--muted)}.download-location-body{display:flex;min-width:0;flex:1;align-items:baseline;gap:6px}.download-location-label{flex:0 0 auto;color:var(--muted)}.download-location-path{min-width:0;overflow:hidden;padding:0;border:0;background:none;color:var(--ink-soft);font-family:DM Mono,Cascadia Mono,Consolas,monospace;font-size:12.5px;text-overflow:ellipsis;white-space:nowrap;cursor:copy;text-align:left}.download-location-path:hover{color:var(--ink);text-decoration:underline dotted;text-underline-offset:3px}.download-location-edit{display:flex;min-width:0;flex:1;align-items:center;gap:6px}.download-location-edit input{min-width:0;flex:1;height:26px;padding:0 8px;border:1px solid var(--line-strong);border-radius:5px;background:var(--surface-strong);color:var(--ink);font-size:12.5px}.download-location-edit input:focus{outline:none;border-color:var(--accent-deep)}.download-location-actions{display:flex;flex:0 0 auto;align-items:center;gap:4px}.download-location-mini{display:inline-flex;height:26px;align-items:center;gap:4px;padding:0 8px;border:1px solid var(--line);border-radius:5px;background:var(--surface-strong);color:var(--ink-soft);font-size:12px;font-weight:600;white-space:nowrap}.download-location-mini:hover{border-color:var(--line-strong);background:var(--surface-muted)}.download-location-copied{display:inline-flex;align-items:center;gap:4px;color:#4c7a2a;font-size:12px;font-weight:650;white-space:nowrap}.download-location.is-inline{min-height:42px;flex:0 1 430px;min-width:250px;margin:0;padding:6px 10px;background:var(--surface-strong)}.download-location.is-inline .download-location-label{font-weight:650}.download-location.is-inline.is-editing{flex:1 1 100%;min-width:0;align-items:center}.download-location-path.is-empty{color:var(--muted);font-family:inherit;cursor:pointer}.download-location-path.is-empty:hover{color:var(--ink-soft)}.download-location-path.is-default{display:inline-flex;align-items:baseline;gap:6px}.download-location-tag{flex:0 0 auto;padding:0 5px;border:1px dashed var(--line-strong);border-radius:4px;color:var(--muted);font-family:var(--font-sans, inherit);font-size:10.5px;line-height:15px;letter-spacing:.02em}.download-location-mini:disabled{opacity:.6;cursor:progress}.download-location-notice{display:inline-flex;flex:1 1 100%;align-items:center;gap:5px;color:#4c7a2a;font-size:12px;font-weight:650;line-height:1.45}.download-location-notice.is-error{color:var(--danger)}.download-location-tag.is-warn{border-style:dashed;border-color:var(--danger);color:var(--danger)}@media(max-width:860px){.managed-video-actions-row{flex-direction:column;align-items:stretch}.managed-video-actions-row .managed-video-selection-actions{flex-wrap:wrap}.button.managed-video-batch-download.is-grow{flex:1 1 auto}.download-location.is-inline{flex:1 1 auto;min-width:0}}@media(max-width:720px){.managed-video-batch-download,.video-history-batch-download,.shot-batch-individual-button{min-width:0}.download-location{align-items:flex-start;flex-wrap:wrap}.download-location-body{flex:1 1 100%;flex-wrap:wrap}.download-location-path{flex:1 1 100%;white-space:normal;overflow-wrap:anywhere}.download-location-actions{width:100%;justify-content:flex-end}}
