@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap";:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#f5f2f8;font-synthesis:none;--bg:#09090c;--panel:#0e0e13;--panel-2:#15141b;--line:#282631;--muted:#898494;--purple:#a766ff;--purple-2:#7427ec;--pink:#ec0ec5;background:#09090c;font-family:Inter,Noto Sans SC,system-ui,sans-serif}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible{outline-offset:2px;outline:2px solid #aa6cff}.app-shell{background:radial-gradient(circle at 18% -10%,#7732b21f,#0000 28%),#09090c;min-height:100vh}.topbar{z-index:20;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#09090ce6;border-bottom:1px solid #1d1c23;justify-content:space-between;align-items:center;height:66px;padding:0 34px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:11px;min-width:250px;display:flex}.brand-mark{background:linear-gradient(135deg,#873cff,#e80ac2);border-radius:10px;place-items:center;width:34px;height:34px;display:grid;box-shadow:0 0 26px #a937ff40}.brand>div:last-child{flex-direction:column;display:flex}.brand strong{letter-spacing:.18em;font-size:14px}.brand span{letter-spacing:.17em;color:#807b8a;margin-top:2px;font-size:9px}.topbar-center{color:#a7a2af;align-items:center;gap:8px;font-size:12px;display:flex}.online-dot{background:#40d982;border-radius:50%;width:7px;height:7px;box-shadow:0 0 8px #40d982}.api-button{cursor:pointer;color:#d8d2df;background:#17151d;border:1px solid #37313f;border-radius:10px;align-items:center;gap:8px;padding:9px 12px;display:flex}.api-button:hover{background:#1d1924;border-color:#754ca0}.workspace{grid-template-columns:520px 1fr;min-height:calc(100vh - 66px);display:grid}.creator-panel{background:#0b0b0fb8;border-right:1px solid #1d1c23;padding:28px 30px 28px 36px;overflow-y:auto}.mode-tabs{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:26px;display:grid}.mode-tabs button{color:#918b9d;cursor:pointer;background:#111116;border:1px solid #282630;border-radius:11px;height:44px;font-weight:600}.mode-tabs button.active{color:#fff;background:#47444d;border-color:#595561;box-shadow:inset 0 1px #ffffff14}.section-label{justify-content:space-between;align-items:center;min-height:24px;margin-bottom:8px;font-size:13px;font-weight:600;display:flex}.section-label button{color:#716c7c;cursor:pointer;background:0 0;border:0;font-size:11px}.section-label .hint{color:#716c7c;font-size:11px;font-weight:400}.prompt-box{background:#101015;border:1px solid #7746a8;border-radius:14px;position:relative;box-shadow:inset 0 0 0 1px #a35ce814}.prompt-box:focus-within{border-color:#aa65ef;box-shadow:0 0 0 3px #9450d21a}.rich-prompt-editor{resize:vertical;color:#f0edf3;white-space:pre-wrap;word-break:break-word;background:0 0;border:0;outline:0;width:100%;height:132px;min-height:105px;max-height:260px;padding:15px 18px 5px;font-size:13px;line-height:2.35;overflow:auto}.rich-prompt-editor:empty:before{content:attr(data-placeholder);color:#625d6c;pointer-events:none}.inline-reference{vertical-align:middle;color:#45e2aa;background:#0d2c23;border:1px solid #22805e;border-radius:8px;align-items:center;gap:5px;max-width:150px;height:31px;margin:0 3px;padding:2px 4px 2px 2px;line-height:1;display:inline-flex;box-shadow:inset 0 0 0 1px #49d29f0d}.inline-reference.video{color:#aaa9ff;background:#19182c;border-color:#55559a}.inline-reference.audio{color:#d19dea;background:#24172b;border-color:#78538e}.inline-reference-preview{color:currentColor;background:#00000047;border-radius:6px;flex:0 0 25px;place-items:center;width:25px;height:25px;font-size:11px;display:grid;overflow:hidden}.inline-reference-preview img{object-fit:cover;width:100%;height:100%}.inline-reference strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:11px;overflow:hidden}.inline-reference>button{color:currentColor;opacity:.65;cursor:pointer;background:0 0;border:0;border-radius:5px;flex:0 0 18px;place-items:center;width:18px;height:18px;padding:0;font-size:15px;line-height:1;display:grid}.inline-reference>button:hover{opacity:1;background:#ffffff1a}.prompt-footer{color:#686372;justify-content:space-between;align-items:center;height:36px;padding:0 13px;font-size:10px;display:flex}.prompt-footer>div{align-items:center;gap:5px;display:flex}.prompt-footer button{color:#8c78a2;cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;font-size:11px;display:flex}.prompt-footer button.mention-trigger{color:#aa78d1;border-left:1px solid #322a39;padding-left:10px}.prompt-footer button.mention-trigger>span{color:#cb89ff;background:#2a1837;border-radius:5px;place-items:center;width:16px;height:16px;font-weight:700;display:grid}.mention-menu{z-index:35;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#1d1b22fa;border:1px solid #493955;border-radius:12px;max-height:286px;padding:7px;position:absolute;top:calc(100% - 28px);left:12px;right:12px;overflow-y:auto;box-shadow:0 18px 50px #00000085}.mention-menu-title{color:#b9b1c1;align-items:center;gap:7px;height:32px;padding:0 7px;font-size:10px;display:flex}.mention-menu-title span{font-weight:600}.mention-menu-title kbd{color:#696270;margin-left:auto;font:8px inherit}.mention-menu>button{color:#ddd7e2;cursor:pointer;text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;align-items:center;gap:9px;width:100%;min-height:47px;padding:5px 8px;display:flex}.mention-menu>button:hover,.mention-menu>button.active{background:#49434e;border-color:#8253a3}.mention-preview{color:#b36de8;background:#241b2b;border-radius:7px;flex:0 0 34px;place-items:center;width:34px;height:34px;display:grid;overflow:hidden}.mention-preview img{object-fit:cover;width:100%;height:100%}.mention-copy{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.mention-copy strong{font-size:11px}.mention-copy small{color:#8a8390;white-space:nowrap;text-overflow:ellipsis;font-size:8px;overflow:hidden}.mention-tag{color:#a585bb;background:#2c2132;border-radius:5px;padding:3px 6px;font-size:8px}.mention-empty{color:#766d7e;flex-direction:column;justify-content:center;align-items:center;gap:5px;height:66px;font-size:9px;display:flex}.frame-grid{grid-template-columns:1fr 1fr;gap:10px;margin:16px 0;display:grid}.upload-section.compact{min-width:0}.upload-section.compact .asset-row{grid-template-columns:1fr;display:grid}.upload-section.compact .asset-add{flex-direction:row;width:100%;height:72px;font-size:12px}.upload-section.compact .asset-thumb{width:calc(50% - 27px);height:72px;margin-left:0;position:absolute}.upload-section.compact:has(.asset-thumb) .asset-add{opacity:0}.reference-box{margin:16px 0;padding-top:2px}.upload-section{margin-bottom:12px}.upload-heading{color:#918b9b;justify-content:space-between;margin-bottom:7px;font-size:11px;display:flex}.asset-row{flex-wrap:wrap;gap:8px;min-height:64px;display:flex;position:relative}.asset-add{color:#9e8cae;cursor:pointer;background:#141219;border:1px dashed #5b4b6b;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:68px;height:64px;display:flex}.asset-add:hover{background:#19141f;border-color:#a661e9}.asset-add:disabled{opacity:.35;cursor:default}.asset-thumb{background:#17151c;border:1px solid #3a3442;border-radius:9px;width:68px;height:64px;position:relative;overflow:hidden}.asset-thumb img{object-fit:cover;width:100%;height:100%}.asset-file{color:#a56ce2;flex-direction:column;justify-content:center;align-items:center;gap:4px;height:100%;display:flex}.asset-file span{white-space:nowrap;text-overflow:ellipsis;color:#8d8794;text-align:center;width:58px;font-size:8px;overflow:hidden}.asset-index{color:#fff;background:#ff9f0a;border-radius:50%;place-items:center;width:18px;height:18px;font-size:10px;display:grid;position:absolute;top:4px;left:4px}.asset-mention{color:#d49cff;cursor:pointer;background:#1f1128e6;border:1px solid #cf92ff73;border-radius:6px;width:20px;height:20px;padding:0;font-size:11px;font-weight:700;position:absolute;bottom:4px;left:4px}.asset-mention:hover{color:#fff;background:#6b3690}.asset-remove{cursor:pointer;background:#0a0a0cc7;border:0;border-radius:50%;place-items:center;width:18px;height:18px;padding:0;display:grid;position:absolute;top:3px;right:3px}.settings-row{margin-top:14px}.settings-row.split{grid-template-columns:.8fr 1.2fr;gap:10px;display:grid}.control-block{background:#121117;border:1px solid #292731;border-radius:12px;align-items:center;gap:10px;min-height:58px;padding:7px 9px;display:flex}.control-block>span,.duration-title>span{color:#8b8593;white-space:nowrap;font-size:11px}.segmented{background:#0d0d11;border-radius:9px;flex:1;gap:3px;padding:3px;display:flex}.segmented button{color:#8c8597;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:7px;flex:1;min-height:31px;font-size:11px}.segmented button.active{color:#fff;background:linear-gradient(#654087,#4c2e68);font-weight:600;box-shadow:inset 0 0 0 1px #8957b3}.segmented button:disabled{cursor:default;opacity:.25}.segmented button.active:disabled{opacity:1}.duration{padding:10px 12px 7px;display:block}.duration-title{justify-content:space-between;align-items:center;display:flex}.duration-title strong{color:#c48bff;font-size:11px}.duration input[type=range]{appearance:none;background:linear-gradient(90deg, #a75bff var(--range), #514c59 var(--range));border-radius:3px;width:100%;height:4px;margin:11px 0 0}.duration input::-webkit-slider-thumb{appearance:none;cursor:pointer;background:#b36cff;border:3px solid #27172f;border-radius:50%;width:16px;height:16px;box-shadow:0 0 0 1px #b36cff}.range-labels{color:#5e5967;justify-content:space-between;margin-top:2px;font-size:9px;display:flex}.ratio-block{margin-top:9px;padding-left:12px}.select-button{cursor:pointer;color:#d2cddb;background:#121117;border:1px solid #2b2932;border-radius:12px;align-items:center;gap:8px;width:100%;height:47px;margin-top:9px;padding:0 14px;font-size:12px;display:flex}.select-button span{text-align:left;flex:1}.quantity{background:#15141a;border:1px solid #2b2932;border-radius:12px;grid-template-columns:repeat(3,1fr);gap:4px;height:47px;margin-top:9px;padding:4px;display:grid}.quantity button{color:#a29baa;cursor:pointer;background:0 0;border:0;border-radius:8px;font-size:12px;font-weight:600}.quantity button.active{color:#fff;background:#5b3978;box-shadow:inset 0 0 0 1px #8b5bac}.create-button{color:#fff;cursor:pointer;background:linear-gradient(100deg,#7f1cff,#e508ca);border:0;border-radius:12px;justify-content:center;align-items:center;gap:9px;width:100%;height:50px;margin-top:10px;font-weight:700;display:flex;box-shadow:0 8px 26px #a811d433}.create-button:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}.create-button:disabled{color:#8c8792;cursor:not-allowed;box-shadow:none;background:#413e47}.creator-note{color:#625e69;justify-content:center;align-items:center;gap:4px;margin:10px 0 0;font-size:9px;display:flex}.gallery-panel{background:radial-gradient(circle at 55% 30%,#3f205814,#0000 35%);min-width:0}.gallery-toolbar{border-bottom:1px solid #1d1c23;justify-content:space-between;align-items:center;height:82px;padding:0 32px;display:flex}.gallery-title{align-items:baseline;gap:10px;display:flex}.gallery-title h1{margin:0;font-size:17px}.gallery-title span{color:#696471;font-size:10px}.toolbar-actions{gap:7px;display:flex}.toolbar-actions button{color:#9c96a5;cursor:pointer;background:#121117;border:1px solid #2c2934;border-radius:9px;align-items:center;gap:6px;height:36px;padding:0 11px;font-size:11px;display:flex}.toolbar-actions button.active{color:#ddc6ef;background:#23172c;border-color:#704495}.gallery-content{min-height:calc(100vh - 148px);padding:28px 32px}.task-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));align-items:start;gap:18px;display:grid}.task-card{background:#111116;border:1px solid #282630;border-radius:14px;transition:all .2s;overflow:hidden}.task-card:hover{border-color:#45364f;transform:translateY(-2px);box-shadow:0 16px 38px #00000040}.task-preview{aspect-ratio:16/10;background:#0b0b0e;position:relative;overflow:hidden}.task-preview img,.task-preview video{width:100%;height:100%;display:block}.task-preview img{object-fit:cover}.task-preview video{object-fit:contain}.task-placeholder{color:#4a3b56;background:radial-gradient(circle,#1a1420,#0b0b0e 70%);flex-direction:column;justify-content:center;align-items:center;gap:10px;width:100%;height:100%;display:flex}.task-placeholder span{color:#5d5662;font-size:10px}.status-pill{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0d0c10d1;border:1px solid #ffffff1a;border-radius:99px;align-items:center;gap:6px;height:25px;padding:0 9px;font-size:9px;display:flex;position:absolute;top:10px;left:10px}.status-dot{background:#817c89;border-radius:50%;width:6px;height:6px}.status-dot.running{background:#b066ff;box-shadow:0 0 7px #b066ff}.status-dot.success{background:#43db86;box-shadow:0 0 7px #43db86}.status-dot.failed{background:#ff5f6e}.progress-sheen{background:linear-gradient(90deg,#0000,#a946ff,#ff15d4,#0000);height:2px;animation:1.8s linear infinite sheen;position:absolute;inset:auto 0 0}.download-button{color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0c0b0fbf;border:1px solid #ffffff29;border-radius:8px;place-items:center;width:31px;height:31px;display:grid;position:absolute;top:10px;right:10px}.task-body{padding:12px}.task-body>p{color:#d3ced8;-webkit-line-clamp:2;-webkit-box-orient:vertical;height:34px;margin:0;font-size:11px;line-height:1.55;display:-webkit-box;overflow:hidden}.task-meta{gap:5px;margin-top:9px;display:flex}.task-meta span{color:#7e7785;background:#1c1920;border-radius:5px;padding:3px 5px;font-size:8px}.task-error{color:#ff7783;background:#81222e24;border-radius:6px;margin-top:8px;padding:6px 7px;font-size:9px;line-height:1.4}.task-body footer{border-top:1px solid #242129;justify-content:space-between;align-items:center;margin-top:11px;padding-top:9px;display:flex}.task-body footer>span{color:#5f5965;text-overflow:ellipsis;white-space:nowrap;max-width:150px;font-size:8px;overflow:hidden}.task-body footer>div{gap:2px;display:flex}.icon-button{color:#827b89;cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;width:32px;height:32px;padding:0;display:grid}.icon-button:hover{color:#d8cfdf;background:#24202a}.empty-state{color:#b5afbe;text-align:center;flex-direction:column;justify-content:center;align-items:center;height:calc(100vh - 205px);min-height:390px;display:flex}.empty-orbit{color:#8f8499;background:radial-gradient(circle,#8c4bb61f,#0000);border:1px solid #302937;border-radius:50%;place-items:center;width:74px;height:74px;margin-bottom:19px;display:grid;position:relative}.empty-orbit:before{content:"";border:1px dashed #3a2d44;border-radius:50%;animation:10s linear infinite spin;position:absolute;inset:7px}.empty-orbit span{background:#a064c3;border-radius:50%;width:5px;height:5px;position:absolute;top:7px}.empty-orbit span:last-child{background:#60406e;top:auto;bottom:11px;right:11px}.empty-state h3{margin:0 0 7px;font-size:14px}.empty-state p{color:#625c69;margin:0;font-size:10px}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#000000ad;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#121117;border:1px solid #36313e;border-radius:18px;width:min(520px,100%);max-height:calc(100vh - 40px);padding:22px;overflow-y:auto;box-shadow:0 30px 80px #0000008c}.modal-title{align-items:center;gap:12px;margin-bottom:22px;display:flex}.modal-mark{color:#c98fff;background:#281837;border-radius:12px;place-items:center;width:42px;height:42px;display:grid}.modal-title>div:nth-child(2){flex:1}.modal-title h2{margin:0;font-size:16px}.modal-title p{color:#736d7a;margin:4px 0 0;font-size:10px}.api-preset{background:#18121d;border:1px solid #3b2c47;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:11px 12px;display:flex}.api-preset>div{flex-direction:column;gap:3px;display:flex}.api-preset strong{color:#d3a3f5;font-size:11px}.api-preset span{color:#746d7b;font-size:9px}.api-preset button{color:#c994ee;cursor:pointer;background:#2a1a35;border:1px solid #55386c;border-radius:8px;padding:7px 10px;font-size:10px}.api-preset button:hover{color:#e6c3ff;border-color:#8d58af}.field{margin-top:15px;display:block}.field>span{color:#c9c3cf;margin-bottom:7px;font-size:11px;display:block}.field input{color:#fff;background:#0c0c10;border:1px solid #302d37;border-radius:9px;width:100%;height:43px;padding:0 12px;font-size:11px}.field input:focus{border-color:#8652ac;outline:none}.field small{color:#5d5764;margin-top:6px;font-size:9px;display:block}.field code{color:#a978ce}.model-box{background:#18131d;border:1px solid #302a37;border-radius:10px;justify-content:space-between;align-items:center;margin-top:16px;padding:12px;font-size:11px;display:flex}.model-box div{color:#948c9c;align-items:center;gap:7px;display:flex}.model-box strong{color:#cb94f2}.modal-actions{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.ghost-button,.primary-button{cursor:pointer;background:#19171d;border:1px solid #322e38;border-radius:9px;height:39px;padding:0 18px;font-size:11px}.primary-button{background:linear-gradient(100deg,#7928dd,#cf16ba);border:0;font-weight:600}.toast{z-index:60;color:#e5dce9;cursor:pointer;background:#1c1720f0;border:1px solid #493a54;border-radius:10px;align-items:center;gap:10px;padding:10px 13px;font-size:11px;display:flex;position:fixed;bottom:26px;left:50%;transform:translate(-50%);box-shadow:0 12px 35px #00000073}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@keyframes sheen{0%{transform:translate(-100%)}to{transform:translate(100%)}}@media (width<=1050px){.workspace{grid-template-columns:460px 1fr}.creator-panel{padding-left:24px;padding-right:24px}.toolbar-actions button span{display:none}}@media (width<=780px){.topbar{padding:0 16px}.brand{min-width:0}.topbar-center{display:none}.workspace{display:block}.creator-panel{border-bottom:1px solid #1d1c23;border-right:0}.gallery-toolbar{padding:0 18px}.gallery-content{padding:20px 18px}}@media (width<=480px){.brand span,.api-button span{display:none}.creator-panel{padding:20px 14px}.settings-row.split{grid-template-columns:1fr}.ratio-block{padding:10px;display:block}.ratio-block>span{margin:0 0 7px 3px;display:block}.segmented button{font-size:9px}.toolbar-actions button{padding:0 8px}}
