.asset-actions{flex-shrink:0;display:inline-flex;position:relative}.asset-actions-trigger{width:30px;height:30px;color:inherit;cursor:pointer;opacity:.65;background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;padding:0;display:flex}.asset-actions-trigger:hover,.asset-actions-trigger:focus-visible,.asset-actions-trigger[aria-expanded=true]{opacity:1;background:#8080801f}.asset-actions-menu{z-index:1100;border:1px solid var(--hairline,#ffffff18);background:var(--surface,#17191c);min-width:146px;color:var(--ink,#e1e3e6);border-radius:10px;padding:5px;position:absolute;top:calc(100% + 5px);right:0;box-shadow:0 8px 28px #29251c20}.asset-actions-menu button{width:100%;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:9px;padding:10px;font-size:12px;display:flex}.asset-actions-menu button:hover,.asset-actions-menu button:focus-visible{background:var(--surface-active,#25282c)}.asset-actions-menu .asset-danger{color:#d89388}.asset-delete-backdrop{z-index:10000;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#24221c66;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.asset-delete-dialog{box-sizing:border-box;border:1px solid var(--hairline,#ffffff18);background:var(--surface,#17191c);width:min(420px,100vw - 40px);color:var(--ink,#e1e3e6);border-radius:18px;padding:28px;box-shadow:0 24px 90px #16120a30}.asset-delete-symbol{color:#d89388;background:#d8938812;border-radius:12px;justify-content:center;align-items:center;width:42px;height:42px;margin-bottom:20px;display:flex}.asset-delete-dialog h2{overflow-wrap:anywhere;margin:0 0 10px;font-size:19px;font-weight:500;line-height:1.5}.asset-delete-dialog p{color:var(--ink-secondary,#aeb2b8);margin:0 0 22px;font-size:13px;line-height:1.8}.asset-delete-dialog .asset-delete-error{color:#d89388}.asset-delete-dialog footer{justify-content:flex-end;gap:9px;display:flex}.asset-delete-dialog footer button{font:inherit;border:1px solid var(--hairline,#ffffff18);color:var(--ink,#e1e3e6);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;gap:7px;padding:10px 16px;font-size:13px;display:inline-flex}.asset-delete-dialog footer .asset-delete-confirm{color:#fff;background:#914e48;border-color:#914e48}.asset-delete-dialog button:disabled{opacity:.5;cursor:wait}.asset-delete-dialog button:focus-visible,.asset-actions button:focus-visible{outline-offset:2px;outline:2px solid #9c8b69}.media-card-info>.asset-actions{position:absolute;top:8px;right:0}.media-card-info{padding-right:34px;position:relative}.library-caption>.asset-actions{position:absolute;top:10px;right:0}.library-caption{position:relative}@media (pointer:coarse){.asset-actions-trigger{opacity:1;width:40px;height:40px}}.asset-deletion-activity{z-index:90;background:var(--surface,#17191c);border:1px solid var(--hairline,#ffffff18);color:var(--ink-secondary,#aeb2b8);border-radius:9px;align-items:center;gap:9px;max-width:calc(100vw - 40px);padding:10px 14px;font-size:12px;display:flex;position:fixed;bottom:20px;right:22px;box-shadow:0 4px 20px #0002}.video-upgrade-backdrop{z-index:10000;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);background:#050807a3;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.video-upgrade-dialog{box-sizing:border-box;color:#ecefe8;background:linear-gradient(145deg,#252a26,#1b1e1c 68%);border:1px solid #41483e;border-radius:22px;width:min(420px,100vw - 32px);padding:32px;font-family:inherit;position:relative;box-shadow:0 24px 100px #0008}.video-upgrade-dialog button{font:inherit;cursor:pointer}.video-upgrade-close{color:#969e93;background:0 0;border:0;border-radius:50%;place-items:center;width:30px;height:30px;padding:0;display:grid;position:absolute;top:14px;right:14px}.video-upgrade-close:hover{color:#edf0e8;background:#ffffff0c}.video-upgrade-art{align-items:center;height:83px;margin-bottom:22px;padding-left:3px;display:flex}.video-upgrade-art img{object-fit:cover;border:2px solid #424a3f;border-radius:10px;width:57px;height:72px;transform:rotate(-9deg);box-shadow:0 4px 14px #0005}.video-upgrade-art img+img{margin-left:-13px;transform:translateY(3px)rotate(6deg)}.video-upgrade-art img:nth-child(3){transform:rotate(13deg)}.video-upgrade-art span{color:#c5d5ae;background:#a6bf7d12;border:1px solid #a6bf7d25;border-radius:12px;place-items:center;width:40px;height:40px;margin-left:20px;display:grid}.video-upgrade-dialog h2{letter-spacing:.01em;margin:0 0 12px;font-size:21px;font-weight:600;line-height:1.4}.video-upgrade-dialog p{color:#a9b0a5;margin:0;font-size:14px;line-height:1.85}.video-upgrade-dialog strong{color:#d4dec9;font-weight:500}.video-upgrade-note{color:#858e80;margin-top:17px;font-size:12px;line-height:1.7}.video-upgrade-actions{gap:10px;margin-top:27px;display:flex}.video-upgrade-actions button{color:#bac2b3;white-space:nowrap;background:0 0;border:1px solid #444c3f;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:12px 15px;font-size:13px;display:flex}.video-upgrade-actions .video-upgrade-confirm{color:#192213;background:#bdcfa6;border-color:#bdcfa6;flex:1;font-weight:600}.video-upgrade-actions button:hover{filter:brightness(1.1)}.video-upgrade-dialog button:focus-visible{outline-offset:3px;outline:2px solid #d4e3be}@media (width<=450px){.video-upgrade-dialog{padding:27px 22px}.video-upgrade-actions button{padding:12px 10px}}.generation-mode{background:#ffffff06;border:1px solid #ffffff09;border-radius:20px;gap:2px;margin-left:4px;padding:3px;display:flex}.composer-actions .generation-mode button{color:#81868e;border-radius:16px;justify-content:center;align-items:center;width:36px;height:36px;padding:0;line-height:1;display:inline-flex}.composer-actions .generation-mode button[aria-pressed=true]{color:#f0f1f3;background:#36393f;box-shadow:0 1px 4px #0003}.video-controls{align-items:center;gap:4px;display:flex}.video-reference-mode{color:#abb6c7;white-space:nowrap;border:1px solid #ffffff14;border-radius:5px;flex-shrink:0;align-items:center;padding:4px 7px;font-size:11px;line-height:1.3;display:inline-flex}.video-setting{position:relative}.video-setting-trigger{color:#b5bac3;white-space:nowrap;border-radius:16px;align-items:center;gap:6px;padding:7px 9px;font-size:12px;display:flex}.video-setting-trigger:hover,.video-setting-trigger[aria-expanded=true]{color:#e4e7ec;background:#ffffff0b}.video-setting-popover{z-index:45;background:#25272c;border:1px solid #ffffff1b;border-radius:13px;width:176px;padding:8px;animation:.14s ease-out video-popover;position:absolute;bottom:calc(100% + 14px);right:0;box-shadow:0 14px 45px #0006}.video-setting-label{color:#8f96a1;padding:7px 10px 9px;font-size:11px}.video-setting-popover button{color:#c8cdd5;text-align:left;border-radius:7px;align-items:center;gap:12px;width:100%;padding:10px;font-size:13px;display:flex}.video-setting-popover button:hover{background:#ffffff08}.video-setting-popover button[aria-pressed=true]{color:#f4f5f7;background:#ffffff0c}.video-setting-popover button>svg:last-child{margin-left:auto}.ratio-outline{border:1px solid;border-radius:2px;flex-shrink:0;width:13px;max-height:22px;display:block}.ratio-options{width:194px}.video-workspace{grid-template:"rail heading"40px"rail stage"minmax(180px,1fr)"rail composer"/64px minmax(0,1fr);gap:16px 28px;width:min(1120px,100%);height:calc(100dvh - 80px);min-height:600px;margin:0 auto;padding:16px 32px 20px;animation:.35s both video-enter;display:grid;position:relative}.video-workspace>*{min-width:0}.video-workspace-heading{grid-area:heading;justify-content:space-between;align-items:center;gap:20px;width:min(820px,100%);margin:auto;display:flex}.video-workspace-heading>span{color:#898f98;white-space:nowrap;flex-shrink:0;align-items:center;gap:10px;font-size:12px;display:flex}.video-take-status{color:#a0ada8;align-items:center;gap:5px;padding-left:4px;display:inline-flex}.video-workspace-heading i{color:#44484f;font-style:normal}.video-take-rail{scrollbar-width:none;flex-direction:column;grid-area:rail;gap:12px;width:64px;min-height:0;display:flex;overflow:auto}.video-take-rail button{opacity:.65;border:1px solid #ffffff10;border-radius:8px;flex-shrink:0;width:64px;height:84px;padding:3px;transition:opacity .16s,border-color .16s;position:relative;overflow:hidden}.video-take-rail button.selected{opacity:1;background:#ffffff09;border-color:#c1c8d5}.video-take-rail button:focus-visible{outline-offset:-2px;outline:2px solid #c1c8d5}.video-take-rail img{object-fit:cover;border-radius:3px;width:100%;height:100%}.video-take-rail span{color:#eee;background:#1118;border-radius:3px;padding:1px 4px;font-size:10px;position:absolute;bottom:5px;right:5px}.video-take-rail button:hover{opacity:1}.video-take-rail .new-video-take{place-items:center;height:40px;display:grid}.video-main-stage{grid-area:stage;justify-content:center;align-items:center;min-height:0;display:flex;overflow:hidden}.video-main-stage>video{object-fit:contain;background:#08090a;border-radius:7px;width:auto;max-width:100%;height:100%;max-height:100%;box-shadow:0 10px 50px #0003}.video-bottom{grid-area:composer;width:min(820px,100%);margin:auto}.video-bottom .composer-wrap{width:100%;min-width:0}.video-bottom .rich-composer{padding:17px 20px 12px}.video-bottom .tiptap{min-height:44px;max-height:100px}.video-bottom .composer-toolbar{margin-top:10px}.video-bottom .composer-footnote{margin-top:8px;font-size:10px}.video-generating{background:#1b1e22;border:1px solid #ffffff10;border-radius:7px;max-width:100%;height:100%;position:relative;overflow:hidden}.video-generating>img{object-fit:cover;filter:blur(22px);opacity:.18;width:100%;height:100%}.video-generating>div:not(.video-loading-line):not(.video-lifecycle-progress){color:#c0c8d2;flex-direction:column;justify-content:center;align-items:center;gap:15px;font-size:14px;display:flex;position:absolute;inset:0}.video-generating small{color:#7e8896;font-size:11px}.video-loading-line{background:linear-gradient(90deg,#0000,#abbdd4,#0000);width:40%;height:2px;animation:2s ease-in-out infinite video-loading;position:absolute;bottom:0;left:0}.media-library .tabs button{align-items:center;gap:9px;display:flex}.media-library .tabs small{color:#757e8b;font-size:10px}.media-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 24px;display:grid}.media-card{min-width:0}.media-card-cover{aspect-ratio:4/5;text-align:left;background:#1c1f23;border:1px solid #ffffff12;border-radius:10px;width:100%;padding:0;position:relative;overflow:hidden}.media-card-cover>img{object-fit:cover;width:100%;height:100%;transition:transform .3s}.media-task-placeholder{color:#a5adb8;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;display:flex}.media-task-placeholder small{color:#737e8e;font-size:12px}.media-card-cover:hover>img{transform:scale(1.025)}.media-type{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#e0e5eb;background:#101216b3;border-radius:5px;align-items:center;gap:6px;padding:4px 7px;font-size:11px;display:flex;position:absolute;bottom:12px;left:12px}.media-play{color:#f5f7fa;filter:drop-shadow(0 2px 7px #0008);opacity:.9;place-items:center;display:grid;position:absolute;inset:0}.media-card-info{justify-content:space-between;align-items:center;gap:10px;padding:12px 2px;display:flex}.media-card-info>small{white-space:nowrap;color:#777f8b;font-size:10px}.media-card-info .character-name{flex:1;min-width:0}.media-card-info .name-trigger span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.media-card-info .name-trigger{max-width:100%;font-size:13px}.media-card-info .name-trigger svg{opacity:0}.media-card-info:hover .name-trigger svg,.media-card-info .name-trigger:focus-visible svg{opacity:1}.media-preview{z-index:150}.media-preview section{background:#1b1d21;border:1px solid #ffffff18;border-radius:16px;flex-direction:column;gap:18px;width:min(820px,90vw);height:min(850px,90dvh);padding:22px;display:flex}.media-preview header,.media-preview footer{flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.media-preview img{object-fit:contain;flex:1;width:100%;min-height:0}.media-preview footer{color:#929cab;font-size:12px}.media-preview footer button{color:#d8dee7;align-items:center;gap:6px;display:flex}.media-card-cover:focus-visible,.generation-mode button:focus-visible,.video-setting button:focus-visible{outline-offset:3px;outline:2px solid #aabbd3}@keyframes video-popover{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes video-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes video-loading{0%{left:-40%}to{left:100%}}@media (width>=1700px){.media-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (width<=1000px){.media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.video-workspace{column-gap:20px;padding-inline:24px}}@media (width<=700px){.media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.media-card-info{flex-direction:column;align-items:flex-start;gap:5px}.video-workspace{grid-template:"heading""stage"minmax(220px,45dvh)"rail"67px"composer"/minmax(0,1fr);gap:12px;height:auto;min-height:650px;padding:8px 16px 14px}.video-take-rail{flex-direction:row;width:100%;height:67px;position:static}.video-take-rail button{width:42px;height:58px}.video-workspace-heading>span{gap:5px;font-size:10px}.video-controls{gap:0}.composer-toolbar:has(.video-controls){flex-wrap:wrap;gap:8px}.composer-toolbar:has(.video-controls) .send-actions{margin-left:auto}.video-reference-mode{padding:3px 5px;font-size:10px}.video-setting-trigger{gap:3px;padding:6px;font-size:11px}.video-setting-trigger svg{display:none}.generation-mode{margin-left:0}.composer-actions .generation-mode button{width:28px}.video-bottom .rich-composer{padding:12px}.video-setting-popover{width:150px}.media-card-info .name-trigger svg{opacity:1}}@media (prefers-reduced-motion:reduce){.video-workspace,.video-setting-popover,.video-loading-line{animation:none}.media-card-cover>img{transition:none}}.video-setting-popover.opens-down{top:calc(100% + 14px);bottom:auto}.video-setting-popover{max-height:calc(100dvh - 140px);overflow-y:auto}.video-bottom .compact .tiptap{min-height:44px;max-height:100px;padding:5px 4px 8px}.video-bottom .compact .composer-toolbar{padding:0}.video-workspace-heading .character-name{min-width:0}.video-workspace-heading .name-trigger{max-width:100%}.video-workspace-heading .name-trigger span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.composer-actions .generation-mode{align-items:center}.composer-actions .generation-mode svg{flex-shrink:0;display:block}.video-generating .video-lifecycle-progress{display:block;position:absolute;bottom:24px;left:24px;right:24px}.video-lifecycle-progress>.video-progress-meta{color:#b3b9b3;flex-direction:row;justify-content:space-between;gap:16px;margin-bottom:9px;font-size:12px;display:flex}.video-lifecycle-progress .record-progress{width:100%}.resource-hover-preview{z-index:1300;pointer-events:none;box-sizing:border-box;color:#e0e6da;background:#1d221f;border:1px solid #41483f;border-radius:14px;flex-direction:column;padding:6px;display:flex;position:fixed;box-shadow:0 18px 50px #0008}.resource-hover-preview-media{background:#111512;border-radius:9px;flex:1;justify-content:center;align-items:center;min-height:0;display:flex;position:relative;overflow:hidden}.resource-hover-preview-media img{object-fit:contain;width:100%;height:100%}.resource-hover-preview-caption{min-width:0;padding:11px 8px 7px}.resource-hover-preview-caption strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;display:block;overflow:hidden}.resource-hover-preview-caption small{color:#929e8d;margin-top:4px;font-size:11px;display:block}.resource-preview-spinner{color:#aabd95;animation:1s linear infinite resource-preview-spin;position:absolute}.resource-preview-kind{color:#e1e7db;background:#111b;border:1px solid #ffffff20;border-radius:5px;padding:3px 6px;font-size:10px;position:absolute;bottom:8px;left:8px}.resource-preview-unavailable{color:#939d90;flex-direction:column;align-items:center;gap:10px;font-size:12px;display:flex}@keyframes resource-preview-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.resource-preview-spinner{animation:none}}.video-reference-strip{align-items:flex-start;gap:18px;padding:10px 0;display:flex;overflow-x:auto}.video-reference-card{flex:none;align-items:flex-end;gap:8px;padding:3px 2px 3px 0;display:flex;position:relative}.video-reference-card>img{object-fit:cover;border-radius:8px;width:60px;height:68px;display:block;box-shadow:0 0 0 1px #ffffff14,0 3px 8px #0002}.video-reference-remove{color:#e3e6e1;cursor:pointer;background:#171b1eee;border:1px solid #535a58;border-radius:50%;place-items:center;width:19px;height:19px;padding:2px;display:grid;position:absolute;top:0;left:45px}.video-reference-remove:hover{background:#3a4140}.video-reference-details{flex-direction:column;justify-content:flex-end;gap:5px;padding-bottom:2px;display:flex}.video-reference-role{color:#aeb8ad;min-height:26px;font:inherit;cursor:pointer;background:#ffffff04;border:1px solid #ffffff0d;border-radius:7px;justify-content:space-between;align-items:center;gap:6px;padding:4px 6px 4px 8px;font-size:11px;font-weight:400;line-height:16px;transition:background .15s,color .15s,border-color .15s;display:flex}.video-reference-role:hover,.video-reference-role[aria-expanded=true]{color:#e0ebd2;background:#a8bd8210;border-color:#a8bd8238}.video-reference-role svg{color:#8d968d;flex-shrink:0;width:12px;height:12px}.video-reference-role:focus-visible,.video-reference-menu button:focus-visible{outline-offset:-2px;outline:1px solid #a4b88b}.video-reference-role:disabled,.video-reference-remove:disabled{opacity:.5;cursor:default}.video-reference-menu{z-index:1200;box-sizing:border-box;color:#e2e7df;background:#202521;border:1px solid #41483f;border-radius:14px;width:min(252px,100vw - 24px);padding:7px;position:fixed;overflow-y:auto;box-shadow:0 14px 42px #0006,0 2px 8px #0003}.video-reference-menu-heading{color:#929c90;letter-spacing:.08em;padding:7px 10px 9px;font-size:11px}.video-reference-menu button{text-align:left;color:#c5cdc1;width:100%;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:11px;padding:11px 10px;display:flex}.video-reference-menu button>span{flex:1;min-width:0}.video-reference-menu strong{font-size:13px;font-weight:500;line-height:19px;display:block}.video-reference-menu small{color:#939e90;margin-top:2px;font-size:11px;line-height:16px;display:block}.video-reference-menu button:hover:not(:disabled){background:#ffffff08}.video-reference-menu button[aria-checked=true]{color:#d5e4bf;background:#a8bd8214}.video-reference-menu button:disabled{opacity:.38;cursor:not-allowed}.video-frame-time{color:#a8b2a3;align-items:center;gap:4px;padding:0 2px;font-size:10px;display:flex}.video-frame-time input{color:#dce5d5;width:38px;min-width:0;font:inherit;background:#181c19;border:1px solid #414a3d;border-radius:4px;padding:3px}.video-frame-layout{flex-wrap:wrap;align-items:center;gap:10px;overflow:visible}.video-frame-sequence{background:#ffffff06;border:1px solid #ffffff08;border-radius:14px;align-items:center;gap:3px;padding:6px;display:flex}.video-frame-slot-pair{align-items:center;gap:4px;display:flex}.video-frame-link{color:#778078;flex-shrink:0}.video-frame-thumb{flex:none;width:44px;height:46px;position:relative}.video-frame-image{cursor:pointer;background:#242925;border:0;border-radius:9px;width:100%;height:100%;padding:0;display:block;position:relative;overflow:hidden}.video-frame-image img{object-fit:cover;width:100%;height:100%;display:block}.video-frame-image:focus-visible,.video-frame-empty:focus-visible{outline-offset:2px;outline:2px solid #aec59a}.video-frame-thumb .video-reference-remove{opacity:0;z-index:1;width:17px;height:17px;transition:opacity .12s;top:-5px;left:auto;right:-5px}.video-frame-thumb:hover .video-reference-remove,.video-frame-thumb:focus-within .video-reference-remove{opacity:1}.video-frame-caret,.video-frame-time-badge{color:#fff;background:#131714bb;border-radius:4px;padding:1px 3px;font-size:10px;line-height:14px;position:absolute;bottom:2px;right:2px}.video-frame-caret{display:flex}.video-frame-empty{color:#9da49f;cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;width:36px;height:42px;padding:0;display:grid;position:relative}.video-frame-empty:hover{color:#d9e2d4;background:#ffffff08}.video-frame-menu{overflow:visible}.video-frame-menu button{gap:6px;padding:9px 10px}.video-frame-menu-row{position:relative}.video-frame-menu .video-frame-picker-image{object-fit:cover;border-radius:6px;width:32px;height:34px;margin-right:4px}.video-frame-time-menu{z-index:1;box-sizing:border-box;color:#aeb9a9;background:#242a25;border:1px solid #41483f;border-radius:12px;width:222px;padding:14px;font-size:12px;position:absolute;top:0;box-shadow:0 10px 32px #0005}.video-frame-time-menu.right{left:100%}.video-frame-time-menu.left{right:100%}.video-frame-time-menu.below{width:100%;margin:3px 0;position:relative}.video-frame-time-menu>div{justify-content:space-between;align-items:center;display:flex}.video-frame-time-menu strong{color:#e0e7db;font-size:12px;font-weight:500}.video-frame-time-menu input{appearance:none;cursor:ew-resize;background:repeating-linear-gradient(90deg,#0000 0 10px,#667263 11px,#0000 12px) 50%/100% 7px no-repeat,#ffffff05;border-radius:18px;width:100%;height:30px;margin:12px 0 6px}.video-frame-time-menu input::-webkit-slider-thumb{appearance:none;background:var(--frame-thumb) center/cover;border:2px solid #c7d8b8;border-radius:50%;width:29px;height:29px;box-shadow:0 2px 5px #0008}.video-frame-time-menu input::-moz-range-thumb{background:var(--frame-thumb) center/cover;border:2px solid #c7d8b8;border-radius:50%;width:25px;height:25px}.video-frame-time-ticks{color:#879380;font-size:10px}.video-frame-menu[data-scroll=true]{overflow:hidden auto}.video-frame-menu:has(.video-frame-time-menu.below){overflow:hidden auto}.video-frame-menu:not(:has(.video-frame-menu-row)){overflow:hidden auto}.video-frame-menu[data-scroll=true] .video-frame-time-menu{width:100%;margin:3px 0;position:relative;left:auto;right:auto}.upload-previews{gap:10px;padding:14px 20px 0;display:flex;overflow-x:auto}.upload-preview{background:#ffffff04;border:1px solid #ffffff18;border-radius:9px;flex:none;align-items:center;gap:10px;max-width:240px;padding:6px 10px 6px 6px;display:flex}.upload-preview-image{background:#24272b;border-radius:5px;flex:none;width:58px;height:64px;position:relative;overflow:hidden}.upload-preview-image img{object-fit:cover;width:100%;height:100%;display:block}.upload-preview[aria-busy=true] .upload-preview-image img{opacity:.6}.upload-preview-image svg{color:#fff;filter:drop-shadow(0 1px 3px #000);position:absolute;top:23px;left:20px}.upload-preview-info{color:#aeb4bb;flex-direction:column;gap:3px;min-width:0;font-size:11px;display:flex}.upload-preview-name{text-overflow:ellipsis;white-space:nowrap;color:#e1e4e8;max-width:150px;font-size:12px;overflow:hidden}.upload-preview-actions{gap:12px;display:flex}.upload-preview-actions button{color:#e1e4e8;align-items:center;gap:4px;padding:3px 0;display:inline-flex}@media (width<=700px){.upload-previews{padding:12px 14px 0}}.upload-preview-spinner{animation:1.6s linear infinite upload-preview-spin}@keyframes upload-preview-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.upload-preview-spinner{animation:none}}.character-studio{--cs-accent:#d4dfba;color:#e6e8df;grid-template-columns:minmax(0,.83fr) minmax(0,1.1fr);gap:32px;min-width:0;display:grid}.character-studio button{color:inherit;cursor:pointer}.cs-portrait{min-width:0;position:relative}.cs-tag{z-index:2;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#20251c66;border:1px solid #ffffff20;border-radius:22px;padding:8px 12px;font-size:12px;position:absolute;top:20px;left:20px}.cs-portrait>small{color:#929b86;margin:15px 2px;font-size:12px;display:block}.cs-stage{background:linear-gradient(145deg,#20271f99,#161b16);border:1px solid #d3e4b518;border-radius:22px;flex-direction:column;min-width:0;padding:22px;display:flex}.cs-toolbar{z-index:1;justify-content:space-between;align-items:center;gap:12px;display:flex;position:relative}.cs-tabs{background:#11171099;border:1px solid #ffffff06;border-radius:12px;gap:4px;padding:4px;display:flex}.cs-tabs button{color:#9ca38e;background:0 0;border:0;border-radius:8px;padding:10px 21px;font-size:13px}.cs-tabs button[aria-pressed=true]{color:#edf4dc;background:#d1dfaa26}.cs-rotation{color:#bfcba9;align-items:center;gap:7px;font-size:12px;display:flex}.cs-view{isolation:isolate;flex-direction:column;flex:1;justify-content:center;align-items:center;min-width:0;display:flex;position:relative;overflow:hidden}.cs-halo{filter:blur(55px);opacity:.17;z-index:-1;pointer-events:none;background-position:50%;background-size:cover;position:absolute;inset:12% 10% 23%}.cs-image{cursor:zoom-in;-webkit-user-select:none;user-select:none;outline-offset:4px;border-radius:17px;max-width:100%;position:relative;overflow:hidden}.cs-image:focus-visible{outline:2px solid var(--cs-accent)}.cs-image.rotatable{cursor:grab;touch-action:pan-y}.cs-image.rotatable:active{cursor:grabbing}.cs-single>img{object-fit:contain;pointer-events:none;max-width:100%;max-height:100%;display:block}.cs-portrait .cs-image{aspect-ratio:3/4;width:100%}.cs-portrait .cs-single>img{object-fit:cover;width:100%;height:100%}.cs-stage .cs-image{width:min(100%,380px);margin:32px auto 24px}.cs-stage .body .cs-image{width:min(76%,290px)}.cs-crop{aspect-ratio:1;width:100%;position:relative;overflow:hidden}.body .cs-crop{aspect-ratio:3/4}.cs-crop>img{pointer-events:none;object-fit:fill!important;width:200%!important;max-width:none!important;height:200%!important;max-height:none!important;position:absolute!important}.cs-expand{-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);pointer-events:none;background:#11171460;border:1px solid #ffffff18;border-radius:50%;place-items:center;width:32px;height:32px;display:grid;position:absolute;bottom:12px;right:12px}.cs-orbit{pointer-events:none;z-index:2;border:1px solid #bfcc9229;border-radius:50%;width:96%;height:45px;margin-top:-44px;position:relative}.cs-orbit svg{color:#b8ca91;background:#1e261c;width:15px;height:15px;position:absolute;top:18px}.cs-orbit svg:first-child{left:12%}.cs-orbit svg:last-child{right:12%}.cs-orbit i{background:#ccddb0;border-radius:50%;width:5px;height:5px;position:absolute;bottom:-3px;left:50%}.cs-dial{align-items:center;gap:16px;width:100%;padding-top:32px;display:flex}.cs-dial>button{background:0 0;border:1px solid #b1c39725;border-radius:50%;flex-shrink:0;place-items:center;width:32px;height:32px;display:grid}.cs-scale{flex:1;min-width:0;position:relative}.cs-scale input{appearance:none;cursor:ew-resize;background:repeating-linear-gradient(90deg,#0000 0 8px,#d3dfb535 8px 9px);width:100%;height:26px;margin:0}.cs-scale input::-webkit-slider-runnable-track{background:#c6d4a840;height:2px}.cs-scale input::-webkit-slider-thumb{appearance:none;background:#d9eab6;border-radius:4px;width:6px;height:26px;margin-top:-12px;box-shadow:0 0 18px #d4ef8970}.cs-stops{justify-content:space-between;padding:5px 0;display:flex}.cs-stops button{color:#99a88c;background:0 0;border:0;min-width:24px;padding:8px}.cs-stops i{background:#879575;border-radius:50%;width:4px;height:4px;display:block}.cs-stops button[aria-pressed=true] i{background:#e2efc9;box-shadow:0 0 7px #b9dd72}.cs-lightbox{z-index:1000;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);cursor:default;background:#080d0bd9;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow:auto}.cs-lightbox>div{width:min(100%,1000px)}.cs-lightbox section{background:#1b231c;border:1px solid #d6dfba2b;border-radius:24px;padding:22px;box-shadow:0 30px 120px #0008}.cs-lightbox header,.cs-lightbox footer{justify-content:space-between;align-items:center;gap:16px;display:flex}.cs-lightbox header{padding:0 0 20px}.cs-lightbox footer{color:#b6c09f;padding-top:18px;font-size:12px}.cs-lightbox button{background:0 0;border:0;align-items:center;gap:8px;display:inline-flex}.cs-lightbox .cs-image{flex-shrink:0;width:auto;max-width:100%;max-height:none;margin:0 auto}.cs-lightbox .cs-image:has(.cs-crop){width:min(100dvh - 235px,100%)}.cs-lightbox .body .cs-image:has(.cs-crop){width:min(75dvh - 176.25px,100%)}.cs-lightbox .cs-single>img{max-height:calc(100dvh - 190px)}.cs-lightbox .cs-orbit{display:none}.cs-lightbox .cs-dial{max-width:620px;padding-top:18px}.character-studio.compact{height:100%;display:block}.compact .cs-stage{background:#182019;border:0;border-radius:12px;height:100%;padding:10px}.compact .cs-toolbar{gap:3px}.compact .cs-tabs{gap:0;padding:2px}.compact .cs-tabs button{padding:6px 9px;font-size:11px}.compact .cs-rotation span{display:none}.compact .cs-stage .cs-image{width:auto;max-width:100%;max-height:230px;margin:10px auto}.compact .cs-stage .cs-image:has(.cs-crop){width:190px}.compact .cs-stage .body .cs-image:has(.cs-crop){width:150px}.compact .cs-stage .cs-single>img{max-height:230px}.compact .cs-dial{gap:8px;padding-top:18px}.compact .cs-orbit{height:24px;margin-top:-27px}.compact .cs-orbit svg{top:5px}.compact .cs-stops{padding:0}.compact .cs-stage .cs-halo{filter:blur(25px)}.character-studio-page{max-width:1400px;margin:25px auto 70px;padding:24px 4vw}.character-studio-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px;display:flex}.character-studio-heading small{letter-spacing:4px;color:#9aa488;font-size:10px}.character-studio-heading h1{margin:13px 0 0;font-size:28px}.character-studio-heading .character-name{font-size:28px}.character-studio-actions{align-items:center;gap:18px;display:flex}.character-studio-actions button,.character-studio-actions a{color:#dbe4cb;background:#26321f77;border:1px solid #b9c99525;border-radius:10px;align-items:center;gap:8px;padding:11px 15px;font-size:13px;text-decoration:none;display:flex}.character-studio-composer{border-top:1px solid #ffffff12;margin-top:28px;padding-top:25px}.character-studio-composer .composer{width:100%}.character-studio-status{color:#afbea0;margin:16px 0;font-size:13px}.character-studio-history{color:#aab59a;margin:18px 0;font-size:13px}.character-studio-history summary{cursor:pointer;padding:10px 0}.character-studio-history .message-list{max-height:330px;overflow:auto}@media (width<=750px){.character-studio{grid-template-columns:1fr;gap:18px}.cs-portrait{max-width:100%}.cs-portrait .cs-image{aspect-ratio:4/3}.cs-portrait .cs-single>img{object-position:center 30%}.cs-stage{min-height:430px}.character-studio-page{margin-top:10px;padding:14px 18px}.character-studio-heading{margin-bottom:22px}.character-studio-actions{gap:8px}.cs-lightbox{padding:10px}.cs-lightbox section{padding:15px}.character-studio.compact .cs-stage{min-height:0}}.library-caption .character-delete{color:#98a28b;opacity:.65;background:0 0;border:0;align-self:center;margin-left:auto;padding:8px}.library-caption .character-delete:hover{opacity:1;color:#e8b8ab}.character-delete-dialog{color:#e3e9d9;background:#1b231d;border:1px solid #c2d1aa30;border-radius:20px;width:min(440px,100vw - 32px);padding:28px;box-shadow:0 25px 100px #0008}.character-delete-dialog h2{margin:0 0 18px;font-size:19px}.character-delete-dialog p{color:#aab59f;font-size:14px;line-height:1.7}.character-delete-dialog footer{justify-content:flex-end;gap:12px;margin-top:24px;display:flex}.character-delete-dialog button{color:#dbe5cb;cursor:pointer;background:0 0;border:1px solid #c0cd9d25;border-radius:9px;padding:10px 17px}.character-delete-dialog button:last-child{color:#26301d;background:#d2dfbb}.character-delete-dialog [role=alert]{color:#e1ad9b}.character-studio-pending{background:#17201688;border:1px solid #d3e4b518;border-radius:22px;place-items:center;min-height:420px;padding:30px;display:grid}.character-studio-pending .generation-canvas{width:100%;max-height:480px}.character-studio-heading .name-trigger{font-size:28px;font-weight:600}.character-studio-heading .name-trigger>span:last-child{font-size:11px}.cs-single{width:100%;height:100%}.cs-tabs button{align-items:center;gap:8px;display:inline-flex}.cs-part-status{background:#65705d;border-radius:50%;width:5px;height:5px}.cs-part-status[data-state=ready]{background:#c9dba8}.cs-part-status[data-state=generating],.cs-part-status[data-state=saving]{background:#c9dba8;animation:1.8s ease-in-out infinite cs-breathe}.cs-part-status[data-state=failed]{background:#ceaa84}.cs-placeholder{color:#8c9b7d;background:radial-gradient(at 50% 42%,#34412c66,#19211b 70%);flex-direction:column;justify-content:center;align-items:center;gap:25px;display:flex;position:absolute;inset:0;overflow:hidden}.cs-placeholder-symbol{background:#bacb9a05;border:1px solid #c5d5ad20;border-radius:50%;place-items:center;width:106px;height:106px;display:grid}.cs-placeholder.busy .cs-placeholder-symbol{animation:2.6s ease-in-out infinite cs-breathe}.cs-placeholder>span{letter-spacing:1px;align-items:center;gap:8px;font-size:12px;display:flex}.cs-spinner{animation:1.4s linear infinite cs-spin}.cs-stage .cs-empty{aspect-ratio:1;cursor:default}.cs-stage .body .cs-empty,.cs-stage .main .cs-empty,.cs-portrait .cs-pending-view{aspect-ratio:3/4}.cs-empty{cursor:default}.cs-orbit-pending{opacity:.45}.cs-stage{min-height:540px}.compact .cs-stage{min-height:0}.compact .cs-stage .cs-empty{width:190px}.compact .cs-stage .body .cs-empty{width:150px}@keyframes cs-spin{to{transform:rotate(360deg)}}@keyframes cs-breathe{50%{opacity:.45}}@media (prefers-reduced-motion:reduce){.cs-spinner,.cs-placeholder.busy .cs-placeholder-symbol,.cs-part-status{animation:none}}
