@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap";
:root{--bg:#08090b;--panel:#111216;--panel-2:#16171c;--panel-3:#1c1e24;--line:#282a31;--line-soft:#1f2127;--text:#f5f4f1;--muted:#92969f;--muted-2:#666b74;--accent:#f0ff67;--accent-ink:#11120b;--purple:#9e8cff;--green:#77dfb4;--danger:#ff7b8b;--radius:14px}*{box-sizing:border-box}html{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:var(--bg)}body{background:var(--bg);color:var(--text);min-width:320px;margin:0;font-family:DM Sans,Arial,sans-serif}button,textarea,select,input{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}img,video{max-width:100%;display:block}.spin{animation:1.1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.app-shell{background:radial-gradient(circle at 35% -20%, #9d8cff1a, transparent 34rem), var(--bg);min-height:100vh;display:flex}.icon-rail{z-index:20;border-right:1px solid var(--line-soft);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#08090bf0;flex-direction:column;align-items:center;width:78px;padding:18px 10px;display:flex;position:fixed;inset:0 auto 0 0}.brand-mark{background:var(--accent);width:43px;height:43px;color:var(--accent-ink);cursor:pointer;border:0;border-radius:13px;place-items:center;display:grid;box-shadow:0 0 25px #f0ff671f}.icon-rail nav{gap:8px;width:100%;margin-top:34px;display:grid}.rail-bottom{place-items:center;gap:12px;width:100%;margin-top:auto;display:grid}.rail-nav-button{width:58px;min-height:55px;color:var(--muted-2);cursor:pointer;background:0 0;border:0;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:7px 3px;transition:all .18s;display:flex}.rail-nav-button span{font-size:10px;font-weight:600}.rail-nav-button:hover{color:var(--text);background:#16171b}.rail-nav-button.active{color:var(--accent);background:#f0ff6714}.avatar-button{cursor:pointer;background:linear-gradient(145deg,#292b32,#16171b);border:1px solid #373941;border-radius:50%;width:35px;height:35px;font-size:11px;font-weight:700}.profile-menu-wrap{position:relative}.profile-menu{z-index:40;border:1px solid var(--line);background:#13151a;border-radius:13px;gap:5px;width:260px;padding:17px;display:grid;position:absolute;bottom:0;left:calc(100% + 14px);box-shadow:0 22px 60px #00000073}.profile-menu strong{margin-top:7px;font:600 14px Manrope,sans-serif}.profile-menu small{color:var(--muted);text-overflow:ellipsis;font-size:11px;overflow:hidden}.profile-menu button{height:38px;color:var(--text);cursor:pointer;background:#1b1d22;border:1px solid #363943;border-radius:9px;justify-content:center;align-items:center;gap:8px;margin-top:11px;font-size:12px;font-weight:600;display:flex}.profile-menu button:hover{border-color:var(--accent);color:var(--accent)}.profile-menu button:disabled{opacity:.55;cursor:wait}.app-frame{width:calc(100% - 78px);min-height:100vh;margin-left:78px}.topbar{border-bottom:1px solid var(--line-soft);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);z-index:15;background:#08090bbd;justify-content:space-between;align-items:center;height:74px;padding:0 26px 0 30px;display:flex;position:sticky;top:0}.topbar h1{margin:1px 0 0;font:600 18px/1 Manrope,sans-serif}.eyebrow{color:var(--muted-2);letter-spacing:.2em;font:700 9px/1 Manrope,sans-serif;display:block}.topbar-actions{align-items:center;gap:12px;display:flex}.connection-summary{border:1px solid var(--line);height:34px;color:var(--muted);background:#111216;border-radius:999px;align-items:center;gap:7px;padding:0 12px;font-size:12px;display:flex}.status-dot{background:#686b73;border-radius:50%;width:7px;height:7px}.status-dot.online{background:var(--green);box-shadow:0 0 9px #77dfb499}.icon-button{border:1px solid var(--line);width:35px;height:35px;color:var(--muted);cursor:pointer;background:#111216;border-radius:10px;place-items:center;padding:0;display:grid}.icon-button:hover{color:var(--text);border-color:#42454e}.workspace-grid{grid-template-columns:minmax(0,1fr) 318px;min-height:calc(100vh - 74px);display:grid}.main-content{min-width:0;padding:34px clamp(22px,3vw,52px) 70px}.create-page,.content-page{width:min(1080px,100%);margin:0 auto}.page-intro,.section-heading{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:25px;display:flex}.page-intro h2,.section-heading h2{letter-spacing:-.035em;margin:0 0 7px;font:600 clamp(23px,3vw,31px)/1.15 Manrope,sans-serif}.page-intro p,.section-heading p{color:var(--muted);margin:0;font-size:14px}.kind-switch{border:1px solid var(--line);background:#111216;border-radius:12px;gap:3px;padding:4px;display:flex}.kind-switch button{min-width:92px;height:34px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:7px;font-size:13px;font-weight:600;display:flex}.kind-switch button.active{color:var(--text);background:#2a2c31;box-shadow:0 1px 8px #0000003d}.studio-card{border:1px solid var(--line);background:#111216eb;border-radius:17px;overflow:visible;box-shadow:0 25px 65px #00000047}.studio-card-header{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:center;gap:18px;min-height:76px;padding:13px 15px 13px 20px;display:flex}.mode-tabs{flex-wrap:wrap;gap:5px;display:flex}.mode-tabs button{height:37px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:9px;align-items:center;gap:7px;padding:0 12px;font-size:12px;font-weight:600;display:flex}.mode-tabs button:hover{color:var(--text);background:#191a1f}.mode-tabs button.active{color:var(--text);background:#22242a;border-color:#33363e}.model-selector{text-align:left;cursor:pointer;background:#18191e;border:1px solid #30323a;border-radius:11px;grid-template-columns:36px 1fr auto;align-items:center;gap:9px;min-width:220px;height:50px;padding:6px 10px 6px 7px;display:grid}.model-selector:hover{background:#1d1f24;border-color:#454851}.model-selector>span:nth-child(2){min-width:0}.model-selector strong,.model-selector small{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.model-selector strong{font-size:12px}.model-selector small{color:var(--muted-2);margin-top:2px;font-size:10px}.model-selector>svg{color:var(--muted)}.model-emblem{color:#111;border-radius:9px;place-items:center;width:36px;height:36px;font-size:10px;font-weight:800;display:grid;box-shadow:inset 0 0 0 1px #fff3}.model-emblem.large{border-radius:11px;width:44px;height:44px;font-size:11px}.model-picker{z-index:30;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);background:#14151afa;border:1px solid #393b44;border-radius:16px;width:min(690px,100vw - 130px);max-height:min(720px,100vh - 190px);padding:18px;position:absolute;top:150px;right:calc(318px + clamp(22px,3vw,52px));overflow:auto;box-shadow:0 28px 90px #0000009e}.workspace-grid.history-closed .model-picker{right:clamp(22px,3vw,52px)}.picker-heading{justify-content:space-between;align-items:flex-start;margin-bottom:15px;display:flex}.picker-heading h3{margin:0 0 4px;font:600 16px Manrope,sans-serif}.picker-heading p{color:var(--muted);margin:0;font-size:12px}.model-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.model-picker-empty{color:var(--muted);text-align:center;border:1px dashed #3a3d45;border-radius:12px;grid-column:1/-1;padding:34px 18px}.model-card{border:1px solid var(--line);text-align:left;cursor:pointer;background:#17181d;border-radius:12px;grid-template-columns:44px 1fr auto;gap:11px;min-height:105px;padding:13px;display:grid}.model-card:hover{background:#1c1e24;border-color:#484b55}.model-card.selected{background:#f0ff670b;border-color:#f0ff6785}.model-card-copy{min-width:0}.model-card-copy>span{align-items:center;gap:7px;display:flex}.model-card-copy strong{font-size:13px}.model-card-copy em{color:#c8cbd2;background:#2c2e35;border-radius:999px;padding:2px 6px;font-size:9px;font-style:normal;font-weight:700}.model-card-copy small{color:var(--muted-2);margin-top:2px;font-size:10px;display:block}.model-card-copy p{color:var(--muted);margin:8px 0 0;font-size:11px;line-height:1.35}.model-check{color:var(--accent)}.studio-body{padding:22px}.reference-stage{background:#0d0e11;border:1px dashed #42454e;border-radius:14px;place-items:center;min-height:205px;margin-bottom:22px;transition:all .18s;display:grid;overflow:hidden}.reference-stage:hover{background:#0f1014;border-color:#666a74}.reference-stage.has-assets{padding:14px;display:block}.motion-reference-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:22px;display:grid}.motion-drop-zone{background:#0d0e11;border:1px dashed #42454e;border-radius:14px;min-width:0;min-height:238px;transition:border-color .18s,background .18s,transform .18s;position:relative;overflow:hidden}.motion-drop-zone:hover{background:#101116;border-color:#6a6e78}.motion-empty{cursor:pointer;text-align:center;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:236px;padding:24px 18px;display:flex}.motion-slot-icon{width:48px;height:48px;color:var(--accent);background:#1b1d22;border:1px solid #3b3f48;border-radius:14px;place-items:center;margin-bottom:13px;display:grid}.motion-slot-icon.video{color:#72d9ff}.motion-empty em{min-width:27px;height:22px;color:var(--muted);background:#22252c;border-radius:6px;place-items:center;padding:0 6px;font-size:9px;font-style:normal;font-weight:800;display:grid;position:absolute;top:13px;left:14px}.motion-empty strong{font:650 14px Manrope,sans-serif}.motion-empty p{max-width:260px;color:var(--muted);margin:6px 0 0;font-size:11px;line-height:1.4}.motion-empty small{color:var(--muted-2);margin-top:13px;font-size:9px}.motion-drop-zone.has-asset{border-style:solid;border-color:#393c45;grid-template-rows:172px 66px;display:grid}.motion-drop-zone.has-asset>img,.motion-drop-zone.has-asset>video{object-fit:contain;background:#08090b;width:100%;height:172px}.motion-slot-caption{background:#15171b;border-top:1px solid #30333a;align-content:center;gap:2px;min-width:0;padding:10px 94px 10px 12px;display:grid}.motion-slot-caption span{color:var(--accent);letter-spacing:.08em;font-size:8px;font-weight:800}.motion-slot-caption strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.motion-slot-caption small{color:var(--muted-2);font-size:9px}.motion-remove{z-index:2;width:28px;height:28px;color:var(--text);cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#08090bd1;border:1px solid #ffffff1a;border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:8px;right:8px}.motion-replace{color:#d7d9df;cursor:pointer;background:#202228;border:1px solid #383b43;border-radius:7px;align-items:center;gap:5px;height:30px;padding:0 9px;font-size:9px;display:flex;position:absolute;bottom:17px;right:10px}.reference-empty{cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:202px;display:flex}.upload-orb{width:46px;height:46px;color:var(--accent);background:#1b1d22;border:1px solid #3a3d45;border-radius:14px;place-items:center;margin-bottom:13px;display:grid}.reference-empty strong{font:600 14px Manrope,sans-serif}.reference-empty>span:not(.upload-orb){color:var(--muted);margin-top:5px;font-size:12px}.reference-empty small{color:var(--muted-2);margin-top:13px;font-size:10px}.reference-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px;display:grid}.reference-tile,.add-reference{border-radius:10px;height:130px;position:relative;overflow:hidden}.reference-tile{background:#1b1c21;border:1px solid #32343b}.reference-tile img,.reference-tile video{object-fit:cover;width:100%;height:100%}.reference-tile>button{cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#08090bbd;border:0;border-radius:50%;place-items:center;width:25px;height:25px;padding:0;display:grid;position:absolute;top:6px;right:6px}.reference-index{background:#08090bbf;border-radius:6px;place-items:center;min-width:22px;height:22px;padding:0 6px;font-size:10px;font-weight:700;display:grid;position:absolute;bottom:6px;left:6px}.audio-reference{height:100%;color:var(--purple);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:14px;display:flex}.audio-reference span{color:var(--muted);text-overflow:ellipsis;max-width:100%;font-size:10px;overflow:hidden}.add-reference{color:var(--muted);cursor:pointer;background:0 0;border:1px dashed #43464f;flex-direction:column;justify-content:center;align-items:center;gap:6px;display:flex}.add-reference span{font-size:11px}.add-reference:hover{color:var(--text);border-color:#686c75}.drop-hint{color:var(--muted-2);align-items:center;gap:6px;margin:10px 2px 0;font-size:10px;display:flex}.field-label{justify-content:space-between;align-items:center;margin-bottom:9px;display:flex}.field-label label{font-size:12px;font-weight:600}.field-label span{color:var(--muted-2);font-size:10px}.prompt-section textarea{resize:vertical;width:100%;min-height:142px;color:var(--text);background:#0d0e11;border:1px solid #34363e;border-radius:12px 12px 0 0;padding:16px;font-size:14px;line-height:1.55}.prompt-section textarea::placeholder{color:#545861}.prompt-tools{background:#111216;border:1px solid #34363e;border-top:0;border-radius:0 0 12px 12px;justify-content:space-between;align-items:center;gap:12px;min-height:40px;padding:0 11px;display:flex}.prompt-tools button{color:#c1c4cb;cursor:pointer;background:#181a1f;border:1px solid #30333a;border-radius:7px;align-items:center;gap:6px;height:27px;padding:0 9px;font-size:10px;display:flex}.prompt-tools span{color:var(--muted-2);text-align:right;font-size:9px}.control-groups{border-top:1px solid var(--line-soft);flex-wrap:wrap;align-items:flex-end;gap:22px;margin-top:20px;padding-top:19px;display:flex}.control-group{gap:9px;display:grid}.motion-control-note{background:#17191e;border:1px solid #343741;border-radius:10px;gap:2px;min-width:250px;min-height:40px;padding:8px 12px;display:grid}.motion-control-note strong{color:var(--text);font-size:12px}.motion-control-note span{color:var(--muted);font-size:10px}.control-label{color:var(--muted);align-items:center;gap:6px;font-size:10px;font-weight:600;display:flex}.compact-control{background:#15171b;border:1px solid #30333a;border-radius:10px;min-width:170px;overflow:hidden}.compact-control-trigger{text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;min-height:48px;padding:7px 10px;display:grid}.compact-control-trigger:hover{background:#1c1e23}.compact-control-trigger>svg{color:var(--muted);transition:transform .18s}.compact-control.open .compact-control-trigger>svg{transform:rotate(180deg)}.compact-control-icon{width:30px;height:30px;color:var(--accent);background:#f0ff6714;border-radius:8px;place-items:center;display:grid}.compact-control-copy{gap:1px;min-width:0;display:grid}.compact-control-copy small{color:var(--muted);font-size:11px;font-weight:600}.compact-control-copy strong{color:var(--text);font-size:13px}.compact-control-panel{background:#101115;border-top:1px solid #2d3037;padding:11px}.compact-control-panel .pill-row{flex-wrap:wrap}.pill-row{gap:5px;display:flex}.pill-row button{min-width:39px;height:31px;color:var(--muted);cursor:pointer;background:#16171b;border:1px solid #30323a;border-radius:7px;padding:0 9px;font-size:10px;font-weight:600}.pill-row button:hover{color:var(--text);border-color:#484b54}.pill-row button.active{color:var(--text);background:#30323a;border-color:#50535d}.stepper{background:#16171b;border:1px solid #30323a;border-radius:7px;align-items:center;height:31px;display:flex;overflow:hidden}.stepper button{width:28px;height:100%;color:var(--muted);cursor:pointer;background:0 0;border:0}.stepper button:hover{color:var(--text);background:#24262c}.stepper strong{text-align:center;min-width:39px;font-size:10px}.toggle{cursor:pointer;background:#202127;border:1px solid #393b43;border-radius:999px;width:44px;height:25px;padding:3px;transition:all .2s}.toggle span{background:#787c85;border-radius:50%;width:17px;height:17px;transition:all .2s;display:block}.toggle.on{background:var(--accent);border-color:var(--accent)}.toggle.on span{background:var(--accent-ink);transform:translate(18px)}.confirm-bar{border-top:1px solid var(--line-soft);background:#0d0e11;border-radius:0 0 17px 17px;grid-template-columns:minmax(280px,1fr) auto auto;align-items:center;gap:18px;min-height:86px;padding:14px 16px 14px 20px;display:grid}.route-confirmation{grid-template-columns:36px minmax(100px,1fr) minmax(128px,auto);align-items:center;gap:10px;display:grid}.route-icon{width:36px;height:36px;color:var(--accent);background:#f0ff6717;border-radius:10px;place-items:center;display:grid}.route-confirmation>div span,.cost-preview span{color:var(--muted-2);font-size:9px;display:block}.route-confirmation>div strong{margin-top:2px;font-size:11px;display:block}.route-confirmation .route-staging-note{color:var(--muted);margin-top:3px;font-size:8px;line-height:1.25;display:block}.route-confirmation select{color:#c5c7cd;cursor:pointer;background:#18191e;border:1px solid #31343b;border-radius:8px;height:32px;padding:0 28px 0 9px;font-size:10px}.cost-preview{text-align:right;min-width:82px}.cost-preview strong{margin:1px 0;font:600 18px Manrope,sans-serif;display:block}.cost-preview small{color:var(--muted-2);font-size:9px}.generate-button{background:var(--accent);min-width:178px;height:49px;color:var(--accent-ink);cursor:pointer;border:0;border-radius:11px;justify-content:center;align-items:center;gap:8px;padding:0 17px;font-size:12px;font-weight:700;display:flex;box-shadow:0 9px 22px #f0ff671a}.generate-button:hover{filter:brightness(1.05);transform:translateY(-1px)}.generate-button:disabled{opacity:.4;cursor:not-allowed;transform:none}.notice,.project-note{color:#bbbfc7;background:#121419;border:1px solid #30343a;border-radius:10px;align-items:center;gap:9px;min-height:42px;margin-top:13px;padding:10px 13px;font-size:11px;display:flex}.notice svg,.project-note svg{color:var(--accent);flex:none}.history-rail{border-left:1px solid var(--line-soft);background:#0c0d10;min-width:0;height:calc(100vh - 74px);position:sticky;top:74px;overflow:hidden}.history-rail-heading{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:center;height:69px;padding:0 16px;display:flex}.history-rail-heading h3{margin:0 0 3px;font:600 12px Manrope,sans-serif}.history-rail-heading span{color:var(--muted-2);font-size:9px;display:block}.history-rail-heading button{color:var(--accent);cursor:pointer;background:0 0;border:0;font-size:10px}.history-list{height:calc(100% - 69px);padding:12px;overflow-y:auto}.empty-history{min-height:210px;color:var(--muted-2);text-align:center;border:1px dashed #2d2f36;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;padding:28px 20px;display:flex}.empty-history strong{color:#c4c6cb;margin-top:12px;font-size:12px}.empty-history p{max-width:190px;margin:6px 0 0;font-size:10px;line-height:1.5}.rail-history-card{cursor:grab;background:#111216;border:1px solid #25272d;border-radius:11px;grid-template-columns:72px minmax(0,1fr);gap:10px;margin-bottom:8px;padding:8px;display:grid;position:relative}.rail-history-card:hover{border-color:#3b3e46}.rail-preview{background:#1b1d22;border-radius:8px;width:72px;height:72px;overflow:hidden}.rail-preview img,.rail-preview video{object-fit:cover;width:100%;height:100%}.rail-card-copy{min-width:0;padding-top:1px}.rail-card-copy>div{justify-content:space-between;align-items:center;gap:4px;display:flex}.rail-card-copy strong{white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:10px;overflow:hidden}.rail-card-copy p{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:7px 0 6px;font-size:9px;line-height:1.35;display:-webkit-box;overflow:hidden}.rail-card-copy>span{color:var(--muted-2);font-size:8px}.reuse-button{width:24px;height:24px;color:var(--muted);cursor:pointer;opacity:0;background:#191a1f;border:1px solid #30323a;border-radius:7px;place-items:center;padding:0;display:grid;position:absolute;bottom:5px;right:5px}.rail-history-card:hover .reuse-button{opacity:1}.job-status{color:var(--muted);text-transform:capitalize;background:#25272d;border-radius:999px;padding:2px 5px;font-size:7px}.job-status.completed{color:var(--green);background:#77dfb41a}.job-status.failed{color:var(--danger);background:#ff7b8b1a}.job-status.running{color:#bdb1ff;background:#9e8cff1f}.job-placeholder{width:100%;height:100%;color:var(--muted);text-transform:capitalize;background:linear-gradient(140deg,#20222a,#14151a);flex-direction:column;justify-content:center;align-items:center;gap:7px;font-size:8px;display:flex}.job-placeholder.failed{color:var(--danger)}.content-page{padding-top:4px}.section-heading{align-items:center}.section-actions{align-items:center;gap:10px;display:flex}.filter-tabs{border:1px solid var(--line);height:36px;color:var(--muted);background:#111216;border-radius:9px;align-items:center;gap:3px;padding:3px 4px 3px 10px;display:flex}.filter-tabs button{height:28px;color:var(--muted);text-transform:capitalize;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0 9px;font-size:10px}.filter-tabs button.active{color:var(--text);background:#2a2c32}.secondary-button,.primary-small{border:1px solid var(--line);color:#c1c4cb;cursor:pointer;background:#15161a;border-radius:9px;align-items:center;gap:7px;height:36px;padding:0 12px;font-size:10px;font-weight:600;display:flex}.primary-small{border-color:var(--accent);background:var(--accent);color:var(--accent-ink)}.history-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.gallery-card{border:1px solid var(--line);cursor:grab;background:#111216;border-radius:13px;position:relative;overflow:hidden}.gallery-card:hover{border-color:#42454d;transition:all .18s;transform:translateY(-2px)}.gallery-preview{aspect-ratio:4/3;background:#1b1d22;position:relative;overflow:hidden}.gallery-preview>img,.gallery-preview>video{object-fit:cover;width:100%;height:100%}.kind-badge{text-transform:capitalize;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#08090bbf;border-radius:6px;align-items:center;gap:5px;height:23px;padding:0 7px;font-size:8px;display:flex;position:absolute;top:8px;left:8px}.gallery-copy{padding:12px}.gallery-copy>div{justify-content:space-between;align-items:center;gap:8px;display:flex}.gallery-copy strong{font-size:11px}.gallery-copy p{height:34px;color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:8px 0 11px;font-size:10px;line-height:1.5;display:-webkit-box;overflow:hidden}.gallery-copy footer{border-top:1px solid var(--line-soft);justify-content:space-between;align-items:center;padding-top:9px;display:flex}.gallery-copy footer>span{color:var(--muted-2);font-size:8px}.gallery-copy footer button{color:var(--accent);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;font-size:8px;display:flex}.large-empty{min-height:330px;color:var(--muted-2);text-align:center;border:1px dashed #2d2f36;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;display:flex}.large-empty h3{color:#d9dadd;margin:14px 0 5px;font:600 15px Manrope,sans-serif}.large-empty p{margin:0;font-size:11px}.project-grid{grid-template-columns:1.4fr 1fr;gap:15px;display:grid}.project-card,.new-project-card{border:1px solid var(--line);text-align:left;cursor:pointer;background:#111216;border-radius:14px;min-height:180px;padding:22px}.project-card{grid-template-columns:50px 1fr;align-content:start;gap:14px;display:grid;position:relative}.project-card.featured{background:radial-gradient(circle at 100% 0,#9e8cff2e,#0000 50%),#111216}.project-icon{color:#b8aaff;background:#9e8cff1f;border-radius:12px;place-items:center;width:50px;height:50px;display:grid}.project-card strong,.new-project-card strong{font:600 14px Manrope,sans-serif}.project-card p{color:var(--muted);margin:5px 0 0;font-size:10px}.project-stats{grid-column:1/-1;gap:10px;margin-top:18px;display:flex}.project-stats span{height:27px;color:var(--muted);border:1px solid #30323a;border-radius:7px;align-items:center;gap:5px;padding:0 8px;font-size:9px;display:flex}.new-project-card{color:var(--muted);text-align:center;border-style:dashed;flex-direction:column;justify-content:center;align-items:center;gap:7px;display:flex}.new-project-card:hover{color:var(--text);border-color:#555861}.new-project-card span{color:var(--muted-2);font-size:10px}.project-note p{margin:0}.settings-layout{grid-template-columns:1.1fr .9fr;gap:15px;display:grid}.settings-card{border:1px solid var(--line);background:#111216;border-radius:14px;padding:20px}.settings-card-title{align-items:flex-start;gap:11px;display:flex}.settings-card-title>svg{color:var(--accent);margin-top:2px}.settings-card-title h3{margin:0 0 4px;font:600 13px Manrope,sans-serif}.settings-card-title p{color:var(--muted);margin:0;font-size:10px}.provider-list{gap:9px;margin-top:20px;display:grid}.provider-row{background:#15161a;border:1px solid #292b32;border-radius:10px;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:63px;padding:10px;display:grid}.provider-logo{background:#2a2c32;border-radius:9px;place-items:center;width:38px;height:38px;font-size:10px;font-weight:800;display:grid}.provider-logo.fal{color:#121212;background:#fff;font-size:12px}.provider-logo.byteplus{background:linear-gradient(140deg,#5748ff,#ad70ff)}.provider-row>div strong,.provider-row>div span{display:block}.provider-row>div strong{font-size:11px}.provider-row>div span{color:var(--muted-2);margin-top:3px;font-size:9px}.provider-state{color:var(--muted-2);align-items:center;gap:5px;font-size:8px;display:flex}.provider-state>span{background:#686b73;border-radius:50%;width:6px;height:6px}.provider-state.ready{color:var(--green)}.provider-state.ready>span{background:var(--green)}.server-key-note{color:var(--muted);background:#0d0e11;border-radius:8px;gap:8px;margin-top:14px;padding:10px;font-size:9px;line-height:1.5;display:flex}.server-key-note p{margin:0}.server-key-note code{color:var(--accent)}.radio-list{gap:7px;margin-top:17px;display:grid}.radio-list label{cursor:pointer;background:#15161a;border:1px solid #292b32;border-radius:9px;grid-template-columns:18px 1fr auto;align-items:center;gap:8px;min-height:55px;padding:9px 10px;display:grid}.radio-list label.selected{background:#f0ff670a;border-color:#f0ff6773}.radio-list input{accent-color:var(--accent)}.radio-list strong,.radio-list small{display:block}.radio-list strong{font-size:10px}.radio-list small{color:var(--muted-2);margin-top:2px;font-size:8px}.radio-list label>svg{color:var(--accent);opacity:0}.radio-list label.selected>svg{opacity:1}.budget-readout{grid-template-columns:auto 1fr;align-items:end;column-gap:7px;margin:20px 0 14px;display:grid}.budget-readout strong{font:600 25px Manrope,sans-serif}.budget-readout span{color:var(--muted);padding-bottom:4px;font-size:9px}.budget-readout em{color:var(--green);grid-column:1/-1;font-size:8px;font-style:normal}.budget-card input[type=range]{width:100%;accent-color:var(--accent)}.range-labels{color:var(--muted-2);justify-content:space-between;font-size:8px;display:flex}@media (max-width:1120px){.workspace-grid{grid-template-columns:minmax(0,1fr) 285px}.history-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.confirm-bar{grid-template-columns:1fr auto}.route-confirmation{grid-column:1/-1}.cost-preview{text-align:left}.model-picker{right:307px}}@media (max-width:850px){.icon-rail{border:0;border-top:1px solid var(--line);flex-direction:row;justify-content:space-between;width:100%;height:66px;padding:7px 14px;position:fixed;inset:auto 0 0}.brand-mark{width:38px;height:38px}.icon-rail nav,.rail-bottom{width:auto;margin:0;display:flex}.rail-nav-button{width:58px;min-height:48px}.rail-nav-button span{font-size:8px}.profile-menu-wrap{z-index:30;position:fixed;top:20px;right:14px}.profile-menu{inset:calc(100% + 10px) 0 auto auto}.app-frame{width:100%;margin-left:0;padding-bottom:66px}.workspace-grid{display:block}.history-rail{display:none}.topbar{padding:0 17px}.main-content{padding:24px 16px 55px}.model-picker{width:auto;max-height:calc(100vh - 170px);position:fixed;inset:86px 14px auto;overflow:auto}.model-grid,.settings-layout{grid-template-columns:1fr}.settings-card:first-child{grid-row:auto}}@media (max-width:620px){.connection-summary{display:none}.page-intro,.section-heading{flex-direction:column;align-items:stretch}.kind-switch{align-self:stretch}.kind-switch button{flex:1}.studio-card-header{flex-direction:column-reverse;align-items:stretch}.model-selector{width:100%}.mode-tabs{grid-template-columns:repeat(2,1fr);display:grid}.mode-tabs button{justify-content:center}.studio-body{padding:15px}.motion-reference-pair{grid-template-columns:1fr}.motion-drop-zone{min-height:210px}.motion-empty{min-height:208px}.prompt-tools>span{display:none}.control-groups{gap:16px}.confirm-bar{grid-template-columns:1fr;gap:12px}.route-confirmation{grid-template-columns:36px 1fr}.route-confirmation select{grid-column:1/-1;width:100%}.cost-preview{grid-template-columns:1fr auto;align-items:center;display:grid}.cost-preview small{grid-column:1/-1}.generate-button{width:100%}.history-gallery{grid-template-columns:1fr}.section-actions{flex-direction:column;align-items:stretch}.project-grid{grid-template-columns:1fr}.reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.workspace-grid{grid-template-columns:minmax(0,1fr) 8px var(--history-width,360px)}.workspace-grid.history-closed{grid-template-columns:minmax(0,1fr)}.history-resizer{z-index:12;border:0;border-left:1px solid var(--line-soft);cursor:col-resize;touch-action:none;background:#0a0b0e;border-right:1px solid #0000;justify-content:center;align-items:center;width:8px;height:calc(100vh - 74px);padding:0;display:flex;position:sticky;top:74px}.history-resizer:before{content:"";position:absolute;inset:0 -4px}.history-resizer span{z-index:2;color:#777b84;opacity:.55;background:#17181d;border:1px solid #353840;border-radius:8px;place-items:center;width:22px;height:44px;margin-left:-1px;transition:all .18s;display:grid;position:relative;box-shadow:0 5px 18px #0000004d}.history-resizer:hover span,.resizing-history .history-resizer span{opacity:1;color:var(--accent);border-color:#f0ff6773}.resizing-history,.resizing-history *{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}.history-rail{border-left:0}.history-rail-heading{gap:10px;height:78px}.density-switch{background:#111216;border:1px solid #2d3037;border-radius:7px;gap:2px;padding:2px;display:flex}.density-switch button{width:24px;height:23px;color:var(--muted-2);cursor:pointer;background:0 0;border:0;border-radius:5px;padding:0;font-size:8px}.density-switch button.active{color:var(--accent);background:#33363e}.history-heading-actions>button{color:var(--accent);cursor:pointer;background:0 0;border:0;font-size:9px}.history-list{grid-auto-rows:max-content;align-content:start;gap:9px;height:calc(100% - 78px);display:grid}.history-list.density-compact{grid-template-columns:repeat(auto-fit,minmax(82px,1fr))}.history-list.density-medium{grid-template-columns:repeat(auto-fit,minmax(138px,1fr))}.history-list.density-large{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.history-list .empty-history{grid-column:1/-1}.history-list .rail-history-card{min-width:0;margin:0;padding:7px;display:block}.history-list .rail-preview{aspect-ratio:1;width:100%;height:auto}.history-list.density-medium .rail-preview{aspect-ratio:4/3}.history-list.density-large .rail-preview{aspect-ratio:16/10}.history-list .rail-card-copy{padding:8px 2px 2px}.history-list .rail-card-copy strong{display:block}.history-list .rail-card-copy strong em,.gallery-copy strong em{color:var(--accent);font-size:8px;font-style:normal}.history-list.density-compact .rail-card-copy{padding:6px 1px 1px}.history-list.density-compact .rail-card-copy>div{display:block}.history-list.density-compact .rail-card-copy .job-status,.history-list.density-compact .rail-card-copy p,.history-list.density-compact .rail-card-copy>span{display:none}.history-list.density-compact .rail-card-copy strong{font-size:8px}.history-list.density-medium .rail-card-copy p{-webkit-line-clamp:1}.history-list.density-large .rail-card-copy p{-webkit-line-clamp:3;font-size:10px}.history-list.density-large .rail-card-copy strong{font-size:11px}.creation-context{align-items:center;gap:9px;display:flex}.project-select{border:1px solid var(--line);min-width:190px;height:44px;color:var(--muted);background:#111216;border-radius:11px;align-items:center;gap:7px;padding:0 10px;display:flex}.project-select select{min-width:0;color:var(--text);cursor:pointer;background:0 0;border:0;flex:1;font-size:11px}.asset-meta-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-bottom:17px;display:grid}.asset-meta-row label{color:var(--muted);grid-template-columns:18px auto minmax(160px,1fr);align-items:center;gap:7px;font-size:10px;font-weight:600;display:grid}.asset-meta-row label svg{color:var(--accent)}.asset-meta-row input{height:39px;color:var(--text);background:#0d0e11;border:1px solid #34363e;border-radius:9px;grid-column:1/-1;padding:0 11px;font-size:11px}.version-chip{height:39px;color:var(--muted);white-space:nowrap;background:#18191e;border:1px solid #30333a;border-radius:9px;align-items:center;gap:6px;padding:0 11px;font-size:9px;display:flex}.version-chip strong{color:var(--accent);font-size:11px}.duration-slider{width:min(270px,34vw);min-width:190px}.duration-slider input{width:100%;height:18px;accent-color:var(--accent);cursor:pointer;margin:0}.duration-slider>div{color:var(--muted-2);grid-template-columns:1fr auto 1fr;align-items:center;font-size:8px;display:grid}.duration-slider>div strong{min-width:43px;color:var(--accent);text-align:center;background:#f0ff671a;border-radius:6px;padding:3px 7px;font-size:9px}.duration-slider>div span:last-child{text-align:right}.project-card{min-height:205px}.project-card-actions{gap:7px;display:flex;position:absolute;bottom:17px;left:22px;right:22px}.project-card-actions button{color:#c7cad0;cursor:pointer;background:#181a1f;border:1px solid #343740;border-radius:8px;align-items:center;gap:6px;height:31px;padding:0 10px;font-size:9px;display:flex}.project-card-actions button:hover{color:var(--text);border-color:#565a64}.new-project-card input{width:min(230px,100%);height:36px;color:var(--text);text-align:center;background:#0d0e11;border:1px solid #343740;border-radius:8px;padding:0 10px;font-size:10px}.new-project-card>button{background:var(--accent);height:31px;color:var(--accent-ink);cursor:pointer;border:0;border-radius:8px;padding:0 14px;font-size:9px;font-weight:700}.new-project-card>button:disabled{opacity:.35;cursor:not-allowed}.report-panel{background:radial-gradient(circle at 100% 0,#f0ff6712,#0000 40%),#111216;border:1px solid #353841;border-radius:15px;margin-top:18px;padding:20px}.report-panel-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.report-panel-heading h3{margin:4px 0 0;font:600 18px Manrope,sans-serif}.report-panel-heading>div:last-child{gap:8px;display:flex}.report-metrics{grid-template-columns:repeat(4,1fr);gap:9px;margin-top:18px;display:grid}.report-metrics>div{background:#15161a;border:1px solid #292c33;border-radius:10px;min-height:73px;padding:12px}.report-metrics span,.report-metrics small{color:var(--muted-2);font-size:8px;display:block}.report-metrics strong{margin-top:8px;font:600 17px Manrope,sans-serif;display:block}.report-metrics small{margin-top:3px}.report-table{border:1px solid #292c33;border-radius:10px;margin-top:16px;overflow:hidden}.report-row{min-height:39px;color:var(--muted);border-bottom:1px solid #25272d;grid-template-columns:minmax(180px,1fr) 80px 95px 75px;align-items:center;gap:8px;padding:0 12px;font-size:9px;display:grid}.report-row:last-child{border-bottom:0}.report-row.header{color:var(--muted-2);text-transform:uppercase;letter-spacing:.04em;background:#1a1c21;font-size:8px}.report-row strong{color:var(--text);font-size:10px}.report-row span:last-child{text-align:right;color:var(--green)}.report-empty{color:var(--muted-2);text-align:center;padding:25px;font-size:10px}.report-disclaimer{color:var(--muted-2);margin:12px 0 0;font-size:9px;line-height:1.5}@media (max-width:1120px){.workspace-grid{grid-template-columns:minmax(0,1fr) 8px min(var(--history-width,340px),38vw)}.creation-context{flex-direction:column;align-items:stretch}.project-select{height:38px}.report-metrics{grid-template-columns:repeat(2,1fr)}}@media (max-width:850px){.workspace-grid{display:block}.history-resizer{display:none}.creation-context,.project-select{width:100%}}@media (max-width:620px){.asset-meta-row{grid-template-columns:1fr}.version-chip{width:max-content}.duration-slider{width:min(280px,80vw)}.report-panel-heading{flex-direction:column;align-items:stretch}.report-panel-heading>div:last-child{flex-wrap:wrap}.report-metrics{grid-template-columns:1fr 1fr}.report-row{grid-template-columns:minmax(100px,1fr) 45px 55px 55px;font-size:8px}}@media (min-width:1121px){.workspace-grid{grid-template-columns:clamp(620px,var(--studio-width,1120px),calc(100vw - 386px)) 8px minmax(300px,1fr)}.workspace-grid.history-closed{grid-template-columns:minmax(0,1fr)}.create-workspace .main-content{padding-left:clamp(28px,2vw,44px);padding-right:22px}.create-workspace .create-page{width:min(1040px,100%);margin-left:0;margin-right:0}.create-workspace .studio-card{position:relative}.create-workspace .model-picker{width:min(690px,100% - 24px);top:64px;right:12px}.history-rail{min-width:0}}.settings-card:first-child{grid-row:auto}.scratch-card{background:radial-gradient(circle at 100% 0,#f0ff6711,#0000 34%),#111216;grid-column:1/-1}.scratch-disk-panel{background:#0d0e11;border:1px solid #30333a;border-radius:12px;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:13px;margin-top:18px;padding:15px;display:grid}.scratch-disk-icon{width:48px;height:48px;color:var(--muted-2);background:#181a1f;border:1px solid #343740;border-radius:12px;place-items:center;display:grid}.scratch-disk-icon.ready{color:var(--accent);background:#f0ff6712;border-color:#f0ff6759}.scratch-disk-copy{min-width:0}.scratch-disk-copy span,.scratch-disk-copy small{color:var(--muted-2);font-size:9px;display:block}.scratch-disk-copy strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;margin:4px 0;font:600 13px Manrope,sans-serif;display:block;overflow:hidden}.scratch-disk-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}.scratch-disk-actions button{min-height:34px;color:var(--text);cursor:pointer;background:#1b1d22;border:1px solid #3b3e46;border-radius:8px;align-items:center;gap:6px;padding:0 11px;font-size:9px;font-weight:600;display:flex}.scratch-disk-actions button:first-child{color:var(--accent);border-color:#f0ff6761}.scratch-disk-actions button:disabled{opacity:.4;cursor:not-allowed}.scratch-note{color:var(--muted-2);align-items:flex-start;gap:7px;margin-top:10px;font-size:9px;line-height:1.45;display:flex}.scratch-note p{margin:0}@media (max-width:720px){.scratch-disk-panel{grid-template-columns:42px minmax(0,1fr)}.scratch-disk-icon{width:42px;height:42px}.scratch-disk-actions{grid-column:1/-1;justify-content:stretch}.scratch-disk-actions button{flex:1;justify-content:center}}.project-refresh{border:1px solid var(--line);width:42px;height:42px;color:var(--muted);cursor:pointer;background:#111216;border-radius:11px;flex:none;place-items:center;transition:all .18s;display:grid}.project-refresh:hover{color:var(--accent);background:#f0ff670e;border-color:#f0ff676b}.project-refresh:disabled{opacity:.55;cursor:wait}.resolution-note{color:#9da1aa;max-width:260px;margin-top:7px;font-size:8px;line-height:1.45;display:block}.upscaler-page{width:min(1180px,100%);margin:0}.upscaler-heading{margin-bottom:18px}.upscaler-heading .project-select{min-width:230px}.upscaler-layout{grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);align-items:start;gap:15px;display:grid}.upscaler-source-card,.upscaler-settings-card{border:1px solid var(--line);background:#111216;border-radius:15px;padding:18px;overflow:hidden}.upscaler-card-title{align-items:center;gap:10px;margin-bottom:15px;display:flex}.upscaler-card-title>span{width:38px;height:38px;color:var(--accent);background:#f0ff6711;border:1px solid #f0ff6740;border-radius:10px;flex:none;place-items:center;display:grid}.upscaler-card-title h3{margin:0 0 3px;font:600 13px Manrope,sans-serif}.upscaler-card-title p{color:var(--muted);margin:0;font-size:9px;line-height:1.45}.upscale-drop-zone{background:radial-gradient(circle at 50% 35%,#f0ff6709,#0000 42%),#0c0d10;border:1px dashed #3b3e47;border-radius:13px;place-items:center;min-height:430px;display:grid;position:relative;overflow:hidden}.upscale-drop-zone:hover{border-color:#565a64}.upscale-empty{width:100%;min-height:428px;color:var(--text);cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;padding:34px;display:flex}.upscale-empty>span{width:58px;height:58px;color:var(--accent);background:#181a1f;border:1px solid #3b3e47;border-radius:15px;place-items:center;margin-bottom:17px;display:grid}.upscale-empty strong{font:600 15px Manrope,sans-serif}.upscale-empty p{color:var(--muted);margin:6px 0 17px;font-size:10px}.upscale-empty small{color:var(--muted-2);font-size:8px}.upscale-drop-zone.has-video{background:#08090b;display:block}.upscale-drop-zone.has-video video{object-fit:contain;background:#050506;width:100%;height:330px;display:block}.upscale-file-meta{border-top:1px solid var(--line);background:#121318;min-height:82px;padding:13px 155px 13px 14px}.upscale-file-meta span,.upscale-file-meta strong,.upscale-file-meta small{display:block}.upscale-file-meta span{color:var(--accent);letter-spacing:.08em;font-size:7px;font-weight:700}.upscale-file-meta strong{text-overflow:ellipsis;white-space:nowrap;margin:5px 0 3px;font-size:10px;overflow:hidden}.upscale-file-meta small{color:var(--muted-2);font-size:8px}.upscale-source-actions{gap:6px;display:flex;position:absolute;bottom:23px;right:12px}.upscale-source-actions button{color:#cdd0d6;cursor:pointer;background:#1b1d22;border:1px solid #393c44;border-radius:8px;align-items:center;gap:5px;height:30px;padding:0 9px;font-size:8px;display:flex}.upscale-source-tip{color:var(--muted-2);align-items:flex-start;gap:7px;margin-top:11px;font-size:8px;line-height:1.5;display:flex}.upscale-source-tip svg{color:var(--accent);flex:none}.upscale-source-tip p{margin:0}.upscale-field{gap:7px;display:grid}.upscale-field>span,.upscale-option-group>span{color:var(--muted);font-size:9px;font-weight:600}.upscale-field select{width:100%;height:42px;color:var(--text);cursor:pointer;background:#0d0e11;border:1px solid #343740;border-radius:9px;padding:0 10px;font-size:10px}.upscale-option-group{gap:7px;margin-top:16px;display:grid}.upscale-button-row{gap:6px;display:flex}.upscale-button-row button{min-height:35px;color:var(--muted);cursor:pointer;background:#181a1f;border:1px solid #343740;border-radius:8px;flex:1;padding:0 9px;font-size:9px}.upscale-button-row button.active{color:var(--accent);background:#f0ff6717;border-color:#f0ff6773}.upscale-sliders{background:#0d0e11;border:1px solid #292c33;border-radius:10px;gap:13px;margin-top:18px;padding:13px;display:grid}.upscale-sliders label>span{color:var(--muted);justify-content:space-between;margin-bottom:7px;font-size:8px;display:flex}.upscale-sliders em{color:var(--accent);font-style:normal}.upscale-sliders input{width:100%;accent-color:var(--accent);margin:0}.upscale-confirm{border-top:1px solid var(--line);grid-template-columns:1fr auto;align-items:center;gap:12px;margin-top:18px;padding-top:17px;display:grid}.upscale-confirm>div span,.upscale-confirm>div small{color:var(--muted-2);font-size:8px;display:block}.upscale-confirm>div strong{margin:3px 0;font:600 21px Manrope,sans-serif;display:block}.upscale-confirm>button{background:var(--accent);min-height:45px;color:var(--accent-ink);cursor:pointer;border:0;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:0 15px;font-size:9px;font-weight:800;display:flex}.upscale-confirm>button:disabled{opacity:.38;cursor:not-allowed}.upscale-price-note{color:var(--muted-2);margin:10px 0 0;font-size:8px;line-height:1.5}.upscaler-page>.notice{margin-top:14px}@media (max-width:1120px){.project-refresh{height:38px}.upscaler-layout{grid-template-columns:1fr}.upscale-drop-zone{min-height:360px}.upscale-empty{min-height:358px}}@media (max-width:620px){.upscaler-heading .project-select{width:100%}.upscale-drop-zone.has-video video{height:235px}.upscale-file-meta{padding-right:14px}.upscale-source-actions{background:#121318;padding:0 13px 13px;position:static}.upscale-confirm{grid-template-columns:1fr}.upscale-confirm>button{width:100%}}select{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}select option{color:#f1f2f4;background:#17181d}.project-select select{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#f1f2f4;background:#111216}.project-select select option{color:#f1f2f4;background:#17181d}.prompt-section{position:relative}.reference-mention-menu{z-index:30;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#141519fa;border:1px solid #41444d;border-radius:11px;max-height:245px;padding:7px;position:absolute;bottom:39px;left:10px;right:10px;overflow-y:auto;box-shadow:0 18px 45px #00000085}.mention-menu-heading{justify-content:space-between;align-items:center;gap:10px;min-height:30px;padding:3px 7px 7px;display:flex}.mention-menu-heading strong{font-size:9px}.mention-menu-heading span{color:var(--muted-2);font-size:7px}.reference-mention-menu>button{width:100%;min-height:45px;color:var(--muted);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;grid-template-columns:22px 1fr;align-items:center;gap:8px;padding:7px 9px;display:grid}.reference-mention-menu>button:hover,.reference-mention-menu>button.active{color:var(--accent);background:#f0ff6717}.reference-mention-menu>button>span{min-width:0}.reference-mention-menu>button strong,.reference-mention-menu>button small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.reference-mention-menu>button strong{color:var(--text);font-size:9px}.reference-mention-menu>button small{color:var(--muted-2);margin-top:3px;font-size:7px}.reference-mention-menu>p{color:var(--muted);margin:8px;font-size:9px}.job-placeholder{isolation:isolate;background:linear-gradient(155deg,#191b22,#0e0f14 72%);position:relative;overflow:hidden}.generation-stage{color:#f5f6f7;text-transform:none}.generation-stage:before{content:"";z-index:0;background:linear-gradient(#ffffff06,#0000 45%),radial-gradient(at 50% 112%,#f0ff6730,#0000 55%);animation:3.2s ease-in-out infinite stage-breathe;position:absolute;inset:0}.generation-stage:after{content:"";z-index:1;background:linear-gradient(90deg,#0000,#f0ff679e,#0000);height:1px;position:absolute;bottom:11px;left:8%;right:8%;box-shadow:0 0 15px #f0ff6740}.generation-spotlights{z-index:0;position:absolute;inset:-5% -20% 10%;overflow:hidden}.generation-spotlights i{clip-path:polygon(46% 0,54% 0,100% 100%,0 100%);transform-origin:50% 0;filter:blur(4px);opacity:.42;background:linear-gradient(#f0ff6752,#f0ff6714 54%,#0000);width:45%;height:105%;animation:4.4s ease-in-out infinite alternate spotlight-sweep;position:absolute;top:-8%;left:50%}.generation-spotlights i:nth-child(2){background:linear-gradient(#8067ff52,#8067ff12 58%,#0000);animation-duration:5.1s;animation-delay:-1.4s}.generation-spotlights i:nth-child(3){background:linear-gradient(#65e2ff3d,#65e2ff0d 56%,#0000);animation-duration:5.8s;animation-delay:-2.8s}.generation-content{z-index:3;text-align:center;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:6px;display:flex;position:relative}.generation-content svg{color:var(--accent);filter:drop-shadow(0 0 8px #f0ff6773);animation:1.8s ease-in-out infinite generation-spark}.generation-content strong{text-overflow:ellipsis;letter-spacing:.08em;text-transform:uppercase;max-width:100%;font-size:clamp(8px,1.05vw,13px);overflow:hidden}.generation-percent{color:var(--accent);font:700 clamp(11px,1.45vw,18px)/1 Manrope,sans-serif}.generation-content small{text-overflow:ellipsis;white-space:nowrap;color:#a6a9b2;max-width:100%;font-size:clamp(6px,.7vw,9px);overflow:hidden}.generation-progress{z-index:4;background:#ffffff1f;border-radius:999px;height:3px;position:absolute;bottom:5px;left:8%;right:8%;overflow:hidden}.generation-progress span{border-radius:inherit;background:linear-gradient(90deg,#8b75ff,var(--accent));height:100%;transition:width 1s;display:block;box-shadow:0 0 9px #f0ff6780}.job-placeholder.failed{color:var(--danger);text-align:center;text-transform:none;gap:5px;padding:9px}.job-placeholder.failed strong{color:#ffd5da;font-size:clamp(8px,1vw,12px)}.job-placeholder.failed small{color:#d99aa3;-webkit-line-clamp:3;-webkit-box-orient:vertical;max-width:95%;font-size:clamp(6px,.72vw,9px);line-height:1.3;display:-webkit-box;overflow:hidden}.job-error-message{color:#ef9ca8;background:#ff7b8b12;border:1px solid #ff7b8b38;border-radius:7px;align-items:flex-start;gap:5px;margin:6px 0;padding:6px 7px;font-size:8px;line-height:1.35;display:flex}.job-error-message svg{flex:none;margin-top:1px}.job-error-message span{-webkit-line-clamp:3;-webkit-box-orient:vertical;min-width:0;display:-webkit-box;overflow:hidden}.rail-card-copy>.job-error-message,.gallery-copy>.job-error-message{justify-content:flex-start}@keyframes spotlight-sweep{0%{opacity:.2;transform:translate(-58%)rotate(-25deg)}48%{opacity:.55}to{opacity:.26;transform:translate(12%)rotate(25deg)}}@keyframes stage-breathe{0%,to{opacity:.62}50%{opacity:1}}@keyframes generation-spark{0%,to{opacity:.7;transform:translateY(0)scale(.94)}50%{opacity:1;transform:translateY(-2px)scale(1.06)}}@media (prefers-reduced-motion:reduce){.generation-stage:before,.generation-spotlights i,.generation-content svg{animation:none}.generation-progress span{transition:none}}.history-rail-heading{height:112px;padding-bottom:10px;display:block}.history-title-row{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.history-title-row>button{color:var(--accent);cursor:pointer;background:0 0;border:0;font-size:9px}.history-heading-actions{align-items:center;gap:4px;display:flex}.history-heading-actions button{min-height:25px;color:var(--accent);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:4px;padding:0 6px;font-size:8px;display:flex}.history-heading-actions button:hover{background:#f0ff6714}.history-heading-actions button:disabled,.history-folder-refresh:disabled{opacity:.45;cursor:wait}.history-grid-controls{background:#111216;border:1px solid #2d3037;border-radius:9px;align-items:center;gap:8px;min-height:34px;padding:4px;display:flex}.history-grid-controls.compact{margin-top:9px}.history-layout-switch{gap:2px;display:flex}.history-layout-switch button{width:28px;height:26px;color:var(--muted-2);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;padding:0;display:grid}.history-layout-switch button.active{color:var(--accent);background:#343740}.history-grid-controls>label{min-width:145px;color:var(--muted-2);flex:1;grid-template-columns:auto minmax(70px,1fr) auto;align-items:center;gap:6px;font-size:7px;display:grid}.history-grid-controls input{width:100%;accent-color:var(--accent)}.history-grid-controls>.history-ratio-control{flex:none;grid-template-columns:none;gap:4px;min-width:82px;display:flex}.history-ratio-control select{min-width:58px;height:26px;color:var(--text);cursor:pointer;background:#191b20;border:1px solid #353841;border-radius:6px;padding:0 18px 0 7px;font-size:8px}.history-preview-button{background:radial-gradient(circle at 50% 45%,#242731,#14161b 72%)}.history-preview-button>img,.history-preview-button>video{object-fit:contain!important}.sr-only{clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}.history-list{height:calc(100% - 112px)}.history-list.layout-grid{grid-template-columns:repeat(auto-fill,minmax(min(var(--history-tile-size,138px),100%),1fr))}.history-list.layout-grid .rail-history-card{min-width:0;margin:0;padding:7px;display:block}.history-list.layout-grid .rail-preview{aspect-ratio:1;width:100%;height:auto}.history-list.layout-list{grid-template-columns:1fr}.history-list.layout-list .rail-history-card{grid-template-columns:88px minmax(0,1fr);gap:10px;min-width:0;margin:0;padding:7px;display:grid}.history-list.layout-list .rail-preview{aspect-ratio:1;width:88px;height:88px}.history-list.layout-list .rail-card-copy{padding:6px 24px 2px 0}.history-gallery.layout-grid{grid-template-columns:repeat(auto-fill,minmax(min(var(--history-tile-size,138px),100%),1fr))}.history-gallery.layout-grid .gallery-preview{aspect-ratio:1}.history-gallery.layout-list{grid-template-columns:1fr}.history-gallery.layout-list .gallery-card{grid-template-columns:180px minmax(0,1fr);display:grid}.history-gallery.layout-list .gallery-preview{aspect-ratio:auto;width:180px;min-height:130px}.section-actions .history-grid-controls{min-width:260px}@media (max-width:720px){.reference-mention-menu{left:4px;right:4px}.section-actions .history-grid-controls{width:100%;min-width:0}.history-gallery.layout-list .gallery-card{grid-template-columns:112px minmax(0,1fr)}.history-gallery.layout-list .gallery-preview{width:112px}}.team-card{background:radial-gradient(circle at 100% 0,#74d3ff12,#0000 34%),#111216;grid-column:1/-1}.team-settings-toggle{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;gap:16px;padding:0;display:flex}.team-settings-toggle>.settings-card-title{min-width:0}.team-toggle-summary{min-height:32px;color:var(--muted);background:#181a1f;border:1px solid #353841;border-radius:8px;flex:none;align-items:center;gap:7px;padding:0 9px 0 11px;font-size:9px;font-weight:600;display:flex}.team-toggle-summary svg{transition:transform .2s}.team-collapsible.expanded .team-toggle-summary svg{transform:rotate(180deg)}.team-settings-body{animation:.2s team-section-reveal}@keyframes team-section-reveal{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.team-loading{min-height:90px;color:var(--muted);border:1px dashed #343740;border-radius:11px;justify-content:center;align-items:center;gap:9px;margin-top:16px;font-size:9px;display:flex}.team-current-user{background:#0d0e11;border:1px solid #30333a;border-radius:11px;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:60px;margin-top:17px;padding:9px 12px;display:grid}.team-avatar{color:#0d0f05;background:linear-gradient(140deg,#b9cb48,#687724);border-radius:10px;place-items:center;width:40px;height:40px;font-size:10px;font-weight:800;display:grid}.team-avatar.small{border-radius:9px;width:34px;height:34px}.team-current-user span,.team-current-user strong,.team-current-user small{display:block}.team-current-user>div>span{color:var(--accent);letter-spacing:.08em;font-size:7px;font-weight:700}.team-current-user strong{margin:3px 0 2px;font-size:11px}.team-current-user small{color:var(--muted-2);font-size:8px}.team-current-user>svg{color:var(--green)}.team-layout{grid-template-columns:minmax(300px,.85fr) minmax(360px,1.15fr);align-items:start;gap:12px;margin-top:13px;display:grid}.invite-form,.member-list,.my-project-access{background:#0d0e11;border:1px solid #2d3037;border-radius:11px;padding:14px}.invite-heading{color:var(--accent);align-items:center;gap:9px;margin-bottom:13px;display:flex}.invite-heading strong,.invite-heading span{display:block}.invite-heading strong{color:var(--text);font-size:10px}.invite-heading span{color:var(--muted-2);margin-top:2px;font-size:8px}.invite-form>label{gap:6px;margin-top:10px;display:grid}.invite-form>label>span,.invite-form legend{color:var(--muted);font-size:8px;font-weight:600}.invite-form input[type=email],.invite-form select{width:100%;height:38px;color:var(--text);background:#15161a;border:1px solid #343740;border-radius:8px;padding:0 10px;font-size:9px}.invite-form fieldset{border:0;margin:13px 0 0;padding:0}.invite-form legend{margin-bottom:7px}.project-access-list{gap:5px;max-height:145px;display:grid;overflow-y:auto}.project-access-list label{min-height:34px;color:var(--muted);cursor:pointer;background:#15161a;border:1px solid #2d3037;border-radius:8px;grid-template-columns:15px 16px minmax(0,1fr) 16px;align-items:center;gap:6px;padding:6px 8px;display:grid}.project-access-list label.selected{color:var(--text);background:#f0ff670d;border-color:#f0ff675c}.project-access-list input{accent-color:var(--accent)}.project-access-list label>svg:last-child{color:var(--accent);opacity:0}.project-access-list label.selected>svg:last-child{opacity:1}.project-access-list span{text-overflow:ellipsis;white-space:nowrap;font-size:8px;overflow:hidden}.team-invite-button{background:var(--accent);width:100%;min-height:38px;color:var(--accent-ink);cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;gap:7px;margin-top:12px;font-size:9px;font-weight:800;display:flex}.team-invite-button:disabled{opacity:.4;cursor:not-allowed}.member-list-heading{justify-content:space-between;gap:10px;min-height:30px;display:flex}.member-list-heading strong{font-size:10px}.member-list-heading span{color:var(--muted-2);font-size:8px}.member-row{border-top:1px solid #292c33;grid-template-columns:34px minmax(0,1fr) auto 28px;align-items:center;gap:8px;min-height:61px;padding:8px 0;display:grid}.member-row>div{min-width:0}.member-row>div>strong,.member-row>div>small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.member-row>div>strong{font-size:9px}.member-row>div>small{color:var(--muted-2);margin-top:2px;font-size:7px}.member-row>div>div{flex-wrap:wrap;gap:4px;margin-top:5px;display:flex}.member-row em{color:var(--muted);background:#1d1f24;border-radius:5px;padding:3px 5px;font-size:7px;font-style:normal}.member-status{color:#ffd36b;text-transform:capitalize;background:#ffd36b14;border-radius:6px;padding:4px 6px;font-size:7px}.member-status.active{color:var(--green);background:#69e8ad14}.member-row>button{width:28px;height:28px;color:var(--muted);cursor:pointer;background:#181a1f;border:1px solid #393c44;border-radius:7px;place-items:center;padding:0;display:grid}.member-row>button:hover{color:var(--danger)}.invite-ready{background:#f0ff670e;border:1px solid #f0ff6752;border-radius:10px;grid-template-columns:minmax(0,1fr) auto auto 28px;align-items:center;gap:7px;margin-top:12px;padding:11px;display:grid}.invite-ready strong,.invite-ready span{display:block}.invite-ready strong{color:var(--accent);font-size:9px}.invite-ready span{color:var(--muted);margin-top:3px;font-size:8px;line-height:1.4}.invite-ready button{min-height:30px;color:var(--text);cursor:pointer;background:#1a1c21;border:1px solid #3b3e46;border-radius:7px;justify-content:center;align-items:center;gap:5px;padding:0 8px;font-size:8px;display:flex}.my-project-access{margin-top:12px}.my-project-access>strong{margin-bottom:9px;font-size:10px;display:block}.my-project-access>div{min-height:38px;color:var(--muted);border-top:1px solid #292c33;grid-template-columns:20px 1fr auto;align-items:center;padding:7px 8px;font-size:9px;display:grid}.my-project-access em{color:var(--accent);text-transform:capitalize;font-size:8px;font-style:normal}.my-project-access p{color:var(--muted-2);font-size:9px}@media (max-width:850px){.team-layout{grid-template-columns:1fr}}@media (max-width:620px){.team-settings-toggle{align-items:flex-start}.team-toggle-summary{padding:0 7px;font-size:0}.invite-ready{grid-template-columns:1fr 1fr}.invite-ready>div{grid-column:1/-1}}.rich-prompt-editor{resize:vertical;width:100%;min-height:142px;max-height:330px;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;background:#0d0e11;border:1px solid #34363e;border-radius:12px 12px 0 0;outline:0;padding:16px;font-size:14px;line-height:1.65;overflow-y:auto}.rich-prompt-editor:focus{border-color:#51545e;box-shadow:inset 0 0 0 1px #f0ff670d}.rich-prompt-editor:empty:before{content:attr(data-placeholder);color:#545861;pointer-events:none}.prompt-reference-chip{min-height:26px;color:var(--accent);vertical-align:middle;white-space:nowrap;cursor:default;background:#f0ff6718;border:1px solid #f0ff675c;border-radius:7px;align-items:center;gap:6px;margin:0 3px 1px 1px;padding:2px 7px 2px 2px;display:inline-flex;box-shadow:0 2px 8px #0000002e}.prompt-reference-chip img,.prompt-reference-chip video,.prompt-audio-thumb{object-fit:cover;background:#292b31;border-radius:5px;flex:none;width:21px;height:21px;display:block}.prompt-reference-chip video{pointer-events:none}.prompt-audio-thumb{color:var(--accent);place-items:center;font-size:12px;display:grid}.prompt-reference-chip strong{color:var(--accent);font-size:10px;font-weight:700;line-height:1}@media (max-width:620px){.rich-prompt-editor{min-height:165px}}.reference-mention-menu>button{grid-template-columns:36px minmax(0,1fr)}.mention-asset-thumb{width:36px;height:36px;color:var(--accent);background:#25272d;border:1px solid #383b43;border-radius:8px;place-items:center;display:grid;overflow:hidden}.mention-asset-thumb img,.mention-asset-thumb video{object-fit:cover;pointer-events:none;width:100%;height:100%}.history-preview-button{color:inherit;text-align:inherit;cursor:zoom-in;border:0;padding:0;display:block}.card-quick-actions{z-index:3;opacity:0;gap:4px;transition:opacity .16s;display:flex;position:absolute;top:13px;right:13px}.rail-history-card:hover .card-quick-actions,.rail-history-card:focus-within .card-quick-actions{opacity:1}.card-quick-actions button{color:#d9dbe0;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0c0d10e0;border:1px solid #ffffff1f;border-radius:7px;place-items:center;width:27px;height:27px;padding:0;display:grid}.card-quick-actions button:hover{color:var(--accent);border-color:#f0ff6773}.card-quick-actions.failed-actions{opacity:1}.card-quick-actions.failed-actions button{color:#ff9aa8;background:#2a0d13e6;border-color:#ff7b8b4d}.card-quick-actions.failed-actions button:hover{color:#fff;background:#7e1f2ee6;border-color:#ff7b8bb8}.gallery-copy footer{gap:10px}.gallery-copy footer>div{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.gallery-copy footer>div button{white-space:nowrap;background:#17191e;border:1px solid #30333a;border-radius:7px;min-height:27px;padding:0 7px}.gallery-copy footer>div button:hover{border-color:#f0ff6766}.asset-viewer-backdrop{z-index:120;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#040507e0;place-items:center;padding:3vh 2vw;display:grid;position:fixed;inset:0}.asset-viewer-shell{background:#0b0c0f;border:1px solid #343740;border-radius:18px;grid-template-columns:minmax(0,1fr) minmax(340px,410px);width:min(96vw,1760px);height:min(94vh,1040px);min-height:560px;display:grid;overflow:hidden;box-shadow:0 28px 90px #000000a3}.asset-viewer-stage{background:radial-gradient(circle at 50% 40%,#1a1c21 0,#0c0d10 56%,#08090b 100%);place-items:center;min-width:0;min-height:0;padding:62px 24px 24px;display:grid;position:relative;overflow:auto}.asset-viewer-stage>img,.asset-viewer-stage>video{object-fit:contain;border-radius:5px;width:auto;max-width:100%;height:auto;max-height:calc(94vh - 110px);display:block;box-shadow:0 18px 70px #00000085}.viewer-stage-bar{z-index:2;justify-content:space-between;align-items:center;gap:12px;min-height:38px;display:flex;position:absolute;top:14px;left:18px;right:18px}.viewer-stage-bar div{align-items:center;gap:8px;min-width:0;display:flex}.viewer-stage-bar span{color:var(--accent);letter-spacing:.08em;background:#f0ff671f;border-radius:5px;padding:4px 6px;font-size:7px;font-weight:800}.viewer-stage-bar strong{color:#dfe1e5;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:10px;overflow:hidden}.viewer-stage-bar a{color:#dadddf;white-space:nowrap;background:#121418db;border:1px solid #363942;border-radius:8px;align-items:center;gap:6px;min-height:30px;padding:0 9px;font-size:8px;text-decoration:none;display:flex}.viewer-stage-bar a:hover{color:var(--accent);border-color:#f0ff676b}.asset-metadata-panel{background:#111216;border-left:1px solid #2b2e35;min-width:0;padding:20px;overflow-y:auto}.asset-metadata-panel>header{border-bottom:1px solid #292c32;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:16px;display:flex}.asset-metadata-panel header h2{color:#f0f1f3;overflow-wrap:anywhere;margin:5px 0 4px;font:650 18px Manrope,sans-serif}.asset-metadata-panel header p{color:var(--muted-2);margin:0;font-size:9px}.asset-metadata-panel header>button{color:#c9ccd1;cursor:pointer;background:#191b20;border:1px solid #343740;border-radius:9px;flex:none;place-items:center;width:34px;height:34px;padding:0;display:grid}.asset-metadata-panel header>button:hover{color:var(--accent)}.viewer-actions{grid-template-columns:1fr 1fr;gap:7px;margin:14px 0 18px;display:grid}.viewer-actions button{color:#d7d9dd;cursor:pointer;background:#191b20;border:1px solid #353840;border-radius:9px;justify-content:center;align-items:center;gap:6px;min-height:38px;padding:8px 9px;font-size:8px;font-weight:700;display:flex}.viewer-actions button:first-child{color:var(--accent);background:#f0ff6712;border-color:#f0ff6757}.viewer-actions button:hover{filter:brightness(1.15)}.metadata-section{border-top:1px solid #292c32;padding:15px 0}.metadata-section>span{color:var(--muted-2);letter-spacing:.1em;font-size:7px;font-weight:800}.metadata-prompt{color:#d7d9de;white-space:pre-wrap;overflow-wrap:anywhere;background:#0c0d10;border:1px solid #30333a;border-radius:9px;margin:9px 0 0;padding:11px;font-size:10px;line-height:1.6}.viewer-reference-grid{gap:7px;margin-top:9px;display:grid}.viewer-reference-grid>div{background:#0d0e11;border:1px solid #30333a;border-radius:9px;grid-template-rows:auto auto;grid-template-columns:46px minmax(0,1fr);align-items:center;column-gap:9px;min-width:0;padding:7px;display:grid}.viewer-reference-thumb{width:46px;height:46px;color:var(--accent);background:#24262c;border-radius:7px;grid-row:1/3;place-items:center;display:grid;overflow:hidden}.viewer-reference-thumb img,.viewer-reference-thumb video{object-fit:cover;width:100%;height:100%}.viewer-reference-grid strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:9px;overflow:hidden}.viewer-reference-grid small,.metadata-empty{color:var(--muted-2);font-size:8px}.metadata-list{margin:9px 0 0}.metadata-list>div{border-bottom:1px solid #26282e;grid-template-columns:minmax(100px,.85fr) minmax(0,1.15fr);align-items:start;gap:12px;min-height:31px;padding:7px 0;display:grid}.metadata-list dt{color:var(--muted-2);font-size:8px}.metadata-list dd{color:#d3d5da;text-align:right;overflow-wrap:anywhere;margin:0;font-size:8px;line-height:1.45}.metadata-status{text-transform:capitalize}.metadata-status.completed{color:var(--green)}.metadata-status.failed{color:var(--danger)}.metadata-status.running,.metadata-status.queued{color:#bdb1ff}@media (max-width:900px){.asset-viewer-backdrop{place-items:stretch stretch;padding:0;overflow-y:auto}.asset-viewer-shell{border:0;border-radius:0;grid-template-rows:minmax(55vh,1fr) auto;grid-template-columns:1fr;width:100%;height:auto;min-height:100vh;overflow:visible}.asset-viewer-stage{min-height:55vh}.asset-viewer-stage>img,.asset-viewer-stage>video{max-height:calc(55vh - 90px)}.asset-metadata-panel{border-top:1px solid #2b2e35;border-left:0;overflow:visible}}@media (max-width:560px){.viewer-stage-bar strong{display:none}.viewer-actions{grid-template-columns:1fr}.gallery-copy footer{flex-direction:column;align-items:flex-start}.gallery-copy footer>div{justify-content:flex-start}.card-quick-actions{opacity:1}}body{background:#050608}.app-shell{border-left:1px solid #ffffff06;border-right:1px solid #ffffff06;width:min(1920px,100%);margin:0 auto;box-shadow:0 0 90px #00000061}.rich-prompt-editor,input,textarea{-webkit-user-select:text;user-select:text}.reference-tile video,.motion-drop-zone video,.mention-asset-thumb video,.prompt-reference-chip video,.viewer-reference-thumb video{object-fit:cover;background:#07080a}.reference-tile:has(video):after{content:"VIDEO";z-index:1;color:#e7e9ed;letter-spacing:.08em;pointer-events:none;background:#07080ac2;border-radius:5px;padding:3px 6px;font-size:7px;font-weight:800;position:absolute;bottom:7px;right:7px}@media (min-width:851px){.icon-rail{left:max(0px,50vw - 960px)}}@media (min-width:1121px){.workspace-grid{grid-template-columns:clamp(340px,var(--studio-width,460px),780px) 8px minmax(0,1fr)}.workspace-grid.history-closed{grid-template-columns:minmax(0,1fr)}.create-workspace .main-content{scrollbar-width:thin;scrollbar-color:#3d4048 transparent;height:calc(100vh - 74px);padding:16px 12px 48px 14px;overflow-y:auto}.create-workspace .create-page{width:100%;max-width:none;margin:0}.create-page .page-intro{align-items:start;gap:11px;margin-bottom:12px;display:grid}.create-page .page-intro h2{margin-bottom:6px;font-size:28px}.create-page .page-intro p{font-size:15px;line-height:1.5}.create-page .creation-context{grid-template-columns:minmax(0,1fr) 38px;gap:7px;width:100%;display:grid}.create-page .project-select{width:100%;min-width:0;height:42px;font-size:13px}.create-page .project-refresh{width:42px;height:42px}.create-page .kind-switch{grid-column:1/-1;width:100%}.create-page .kind-switch button{flex:1;min-width:0;height:42px;font-size:14px}.create-workspace .studio-card{border-radius:12px;box-shadow:0 14px 36px #0000003d}.create-workspace .studio-card-header{grid-template-columns:1fr;gap:8px;min-height:0;padding:9px;display:grid}.create-workspace .mode-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;min-width:0;display:grid}.create-workspace .mode-tabs button{white-space:nowrap;justify-content:center;min-width:0;height:42px;padding:0 8px;font-size:13px}.create-workspace .mode-tabs button svg{flex:none;width:17px;height:17px}.create-workspace .model-selector{grid-template-columns:40px minmax(0,1fr) auto;width:100%;min-width:0;height:56px}.create-workspace .model-emblem{width:40px;height:40px}.create-workspace .model-selector strong{font-size:14px}.create-workspace .model-selector small{font-size:11px}.create-workspace .model-picker{width:calc(100% - 18px);padding:12px;top:54px;right:9px}.create-workspace .model-grid{grid-template-columns:1fr}.create-workspace .studio-body{padding:12px}.create-workspace .reference-stage{border-radius:10px;min-height:148px;margin-bottom:13px}.create-workspace .reference-empty{min-height:146px;padding:14px}.create-workspace .reference-empty strong{font-size:15px}.create-workspace .reference-empty>span:not(.upload-orb){text-align:center;font-size:13px}.create-workspace .reference-empty small{text-align:center;margin-top:9px;font-size:11px}.create-workspace .upload-orb{border-radius:10px;width:38px;height:38px;margin-bottom:9px}.create-workspace .reference-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.create-workspace .reference-tile,.create-workspace .add-reference{height:92px}.create-workspace .drop-hint{margin-top:7px;font-size:8px}.create-workspace .motion-reference-pair{grid-template-columns:1fr;gap:8px;margin-bottom:13px}.create-workspace .motion-drop-zone{min-height:178px}.create-workspace .motion-empty{min-height:176px;padding:15px}.create-workspace .motion-drop-zone.has-asset{grid-template-rows:120px 58px}.create-workspace .motion-drop-zone.has-asset>img,.create-workspace .motion-drop-zone.has-asset>video{height:120px}.create-workspace .asset-meta-row{grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-bottom:12px}.create-workspace .asset-meta-row label{grid-template-columns:17px auto minmax(90px,1fr);font-size:12px}.create-workspace .asset-meta-row input{height:43px;font-size:13px}.create-workspace .version-chip{height:43px;padding:0 9px;font-size:11px}.create-workspace .field-label{margin-bottom:6px}.create-workspace .field-label label{font-size:13px}.create-workspace .field-label span{font-size:11px}.create-workspace .rich-prompt-editor{min-height:146px;max-height:280px;padding:14px;font-size:15px;line-height:1.6}.create-workspace .prompt-tools{min-height:34px;padding:0 8px}.create-workspace .prompt-tools button{height:32px;font-size:12px}.create-workspace .prompt-tools>span{display:none}.create-workspace .control-groups{grid-template-columns:1fr;align-items:start;gap:11px;margin-top:13px;padding-top:12px;display:grid}.create-workspace .control-group{gap:6px;min-width:0}.create-workspace .control-label{font-size:12px}.create-workspace .compact-control{width:100%}.create-workspace .compact-control-trigger{grid-template-columns:34px minmax(0,1fr) auto;min-height:54px;padding:8px 11px}.create-workspace .compact-control-icon{width:34px;height:34px}.create-workspace .compact-control-copy small{font-size:12px}.create-workspace .compact-control-copy strong{font-size:15px}.create-workspace .compact-control-panel{padding:12px}.create-workspace .pill-row{flex-wrap:wrap;gap:3px;min-width:0;display:flex}.create-workspace .pill-row button{min-width:46px;height:39px;padding:0 10px;font-size:13px}.create-workspace .duration-slider{width:100%;min-width:0}.create-workspace .motion-control-note{grid-column:1/-1;min-width:0}.create-workspace .confirm-bar{grid-template-columns:1fr;gap:9px;min-height:0;padding:11px}.create-workspace .route-confirmation{grid-template-columns:32px minmax(0,1fr);gap:7px}.create-workspace .route-confirmation select{grid-column:1/-1;width:100%}.create-workspace .cost-preview{text-align:left;grid-template-columns:1fr auto;align-items:center;display:grid}.create-workspace .cost-preview small{grid-column:1/-1}.create-workspace .generate-button{width:100%;min-width:0}.create-workspace .route-confirmation>div span,.create-workspace .cost-preview span{font-size:11px}.create-workspace .route-confirmation>div strong{font-size:13px}.create-workspace .route-confirmation select{height:38px;font-size:12px}.create-workspace .cost-preview strong{font-size:21px}.create-workspace .cost-preview small{font-size:10px}.create-workspace .generate-button{height:53px;font-size:14px}.create-workspace .notice{font-size:13px}.history-rail{background:#0d0e11}.history-rail-heading{padding-left:14px;padding-right:14px}.history-list{padding:14px}.history-list.layout-grid{grid-template-columns:repeat(auto-fill,minmax(min(var(--history-tile-size,220px),100%),1fr));gap:12px}.history-list.layout-grid .rail-history-card{border-radius:12px;padding:0;overflow:hidden}.history-list.layout-grid .rail-card-copy{padding:9px}.history-list.layout-grid .rail-preview{border-radius:0}.empty-history{min-height:260px}}@media (max-width:1120px){.studio-card-header{grid-template-columns:minmax(0,1fr) minmax(190px,220px);display:grid}.mode-tabs{grid-template-columns:repeat(auto-fit,minmax(102px,1fr));gap:4px;min-width:0;display:grid}.mode-tabs button{white-space:nowrap;justify-content:center;min-width:0;padding:0 7px;font-size:10px}.model-selector{width:100%;min-width:0}}@media (max-width:700px){.studio-card-header{grid-template-columns:1fr}.mode-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}.reference-video-fallback{color:#8bdcff;text-align:center;background:linear-gradient(145deg,#20232a,#101216);flex-direction:column;justify-content:center;align-items:center;gap:4px;width:100%;height:100%;min-height:54px;padding:8px;display:flex}.reference-video-fallback span{color:#e3e5e9;text-overflow:ellipsis;white-space:nowrap;width:100%;font-size:9px;overflow:hidden}.reference-video-fallback small{color:var(--muted-2);font-size:7px}@media (min-width:1121px){.upscaler-workspace .main-content{scrollbar-width:thin;scrollbar-color:#3d4048 transparent;min-width:0;height:calc(100vh - 74px);padding:18px 14px 48px;overflow-y:auto}.upscaler-workspace .upscaler-page{width:100%;max-width:none}.upscaler-workspace .upscaler-heading{align-items:start;gap:13px;margin-bottom:14px;display:grid}.upscaler-workspace .upscaler-heading h2{margin-bottom:6px;font-size:28px}.upscaler-workspace .upscaler-heading p{max-width:38ch;font-size:14px;line-height:1.5}.upscaler-workspace .upscaler-heading .project-select{width:100%;min-width:0;height:44px;font-size:13px}.upscaler-workspace .upscaler-layout{grid-template-columns:minmax(0,1fr);gap:12px}.upscaler-workspace .upscaler-source-card,.upscaler-workspace .upscaler-settings-card{border-radius:13px;min-width:0;padding:14px}.upscaler-workspace .upscaler-card-title{align-items:flex-start;margin-bottom:14px}.upscaler-workspace .upscaler-card-title>span{width:42px;height:42px}.upscaler-workspace .upscaler-card-title h3{font-size:15px}.upscaler-workspace .upscaler-card-title p{font-size:11px}.upscaler-workspace .upscale-drop-zone{min-height:245px}.upscaler-workspace .upscale-empty{min-height:243px;padding:24px 18px}.upscaler-workspace .upscale-empty>span{width:52px;height:52px;margin-bottom:14px}.upscaler-workspace .upscale-empty strong{text-align:center;font-size:16px}.upscaler-workspace .upscale-empty p{text-align:center;margin:7px 0 14px;font-size:12px}.upscaler-workspace .upscale-empty small{text-align:center;font-size:10px;line-height:1.45}.upscaler-workspace .upscale-drop-zone.has-video video{height:230px}.upscaler-workspace .upscale-file-meta{padding:13px 14px}.upscaler-workspace .upscale-file-meta strong{font-size:12px}.upscaler-workspace .upscale-file-meta small{font-size:10px}.upscaler-workspace .upscale-source-actions{background:#121318;padding:0 14px 14px;position:static}.upscaler-workspace .upscale-source-actions button{flex:1;justify-content:center;min-height:34px;font-size:10px}.upscaler-workspace .upscale-source-tip{font-size:10px}.upscaler-workspace .upscale-field>span,.upscaler-workspace .upscale-option-group>span{font-size:11px}.upscaler-workspace .upscale-field select{height:46px;font-size:12px}.upscaler-workspace .upscale-option-group{margin-top:14px}.upscaler-workspace .upscale-button-row{flex-wrap:wrap}.upscaler-workspace .upscale-button-row button{min-width:92px;min-height:40px;font-size:11px}.upscaler-workspace .upscale-sliders{gap:16px;padding:14px}.upscaler-workspace .upscale-sliders label>span{font-size:10px}.upscaler-workspace .upscale-confirm{grid-template-columns:minmax(0,1fr)}.upscaler-workspace .upscale-confirm>div span,.upscaler-workspace .upscale-confirm>div small{font-size:10px}.upscaler-workspace .upscale-confirm>button{width:100%;min-height:50px;font-size:12px}.upscaler-workspace .upscale-price-note{font-size:10px}.upscaler-workspace.history-closed .main-content{padding:34px clamp(22px,3vw,52px) 70px}.upscaler-workspace.history-closed .upscaler-page{width:min(1180px,100%);margin:0 auto}.upscaler-workspace.history-closed .upscaler-heading{align-items:flex-end;display:flex}.upscaler-workspace.history-closed .upscaler-heading .project-select{width:auto;min-width:230px}.upscaler-workspace.history-closed .upscaler-layout{grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:15px}.upscaler-workspace.history-closed .upscale-drop-zone{min-height:430px}.upscaler-workspace.history-closed .upscale-empty{min-height:428px}.upscaler-workspace.history-closed .upscale-drop-zone.has-video video{height:330px}}.theme-card{grid-column:1/-1}.theme-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:17px;display:grid}.theme-options button{border:1px solid var(--line);background:var(--panel-2);min-height:92px;color:var(--text);text-align:left;cursor:pointer;border-radius:12px;grid-template-rows:auto auto;grid-template-columns:34px 1fr 18px;column-gap:10px;padding:13px;display:grid;position:relative}.theme-options button>span{background:var(--panel-3);width:34px;height:34px;color:var(--accent);border-radius:10px;grid-row:1/3;place-items:center;display:grid}.theme-options button strong{align-self:end;font-size:12px}.theme-options button small{color:var(--muted);font-size:9px}.theme-options button>svg{color:var(--accent);opacity:0;grid-area:1/3/3;align-self:center}.theme-options button.active{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));background:color-mix(in srgb,var(--accent) 7%,var(--panel-2))}.theme-options button.active>svg{opacity:1}html[data-theme=grey]{--bg:#24262b;--panel:#303239;--panel-2:#383b43;--panel-3:#43464f;--line:#525660;--line-soft:#40434b;--text:#f7f7f3;--muted:#b8bbc2;--muted-2:#92969f}html[data-theme=light]{--bg:#f2f3f0;--panel:#fff;--panel-2:#f6f7f4;--panel-3:#e9ebe6;--line:#d6d9d2;--line-soft:#e3e5df;--text:#17191b;--muted:#626871;--muted-2:#858b93;--accent:#a7b900;--accent-ink:#111400;--green:#19845d;--danger:#c83e54}html:not([data-theme=dark]) body,html:not([data-theme=dark]) .app-shell{background-color:var(--bg);color:var(--text)}html:not([data-theme=dark]) .icon-rail,html:not([data-theme=dark]) .topbar{background:color-mix(in srgb,var(--panel) 94%,transparent)}html:not([data-theme=dark]) .history-rail,html:not([data-theme=dark]) .history-resizer,html:not([data-theme=dark]) .confirm-bar{background:var(--bg)}html:not([data-theme=dark]) .studio-card,html:not([data-theme=dark]) .settings-card,html:not([data-theme=dark]) .team-card,html:not([data-theme=dark]) .upscaler-source-card,html:not([data-theme=dark]) .upscaler-settings-card,html:not([data-theme=dark]) .gallery-card,html:not([data-theme=dark]) .rail-history-card,html:not([data-theme=dark]) .project-card,html:not([data-theme=dark]) .new-project-card,html:not([data-theme=dark]) .connection-summary,html:not([data-theme=dark]) .icon-button,html:not([data-theme=dark]) .kind-switch,html:not([data-theme=dark]) .filter-tabs,html:not([data-theme=dark]) .studio-card-header,html:not([data-theme=dark]) .prompt-tools,html:not([data-theme=dark]) .motion-slot-caption,html:not([data-theme=dark]) .gallery-copy,html:not([data-theme=dark]) .asset-viewer-sidebar{background:var(--panel);border-color:var(--line)}html:not([data-theme=dark]) .reference-stage,html:not([data-theme=dark]) .motion-drop-zone,html:not([data-theme=dark]) .prompt-editor,html:not([data-theme=dark]) .prompt-section textarea,html:not([data-theme=dark]) .scratch-disk-panel,html:not([data-theme=dark]) .server-key-note,html:not([data-theme=dark]) .upscale-drop-zone,html:not([data-theme=dark]) .empty-history,html:not([data-theme=dark]) .large-empty,html:not([data-theme=dark]) .model-selector,html:not([data-theme=dark]) .model-card,html:not([data-theme=dark]) .provider-row,html:not([data-theme=dark]) .radio-list label,html:not([data-theme=dark]) .compact-control,html:not([data-theme=dark]) .motion-control-note,html:not([data-theme=dark]) .project-select,html:not([data-theme=dark]) .secondary-button,html:not([data-theme=dark]) .prompt-tools button,html:not([data-theme=dark]) .scratch-disk-actions button,html:not([data-theme=dark]) .member-row,html:not([data-theme=dark]) input,html:not([data-theme=dark]) textarea,html:not([data-theme=dark]) select{background:var(--panel-2);border-color:var(--line);color:var(--text)}html:not([data-theme=dark]) .model-picker,html:not([data-theme=dark]) .reference-mention-menu{background:color-mix(in srgb,var(--panel) 97%,transparent);border-color:var(--line);color:var(--text)}html:not([data-theme=dark]) .mode-tabs button:hover,html:not([data-theme=dark]) .mode-tabs button.active,html:not([data-theme=dark]) .kind-switch button.active,html:not([data-theme=dark]) .filter-tabs button.active,html:not([data-theme=dark]) .compact-control-trigger:hover,html:not([data-theme=dark]) .pill-row button.active{background:var(--panel-3);border-color:var(--line);color:var(--text)}html:not([data-theme=dark]) .team-toggle-summary{background:var(--panel-2);border-color:var(--line);color:var(--muted)}html:not([data-theme=dark]) .rail-nav-button:hover{background:var(--panel-2)}html:not([data-theme=dark]) .avatar-button{background:linear-gradient(145deg,var(--panel-3),var(--panel-2));border-color:var(--line);color:var(--text)}html[data-theme=light] .studio-card,html[data-theme=light] .gallery-card,html[data-theme=light] .settings-card{box-shadow:0 12px 34px #2d322612}html[data-theme=light] .project-card.featured,html[data-theme=light] .scratch-card{background:radial-gradient(circle at 100% 0,#a7b9001a,transparent 45%),var(--panel)}html[data-theme=light] .empty-history strong,html[data-theme=light] .large-empty h3,html[data-theme=light] .secondary-button,html[data-theme=light] .prompt-tools button{color:var(--text)}@media (max-width:620px){.theme-options{grid-template-columns:1fr}.theme-options button{min-height:70px}}@media (min-width:1121px){.settings-workspace .main-content{scrollbar-width:thin;scrollbar-color:#3d4048 transparent;min-width:0;height:calc(100vh - 74px);padding:18px 14px 48px;overflow-y:auto}.settings-workspace .settings-page{width:100%;max-width:none;margin:0}.settings-workspace .section-heading{margin-bottom:16px;display:block}.settings-workspace .section-heading h2{margin-bottom:6px;font-size:27px;line-height:1.08}.settings-workspace .section-heading p{max-width:38ch;font-size:13px;line-height:1.5}.settings-workspace .settings-layout{grid-template-columns:minmax(0,1fr);gap:12px}.settings-workspace .settings-card,.settings-workspace .team-card,.settings-workspace .scratch-card{border-radius:13px;grid-area:auto;min-width:0;padding:15px}.settings-workspace .settings-card-title{gap:9px}.settings-workspace .settings-card-title>svg{flex:none}.settings-workspace .settings-card-title h3{font-size:14px}.settings-workspace .settings-card-title p{font-size:11px;line-height:1.45}.settings-workspace .team-current-user{grid-template-columns:40px minmax(0,1fr) 20px;padding:9px}.settings-workspace .team-current-user>div{min-width:0}.settings-workspace .team-current-user strong{overflow-wrap:anywhere;font-size:11px}.settings-workspace .team-current-user small{overflow-wrap:anywhere;font-size:8px;line-height:1.4}.settings-workspace .team-layout{grid-template-columns:minmax(0,1fr);gap:10px}.settings-workspace .invite-form,.settings-workspace .member-list,.settings-workspace .my-project-access{min-width:0;padding:12px}.settings-workspace .member-list-heading{align-items:baseline}.settings-workspace .member-row{grid-template-columns:34px minmax(0,1fr) auto;gap:7px}.settings-workspace .member-row>div>strong,.settings-workspace .member-row>div>small{white-space:normal;overflow-wrap:anywhere}.settings-workspace .member-status{grid-column:2;justify-self:start}.settings-workspace .member-row>button{grid-area:1/3}.settings-workspace .invite-ready{grid-template-columns:1fr 1fr}.settings-workspace .invite-ready>div{grid-column:1/-1}.settings-workspace .scratch-disk-panel{grid-template-columns:44px minmax(0,1fr);gap:10px;padding:12px}.settings-workspace .scratch-disk-icon{width:44px;height:44px}.settings-workspace .scratch-disk-copy strong{white-space:normal;overflow-wrap:anywhere;font-size:12px}.settings-workspace .scratch-disk-copy small{overflow-wrap:anywhere;line-height:1.4}.settings-workspace .scratch-disk-actions{grid-column:1/-1;justify-content:stretch}.settings-workspace .scratch-disk-actions button{flex:1;justify-content:center}.settings-workspace .scratch-note{font-size:9px}.settings-workspace .provider-list{margin-top:15px}.settings-workspace .provider-row{grid-template-columns:38px minmax(0,1fr)}.settings-workspace .provider-state{grid-column:2;justify-self:start}.settings-workspace .server-key-note{font-size:9px}.settings-workspace .radio-list label{grid-template-columns:18px minmax(0,1fr) 17px}.settings-workspace.history-closed .main-content{padding:34px clamp(22px,3vw,52px) 70px}.settings-workspace.history-closed .settings-page{width:min(1080px,100%);margin:0 auto}.settings-workspace.history-closed .settings-layout{grid-template-columns:1.1fr .9fr;gap:15px}.settings-workspace.history-closed .team-card,.settings-workspace.history-closed .scratch-card{grid-column:1/-1}.settings-workspace.history-closed .team-layout{grid-template-columns:minmax(300px,.85fr) minmax(360px,1.15fr);gap:12px}.settings-workspace.history-closed .member-row{grid-template-columns:34px minmax(0,1fr) auto 28px}.settings-workspace.history-closed .member-status,.settings-workspace.history-closed .member-row>button{grid-area:auto}.settings-workspace.history-closed .scratch-disk-panel{grid-template-columns:48px minmax(0,1fr) auto}.settings-workspace.history-closed .scratch-disk-actions{grid-column:auto;justify-content:flex-end}.settings-workspace.history-closed .provider-row{grid-template-columns:38px minmax(0,1fr) auto}.settings-workspace.history-closed .provider-state{grid-column:auto;justify-self:auto}.settings-workspace.history-closed .theme-card{grid-column:1/-1}}@media (min-width:851px){.projects-workspace .main-content{min-width:0;height:calc(100vh - 74px);padding:22px 18px 54px;overflow-y:auto;container-type:inline-size}.projects-workspace .section-heading{margin-bottom:18px}.projects-workspace .project-grid{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:12px}.projects-workspace .project-card,.projects-workspace .new-project-card{min-width:0;min-height:198px;padding:18px}.projects-workspace .project-card-actions{bottom:15px;left:18px;right:18px}.projects-workspace .project-card-actions button{flex:1;justify-content:center;min-width:0}.projects-workspace .project-stats{flex-wrap:wrap;gap:7px}.projects-workspace .project-stats span{flex:auto;justify-content:center;min-width:72px}.projects-workspace .project-note{align-items:flex-start}.projects-workspace .report-panel{padding:16px}}@container (max-width:520px){.projects-workspace .project-grid{grid-template-columns:1fr}.projects-workspace .report-panel-heading{flex-direction:column;align-items:stretch}.projects-workspace .report-panel-heading>div:last-child{grid-template-columns:1fr 1fr;display:grid}.projects-workspace .report-panel-heading button{justify-content:center}.projects-workspace .report-metrics{grid-template-columns:1fr 1fr}.projects-workspace .report-table{overflow-x:auto}.projects-workspace .report-row{min-width:430px}}@media (min-width:901px){.asset-viewer-shell{grid-template-columns:minmax(0,1fr) minmax(410px,470px)}}.asset-metadata-panel{padding:24px}.asset-metadata-panel header h2{font-size:21px}.asset-metadata-panel header p{font-size:11px;line-height:1.5}.asset-metadata-panel .eyebrow{font-size:9px}.viewer-actions button{min-height:42px;font-size:10px}.metadata-section>span{font-size:9px}.metadata-prompt{font-size:12px;line-height:1.7}.viewer-reference-grid strong{font-size:11px}.viewer-reference-grid small,.metadata-empty{font-size:9.5px;line-height:1.45}.metadata-list>div{min-height:42px;padding:10px 0}.metadata-list dt,.metadata-list dd{font-size:11px;line-height:1.5}@media (min-width:1200px){.projects-workspace.history-closed .main-content{padding:34px clamp(28px,3vw,56px) 70px}.projects-workspace.history-closed .content-page{width:min(1600px,100%);margin:0 auto}.projects-workspace.history-closed .project-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}}@media (min-width:951px) and (max-width:1199px){.projects-workspace.history-closed .project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:851px) and (max-width:950px){.projects-workspace.history-closed .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.projects-workspace.history-closed .project-card,.projects-workspace.history-closed .new-project-card{box-sizing:border-box;height:220px}@media (min-width:1121px){.workspace-grid:not(.history-closed){grid-template-columns:clamp(340px,25vw,500px) 1px minmax(0,1fr)}.workspace-grid:not(.history-closed) .history-rail{border-left:1px solid var(--line-soft)}}.history-resizer{display:none!important}.kind-switch button.active,.mode-tabs button.active,.input-mode-tabs button.active,.pill-row button.active,.filter-tabs button.active,.density-switch button.active,.history-layout-switch button.active{box-shadow:0 5px 14px #f0ff671f;background:var(--accent)!important;border-color:var(--accent)!important;color:var(--accent-ink)!important}.kind-switch button.active svg,.mode-tabs button.active svg,.input-mode-tabs button.active svg,.pill-row button.active svg,.filter-tabs button.active svg,.density-switch button.active svg,.history-layout-switch button.active svg{color:currentColor}.rail-nav-button.active{background:var(--accent);color:var(--accent-ink);box-shadow:0 5px 14px #f0ff671f}.model-card.selected{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 13%,var(--panel-2))}.radio-list label.selected,.project-access-list label.selected{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--panel-2))}.create-workspace .studio-card-header{grid-template-columns:minmax(0,1fr);gap:10px;min-height:0;padding:10px 12px;display:grid}.create-workspace .mode-tabs{flex-wrap:wrap;gap:4px;display:flex}.create-workspace .mode-tabs button{border:0;border-bottom:2px solid #0000;border-radius:0;flex:auto;justify-content:center;gap:6px;min-width:0;height:40px;padding:0 8px;font-size:14px}.create-workspace .mode-tabs button.active{color:var(--text);border-color:var(--accent);background:0 0}.create-workspace .input-mode-tabs{background:var(--panel-2);border-radius:9px;flex-wrap:wrap;gap:4px;padding:4px;display:flex}.create-workspace .input-mode-tabs button{min-width:0;min-height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:auto;justify-content:center;align-items:center;gap:6px;padding:4px 7px;font-size:14px;font-weight:600;display:flex}.create-workspace .input-mode-tabs button.active{background:var(--panel-3);color:var(--text)}.create-workspace .input-mode-tabs button:hover{color:var(--text)}.create-workspace .kind-switch{border-radius:9px;padding:3px}.create-workspace .kind-switch button{height:38px;min-height:38px;font-size:15px}.create-workspace .model-control{min-width:0;margin-top:14px}.create-workspace .model-selector{background:var(--panel-2);border-color:var(--line);border-radius:8px;grid-template-columns:32px minmax(0,1fr) 17px;gap:10px;width:100%;min-width:0;height:auto;min-height:54px;padding:8px 10px;display:grid}.create-workspace .model-selector>span:nth-child(2){text-align:left;gap:2px;min-width:0;display:grid}.create-workspace .model-selector .model-emblem{border-radius:8px;width:32px;height:32px;font-size:11px}.create-workspace .model-selector strong{overflow-wrap:anywhere;font-size:16px;line-height:1.3}.create-workspace .model-selector small{color:var(--muted);font-size:12px}.create-workspace .model-selector[aria-expanded=true]>svg{transform:rotate(180deg)}.create-workspace .model-control .model-picker{background:var(--panel);border:1px solid var(--line);width:100%;max-height:400px;box-shadow:none;border-radius:10px;margin-top:8px;padding:12px;position:static;overflow-y:auto}.create-workspace .model-control .model-grid{grid-template-columns:minmax(0,1fr)}.create-workspace .model-card{min-width:0}.create-workspace .control-groups{border:0;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:7px;margin-top:8px;padding-top:0;display:grid}.create-workspace .compact-control{display:contents}.create-workspace .compact-control-trigger{border:1px solid var(--line);background:var(--panel-2);min-width:0;min-height:42px;color:var(--text);border-radius:7px;justify-content:center;align-items:center;gap:5px;padding:8px 7px;display:flex}.create-workspace .compact-control-trigger:hover{background:var(--panel-3)}.create-workspace .compact-control.open .compact-control-trigger{border-color:var(--accent)}.create-workspace .compact-control-trigger>svg{flex-shrink:0;width:12px}.create-workspace .compact-control-icon{width:auto;height:auto;color:var(--muted);background:0 0;border-radius:0;flex:none}.create-workspace .compact-control-icon svg{width:16px;height:16px}.create-workspace .compact-control-copy{min-width:0;display:block}.create-workspace .compact-control-copy strong{overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:1.4}.create-workspace .compact-control-panel{border:1px solid var(--line);background:var(--panel-2);border-radius:9px;order:10;grid-column:1/-1;min-width:0;padding:12px}.create-workspace .compact-panel-label{color:var(--text);margin-bottom:10px;font-size:14px;display:block}.create-workspace .compact-control-panel .pill-row{flex-wrap:wrap;gap:6px;display:flex}.create-workspace .compact-control-panel .pill-row button{min-width:50px;height:38px;font-size:14px}.create-workspace .duration-slider{width:100%;min-width:0}.create-workspace .duration-slider input{cursor:pointer;width:100%}.create-workspace .source-duration-note,.create-workspace .resolution-note{color:var(--muted);margin:8px 0 0;font-size:13px;line-height:1.6}.create-workspace .audio-chip{background:var(--panel-2);border:1px solid var(--line);width:100%;min-height:40px;color:var(--muted);cursor:pointer;text-align:left;border-radius:7px;order:20;grid-column:1/-1;align-items:center;gap:8px;padding:8px 10px;font-size:14px;display:flex}.create-workspace .audio-chip>span:not(.audio-chip-indicator){flex:1}.create-workspace .audio-chip strong{font-size:13px;font-weight:600}.create-workspace .audio-chip.on{color:var(--text)}.create-workspace .audio-chip.on>svg,.create-workspace .audio-chip.on strong{color:var(--accent)}.create-workspace .audio-chip-indicator{background:var(--muted-2);border-radius:12px;flex-shrink:0;width:26px;height:16px;padding:3px}.create-workspace .audio-chip-indicator:after{content:"";background:var(--panel);border-radius:50%;width:10px;height:10px;transition:transform .15s;display:block}.create-workspace .audio-chip.on .audio-chip-indicator{background:var(--accent)}.create-workspace .audio-chip.on .audio-chip-indicator:after{transform:translate(10px)}.create-workspace .output-control{border:1px solid var(--line);background:var(--panel-2);border-radius:7px;justify-content:space-evenly;align-items:center;min-width:0;min-height:42px;display:flex}.create-workspace .output-control>svg{color:var(--muted);width:14px}.create-workspace .output-control button{min-width:22px;min-height:40px;color:var(--text);cursor:pointer;background:0 0;border:0;padding:0;font-size:18px}.create-workspace .output-control button:disabled{opacity:.35;cursor:default}.create-workspace .output-control strong{font-size:14px}.create-workspace :is(.mode-tabs,.input-mode-tabs,.kind-switch,.model-control,.control-groups) button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion:reduce){.create-workspace .audio-chip-indicator:after{transition:none}}@media (min-width:1121px){.workspace-grid:not(.history-closed){grid-template-columns:clamp(340px,25vw,500px) minmax(0,1fr)}}.auth-page{background:radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 40%), var(--bg);place-items:center;min-height:100vh;padding:28px;display:grid}.auth-card{border:1px solid var(--line);background:color-mix(in srgb, var(--panel) 94%, transparent);border-radius:22px;width:min(100%,460px);padding:42px;box-shadow:0 30px 70px #00000047}.auth-mark{color:#131604;background:var(--accent);border-radius:15px;place-items:center;width:48px;height:48px;margin-bottom:25px;display:grid}.auth-card h1{margin:8px 0 12px;font-size:clamp(30px,4vw,42px);line-height:1.05}.auth-card>p:not(.eyebrow):not(.auth-message):not(.auth-status){color:var(--muted);font-size:16px;line-height:1.55}.auth-card small{color:var(--muted);margin-top:25px;font-size:12px;line-height:1.5;display:block}.google-sign-in{color:#161906;background:var(--accent);width:100%;font:inherit;cursor:pointer;border:0;border-radius:12px;grid-template-columns:24px 1fr 24px;align-items:center;gap:12px;margin-top:28px;padding:15px 18px;font-weight:800;display:grid}.google-sign-in:disabled{cursor:wait;opacity:.7}.auth-message,.auth-status{color:#ff9aa7;margin:15px 0 0;font-size:13px;line-height:1.45}.auth-status{color:var(--muted)}.auth-callback{text-align:center;justify-items:center;gap:18px;display:grid}.auth-callback h1{margin:0;font-size:20px}.auth-field{color:var(--text);gap:8px;margin-top:18px;font-size:13px;font-weight:700;display:grid}.auth-field span{justify-content:space-between;display:flex}.auth-field em{color:var(--muted);font-style:normal;font-weight:500}.auth-field input{border:1px solid var(--line);background:var(--panel-2);width:100%;min-height:46px;color:var(--text);font:inherit;border-radius:10px;padding:10px 12px}.auth-field input:focus{outline:2px solid color-mix(in srgb, var(--accent) 65%, transparent);outline-offset:1px}
