@clipen/clipen-cli 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -43
- package/README.zh-TW.md +98 -0
- package/apps/web/dist/assets/index-BHFCflzf.js +15 -0
- package/apps/web/dist/assets/index-BtenOBwP.css +1 -0
- package/apps/web/dist/favicon.svg +1 -1
- package/apps/web/dist/index.html +2 -2
- package/bin/clipen.js +4 -2
- package/package.json +2 -2
- package/pyproject.toml +1 -1
- package/src/clipen/__init__.py +1 -1
- package/src/clipen/annotations/suggestions.py +1 -1
- package/src/clipen/bootstrap.py +70 -15
- package/src/clipen/controller/app.py +102 -1
- package/src/clipen/controller/server.py +14 -6
- package/src/clipen/editing/agent_repository.py +29 -3
- package/src/clipen/editing/agent_tools.py +1 -0
- package/src/clipen/editing/aspect.py +27 -0
- package/src/clipen/editing/production_catalog.py +10 -3
- package/src/clipen/editing/production_media.py +1 -1
- package/src/clipen/editing/production_preview.py +7 -0
- package/src/clipen/editing/production_tools.py +7 -2
- package/src/clipen/editing/skill_tools.py +8 -0
- package/src/clipen/editing/slip.py +109 -0
- package/src/clipen/editing/tool_receipts.py +1 -0
- package/src/clipen/editing/versions.py +2 -0
- package/src/clipen/editing/visual_preview.py +11 -3
- package/src/clipen/editing/workbench.py +33 -1
- package/src/clipen/locale_en.py +18 -0
- package/src/clipen/mcp_editing/server.py +3 -1
- package/src/clipen/media/discovery.py +2 -2
- package/src/clipen/media/preview.py +5 -0
- package/src/clipen/media/storage.py +5 -2
- package/src/clipen/projects/models.py +2 -0
- package/src/clipen/projects/storage.py +84 -4
- package/src/clipen/providers/account.py +37 -6
- package/src/clipen/providers/claude.py +5 -3
- package/src/clipen/providers/claude_editing.py +5 -6
- package/src/clipen/providers/codex.py +19 -7
- package/src/clipen/providers/codex_editing.py +2 -1
- package/src/clipen/providers/editing_agent.py +24 -2
- package/src/clipen/providers/model_selection.py +67 -0
- package/src/clipen/rendering/cover.py +1 -1
- package/src/clipen/rendering/program_subtitles.py +3 -1
- package/src/clipen/rendering/renderer.py +13 -3
- package/src/clipen/skills/builtin/references/graphics.md +1 -1
- package/src/clipen/skills/builtin/templates.json +9 -0
- package/apps/web/dist/assets/index-DPgSvXZ1.js +0 -15
- package/apps/web/dist/assets/index-DmPWV61v.css +0 -1
- package/src/clipen/editing/EDITORIAL_REGRESSIONS.md +0 -38
- package/src/clipen/editing/REFACTOR_DESIGN.md +0 -241
- package/src/clipen/editing/REFACTOR_HANDOFF.md +0 -73
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#111215;--surface-0:#0b0c0e;--surface-1:#18191d;--surface-2:#202227;--surface-3:#2a2c32;--line:#2b2d33;--line-strong:#3b3e45;--text:#ecebe6;--text-2:#b0b2b8;--text-3:#80838a;--accent:#e9b44c;--accent-hover:#f2c66a;--accent-ink:#261a03;--accent-soft:#e9b44c24;--ok:#74c393;--ok-soft:#74c39324;--warn:#e2ac55;--warn-soft:#e2ac5524;--danger:#ee7d73;--danger-soft:#ee7d7324;--info:#86aee0;--info-soft:#86aee024;--ink:var(--text);--muted:var(--text-2);--paper:var(--surface-1);--green:var(--accent);--green-dark:var(--accent-hover);--green-soft:var(--accent-soft);--studio-dark:var(--surface-0);--studio-accent:var(--accent);--warning:var(--warn);--warning-soft:var(--warn-soft);--error:var(--danger);--mono:ui-monospace, "SF Mono", Menlo, monospace;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,PingFang TC,Noto Sans TC,Segoe UI,sans-serif;font-weight:400;line-height:1.6}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}button{color:inherit}.app-shell{min-height:100vh}.topbar{z-index:20;border-bottom:1px solid var(--line);background:var(--surface-2);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);justify-content:space-between;align-items:center;height:68px;padding:0 40px;display:flex;position:sticky;top:0}.brand{color:var(--ink);letter-spacing:-.05em;cursor:pointer;background:0 0;border:0;padding:0;font-size:22px;font-weight:790}.connection-badge{border:1px solid var(--line-strong);min-height:34px;color:var(--text-2);background:var(--surface-1);border-radius:999px;align-items:center;gap:9px;padding:7px 12px;font-size:13px;font-weight:680;display:flex}.connection-badge span,.save-state span{background:var(--surface-3);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #00000059}.connection-badge.is-ready span{background:var(--ok);box-shadow:0 0 0 4px #00000059}.provider-notice{border-bottom:1px solid var(--accent);min-height:62px;color:var(--accent);background:var(--accent-soft);align-items:center;gap:13px;padding:12px 40px;display:flex}.provider-notice strong{margin-bottom:3px;font-size:14px;display:block}.provider-notice p{margin:0;font-size:13px}.notice-symbol{width:30px;height:30px;color:var(--warning);background:var(--accent-soft);border-radius:50%;flex:none;place-items:center;font-weight:800;display:grid}.home-main,.system-main,.workspace-main{width:min(1180px,100% - 80px);margin:0 auto}.workspace-main{width:min(1680px,100% - 96px)}.home-main{padding:76px 0 96px}.system-main{padding:100px 0}.workspace-main{padding:30px 0 90px}.eyebrow{color:var(--text-2);letter-spacing:.13em;text-transform:uppercase;margin:0 0 12px;font-size:11px;font-weight:780}h1,h2,h3,p{margin-top:0}.home-heading{justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:44px;display:flex}.home-heading h1{letter-spacing:-.06em;margin-bottom:16px;font-size:58px;line-height:1}.home-heading p:last-child{max-width:660px;color:var(--muted);margin-bottom:0;font-size:17px;line-height:1.65}.button{cursor:pointer;border:1px solid #0000;border-radius:11px;min-height:44px;padding:10px 17px;font-size:14px;font-weight:720;transition:transform .15s,background .15s,border-color .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{opacity:.48;cursor:default}.button.primary{color:#fff;background:var(--green)}.button.secondary{border-color:var(--line);background:var(--surface-1)}.create-button{min-height:48px;padding-inline:20px}.empty-projects,.create-panel,.system-card{border:1px solid var(--line);background:var(--paper);border-radius:24px;box-shadow:0 24px 70px #00000059}.empty-projects{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:340px;padding:50px;display:flex}.empty-mark{border:2px solid var(--line-strong);border-radius:8px;width:64px;height:52px;margin-bottom:25px;position:relative}.empty-mark:before{content:"";border:2px solid var(--line-strong);border-bottom:0;border-radius:6px 6px 0 0;width:24px;height:10px;position:absolute;top:-10px;left:8px}.empty-mark span{background:var(--green);border-radius:50%;width:27px;height:27px;position:absolute;bottom:-9px;right:-9px}.empty-mark span:before,.empty-mark span:after{content:"";background:#fff;position:absolute;inset:7px 12px}.empty-mark span:after{inset:12px 7px}.empty-projects h2{letter-spacing:-.035em;margin-bottom:9px;font-size:27px}.empty-projects p{max-width:480px;color:var(--muted);margin-bottom:24px;line-height:1.65}.create-panel{grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr);gap:64px;padding:46px 50px;display:grid}.create-panel h2{letter-spacing:-.035em;margin-bottom:10px;font-size:28px}.create-panel>div>p:last-child{color:var(--muted);line-height:1.65}.create-panel form,.project-form{flex-direction:column;display:flex}label{margin-bottom:8px;font-size:13px;font-weight:730}input,textarea{border:1px solid var(--line);width:100%;color:var(--ink);background:var(--surface-1);border-radius:11px;outline:0;transition:border-color .15s,box-shadow .15s}input{height:46px;padding:0 14px}input[type=checkbox],input[type=radio]{width:16px;height:16px;padding:0}textarea{resize:vertical;padding:13px 14px;line-height:1.6}input:focus,textarea:focus{border-color:var(--line-strong);box-shadow:0 0 0 3px #00000059}.form-actions{justify-content:flex-end;gap:9px;margin-top:18px;display:flex}.form-error{color:var(--error);margin:9px 0 0;font-size:13px}.project-section{margin-top:8px}.section-title-row{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:17px;display:flex}.section-title-row h2{letter-spacing:-.025em;margin-bottom:0;font-size:20px}.section-title-row>span{color:var(--muted);font-size:13px}.section-title-row>div>p{color:var(--muted);margin:7px 0 0;font-size:13px}.project-card{border:1px solid var(--line);background:var(--surface-1);text-align:left;cursor:pointer;border-radius:18px;flex-direction:column;align-items:flex-start;min-height:210px;padding:23px;transition:transform .18s,border-color .18s,box-shadow .18s;display:flex}.project-card strong{letter-spacing:-.025em;margin-bottom:9px;font-size:21px}.project-time{color:var(--text-3);margin-top:auto;font-size:11px}.workspace-layout{grid-template-columns:248px minmax(0,1fr);align-items:start;gap:28px;display:grid}.materials-panel{border:1px solid var(--line);background:var(--surface-1);border-radius:22px;min-width:0;padding:42px 46px 48px;box-shadow:0 24px 70px #00000059}.panel-heading{justify-content:space-between;align-items:flex-start;gap:32px;margin-bottom:33px;display:flex}.panel-heading h1{letter-spacing:-.05em;margin-bottom:12px;font-size:37px;line-height:1.05}.panel-heading>div:first-child>p:last-child{max-width:620px;color:var(--muted);margin-bottom:0;line-height:1.65}.save-state{color:var(--text-2);background:var(--surface-2);border-radius:999px;flex:none;align-items:center;gap:9px;padding:8px 11px;font-size:11px;font-weight:700;display:flex}.save-state span{background:var(--surface-0)}.save-state.unsaved{color:var(--accent);background:var(--accent-soft)}.save-state.unsaved span{background:var(--accent)}.inline-message{border-radius:10px;margin:-8px 0 25px;padding:12px 14px;font-size:13px}.inline-message.success{color:var(--text-2);background:var(--surface-2)}.inline-message.error{color:var(--error);background:var(--danger-soft)}.project-form{border-bottom:1px solid var(--line);padding-bottom:34px}.project-form label:not(:first-child){margin-top:18px}.form-footer{justify-content:space-between;align-items:center;margin-top:12px;display:flex}.form-footer>span{color:var(--text-3);font-size:11px}.danger-zone{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;margin-top:34px;padding:24px}.danger-zone h2{color:var(--text-2);margin-bottom:7px;font-size:17px}.danger-zone p{color:var(--text-2);margin:0 0 18px;font-size:12px;line-height:1.6}.danger-zone .form-error{color:var(--error);margin:-5px 0 10px}.danger-zone label{display:block}.danger-actions{align-items:center;gap:10px;display:flex}.danger-actions input{flex:1}.danger-button{color:var(--text);background:var(--danger);flex:none}.danger-button:hover:not(:disabled){background:var(--danger)}.directory-section{padding-top:32px}.directory-card{border:1px solid var(--line);background:var(--surface-1);border-radius:16px;grid-template-columns:44px minmax(0,1fr);gap:17px;margin-top:12px;padding:22px;display:grid}.directory-card.has-directory{border-color:var(--line);background:var(--ok-soft)}.directory-icon{border:1.5px solid var(--line-strong);border-radius:6px;width:42px;height:34px;margin-top:2px;position:relative}.directory-icon:before{content:"";border:1.5px solid var(--line-strong);border-bottom:0;border-radius:4px 4px 0 0;width:17px;height:7px;position:absolute;top:-7px;left:5px}.directory-title-row{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.directory-title-row h3{margin-bottom:5px;font-size:15px}.directory-title-row p{color:var(--muted);margin-bottom:0;font-size:12px}.availability{color:var(--text-2);background:var(--surface-2);border-radius:999px;flex:none;padding:5px 8px;font-size:10px;font-weight:740}.availability.offline,.availability.changed,.availability.permission_required{color:var(--accent);background:var(--accent-soft)}.selected-path{border:1px solid var(--line);background:var(--surface-1);border-radius:9px;flex-direction:column;gap:3px;margin-top:17px;padding:12px 13px;display:flex}.selected-path strong{font-size:13px}.selected-path span{color:var(--text-3);text-overflow:ellipsis;white-space:nowrap;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;overflow:hidden}.directory-help{color:var(--muted);margin:10px 0 0;font-size:12px}.directory-actions{gap:16px;margin-top:13px;display:flex}.text-button{color:var(--green);cursor:pointer;background:0 0;border:0;padding:0;font-size:12px;font-weight:720}.text-button.danger{color:var(--text-2)}.text-button:disabled{opacity:.5;cursor:default}.choose-button{margin-top:17px}.scope-note{background:var(--green-soft);border-radius:14px;align-items:flex-start;gap:14px;margin-top:26px;padding:20px;display:flex}.scope-note strong{color:var(--ok);margin-bottom:5px;font-size:13px;display:block}.scope-note p{color:var(--text-2);margin:0;font-size:12px;line-height:1.6}.lock-icon{border:1.7px solid var(--line-strong);border-radius:4px;flex:none;width:19px;height:17px;margin:8px 2px 0;position:relative}.lock-icon:before{content:"";border:1.7px solid var(--line-strong);border-bottom:0;border-radius:7px 7px 0 0;width:9px;height:9px;position:absolute;top:-9px;left:3px}.inventory-section{border:1px solid var(--line);background:var(--surface-1);border-radius:14px;margin-top:24px;padding:clamp(14px,2.4vw,24px)}.inventory-heading{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;display:grid}.inventory-heading h2{letter-spacing:-.03em;margin:0 0 6px;font-size:23px}.inventory-heading>div>p:last-child{max-width:620px;color:var(--muted);margin-bottom:0;font-size:13px;line-height:1.65}.inventory-heading>.button{justify-self:end}.inventory-empty,.inventory-progress,.inventory-outcome,.inventory-results{border:1px solid var(--line);background:var(--surface-1);border-radius:16px;margin-top:18px}.inventory-empty{align-items:center;gap:15px;min-height:90px;padding:20px;display:flex}.inventory-empty strong{margin-bottom:4px;font-size:14px;display:block}.inventory-empty p{color:var(--muted);margin:0;font-size:12px}.inventory-empty.muted-state{color:var(--text-2);background:var(--surface-2)}.inventory-mark{border:1.5px solid var(--line-strong);border-radius:5px;width:31px;height:35px;position:relative}.inventory-mark:before{content:"";background:var(--surface-0);width:16px;height:1.5px;position:absolute;top:8px;left:6px;box-shadow:0 6px #00000059,0 12px #00000059}.inventory-progress{border-color:var(--line-strong);background:var(--ok-soft);justify-content:space-between;align-items:center;gap:24px;padding:20px;display:flex}.progress-main{align-items:center;gap:15px;display:flex}.progress-main strong{color:var(--text-2);margin-bottom:5px;font-size:14px;display:block}.progress-main p{color:var(--text-2);margin:0;font-size:12px}.small-spinner{border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;flex:none;width:24px;height:24px;animation:.9s linear infinite spin}.inventory-outcome{border-color:var(--accent);background:var(--accent-soft);align-items:flex-start;gap:14px;padding:18px 20px;display:flex}.inventory-outcome.has-error{border-color:var(--danger);background:var(--danger-soft)}.inventory-outcome .outcome-symbol{width:26px;height:26px;color:var(--accent);background:var(--accent-soft);border-radius:50%;flex:none;place-items:center;font-weight:800;display:grid}.inventory-outcome.has-error .outcome-symbol{color:var(--error);background:var(--danger-soft)}.inventory-outcome strong{margin:3px 0 5px;font-size:13px;display:block}.inventory-outcome p{color:var(--text-2);margin:0;font-size:12px;line-height:1.55}.inventory-outcome small{color:var(--text-3);margin-top:7px;font-size:11px;display:block}.analysis-section{border-top:1px solid var(--line);margin-top:38px;padding-top:38px}.skill-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px;display:grid}.consent-check{min-width:0;color:var(--text-2);cursor:pointer;flex:1;align-items:flex-start;gap:11px;margin:0;font-size:13px;font-weight:500;line-height:1.55;display:flex}.consent-check input{accent-color:var(--green);flex:0 0 16px;margin:1px 0 0}.consent-check span{min-width:0}.consent-check strong{color:var(--text-2);margin-bottom:2px;font-size:13px;display:block}.stage-next{border:1px solid var(--line);background:var(--ok-soft);border-radius:13px;justify-content:space-between;align-items:center;gap:20px;margin-top:28px;padding:17px 18px;display:flex}.stage-next span{color:var(--text-2);font-size:12px;font-weight:680}.stage-next .button{flex:none}.consent-check{color:var(--text-2);cursor:pointer;grid-column:1;align-items:flex-start;gap:9px;font-size:11px;line-height:1.45;display:flex}.consent-check input{width:16px;height:16px;accent-color:var(--green);margin:0}@container timeline-stage (width<=520px){.edit-agent-consent>.button,.consent-check{grid-area:auto/1}}.analysis-heading{justify-content:space-between;align-items:flex-start;gap:34px;display:flex}.analysis-heading h2{letter-spacing:-.03em;margin-bottom:8px;font-size:23px}.analysis-heading>div>p:last-child{max-width:620px;color:var(--muted);margin-bottom:0;font-size:13px;line-height:1.65}.analysis-heading>.button{flex:none;margin-top:19px}.analysis-card,.analysis-progress,.analysis-outcome,.analysis-results{border:1px solid var(--line);background:var(--surface-1);border-radius:16px;margin-top:18px}.analysis-card{align-items:center;gap:15px;min-height:90px;padding:20px;display:flex}.analysis-card strong{margin-bottom:5px;font-size:14px;display:block}.analysis-card p{color:var(--muted);margin:0;font-size:12px;line-height:1.55}.analysis-card.setup-required{border-color:var(--accent);background:var(--accent-soft);align-items:flex-start}.runtime-setup-content{flex:1;min-width:0}.runtime-facts{border:1px solid var(--accent);background:var(--accent-soft);border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:16px 0 12px;display:grid;overflow:hidden}.runtime-facts>div{background:var(--surface-1);min-width:0;padding:10px 12px}.runtime-facts dt{color:var(--text-3);margin-bottom:3px;font-size:10px;font-weight:720}.runtime-facts dd{color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:11px;line-height:1.45;overflow:hidden}.analysis-card p.runtime-license{color:var(--text-2);margin:0 0 13px;font-size:10px}.runtime-license a{color:var(--text-2);font-weight:720}.runtime-setup code{color:var(--text-2);background:var(--surface-1);border-radius:5px;padding:2px 5px;font-family:SFMono-Regular,Consolas,monospace;font-size:10px}.runtime-failed{align-items:center}.runtime-settings{color:var(--text-3);margin-top:14px;font-size:11px}.runtime-settings summary{cursor:pointer;width:max-content;font-weight:680}.runtime-settings>div{border:1px solid var(--line);background:var(--surface-1);border-radius:10px;justify-content:space-between;align-items:center;gap:18px;margin-top:9px;padding:12px 14px;display:flex}.runtime-settings p{margin:0;line-height:1.5}.analysis-card.scope-preview{border-color:var(--line-strong);background:var(--ok-soft);justify-content:space-between}.analysis-card.scope-preview>span{max-width:240px;color:var(--text-2);text-align:right;font-size:11px;line-height:1.5}.analysis-progress{border-color:var(--line-strong);background:var(--ok-soft);justify-content:space-between;align-items:center;gap:24px;padding:20px;display:flex}.analysis-progress .progress-main{flex:1}.analysis-progress .progress-main>div{flex:1;max-width:520px}.analysis-progress small{color:var(--text-3);margin-top:6px;font-size:10px;display:block}.analysis-progress progress{width:100%;height:7px;accent-color:var(--green);margin-top:10px;display:block}.analysis-outcome{border-color:var(--accent);background:var(--accent-soft);align-items:flex-start;gap:14px;padding:18px 20px;display:flex}.analysis-outcome>div{flex:1}.analysis-outcome>.button{flex:none;align-self:center}.analysis-outcome .outcome-symbol,.analysis-card .outcome-symbol{width:26px;height:26px;color:var(--accent);background:var(--accent-soft);border-radius:50%;flex:none;place-items:center;font-weight:800;display:grid}.analysis-outcome.has-error{border-color:var(--danger);background:var(--danger-soft)}.analysis-outcome.has-error .outcome-symbol{color:var(--error);background:var(--danger-soft)}.analysis-outcome strong{margin:3px 0 5px;font-size:13px;display:block}.analysis-outcome p{color:var(--text-2);margin:0;font-size:12px;line-height:1.55}.analysis-results{border-color:var(--line-strong);background:var(--ok-soft);justify-content:space-between;align-items:center;gap:24px;padding:21px;display:flex}.analysis-results strong{color:var(--text-2);margin-bottom:5px;font-size:14px;display:block}.analysis-results p{color:var(--text-2);margin:0;font-size:12px}.analysis-results p+p{margin-top:6px}.analysis-results .analysis-replace-note{color:var(--text-3);font-size:11px}.transcript-results{--material-xs:clamp(10px, calc(8px + .18vw), 12px);--material-sm:clamp(11px, calc(8px + .24vw), 14px);--material-md:clamp(13px, calc(9px + .28vw), 16px);--material-lg:clamp(15px, calc(10px + .32vw), 19px);border:1px solid var(--line);background:var(--surface-1);border-radius:16px;margin-top:16px;overflow:hidden;container:material-results/inline-size}.transcript-results-heading{justify-content:space-between;align-items:flex-start;gap:24px;padding:20px 22px 14px;display:flex}.transcript-results-heading h3{margin:0 0 5px;font-size:15px}.transcript-results-heading p{color:var(--muted);margin:0;font-size:11px;line-height:1.55}.transcript-results-heading>span{color:var(--text-2);flex:none;font-size:11px;font-weight:700}.review-filters{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface-1);align-items:flex-end;gap:10px;padding:12px 22px;display:flex}.review-filters label{gap:5px;min-width:150px;margin:0;display:grid}.review-filters label>span{color:var(--text-2);font-size:9px;font-weight:720}.review-filters select{box-sizing:border-box;border:1px solid var(--line);height:34px;color:var(--text-2);background:var(--surface-1);font:inherit;border-radius:8px;outline:none;padding:0 30px 0 10px;font-size:10px}.review-filters select:focus{border-color:var(--line-strong);box-shadow:0 0 0 3px #00000059}.review-filters>span{color:var(--text-3);margin:0 0 9px auto;font-size:9px;font-weight:680}.transcript-list-state{color:var(--muted);margin:0;padding:22px;font-size:12px}.transcript-list-state.has-error{color:var(--error)}.transcript-list{border-bottom:1px solid var(--line)}.transcript-item{border-top:1px solid var(--line)}.transcript-item:first-child{border-top:0}.transcript-item>summary{cursor:pointer;justify-content:space-between;align-items:flex-start;gap:24px;padding:15px 22px;list-style:none;display:flex}.transcript-item>summary::-webkit-details-marker{display:none}.transcript-item>summary:before{content:"›";color:var(--text-3);flex:none;margin-top:1px;font-size:19px;line-height:1;transition:transform .16s}.transcript-item[open]>summary:before{transform:rotate(90deg)}.transcript-item[open]>summary{background:var(--surface-2)}.transcript-item.status-failed>summary,.transcript-item.status-needs_review>summary{background:var(--accent-soft)}.transcript-item.user-reviewed>summary,.transcript-item.user-confirmed>summary,.transcript-item.user-priority>summary{background:var(--ok-soft)}.transcript-item.user-excluded>summary{background:var(--surface-2)}.transcript-item-main{flex:1;min-width:0}.transcript-item-main strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:12px;display:block;overflow:hidden}.transcript-item-main>span{color:var(--text-3);margin-top:3px;font-size:10px;display:block}.annotation-summary{flex-wrap:wrap;gap:5px;margin-top:7px;display:flex}.annotation-summary span{color:var(--text-2);background:var(--surface-2);border-radius:999px;padding:3px 6px;font-size:9px;font-weight:700}.transcript-item-main p{color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;margin:7px 0 0;font-size:11px;line-height:1.5;overflow:hidden}.transcript-item-meta{color:var(--text-3);flex:none;align-items:center;gap:10px;font-size:10px;display:flex}.trip-day-badge{color:var(--text-2);font-weight:720}.user-state{color:var(--text-2);background:var(--surface-2);border-radius:999px;padding:4px 7px;font-weight:720}.user-state.state-reviewed,.user-state.state-confirmed,.user-state.state-priority{color:var(--text-2);background:var(--surface-2)}.user-state.state-excluded{color:var(--text-2);background:var(--danger-soft)}.user-state.state-discarded{color:var(--text-2);background:var(--accent-soft)}.transcript-status{color:var(--text-2);background:var(--surface-2);border-radius:999px;padding:4px 7px;font-weight:720}.status-failed .transcript-status{color:var(--danger);background:var(--danger-soft)}.status-needs_review .transcript-status{color:var(--accent);background:var(--accent-soft)}.user-reviewed .transcript-status,.user-confirmed .transcript-status,.user-priority .transcript-status{color:var(--text-2);background:var(--surface-2)}.user-excluded .transcript-status{color:var(--text-3);background:var(--surface-3)}.status-no_speech .transcript-status,.status-no_audio .transcript-status{color:var(--text-2);background:var(--accent-soft)}.transcript-item-body{border-top:1px solid var(--line);background:var(--surface-1);padding:17px 22px 19px 53px}.transcript-item-body>p{color:var(--text-2);margin:0;font-size:11px;line-height:1.6}.transcript-item-body .transcript-issue{border-left:3px solid var(--accent);color:var(--text-2);background:var(--accent-soft);border-radius:6px;margin-bottom:14px;padding:9px 11px}.transcript-segments{gap:0;margin:0 0 14px;padding:0;list-style:none;display:grid}.transcript-segments li{border-bottom:1px solid var(--line);grid-template-columns:72px minmax(0,1fr) 72px;gap:12px;padding:10px 0;display:grid}.transcript-segments time{color:var(--text-2);font-family:SFMono-Regular,Consolas,monospace;font-size:10px;font-weight:700}.transcript-seek{color:var(--text-2);text-align:left;cursor:pointer;background:0 0;border:0;padding:2px 0;font-family:SFMono-Regular,Consolas,monospace;font-size:10px;font-weight:740}.transcript-seek:hover{text-decoration:underline}.transcript-heading-actions{flex:none;align-items:center;gap:12px;display:flex}.transcript-discard{border-color:var(--danger);min-height:31px;color:var(--text-2);background:var(--surface-1);padding:6px 10px;font-size:9px}.transcript-discard:hover{border-color:var(--danger);background:var(--danger-soft)}.transcript-discard.restore{border-color:var(--line-strong);color:var(--text-2);background:var(--ok-soft)}.transcript-discarded-message{border:1px solid var(--accent);background:var(--accent-soft);border-radius:10px;padding:16px}.transcript-discarded-message strong{color:var(--text-2);font-size:11px}.transcript-discarded-message p{color:var(--text-3);margin:5px 0 0;font-size:10px;line-height:1.55}.transcript-segments p{color:var(--text-2);white-space:pre-wrap;margin:0;font-size:12px;line-height:1.55}.transcript-segments span{color:var(--text-3);text-align:right;font-size:9px}.transcript-pagination{justify-content:center;align-items:center;gap:14px;padding:14px 20px;display:flex}.transcript-pagination span{min-width:84px;color:var(--text-3);text-align:center;font-size:10px}.transcript-pagination .button{min-height:30px;padding:6px 11px;font-size:10px}.annotation-editor{gap:20px;display:grid}.annotation-workbench{grid-template-columns:minmax(260px,.9fr) minmax(340px,1.1fr);align-items:stretch;gap:18px;display:grid}.annotation-decision{flex-direction:column;justify-content:space-between;gap:16px;min-width:0;padding:4px 0;display:flex}.material-player{background:var(--surface-0);border-radius:13px;overflow:hidden}.material-player video{aspect-ratio:16/9;object-fit:contain;background:var(--surface-0);width:100%;max-height:min(48vh,440px);display:block}.material-player audio{box-sizing:border-box;width:100%;padding:18px;display:block}.material-player p{color:var(--text-3);background:var(--surface-0);margin:0;padding:9px 13px;font-size:9px;line-height:1.5}.annotation-intro{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.annotation-intro strong{color:var(--text-2);font-size:14px;display:block}.annotation-intro p{color:var(--muted);margin:4px 0 0;font-size:11px;line-height:1.5}.annotation-origin{flex-wrap:wrap;flex:none;justify-content:flex-end;gap:6px;display:flex}.annotation-origin span{color:var(--text-2);background:var(--surface-2);border-radius:999px;padding:5px 9px;font-size:9px;font-weight:720}.annotation-usage{border:0;min-width:0;margin:0;padding:0}.annotation-usage legend{color:var(--text-2);margin-bottom:8px;padding:0;font-size:10px;font-weight:760}.usage-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.usage-options label{border:1px solid var(--line);background:var(--surface-1);cursor:pointer;border-radius:10px;align-items:center;gap:9px;min-width:0;min-height:50px;padding:9px 10px;transition:border-color .15s,background .15s,box-shadow .15s;display:flex;position:relative}.usage-options label:hover{border-color:var(--line-strong)}.usage-options label.is-selected{border-color:var(--line-strong);background:var(--ok-soft);box-shadow:inset 0 0 0 1px #00000059}.usage-options input{width:15px;height:15px;accent-color:var(--surface-0);margin:0}.usage-options label>span{min-width:0}.usage-options strong,.usage-options small{display:block}.usage-options strong{color:var(--text-2);font-size:10px;line-height:1.3}.usage-options small{color:var(--text-3);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:8px;line-height:1.35;overflow:hidden}.annotation-context-disclosure{border:1px solid var(--line);background:var(--surface-1);border-radius:11px;overflow:hidden}.annotation-context-disclosure>summary{cursor:pointer;justify-content:space-between;align-items:center;gap:18px;padding:12px 14px;list-style:none;display:flex}.annotation-context-disclosure>summary::-webkit-details-marker{display:none}.annotation-context-disclosure>summary:before{content:"+";width:21px;height:21px;color:var(--text-2);background:var(--surface-2);border-radius:50%;flex:none;place-items:center;font-size:14px;font-weight:500;display:grid}.annotation-context-disclosure[open]>summary:before{content:"−"}.annotation-context-disclosure>summary>div{flex:1;min-width:0}.annotation-context-disclosure>summary strong,.annotation-context-disclosure>summary span{display:block}.annotation-context-disclosure>summary strong{color:var(--text-2);font-size:11px}.annotation-context-disclosure>summary div span{color:var(--text-3);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:9px;overflow:hidden}.annotation-context-disclosure>summary>span{color:var(--text-3);flex:none;font-size:9px}.disclosure-action .when-open,.annotation-context-disclosure[open] .disclosure-action .when-closed{display:none}.annotation-context-disclosure[open] .disclosure-action .when-open{display:block}.annotation-context{border-top:1px solid var(--line);gap:12px;display:grid}.annotation-context-disclosure .annotation-context{padding:13px 14px}.annotation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.annotation-grid.compact{grid-template-columns:minmax(130px,1.25fr) minmax(130px,1.25fr) repeat(2,minmax(105px,.8fr));align-items:start;gap:9px}.annotation-field{gap:6px;min-width:0;display:grid}.annotation-field>span{color:var(--text-2);font-size:10px;font-weight:740}.annotation-field>span small{color:var(--text-3);margin-left:4px;font-size:9px;font-weight:500}.annotation-field>span .auto-label{color:var(--text-2);background:var(--surface-2);vertical-align:1px;border-radius:999px;margin-left:3px;padding:1px 4px;font-size:7px;font-weight:750;display:inline-block}.annotation-field input,.annotation-field select,.annotation-field textarea,.transcript-segments.editable textarea{box-sizing:border-box;border:1px solid var(--line);width:100%;color:var(--text);background:var(--surface-1);font:inherit;border-radius:8px;outline:none}.annotation-field input,.annotation-field select{height:39px;min-height:39px;padding:8px 10px;font-size:12px;font-weight:520}.annotation-field input[type=number]{appearance:textfield}.annotation-field input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}.annotation-field input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}.annotation-field textarea,.transcript-segments.editable textarea{resize:vertical;padding:9px 10px;line-height:1.55}.annotation-field input:focus,.annotation-field select:focus,.annotation-field textarea:focus,.transcript-segments.editable textarea:focus{border-color:var(--line-strong);box-shadow:0 0 0 3px #00000059}.annotation-field small{color:var(--text-3);text-align:right;font-size:9px}.day-input{box-sizing:border-box;border:1px solid var(--line);width:100%;height:39px;color:var(--text-3);background:var(--surface-1);border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;padding:0 10px;font-size:11px;display:grid}.day-input:focus-within{border-color:var(--line-strong);box-shadow:0 0 0 3px #00000059}.day-input input{width:100%;height:37px;min-height:0;box-shadow:none;text-align:center;border:0;padding:0 6px}.day-input input:focus{box-shadow:none;border:0}.annotation-note{border-top:1px solid var(--line);padding-top:11px}.annotation-note textarea{background:var(--surface-1);min-height:58px}.transcript-review{border-top:1px solid var(--line);min-width:0;padding-top:18px}.annotation-stale{color:var(--accent);background:var(--accent-soft);border-radius:8px;margin:0 0 12px;padding:9px 11px;font-size:10px;line-height:1.5}.transcript-review-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:10px;display:flex}.transcript-review-heading strong{color:var(--text-2);font-size:13px;display:block}.transcript-review-heading p{color:var(--muted);margin:3px 0 0;font-size:10px}.confirm-transcript{color:var(--text-2);cursor:pointer;flex:none;align-items:center;gap:7px;font-size:10px;display:flex}.transcript-segments.editable li{grid-template-columns:72px minmax(0,1fr) 82px;align-items:start}.transcript-segments.editable textarea{min-width:0;font-size:12px}.transcript-segments.editable .corrected{color:var(--text-2);font-weight:740}.transcript-segments.editable li.is-removed{border-bottom-color:var(--accent)}.transcript-segment-removed{box-sizing:border-box;border:1px dashed var(--line);background:var(--surface-1);border-radius:8px;min-height:58px;padding:10px 12px}.transcript-segment-removed strong,.transcript-segment-removed span{text-align:left;display:block}.transcript-segment-removed strong{color:var(--text-2);font-size:var(--material-sm)}.transcript-segment-removed span{color:var(--text-3);font-size:var(--material-xs);margin-top:4px}.transcript-segment-actions{justify-items:end;gap:8px;display:grid}.transcript-segment-actions>span{min-height:14px}.transcript-segment-remove{color:var(--danger);font:inherit;font-size:var(--material-xs);cursor:pointer;background:0 0;border:0;padding:2px 0}.transcript-segment-remove:hover{text-decoration:underline}.transcript-segment-remove.restore{color:var(--text-2);font-weight:700}.annotation-actions{justify-content:flex-end;align-items:center;gap:20px;min-height:30px;display:flex}.annotation-actions.has-changes{z-index:2;border-top:1px solid var(--line);background:var(--surface-1);justify-content:space-between;margin:0 -4px -4px;padding:10px 8px;position:sticky;bottom:0;box-shadow:0 -8px 20px #00000059}.annotation-actions>div{min-width:0}.annotation-actions p{margin:0;font-size:10px;line-height:1.5}.unsaved-hint{color:var(--accent);font-weight:700}.annotation-current{color:var(--text-2);font-size:9px;font-weight:700}.mark-reviewed{min-height:30px;padding:6px 10px;font-size:9px}.save-success{color:var(--text-2)}.load-transcript{justify-self:start}@media (width<=860px){.review-filters{flex-direction:column;align-items:stretch}.review-filters label{width:100%}.review-filters>span{margin:2px 0 0}.transcript-item-body{padding-left:22px}.annotation-workbench,.usage-options{grid-template-columns:minmax(0,1fr)}.annotation-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.annotation-grid{grid-template-columns:minmax(0,1fr)}.transcript-review-heading,.annotation-actions{flex-direction:column;align-items:stretch}.annotation-actions .button{align-self:flex-end}}@container material-results (width<=720px){.review-filters{flex-wrap:wrap;align-items:stretch}.review-filters label{flex:180px;min-width:0}.review-filters>span{flex:1 0 100%;margin:2px 0 0}.transcript-item>summary{flex-wrap:wrap;gap:10px 16px}.transcript-item-meta{flex-wrap:wrap;width:100%;margin-left:35px}.transcript-item-body{padding-left:22px}.annotation-workbench{grid-template-columns:minmax(0,1fr)}.annotation-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.transcript-review-heading{flex-direction:column;align-items:stretch}.transcript-heading-actions{flex-wrap:wrap;justify-content:space-between;width:100%}}@container material-results (width<=500px){.transcript-results-heading{gap:10px;padding-inline:16px}.review-filters,.transcript-item>summary{padding-inline:16px}.transcript-item-meta{margin-left:0}.transcript-item-body{padding-inline:16px}.usage-options,.annotation-grid.compact,.annotation-grid{grid-template-columns:minmax(0,1fr)}.annotation-intro{flex-direction:column}.annotation-origin{justify-content:flex-start}.transcript-heading-actions{flex-direction:column;align-items:stretch}.confirm-transcript{min-height:34px}.transcript-discard{align-self:flex-start}.transcript-segments.editable li{grid-template-columns:62px minmax(0,1fr)}.transcript-segment-actions{grid-column:2;grid-auto-flow:column;justify-content:space-between;justify-items:start}.annotation-actions{flex-direction:column;align-items:stretch}.annotation-actions .button{align-self:stretch}}.transcript-results-heading h3,.annotation-intro strong{font-size:var(--material-lg)}.transcript-review-heading strong{font-size:var(--material-md)}.transcript-results-heading p,.transcript-item-main strong,.transcript-item-main p,.annotation-field input,.annotation-field select,.transcript-segments.editable textarea{font-size:var(--material-sm)}.review-filters select,.transcript-item-main>span,.transcript-item-meta,.annotation-intro p,.annotation-usage legend,.usage-options strong,.annotation-context-disclosure>summary strong,.annotation-field>span,.transcript-review-heading p,.confirm-transcript,.transcript-discarded-message strong,.annotation-actions p,.review-filters label>span,.review-filters>span,.annotation-summary span,.user-state,.transcript-status,.usage-options small,.annotation-origin span,.annotation-context-disclosure>summary div span,.annotation-context-disclosure>summary>span,.annotation-field small,.material-player p,.transcript-seek,.transcript-segments span,.annotation-current,.mark-reviewed,.transcript-discard{font-size:var(--material-xs)}.inventory-results{background:0 0;border:0;border-radius:0}.inventory-attention{color:var(--accent);margin:0 0 12px;font-size:12px}.result-ready{color:var(--text-2);background:var(--surface-2);border-radius:999px;flex:none;padding:5px 8px;font-size:10px;font-weight:750}.add-footage{border:1px dashed var(--line-strong);background:var(--surface-1);border-radius:14px;margin-top:18px;transition:border-color .15s,background .15s}.add-footage.is-over{border-color:var(--accent);background:var(--accent-soft)}.add-footage-body{align-items:center;gap:14px;padding:18px 20px;display:flex}.add-footage-body>svg{color:var(--accent);flex:none}.add-footage-body>div{flex:1;min-width:0}.add-footage-body strong{margin-bottom:4px;font-size:14px;display:block}.add-footage-body p{color:var(--muted);margin:0;font-size:12px;line-height:1.6}.add-footage-list{gap:6px;margin:0;padding:0 20px 16px;list-style:none;display:grid}.add-footage-list li{grid-template-columns:minmax(0,1fr) 160px;align-items:center;gap:12px;font-size:12px;display:grid}.add-footage-list li span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.add-footage-list li small{color:var(--text-3);text-align:right}.add-footage-list li.has-error small{color:var(--danger)}.add-footage-list progress{width:100%;accent-color:var(--accent)}@media (width<=640px){.add-footage-body{flex-wrap:wrap}}.inventory-counts{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.inventory-counts>div{border-right:1px solid var(--line);padding:16px 18px}.inventory-counts>div:last-child{border-right:0}.inventory-counts strong{color:var(--text-2);letter-spacing:-.04em;margin-bottom:3px;font-size:22px;display:block}.inventory-counts .attention strong{color:var(--accent)}.inventory-counts span{color:var(--muted);overflow-wrap:anywhere;font-size:12px;display:block}.inventory-results>.asset-list{margin-top:12px}.asset-list{border-top:1px solid var(--line);background:var(--surface-1)}.asset-list>summary{cursor:pointer;list-style:none}.asset-list>summary::-webkit-details-marker{display:none}.asset-list-heading{justify-content:space-between;align-items:center;gap:20px;padding:15px 22px;display:flex}.asset-list-heading:before{content:"›";color:var(--text-3);flex:none;font-size:18px;transition:transform .16s}.asset-list[open] .asset-list-heading:before{transform:rotate(90deg)}.asset-list-heading>div{flex:1;min-width:0}.asset-list-heading strong,.asset-list-heading span{display:block}.asset-list-heading strong{font-size:12px}.asset-list-heading span{color:var(--muted);margin-top:2px;font-size:10px}.asset-list-heading>span{flex:none;margin:0;font-weight:700}.asset-list-content{border-top:1px solid var(--line)}.asset-row{border-top:1px solid var(--line-strong);grid-template-columns:30px minmax(0,1fr) minmax(150px,auto);align-items:center;gap:12px;min-height:59px;margin:0 10px;padding:9px 12px;display:grid}.asset-kind{width:27px;height:27px;color:var(--text-2);background:var(--surface-2);border-radius:7px;place-items:center;font-size:10px;font-weight:800;display:grid}.asset-kind.audio{color:var(--accent);background:var(--accent-soft)}.asset-kind.image{color:var(--text-2);background:var(--info-soft)}.asset-name{min-width:0}.asset-name strong,.asset-name span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.asset-name strong{margin-bottom:3px;font-size:12px}.asset-name span{color:var(--text-3);font-size:10px}.asset-detail{color:var(--text-3);justify-content:flex-end;gap:9px;font-size:10px;display:flex}.asset-row.needs_attention{border:1px solid var(--accent);background:var(--accent-soft);border-radius:9px;margin-top:4px}.asset-row.needs_attention+.asset-row.needs_attention{margin-top:3px}.asset-row.needs_attention .asset-detail strong{color:var(--danger);font-size:11px}.asset-limit{color:var(--muted);text-align:right;margin:0;padding:12px 22px 16px;font-size:10px}.system-card{align-items:center;gap:25px;min-height:260px;padding:48px;display:flex}.system-card h1{letter-spacing:-.04em;margin-bottom:12px;font-size:31px}.system-card p:last-of-type{color:var(--muted);line-height:1.6}.system-card code{border:1px solid var(--line);background:var(--surface-2);border-radius:8px;padding:7px 10px;font-family:SFMono-Regular,Consolas,monospace;font-size:13px;display:inline-block}.spinner{border:3px solid var(--line);border-top-color:var(--green);border-radius:50%;flex:none;width:38px;height:38px;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important}.spinner,.small-spinner{animation:none}}.evidence-section>p{max-width:85ch;color:var(--muted);font-size:14px;line-height:1.65}.evidence-actions{flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0;display:flex}.evidence-item{border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:16px}.evidence-item summary{cursor:pointer;font-weight:600}.evidence-item p{overflow-wrap:anywhere;font-size:14px;line-height:1.65}.evidence-frames{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.evidence-frames figure{margin:0}.evidence-frames img{object-fit:contain;background:var(--surface-0);border-radius:8px;width:100%;height:160px}.evidence-frames figcaption{padding:6px 0;font-size:.85rem}.evidence-consent{background:var(--accent-soft);color:var(--accent);border-radius:8px;padding:16px}.evidence-consent button+button{margin-left:12px}.evidence-observation{border-top:1px solid var(--line);margin-top:20px;padding-top:12px}.evidence-section progress{width:100%}.evidence-samples{border:1px solid var(--line);background:var(--surface-1);border-radius:12px;margin-top:18px}.evidence-samples>summary{cursor:pointer;color:var(--text-2);padding:14px 16px;font-size:12px;font-weight:720}.evidence-samples>div{border-top:1px solid var(--line);padding:0 16px 16px}.finishing-music-credit{border:1px solid var(--line);border-radius:12px;margin:1rem 0;padding:1.25rem}.finishing-music-credit h3 small{font-size:.85em;font-weight:400}.finishing-music-credit a{color:var(--ok);text-decoration:underline}.finishing-music-credit p{overflow-wrap:anywhere}.production-brief,.production-output{border:1px solid var(--line,var(--line));border-radius:18px;gap:1rem;padding:1.5rem;display:grid}.production-brief>label:not(.consent-check){font-weight:700}.production-brief textarea,.production-brief select,.production-brief input[type=number]{width:100%;font:inherit;border:1px solid var(--line-strong);background:var(--surface-1);color:inherit;border-radius:8px;padding:.8rem}.production-output video{background:var(--surface-0);border-radius:12px;width:100%;max-height:70vh}.production-workspace .consent-check{font-size:14px;line-height:1.6}.production-status-line{border:1px solid var(--line);background:var(--surface-1);border-radius:12px;align-items:center;gap:10px;padding:8px 12px;display:flex}.production-status-line p{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;margin:0;font-size:13px;overflow:hidden}.production-status-line small{color:var(--muted);margin-left:8px}.production-status-line .button{padding:5px 10px;font-size:12px}.production-status-dot{background:var(--muted);border-radius:50%;flex:none;width:8px;height:8px}.production-status-line.has-problem{border-color:var(--accent)}.production-status-line.has-problem .production-status-dot{background:var(--accent)}.production-status-line.is-active .production-status-dot{background:var(--accent);animation:1.4s ease-in-out infinite rv-pulse}.production-status-panel{border:1px solid var(--line);background:var(--surface-1);border-radius:18px;gap:18px;padding:24px;display:grid}.production-status-panel.has-problem{border-color:var(--accent);background:var(--surface-1)}.production-status-heading,.production-status-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.production-status-heading h3{margin:5px 0 0;font-size:23px;line-height:1.4}.production-status-panel p{margin:0;line-height:1.7}.production-status-panel .production-status-note,.production-status-footer,.production-activity p{color:var(--muted);font-size:13px}.production-elapsed{color:var(--muted);font-variant-numeric:tabular-nums;font-size:13px}.production-stages{grid-template-columns:repeat(7,minmax(0,1fr));margin:0;padding:0;list-style:none;display:grid}.production-stages li{text-align:center;color:var(--muted);justify-items:center;gap:6px;font-size:12px;line-height:1.35;display:grid;position:relative}.production-stages li:before{content:"";background:var(--line);width:100%;height:2px;position:absolute;top:6px;right:50%}.production-stages li:first-child:before{display:none}.production-stages li.is-done:before,.production-stages li.is-current:before,.production-stages li.is-stopped:before{background:var(--green)}.production-stage-dot{border:2px solid var(--line);background:var(--surface-1);box-sizing:border-box;border-radius:50%;width:14px;height:14px;position:relative}.production-stages li.is-done .production-stage-dot{background:var(--green);border-color:var(--green)}.production-stages li.is-current .production-stage-dot{border-color:var(--green);box-shadow:0 0 0 4px var(--green-soft);animation:1.6s ease-in-out infinite production-stage-pulse}.production-stages li.is-stopped .production-stage-dot{border-color:var(--accent);background:var(--accent-soft)}.production-stages li.is-done,.production-stages li.is-current,.production-stages li.is-stopped{color:var(--ink,inherit)}.production-stages li.is-current{font-weight:650}.production-stage-short{display:none}@media (width<=520px){.production-stage-name{display:none}.production-stage-short{display:inline}}@keyframes production-stage-pulse{50%{box-shadow:0 0 0 7px var(--green-soft)}}@media (prefers-reduced-motion:reduce){.production-stages li.is-current .production-stage-dot{animation:none}}.production-job{background:var(--green-soft);border-radius:10px;gap:7px;padding:14px 16px;display:grid}.production-job progress{width:100%;accent-color:var(--green)}.production-job span{color:var(--text-2);font-size:13px}.production-blockers{gap:6px;margin:4px 0 12px;padding-left:22px;line-height:1.6;display:grid}.production-ai-message{border-left:4px solid var(--accent);background:var(--surface-1);border-radius:8px;gap:6px;margin:0;padding:14px 16px;display:grid}.production-ai-message strong,.production-detail strong{font-size:14px}.production-ai-message p,.production-ai-text{white-space:pre-wrap;overflow-wrap:anywhere}.production-detail{gap:6px;margin-top:16px;display:grid}.production-more strong{font-size:14px;font-weight:650}.production-detail p{color:var(--muted);font-size:14px}.production-detail-footer{border-top:1px solid var(--line);justify-items:start;gap:10px;padding-top:12px;display:grid}.production-detail-footer .production-diagnostics{border-top:0;width:100%;padding-top:0}.production-diagnostics .button{margin-bottom:8px}.production-checks{border:1px solid var(--accent);background:var(--accent-soft);border-radius:12px;padding:16px}.production-checks p{color:var(--text-2);margin-top:6px;font-size:14px}.production-checks ul{gap:8px;margin:12px 0 0;padding-left:22px;line-height:1.6;display:grid}.production-activity,.production-diagnostics{border-top:1px solid var(--line);min-width:0;padding-top:14px}.production-status-panel summary{cursor:pointer;font-size:14px;font-weight:650}.production-activity ol{gap:10px;margin:14px 0;padding:0;list-style:none;display:grid}.production-activity li{grid-template-columns:85px minmax(0,1fr);gap:12px;font-size:14px;display:grid}.production-activity time{color:var(--muted);font-variant-numeric:tabular-nums}.production-diagnostics p{color:var(--muted);margin:12px 0;font-size:13px}.production-diagnostics pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-2);border-radius:8px;max-height:320px;padding:14px;font-size:12px;overflow:auto}.production-connection-notice{border:1px solid var(--accent);background:var(--accent-soft);border-radius:12px;padding:18px 22px}.production-connection-notice p{line-height:1.6}.production-recovery-actions{flex-wrap:wrap;gap:10px;display:flex}.production-recovery-actions a.button{color:var(--green-dark);justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.production-more{border-top:1px solid var(--line);padding-top:12px}.production-more[open]{gap:16px;display:grid}.production-more>.button{justify-self:start;margin-top:12px}.production-more .production-checks,.production-more .production-activity{margin-top:16px}.production-editor>summary,.production-film-info>summary{cursor:pointer;font-size:14px;font-weight:650}.production-editor>summary{padding:16px 0}.production-film-info p{color:var(--muted);font-size:13px;line-height:1.7}.production-status-heading h3{margin:0}.home-main,.system-main,.workspace-main,.workspace-layout>*,.create-panel>*,.project-grid>*,.directory-card>*,.production-workspace>*,.production-editor,.production-brief>*,.production-output>*{min-width:0}.project-card,.sidebar-project strong,.production-workspace p,.production-workspace summary,.finishing-music-credit,.inline-message{overflow-wrap:anywhere}img,video,audio,select{max-width:100%}a.button{text-align:center;justify-content:center;align-items:center;text-decoration:none;display:inline-flex}.production-more summary,.production-editor>summary,.production-film-info>summary,.legacy-workflow-navigation>summary{align-content:center;min-height:44px}.production-output,.production-status-panel{scroll-margin-top:84px}@media (width<=1100px){.workspace-main{width:calc(100% - 48px)}.workspace-layout{grid-template-columns:200px minmax(0,1fr);gap:20px}.materials-panel{padding:28px}.create-panel{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:28px;padding:32px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-heading{flex-wrap:wrap;gap:16px}}@media (width<=900px){.text-button,.back-button{min-height:44px}.home-main,.system-main,.workspace-main{width:calc(100% - 40px)}.topbar{padding-inline:20px}.home-main{padding-top:40px}.workspace-layout{grid-template-columns:minmax(0,1fr);gap:20px}.create-panel{grid-template-columns:minmax(0,1fr)}.home-heading{gap:20px}.home-heading h1{font-size:44px}.home-heading .button{flex-shrink:0}.directory-title-row,.inventory-progress,.planning-start,.plan-review-callout,.analysis-heading,.analysis-card.scope-preview{flex-wrap:wrap}.evidence-frames{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.home-main,.system-main,.workspace-main{width:calc(100% - 24px)}.topbar{height:60px;padding-inline:16px}.connection-badge{min-height:32px;font-size:12px}.home-main{padding-block:32px 48px}.workspace-main{padding-block:12px 48px}.system-main{padding-block:32px}.home-heading{flex-direction:column;align-items:stretch;gap:20px;margin-bottom:24px}.home-heading h1{font-size:36px;line-height:1.15}.home-heading p:last-child{font-size:15px}.project-grid{grid-template-columns:minmax(0,1fr)}.project-card{min-height:180px;padding:20px}.create-panel,.system-card{gap:20px;padding:20px}.system-card{flex-direction:column;align-items:flex-start;min-height:0}.system-card h1{font-size:25px}.system-card code{overflow-wrap:anywhere;max-width:100%}.materials-panel{border-radius:16px;padding:20px 14px}.workspace-layout{gap:12px}.panel-heading{flex-direction:column;gap:12px;margin-bottom:20px}.panel-heading h1{font-size:29px;line-height:1.2}.section-title-row,.form-footer,.directory-title-row,.analysis-heading,.stage-next,.danger-actions,.preview-render-heading,.planning-start,.plan-review-callout{flex-direction:column;align-items:stretch;gap:12px}.button{white-space:normal;max-width:100%;min-height:44px;line-height:1.5}.text-button{min-height:44px}.form-actions,.directory-actions{flex-wrap:wrap;gap:8px}.form-actions .button,.production-recovery-actions .button{flex:120px}.stage-next .button,.inventory-heading>.button{width:100%;margin-top:0}input:not([type=checkbox]):not([type=radio]),textarea,select{min-width:0;font-size:16px}.directory-card{grid-template-columns:30px minmax(0,1fr);gap:12px;padding:14px}.directory-icon{width:28px;height:25px}.availability{align-self:flex-start}.selected-path{padding:10px}.selected-path span{white-space:normal;overflow-wrap:anywhere}.scope-note{padding:16px}.inventory-heading{grid-template-columns:minmax(0,1fr);gap:12px}.inventory-counts>div{padding:12px 8px}.inventory-counts strong{font-size:20px}.asset-list-heading{gap:10px;padding:14px}.asset-row{grid-template-columns:28px minmax(0,1fr);gap:8px;margin-inline:4px;padding:12px 8px}.asset-detail{flex-wrap:wrap;grid-column:2;justify-content:flex-start}.asset-list-heading>span{overflow-wrap:anywhere;max-width:50%}.danger-zone{padding:16px}.production-workspace{gap:16px}.production-status-panel,.production-brief,.production-output{border-radius:12px;gap:14px;padding:16px}.production-status-heading h3{font-size:20px}.production-brief textarea{min-height:140px}.production-workspace .consent-check{font-size:13px}.production-output video{object-fit:contain;width:100%;max-height:60svh;display:block}.production-activity li{grid-template-columns:64px minmax(0,1fr);gap:8px;font-size:13px}.production-diagnostics pre{max-width:100%;font-size:11px}.skill-grid,.planning-estimate,.blueprint-controls,.annotation-grid.compact{grid-template-columns:minmax(0,1fr)}.review-filters{flex-wrap:wrap}.review-filters label{min-width:0}.evidence-frames img{height:110px}.provider-notice{gap:12px;margin-inline:12px;padding:14px}}.font-style-picker{min-width:0}.font-style-picker select{width:100%}.font-style-picker p{color:var(--muted);margin:8px 0;font-size:13px;line-height:1.6}.font-style-picker img{border-radius:8px;width:min(100%,560px);height:auto;display:block}.production-workbench{border:1px solid var(--line);border-radius:18px;gap:18px;min-width:0;padding:24px;display:grid}.production-workbench fieldset,.production-music-picker{border:1px solid var(--line);border-radius:12px;gap:14px;min-width:0;padding:18px;display:grid}.production-workbench label{gap:8px;min-width:0;display:grid}.production-workbench input,.production-workbench select,.production-workbench textarea,.production-music-picker select{font:inherit;max-width:100%}.production-workbench select,.production-music-picker select{width:100%;padding:10px}.production-music-picker input[type=file]{height:auto;padding:10px}.workbench-tabs{flex-wrap:wrap;gap:8px;display:flex}.production-workbench pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto}.production-workbench .consent-check{align-items:start;gap:8px;display:flex}@media (width<=640px){.production-workbench{padding:14px}}.prompt-history{gap:10px;min-width:0;display:grid}.prompt-history .workbench-tabs{align-items:center}.prompt-history ol{gap:12px;max-height:420px;padding:0;list-style:none;display:grid;overflow:auto}.prompt-history li{background:var(--surface-1);border:1px solid var(--line);border-radius:10px;padding:14px}.prompt-history li>div{gap:4px;display:grid}.prompt-history li span{color:var(--muted);font-size:12px}.prompt-history li p{white-space:pre-wrap;overflow-wrap:anywhere}.workbench-preview-canvas{background:var(--surface-0);width:100%;position:relative;overflow:hidden}.workbench-preview-canvas.is-movable{cursor:move;touch-action:none}.workbench-preview-canvas img,.workbench-preview-canvas video{object-fit:contain;width:100%;height:100%;display:block}.workbench-preview-canvas img{-webkit-user-select:none;user-select:none}.workbench-frame-placeholder{color:#fff;place-content:center;height:100%;padding:24px 12px;display:grid}[hidden]{display:none!important}body{background:var(--bg)}button,input,textarea,select{font:inherit}button,a,summary,input,select,textarea{-webkit-tap-highlight-color:transparent}button svg,a svg{flex-shrink:0}button:disabled{cursor:not-allowed}.topbar{background:var(--surface-1);border-bottom:1px solid var(--line);-webkit-backdrop-filter:none;backdrop-filter:none;height:72px;padding-inline:36px}.brand{letter-spacing:-.8px;align-items:center;gap:10px;font-size:24px;font-weight:750;display:inline-flex}.brand-mark{background:var(--studio-dark);color:var(--text);border-radius:9px;place-items:center;width:34px;height:34px;display:grid;transform:rotate(-6deg)}.brand-studio{letter-spacing:2px;color:var(--text-3);border-left:1px solid var(--line);margin-left:4px;padding-left:12px;font-size:9px;font-weight:600}.connection-badge{border:1px solid var(--line);background:var(--surface-1);color:var(--text-2);box-shadow:none;font-size:12px;font-weight:500}.connection-badge.is-ready{border-color:var(--line);color:var(--text-2);background:var(--surface-1)}.home-heading{align-items:center;margin-bottom:36px}.home-heading h1{letter-spacing:-1.8px;font-size:clamp(34px,4vw,48px);font-weight:700;line-height:1.25}.home-heading p:last-child{max-width:540px;font-size:15px}.eyebrow{color:var(--text-3);letter-spacing:1.8px;font-size:10px;font-weight:650}.button{border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 16px;font-size:13px;font-weight:600;line-height:1.5;text-decoration:none;display:inline-flex}.button.primary{color:var(--text);background:var(--green);box-shadow:0 3px 6px #00000059}.button.secondary:hover:not(:disabled){border-color:var(--line-strong);background:var(--surface-1)}.button.ghost:hover:not(:disabled){background:var(--surface-2)}.button:disabled{opacity:.42;box-shadow:none}input,textarea,select{border:1px solid var(--line);color:var(--ink);background:var(--surface-1);border-radius:8px;font-size:14px}input{height:43px}select{padding:10px 12px}input:focus,textarea:focus,select:focus{background:var(--surface-1);border-color:var(--danger);outline:none;box-shadow:0 0 0 3px #00000059}input[type=checkbox],input[type=radio],input[type=range],progress{accent-color:var(--green)}input[type=range]{height:28px;min-height:28px;box-shadow:none;background:0 0;border:0;padding:0}input[type=file]::file-selector-button{background:var(--surface-2);color:var(--text-2);font:inherit;border:0;border-radius:5px;margin-right:10px;padding:6px 10px}label{color:var(--text-2);font-size:12px;font-weight:600}textarea{line-height:1.75}summary{color:var(--text-2);cursor:pointer;padding:10px 0;font-size:13px}summary:hover{color:var(--green)}legend{color:var(--text-2);padding-inline:8px;font-size:12px;font-weight:600}.empty-projects,.create-panel,.system-card{background:var(--surface-1);border-radius:16px;box-shadow:0 8px 30px #00000059}.project-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;display:grid}.project-card{background:var(--surface-1);border:1px solid var(--line);border-radius:12px;flex-direction:column;align-items:start;gap:8px;min-height:270px;padding:0 22px 20px;display:flex;position:relative;overflow:hidden;box-shadow:0 3px 8px #00000059}.project-card:hover{border-color:var(--line);transform:translateY(-3px);box-shadow:0 8px 24px #00000059}.project-cover{width:calc(100% + 44px);height:154px;color:var(--text-3);background:var(--surface-0);flex-direction:column;justify-content:center;align-items:center;gap:12px;margin:0 -22px 12px;display:flex}.project-card:nth-child(3n+2) .project-cover,.project-card:nth-child(3n+3) .project-cover{background-color:var(--surface-0);color:var(--text-3)}.project-cover>span{letter-spacing:3px;font-size:8px}.project-card>strong{letter-spacing:-.5px;font-size:19px;font-weight:650}.project-next{color:var(--text-3);font-size:12px}.project-time{color:var(--text-3);margin-top:10px;font-size:11px;position:static}.workspace-main{width:min(1800px,100% - 64px);padding-top:18px}.workspace-layout{grid-template-columns:210px minmax(0,1fr);align-items:start;gap:28px}.materials-panel{background:var(--surface-1);border:1px solid var(--line);border-radius:14px;padding:30px;box-shadow:0 5px 20px #00000059}.materials-panel:has(.production-workspace){box-shadow:none;background:0 0;border:0;padding:0}.panel-heading h1{letter-spacing:-1px;font-size:31px;font-weight:650}.panel-heading p:not(.eyebrow){color:var(--muted);max-width:630px;font-size:13px}.directory-card,.asset-list{border-color:var(--line);background:var(--surface-1);border-radius:10px}.directory-card{background:var(--surface-1)}.directory-icon{border-color:var(--line-strong)}.selected-path{background:var(--surface-2);border-color:var(--line)}.scope-note{background:var(--surface-2);color:var(--text-2);border-color:var(--line)}.save-state{color:var(--text-3);font-size:11px}.stage-next{background:var(--surface-1);border-color:var(--line)}.production-workspace{gap:20px}.studio-view-nav{border-bottom:1px solid var(--line);scrollbar-width:none;gap:4px;margin-bottom:2px;display:flex;overflow-x:auto}.studio-view-nav button{color:var(--text-3);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;justify-content:center;align-items:center;gap:8px;padding:14px 18px;font-size:13px;display:inline-flex}.studio-view-nav button:hover{color:var(--text-2)}.studio-view-nav button[aria-pressed=true]{color:var(--danger);border-bottom-color:var(--danger);font-weight:650}.production-status-panel{border:1px solid var(--line);background:var(--surface-1);box-shadow:none;border-radius:10px;gap:8px;padding:16px 20px}.production-status-heading h3{letter-spacing:0;align-items:center;gap:9px;margin:0;font-size:14px;display:flex}.production-status-heading h3:before{content:"";background:var(--surface-0);border-radius:50%;flex-shrink:0;width:7px;height:7px}.production-status-panel>p{color:var(--muted);margin:2px 0;font-size:12px}.production-status-panel.has-problem{background:var(--surface-1);border-color:var(--accent)}.production-status-panel.has-problem h3:before{background:var(--danger)}.production-recovery-actions:empty{display:none}.production-status-panel .production-more>summary{padding:0;font-size:11px}.production-status-panel .production-more{margin-top:3px}.studio-screen{background:var(--surface-1);border:1px solid var(--line);border-radius:12px;gap:18px;padding:24px}.screen-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.screen-heading h3{letter-spacing:-.5px;margin:4px 0 0;font-size:20px;font-weight:650}.studio-section-number{color:var(--text-3);letter-spacing:1.5px;font-size:9px;font-weight:600}.studio-version{font-variant-numeric:tabular-nums;color:var(--text-3);border:1px solid var(--line);border-radius:6px;padding:5px 10px;font-size:11px}.production-output video{background:var(--surface-0);object-fit:contain;border:0;border-radius:8px;width:100%;max-height:65vh;display:block}.screen-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.screen-actions>span{color:var(--text-3);align-items:center;gap:7px;margin-right:auto;font-size:11px;display:flex}.production-film-info{border-top:1px solid var(--line);padding-top:6px}.production-film-info p{color:var(--muted);font-size:12px}.production-editor{border:1px solid var(--line);background:var(--surface-1);border-radius:12px;padding:6px 24px 24px}.production-editor>summary{color:var(--text-2);padding-block:18px;font-size:15px;font-weight:650}.production-brief{background:var(--surface-1);border:0;gap:14px;padding:10px 0 0}.production-brief>p{font-size:12px}.production-workbench{background:var(--surface-1);border-color:var(--line);border-radius:12px;gap:20px;padding:24px}.production-workbench>fieldset{border:0;gap:20px;margin:0;padding:0}.production-workbench>fieldset>legend{display:none}.production-workbench fieldset legend{color:var(--text-3);font-size:11px;font-weight:500}.workbench-tabs{gap:8px}.workbench-tabs[aria-label=編輯內容]{background:var(--surface-2);border-radius:9px;gap:5px;width:fit-content;max-width:100%;padding:5px}.workbench-tabs[aria-label=編輯內容] .button{color:var(--text-3);min-height:35px;box-shadow:none;background:0 0;padding:7px 12px;font-size:12px}.workbench-tabs[aria-label=編輯內容] .button[aria-pressed=true]{background:var(--surface-1);color:var(--text-2);box-shadow:0 1px 4px #00000059}.workbench-preview-canvas{background:var(--surface-0);border-radius:5px}.production-workbench>fieldset>details{border-top:1px solid var(--line);padding-top:8px}.production-music-picker{background:var(--surface-1);border-color:var(--line);border-radius:9px}.prompt-history{gap:4px}.prompt-history .workbench-tabs>span,.prompt-draft-hint{color:var(--text-3);font-size:11px}.prompt-history .button{min-height:34px;font-size:11px}.prompt-history li{background:var(--surface-1);border-color:var(--line);border-radius:8px;padding:14px 16px}.prompt-history li span{font-size:10px}.consent-check{color:var(--text-3);font-size:11px;font-weight:400;line-height:1.7}.inline-message{border-radius:8px;font-size:12px}.production-workspace .consent-check{font-size:12px}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}@media (width<=1180px){.workspace-main{width:calc(100% - 40px)}.workspace-layout{grid-template-columns:175px minmax(0,1fr);gap:20px}.production-workbench{padding:20px}}@media (width<=980px){.workspace-layout{grid-template-columns:minmax(0,1fr)}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.workbench-tabs[aria-label=編輯內容]{width:100%}.workbench-tabs[aria-label=編輯內容] .button{flex:60px;gap:5px;padding-inline:7px;font-size:11px}.workbench-tabs[aria-label=編輯內容] .button svg{width:14px}}@media (width<=600px){.topbar{height:60px;padding-inline:16px}.brand{gap:8px;font-size:22px}.brand-studio{display:none}.brand-mark{width:30px;height:30px}.home-main,.workspace-main{width:calc(100% - 28px)}.home-main{padding-block:32px}.home-heading{align-items:stretch}.home-heading h1{font-size:34px}.home-heading p:last-child{font-size:13px}.project-grid{grid-template-columns:minmax(0,1fr);gap:16px}.project-cover{height:140px}.workspace-main{padding-top:10px}.workspace-layout{gap:20px}.materials-panel{padding:20px 16px}.studio-view-nav{gap:0}.studio-view-nav button{flex:1 0 auto;gap:5px;padding:12px 9px;font-size:11px}.studio-view-nav button svg{width:15px}.production-status-panel{padding:14px 16px}.production-workspace{gap:16px}.studio-screen,.production-workbench{border-radius:10px;padding:16px}.screen-heading h3{font-size:18px}.studio-version{padding:4px 7px;font-size:10px}.screen-actions{gap:8px}.screen-actions>span{flex-basis:100%}.screen-actions .button{flex:1;font-size:12px}.production-editor{padding:0 16px 16px}.production-workbench>fieldset{gap:16px}.production-workspace .consent-check{font-size:11px}}.project-card>strong{margin-bottom:0}.production-status-panel:not(.has-problem):not(.is-active){grid-template-columns:minmax(0,1fr) auto;gap:4px 24px}.production-status-panel:not(.has-problem):not(.is-active)>.production-status-heading,.production-status-panel:not(.has-problem):not(.is-active)>p{grid-column:1}.production-status-panel:not(.has-problem):not(.is-active)>.production-more:not([open]){border:0;grid-area:1/2/3;align-self:center;margin:0;padding:0}.production-status-panel:not(.has-problem):not(.is-active)>.production-more[open]{grid-column:1/-1}.workbench-content{gap:20px;min-width:0;display:grid}.workbench-content>fieldset{border:0;gap:20px;margin:0;padding:0}.workbench-content>fieldset>legend{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}@media (width<=600px){.production-status-panel:not(.has-problem):not(.is-active){gap:6px}.production-status-panel:not(.has-problem):not(.is-active)>.production-more:not([open]){grid-area:auto/1/auto/-1}.workbench-content,.workbench-content>fieldset{gap:16px}}.studio-heading p:last-child,.workbench-heading p,.prompt-history .workbench-tabs>span,.prompt-draft-hint,.production-workspace .consent-check,.studio-version,.prompt-history li span,.screen-actions>span{color:var(--text-3)}.workbench-heading p,.prompt-draft-hint{font-size:12px}@media (width<=600px){.button,.workbench-tabs[aria-label=編輯內容] .button{min-height:44px}.production-workbench input:not([type=range]):not([type=checkbox]):not([type=radio]),.production-workbench textarea,.production-workbench select,.production-brief input:not([type=checkbox]):not([type=radio]),.production-brief textarea,.production-brief select{font-size:16px}.production-workspace .consent-check{font-size:12px}.workbench-tabs[aria-label=編輯內容] .button{white-space:nowrap;flex-direction:column;gap:3px}.workbench-tabs[aria-label=編輯內容] .button svg{width:16px}}.template-library{min-width:0;padding-block:16px}.template-library-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;display:flex}.template-library-heading h3{letter-spacing:-.8px;margin:6px 0 8px;font-size:25px;font-weight:650}.template-library-heading p{color:var(--muted);margin:0;font-size:12px}.template-library-heading>svg{color:var(--accent);flex-shrink:0}.template-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.template-toolbar>input{max-width:260px;min-height:40px;font-size:12px}.template-categories{flex-wrap:wrap;gap:5px;display:flex}.template-categories button{min-height:40px;color:var(--text-3);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;padding:8px 12px;font-size:12px}.template-categories button[aria-pressed=true]{color:var(--danger);background:var(--accent-soft);border-color:var(--accent);font-weight:600}.template-categories button:hover{background:var(--surface-2)}.template-result-count{color:var(--text-3);margin:14px 0;font-size:11px}.template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.template-card{border:1px solid var(--line);background:var(--surface-1);border-radius:11px;min-width:0;transition:box-shadow .18s,border-color .18s;overflow:hidden}.template-card:hover{border-color:var(--line);box-shadow:0 6px 20px #00000059}.template-card.is-selected{border-color:var(--accent);box-shadow:0 0 0 1px #00000059}.template-cover{background:var(--surface-2);cursor:pointer;aspect-ratio:16/9;border:0;width:100%;padding:0;display:block;position:relative}.template-cover img{object-fit:cover;width:100%;height:100%;display:block}.template-play{color:#fff;background:var(--info);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:5px;align-items:center;gap:5px;padding:4px 7px;font-size:10px;display:inline-flex;position:absolute;bottom:9px;right:9px}.template-selected{color:var(--text);background:var(--danger);border-radius:5px;align-items:center;gap:4px;padding:4px 7px;font-size:10px;display:inline-flex;position:absolute;top:9px;right:9px}.template-card-body{padding:16px}.template-category{color:var(--text-3);font-size:10px}.template-card h4{letter-spacing:-.3px;margin:4px 0 6px;font-size:16px;font-weight:650}.template-card-body>p{color:var(--text-3);min-height:38px;margin-bottom:12px;font-size:12px}.template-tags{flex-wrap:wrap;gap:5px;display:flex}.template-tags span{background:var(--surface-2);color:var(--text-3);border-radius:4px;padding:3px 6px;font-size:10px}.template-card-actions{justify-content:space-between;align-items:center;gap:8px;margin-top:16px;display:flex}.template-card-actions .button{min-height:34px;padding:7px 12px;font-size:11px}.template-card-actions .button:disabled{opacity:.7}.template-library>.prompt-draft-hint{margin-top:18px}.template-customize{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-block:5px}.template-customize[open]{gap:12px;padding-bottom:16px;display:grid}.template-empty{text-align:center;border:1px dashed var(--line);color:var(--text-3);border-radius:12px;padding:40px 20px}.template-empty p{margin-block:10px 16px;font-size:13px}.template-dialog{border:1px solid var(--line);width:min(900px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--ink);background:var(--surface-1);border-radius:16px;margin:auto;padding:24px;position:fixed;inset:0;overflow-y:auto;box-shadow:0 24px 100px #00000059}.template-dialog::backdrop{background:var(--info);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.template-dialog-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;display:flex}.template-dialog-heading h3{letter-spacing:-.5px;margin:4px 0 0;font-size:25px}.template-dialog video{aspect-ratio:16/9;background:var(--surface-0);object-fit:contain;border-radius:9px;width:100%;max-height:50dvh;display:block}.template-dialog-copy{justify-content:space-between;align-items:end;gap:28px;margin-top:20px;display:flex}.template-dialog-copy h4{margin:0 0 8px;font-size:14px}.template-dialog-copy p{color:var(--text-3);margin:8px 0;font-size:12px}.template-dialog-copy>.button{flex-shrink:0}.template-sample-chapters{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}.template-sample-chapters span{border-top:2px solid var(--line);color:var(--text-2);padding-top:8px;font-size:11px}@media (width<=1180px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.template-library-heading h3{font-size:21px}.template-library-heading>svg{display:none}.template-toolbar{gap:10px}.template-toolbar>input{width:100%;max-width:none;font-size:16px}.template-categories{gap:3px}.template-categories button{min-height:44px;padding-inline:9px;font-size:11px}.template-grid{grid-template-columns:minmax(0,1fr);gap:16px}.template-card-actions .button{min-height:44px;font-size:12px}.template-dialog{border-radius:12px;padding:16px}.template-dialog-heading h3{font-size:21px}.template-dialog-copy{flex-direction:column;align-items:stretch;gap:12px}.template-dialog-copy>.button{width:100%}.template-sample-chapters{grid-template-columns:repeat(2,minmax(0,1fr))}}.skill-library{margin-top:40px}.skill-library .section-title-row{align-items:flex-start}.skill-library .section-title-row>div>p{max-width:620px;line-height:1.6}.skill-grid{grid-template-columns:repeat(3,1fr);gap:15px;display:grid}.skill-card{border:1px solid var(--line);background:var(--paper);border-radius:14px;flex-direction:column;gap:8px;padding:18px;display:flex}.skill-card h3{letter-spacing:-.02em;margin:0;font-size:18px}.skill-card p{color:var(--muted);margin:0;font-size:13px;line-height:1.55}.skill-card.is-invalid{border-color:var(--danger);background:var(--surface-2)}.skill-actions,.skill-confirm{flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;padding-top:6px;display:flex}.skill-confirm p{color:var(--ink);flex-basis:100%}.button.danger{color:#fff;background:var(--error)}@media (width<=900px){.skill-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=640px){.skill-grid{grid-template-columns:1fr}.skill-library .section-title-row{flex-direction:column;align-items:stretch}}.skill-picker{margin:4px 0 18px}.skill-picker-heading h3{letter-spacing:-.02em;margin:4px 0 6px;font-size:20px}.skill-picker-heading p{color:var(--muted);margin:0 0 12px;font-size:13px;line-height:1.55}.skill-picker .skill-card.is-selected{border-color:var(--green);box-shadow:0 0 0 2px var(--green-soft)}.skill-picker-active{margin:0 0 14px;font-size:14px}.skill-picker-mine{margin-bottom:18px}.skill-picker-mine h4{margin:0 0 10px;font-size:14px}.skill-picker-basic{color:var(--muted);margin:14px 0 0;font-size:13px}.link-button{color:var(--green);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.link-button:disabled{opacity:.5;cursor:default}.provider-badge{position:relative}.provider-badge>summary{cursor:pointer;list-style:none}.provider-badge>summary::-webkit-details-marker{display:none}.provider-quota-pill{background:var(--ok-soft);font-variant-numeric:tabular-nums;border-radius:999px;padding:1px 7px;font-style:normal;font-weight:600}.connection-badge.is-low{border-color:var(--accent);color:var(--accent);background:var(--surface-1)}.connection-badge.is-low .provider-quota-pill{background:var(--danger-soft)}.provider-popover{z-index:40;border:1px solid var(--line);background:var(--surface-1);border-radius:12px;gap:10px;width:min(320px,100vw - 32px);padding:16px;display:grid;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 12px 32px #00000059}.provider-popover dl{gap:10px;margin:0;display:grid}.provider-popover dl>div{grid-template-columns:72px minmax(0,1fr);gap:10px;font-size:13px;display:grid}.provider-popover dt{color:var(--muted)}.provider-popover dd{overflow-wrap:anywhere;gap:4px;margin:0;display:grid}.provider-model-setting{gap:6px;font-size:13px;display:grid}.provider-model-setting label{color:var(--muted)}.provider-model-setting select{border:1px solid var(--line);background:var(--surface-1);width:100%;min-height:36px;color:inherit;font:inherit;border-radius:8px;padding:6px 8px}.provider-popover meter{width:100%;height:8px}.provider-popover p{color:var(--muted);margin:0;font-size:12px;line-height:1.6}@media (width<=520px){.provider-quota-pill{display:none}}.workbench-provider-switch{border-left:3px solid var(--accent);background:var(--accent-soft);color:var(--accent);border-radius:6px;margin:0;padding:10px 12px;font-size:14px;line-height:1.6}.workbench-versions-note{color:var(--muted);margin:8px 0;font-size:13px}.workbench-versions{gap:6px;max-height:320px;margin:8px 0 12px;padding:0;list-style:none;display:grid;overflow:auto}.workbench-versions li label{border:1px solid var(--line);cursor:pointer;border-radius:8px;align-items:flex-start;gap:10px;padding:8px 10px;display:flex}.workbench-versions li.is-current label{background:var(--green-soft);cursor:default}.workbench-versions li span{gap:2px;min-width:0;display:grid}.workbench-versions li strong{font-size:14px;font-weight:600}.workbench-versions li em{color:var(--green);font-size:12px;font-style:normal}.workbench-versions li small{color:var(--muted);overflow-wrap:anywhere;font-size:12px}.workbench-versions li.is-ai_partial strong{color:var(--accent)}.film-version-bar{border:1px solid var(--line);background:var(--surface-1);border-radius:10px;flex-wrap:wrap;align-items:center;gap:12px;padding:8px 12px;font-size:13px;display:flex}.film-version-bar.is-draft{border-color:var(--accent)}.film-version-now strong{margin-left:2px}.film-version-bar.is-draft .film-version-now strong{color:var(--accent)}.film-version-now small{color:var(--muted);margin-left:8px}.film-version-why{min-width:12em;color:var(--muted);flex:1}.film-version-bar .button{padding:5px 10px;font-size:12px}.power-notice,.production-slept{border-left:3px solid var(--accent);background:var(--accent-soft);color:var(--accent);border-radius:6px;margin:0;padding:10px 12px;font-size:13px;line-height:1.6}.power-notice{font-weight:400}.power-notice strong{font-weight:650}.review-notes{gap:14px;min-width:0;display:grid}.review-notes-heading{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.review-notes-heading h4{margin:0;font-size:15px;font-weight:600}.review-player{background:var(--surface-0);border-radius:10px;gap:10px;padding:12px;scroll-margin-top:80px;display:grid}.review-player video{background:var(--surface-0);border-radius:6px;width:100%;max-height:56vh;display:block}.review-player .prompt-draft-hint{color:var(--text-3)}.review-frame{color:var(--text-3);gap:8px;display:grid}.review-frame label{font-variant-numeric:tabular-nums;font-size:12px}.review-mark-bar{flex-wrap:wrap;align-items:center;gap:10px 14px;display:flex}.review-mark-bar .button{font-variant-numeric:tabular-nums}.review-step{gap:6px;display:inline-flex}.review-note-form{background:var(--surface-1);border:1px solid var(--accent)!important}.review-note-form legend{font-variant-numeric:tabular-nums;padding:0 6px;font-weight:600}.review-chips{flex-wrap:wrap;gap:6px;display:flex}.review-chip{font:inherit;border:1px solid var(--line);background:var(--surface-1);color:var(--ink);cursor:pointer;border-radius:999px;min-height:34px;padding:6px 12px;font-size:13px}.review-chip[aria-checked=true]{border-color:var(--green);background:var(--green-soft);color:var(--green-dark);font-weight:600}.review-chip.is-remove[aria-checked=true]{border-color:var(--danger);background:var(--danger-soft);color:var(--danger)}.review-chip.is-keep[aria-checked=true]{border-color:var(--ok);background:var(--ok-soft);color:var(--ok)}.review-target{color:var(--muted);margin:0;font-size:13px}.review-range summary{color:var(--muted);cursor:pointer;font-size:13px}.review-range p{color:var(--muted);font-size:12px}.review-range input{width:9em}.review-range .workbench-tabs{align-items:end}.review-note-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.review-note-list li{border:1px solid var(--line);background:var(--surface-1);overflow-wrap:anywhere;border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;padding:12px 14px;display:grid}.review-note-list strong{flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;font-weight:600;display:flex}.review-note-list p{white-space:pre-wrap;margin:6px 0 0;font-size:13px}.review-note-list small{color:var(--muted);margin-top:6px;font-size:12px;display:block}.review-note-time{font:inherit;font-variant-numeric:tabular-nums;color:var(--green);cursor:pointer;text-align:left;background:0 0;border:0;min-width:3.4em;padding:2px 0;font-size:13px;font-weight:600}.review-note-time:disabled{color:var(--muted);cursor:default}.review-kind{background:var(--green-soft);color:var(--green-dark);border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600}.review-kind.is-remove{background:var(--danger-soft);color:var(--danger)}.review-kind.is-keep{background:var(--ok-soft);color:var(--ok)}.review-note-actions{gap:4px;display:flex}.review-stale{border:1px dashed var(--line);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;font-size:13px;display:flex}.review-stale p{color:var(--muted);margin:0}.review-prompt summary,.review-sent summary,.workbench-versions-panel summary,.workbench-export summary,.workbench-components summary{cursor:pointer;font-size:13px;font-weight:600}.review-prompt pre,.review-sent pre{font:inherit;background:var(--surface-1);border:1px solid var(--line);border-radius:8px;padding:12px;font-size:13px;line-height:1.7}.review-sent ol{font-size:13px;line-height:1.7}.review-sent,.workbench-versions-panel,.workbench-export,.workbench-components{border-top:1px solid var(--line);gap:10px;padding-top:12px;display:grid}.workbench-export p,.workbench-components p{color:var(--muted);margin:0;font-size:13px}.workbench-components ol{gap:8px;margin:0;padding:0;list-style:none;display:grid}.workbench-components li{grid-template-columns:3.5em minmax(0,1.2fr) minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.workbench-components .component-time{font-family:var(--mono);color:var(--muted);font-size:12px}@media (width<=640px){.workbench-components li{grid-template-columns:3.5em minmax(0,1fr) auto}.workbench-components li input:nth-of-type(2){grid-column:2/3}}.resolve-result{background:var(--paper);border-radius:10px;gap:8px;padding:12px 14px;font-size:13px;display:grid}.resolve-result p{overflow-wrap:anywhere}.resolve-result ol,.resolve-result ul{gap:4px;margin:0;padding-left:20px;line-height:1.6;display:grid}.resolve-titles{border-top:1px solid var(--line);gap:8px;padding-top:8px;display:grid}.resolve-titles .button{justify-self:start}.version-preview video{background:var(--surface-0);border-radius:10px;width:100%;max-height:60vh;display:block}@media (width<=640px){.review-player{padding:8px}.review-player video{max-height:34vh}.review-note-list li{grid-template-columns:auto minmax(0,1fr)}.review-note-actions{grid-column:1/-1;justify-content:flex-end}}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}::selection{background:var(--accent-soft)}h1,h2,h3,h4{color:var(--text);letter-spacing:-.01em}p{color:inherit}.topbar{background:var(--surface-0);border-bottom:1px solid var(--line);height:52px;padding-inline:20px}.brand{color:var(--text);gap:8px;font-size:18px}.brand-mark{border-radius:22%;width:26px;height:26px;overflow:hidden;transform:none}.brand-mark svg{display:block}.brand-studio{display:none}.connection-badge,.connection-badge.is-ready{border-color:var(--line);color:var(--text-2);background:0 0}.button{border-radius:8px;min-height:36px;padding:7px 14px;font-weight:500}.button.primary{color:var(--accent-ink);background:var(--accent);border-color:var(--accent);box-shadow:none}.button.primary:hover:not(:disabled){background:var(--accent-hover)}.button.secondary{color:var(--text);background:var(--surface-2);border-color:var(--line-strong);box-shadow:none}.button.secondary:hover:not(:disabled){background:var(--surface-3);border-color:var(--line-strong)}.button.ghost{color:var(--text-2);background:0 0;border-color:#0000}.button.ghost:hover:not(:disabled){color:var(--text);background:var(--surface-2)}input,textarea,select{background:var(--surface-2);border-color:var(--line-strong);color:var(--text)}input:focus,textarea:focus,select:focus{background:var(--surface-2);border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}input::placeholder,textarea::placeholder{color:var(--text-3)}kbd{border:1px solid var(--line-strong);background:var(--surface-2);min-width:20px;color:var(--text-2);font:500 11px/18px var(--mono);text-align:center;border-bottom-width:2px;border-radius:5px;padding:0 5px;display:inline-block}video{background:#000}.workspace-main{width:100%;max-width:none;margin:0;padding:0 0 64px}.workspace-bar{z-index:15;border-bottom:1px solid var(--line);background:var(--bg);align-items:center;gap:12px;height:48px;padding:0 20px;display:flex;position:sticky;top:52px}.workspace-back{width:30px;height:30px;color:var(--text-2);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;display:grid}.workspace-back:hover{color:var(--text);background:var(--surface-2)}.workspace-name{text-overflow:ellipsis;white-space:nowrap;max-width:260px;font-size:14px;font-weight:500;overflow:hidden}.workspace-steps{background:var(--surface-1);border-radius:9px;gap:2px;margin:0 0 0 8px;padding:3px;list-style:none;display:flex}.workspace-steps button,.workspace-tool{height:28px;color:var(--text-2);cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:6px;padding:0 14px;font-size:13px;display:inline-flex}.workspace-steps button:hover:not(:disabled):not([aria-disabled=true]),.workspace-tool:hover:not(:disabled):not([aria-disabled=true]){color:var(--text)}.workspace-steps button.is-active{color:var(--text);background:var(--surface-3)}.workspace-steps button svg{color:var(--ok)}.workspace-steps button:disabled,.workspace-tool:disabled,.workspace-steps button[aria-disabled=true],.workspace-tool[aria-disabled=true]{opacity:.4;cursor:help}.workspace-tool{margin-left:auto}.project-form label small{color:var(--muted);margin-left:8px;font-size:12px;font-weight:400}.project-form h2{margin:0 0 4px;font-size:18px}.workspace-tool.is-active{color:var(--text);background:var(--surface-2)}.workspace-layout{width:min(1440px,100%);margin:0 auto;padding:20px;display:block}.materials-panel{box-shadow:none;background:0 0;border:0;padding:0}.panel-heading{margin-bottom:20px}.panel-heading .eyebrow,.panel-heading p{display:none}.production-workspace{gap:16px;display:grid}.studio-view-nav{background:var(--surface-1);border:0;border-radius:9px;justify-self:start;gap:2px;padding:3px;display:inline-flex}.studio-view-nav button{height:30px;color:var(--text-2);cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:6px;padding:0 14px;font-size:13px;display:inline-flex}.studio-view-nav button[aria-pressed=true]{color:var(--text);background:var(--surface-3);box-shadow:none}.studio-view-nav button[aria-pressed=true]:after{display:none}.studio-screen,.production-workbench,.production-editor,.production-output{border:1px solid var(--line);background:var(--surface-1);box-shadow:none;border-radius:12px}.screen-heading h3{font-size:15px;font-weight:500}.studio-version{border-color:var(--line);color:var(--text-2);font-family:var(--mono);background:0 0;font-size:12px}.review-notes{grid-template-columns:minmax(0,1fr) 340px;align-items:start;column-gap:20px;display:grid}.review-notes>*{grid-column:1}.review-notes-heading{grid-column:1/-1;justify-content:space-between;align-items:baseline;margin-bottom:10px;display:flex}.review-notes-heading h4{font-size:14px;font-weight:500}.review-notes-heading span{color:var(--text-3);font-size:12px}.review-note-list{grid-area:2/2;align-content:start;align-self:stretch;gap:6px;height:0;min-height:100%;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.review-note-list li{border:1px solid var(--line);background:var(--surface-2);border-radius:9px;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;padding:10px 12px;display:grid}.review-note-list li:hover{border-color:var(--line-strong)}.review-note-time{color:var(--accent);font:500 12px/20px var(--mono);cursor:pointer;background:0 0;border:0;align-self:start;padding:0}.review-note-actions{grid-column:2;gap:4px;display:flex}.review-note-actions .button{min-height:26px;padding:2px 8px;font-size:12px}.review-player{border-radius:10px;overflow:hidden}.review-mark-bar{flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 4px;display:flex}.review-keys{color:var(--text-3);margin-left:auto;font-size:12px}.review-kind{border-radius:5px;margin-right:6px;padding:1px 7px;font-size:11px}.prompt-draft-hint{color:var(--text-3);font-size:12px}@media (width<=1100px){.review-notes{grid-template-columns:minmax(0,1fr)}.review-note-list{grid-area:auto/1;max-height:none}}.review-player video,.production-output video,.film-player video{width:100%;aspect-ratio:var(--film-aspect,16 / 9);object-fit:contain;background:#000;height:auto;max-height:70vh;display:block}.review-player{background:var(--surface-0);border:0;padding:10px}.production-workbench fieldset{border:0;border-top:1px solid var(--line);margin-top:20px;padding:16px 0 0}.production-workbench legend{color:var(--text);padding:0;font-size:14px;font-weight:500}.production-output video{object-fit:contain;border-radius:8px;width:100%;max-height:62vh}.review-player video{object-fit:contain;min-height:220px;max-height:calc(100vh - 470px)}.production-output .inline-message,.review-notes .inline-message{border:1px solid var(--line);color:var(--text-2);background:var(--surface-2);border-radius:8px;margin:0 0 12px;padding:8px 12px;font-size:13px}.screen-actions{justify-content:flex-end;align-items:center;gap:8px;margin-top:12px;display:flex}.screen-actions>span:first-child{color:var(--text-3);margin-right:auto;font-size:12px}.materials-panel:has(.project-form){max-width:1000px;margin:0 auto}.panel-heading h1{font-size:22px;font-weight:500}.home-main{width:min(1200px,100% - 64px);padding-block:40px}.home-heading{margin-bottom:24px}.home-heading h1{letter-spacing:-.01em;font-size:24px;font-weight:500}.project-card{border-color:var(--line);background:var(--surface-1);box-shadow:none}.project-card:hover{border-color:var(--line-strong);background:var(--surface-2)}.project-cover{height:140px;color:var(--text-3);background:var(--surface-0)}.project-cover.has-still{overflow:hidden}.project-cover img{object-fit:cover;width:100%;height:100%;display:block}.project-next{color:var(--text-2)}.project-time{color:var(--text-3);font-family:var(--mono);font-size:11px}.review-notes>.nle{grid-column:1/-1}.nle{border:1px solid var(--line);background:var(--surface-0);-webkit-user-select:none;user-select:none;border-radius:10px;margin:12px 0;overflow:hidden}.nle-toolbar{border-bottom:1px solid var(--line);align-items:center;gap:10px;height:40px;padding:0 12px;display:flex}.nle-clock{color:var(--text);font:500 15px var(--mono)}.nle-duration{color:var(--text-3);font:12px var(--mono)}.nle-zoom{color:var(--text-3);align-items:center;gap:8px;margin-left:auto;font-size:12px;display:flex}.nle-zoom input{width:140px}.nle-toolbar .button{min-height:28px;padding:2px 10px;font-size:12px}.nle-unseen{color:var(--accent);align-items:center;gap:8px;margin-left:12px;font-size:12px;display:flex}.nle-unseen-key{border:1.5px dashed var(--accent);border-radius:3px;width:14px;height:10px}.nle-clip.is-unseen{outline:1.5px dashed var(--accent);outline-offset:-2px}.nle-scroll{overflow:auto hidden}.nle-canvas{cursor:text;padding-bottom:6px;position:relative}.nle-ruler,.nle-track{display:flex}.nle-corner,.nle-heads{z-index:3;background:var(--surface-1);border-right:1px solid var(--line);flex:0 0 72px;position:sticky;left:0}.nle-ruler{border-bottom:1px solid var(--line);height:26px}.nle-ruler-track{flex:none;position:relative}.nle-tick{border-left:1px solid var(--line-strong);color:var(--text-3);font:10px var(--mono);padding:4px 0 0 4px;position:absolute;top:0;bottom:0}.nle-marker{background:var(--accent);cursor:pointer;z-index:2;border:0;border-radius:2px 2px 6px 6px;width:12px;height:12px;margin-left:-6px;padding:0;position:absolute;bottom:2px}.nle-marker:hover,.nle-marker:focus-visible{transform:scale(1.25)}.nle-marker.is-remove{background:var(--danger)}.nle-marker.is-keep{background:var(--ok)}.nle-track{height:30px;margin-top:4px}.nle-track.is-shot{height:52px}.nle-heads{cursor:default;flex-direction:column;justify-content:center;padding:0 10px;display:flex}.nle-heads strong{color:var(--text-2);font:500 11px var(--mono)}.nle-heads span{color:var(--text-3);font-size:11px}.nle-lane{flex:none;position:relative}.nle-clip{background-repeat:repeat-x;background-size:auto 100%;border:1px solid #0000008c;border-radius:4px;position:absolute;top:0;bottom:0;overflow:hidden}.nle-clip span{color:#fff;white-space:nowrap;text-overflow:ellipsis;text-shadow:0 1px 2px #000;font-size:11px;line-height:14px;position:absolute;top:3px;left:5px;right:4px;overflow:hidden}.is-shot .nle-clip{background-color:#34495a}.is-component .nle-clip{background-color:#6b5a8e}.is-caption .nle-clip{background-color:#4d5058}.is-music .nle-clip{background-color:#3d6a52}.is-shot .nle-clip span{top:auto;bottom:3px}.nle-playhead{z-index:4;pointer-events:none;background:#ff5a4f;width:2px;margin-left:-1px;position:absolute;top:0;bottom:0}.nle-playhead:before{content:"";border:6px solid #0000;border-top:8px solid #ff5a4f;position:absolute;top:0;left:-5px}.rv{gap:14px;min-width:0;padding-bottom:8px;display:grid}.rv h3,.rv h4{margin:0}.rv-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.rv-title{align-items:baseline;gap:10px;display:flex}.rv-title h3{letter-spacing:.01em;font-size:17px;font-weight:600}.rv-title span{color:var(--text-3);font:12px var(--mono)}.rv-tools{align-items:center;gap:8px;display:flex}.rv .button{min-height:34px;padding:6px 14px;font-size:13px}.rv .button.primary{color:var(--accent-ink)}.rv-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.rv-icon{width:28px;height:28px;color:var(--text-3);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;margin-left:auto;padding:0;font-size:18px;line-height:1;display:inline-grid}.rv-icon:hover{color:var(--text);background:var(--surface-3)}.rv-text-button{color:var(--text-2);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:4px 8px;font-size:12px}.rv-text-button:hover:not(:disabled){color:var(--text);background:var(--surface-3)}.rv-text-button:disabled{opacity:.4;cursor:default}.rv-hint{color:var(--text-3);margin:0;font-size:12px;line-height:1.6}.rv-time{color:var(--accent);font:500 12px var(--mono);font-variant-numeric:tabular-nums}.rv-stale{color:var(--text-2);background:var(--warn-soft);border-radius:10px;align-items:center;gap:10px;margin:0;padding:8px 12px;font-size:13px;display:flex}.rv-render{background:var(--accent-soft);color:var(--text);border-radius:10px;align-items:center;gap:10px;padding:6px 12px;font-size:13px;display:flex}.rv-render>span:not(.rv-spinner){color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap}.rv-render .rv-render-bar{flex:1;min-width:60px}.rv-render-note{margin-left:4px}.rv-render-head{align-items:center;gap:10px;font-size:14px;display:flex}.rv-render-head span:last-child{color:var(--text-2);font-variant-numeric:tabular-nums;margin-left:auto;font-size:13px}.rv-render-bar{background:color-mix(in srgb, var(--accent) 18%, transparent);border-radius:99px;height:6px;overflow:hidden}.rv-render-bar i{border-radius:inherit;background:var(--accent);height:100%;transition:width .6s;display:block}.rv-render p{color:var(--text-2);margin:0;font-size:13px}.rv-spinner{border:2px solid color-mix(in srgb, var(--accent) 25%, transparent);border-top-color:var(--accent);border-radius:50%;flex:none;width:14px;height:14px;animation:.8s linear infinite rv-spin}@keyframes rv-spin{to{transform:rotate(360deg)}}.rv-locked{background:var(--accent-soft);border-radius:8px;align-items:center;gap:8px;margin:0;padding:8px 10px;font-size:13px;display:flex}@media (prefers-reduced-motion:reduce){.rv-spinner{animation-duration:2.4s}.rv-render-bar i{transition:none}}.rv-alert{color:var(--danger);background:var(--danger-soft);border-radius:10px;align-items:center;gap:10px;margin:0;padding:8px 8px 8px 14px;font-size:13px;display:flex}.rv-toast{z-index:40;border:1px solid var(--line-strong);color:var(--text);background:var(--surface-3);border-radius:999px;margin:0;padding:8px 16px;font-size:13px;animation:.2s ease-out rv-rise;position:fixed;bottom:104px;left:50%;transform:translate(-50%);box-shadow:0 10px 30px #00000073}@keyframes rv-rise{0%{opacity:0;transform:translate(-50%,6px)}}.star-card{z-index:41;border:1px solid var(--line-strong);background:var(--surface-2);border-radius:12px;align-items:flex-start;gap:8px;width:min(340px,100vw - 32px);padding:16px 10px 16px 18px;animation:.24s ease-out star-rise;display:flex;position:fixed;bottom:24px;right:24px;box-shadow:0 14px 40px #00000073}.star-card strong{color:var(--text);margin-bottom:4px;font-size:14px;display:block}.star-card p{color:var(--text-2);margin:0 0 12px;font-size:13px;line-height:1.5}.star-card .button{gap:6px}@keyframes star-rise{0%{opacity:0;transform:translateY(8px)}}.rv-studio{grid-template:"stage panel""composer panel""timeline timeline"/minmax(0,1fr) 340px;gap:12px 14px;min-width:0;display:grid}.rv-studio.is-wide{grid-template:"stage""composer""timeline"/minmax(0,1fr)}.rv-stage{background:#000;border-radius:12px;grid-area:stage;place-items:center;min-width:0;display:grid;overflow:hidden}.rv-stage>video,.rv-compare video{width:100%;min-height:220px;max-height:max(300px,100vh - 350px);aspect-ratio:var(--film-aspect,16 / 9);object-fit:contain;background:#000;display:block}.rv-still{touch-action:none;place-items:center;width:100%;display:grid;position:relative}.rv-still img{object-fit:contain;-webkit-user-select:none;user-select:none;width:100%;height:100%;transition:opacity .15s;display:block}.rv-still.is-loading img{opacity:.55}.rv-still-wait{color:var(--text-3);font-size:13px}.rv-live{touch-action:none;background:#000;position:relative;overflow:hidden}.rv-live>video{object-fit:contain;width:100%;height:100%;display:block}.rv-live-page{transform-origin:0 0;pointer-events:none;position:absolute;top:0;left:0;overflow:hidden}.rv-live-page iframe{color-scheme:normal;background:0 0;border:0;position:absolute}.rv-live .rv-grab{z-index:2;box-shadow:none;background:0 0}.rv-motion-badge{z-index:3;color:var(--text);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0a0a0cc7;border-radius:999px;align-items:center;gap:10px;padding:5px 6px 5px 12px;font-size:12px;display:flex;position:absolute;top:10px;right:10px}.rv-motion-badge span{align-items:center;gap:8px;display:inline-flex}.rv-motion-badge span:only-child{padding-right:6px}.rv-motion-badge button{border:1px solid var(--line-strong);color:var(--text);font:inherit;cursor:pointer;background:0 0;border-radius:999px;padding:3px 10px}.rv-still-error{color:var(--danger);background:#140808d9;border-radius:8px;margin:0;padding:8px 12px;font-size:12px;position:absolute;bottom:12px;left:12px;right:12px}.rv-compare{width:100%;display:grid}.rv-compare-bar{background:var(--surface-2);color:var(--text-2);flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;font-size:13px;display:flex}.rv-compare-bar span{margin-right:auto}.rv-compare-bar strong{color:var(--accent);margin:0 4px;font-weight:600}.rv-panel{border:1px solid var(--line);background:var(--surface-1);border-radius:12px;flex-direction:column;grid-area:panel;gap:12px;min-width:0;height:0;min-height:100%;padding:14px;display:flex;overflow-y:auto}.rv-panel-head{align-items:center;gap:8px;min-height:32px;display:flex}.rv-panel-head h4{font-size:14px;font-weight:600}.rv-count{color:var(--text-2);background:var(--surface-3);font:500 11px/18px var(--mono);border-radius:999px;padding:0 7px}.rv-mark{margin-left:auto;gap:8px!important}.rv-mark kbd{min-width:18px;font-size:10px}.rv-error{color:var(--danger);background:var(--danger-soft);border-radius:8px;margin:0;padding:8px 10px;font-size:12px}.rv-empty{text-align:center;color:var(--text-3);flex:1;align-content:center;justify-items:center;gap:4px;padding:24px 8px;font-size:13px;display:grid}.rv-empty p{margin:0}.rv-outdated{background:var(--warn-soft);color:var(--text-2);border-radius:8px;gap:6px;padding:10px;font-size:12px;display:grid}.rv-outdated p{margin:0}.rv-outdated .button{justify-self:start}.rv-notes{gap:2px;margin:0 -6px;padding:0;list-style:none;display:grid}.rv-notes li{position:relative}.rv-note-jump{width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:4px 8px;padding:9px 10px;display:grid}.rv-note-jump:hover{background:var(--surface-2)}.rv-note-jump .review-kind{margin:0}.rv-note-target{color:var(--text-2);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.rv-note-text{-webkit-line-clamp:2;-webkit-box-orient:vertical;grid-column:1/-1;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.rv-note-jump small{color:var(--text-3);grid-column:1/-1;font-size:11px}.rv-note-actions{background:var(--surface-2);opacity:0;border-radius:8px;gap:2px;padding:2px;transition:opacity .12s;display:flex;position:absolute;top:5px;right:4px}.rv-notes li:hover .rv-note-actions,.rv-note-actions:focus-within{opacity:1}.rv-inspector,.rv-note-form{border:0;flex-direction:column;gap:12px;min-width:0;margin:0;padding:0;display:flex}.rv-inspector label,.rv-note-form label:not(.consent-check){color:var(--text-3);gap:6px;font-size:12px;display:grid}.rv-inspector input,.rv-note-form textarea,.rv-note-form select,.rv-range input{border:1px solid var(--line);width:100%;min-height:40px;color:var(--text);background:var(--surface-0);font:inherit;border-radius:8px;outline:none;padding:8px 12px;font-size:14px}.rv-note-form textarea{resize:vertical;line-height:1.6}.rv-inspector input:focus,.rv-note-form textarea:focus,.rv-range input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.rv-inspector select{border:1px solid var(--line);width:100%;min-height:40px;color:var(--text);background:var(--surface-0);font:inherit;border-radius:8px;padding:8px 10px;font-size:13px}.rv-inspector label{position:relative}.rv-inspector{gap:10px}.rv-inspector>.rv-row:last-child{z-index:1;border-top:1px solid var(--line);background:var(--surface-1);margin:auto -14px -14px;padding:10px 14px 14px;position:sticky;bottom:-14px}.rv-look{background:var(--surface-2);border-radius:10px;gap:10px;padding:10px 12px;display:grid}.rv-colors{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}.rv-swatch{cursor:pointer;align-items:center;font-size:12px;position:relative;color:var(--text-2)!important;gap:6px!important;display:flex!important}.rv-swatch input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.rv-swatch span{border:1px solid var(--line-strong);border-radius:6px;width:22px;height:22px;box-shadow:inset 0 0 0 1px #00000040}.rv-swatch:hover span{border-color:var(--text-3)}.rv-colors .rv-link{margin-left:auto;font-size:12px}.rv-pair{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;display:grid}.rv-pair:empty{display:none}.rv-field{align-items:center;gap:6px;display:flex}.rv-field input{font-family:var(--mono);font-variant-numeric:tabular-nums}.rv-field em{color:var(--text-3);font-size:12px;font-style:normal}.rv-link{color:var(--accent);font:inherit;cursor:pointer;background:0 0;border:0;margin-left:6px;padding:0}.rv-link:hover{text-decoration:underline}.rv-text-button.is-danger{color:var(--danger);margin-left:auto}.rv-text-button.is-danger:hover:not(:disabled){color:var(--danger);background:var(--danger-soft)}.rv-grab{border:1.5px solid var(--accent);cursor:grab;touch-action:none;background:#e9b44c14;border-radius:6px;outline:none;position:absolute;box-shadow:0 0 0 9999px #0000001a}.rv-grab:active{cursor:grabbing;background:#e9b44c29}.rv-grab:focus-visible{box-shadow:0 0 0 3px var(--accent-soft), 0 0 0 9999px #0000001a}.rv-grab:after{content:"";background:var(--accent);border-radius:2px;width:8px;height:8px;position:absolute;top:-5px;left:-5px}.rv-range summary{color:var(--text-3);cursor:pointer;font-size:12px}.rv-range .rv-row{flex-wrap:nowrap;margin-top:8px}.rv-range input{flex:none;width:9em}.rv-studio>.nle{border-radius:12px;grid-area:timeline;margin:0}.rv-studio>.nle .nle-scroll{max-height:30vh;overflow-y:auto}.rv-studio>.nle .nle-ruler{z-index:4;background:var(--surface-0);position:sticky;top:0}.rv-studio>.nle .nle-track{height:26px;margin-top:3px}.rv-studio>.nle .nle-track.is-shot{height:44px}.nle-clip.is-pickable{cursor:pointer;transition:filter .12s}.nle-clip.is-pickable:hover{filter:brightness(1.25)}.nle-clip.is-selected{z-index:2;box-shadow:0 0 0 2px var(--accent);filter:brightness(1.3)}.nle-clip.is-movable{cursor:grab;touch-action:none}.nle-clip.is-movable:active{cursor:grabbing}.nle-clip.is-movable:before,.nle-clip.is-movable:after{content:"";cursor:ew-resize;z-index:1;width:7px;position:absolute;top:0;bottom:0}.nle-clip.is-movable:before{left:0}.nle-clip.is-movable:after{right:0}.nle-clip.is-movable.is-selected:before,.nle-clip.is-movable.is-selected:after{background:#ffffff47}.nle-lane.is-new{outline:1px dashed var(--line);outline-offset:-1px;border-radius:4px}.nle-lane.is-new:after{content:"放到新的一軌";color:var(--text-3);pointer-events:none;font-size:11px;position:absolute;top:7px;left:8px}.rv-slip-stage{box-sizing:border-box;grid-template-columns:1fr 1fr;align-items:center;gap:10px;width:100%;height:100%;padding:10px;display:grid}.rv-slip-stage figure{gap:6px;min-width:0;margin:0;display:grid}.rv-slip-stage figcaption{color:var(--text-3);text-align:center;font-size:12px}.rv-slip-amount{color:var(--text);font:600 18px var(--mono);margin:4px 0}.rv-slip-steps .button{flex:1}.rv-composer{border:1px solid var(--line-strong);background:var(--surface-2);border-radius:12px;grid-area:composer;align-items:flex-end;gap:8px;padding:6px 6px 6px 8px;display:flex}.rv-composer textarea{min-width:0;min-height:34px;max-height:140px;color:var(--text);font:inherit;resize:none;field-sizing:content;background:0 0;border:0;outline:none;flex:1;padding:6px 8px;font-size:14px;line-height:1.55}.rv-composer textarea::placeholder{color:var(--text-3)}.rv-working{color:var(--text-2);align-items:center;gap:10px;margin:0;padding:6px 8px;font-size:13px;display:flex}.rv-pulse{background:var(--accent);border-radius:50%;width:8px;height:8px;animation:1.4s ease-in-out infinite rv-pulse}@keyframes rv-pulse{50%{opacity:.3;transform:scale(.8)}}.rv-menu{position:relative}.rv-menu>.button{gap:8px}.rv-caret{opacity:.7;border-bottom:1.5px solid;border-right:1.5px solid;width:6px;height:6px;margin-top:-3px;transform:rotate(45deg)}.rv-menu-panel{z-index:30;border:1px solid var(--line-strong);background:var(--surface-2);border-radius:12px;min-width:300px;max-width:min(420px,100vw - 32px);padding:6px;animation:.12s ease-out rv-drop;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 16px 40px #00000080}.rv-menu-panel.is-up{top:auto;bottom:calc(100% + 10px)}@keyframes rv-drop{0%{opacity:0;transform:translateY(-4px)}}.rv-menu-list{gap:2px;display:grid}.rv-menu-list>button,.rv-menu-list>a{color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;gap:2px;padding:10px 12px;text-decoration:none;display:grid}.rv-menu-list>:hover:not(:disabled){background:var(--surface-3)}.rv-menu-list>:disabled{opacity:.45;cursor:default}.rv-menu-list strong{font-size:13px;font-weight:600}.rv-menu-list span{color:var(--text-3);font-size:12px}.rv-menu-panel:has(.rv-versions){width:min(460px,100vw - 32px);max-width:none}.rv-versions{gap:2px;max-height:min(420px,60vh);margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.rv-versions li{border-radius:10px;align-items:center;gap:12px;padding:10px 12px;display:flex}.rv-versions li:hover{background:var(--surface-3)}.rv-versions li>div:first-child{flex:1;gap:2px;min-width:0;display:grid}.rv-versions strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;font-weight:600;line-height:1.45;display:-webkit-box;overflow:hidden}.rv-versions small{color:var(--text-3);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.rv-version-time{color:var(--text-3);font-variant-numeric:tabular-nums;align-items:center;gap:6px;font-size:12px;display:flex}.rv-versions em{color:var(--accent);background:var(--accent-soft);border-radius:5px;padding:0 6px;font-size:11px;font-style:normal;font-weight:600}.rv-versions li.is-current{background:var(--accent-soft)}.rv-versions .rv-row{flex:none}.rv-usage-total{border-bottom:1px solid var(--line);gap:2px;margin:0 0 6px;padding:10px 12px;font-size:13px;display:grid}.rv-usage-total span{color:var(--text-3);font-size:12px}.rv-versions small.rv-usage{color:var(--text-3);font-variant-numeric:tabular-nums}.rv-version-same{color:var(--text-3);font-size:12px}.rv-return-what{background:var(--surface-3);border-radius:8px;margin:0;padding:10px 12px;font-weight:600}.rv-music{width:min(380px,100vw - 48px)}.rv-music .production-music-picker{border:0;gap:10px;padding:6px}.rv-music .production-music-picker legend{display:none}.rv-music label,.rv-music p{color:var(--text-3);font-size:12px}.rv-dialog{border:1px solid var(--line-strong);width:min(480px,100vw - 32px);max-height:calc(100vh - 64px);color:var(--text);background:var(--surface-1);border-radius:16px;padding:0;box-shadow:0 24px 60px #0009}.rv-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#0009}.rv-dialog[open]{animation:.16s ease-out rv-pop}@keyframes rv-pop{0%{opacity:0;transform:scale(.97)}}.rv-dialog-body{gap:14px;padding:22px 24px;display:grid}.rv-dialog h3{font-size:17px;font-weight:600}.rv-dialog p{color:var(--text-2);margin:0;font-size:14px;line-height:1.65}.rv-dialog .consent-check{color:var(--text-2);font-size:13px}.rv-dialog-actions{justify-content:flex-end;margin-top:4px}.rv-dialog details summary{color:var(--text-2);cursor:pointer;font-size:13px}.rv-dialog ul{color:var(--text-2);margin:8px 0 0;padding-left:18px;font-size:13px}.rv-note{background:var(--info-soft);border-radius:8px;padding:10px 12px;color:var(--info)!important;font-size:13px!important}.rv-path{background:var(--surface-0);overflow-wrap:anywhere;border-radius:8px;padding:8px 10px;color:var(--text-3)!important;font:12px var(--mono)!important}.rv-steps{color:var(--text-2);gap:6px;margin:0;padding-left:20px;font-size:13px;line-height:1.6;display:grid}@media (width<=1000px){.rv-studio,.rv-studio.is-wide{grid-template:"stage""composer""timeline""panel"/minmax(0,1fr)}.rv-panel{height:auto;min-height:0;max-height:none}.rv-stage>video,.rv-compare video{min-height:0;max-height:56vh}}@media (width<=640px){.rv-composer{flex-wrap:wrap}.rv-composer textarea{flex-basis:100%}.rv-composer>.button{margin-left:auto}.rv-menu-panel{min-width:0;max-width:none;position:fixed;inset:auto 16px 16px}.rv-note-actions{opacity:1;background:0 0;justify-content:flex-end;position:static}.nle-toolbar{white-space:nowrap;gap:8px}.nle-zoom{font-size:0}.nle-zoom input{width:72px}}.rv-looks{gap:12px;width:min(380px,100vw - 32px);max-height:min(70vh,560px);padding:4px;display:grid;overflow:auto}.rv-looks-intro,.rv-looks-empty{color:var(--text-2);margin:0;font-size:12px;line-height:1.6}.rv-looks-empty{width:min(320px,100vw - 32px);padding:4px}.rv-look{border:1px solid var(--line);background:var(--surface-1);border-radius:8px;gap:8px;padding:10px 12px;display:grid}.rv-look header{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.rv-look header span{color:var(--text-3);font-size:11px}.rv-look-font{color:var(--text-2);gap:4px;font-size:12px;display:grid}.rv-look-font select{font-size:15px}.rv-report{flex:none;gap:10px;margin:0;padding:0;display:grid}.rv-panel .rv-report-head strong{display:none}.rv-tabs{background:var(--surface-0);border-radius:9px;flex:none;gap:2px;padding:3px;display:flex}.rv-tabs button{height:28px;color:var(--text-2);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:7px;flex:1;justify-content:center;align-items:center;gap:6px;font-size:13px;display:inline-flex}.rv-tabs button[aria-selected=true]{color:var(--text);background:var(--surface-3)}.rv-tabs button i{background:var(--accent);border-radius:50%;width:6px;height:6px}.rv-panel.has-tabs .rv-panel-head>h4,.rv-panel.has-tabs .rv-panel-head>.rv-count{display:none}.rv-report-head{align-items:center;gap:10px;display:flex}.rv-report-head span{color:var(--text-3);font-size:12px}.rv-report-head .rv-icon{margin-left:auto}.rv-report-body{gap:12px;font-size:13px;line-height:1.6;display:grid}.rv-report-body h5{color:var(--text-3);letter-spacing:.5px;margin:0 0 6px;font-size:12px;font-weight:600}.rv-report-summary{margin:0;font-size:14px}.rv-report-request{color:var(--text-2);gap:2px;margin:0;display:grid}.rv-report-request span{color:var(--text-3);font-size:12px}.rv-report-changes{gap:6px;margin:0;padding-left:20px;display:grid}.rv-report-changes li{display:grid}.rv-report-changes span,.rv-report-notes p{color:var(--text-2)}.rv-report-notes{gap:8px;margin:0;padding:0;list-style:none;display:grid}.rv-report-notes li{grid-template-columns:auto 1fr;align-items:start;gap:10px;display:grid}.rv-report-notes q{color:var(--text-3);font-size:12px;display:block}.rv-report-notes p{margin:0}.rv-report-outcome{border:1px solid var(--line);white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:11px}.is-done .rv-report-outcome,.is-kept .rv-report-outcome{color:#8fd19e;border-color:#8fd19e66}.is-partly .rv-report-outcome{color:var(--accent);border-color:#e9b44c73}.is-not_done .rv-report-outcome{color:#f0a1a1;border-color:#f0a1a173}.rv-report-missing ul{gap:8px;margin:0;padding:0;list-style:none;display:grid}.rv-report-missing li{gap:2px;display:grid}.rv-report-missing li strong{color:#f0c2a1;font-weight:500}.rv-report-missing li>span:not(.rv-report-reason){color:var(--text-2)}.rv-report-reason{color:var(--text-3);justify-self:start;font-size:11px}.rv-report-missing .is-needs_you .rv-report-reason{color:var(--accent)}.rv-report-open{justify-self:start;font-size:12px}.rv-dialog-body h4 small{color:var(--text-3);font-size:12px;font-weight:400}.home-templates{margin-top:56px}.next-step{border:1px solid var(--line-strong);border-left:3px solid var(--accent);background:var(--surface-1);border-radius:12px;gap:14px;margin-bottom:28px;padding:18px 20px;display:grid}.next-step-track{color:var(--text-3);flex-wrap:wrap;gap:6px 18px;margin:0;padding:0;font-size:12px;list-style:none;display:flex}.next-step-track li{align-items:center;gap:7px;display:inline-flex}.next-step-track li>span{border:1px solid var(--line-strong);width:20px;height:20px;font:600 11px var(--mono);border-radius:50%;place-items:center;display:grid}.next-step-track li.is-done{color:var(--text-2)}.next-step-track li.is-done>span{border-color:var(--ok);color:var(--ok)}.next-step-track li.is-now{color:var(--text);font-weight:600}.next-step-track li.is-now>span{border-color:var(--accent);color:var(--accent-ink);background:var(--accent)}.next-step-body{justify-content:space-between;align-items:center;gap:20px;display:flex}.next-step-body strong{font-size:18px;font-weight:600;display:block}.next-step-body p{color:var(--text-2);margin:4px 0 0;font-size:13px}.next-step-body .button{flex:none}.project-settings{border-top:1px solid var(--line);margin-top:34px;padding-top:18px}.project-settings>summary{color:var(--text-2);cursor:pointer;font-size:13px}.project-settings[open]>summary{margin-bottom:18px}@media (width<=720px){.next-step-body{flex-direction:column;align-items:stretch}}.aspect-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.aspect-picker button{border:1px solid var(--line);color:var(--text-2);background:var(--surface-1);cursor:pointer;border-radius:10px;align-content:start;justify-items:center;gap:6px;padding:12px 8px;font-size:13px;display:grid}.aspect-picker button:hover:not(:disabled){border-color:var(--line-strong);color:var(--text)}.aspect-picker button[aria-checked=true]{border-color:var(--accent);color:var(--text);background:var(--accent-soft)}.aspect-picker button:disabled{cursor:default;opacity:.6}.aspect-picker button[aria-checked=true]:disabled{opacity:1}.aspect-picker small{color:var(--text-3);text-align:center;font-size:11px;line-height:1.35}.aspect-frame{place-items:center;height:28px;margin-bottom:2px;display:grid}.aspect-shape{box-sizing:border-box;border:2px solid;border-radius:3px;display:block}@media (width<=640px){.aspect-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}.production-step{align-items:center;gap:10px;margin:28px 0 12px;font-size:16px;font-weight:600;display:flex}.production-brief>.production-step:first-of-type{margin-top:4px}.production-step>span{width:22px;height:22px;color:var(--accent-ink);background:var(--accent);font:600 12px var(--mono);border-radius:50%;place-items:center;display:grid}.production-hint{color:var(--text-3);margin:6px 0 0;font-size:12px}.production-hint.is-error{color:var(--error)}.production-reuse{justify-content:flex-end;display:flex}.production-start{border-top:1px solid var(--line);gap:12px;margin-top:8px;padding-top:18px;display:grid}.production-start>.production-step,.production-start>p{margin:0}.production-start>.button{justify-self:start}.production-start>p:empty{display:none}@media (width<=640px){.production-start>.button{justify-self:stretch}}.skill-picker-current{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;display:flex}.skill-picker-current p{margin:0}.skill-picker-current p span{color:var(--text-3);margin-top:3px;font-size:12px;display:block}.skill-picker-current .button{flex:none}.project-next{align-items:center;gap:7px;display:inline-flex}.project-next i{background:var(--text-3);border-radius:50%;width:7px;height:7px}.project-next.is-next i{background:var(--accent)}.project-next.is-done i{background:var(--ok)}.project-next.is-problem{color:var(--accent)}.project-next.is-problem i{background:var(--error)}.project-next.is-active{color:var(--text)}.project-next.is-active i{background:var(--ok);animation:1.4s ease-in-out infinite live-pulse}@keyframes live-pulse{0%,to{box-shadow:0 0 #74c3938c}50%{box-shadow:0 0 0 5px #74c39300}}@media (prefers-reduced-motion:reduce){.project-next.is-active i{animation:none}}.production-status-heading h3{align-items:center;gap:10px;display:flex}.production-live{background:var(--ok);border-radius:50%;flex:none;width:10px;height:10px;animation:1.4s ease-in-out infinite live-pulse}.production-live.is-thinking{background:var(--accent);animation-duration:2.4s}.production-live.is-quiet{background:var(--text-3);animation:none}.production-elapsed{font-family:var(--mono);font-variant-numeric:tabular-nums}.production-now small{color:var(--text-3);margin-top:2px;font-size:12px;display:block}.production-pulse{color:var(--text-2);background:var(--surface-2);font-variant-numeric:tabular-nums;border-radius:8px;margin:0;padding:8px 12px;font-size:13px}.production-pulse small{color:var(--text-3);margin-top:2px;font-size:12px;display:block}.production-pulse.is-quiet{color:var(--text);border:1px solid var(--accent)}.production-status-line.is-active.is-working .production-status-dot{background:var(--ok);animation-name:live-pulse}.production-status-line.is-active.is-quiet .production-status-dot{background:var(--text-3);animation:none}.production-status-line small{font-variant-numeric:tabular-nums}@media (prefers-reduced-motion:reduce){.production-live{animation:none}}.production-status-panel.is-active h3:before{display:none}.production-status-panel:not(.is-active):not(.has-problem) h3:before{background:var(--ok)}.topbar-end{align-items:center;gap:10px;display:flex}.star-link{border:1px solid var(--line);height:30px;color:var(--text-3);background:var(--surface-1);border-radius:8px;align-items:center;gap:6px;padding:0 10px;font-size:12px;text-decoration:none;display:inline-flex}.star-link:hover{color:var(--text)}.star-link:hover svg{color:var(--accent)}.language-switch{border:1px solid var(--line);background:var(--surface-1);border-radius:8px;padding:2px;display:inline-flex}.language-switch button{min-width:38px;height:26px;color:var(--text-3);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0 8px;font-size:12px}.language-switch button:hover{color:var(--text)}.language-switch button[aria-pressed=true]{color:var(--text);background:var(--surface-3)}html:lang(en) .nle-lane.is-new:after{content:"New lane"}.workspace-views{display:contents}.workspace-bar:has(.workspace-views .studio-view-nav) [data-stage=production]{display:none}.workspace-views .studio-view-nav{background:0 0;border:0;gap:2px;margin:0;padding:0;display:flex}.workspace-views .studio-view-nav button{height:28px;color:var(--text-2);border-radius:7px;padding:0 14px;font-size:13px}.workspace-views .studio-view-nav button[aria-pressed=true]{color:var(--text);background:var(--surface-3)}.workspace-views .studio-view-nav button svg{width:15px;height:15px;color:inherit}.rv-side-toggle{gap:6px}.production-output video{object-fit:contain;background:#000;max-height:max(300px,100vh - 340px)}.film-version-actions{align-items:center;gap:8px;margin-left:auto;display:flex}.film-version-bar .film-version-actions .button{padding:7px 14px;font-size:13px}.rv-composer>.button,.rv-composer>.rv-menu .button{white-space:nowrap;flex:none}@media (width<=720px){.workspace-bar{scrollbar-width:none;gap:6px;padding:0 10px;overflow-x:auto}.workspace-name{display:none}.workspace-steps{flex:none;margin-left:0}.workspace-steps button,.workspace-views .studio-view-nav button,.workspace-tool{white-space:nowrap;padding:0 10px}.workspace-views .studio-view-nav button svg{display:none}.workspace-tool{flex:none}.film-version-actions{flex-wrap:wrap;flex-basis:100%}.film-version-actions .studio-version{display:none}.film-version-actions .button{white-space:nowrap;flex:1;justify-content:center}.rv-tools{flex-wrap:wrap}.rv-tools .button{white-space:nowrap}}.rv-caption-text{background:var(--surface-2);border-radius:8px;margin:0;padding:10px 12px;font-size:15px;line-height:1.6}.rv-caption-facts{grid-template-columns:auto 1fr;gap:6px 12px;margin:0;font-size:13px;display:grid}.rv-caption-facts dt{color:var(--text-3)}.rv-caption-facts dd{margin:0}.rv-caption-input{box-sizing:border-box;resize:vertical;width:100%;font:inherit;border:1px solid var(--line);background:var(--surface-0);color:var(--text);border-radius:8px;padding:8px 10px;font-size:15px;line-height:1.5}@media (width<=600px){.topbar-end{gap:6px;min-width:0}.star-link{gap:0;padding:0 8px;font-size:0}.star-card{bottom:16px;right:16px}.provider-badge>summary{white-space:nowrap;text-overflow:ellipsis;max-width:42vw;overflow:hidden}.language-switch button{min-width:30px;padding:0 6px}}.rv-live-fallback{place-items:center;width:100%;display:grid;position:relative}.workspace-page-tools{align-items:center;min-width:0;margin-left:auto;display:flex}.workspace-page-tools:not(:empty)+.workspace-tool{margin-left:4px}.workspace-page-tools .rv-bar{flex-wrap:nowrap;gap:14px}.workspace-page-tools .rv-title h3{display:none}.workspace-page-tools .rv-tools{gap:6px}.workspace-page-tools .rv-tools .button,.workspace-page-tools .rv-menu>.button{white-space:nowrap;height:30px;min-height:30px;padding:0 10px;font-size:12px}.workspace-page-tools .rv-title span{white-space:nowrap}@media (width<=1320px){.workspace-page-tools .rv-title{display:none}}@media (width>=1000px) and (height>=640px){html.is-reviewing,html.is-reviewing body{height:100%;overflow:hidden}html.is-reviewing .app-shell{flex-direction:column;height:100dvh;min-height:0;display:flex}html.is-reviewing .workspace-main{flex-direction:column;flex:1;min-height:0;padding-bottom:0;display:flex}html.is-reviewing .workspace-layout{flex:1;align-items:stretch;min-height:0;padding:12px 20px;display:flex}html.is-reviewing .materials-panel{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}html.is-reviewing .production-workspace{flex-direction:column;flex:1;gap:10px;min-height:0;display:flex}html.is-reviewing .production-workspace>div:has(>.rv){flex:1;min-height:0;display:flex}html.is-reviewing .production-status-line{padding:4px 6px 4px 12px}html.is-reviewing .production-status-line .button{min-height:28px;padding:2px 10px}html.is-reviewing .rv{flex-direction:column;flex:1;gap:10px;min-height:0;padding-bottom:0;display:flex}html.is-reviewing .rv-studio{flex:1;grid-template-rows:minmax(0,1fr) auto auto;gap:10px 14px;min-height:0}html.is-reviewing .rv-studio.is-wide{grid-template-rows:minmax(0,1fr) auto auto}html.is-reviewing .rv-stage{min-height:0}html.is-reviewing .rv-stage>video{aspect-ratio:auto;width:100%;height:100%;min-height:0;max-height:none}html.is-reviewing .rv-studio>.nle .nle-toolbar{height:34px}html.is-reviewing .rv-studio>.nle .nle-scroll{max-height:none}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="7" fill="#e9b44c"/><path d="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="7" fill="#e9b44c"/><path d="M11.52 15.63 A6.27 6.27 0 0 0 21.89 22.63" fill="none" stroke="#1c1404" stroke-width="4.44"/><path d="M10.52 9.48 L15.59 7.43 L15.67 11.52 L10.60 13.57Z" fill="#1c1404"/><path d="M17.15 6.80 L22.22 4.75 L22.30 8.84 L17.23 10.89Z" fill="#1c1404"/></svg>
|
package/apps/web/dist/index.html
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
<meta name="description" content="Clipen 本機 AI 剪輯工作台" />
|
|
8
8
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
9
9
|
<title>Clipen · 你的作品</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-BHFCflzf.js"></script>
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BtenOBwP.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
package/bin/clipen.js
CHANGED
|
@@ -48,7 +48,8 @@ const LOGO = [
|
|
|
48
48
|
' ╚═════╝╚══════╝╚═╝╚═╝ ╚══════╝╚═╝ ╚═══╝',
|
|
49
49
|
]
|
|
50
50
|
const LOGO_COLOURS = [[246, 211, 122], [240, 198, 100], [233, 180, 76], [226, 160, 62], [218, 140, 52], [208, 120, 44]]
|
|
51
|
-
|
|
51
|
+
// The npm page shows the English description from package.json; Clipen's Chinese help says it in Chinese.
|
|
52
|
+
const CHINESE_DESCRIPTION = '讓 AI 用 Claude Code 或 Codex 幫你剪影片,再用時間線上的審片注記修改'
|
|
52
53
|
const megabytes = (bytes) => Math.round(bytes / 1e6)
|
|
53
54
|
|
|
54
55
|
class SetupError extends Error {}
|
|
@@ -262,6 +263,7 @@ function formatHelp(command, helper) {
|
|
|
262
263
|
...rows(helper.visibleOptions(command), (option) => option.flags, (option) => option.description),
|
|
263
264
|
'',
|
|
264
265
|
chalk.dim(t('第一次使用:npx @clipen/clipen-cli', 'First time: npx @clipen/clipen-cli')),
|
|
266
|
+
`${brand('★')} ${chalk.dim(t('喜歡 Clipen 的話,到 GitHub 給顆星:', 'Like Clipen? Give it a star on GitHub: '))}https://github.com/IMGMANISME/clipen`,
|
|
265
267
|
'',
|
|
266
268
|
].join('\n')
|
|
267
269
|
}
|
|
@@ -269,7 +271,7 @@ function formatHelp(command, helper) {
|
|
|
269
271
|
async function main() {
|
|
270
272
|
let status = 0
|
|
271
273
|
const cli = new Command('clipen')
|
|
272
|
-
.description(t(
|
|
274
|
+
.description(t(CHINESE_DESCRIPTION, DESCRIPTION))
|
|
273
275
|
.version(VERSION, '-v, --version', t('顯示版本', 'Show the version'))
|
|
274
276
|
.helpOption('-h, --help', t('顯示說明', 'Show help'))
|
|
275
277
|
.helpCommand(false)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipen/clipen-cli",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.10",
|
|
4
|
+
"description": "Let AI edit your videos with Claude Code or Codex, then revise them with review notes on the timeline",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"video-editing",
|
|
7
7
|
"ai",
|
package/pyproject.toml
CHANGED
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "clipen"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.10"
|
|
8
8
|
description = "Let AI cut your video with Claude Code or Codex, and review it with notes on the timeline"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
package/src/clipen/__init__.py
CHANGED
|
@@ -23,7 +23,7 @@ def annotation_suggestions(
|
|
|
23
23
|
"JOIN inventory_items AS items ON items.run_id=current.run_id "
|
|
24
24
|
"JOIN assets ON assets.asset_id=items.asset_id "
|
|
25
25
|
"JOIN asset_versions AS versions ON versions.version_id=items.version_id "
|
|
26
|
-
"WHERE current.slot=1 AND assets.role
|
|
26
|
+
"WHERE current.slot=1 AND assets.role IN ('source','added') AND items.kind='video' "
|
|
27
27
|
"AND items.status='usable' ORDER BY assets.relative_path",
|
|
28
28
|
).fetchall()
|
|
29
29
|
captures: dict[str, datetime] = {}
|
package/src/clipen/bootstrap.py
CHANGED
|
@@ -1149,12 +1149,20 @@ def _print_usage(stream: TextIO, repo_root: Path | None = None) -> None:
|
|
|
1149
1149
|
|
|
1150
1150
|
terminal.note(tr("開始剪片", "Start editing"), rows(start), [hint])
|
|
1151
1151
|
terminal.note(tr("其他指令", "Other commands"), rows(other))
|
|
1152
|
-
terminal.outro(
|
|
1153
|
-
terminal.dim(tr("讓 AI 幫你剪影片,再用審片注記修改。", "AI edits your film; you revise it with review notes."))
|
|
1154
|
-
)
|
|
1152
|
+
terminal.outro(_star(terminal))
|
|
1155
1153
|
|
|
1156
1154
|
|
|
1157
1155
|
_NPM_PACKAGE = "@clipen/clipen-cli"
|
|
1156
|
+
GITHUB = "https://github.com/IMGMANISME/clipen"
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
def _star(terminal: Terminal) -> str:
|
|
1160
|
+
"""The one line that asks for a star, closing the screens people see when things went well."""
|
|
1161
|
+
return (
|
|
1162
|
+
terminal.brand("★ ")
|
|
1163
|
+
+ terminal.dim(tr("喜歡 Clipen 的話,到 GitHub 給顆星:", "Like Clipen? Give it a star on GitHub: "))
|
|
1164
|
+
+ terminal.link(GITHUB)
|
|
1165
|
+
)
|
|
1158
1166
|
|
|
1159
1167
|
|
|
1160
1168
|
def _latest_version() -> str:
|
|
@@ -1175,13 +1183,7 @@ def _update(repo_root: Path) -> int:
|
|
|
1175
1183
|
terminal = Terminal()
|
|
1176
1184
|
terminal.intro(f"Clipen {__version__}")
|
|
1177
1185
|
if not (repo_root / ".clipen-npm").is_file():
|
|
1178
|
-
terminal
|
|
1179
|
-
tr(
|
|
1180
|
-
f"這份 Clipen 是從原始碼安裝的:在 {repo_root} 執行 git pull,再執行 ./clipen install。",
|
|
1181
|
-
f"This Clipen was installed from source: in {repo_root}, run git pull, then ./clipen install.",
|
|
1182
|
-
)
|
|
1183
|
-
)
|
|
1184
|
-
return 0
|
|
1186
|
+
return _update_source(terminal, repo_root)
|
|
1185
1187
|
try:
|
|
1186
1188
|
with terminal.spinner(tr("正在檢查新版", "Checking for a new version")) as spinner:
|
|
1187
1189
|
latest = _latest_version()
|
|
@@ -1203,6 +1205,61 @@ def _update(repo_root: Path) -> int:
|
|
|
1203
1205
|
return subprocess.run([npx, "--yes", f"{_NPM_PACKAGE}@{latest}", "install"], check=False).returncode
|
|
1204
1206
|
|
|
1205
1207
|
|
|
1208
|
+
def _update_source(terminal: Terminal, repo_root: Path) -> int:
|
|
1209
|
+
"""A source checkout pulls its branch and installs again; it never merges or discards local work."""
|
|
1210
|
+
git = shutil.which("git")
|
|
1211
|
+
if git is None or not (repo_root / ".git").exists():
|
|
1212
|
+
terminal.outro(
|
|
1213
|
+
tr(
|
|
1214
|
+
f"這份 Clipen 不是 git 專案,無法自動更新:請重新下載 {repo_root} 的原始碼。",
|
|
1215
|
+
f"This Clipen is not a git checkout and cannot update itself; download {repo_root} again.",
|
|
1216
|
+
)
|
|
1217
|
+
)
|
|
1218
|
+
return 1
|
|
1219
|
+
|
|
1220
|
+
def git_run(*arguments: str) -> subprocess.CompletedProcess[str]:
|
|
1221
|
+
return subprocess.run([git, "-C", str(repo_root), *arguments], capture_output=True, text=True, check=False)
|
|
1222
|
+
|
|
1223
|
+
if git_run("status", "--porcelain", "--untracked-files=no").stdout.strip():
|
|
1224
|
+
terminal.outro(
|
|
1225
|
+
tr(
|
|
1226
|
+
f"{repo_root} 有還沒提交的修改,先提交或收起來再更新。",
|
|
1227
|
+
f"{repo_root} has uncommitted changes; commit or stash them, then update.",
|
|
1228
|
+
)
|
|
1229
|
+
)
|
|
1230
|
+
return 1
|
|
1231
|
+
branch = git_run("rev-parse", "--abbrev-ref", "HEAD").stdout.strip()
|
|
1232
|
+
if git_run("rev-parse", "--abbrev-ref", "@{upstream}").returncode != 0:
|
|
1233
|
+
terminal.outro(
|
|
1234
|
+
tr(
|
|
1235
|
+
f"{branch} 分支沒有對應的遠端分支,切回 main 再更新。",
|
|
1236
|
+
f"{branch} has no remote branch to update from; switch to main, then update.",
|
|
1237
|
+
)
|
|
1238
|
+
)
|
|
1239
|
+
return 1
|
|
1240
|
+
before = git_run("rev-parse", "HEAD").stdout.strip()
|
|
1241
|
+
try:
|
|
1242
|
+
with terminal.spinner(tr(f"正在取得 {branch} 的最新程式碼", f"Getting the latest {branch}")) as spinner:
|
|
1243
|
+
pulled = git_run("pull", "--ff-only")
|
|
1244
|
+
if pulled.returncode != 0:
|
|
1245
|
+
raise BootstrapError(next(iter((pulled.stderr or pulled.stdout).strip().splitlines()[-1:]), ""))
|
|
1246
|
+
spinner.done(tr(f"已取得 {branch} 的最新程式碼", f"Got the latest {branch}"))
|
|
1247
|
+
except BootstrapError as error:
|
|
1248
|
+
terminal.outro(
|
|
1249
|
+
tr(
|
|
1250
|
+
f"無法自動更新 {branch},請在 {repo_root} 手動執行 git pull。{error}",
|
|
1251
|
+
f"Could not update {branch}; run git pull in {repo_root} yourself. {error}",
|
|
1252
|
+
).rstrip()
|
|
1253
|
+
)
|
|
1254
|
+
return 1
|
|
1255
|
+
if git_run("rev-parse", "HEAD").stdout.strip() == before:
|
|
1256
|
+
terminal.outro(tr(f"已經是最新版({branch})", f"Already up to date ({branch})"))
|
|
1257
|
+
return 0
|
|
1258
|
+
terminal.outro(tr("程式碼已更新,接著重新安裝…", "Code updated; installing again…"))
|
|
1259
|
+
# The pulled code installs itself, in a new process, rather than this already-loaded older one.
|
|
1260
|
+
return subprocess.run([sys.executable, "-I", str(repo_root / "clipen"), "install"], check=False).returncode
|
|
1261
|
+
|
|
1262
|
+
|
|
1206
1263
|
def _language(arguments: Sequence[str]) -> int:
|
|
1207
1264
|
"""`clipen language` shows the language Clipen speaks; with en, zh-TW or auto it changes it."""
|
|
1208
1265
|
terminal = Terminal()
|
|
@@ -1274,14 +1331,12 @@ def _main(repo_root: Path, arguments: Sequence[str]) -> int:
|
|
|
1274
1331
|
f"{terminal.brand('2')} cd to the folder for your projects",
|
|
1275
1332
|
),
|
|
1276
1333
|
tr(
|
|
1277
|
-
f"{terminal.brand('3')} 輸入 {terminal.bold('clipen codex')}",
|
|
1278
|
-
f"{terminal.brand('3')} Type {terminal.bold('clipen codex')}",
|
|
1334
|
+
f"{terminal.brand('3')} 輸入 {terminal.bold('clipen claude')} 或 {terminal.bold('clipen codex')}",
|
|
1335
|
+
f"{terminal.brand('3')} Type {terminal.bold('clipen claude')} or {terminal.bold('clipen codex')}",
|
|
1279
1336
|
),
|
|
1280
1337
|
],
|
|
1281
1338
|
)
|
|
1282
|
-
terminal.outro(
|
|
1283
|
-
terminal.dim(tr("想改用 Claude Code?輸入 clipen claude", "Prefer Claude Code? Type clipen claude"))
|
|
1284
|
-
)
|
|
1339
|
+
terminal.outro(_star(terminal))
|
|
1285
1340
|
return 0
|
|
1286
1341
|
if list(arguments) == ["uninstall"]:
|
|
1287
1342
|
uninstall_installation()
|