@layer reset, base, layout, components, responsive;
@layer reset {
  *,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}img,video{display:block;max-width:100%}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.5}[hidden]{display:none!important}
}
@layer base {
  :root{--paper:#fbfaf7;--panel:#fffefa;--ink:#213d32;--muted:#777d71;--line:#e6e8df;--green:#224b3b;--light-green:#edf1e7;--lime:#ddebab;--coral:#df8c6c;--soft:#f1f0e8;--red:#a54337;--radius:18px;font-family:Inter,"Segoe UI",Arial,"Microsoft YaHei",sans-serif;font-size:14px;color:var(--ink);background:var(--paper)}
  body{line-height:1.55}h1,h2,h3{line-height:1.2;font-weight:600;letter-spacing:-.035em}h1{font-size:clamp(28px,2.8vw,40px)}h2{font-size:24px}h3{font-size:16px;letter-spacing:-.02em}p{overflow-wrap:anywhere}.muted{color:var(--muted)}.small{font-size:14px}.eyebrow{display:block;font-size:14px;font-weight:700;letter-spacing:.15em;color:var(--muted)}.icon{width:19px;height:19px;flex:none}.brand{display:flex;align-items:center;gap:8px}.brand>img{height:auto;width:143px}.brand>span{font-size:14px;letter-spacing:.08em;margin-top:7px}.fox{object-fit:contain}.skip-link{position:fixed;left:12px;top:-60px;background:var(--green);color:white;padding:12px;z-index:50}.skip-link:focus{top:12px}:focus-visible{outline:3px solid #98af70;outline-offset:3px}button, a,input,select,textarea{transition:background .15s,border-color .15s,box-shadow .15s}button:disabled:hover{transform:none}
  input,select,textarea{color:var(--ink);background:white;border:1px solid var(--line);border-radius:10px;padding:11px 12px;width:100%;min-width:0}input::placeholder,textarea::placeholder{color:#92988d}textarea{resize:vertical;min-height:100px;line-height:1.65}input:focus,textarea:focus,select:focus{border-color:#8a9f6c;outline:none;box-shadow:0 0 0 3px #afbd8d24}label{display:grid;gap:7px;font-size:14px;font-weight:600}form{display:grid;gap:17px}select{cursor:pointer}hr{border:0;border-top:1px solid var(--line);margin:20px 0}code{font-size:14px;background:var(--soft);border-radius:4px;padding:2px 5px}
}
@layer layout {
  .shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;background:#f3f4ed;border-right:1px solid var(--line);padding:29px 19px 18px;display:flex;flex-direction:column;gap:24px;overflow-y:auto}.sidebar .brand{padding:0 7px 16px}.sidebar-nav{display:grid;gap:4px}.nav-link{display:flex;align-items:center;gap:11px;padding:11px 13px;border-radius:10px;font-size:14px;font-weight:500;color:#737c6c}.nav-link:hover{background:#e8ecdf;color:var(--ink)}.nav-link.active{background:#e0e8d3;color:var(--green);font-weight:650}.nav-link.agent-link{padding:12px 10px;background:var(--green);color:#fff;box-shadow:0 4px 12px #24473512;margin-bottom:9px}.agent-link img{width:28px;height:28px;background:#faf6e8;border-radius:8px;padding:3px}.nav-link .nav-tag{margin-left:auto;border:1px solid #ffffff32;padding:1px 5px;border-radius:4px;font-size:14px;letter-spacing:.04em;color:#d9e8bb}.nav-section{padding:8px 13px 4px;display:flex;justify-content:space-between;align-items:center;font-size:14px;letter-spacing:.12em;color:#8a9182;font-weight:650}.tool-subnav{padding:1px 0 4px 42px;display:grid;gap:1px}.tool-subnav a{font-size:14px;padding:6px 0;color:#7a8274}.tool-subnav a.active,.tool-subnav a:hover{color:var(--green)}.sidebar-bottom{margin-top:auto;display:grid;gap:13px;padding-top:20px}.sidebar-note{padding:13px;background:#e8eddf;border:1px solid #dce4d0;border-radius:12px}.sidebar-note strong{font-size:14px}.sidebar-note p{font-size:14px;color:#78826c;margin-top:5px}.profile{display:flex;align-items:center;gap:10px;padding:0 5px}.avatar{width:33px;height:33px;display:grid;place-items:center;background:#e5dace;border:3px solid #fffcf5;border-radius:50%;font-size:14px}.profile strong{font-size:14px;display:block}.profile span.small{color:var(--muted);font-size:14px}.profile .icon-button{margin-left:auto}.workspace{min-width:0}.topbar{height:73px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 40px;gap:16px;background:#fbfaf7e8}.breadcrumb{display:flex;align-items:center;gap:11px;font-size:14px;color:#93998a}.breadcrumb .icon{width:12px;height:12px}.breadcrumb strong{font-weight:500;color:#65725e}.topbar-actions{display:flex;align-items:center;gap:16px}.local-pill{font-size:14px;letter-spacing:.015em;display:flex;align-items:center;gap:6px;color:#929786}.local-pill::before{content:"";width:5px;height:5px;background:#a3ad75;border-radius:50%}.balance{display:flex;align-items:center;gap:7px;border:1px solid var(--line);padding:7px 11px;border-radius:20px;font-size:14px}.balance .icon{width:15px;height:15px;color:#7a8c52}.main{padding:35px 40px 52px;max-width:1440px;margin:0 auto;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:27px}.page-heading h1{font-size:30px}.page-heading p{font-size:14px;color:var(--muted);margin-top:9px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:29px 0 16px}.section-heading h2{font-size:18px}.section-heading p{font-size:14px;color:var(--muted);margin-top:6px}.section-heading a,.text-button{font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:6px;color:#6e7b5a}.text-button{background:none;border:0;padding:5px 0}.text-button .icon,.section-heading a .icon{width:14px;height:14px}.mobile-menu{display:none}.loading{display:grid;justify-items:center;align-content:center;gap:20px;min-height:100vh;color:var(--muted)}.mobile-shade{display:none}
}
@layer components {
  .button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:9px;min-height:40px;padding:10px 16px;font-size:14px;font-weight:600;line-height:1.3;white-space:normal}.button .icon{width:16px;height:16px}.primary{background:var(--green);color:#fff}.primary:hover{background:#173d2e}.secondary{background:#fffefb;border-color:var(--line)}.secondary:hover{background:#f0f3e9;border-color:#cbd4bd}.soft-button{background:#edf0e5;color:#566848}.danger{color:var(--red)}.wide{width:100%}.compact{padding:7px 11px;min-height:32px;font-size:14px}.icon-button{background:transparent;border:0;display:inline-grid;place-items:center;width:32px;height:32px;border-radius:8px;color:var(--muted)}.icon-button:hover{background:var(--light-green);color:var(--green)}.button-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.badge{font-size:14px;display:inline-flex;align-items:center;gap:5px;border:1px solid #dce4d1;background:#f2f5eb;color:#708252;padding:3px 7px;border-radius:5px;font-weight:500}.badge .icon{width:11px;height:11px}.badge.warn{color:#aa7751;background:#fbf0df;border-color:#efddc1}.badge.gray{color:#7b8274;background:#f3f3ed;border-color:var(--line)}.notice{padding:13px 16px;border:1px solid #e7dfc9;background:#faf5e7;border-radius:10px;font-size:14px;color:#86724c}.notice p+p{margin-top:5px}.form-error{font-size:14px;color:var(--red);margin-top:9px}.error-panel{background:#fff0e8;border:1px solid #f0d4c3;border-radius:12px;padding:18px}.empty-state{display:grid;place-items:center;gap:13px;border:1px dashed #dce1d2;padding:44px 20px;border-radius:16px;background:#f8f9f3;text-align:center}.empty-state>.icon{width:34px;height:34px;color:#a5b08e}.empty-state p{font-size:14px;color:var(--muted);max-width:440px}.empty-state h3{font-size:15px}.panel{padding:24px;border:1px solid var(--line);background:var(--panel);border-radius:var(--radius)}.panel-title{display:flex;align-items:center;gap:10px;margin-bottom:20px}.panel-title img{width:35px;height:35px}.panel-title h2{font-size:17px}.panel-title p{font-size:14px;color:var(--muted);margin-top:3px}.split-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.inline-label{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .welcome-line{display:flex;align-items:center;gap:8px;margin-bottom:11px;color:#858c7a;font-size:14px}.welcome-line .icon{width:14px;height:14px}.home-heading{margin-bottom:24px}.home-heading h1{font-size:clamp(29px,3vw,42px);font-weight:500;letter-spacing:-.045em}.home-heading h1 em{font-family:Georgia,serif;font-weight:400;color:#8a9972}.home-heading p{margin-top:10px;font-size:14px;color:#8a8e80}.agent-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr);border:1px solid #e0e4d5;border-radius:21px;background:#f1f3e8;overflow:hidden;min-height:323px}.agent-compose{padding:27px 29px 24px;z-index:1}.agent-title{display:flex;gap:11px;align-items:center;margin-bottom:15px}.agent-avatar{display:grid;place-items:center;width:43px;height:43px;background:#fffbed;border:1px solid #e4e6d8;border-radius:12px}.agent-avatar img{width:34px;height:34px}.agent-title h2{font-size:19px}.agent-title p{font-size:14px;color:#829074;margin-top:3px}.agent-title .badge{margin-left:auto;border-color:#cbd8b7;background:#e7eddb;color:#718557;white-space:nowrap}.idea-form{gap:0;background:#fffefb;border:1px solid #dbe1d0;border-radius:14px;box-shadow:0 5px 10px #34552c03;overflow:hidden}.idea-form textarea{font-size:14px;border:0;border-radius:0;padding:17px 18px;min-height:104px;resize:none;background:transparent;box-shadow:none}.idea-actions{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;gap:8px;border-top:1px solid #f0f1e9}.idea-actions select{font-size:14px;width:auto;border:0;background:#f5f5ee;padding:7px 8px}.idea-actions .button{min-height:33px;padding:8px 12px;font-size:14px}.hero-points{display:flex;gap:17px;margin-top:14px;flex-wrap:wrap;color:#81916d;font-size:14px}.hero-points span{display:flex;align-items:center;gap:5px}.hero-points .icon{width:12px;height:12px}.agent-art{position:relative;overflow:hidden;background:#e5e9d5;min-height:300px;isolation:isolate}.agent-art::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#152b2a66,transparent 55%);z-index:-1}.agent-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 52%;z-index:-2}.art-caption{position:absolute;bottom:25px;left:26px;right:24px;display:flex;align-items:end;justify-content:space-between;color:white}.art-caption p{font-family:Georgia,serif;font-size:22px;line-height:1.15;max-width:200px}.art-caption span{font-size:14px;color:#f9f8e6b3}.art-label{position:absolute;top:18px;left:19px;padding:5px 8px;border-radius:5px;background:#fffdf3e8;font-size:14px;color:#586345;letter-spacing:.1em}.art-character{position:absolute;top:64px;right:17px;border:1px solid #fff7d677;background:#fbf6e9ec;backdrop-filter:blur(10px);padding:7px 10px 7px 7px;border-radius:10px;display:flex;align-items:center;gap:7px;transform:rotate(4deg);box-shadow:0 8px 20px #193d3422}.art-character img{height:26px;width:26px}.art-character p{font-size:14px;font-weight:650}.art-character span{font-size:14px;color:#829367}.workflow-strip{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:12px;padding:15px 22px;margin-top:17px;background:#fffdf8;gap:12px}.workflow-point{display:flex;align-items:center;gap:9px;font-size:14px;color:#849075}.workflow-point b{font-weight:500;color:#657451}.workflow-point i{font-style:normal;display:grid;place-items:center;width:23px;height:23px;border:1px solid #e0e5d4;border-radius:50%;font-size:14px;color:#9ba985}.workflow-point span{display:block;font-size:14px;margin-top:2px;color:#9ba090}.starter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.starter-card{border:1px solid var(--line);background:var(--panel);border-radius:14px;overflow:hidden;text-align:left;padding:0;position:relative}.starter-card:hover,.tool-card:hover{border-color:#b7c79f;box-shadow:0 5px 22px #233d2910}.starter-image{aspect-ratio:2.25;overflow:hidden;position:relative}.starter-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.starter-card:hover img{transform:scale(1.03)}.starter-image .badge{position:absolute;bottom:10px;left:12px;background:#fffaf0ef;border:0;color:#506240;font-size:14px}.starter-copy{padding:13px 15px 15px;display:flex;align-items:center;justify-content:space-between}.starter-copy h3{font-size:14px}.starter-copy p{font-size:14px;color:var(--muted);margin-top:5px}.starter-copy .icon{width:15px;height:15px;color:#a3ad97}.tool-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.tool-shortcut{display:flex;align-items:center;gap:13px;padding:17px;background:#fffdf9;border:1px solid var(--line);border-radius:12px}.tool-shortcut>.icon{width:20px;height:20px;color:#8a9a75}.tool-shortcut h3{font-size:14px}.tool-shortcut p{font-size:14px;color:var(--muted);margin-top:4px}.tool-shortcut .arrow{margin-left:auto;width:14px}
  .filter-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.tabs{display:flex;gap:5px;flex-wrap:wrap}.tab{font-size:14px;padding:7px 13px;border:1px solid transparent;border-radius:8px;background:none;color:#89907f}.tab.active{background:#e9efde;color:#506d3e;border-color:#dce6ce}.search-field{position:relative;max-width:260px}.search-field input{font-size:14px;padding-left:33px;background:#fffdf8}.search-field .icon{position:absolute;left:10px;top:12px;width:15px;height:15px;color:#939d87}.tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.tool-card{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--panel)}.tool-card>img{aspect-ratio:1.85;object-fit:cover;width:100%;background:#eef1e8}.tool-card-copy{padding:16px 17px}.tool-card h3{font-size:14px}.tool-card p{font-size:14px;color:var(--muted);margin-top:7px;min-height:36px}.tool-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:15px;color:#849370;font-size:14px}.tool-layout{display:grid;grid-template-columns:minmax(275px,.9fr) minmax(0,1.15fr);gap:24px;align-items:start}.tool-form{padding:25px}.tool-output{min-height:470px;display:flex;flex-direction:column;gap:15px}.tool-output>img,.tool-output>video{width:100%;max-height:500px;object-fit:contain;border-radius:12px;background:#f2f2e9}.tool-output .empty-state{flex:1;min-height:390px;border:0}.dropzone{display:grid;justify-items:center;gap:7px;background:#f6f8ef;border:1px dashed #ced8bc;border-radius:11px;padding:19px;cursor:pointer;text-align:center;font-weight:400}.dropzone strong{font-size:14px}.dropzone .icon{color:#8b9d70}.dropzone img{height:120px;object-fit:contain;border-radius:8px}.dropzone input{padding:5px;background:transparent;border:0;font-size:14px;max-width:245px}.tool-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tool-settings label{font-size:14px}.tool-settings select{font-size:14px;padding:9px}.output-status{display:flex;align-items:center;gap:9px;font-size:14px;padding:14px;border-radius:10px;background:var(--light-green)}.output-status .icon{color:#869967}.output-plan{display:grid;gap:17px}.output-plan p{font-size:14px;white-space:pre-wrap;color:#7f8676;margin-top:7px}
  .project-grid,.characters-grid,.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.project-card{background:var(--panel);border:1px solid var(--line);border-radius:15px;overflow:hidden}.project-card-cover{height:138px;display:grid;place-items:center;background:linear-gradient(135deg,#e8eddb,#f5efdf);position:relative}.project-card-cover img{height:100%;width:100%;object-fit:cover}.project-card-cover>.icon{height:42px;width:42px;color:#a6b48e}.project-card-cover .badge{position:absolute;left:12px;top:12px;background:#fffcf0ed}.project-card-copy{padding:16px}.project-card h3{font-size:14px}.project-card p{font-size:14px;color:var(--muted);margin-top:7px}.card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.character-card{border:1px solid var(--line);background:var(--panel);border-radius:16px;overflow:hidden}.character-card>.portrait{height:210px;width:100%;object-fit:contain;background:#f0f1e7;padding:15px}.character-card .character-copy{padding:17px}.character-copy h3{font-size:16px}.character-copy p{font-size:14px;color:var(--muted);margin-top:8px}.character-copy .badge{float:right}.character-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.character-option{text-align:left;display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fffdf7}.character-option img{height:64px;width:64px;object-fit:contain;border-radius:9px;background:#f3f4ed}.character-option.active{border-color:#80975f;background:#f0f5e5}.character-option p{font-size:14px;color:var(--muted);margin-top:4px}.episode-bar{display:flex;align-items:center;gap:8px;margin:22px 0;overflow-x:auto;padding-bottom:5px}.episode-pill{white-space:nowrap;font-size:14px;border:1px solid var(--line);background:var(--panel);border-radius:9px;padding:8px 13px;display:flex;align-items:center;gap:6px}.episode-pill.active{border-color:#a9bc89;background:#edf3e2;color:#536b40}.episode-pill .icon{width:12px;height:12px}.project-summary{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted);margin-top:9px}.stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;border-bottom:1px solid var(--line);margin-bottom:25px;padding-bottom:14px}.step{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:9px;background:transparent;padding:10px;font-size:14px;color:#90987f}.step.active{background:#edf2e3;color:#536c3d}.step i{display:grid;place-items:center;font-style:normal;border:1px solid #dce2d2;width:21px;height:21px;border-radius:50%;font-size:14px}.step.done i{background:#dbe6c7;color:#526c3b;border-color:#dbe6c7}.step i .icon{width:11px;height:11px}.episode-layout{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:22px}.episode-sidebar{display:grid;gap:16px;align-content:start}.context-card{background:#f1f4e9;border:1px solid #e0e6d4;border-radius:14px;padding:18px}.context-card h3{font-size:14px;margin-bottom:10px}.context-card p{font-size:14px;color:#879079;white-space:pre-wrap}.context-character{display:flex;gap:10px;align-items:center;margin-bottom:11px}.context-character img{height:55px;width:55px;object-fit:contain;border-radius:9px;background:#fffef5}.context-character strong{font-size:14px}.context-character span{display:block;color:#899979;font-size:14px;margin-top:4px}.next-hint{display:flex;gap:9px;align-items:start;font-size:14px;color:#8b947d;line-height:1.7}.next-hint img{width:25px;height:25px;flex:none}.plan-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0}.plan-controls select{width:auto;font-size:14px}.shot-list{display:grid;gap:17px}.shot-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden}.shot-header{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line)}.shot-number{color:#a0ad88;font-size:14px}.shot-header h3{font-size:14px;flex:1}.shot-header .icon-button{width:26px;height:26px}.shot-body{padding:17px;display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1fr);gap:18px}.shot-visual{aspect-ratio:16/10;border:1px dashed #dce3cf;border-radius:9px;background:#f1f4e8;display:grid;place-items:center;overflow:hidden}.shot-visual img,.shot-visual video{width:100%;height:100%;object-fit:contain}.shot-visual .icon{width:27px;height:27px;color:#adb89c}.shot-directions{display:flex;flex-direction:column;gap:11px}.shot-directions p{font-size:14px;color:#7c8570;white-space:pre-wrap}.shot-directions .eyebrow{font-size:14px;margin-bottom:3px}.shot-directions .button-row{margin-top:auto}.shot-directions .button{font-size:14px;padding:8px 10px;min-height:32px}.candidate-row{display:flex;gap:8px;overflow-x:auto;padding:0 17px 16px}.candidate{position:relative;flex:none;background:#f4f4ea;border:2px solid transparent;border-radius:7px;overflow:hidden;padding:0}.candidate.selected{border-color:#6c8950}.candidate img{width:75px;height:48px;object-fit:cover}.candidate span{display:block;font-size:14px;color:#788762;padding:3px 5px}.shot-status{font-size:14px;color:#8b976f;padding:0 17px 13px}.export-clips{display:flex;gap:10px;overflow-x:auto;margin:20px 0}.export-clip{min-width:105px;max-width:160px;flex:1}.export-clip img{aspect-ratio:16/9;object-fit:cover;border-radius:8px}.export-clip p{font-size:14px;margin-top:6px;color:#899179}.recap-box{margin-top:25px;padding-top:23px;border-top:1px solid var(--line)}.recap-box h3{margin-bottom:9px}.recap-box p{font-size:14px;color:var(--muted);margin-bottom:15px}.library-card{padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:14px;min-width:0}.library-card>img,.library-card>video{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:9px;background:var(--soft)}.library-card>.media-placeholder{aspect-ratio:4/3;background:#f0f3e6;border-radius:9px;display:grid;place-items:center;color:#99a584}.library-card p{font-size:14px;margin-top:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.library-card .card-footer{margin-top:10px}.library-card .button{font-size:14px;padding:6px 8px;min-height:28px}.job-error{font-size:14px;color:var(--red);margin-top:8px}.saving{font-size:14px;color:#8d9b7b}
  dialog{padding:0;border:1px solid #e4e7dc;border-radius:18px;max-width:570px;width:calc(100% - 32px);color:var(--ink);background:var(--panel);box-shadow:0 24px 90px #152d3525;max-height:90dvh;overflow:auto}dialog::backdrop{background:#16322655;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:23px 25px 0}.dialog-head h2{font-size:23px}.dialog-body{padding:20px 25px 25px}.dialog-head p{font-size:14px;color:var(--muted);margin-top:7px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:8px}.dialog-body .form-error{margin-top:0}.quote-value{font-size:38px;letter-spacing:-.04em;margin:15px 0}.quote-value span{font-size:14px;color:var(--muted);letter-spacing:0}.quote-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0;display:grid;gap:10px;margin-bottom:18px}.quote-details>div{display:flex;justify-content:space-between;gap:15px;font-size:14px}.quote-details strong{font-weight:500}.dialog-body .notice{margin-bottom:18px}#toast{position:fixed;bottom:25px;left:calc(50% + 85px);transform:translateX(-50%);background:#234735;color:#fff;box-shadow:0 5px 25px #18362322;border-radius:10px;padding:12px 19px;font-size:14px;z-index:100;max-width:calc(100% - 32px);display:none}#toast.visible{display:block}.login-page{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.login-card{align-self:center;width:100%;max-width:470px;padding:40px 50px;margin:auto}.login-card .brand{margin-bottom:58px}.login-card>.eyebrow{margin-bottom:19px}.login-card h1{font-size:42px;line-height:1.15}.login-card>.muted{font-size:14px;margin:20px 0 28px;line-height:1.8}#login-options{display:grid;gap:13px}#login-options form{gap:12px;margin-top:10px}.login-note{font-size:14px;color:#919987;margin-top:26px}.login-art{position:relative;min-height:100dvh;overflow:hidden}.login-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58%}.login-art::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#122b31c9,transparent 75%)}.login-art>div{position:absolute;z-index:1;bottom:70px;left:50px;right:20px;color:#fffce9}.login-art .eyebrow{color:#e9dfc0aa;font-size:14px}.login-art p{font-size:42px;font-family:Georgia,serif;line-height:1.17;margin-top:17px}.preserved{white-space:pre-wrap}
}
@layer responsive {
  @media(min-width:1500px){.main{padding-top:42px}.agent-hero{min-height:350px}.agent-compose{padding:32px 34px}.idea-form textarea{min-height:119px}.starter-image{aspect-ratio:2.5}}
  @media(max-width:1150px){.shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:25px 13px}.main{padding:28px}.topbar{padding:0 28px}.agent-hero{grid-template-columns:minmax(0,1.3fr) minmax(210px,1fr)}.agent-compose{padding:22px}.agent-title .badge{display:none}.episode-layout{grid-template-columns:1fr}.episode-sidebar{grid-template-columns:1fr 1fr}.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-strip{padding:14px}.workflow-point span{display:none}.tool-shortcut{padding:13px;gap:8px}.tool-shortcut p{font-size:14px}}
  @media(max-width:850px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar .brand>img{width:120px}.main{padding:24px}.topbar{padding:0 24px}.agent-hero{grid-template-columns:1fr}.agent-art{display:none}.starter-grid{gap:10px}.starter-copy{padding:12px}.starter-copy h3{font-size:14px}.starter-copy .icon{display:none}.tool-layout{grid-template-columns:1fr}.tool-output{min-height:240px}.tool-output .empty-state{min-height:230px}.project-grid,.characters-grid,.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-shortcuts{gap:8px}.tool-shortcut p{display:none}.tool-shortcut .arrow{display:none}.local-pill{display:none}.shot-body{grid-template-columns:minmax(160px,.8fr) minmax(0,1fr)}.topbar-actions{gap:6px}.login-card{padding:30px}.login-card h1,.login-art p{font-size:33px}}
  @media(max-width:640px){.shell{display:block}.sidebar{position:fixed;left:0;top:0;width:240px;z-index:30;transform:translateX(-100%);transition:transform .2s}.shell.nav-open .sidebar{transform:translateX(0)}.shell.nav-open .mobile-shade{display:block;position:fixed;inset:0;background:#19392855;z-index:29;border:0}.mobile-menu{display:inline-grid}.topbar{height:60px;padding:0 16px}.breadcrumb>span{display:none}.breadcrumb{gap:7px}.topbar-actions>.icon-button{display:none}.main{padding:25px 17px 40px}.home-heading h1{font-size:30px}.home-heading p{max-width:285px;font-size:14px}.agent-compose{padding:20px 17px}.agent-title h2{font-size:17px}.hero-points{gap:12px;font-size:14px}.workflow-strip{padding:13px 10px;gap:7px}.workflow-point{gap:6px;font-size:14px}.workflow-point i{width:19px;height:19px;font-size:14px}.starter-grid{grid-template-columns:1fr}.starter-card{display:grid;grid-template-columns:114px 1fr}.starter-image{aspect-ratio:auto;height:91px}.starter-image .badge{font-size:14px;padding:2px 4px;left:7px;bottom:7px}.starter-copy{padding:16px}.starter-copy h3{font-size:14px}.starter-copy .icon{display:block}.tool-shortcuts{grid-template-columns:1fr}.tool-shortcut{padding:14px 16px}.tool-shortcut p{display:block;font-size:14px}.tool-shortcut .arrow{display:block}.section-heading{margin-top:25px}.section-heading h2{font-size:17px}.page-heading{align-items:start;margin-bottom:22px}.page-heading h1{font-size:26px}.page-heading>.button{font-size:14px;padding:9px 11px;flex:none}.filter-bar{align-items:stretch;flex-direction:column;gap:14px}.search-field{max-width:none}.tools-grid{gap:12px}.tool-card h3{font-size:14px}.tool-card-copy{padding:12px}.tool-card p{font-size:14px}.tool-card-footer{font-size:14px}.tool-card-footer .icon{width:14px}.project-grid,.characters-grid,.library-grid{gap:12px}.project-card-cover{height:107px}.project-card-copy{padding:12px}.project-card h3{font-size:14px}.character-card>.portrait{height:155px}.character-card .character-copy{padding:12px}.character-copy h3{font-size:14px}.character-picker{grid-template-columns:1fr}.panel{padding:19px}.stepper{gap:2px}.step{padding:9px 5px;font-size:14px;gap:5px}.step i{width:18px;height:18px;font-size:14px}.episode-sidebar{grid-template-columns:1fr}.shot-body{grid-template-columns:1fr}.shot-visual{aspect-ratio:16/9}.split-fields{gap:11px}.login-page{grid-template-columns:1fr}.login-card{max-width:440px;padding:35px}.login-card .brand{margin-bottom:48px}.login-art{display:none}.login-card h1{font-size:39px}#toast{left:50%}.dialog-head{padding:21px 20px 0}.dialog-body{padding:18px 20px 22px}.dialog-head h2{font-size:21px}.project-summary{flex-wrap:wrap}.project-summary .badge{font-size:14px}.workflow-point b{font-size:14px}.library-card .card-footer{gap:6px;flex-wrap:wrap}}
  @media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.dialog-reference{max-height:240px;width:100%;object-fit:contain;background:#f1f4e9;border-radius:12px;padding:12px}

@media(min-width:641px){.mobile-menu{display:none}}

/* Task-first Studio: one instruction, one usable example. */
@layer components {
  .empty-state p:empty{display:none}.context-example>summary,.sample-details>summary{display:none}.context-example .example-card>img,.context-example .example-card>video{max-height:190px}.sample-details>.example-card{min-width:0}
  .frame-download{flex-wrap:wrap}.frame-download .compact-details{margin:0}.frame-download .compact-details[open]{flex-basis:100%}
}
@layer responsive {
  @media(max-width:640px){.context-example>summary,.sample-details>summary{display:list-item;font-size:14px;cursor:pointer;color:var(--green)}.context-example[open]>summary,.sample-details[open]>summary{margin-bottom:14px}.episode-layout>.episode-sidebar{order:-1;gap:9px}.episode-sidebar .context-card{padding:13px 16px}.tool-output:has(.sample-details){order:-1;padding:15px 19px;min-height:0}.episode-layout{gap:20px}.page-heading:has(.project-summary){flex-wrap:wrap}.page-heading:has(.project-summary)>div:first-child{width:100%}}
}
@layer components {
  .project-card-cover{overflow:hidden}.project-card-cover>img{position:absolute;inset:0;object-fit:cover}.dropzone{position:relative}.dropzone input[type="file"]{position:absolute;inset:0;width:100%;height:100%;max-width:none;opacity:0;cursor:pointer}.dropzone:focus-within{outline:3px solid #98af70;outline-offset:3px}.dropzone:has(img)>.icon{display:none}.agent-compose .idea-form textarea{font-size:14px}.idea-actions .button,.idea-actions select{font-size:14px}
}
@layer components {
  .home-heading{margin-bottom:25px}.entry-tabs{display:flex;gap:5px;margin:22px 0 15px;background:#e7ecdf;padding:4px;border-radius:11px}.entry-tabs button{flex:1;border:0;background:transparent;border-radius:8px;padding:9px 5px;font-size:14px;color:#69735e}.entry-tabs button[aria-pressed="true"]{background:var(--panel);color:var(--green);box-shadow:0 2px 6px #29442b0a;font-weight:650}.entry-instruction{color:#66725c;font-size:14px;margin-bottom:13px}.entry-alternative{margin-top:13px}.agent-title{margin-bottom:0}.idea-form textarea{min-height:130px}.home-example{display:flex;flex-direction:column;isolation:auto;background:#e7ebdc}.home-example::after{display:none}.home-example>img,.home-example>video{position:static;inset:auto;width:100%;height:270px;flex:1;min-height:0;object-fit:cover;z-index:auto}.home-example>video{object-fit:contain;background:#1d322b}.example-caption{padding:18px 21px;background:#f6f5ec;display:grid;grid-template-columns:1fr auto;gap:7px 12px;align-items:center}.example-caption .eyebrow{grid-column:1/-1}.example-caption h3{font-size:16px}.example-caption .button{font-size:14px}.agent-hero{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.example-card{display:grid;gap:15px;align-content:start}.example-card>img,.example-card>video{width:100%;max-height:340px;object-fit:cover;border-radius:10px;background:var(--soft)}.example-card p{font-size:14px;line-height:1.7;color:#6e7867}.example-card .button{justify-self:start}.sample-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.sample-heading .small{font-size:14px}.sample-prompt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.example-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.example-pair figure{margin:0}.example-pair img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:10px}.example-pair figcaption{font-size:14px;color:var(--muted);margin-top:6px}.settings-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0}.settings-details summary,.compact-details summary,.context-card summary{font-size:14px;cursor:pointer;color:#65745a}.settings-details[open]{display:grid;gap:15px}.settings-details[open]>summary{margin-bottom:16px}.settings-details>.tool-settings+.tool-settings{margin-top:13px}.settings-details>label,.settings-details>.split-fields{margin-top:14px}.compact-details{margin:14px 0}.compact-details p{margin-top:8px}.context-card[open]>.context-character,.context-card[open]>p{margin-top:12px}.context-card.example-card img,.context-card.example-card video{max-height:190px}.context-card.example-card{gap:12px}.context-card.example-card .eyebrow{font-size:14px}.tool-output{min-height:0}.reference-input{display:grid;gap:5px}.reference-input>.text-button{justify-self:end}.form-error:empty{display:none}.step{flex-wrap:wrap}.step small{font-size:14px;color:#89917e}.step i>.icon{width:12px;height:12px}.shot-shortcuts{display:flex;gap:20px;margin-top:20px;flex-wrap:wrap}.frame-download{display:flex;align-items:center;gap:18px;padding:0 17px 14px}.asset-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:12px}.library-card .asset-actions .text-button{font-size:14px}.character-copy .button-row{margin-top:12px}.episode-layout>.episode-sidebar{position:sticky;top:22px;align-self:start}.episode-layout>section{min-width:0}.episode-layout .section-heading:first-child{margin-top:0}.shot-list+.section-heading{flex-wrap:wrap}.profile .small{font-size:14px}
}
@layer responsive {
  @media(max-width:1150px){.episode-layout>.episode-sidebar{position:static}.episode-sidebar .example-card{max-width:440px}.agent-hero{grid-template-columns:minmax(0,1.2fr) minmax(200px,1fr)}.example-caption{grid-template-columns:1fr}.example-caption .button{justify-self:start}}
  @media(max-width:850px){.agent-hero{grid-template-columns:1fr}.home-example{display:grid;grid-template-columns:150px 1fr;min-height:140px}.home-example>img,.home-example>video{width:100%;height:100%;max-height:190px}.example-caption{padding:16px}.sample-prompt{-webkit-line-clamp:2}}
  @media(max-width:640px){.home-heading{margin-bottom:20px}.entry-tabs{margin-top:18px}.entry-instruction{font-size:14px}.entry-tabs button{font-size:14px;min-height:36px}.home-example{grid-template-columns:110px 1fr;min-height:150px}.example-caption h3{font-size:14px}.step{gap:4px;flex-direction:column}.step i{display:none}.step small{font-size:14px}.episode-layout .section-heading{align-items:start;flex-wrap:wrap}.episode-layout .section-heading .button-row{gap:7px}.tool-form{padding:19px}.sample-heading{flex-wrap:wrap}.episode-sidebar .example-card{max-width:none}.sample-prompt{-webkit-line-clamp:3}.example-card>img,.example-card>video{max-height:270px}.asset-actions{align-items:start;gap:8px}.entry-alternative .text-button{min-height:34px}}
}
@layer components {
.workflow-example{background:#f6f5ec;min-width:0;overflow:hidden}.workflow-tabs{display:flex;gap:4px;padding:13px 14px 10px;background:#f6f5ec}.workflow-tabs button{flex:1;padding:9px 5px;border:0;border-radius:8px;background:transparent;color:#75816c;font-size:14px;cursor:pointer}.workflow-tabs button[aria-selected=true]{background:#e5ebdd;color:#234b3d;font-weight:650}.workflow-tabs button:focus-visible{outline:2px solid #8a9e6b;outline-offset:2px}.example-stage{position:relative;flex:1;min-height:290px;background:#ecefdf;overflow:hidden}.example-stage>img,.example-stage>video{width:100%;height:100%;min-height:290px;max-height:360px;object-fit:cover;display:block}.example-stage>video{object-fit:contain;background:#20362e}.example-media-label{position:absolute;left:16px;bottom:17px;color:#fff;background:#203b32dd;border-radius:8px;padding:8px 12px;font-size:14px;pointer-events:none}.example-stage:has(video) .example-media-label{top:13px;bottom:auto}.example-scenes{padding:24px 23px;display:grid;gap:17px;min-height:290px}.example-scene{display:flex;align-items:center;gap:15px;border-bottom:1px solid #d7dfcd;padding-bottom:16px}.example-scene>span{font-family:Georgia,serif;font-size:24px;color:#9aa880}.example-scene strong{font-size:14px}.example-scene p{font-size:14px;color:#73806c;margin-top:5px}.example-scene>.icon{margin-left:auto;width:17px;color:#9da98a}.example-next{padding:22px;min-height:290px}.example-next>img{width:100%;height:140px;object-fit:cover;border-radius:12px}.reference-thread{display:flex;align-items:center;gap:8px;margin:15px 0 10px;font-size:14px;color:#758368}.reference-thread .icon{width:15px}.example-next h3{font-size:18px;line-height:1.4}.example-next p{margin:8px 0 12px;font-size:14px;color:#62715f}.workflow-example .example-caption{padding-top:15px}.continuation-banner{display:flex;gap:14px;align-items:center;background:#edf2e6;border:1px solid #dfe6d6;border-radius:14px;padding:16px 20px;margin-bottom:24px}.continuation-banner>img{width:58px;height:58px;border-radius:9px;object-fit:cover}.continuation-banner p{font-size:14px;color:#708068;margin-top:5px}.next-step{border-top:1px solid var(--line);padding-top:18px;margin-top:19px}.next-step .small{margin-bottom:10px}.import-preview{width:100%;max-height:200px;object-fit:contain;border-radius:12px;background:var(--soft)}.template-shots{display:grid;gap:10px;margin:18px 0}.template-shots>div{display:flex;gap:12px;padding:12px;border:1px solid var(--line);border-radius:10px}.template-shots p{font-size:14px;color:var(--muted);margin-top:4px}
}
@layer responsive {
@media(max-width:850px){.home-example.workflow-example{display:flex;min-height:0}.workflow-example .example-stage{min-height:240px;max-height:300px}.example-stage>img,.example-stage>video{min-height:240px;max-height:300px}.example-next{min-height:240px}.example-next>img{height:110px}.example-scenes{min-height:240px;gap:12px;padding:18px}.workflow-example .example-caption{grid-template-columns:1fr auto}.workflow-example .example-caption .button{justify-self:end}}
@media(max-width:640px){.workflow-tabs{padding:10px}.workflow-tabs button{min-height:40px}.workflow-example .example-caption{grid-template-columns:1fr}.workflow-example .example-caption .button{justify-self:start}.example-stage,.example-next,.example-scenes{min-height:260px}.continuation-banner{align-items:flex-start;padding:14px}.reference-thread{flex-wrap:wrap}}
}
@layer components {.saved-reference{width:100%;max-height:200px;object-fit:contain;border-radius:10px;background:var(--soft);margin:0 0 10px}.context-card>.reference-thread{margin-top:0}.saved-reference+.small{font-size:14px}.context-card:has(.saved-reference) .compact-details{margin-bottom:0}}
.studio-return-link{font-size:14px;color:var(--muted,#65745f);text-decoration:none;border-right:1px solid #dce3d4;padding-right:16px;margin-right:6px}.studio-return-link:hover{color:#204c38;text-decoration:underline}@media(max-width:640px){.studio-return-link{font-size:14px;padding-right:8px}}
/* Small, calm generation confirmation; other dialogs retain their layout. */
dialog.generation-confirm{width:370px;max-width:calc(100vw - 32px);border-radius:22px;box-shadow:0 16px 64px #173c3024;border:1px solid #e2e8d9}
dialog.generation-confirm::backdrop{background:#203c3024;backdrop-filter:blur(1.5px)}
.generation-confirm .dialog-head{padding:23px 24px 0;align-items:center;gap:12px}
.generation-confirm .dialog-head h2{font-size:20px;font-weight:500;letter-spacing:-.035em;line-height:1.3}
.generation-confirm .dialog-head .icon-button{width:28px;height:28px;min-width:28px;color:#8a9681}
.generation-confirm .dialog-body{padding:7px 24px 18px}
.generation-meta{font-size:14px;color:#819078;line-height:1.5;margin:0 0 20px}.generation-meta>span{padding:0 5px}
.generation-cost{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#eff3e7;border-radius:13px;font-size:14px;color:#6a7d62}
.generation-cost strong{font-size:23px;font-weight:500;letter-spacing:-.04em;color:#2e5541;font-variant-numeric:tabular-nums}.generation-cost small{font-size:14px;letter-spacing:0;font-weight:400;margin-left:3px}
.generation-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;margin-top:20px}.generation-actions .button{min-height:43px;padding:10px 12px;border-radius:12px;font-size:14px}.generation-actions .secondary{background:transparent;border-color:transparent;color:#7a8871}.generation-actions .secondary:hover{background:#f1f3eb}.generation-actions .primary{box-shadow:0 4px 10px #244e3b12}
.generation-note{font-size:14px;text-align:center;line-height:1.5;color:#8c9682;margin:13px 0 0}.generation-confirm #dialog-error:empty{display:none}
@media(prefers-reduced-motion:no-preference){dialog.generation-confirm[open]{animation:confirm-appear .18s ease-out}@keyframes confirm-appear{from{opacity:0;transform:translateY(6px) scale(.985)}to{opacity:1;transform:none}}}
.inline-generation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;width:100%;padding:12px 0 0;border-top:1px solid #e1e7d8;box-sizing:border-box;text-align:left}
.inline-generation-copy{display:flex;flex-direction:column;gap:3px;padding-left:2px}.inline-generation-copy strong{font-size:14px;font-weight:500;color:#365941}.inline-generation-copy>span{font-size:14px;color:#85917b}
.inline-generation-actions{display:flex;align-items:center;gap:9px}.inline-generation-actions .primary{min-height:40px;padding:10px 20px;border-radius:11px;font-size:14px;box-shadow:none}.inline-generation-actions .icon-button{width:28px;height:28px;color:#849079}.inline-generation .form-error{flex-basis:100%;margin:0}.inline-generation .form-error:empty{display:none}
#tool-form>button[hidden]{display:none}
@media(prefers-reduced-motion:no-preference){.inline-generation{animation:confirm-appear .16s ease-out}}

/* Prioritize the active task and its next action in the first screen. */
.main{padding-top:22px}.home-heading{margin-bottom:18px}.home-heading h1{font-size:32px}.page-heading{margin-bottom:18px}.page-heading h1{font-size:28px}.agent-compose{padding:20px}.entry-modes{margin:14px 0}.entry-instruction{margin-bottom:10px}.idea-form textarea{min-height:112px}.home-example>img,.home-example>video{height:230px}.example-caption{padding:14px 18px}.tool-layout .panel{padding:20px}.tool-layout textarea{min-height:110px}.topbar{height:64px}
@media(max-width:640px){.main{padding:16px 14px 28px}.home-heading h1{font-size:26px}.page-heading h1{font-size:25px}.agent-compose{padding:15px}.entry-modes{margin:12px 0}.idea-form textarea{min-height:96px}.home-example{min-height:96px;grid-template-columns:100px 1fr}.home-example>img,.home-example>video{max-height:130px}.example-caption{padding:12px}.example-caption h3{font-size:14px}.tool-layout .panel{padding:15px}}

.workflow-example .example-stage,.workflow-example .example-stage>img,.workflow-example .example-stage>video{min-height:0;max-height:240px}
@media(max-width:640px){.workflow-example .example-stage{height:120px;min-height:120px;max-height:120px}.workflow-example .example-stage>img,.workflow-example .example-stage>video{height:120px;min-height:120px;max-height:120px;object-fit:cover}.workflow-example .example-caption{grid-template-columns:1fr auto;gap:6px 10px;padding:12px}.workflow-example .example-caption .button{justify-self:end}.workflow-tabs{padding:8px}.workflow-tabs button{min-height:36px}.example-next,.example-scenes{min-height:0}}

.entry-recovery{margin:0 0 20px;padding:18px 22px;border:1px solid #d8e1cc;border-radius:16px;background:#f3f6eb;color:#365842}.entry-recovery p{margin:0 0 12px;line-height:1.6;font-size:14px}

.studio-tour{width:min(860px,calc(100% - 32px));max-height:90vh;border:1px solid #dce4d4;border-radius:28px;padding:32px;background:#fffdf6;color:#254e3c;box-shadow:0 28px 90px #163d3233}.studio-tour::backdrop{background:#12392f60;backdrop-filter:blur(5px)}.tour-heading{text-align:center}.tour-heading img{display:block;margin:0 auto 12px}.tour-heading h2{font-size:30px;margin:12px 0}.tour-heading p,.tour-grid p{color:#687e6c;line-height:1.6}.tour-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:26px 0}.tour-grid article{padding:20px;border-radius:18px;background:#f0f4e8}.tour-grid h3{margin:0}.tour-grid a{font-size:14px;font-weight:600;color:#305d43}.tour-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tour-footer span{margin-right:auto;font-size:14px;color:#748270}.agent-workspace{max-width:1080px;margin:auto}.agent-workspace header h1{font-size:36px}.agent-workspace header p{color:#748270;line-height:1.6}.agent-workspace .creative-agent{border:1px solid #dce4d4;border-radius:24px;background:#fffdf7;padding:26px;margin:24px 0}.agent-workspace .creative-agent>textarea{display:block;width:100%;min-height:140px}.creative-agent-controls,.creative-reference,.creative-ideas{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.creative-reference img{max-width:100px;max-height:90px;object-fit:contain}.creative-agent-controls label{min-width:120px}.creative-ideas button{background:#eff3e6;border:0;border-radius:18px;padding:9px 13px}.creative-agent .button-primary{background:#2d5842;color:white}.creative-deliveries{margin-top:24px}.delivery-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.delivery-media img,.delivery-media video{max-width:100%;border-radius:16px}.creative-reference-button{border:1px dashed #bdcdb3;border-radius:12px;background:#f3f6ed;padding:12px}.creative-quote-hint{color:#748270;font-size:14px}@media(max-width:640px){.tour-grid{grid-template-columns:1fr}.studio-tour{padding:22px}.agent-workspace .creative-agent{padding:18px}}

.model-picker-row{display:flex;align-items:flex-end;gap:12px;margin:18px 0 4px;position:relative;z-index:12;flex-wrap:wrap}
.model-picker{position:relative;min-width:0;max-width:100%}
.model-picker>summary{list-style:none;display:flex;align-items:center;gap:8px;min-height:42px;box-sizing:border-box;padding:8px 12px;border:1px solid #dfe5d6;border-radius:10px;background:#f7f8f1;cursor:pointer;color:#42664e;font-size:14px;line-height:20px;transition:background .15s,border-color .15s}
.model-picker>summary::-webkit-details-marker{display:none}
.model-picker>summary:hover,.model-picker[open]>summary{background:#eef3e6;border-color:#b9cbaa}
.model-picker>summary:focus-visible{outline:2px solid #829e70;outline-offset:3px}
.model-picker>summary strong{font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.model-picker>summary>.model-tier{display:none}
.model-symbol{font-size:17px;line-height:20px;color:#7b9972;flex:0 0 auto}
.model-chevron{font-size:14px;color:#829376;margin-left:5px;line-height:1;transition:transform .15s}
.model-picker[open] .model-chevron{transform:rotate(180deg)}
.model-tier{font-size:14px;font-weight:400;letter-spacing:0;background:#eef2e6;color:#75846a;border-radius:5px;padding:2px 6px;white-space:nowrap}
.model-picker-panel{position:absolute;left:0;bottom:calc(100% + 8px);width:min(344px,78vw);box-sizing:border-box;padding:10px;background:#fffef9;border:1px solid #dce3d4;border-radius:14px;box-shadow:0 10px 36px #2749341c;z-index:30}
.model-picker-panel input{width:100%;height:38px;box-sizing:border-box;padding:8px 11px;border:1px solid #e3e8db;border-radius:8px;background:#f7f8f1;font:inherit;font-size:14px;color:#42664e}
.model-picker-panel input:focus{outline:2px solid #b9cbaa;outline-offset:1px}
.model-count{display:block;padding:9px 3px 3px;font-size:14px;color:#8a9780}
.model-options{max-height:min(300px,45vh);overflow:auto;overscroll-behavior:contain;margin-top:4px;scrollbar-width:thin;scrollbar-color:#cbd6bf transparent}
.model-option{display:block;width:100%;text-align:left;padding:10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#355944;cursor:pointer}
.model-option:hover{background:#f3f6ed}
.model-option[aria-pressed=true]{background:#edf3e4;border-color:#dce7cf}
.model-option:focus-visible{outline:2px solid #829e70;outline-offset:-2px}
.model-option>div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.model-option strong{font-size:14px;font-weight:600;line-height:20px}
.model-option p{font-size:14px;line-height:1.5;margin:4px 0;color:#819077}
.model-option small{font-size:14px;line-height:1.5;color:#607853}
.model-picker-row label,.creative-agent-controls>label{font-size:14px;display:grid;gap:5px;color:#7a8c6e}
.model-picker-row select,.creative-agent-controls select{height:42px;box-sizing:border-box;padding:8px 10px;border:1px solid #dfe5d6;border-radius:10px;background:#f7f8f1;color:#42664e;font:inherit;font-size:14px}

.creative-agent{padding:24px 6px 10px}.creative-agent[hidden]{display:none}.creative-agent-heading{margin-bottom:28px}.creative-agent-heading .eyebrow{font-size:14px;letter-spacing:.17em;color:#859676}.creative-agent-heading h2{font-family:Georgia,serif;font-weight:400;font-size:38px;line-height:1.2;margin:14px 0;color:#305841}.creative-agent-heading p{max-width:700px;line-height:1.7;color:#79876d}.creative-agent>label{display:block;font-size:14px;font-weight:600;margin-bottom:12px}.creative-agent>textarea{display:block;width:100%;min-height:165px;border:1px solid #dbe2d2;background:#f8f9f2;border-radius:18px;padding:22px;resize:vertical;font:inherit;color:#345d48;line-height:1.7}.creative-agent>textarea:focus{outline:2px solid #a4b88f;outline-offset:3px}.creative-reference{display:flex;align-items:center;gap:15px;margin-top:14px}.creative-reference img{width:64px;height:64px;object-fit:cover;border-radius:12px}.creative-reference button,.creative-ideas button,.creative-delivery>button:not(.button){background:#f0f4e7;color:#56734b;border:1px solid #dce4cf;border-radius:24px;padding:10px 16px;cursor:pointer}.creative-reference [hidden]{display:none}.creative-agent-controls{display:flex;align-items:end;gap:20px;flex-wrap:wrap;margin:20px 0 12px}.creative-agent-controls .model-picker-row{margin:0}.creative-quote-hint{font-size:14px;color:#7b8b70;line-height:1.6}.creative-ideas{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.creative-ideas button{font-size:14px}.creative-agent>.button{margin-top:3px}.creative-status{font-size:14px;line-height:1.6;white-space:pre-line}.creative-deliveries{display:grid;gap:20px;margin-top:28px}.creative-delivery{border:1px solid #dce4d1;background:#f5f7ed;border-radius:20px;padding:24px}.creative-delivery>header{display:flex;justify-content:space-between;align-items:center;gap:12px}.creative-delivery h3{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:0;color:#355f45}.delivery-state{font-size:14px;padding:7px 12px;background:#e4ecd7;border-radius:30px;white-space:nowrap}.creative-delivery>p{line-height:1.65;color:#6b7b61}.delivery-total{font-weight:600}.creative-delivery details{font-size:14px;padding:12px 0}.creative-delivery>small{display:block;margin:14px 0;color:#7a886e;line-height:1.6}.delivery-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px;margin:16px 0}.delivery-media video,.delivery-media img{width:100%;max-height:460px;object-fit:contain;background:#e7eddf;border-radius:12px}.delivery-media a{display:block;font-size:14px;margin-top:8px;color:#356347}
.agent-workspace .creative-agent{padding:26px}.model-options [hidden]{display:none}
.panel>video{display:block;width:auto;height:auto;max-width:100%;max-height:62vh;object-fit:contain;margin:20px auto;border-radius:14px}
/* Preserve source proportions across generated-media surfaces. */
.tool-output>video,.tool-output>img,.library-card>video,.library-card>img,.delivery-media video,.delivery-media img{display:block;width:auto;height:auto;max-width:100%;max-height:62vh;aspect-ratio:auto;object-fit:contain;margin-inline:auto}
.shot-visual:has(video),.shot-visual:has(img){aspect-ratio:auto;align-self:start;border-style:solid}
.shot-visual video,.shot-visual img{width:auto;height:auto;max-width:100%;max-height:440px;object-fit:contain}
@media(max-width:640px){.tool-output>video,.tool-output>img,.shot-visual video,.shot-visual img{max-height:55vh}}

/* A small, anchored walkthrough: one action at a time. */
.guided-tour{position:fixed;inset:0;z-index:10000;pointer-events:none}
.tour-spotlight{position:fixed;border:1px solid #d3dfc7;border-radius:13px;box-shadow:0 0 0 4px #f7fae71c,0 0 0 9999px #102e2459;pointer-events:none;transition:top .24s,left .24s,width .24s,height .24s}
.tour-bubble{position:fixed;box-sizing:border-box;background:linear-gradient(145deg,#fffefb 0%,#faf9f0 100%);color:#234d3d;border:1px solid #ffffffd9;border-radius:20px;padding:22px 24px 20px;box-shadow:0 2px 4px #183b2910,0 12px 28px -8px #183b292b,0 28px 64px -16px #183b2938,inset 0 0 0 1px #e7e7d95c;pointer-events:auto;outline:none}
.tour-bubble[data-side=right]:before{content:'';position:absolute;left:-6px;top:29px;width:11px;height:11px;background:#fffefa;transform:rotate(45deg);border-left:1px solid #ffffffd9;border-bottom:1px solid #ffffffd9;border-radius:0 0 0 2px}
.tour-bubble header,.tour-bubble footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tour-bubble header{margin-bottom:18px}
.tour-signature{display:flex;align-items:center;gap:10px}
.tour-signature img{width:27px;height:30px;object-fit:contain}
.tour-bubble .tour-count{font-size:14px;font-weight:500;letter-spacing:.13em;color:#7a8877;font-variant-numeric:tabular-nums}
.tour-bubble h2{font-size:26px;line-height:1.15;font-family:Georgia,'Times New Roman',serif;font-weight:400;margin:0 0 10px;letter-spacing:-.035em;color:#234d3d}
.tour-bubble p{font-size:14px;line-height:1.65;margin:0 0 22px;color:#71806e;max-width:250px}
.tour-bubble footer{padding-top:15px;border-top:1px solid #dce2d478}
.tour-bubble button{font:inherit;cursor:pointer;border:0;transition:background .16s,box-shadow .16s,transform .16s}
.tour-bubble .tour-skip{background:transparent;color:#7a8877;font-size:14px;padding:6px 0}
.tour-bubble .tour-skip:hover{color:#234d3d}
.tour-bubble .tour-next{background:linear-gradient(#34654f,#244e3e);color:#fffef8;border:1px solid #224b3b;border-radius:10px;padding:10px 16px;font-size:14px;font-weight:500;box-shadow:inset 0 1px 0 #ffffff24,0 3px 7px #244e3e17;white-space:nowrap}
.tour-bubble .tour-next:hover{background:linear-gradient(#3e725a,#2d5b48);box-shadow:inset 0 1px 0 #ffffff24,0 4px 10px #244e3e26;transform:translateY(-1px)}
.tour-bubble .tour-next:active{transform:translateY(0)}
.tour-bubble .tour-back{background:transparent;color:#70836d;border-radius:8px;width:26px;height:32px;padding:0}
.tour-bubble .tour-back:hover:not(:disabled){background:#eaf0e3}
.tour-bubble .tour-back:disabled{opacity:.25;cursor:default}
.tour-dots{display:flex;gap:4px;margin-right:auto}.tour-dots i{width:8px;height:3px;border-radius:3px;background:#dfe4d7}.tour-dots i.active{width:18px;background:#749569}
.tour-bubble button:focus-visible{outline:2px solid #86a670;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.tour-spotlight,.tour-bubble button{transition:none}}

/* Consistent creation workspace: primary choices visible, secondary details quiet. */
.primary-tool-settings{display:grid;gap:18px;margin:20px 0}.character-outputs{border:0;padding:0;margin:0;min-width:0}.character-outputs legend{font-weight:600;margin-bottom:12px}.character-output-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.character-output-options label{position:relative;margin:0;cursor:pointer}.character-output-options input{position:absolute;opacity:0;width:1px;height:1px}.character-output-options span{display:flex;flex-direction:column;gap:5px;border:1px solid #dfe5d8;background:#fffef9;border-radius:14px;padding:14px;min-height:88px;transition:background .15s,border-color .15s}.character-output-options strong{font-size:14px}.character-output-options small{font-size:14px;font-weight:400;line-height:1.5;color:#72806b}.character-output-options input:checked+span{background:#edf3e5;border-color:#819974;box-shadow:inset 0 0 0 1px #819974}.character-output-options input:focus-visible+span{outline:3px solid #b3c49e;outline-offset:3px}.tool-form{min-width:0}.tool-form textarea{font-size:15px;line-height:1.7}.tool-form .settings-details{margin-top:20px}.tool-output .button-row,.library-card .asset-actions{flex-wrap:wrap;gap:10px}.library-card>p{overflow-wrap:anywhere;line-height:1.5;font-size:14px}.library-card video{width:100%;height:240px;object-fit:contain;background:#edf0e7}.tool-output video{max-height:65vh;object-fit:contain}.sample-prompt{font-size:14px!important;line-height:1.75!important}.agent-workspace #media-results{margin-top:40px}.tool-layout{align-items:start}.tool-form>.primary{position:sticky;bottom:16px;z-index:3;box-shadow:0 5px 20px #254b3420}.actual-media-size{font-size:14px;color:#708269;margin:8px 0}
@media(min-width:1000px){.tool-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}}
@media(max-width:640px){.character-output-options{gap:8px}.character-output-options span{padding:12px;min-height:90px}.tool-form>.primary{bottom:12px;min-height:48px}.library-card video{height:280px}.tool-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-settings label{min-width:0}.tool-settings select{width:100%;min-width:0}}

/* Both creation approaches stay one click away; disclosure icons never size the model field. */
.creation-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:6px;margin:0 auto 24px;max-width:1080px;background:#edf1e7;border:1px solid #e0e6d9;border-radius:18px}
.creation-mode-switch a{padding:13px 18px;border-radius:12px;display:grid;gap:3px;min-width:0}
.creation-mode-switch a[aria-current=page]{background:#fffefa;box-shadow:0 2px 8px #244c3b0d}
.creation-mode-switch strong{font-size:14px;color:#254d3a}.creation-mode-switch span{font-size:14px;color:#71806a;line-height:1.5}
.agent-workspace .creative-agent-heading{display:none}
.creative-agent-controls .model-picker-row{flex:0 1 auto;min-width:min(240px,100%);max-width:100%;align-items:end}
.creative-agent-controls .model-picker{min-width:min(240px,100%);max-width:100%}
.model-picker>summary strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;min-width:0}
.model-picker>summary .model-chevron{width:18px;height:18px;flex:0 0 18px;margin-left:auto;stroke:currentColor;stroke-width:1.6}
.model-picker>summary{min-height:44px}
@media(max-width:600px){.creation-mode-switch{gap:4px}.creation-mode-switch a{padding:10px}.creation-mode-switch span{font-size:14px}.creative-agent-controls .model-picker-row{flex-basis:100%}.creative-agent-controls .model-picker{width:100%}.model-picker-panel{width:min(344px,calc(100vw - 72px))}}
/* Long provider/model names get the full settings row rather than half a mobile column. */
.tool-settings label:has(#tool-model){grid-column:1/-1}
.tool-settings #tool-model{width:100%;min-width:0}
@media(max-width:640px){.tool-form>.primary{position:static;bottom:auto}.model-picker-panel{overflow-y:auto;overscroll-behavior:contain}}
.account-menu{position:relative;width:100%}.account-menu>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:12px 8px;border-radius:14px}.account-menu>summary::-webkit-details-marker{display:none}.account-menu>summary:hover,.account-menu[open]>summary{background:#e8eddf}.account-label{min-width:0;flex:1}.account-label strong{display:block;overflow-wrap:anywhere}.account-menu>summary>svg{width:18px;height:18px;flex:none}.account-menu .avatar{flex:none;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.account-menu-panel{position:absolute;bottom:calc(100% + 8px);left:0;right:0;padding:8px;background:#fffef9;border:1px solid #dce3d5;border-radius:16px;box-shadow:0 12px 35px #163b2920;z-index:30;max-height:60vh;overflow:auto}.account-menu-panel a,.account-menu-panel button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px;text-align:left;border:0;background:none;color:inherit;border-radius:8px;font:inherit;text-decoration:none;cursor:pointer}.account-menu-panel a:hover,.account-menu-panel button:hover{background:#edf1e7}.account-menu-panel button:last-child{border-top:1px solid #e6eadf;border-radius:0;margin-top:4px}.account-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;max-width:1050px}.account-layout .panel{padding:28px;min-width:0}.account-layout form>label{display:grid;gap:8px;margin:22px 0 10px}.account-layout input{width:100%;min-width:0}.profile-photo-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.profile-photo.avatar{width:88px;height:88px;font-size:32px;overflow:hidden}.profile-photo-row .text-button{display:block;margin-top:10px}.account-summary{display:grid;gap:20px;align-content:start}.account-summary h2{font-size:20px;margin:0 0 18px}.account-credit{font-size:32px;font-weight:600}.account-credit span{display:block;font-size:14px;font-weight:400;color:#74816f}.account-summary section>a:not(.button){display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e6eadf;text-decoration:none}.account-summary .button{white-space:normal}#profile-feedback:empty{display:none}@media(max-width:760px){.account-layout{grid-template-columns:1fr}.account-layout .panel{padding:20px}.profile-photo-row{gap:14px}} 
/* Keep account controls visible while only the tool list scrolls. */
.sidebar{overflow:visible;gap:18px}.sidebar>.brand{flex:none}.sidebar-nav{flex:1;min-height:0;overflow-y:auto;align-content:start;overscroll-behavior:contain;scrollbar-width:thin}.sidebar-bottom{flex:none;min-width:0;margin-top:0;padding-top:12px;gap:8px;border-top:1px solid var(--line)}.studio-account-nav{display:grid;gap:3px}.studio-account-nav .nav-link{font-size:14px;min-height:40px}.account-menu>summary{display:grid;grid-template-columns:33px minmax(0,1fr) 16px;gap:9px;padding:10px 6px;min-height:60px}.account-menu .account-label{display:block;width:100%;min-width:0}.account-label strong{font-size:14px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}.account-label .small{display:block;font-size:14px;line-height:1.5;white-space:nowrap}.account-menu-identity{padding:10px 12px 12px;border-bottom:1px solid var(--line);margin-bottom:5px}.account-menu-identity strong,.account-menu-identity span{display:block;overflow-wrap:anywhere;line-height:1.5}.account-menu-identity strong{font-size:14px}.account-menu-identity span{font-size:14px;color:var(--muted);margin-top:3px}.account-menu-panel{max-height:min(480px,calc(100dvh - 110px));overscroll-behavior:contain}.account-menu>summary:focus-visible,.studio-account-nav a:focus-visible{outline:2px solid #6b855c;outline-offset:2px}@media(max-height:600px){.sidebar{padding-top:14px;padding-bottom:12px;gap:10px}.sidebar .brand{padding-bottom:0}.sidebar-bottom{padding-top:8px}.account-menu-panel{max-height:calc(100dvh - 90px)}}
/* Film workspace: a quiet editing surface with one clear action per shot. */
.episode-bar[hidden]{display:none}.film-controls{display:grid;grid-template-columns:1fr minmax(210px,300px);gap:18px 26px;align-items:center;background:linear-gradient(125deg,#f4f6ec,#fffefa);border:1px solid #dce4d1;border-radius:20px;padding:24px;margin:20px 0 28px;box-shadow:0 6px 24px #254c3b06}.film-controls h3{margin:5px 0;font-size:22px}.film-controls p{margin:0;font-size:14px;color:#6f7d66}.film-controls>label{display:grid;gap:7px;font-size:14px}.film-controls .film-review-toggle{display:flex;align-items:center;font-size:14px}.film-review-toggle input{width:17px;height:17px;accent-color:#275341}.film-controls>.button{justify-self:end}.film-progress{padding:24px;border:1px solid #d9e3cd;border-radius:20px;background:#f0f4e8;margin:20px 0;box-shadow:inset 0 1px #fff}.film-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.film-progress-heading>div{display:flex;align-items:center;gap:14px}.film-progress h3{font-size:21px;margin:4px 0}.film-progress progress{display:block;width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;margin:22px 0 16px;accent-color:#366049}.film-progress progress::-webkit-progress-bar{background:#dde5d4}.film-progress progress::-webkit-progress-value{background:#366049;transition:width .35s}.film-progress p{font-size:14px;line-height:1.65}.film-progress-meta{display:flex;flex-wrap:wrap;gap:10px 24px;font-size:14px;color:#68765f;font-variant-numeric:tabular-nums}.film-progress .button-row{margin-top:18px}.film-progress.blocked{background:#fff8ed;border-color:#e9d9bc}.film-fox{width:38px;height:38px;object-fit:contain;animation:film-trot 1.4s ease-in-out infinite}.shot-status{display:flex;gap:14px;align-items:center;padding:14px 20px;background:#f0f4e9;border-top:1px solid #e4e9db;font-size:14px;line-height:1.7}.shot-status .film-fox{width:28px;height:28px}.shot-action{font-size:16px;line-height:1.65;margin-top:8px}.shot-directions .compact-details{font-size:14px;line-height:1.7}.shot-card{scroll-margin-top:30px;overflow:hidden;box-shadow:0 3px 15px #28493804}.shot-visual{aspect-ratio:16/10;min-height:0!important}.shot-visual img,.shot-visual video{width:100%;height:100%;object-fit:contain;background:#eef1e7}.shot-header h3{font-size:16px}.shot-directions .button-row{gap:10px}.shot-directions .button{font-size:14px;padding:11px 15px;min-height:42px}.shot-directions .text-button{font-size:14px}.film-budget-total{padding:24px;text-align:center;background:#eef3e5;border:1px solid #e0e7d3;border-radius:18px}.film-budget-total>span{font-size:14px;text-transform:uppercase;letter-spacing:.1em}.film-budget-total strong{display:block;font-size:48px;letter-spacing:-.04em;margin:8px 0}.film-budget-total small{font-size:17px;letter-spacing:0;font-weight:400}.film-budget-total p{font-size:14px;color:#728066}.film-budget-lines{margin:22px 0}.film-budget-lines>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e6eadf;font-size:14px}.film-budget-lines dd{margin:0;font-weight:600;white-space:nowrap}.film-specs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.film-specs span{border-radius:8px;background:#f3f5ec;padding:7px 10px;font-size:14px}.film-plan-grid{display:grid;gap:18px}.film-plan-card{min-width:0;border:1px solid #e0e6d8;border-radius:16px;padding:18px}.film-plan-card legend{padding:0 8px;font-size:14px;letter-spacing:.12em;color:#7b896e}.film-plan-card label{font-size:14px}.film-plan-card textarea{font-size:14px;line-height:1.6;min-height:74px}.film-plan-card details{font-size:14px;margin-top:12px}.film-plan-card summary{cursor:pointer}.film-player{display:block;width:100%;max-height:65vh;background:#182e26;border-radius:14px}.film-export .export-clips{margin-top:28px}.film-export .export-clip{color:inherit;text-decoration:none;transition:background .15s;border-radius:12px}.film-export .export-clip:hover{background:#f1f4e9}.film-export .recap-box{margin-top:32px}.film-export .recap-box>summary{font-size:14px;cursor:pointer;color:#617657}.film-export .recap-box form{margin-top:18px}.episode-sidebar .context-example{font-size:14px}.episode-sidebar .context-example:not([open]){padding:18px}.film-character-return{padding:12px 18px;margin-bottom:18px;background:#f0f4e8;border-radius:12px;font-size:14px}
@keyframes film-trot{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-4px) rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.film-fox{animation:none}.film-progress progress::-webkit-progress-value{transition:none}}
@media(max-width:760px){.film-controls{grid-template-columns:1fr;padding:20px;gap:18px}.film-controls>.button{justify-self:stretch}.film-progress{padding:20px}.film-progress-heading{align-items:flex-start}.film-progress h3{font-size:18px}.film-budget-total strong{font-size:38px}.film-plan-card{padding:14px}.shot-directions .button-row{flex-wrap:wrap}.film-progress-meta{gap:8px 14px}}

.episode-layout.episode-layout-export{grid-template-columns:minmax(0,1fr);max-width:1000px;margin-inline:auto}.film-export video.film-player{width:100%;max-width:none;height:auto;max-height:65vh;aspect-ratio:16/9;object-fit:contain;margin:20px 0;background:#182e26}

.episode-sidebar .context-example>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:14px;color:#64775a}.episode-sidebar .context-example>summary::after{content:"+"}.episode-sidebar .context-example[open]>summary::after{content:"−"}.episode-sidebar .context-example[open] .example-card{margin-top:14px}
.story-plan-controls{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:20px;padding:26px;margin:24px 0;background:linear-gradient(135deg,#f0f4e9,#fbfaf5);border:1px solid #dfe7d5;border-radius:20px}.story-plan-controls h3{margin:8px 0;font:500 25px Georgia,serif;color:#214c3e}.story-plan-controls p{max-width:40ch;font-size:14px;line-height:1.6}.story-plan-controls>.button{grid-column:1/-1;justify-self:start}.story-writing{display:flex;gap:20px;align-items:center;padding:28px;background:#f1f5ea;border-radius:18px;margin-block:24px}.story-writing p{font-size:14px;margin-top:6px}.shot-narration{padding:16px 18px;background:#f5f6ef;border-left:3px solid #c3d2ae;border-radius:0 12px 12px 0}.shot-narration p{font-size:14px;line-height:1.6;margin:8px 0}.shot-narration audio{width:100%;height:36px}.agent-story-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:28px 0;padding:28px 32px;border:1px solid #dbe4d3;border-radius:22px;background:linear-gradient(125deg,#eef3e6,#fffef9);box-shadow:0 10px 30px #224c3c08}.agent-story-entry h2{font:500 28px Georgia,serif;margin:8px 0;color:#234d3f}.agent-story-entry p{margin:0;font-size:14px}.story-scene{border:1px solid #dfe5d8;background:#fffefb;border-radius:20px;margin-bottom:18px;overflow:hidden}.story-scene>summary{display:flex;align-items:center;gap:16px;padding:20px 24px;cursor:pointer;list-style:none}.story-scene>summary::after{content:'+';margin-left:auto;font-size:24px;color:#6d8662}.story-scene[open]>summary::after{content:'−'}.story-scene>summary strong{display:block;color:#28523f;font-size:17px}.story-scene>summary small{display:block;margin-top:5px;color:#71816c}.story-scene>summary .scene-number{font:24px Georgia,serif;color:#92a780}.story-scene .shot-card{box-shadow:none;border-radius:0;border-width:1px 0 0;margin:0}.story-scene .shot-visual{max-height:250px}.story-scene .shot-visual img,.story-scene .shot-visual video{max-height:250px}.story-scene .shot-body{gap:20px}.story-scene .shot-header{padding-block:16px}
@media(max-width:760px){.story-plan-controls{grid-template-columns:1fr;padding:20px}.agent-story-entry{align-items:flex-start;flex-direction:column;padding:22px}.agent-story-entry>.button{width:100%}.story-scene>summary{padding:18px}.story-writing{padding:20px}.story-plan-controls>.button{justify-self:stretch}}

.input-guidance{margin:12px 0;padding-left:18px;color:#617561;font-size:14px;line-height:1.65}.input-guidance li+li{margin-top:4px}

.source-comparison{margin:12px 0;color:#365e47;font-size:14px}.source-comparison summary{cursor:pointer;padding:8px 0}.source-comparison img{display:block;max-width:100%;max-height:400px;object-fit:contain;margin:12px auto;border-radius:12px}

/* Film craft: compact secondary tools, keeping the final result primary. */
.craft-review{margin:20px 0;padding:16px 20px;background:#f4f6ef;border:1px solid #e0e7d7;border-radius:16px}.craft-review summary{cursor:pointer;font-weight:600}.craft-review h3{font-size:14px;margin-top:18px}.craft-review dl{font-size:14px;line-height:1.6}.craft-review dt{font-weight:600}.craft-review dd{margin:0 0 10px;color:#627365}.craft-review li{margin:8px 0}.cut-editor{max-height:55vh;overflow:auto;padding-right:8px}.cut-row{border:1px solid #e1e8da;border-radius:14px;margin:0 0 16px;padding:16px}.cut-row legend{padding:0 8px;font-size:14px;font-weight:600}.cut-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cut-controls input{width:100%;min-width:0}.cut-row textarea{min-height:68px}.cut-row label{font-size:14px}.cut-row p{margin:8px 0 12px}@media(max-width:540px){.cut-row{padding:12px}.cut-controls{gap:8px}}
.route-loading{display:flex;align-items:center;gap:14px;padding:48px 24px;color:#526b5b;min-height:260px}.route-loading img{animation:workspace-breathe 1.4s ease-in-out infinite}@keyframes workspace-breathe{50%{opacity:.5;transform:translateY(-4px)}}.dialog-discard{position:sticky;bottom:0;padding:22px 28px;background:#fffef8;border-top:1px solid #d5dfcd;box-shadow:0 -12px 30px #264b3610;z-index:3}.dialog-discard p{margin:7px 0 15px;font-size:14px}.library-controls{display:grid;grid-template-columns:minmax(180px,1fr) 180px 220px;gap:16px;align-items:end;margin:20px 0}.library-controls label{font-size:14px}.library-controls select{width:100%}.library-card-caption{padding:16px 18px 0}.library-card-caption p{padding:0;margin:8px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.library-grid video{aspect-ratio:16/9;background:#253e34;object-fit:contain}.story-paths{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 22px;margin-bottom:20px;background:#edf3e5;border:1px solid #dce6d1;border-radius:16px;font-size:14px}.model-primary{padding-top:16px;border-top:1px solid #e5eadf}.cut-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px;margin:22px 0}.cut-preview video{width:100%;aspect-ratio:16/9;border-radius:12px;background:#203c30}.cut-preview strong{display:block;margin-top:12px}.cut-preview #cut-total{font-weight:600;color:#244d3d}.cut-shot{border:1px solid #e1e8da;border-radius:12px;margin-bottom:10px}.cut-shot>summary{padding:14px 16px;cursor:pointer;font-size:14px;font-weight:600}.cut-shot[open]>summary{background:#edf3e5;border-radius:12px 12px 0 0}.cut-shot .cut-row{border:0;margin:0}.transition-preview{display:grid;grid-template-columns:1fr 1fr;gap:20px}.transition-preview figure{margin:0;min-width:0}.transition-preview video,.transition-preview img{width:100%;aspect-ratio:16/9;object-fit:contain;background:#203c30;border-radius:12px}.transition-preview figcaption{font-weight:600;font-size:14px;margin-bottom:12px}.transition-preview p{font-size:14px}.agent-history{margin-top:28px;border-top:1px solid #dce4d6;padding-top:16px}.agent-history>summary{font-size:14px;color:#5c725e;cursor:pointer;padding:12px 0}.agent-history .creative-delivery,.agent-history .agent-story-card{margin-top:18px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:760px){.library-controls{grid-template-columns:1fr 1fr}.library-controls .search-field{grid-column:1/-1}.story-paths{align-items:flex-start;flex-direction:column}.cut-workspace{grid-template-columns:1fr}.cut-preview video{max-height:200px}.cut-editor{max-height:40vh}.transition-preview{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.route-loading img{animation:none}}
