:root{font-family:Inter,Segoe UI,Arial,sans-serif;font-synthesis:none;color:#202036;background:#f6f5fa;--ink: #202036;--muted: #625f76;--nav: #17182a;--line: #e5e2ec;--purple: #6039d7;--purple-dark: #4f2bbf;--soft: #f1ebff;--white: #fff}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}button:not(:disabled){cursor:pointer}button:disabled{cursor:wait;opacity:.68}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.upload:focus-within,.style-list label:focus-within{outline:3px solid #9473f5;outline-offset:3px}h1,h2,p{margin:0}h1{font-size:clamp(1.9rem,3.6vw,2.65rem);letter-spacing:-.045em;line-height:1.13}h2{font-size:1.22rem;letter-spacing:-.025em}svg{flex:0 0 auto;vertical-align:middle}.brand{display:inline-flex;align-items:center;gap:.72rem;font-weight:730;font-size:1.19rem;letter-spacing:-.035em}.brand-icon{display:grid;place-items:center;width:2.35rem;height:2.35rem;border-radius:.72rem;color:#f4ebff;background:#7445e8}.primary,.secondary,.ghost,.icon-button,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:0;border-radius:.68rem;font-weight:650;text-decoration:none}.primary,.secondary{min-height:2.8rem;padding:.66rem 1.08rem}.primary{background:var(--purple);color:#fff}.primary:hover:not(:disabled){background:var(--purple-dark)}.secondary{background:var(--soft);color:var(--purple-dark)}.secondary:hover{background:#e6dcff}.ghost,.icon-button{padding:.52rem;background:transparent;color:inherit}.ghost:hover,.icon-button:hover{background:#8570a41c}.text-button{display:inline;padding:.13rem;color:var(--purple-dark);background:transparent}.text-button:hover{text-decoration:underline}.muted{color:var(--muted);line-height:1.55}.error{background:#fff0ef;color:#8d282b;border-radius:.55rem;padding:.68rem .8rem;font-size:.9rem;line-height:1.4}.boot{margin:5rem auto;max-width:30rem;padding:1.5rem;display:grid;gap:1rem}.field{display:grid;gap:.4rem;font-size:.9rem;font-weight:650}.field input,.field textarea,.field select{width:100%;min-height:2.8rem;border:1px solid #dcd8e6;padding:.65rem .78rem;border-radius:.62rem;background:var(--white);color:var(--ink);font-size:1rem;font-weight:400}.field textarea{resize:vertical;line-height:1.55}.field input::placeholder{color:#747184}.demo-tag{color:#53259b;background:#efe3ff;width:fit-content;border-radius:.38rem;padding:.27rem .52rem;font-weight:650;font-size:.79rem}.account-layout{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr)}.account-side{background:radial-gradient(ellipse at 40% 74%,#392754,transparent 67%),#18172b;color:#fff;display:flex;flex-direction:column;gap:3rem;padding:clamp(1.6rem,4vw,3.6rem)}.account-intro{margin:auto;width:min(100%,35rem)}.account-intro h1{font-size:clamp(2.45rem,5vw,5.1rem);line-height:1}.account-intro p{color:#ddd6ef;margin-top:1.12rem;max-width:29rem;font-size:1.13rem;line-height:1.5}.account-art{margin-top:1.5rem;position:relative;min-height:23.75rem;display:grid;place-items:center;isolation:isolate;background:radial-gradient(ellipse at 50% 48%,#9e6afe40,transparent 64%)}.account-art:before,.account-art:after{content:"";position:absolute;z-index:-1;border:1px solid #a187d45c;border-radius:50%;width:min(92%,24rem);height:11rem;transform:rotate(-26deg)}.account-art:after{transform:rotate(26deg)}.account-poster{width:12rem;border:6px solid #b997fd;border-radius:1.45rem;overflow:hidden;transform:rotate(-8deg);box-shadow:0 18px 48px #070412a6}.account-art-dot,.account-art-note{position:absolute;display:inline-flex;align-items:center;gap:.42rem;border:1px solid #ffffff35;border-radius:.62rem;background:#352a4c;padding:.64rem .7rem}.account-art-dot{inset:19% auto auto 9%}.account-art-note{inset:auto 1% 20% auto;color:#f1e8ff;font-size:.84rem}.account-content{display:grid;place-items:center;padding:2rem;background:#fbfaff}.account-form{width:min(100%,25rem);display:grid;gap:1.15rem}.account-heading{display:grid;gap:.55rem;margin-bottom:.4rem}.account-heading h2{font-size:clamp(1.65rem,3vw,2.2rem)}.account-heading p:not(.demo-tag),.switch-account{color:var(--muted)}.switch-account{text-align:center;font-size:.93rem}.studio-layout{min-height:100dvh;display:grid;grid-template-columns:15rem minmax(0,1fr)}.sidebar{background:var(--nav);color:#f7f3ff;padding:1.55rem 1.15rem;display:flex;flex-direction:column;gap:1.7rem}.sidebar nav{display:grid;gap:.38rem}.sidebar nav button{display:flex;align-items:center;gap:.7rem;text-align:left;min-height:2.85rem;padding:.6rem .78rem;color:#d9d4ec;background:transparent;border:0;border-radius:.61rem;font-weight:600}.sidebar nav button:hover{background:#29213f;color:#fff}.sidebar nav [aria-current=true]{background:#34274e;color:#fff;box-shadow:inset 0 0 0 1px #bc9aff36}.sidebar nav [aria-current=true] svg{color:#c2a1ff}.profile{margin-top:auto;display:flex;align-items:center;gap:.54rem;min-width:0}.profile-avatar{width:2rem;height:2rem;border-radius:50%;display:grid;place-items:center;background:#442f63;color:#eadcff;flex:0 0 auto;font-weight:700}.profile-email{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.83rem}.profile .icon-button{margin-left:auto}.sidebar-error{color:#ffc3c6;font-size:.87rem}.studio-main{width:min(100%,92rem);margin:0 auto;padding:clamp(1.1rem,4vw,3.35rem)}.studio-main>.demo-tag{margin-bottom:.72rem}.library-composer-back{margin-bottom:.85rem}.page-heading{margin-bottom:1.35rem}.page-heading p{margin-top:.48rem;color:var(--muted);line-height:1.55}.page-heading .back{margin-bottom:.65rem}.steps{padding:0;margin:0 0 1.45rem;display:flex;flex-wrap:wrap;gap:.67rem 1.1rem;list-style:none;color:#625f76;font-weight:600;font-size:.88rem}.steps li{display:flex;align-items:center;gap:.43rem}.steps li>span{width:1.55rem;height:1.55rem;display:grid;place-items:center;border-radius:50%;background:#ece9f1;color:#514c64;font-size:.79rem}.steps li.active{color:#5229bd}.steps li.active>span{background:var(--purple);color:#fff}.steps li.done>span{background:#e7dcff;color:#5229bd}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(16rem,1fr);align-items:start;gap:1.2rem}.panel,.preview{background:#fff;border:1px solid var(--line);border-radius:1rem;box-shadow:0 7px 18px #24203f06}.form-panel,.checkout-panel,.status-panel{padding:clamp(1rem,2.2vw,1.65rem);display:grid;min-width:0;gap:1rem}.panel-heading{display:flex;justify-content:space-between;align-items:center}.checkout-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.65rem}.checkout-heading h2{margin:0}.provider-quotes{display:grid;gap:.5rem}.provider-quotes h3,.provider-quotes p{margin:0}.provider-quotes h3{font-size:1rem}.provider-quotes p{font-size:.86rem}.provider-quote-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.55rem}.provider-quote-options button{min-width:0;display:grid;gap:.26rem;text-align:left;padding:.64rem .75rem;border:1px solid var(--line);border-radius:.62rem;background:#fff}.provider-quote-options button.selected{border-color:#9b7be1;background:#f6f1ff;color:var(--purple-dark)}.provider-quote-options button span{font-size:.85rem;font-weight:650}.provider-quote-options button small{display:block;font-weight:500;color:var(--muted)}.provider-quote-options button strong{font-size:1.17rem;font-variant-numeric:tabular-nums}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.styles{padding:0;margin:0;border:0;min-width:0}.styles legend,.photo-block>label{font-weight:650;font-size:.9rem}.style-list{margin-top:.47rem;display:grid;gap:.46rem;grid-template-columns:repeat(3,minmax(0,1fr))}.style-list label{cursor:pointer;position:relative;display:grid;justify-items:center;gap:.33rem;padding:.52rem .25rem;border:1px solid var(--line);border-radius:.63rem;font-size:.83rem;font-weight:600}.style-list label:hover,.style-list label.chosen{border-color:#8d65e9;background:#f5efff}.style-list input,.upload input{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.style-swatch{display:grid;place-items:center;width:2.2rem;height:1.7rem;border-radius:.38rem;font-weight:720}.photo-block{display:grid;gap:.45rem}.optional{font-size:.77rem;font-weight:450;color:var(--muted);margin-left:.2rem}.upload,.photo-selected{display:flex;align-items:center;gap:.68rem;border:1px dashed #c4b7de;border-radius:.66rem;background:#faf8ff;padding:.7rem .8rem;color:#5335a4;min-height:3.35rem}.upload{cursor:pointer;position:relative}.upload:hover{background:#f3edff}.upload strong,.upload small{display:block}.upload strong{font-size:.88rem}.upload small{color:var(--muted);font-size:.78rem;margin-top:.15rem}.photo-selected span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-selected button{margin-left:auto}.form-actions{border-top:1px solid var(--line);padding-top:.9rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem}.form-actions span,.form-actions strong{display:block}.form-actions span{color:var(--muted);font-size:.8rem}.form-actions strong{font-size:1.13rem;margin-top:.16rem}.summary{margin:0;display:grid;gap:.66rem}.summary div{display:grid;gap:.22rem;padding-bottom:.6rem;border-bottom:1px solid var(--line)}.summary dt{font-size:.82rem;color:var(--muted)}.summary dd{font-weight:600;margin:0;overflow-wrap:anywhere}.preview{display:grid;padding:.9rem;gap:.73rem}.preview header,.preview footer{display:flex;align-items:center;gap:.43rem}.preview header{justify-content:space-between}.preview header>span:first-child{display:flex;align-items:center;gap:.4rem;font-weight:650}.preview footer{justify-content:center;color:var(--muted);font-size:.84rem}.format{border-radius:.42rem;background:#efeaf8;color:#5a486e;font-size:.8rem;padding:.25rem .45rem;font-weight:650}.preview-surface{display:grid;place-items:center;background:#efebf7;border-radius:.74rem;padding:1.25rem .8rem}.phone{width:min(100%,14rem);border:5px solid #242335;border-radius:1.25rem;overflow:hidden;box-shadow:0 13px 23px #3e226f2c;background:var(--nav)}.phone video{display:block;width:100%;aspect-ratio:9 / 16}.poster{position:relative;isolation:isolate;width:100%;aspect-ratio:9 / 16;overflow:hidden;background:radial-gradient(ellipse at 85% 25%,color-mix(in srgb,var(--poster-accent) 20%,transparent) 0 27%,transparent 28%),radial-gradient(ellipse at 10% 100%,color-mix(in srgb,var(--poster-accent) 11%,transparent) 0 28%,transparent 29%),linear-gradient(145deg,var(--poster-bg),var(--poster-shade));color:#fff}.poster img,.poster-photo:after{position:absolute;inset:0;width:100%;height:100%}.poster img{object-fit:contain}.poster-photo:after{content:"";background:linear-gradient(180deg,#151022ad,transparent 34%,transparent 52%,#151022fa 99%)}.poster-content{z-index:1;position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:10% 8%}.poster-brand{font-weight:670;font-size:.84rem;overflow-wrap:anywhere}.poster-caption{display:grid;gap:.44rem;justify-items:start;overflow-wrap:anywhere}.poster-caption strong{font-size:1.4rem;letter-spacing:-.04em;line-height:1.06}.poster-offer{color:var(--poster-accent);font-weight:700}.poster-contact{font-size:.66rem;color:var(--poster-ink);background:var(--poster-accent);padding:.36rem .42rem;border-radius:.3rem;font-weight:700}.method-list{display:flex;flex-wrap:wrap;gap:.45rem}.method-list button{background:#fff;border:1px solid var(--line);border-radius:.59rem;min-height:2.68rem;padding:.48rem .67rem;display:inline-flex;align-items:center;gap:.45rem;font-weight:600}.method-list .selected{border-color:#8d65e9;background:#f4eeff;color:#5329ad}.method-list button span{display:grid;gap:.15rem;text-align:left}.method-list button small{font-size:.77rem}.inline-note{display:flex;align-items:center;gap:.4rem;color:var(--muted);font-size:.87rem}.pix-qr{width:min(100%,13rem);aspect-ratio:1;justify-self:center}.status-panel{align-content:start;justify-items:start}.status-icon{display:grid;place-items:center;width:2.7rem;height:2.7rem;border-radius:.7rem;color:#622ed0;background:#eee6fd}.order-number{font-size:.81rem;color:var(--muted);overflow-wrap:anywhere}.history-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.8rem}.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:1rem;font-size:.84rem}.history-search{display:flex;align-items:center;gap:.62rem;width:min(100%,24rem);color:var(--muted);position:relative}.history-search svg{position:absolute;left:.85rem;pointer-events:none}.history-search input{width:100%;min-width:0;min-height:2.75rem;padding:.62rem .77rem .62rem 2.5rem;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:.66rem}.history-toolbar>span{flex-shrink:0}.history{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr));gap:1rem;list-style:none;margin:0;padding:0;align-items:stretch}.history>li{min-width:0}.history-card{display:flex;flex-direction:column;height:100%;transition:border-color .18s ease,box-shadow .18s ease}.history-card:focus-within,.history-card:hover{border-color:#c4b6e4;box-shadow:0 10px 24px #25194312}.history-cover{position:relative;display:block;width:100%;aspect-ratio:16 / 9;border:0;border-radius:.93rem .93rem 0 0;padding:0;overflow:hidden;isolation:isolate;background:#241d3c;text-align:left}.project-cover-art{position:relative;display:grid;place-items:center;overflow:hidden;min-width:0;color:#d7c4ff;background:radial-gradient(ellipse at 22% 20%,#4e3b77,transparent 68%),#211a35}.history-cover .project-cover-art{width:100%;height:100%}.project-cover-art img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}.history-cover .project-cover-art>svg{width:2.15rem;height:2.15rem;opacity:.8}button.history-cover img{transition:transform .22s ease}button.history-cover:hover img{transform:scale(1.035)}.history-play,.history-format{position:absolute;display:inline-flex;align-items:center;gap:.36rem;color:#fff;background:#201a33ed;border:1px solid #ffffff30;box-shadow:0 2px 8px #17122a2f;border-radius:.54rem}.history-play{left:.75rem;bottom:.72rem;padding:.52rem .65rem;font-size:.84rem;font-weight:670}button.history-cover:hover .history-play{background:var(--purple-dark)}.history-format{top:.68rem;right:.68rem;padding:.3rem .44rem;font-size:.73rem;font-weight:620}.history-card-body{display:flex;flex:1;flex-direction:column;gap:.5rem;min-width:0;padding:.95rem}.history-card-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.37rem .55rem;color:var(--muted);font-size:.76rem}.history-card-meta .order-status{font-size:.73rem;font-weight:620;padding:.28rem .4rem}.history-card h2{overflow-wrap:anywhere;margin-top:.15rem;line-height:1.23}.history-model{color:var(--muted);font-size:.84rem;margin-bottom:.38rem;overflow-wrap:anywhere}.history-costs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:.68rem 0;margin:auto 0 0;border-block:1px solid var(--line)}.history-costs>div{min-width:0;padding:0 .62rem}.history-costs>div:first-child{padding-left:0;border-right:1px solid var(--line)}.history-costs dt{font-size:.75rem;line-height:1.22;color:var(--muted)}.history-costs dd{margin:.24rem 0 0;font-size:.94rem;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.history-costs>div:first-child dd{color:var(--purple-dark)}.history-open{align-self:flex-start;min-height:2.18rem;margin-top:.15rem;font-size:.88rem}.project-preview-dialog{width:min(46rem,calc(100% - 1.5rem));max-height:calc(100dvh - 1.5rem);padding:0;border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:1rem;box-shadow:0 1.2rem 4rem #100a2d45;overscroll-behavior:contain}.project-preview-dialog::backdrop{background:#171428a6}.project-preview-dialog header,.project-preview-dialog footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;padding:.86rem clamp(.8rem,2vw,1.15rem)}.project-preview-dialog header>div{flex:1 1 12rem;min-width:0;overflow-wrap:anywhere}.project-preview-dialog header p{color:var(--muted);font-size:.82rem;margin-top:.32rem}.project-preview-player{background:#161325}.project-preview-player video{display:block;width:100%;height:min(65dvh,32rem);object-fit:contain}@media(max-width:440px){.project-preview-dialog footer>*{flex:1 1 auto}.history-toolbar{align-items:start}.history-toolbar>span{align-self:center}}.order-status{padding:.34rem .46rem;border-radius:.37rem;background:#eee9f7;color:#584a6e;font-size:.82rem}.order-status.ready{color:#26553e;background:#e0f5e9}.empty{padding:2rem 1rem;display:grid;justify-items:center;gap:.85rem;text-align:center}.creative-heading{margin-bottom:1.35rem}.creative-grid{grid-template-columns:minmax(0,1fr) minmax(14rem,19rem)}.audio-edit-grid{grid-template-columns:minmax(0,44rem)}.creative-form{gap:1.3rem;container-type:inline-size}.creative-prompt-with-source{display:grid;grid-template-columns:minmax(0,1fr) minmax(11rem,14rem);grid-template-areas:"prompt source";align-items:start;gap:1rem}.creative-prompt-with-source .creative-prompt{grid-area:prompt}.source-video{grid-area:source;margin:0;display:grid;gap:.4rem;min-width:0}.source-video figcaption{font-size:.9rem;font-weight:650}.source-video video{display:block;width:100%;aspect-ratio:9 / 16;max-height:20rem;object-fit:contain;border-radius:.62rem;background:#18172b}.creative-prompt{position:relative}.creative-prompt textarea{min-height:13rem;padding:.9rem .95rem 2rem;resize:vertical;line-height:1.55}.prompt-counter{position:absolute;right:.9rem;bottom:.55rem;font-size:.76rem;font-weight:450;color:var(--muted);pointer-events:none}.reference-field{border:0;padding:0;margin:0;min-width:0;gap:.68rem}.reference-field legend{margin-bottom:.55rem;font-weight:650;font-size:.9rem}.reference-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem}.reference-actions .secondary,.reference-link .secondary{display:flex;align-items:center;justify-content:center;gap:.36rem}.reference-actions .upload:focus-within{outline:2px solid var(--purple);outline-offset:2px}.stock-search{margin-block:.6rem}.stock-search summary{width:fit-content;cursor:pointer;color:var(--purple);font-weight:650}.stock-search[open]{display:grid;gap:.5rem}.stock-search .reference-link{margin-top:0}.stock-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.55rem;list-style:none;margin:0;padding:0}.stock-grid li{min-width:0;display:grid;grid-template-rows:auto auto 1fr auto;gap:.35rem;padding:.45rem;border:1px solid var(--line);border-radius:.55rem}.stock-grid li>img{display:block;width:100%;aspect-ratio:3 / 2;object-fit:cover;border-radius:.35rem;background:#f4f1fa}.stock-grid li>strong,.stock-credit{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem}.stock-grid .secondary{padding:.35rem .5rem;display:flex;align-items:center;justify-content:center;gap:.25rem}.stock-credit a{color:var(--purple)}.reference-link{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.55rem}.reference-limits{font-size:.8rem;color:var(--muted);line-height:1.45}.reference-list,.reference-thumbs{margin:0;padding:0;list-style:none;display:grid;gap:.45rem}.reference-list .photo-selected{min-height:2.6rem;border:1px solid var(--line);padding:.22rem .62rem;font-size:.85rem}.reference-list svg{flex-shrink:0}.reference-selection-thumb{flex:0 0 auto;width:3.25rem;height:2.65rem;border-radius:.35rem;object-fit:contain;background:#eeeaf5}.direction-panel,.creative-order-side{display:grid;gap:1rem;min-width:0}.direction-panel{padding:clamp(1rem,2.2vw,1.55rem)}.direction-icon{display:grid;place-items:center;width:2.7rem;height:2.7rem;border-radius:.7rem;background:#efe8fe;color:#6239b0}.direction-panel h2{font-size:1.12rem}.creative-specs{margin:0;display:grid;gap:.7rem}.creative-specs div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.25rem;font-size:.86rem}.creative-specs dt,.direction-summary p{color:var(--muted)}.creative-specs dd{margin:0;font-weight:640}.direction-summary{margin-top:.2rem;border-top:1px solid var(--line);padding-top:.9rem;display:grid;gap:.3rem}.direction-summary h3{font-size:.9rem}.direction-summary p,.creative-description{font-size:.9rem;line-height:1.55}.creative-description{white-space:pre-wrap;overflow-wrap:anywhere}.creative-direction{border-top:1px solid var(--line);padding-top:.75rem}.creative-direction summary{cursor:pointer;color:#592eb9;font-weight:650;font-size:.86rem}.creative-direction p{margin-top:.65rem}.reference-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-thumbs li{display:grid;gap:.25rem;min-width:0}.reference-thumbs :is(img,video){display:block;width:100%;aspect-ratio:4 / 3;object-fit:contain;background:#eeeaf5;border-radius:.4rem}.reference-thumbs audio{display:block;width:100%}.reference-thumbs li:has(audio){grid-column:1 / -1}.audio-volume{display:flex;align-items:center;gap:.75rem}.audio-volume input{flex:1}.audio-volume output{min-width:3ch;text-align:right}.reference-thumbs span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.75rem}.library-grid{grid-template-columns:minmax(0,1fr) minmax(14rem,.85fr)}.library-cards{display:grid;gap:.8rem}.library-dialog{width:min(44rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);padding:0;border:1px solid var(--line);border-radius:1rem;background:var(--white);color:var(--ink);box-shadow:0 1.4rem 4rem #24203f36;overscroll-behavior:contain}.library-dialog::backdrop{background:#17152c66}.library-form-actions{display:flex;gap:.6rem;flex-wrap:wrap}.library-dialog .library-form-actions{justify-content:flex-end;border-top:1px solid var(--line);padding-top:.9rem}.library-saved-references summary{width:fit-content;cursor:pointer;color:var(--purple);font-size:.86rem;font-weight:650}.library-saved-references .reference-thumbs{margin-top:.65rem}.library-options{display:grid;gap:.45rem;max-height:15rem;overflow:auto}.library-option{display:flex;align-items:center;gap:.65rem;border:1px solid var(--line);border-radius:.58rem;padding:.58rem .67rem;cursor:pointer}.library-option:has(:checked){border-color:#8d65e9;background:#f6f1ff}.library-option input{accent-color:var(--purple)}.library-option span{display:grid;gap:.1rem;overflow-wrap:anywhere}.library-option strong{font-size:.87rem}.library-option small{font-size:.76rem;color:var(--muted)}.library-choice{min-width:0}.library-item-choices{list-style:none;margin:.3rem 0 .4rem;padding:0 .65rem;display:grid;gap:.2rem}.library-item-choices label{display:flex;align-items:center;gap:.45rem;padding:.26rem .35rem;font-size:.83rem;cursor:pointer}.library-item-choices input{accent-color:var(--purple)}.library-item-choices svg{flex-shrink:0;color:#613bbb}.library-item-choices span{min-width:0;overflow-wrap:anywhere}.library-shortcut,.library-submit{justify-self:start;display:inline-flex;align-items:center;gap:.4rem}.revision-studio{margin-top:1.2rem;gap:1.25rem}.revision-studio h2{display:flex;align-items:center;gap:.5rem}.revision-studio h2 svg{color:var(--purple)}.revision-grid{display:grid;grid-template-columns:minmax(12rem,.7fr) minmax(0,1.3fr);align-items:start;gap:1.3rem}.revision-player{display:grid;gap:.62rem;justify-items:center;border-radius:.76rem;padding:.75rem;background:#f3eff8}.revision-player video{width:100%;max-height:25rem;display:block;background:#18172b;border-radius:.55rem}.revision-player p{font-weight:650}.revision-form{min-width:0;display:grid;gap:.7rem}.revision-scrubber .field{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:.35rem}.revision-scrubber .field span{color:var(--muted);font-weight:500}.revision-scrubber .field input{padding:0;min-height:1.6rem;accent-color:var(--purple);border:0}.revision-selection{background:var(--line);position:relative;height:.42rem;border-radius:.35rem;overflow:hidden}.revision-selection span{position:absolute;inset:0 auto;border-radius:.35rem;background:var(--purple)}.revision-range .text-button{font-size:.82rem;margin-top:.22rem}.revision-range-actions{display:flex;flex-wrap:wrap;gap:.5rem}.revision-estimate{display:flex;gap:.45rem;flex-wrap:wrap;align-items:baseline;justify-content:space-between;border-radius:.58rem;background:var(--soft);padding:.7rem .8rem}.revision-estimate span{font-size:.86rem;color:var(--muted)}.revision-actions{display:flex;justify-content:flex-end}.revision-history{margin:0;list-style:none;padding:0 0 0 1rem;border-left:2px solid #e7ddf9;display:grid;gap:.65rem}.revision-history li{position:relative;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;border:1px solid var(--line);border-radius:.65rem;padding:.66rem .75rem}.revision-history li:before{content:"";position:absolute;width:.57rem;height:.57rem;border-radius:50%;background:var(--purple);left:-1.36rem;top:1rem}.revision-version{display:grid;min-width:0;gap:.28rem}.revision-instruction{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem}.project-layout{display:grid;grid-template-columns:minmax(13rem,16rem) minmax(0,1fr);gap:1rem;align-items:start}.project-timeline{padding:.95rem;min-width:0}.project-cost-summary{container:project-costs / inline-size;padding:clamp(.75rem,1.6vw,1.15rem);margin-bottom:1rem}.project-cost-summary>header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.4rem .75rem;margin-bottom:.75rem}.project-cost-summary>header p{color:var(--muted);font-size:.8rem}.project-cost-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}.project-cost-card{display:grid;min-width:0;align-content:start;gap:.42rem;padding:.78rem .86rem;border:1px solid var(--line);border-radius:.68rem;background:#fcfbfe}.project-cost-card h3{display:flex;align-items:center;gap:.38rem;margin:0;font-size:.83rem;font-weight:650}.project-cost-card h3 svg{color:var(--purple-dark)}.project-cost-value{font-size:clamp(1.25rem,2.35vw,1.8rem);font-weight:735;letter-spacing:-.035em;line-height:1.12;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.project-cost-extra{display:grid;gap:.23rem;margin-top:.07rem;color:var(--muted);font-size:.77rem;line-height:1.35}.project-cost-extra:empty{display:none}.project-cost-total{background:#f4efff;border-color:#dacbf6;box-shadow:inset 0 2px #936ce6}.project-cost-total .project-cost-value,.project-cost-total .project-cost-extra strong{color:#4923a1}.project-cost-total .project-cost-extra p{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:.25rem .5rem}.provider-cost-lines,.quote-lines{margin:0}.provider-cost-lines>div,.quote-lines>div,.payment-amounts>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.15rem .65rem;align-items:baseline}.provider-cost-lines dt,.quote-lines dt,.payment-amounts dt{color:var(--muted)}.provider-cost-lines dt{color:var(--ink);font-weight:645}.provider-cost-lines dd,.quote-lines dd,.payment-amounts dd{margin:0;color:var(--ink);font-weight:680;text-align:right;font-variant-numeric:tabular-nums}.provider-cost-lines small,.quote-lines small{display:block;margin-top:.12rem;color:var(--muted);font-size:.74rem;font-weight:450}.provider-cost-lines>div+div{margin-top:.35rem;padding-top:.35rem;border-top:1px solid var(--line)}.cost-test-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.3rem .65rem;padding:.56rem .7rem;border:1px solid #dcd5eb;border-radius:.6rem;background:#faf8fd;color:#5a4c73;font-size:.8rem}.cost-test-notice span:first-child{display:inline-flex;gap:.37rem;align-items:center;font-weight:650}.cost-test-notice strong{margin-left:.2rem;color:#39295a;font-variant-numeric:tabular-nums}.project-cost-summary>.cost-test-notice{margin-top:.65rem}@container project-costs (max-width: 37rem){.project-cost-grid{grid-template-columns:minmax(0,1fr);gap:.42rem}.project-cost-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.24rem .45rem;align-items:baseline;padding:.64rem .67rem}.project-cost-value{text-align:right;font-size:1.12rem}.project-cost-extra{grid-column:1 / -1}.project-cost-total{box-shadow:inset 2px 0 #936ce6}}.project-workbench{min-width:0;display:grid;gap:.8rem}.project-workbench .operations-panel,.project-workbench .narration-editor{margin:0}.project-version-header{display:grid;gap:.85rem;padding:1rem}.project-version-heading{display:flex;justify-content:space-between;align-items:start;gap:.45rem .9rem;flex-wrap:wrap}.project-version-heading h2{font-size:1.45rem}.project-version-heading p{margin-top:.24rem;color:var(--muted);font-size:.85rem;line-height:1.45}.project-timeline-actions{display:flex;flex-wrap:wrap;gap:.55rem}.project-timeline-actions>*,.project-narration-track>.secondary,.project-progress .secondary{min-height:2.45rem;padding:.5rem .73rem;font-size:.84rem}.narration-editor{padding:.85rem;border:1px solid var(--line);border-radius:.7rem;margin-top:.7rem}.narration-editor h3{margin:0}.project-narration-mix{display:flex;align-items:center;gap:.45rem}.project-narration-track{display:grid;justify-items:start;gap:.5rem;margin-top:.75rem;font-size:.87rem}.project-narration-track audio{width:100%;max-width:24rem}.project-isolated-voice{border-top:1px solid var(--line);padding-top:.75rem}.project-versions{display:flex;flex-direction:column;gap:.55rem;list-style:none;margin:.65rem 0 0;padding:.2rem .15rem}.project-versions:empty{display:none}.project-versions li{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:.68rem;background:#fff;min-width:0}.project-versions li:has(.project-version[aria-pressed=true]){border-color:var(--purple);background:var(--soft)}.project-version{flex:1;display:grid;grid-template-columns:2.9rem minmax(0,1fr);align-items:start;gap:.55rem;width:100%;text-align:left;border:0;border-radius:.68rem .68rem 0 0;background:transparent;color:inherit;padding:.6rem}.project-version:hover{background:var(--soft)}.project-version .project-cover-art{aspect-ratio:1;width:100%;border-radius:.4rem}.project-version .project-cover-art>svg{width:1.15rem;height:1.15rem;opacity:.8}.project-version-copy{display:grid;gap:.18rem;font-size:.88rem}.project-version small{color:var(--muted);font-size:.73rem;line-height:1.3;overflow-wrap:anywhere}.project-version-actions{display:flex;flex-wrap:wrap;border-top:1px solid var(--line)}.project-version-actions button{display:flex;align-items:center;justify-content:center;gap:.31rem;padding:.48rem;min-height:2.15rem;flex:1 1 auto;border:0;background:transparent;color:var(--purple-dark);font-size:.82rem;font-weight:650}.project-version-actions button+button{border-left:1px solid var(--line)}.project-version-actions button:hover{background:var(--soft);text-decoration:underline}.project-edition-media{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(12.5rem,1fr);align-items:start;gap:.85rem;padding:1rem}.project-edition-video,.project-edition-audio{min-width:0}.project-edition-video header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.4rem;margin-bottom:.55rem}.project-edition-video header button{font-size:.81rem}.project-edition-media h3{font-size:1rem;margin:0}.project-edition-player{display:grid;place-items:center;min-height:12rem;background:#18172b;border-radius:.65rem;overflow:hidden}.project-edition-player video{display:block;width:100%;max-height:min(54vh,30rem);object-fit:contain}.project-edition-audio{background:#f8f6fc;border:1px solid var(--line);padding:.75rem;border-radius:.65rem}.project-edition-audio h3 svg{margin-right:.22rem;color:var(--purple-dark)}.project-audio-facts{display:grid;gap:.5rem;margin:.75rem 0 0;font-size:.88rem}.project-audio-facts dt{color:var(--muted);font-size:.76rem}.project-audio-facts dd{margin:.13rem 0 0;font-weight:650;overflow-wrap:anywhere}.project-narration-script,.project-revision-history{margin-top:.75rem}.project-narration-script summary,.project-revision-history summary,.project-creative summary{cursor:pointer;color:var(--purple-dark);font-weight:650;font-size:.88rem}.project-narration-script p{margin-top:.55rem;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.86rem;line-height:1.5}.project-creative{padding:.85rem 1rem}.project-creative>.direction-panel{padding:.85rem 0 0;border:0;box-shadow:none}.project-attribution{color:var(--muted);font-size:.78rem}.project-progress{display:grid;grid-template-columns:7.2rem minmax(0,1fr);gap:1rem;align-items:center;padding:.85rem;border:1px solid #e7dcfa;border-radius:1rem;background:linear-gradient(115deg,#eee5fc,#fcfaff 55%)}.project-progress h3{margin:0 0 .3rem;font-size:1.1rem;letter-spacing:-.02em}.project-progress p{font-size:.88rem;color:var(--muted);line-height:1.45}.project-progress p+p,.project-progress .secondary,.project-progress .project-speech-note{margin-top:.42rem}.studio-host{position:relative;width:7.2rem;height:7.2rem;border-radius:.7rem;overflow:hidden;background:#542ab0;isolation:isolate}.studio-host-glow{position:absolute;inset:15% 18% 17%;border-radius:50%;background:#8259d8;animation:host-glow 3s ease-in-out infinite}.studio-host-shirt{position:absolute;width:5.5rem;height:3.25rem;left:.85rem;bottom:-.85rem;border-radius:48% 48% 0 0;background:#b6f0db}.studio-host-neck{position:absolute;width:1.25rem;height:1.55rem;left:2.98rem;top:3.72rem;border-radius:0 0 .6rem .6rem;background:#c77c51}.studio-host-head{position:absolute;width:2.8rem;height:3.05rem;left:2.2rem;top:1.45rem;border-radius:43% 42% 46% 45%;background:#eda977;box-shadow:-.2rem .32rem 0 -.085rem #d98b5f,.2rem .32rem 0 -.085rem #d98b5f}.studio-host-hair{position:absolute;left:-.16rem;top:-.35rem;width:3rem;height:1.48rem;background:#2c1a3a;border-radius:67% 40% 53% 8%;transform:rotate(-8deg)}.studio-host-eyes{position:absolute;top:1.52rem;left:.66rem;width:.24rem;height:.29rem;background:#362137;border-radius:50%;box-shadow:1.2rem 0 #362137;animation:host-blink 4.3s infinite}.studio-host-mouth{position:absolute;top:2.25rem;left:1.03rem;width:.7rem;height:.27rem;background:#71334b;border-radius:10% 10% 60% 60%}.studio-host-waves{position:absolute;top:.72rem;right:.54rem;height:.85rem;display:flex;align-items:center;gap:.15rem}.studio-host-waves i{width:.16rem;height:34%;border-radius:.25rem;background:#e9d8ff;animation:host-waves 1.25s ease-in-out infinite alternate}.studio-host-waves i:nth-child(2){animation-delay:-.5s}.studio-host-waves i:nth-child(3){animation-delay:-.85s}.studio-host.is-speaking .studio-host-mouth{animation:host-speaking .28s ease-in-out infinite alternate}@keyframes host-glow{50%{transform:scale(1.14);opacity:.7}}@keyframes host-blink{0%,46%,51%,to{transform:scaleY(1)}48%{transform:scaleY(.15)}}@keyframes host-waves{to{height:100%}}@keyframes host-speaking{to{transform:scaleY(2.15)}}@media(prefers-reduced-motion:reduce){.studio-host *,.studio-host.is-speaking .studio-host-mouth{animation:none}}@media(max-width:1190px){.project-edition-media{grid-template-columns:1fr}}@media(max-width:880px){.project-layout{grid-template-columns:1fr}.project-versions{flex-direction:row;overflow-x:auto;padding:.25rem .2rem .45rem;scroll-snap-type:x proximity}.project-versions li{flex:0 0 min(11.5rem,78%);scroll-snap-align:start}}@media(max-width:480px){.project-progress{grid-template-columns:5.6rem minmax(0,1fr);gap:.65rem}.studio-host{transform:scale(.77);transform-origin:left center}.project-edition-player video{max-height:52vh}}.project-hidden{border-top:1px solid var(--line);margin-top:.75rem;padding-top:.75rem}.project-hidden summary{cursor:pointer;color:var(--purple-dark)}.project-hidden ul{list-style:none;padding:0;margin:.5rem 0 0}.project-hidden li{display:flex;align-items:center;gap:.8rem;padding:.25rem 0}.operations-panel{container:version-costs / inline-size;margin-top:1.2rem;padding:clamp(.8rem,1.6vw,1.12rem)}.operations-heading{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.42rem .7rem;cursor:pointer;list-style:none;font-weight:700}.operations-heading::-webkit-details-marker{display:none}.operations-heading>svg{grid-column:3;color:var(--purple-dark)}.operations-panel[open]>.operations-heading>svg{transform:rotate(180deg)}.operations-heading-amount{display:inline-flex;align-items:baseline;gap:.35rem;color:var(--muted);font-size:.78rem;font-weight:500}.operations-heading-amount strong{color:var(--purple-dark);font-size:.95rem;font-variant-numeric:tabular-nums}.operation-finances{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem;align-items:start;margin-top:.85rem}.operation-finances:has(.quote-breakdown){grid-template-columns:minmax(0,1.32fr) minmax(0,1fr)}.quote-breakdown,.operation-confirmed-costs{padding:.73rem .82rem;border:1px solid var(--line);border-radius:.66rem;background:#fcfbfe;min-width:0}.quote-breakdown h3,.operation-confirmed-costs h3,.operation-log h3{margin:0 0 .5rem;font-size:.98rem}.quote-lines,.operation-confirmed-costs .provider-cost-lines,.operation-confirmed-costs>p{font-size:.85rem}.quote-lines>div{padding:.32rem 0}.quote-lines .quote-subtotal{border-top:1px solid var(--line);margin-top:.2rem;padding-top:.52rem}.quote-lines .quote-total-row{margin-top:.42rem;border-radius:.5rem;background:#efe8fc;padding:.55rem .6rem}.quote-total-row dt,.quote-total-row dd{color:#48259a;font-weight:735}.quote-total-row dd{font-size:1.08rem}.quote-rate-details{margin-top:.55rem;font-size:.8rem}.quote-rate-details summary{cursor:pointer;color:var(--purple-dark);font-weight:650}.quote-rate-details .quote-lines{margin-top:.27rem;font-size:.79rem}.operation-log{border-top:1px solid var(--line);padding-top:.8rem;margin-top:.85rem}.operation-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.45rem;margin:0;font-size:.82rem}.operation-facts div{min-width:0;border-radius:.5rem;background:#f7f5fb;padding:.46rem .54rem}.operation-facts dt,.operation-list p{color:var(--muted)}.operation-facts dd{margin:.24rem 0 0;font-weight:650;font-variant-numeric:tabular-nums}.payment-amounts{display:grid;gap:.22rem;margin:.48rem 0 .25rem;font-size:.84rem}.operation-log>.muted{margin-top:.55rem;font-size:.85rem}.operation-list{display:grid;gap:.5rem;list-style:none;padding:0;margin-bottom:0}.operation-log>.operation-list{margin-top:.62rem}.operation-list li{border:1px solid var(--line);border-radius:.58rem;padding:.65rem .75rem}.operation-list p{font-size:.83rem;margin:.28rem 0 0}.operation-title{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .65rem}@container version-costs (max-width: 30rem){.operation-finances:has(.quote-breakdown){grid-template-columns:minmax(0,1fr)}.operations-heading{grid-template-columns:minmax(0,1fr) auto}.operations-heading>svg{grid-column:2;grid-row:1}.operations-heading-amount{grid-column:1}}.project-settings{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.project-settings small{color:var(--muted);font-weight:450}.project-source{display:grid;gap:.4rem;border:1px solid var(--line);border-radius:.7rem;padding:.75rem}.project-source label{display:flex;align-items:center;gap:.5rem;font-weight:640}.project-source input{accent-color:var(--purple)}.project-source p{margin:0}.voice-consent{display:flex;align-items:flex-start;gap:.5rem}.voice-consent input{accent-color:var(--purple);margin-top:.2rem}.voice-sample{font-size:.85rem}.voice-sample audio{display:block;width:100%}@media(max-width:1000px){.studio-layout{grid-template-columns:12rem minmax(0,1fr)}.workspace-grid{grid-template-columns:minmax(0,1.25fr) minmax(14rem,1fr)}.field-grid{grid-template-columns:1fr}}@media(max-width:760px){.revision-grid{grid-template-columns:minmax(0,1fr)}.revision-player video{max-height:19rem}.studio-layout{grid-template-columns:minmax(0,1fr)}.sidebar{padding:.85rem 1.1rem;display:grid;grid-template-columns:1fr auto;gap:.66rem;align-items:center}.sidebar nav{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;grid-column:1 / -1;grid-row:2}.sidebar nav button{justify-content:center;min-height:2.5rem;padding-inline:.35rem;font-size:.9rem}.profile{min-width:0}.profile-email{max-width:9rem}.account-layout{grid-template-columns:minmax(0,1fr)}.account-side{gap:1.5rem}.account-intro{margin:0}.account-art{display:none}.account-content{padding:2rem 1.1rem;align-items:start}}@container (max-width: 30rem){.creative-prompt-with-source{grid-template-columns:minmax(0,1fr);grid-template-areas:"source" "prompt"}.source-video video{max-height:15rem}}@media(max-width:570px){.workspace-grid{grid-template-columns:minmax(0,1fr)}.preview-surface{padding:.85rem}.steps{gap:.55rem;font-size:.78rem}.steps li>span{width:1.28rem;height:1.28rem;font-size:.72rem}.profile-email{display:none}}@media(max-width:920px){.creative-grid,.library-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:380px){.reference-actions{grid-template-columns:minmax(0,1fr)}}
