@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url("./media/inter-cyrillic-ext-wght-normal-IYF56FF6.woff2") format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url("./media/inter-cyrillic-wght-normal-JEOLYBOO.woff2") format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url("./media/inter-greek-ext-wght-normal-EOVOK2B5.woff2") format("woff2-variations");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url("./media/inter-greek-wght-normal-IRE366VL.woff2") format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url("./media/inter-vietnamese-wght-normal-CE5GGD3W.woff2") format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url("./media/inter-latin-ext-wght-normal-HA22NDSG.woff2") format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url("./media/inter-latin-wght-normal-NRMW37G5.woff2") format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*{scrollbar-width:thin;scrollbar-color:#d1d5db transparent}*::-webkit-scrollbar{width:4px;height:4px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:99px}*::-webkit-scrollbar-thumb:hover{background:#b0b7c3}*::-webkit-scrollbar-corner{background:transparent}html.dark *{scrollbar-color:#3f3f55 transparent}html.dark *::-webkit-scrollbar-thumb{background:#3f3f55}html.dark *::-webkit-scrollbar-thumb:hover{background:#5a5a7a}.material-symbols-rounded{font-family:Material Symbols Rounded;font-weight:400;font-style:normal;font-size:20px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;-webkit-font-feature-settings:"liga";font-feature-settings:"liga";-webkit-font-smoothing:antialiased;font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24;-webkit-user-select:none;user-select:none}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;overflow:hidden;overscroll-behavior:none;font-size:17px;font-family:Inter Variable,Segoe UI,Arial,sans-serif;-webkit-font-smoothing:antialiased}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeUp{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeDown{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.03)}to{transform:scale(1)}}.panel-left{width:500px;min-width:380px;background:#fff;border-right:1px solid #e8eaf0;display:flex;flex-direction:column;overflow-y:auto;min-height:0}.panel-right{flex:1;display:flex;flex-direction:column;padding:20px 24px;gap:16px;background:#f4f6fb;overflow-y:auto;overflow-x:hidden;min-height:0}.chev{width:14px;height:14px;flex-shrink:0;transition:transform .2s;margin-left:auto}.chev.up{transform:rotate(180deg)}.selector-btn{display:flex;align-items:center;gap:6px;width:100%;padding:8px 10px;background:#f4f6fb;border:1.5px solid #e8eaf0;border-radius:9px;font-size:.75rem;font-weight:500;color:#374151;cursor:pointer;font-family:inherit;transition:border-color .2s,background .2s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selector-btn:hover,.selector-btn.open{border-color:#7c3aed;background:#f5f0ff;color:#7c3aed}.toggle-btn{flex:1;padding:8px;background:#f4f6fb;border:1.5px solid transparent;border-radius:8px;font-size:.78rem;font-weight:500;color:#374151;cursor:pointer;font-family:inherit;transition:all .15s;text-align:center}.toggle-btn:hover{background:#f0ebff;border-color:#c4b5fd;color:#7c3aed}.toggle-btn.active{background:#7c3aed;border-color:#7c3aed;color:#fff;font-weight:600}.toggle-row{display:flex;gap:6px}.dropdown{position:absolute;bottom:calc(100% + 6px);left:0;background:#fff;border:1px solid #e8eaf0;border-radius:14px;box-shadow:0 8px 32px #0000001f;z-index:100;min-width:140px;max-height:250px;overflow-y:auto;animation:fadeUp .15s ease}.dropdown.wide{min-width:220px;max-height:none;padding:14px;display:flex;flex-direction:column;gap:16px;right:0;left:auto;overflow:visible}.sel-option{display:block;width:100%;padding:10px 14px;background:none;border:none;text-align:left;font-size:.78rem;color:#374151;cursor:pointer;font-family:inherit;transition:background .15s}.sel-option:hover{background:#f4f6fb;color:#7c3aed}.sel-option.active{background:#f0ebff;color:#7c3aed;font-weight:600}.param-group{display:flex;flex-direction:column;gap:8px}.param-label{font-size:.72rem;font-weight:600;color:#6b7280}.ratio-grid{display:flex;gap:4px;flex-wrap:wrap}.ratio-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:7px 6px;background:#f4f6fb;border:1.5px solid transparent;border-radius:8px;cursor:pointer;transition:all .15s;min-width:44px;font-family:inherit}.ratio-btn:hover{background:#f0ebff;border-color:#c4b5fd}.ratio-btn.active{background:#7c3aed;border-color:#7c3aed}.ratio-btn.active .ratio-text{color:#fff}.ratio-text{font-size:.62rem;font-weight:500;color:#374151;white-space:nowrap}.ratio-icon{display:block;border:1.5px solid currentColor;border-radius:2px;color:#6b7280}.ratio-btn.active .ratio-icon{color:#fff}.ratio-auto{width:14px;height:14px;border-radius:3px}.ratio-wide{width:18px;height:11px}.ratio-tall{width:11px;height:18px}.ratio-square{width:14px;height:14px}.ratio-portrait{width:12px;height:16px}.ratio-landscape{width:16px;height:12px}.ratio-wide2{width:17px;height:12px}.ratio-tall2{width:12px;height:17px}.spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}.spinner-ring{width:44px;height:44px;border:3px solid #e8eaf0;border-top-color:#7c3aed;border-radius:50%;animation:spin .9s linear infinite}.spinner-ring.small{width:18px;height:18px;border-width:2px}.gen-loading{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#6b7280;font-size:.88rem}.history-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.history-label{font-size:.78rem;font-weight:600;color:#9ca3af;letter-spacing:.04em;text-transform:uppercase}.btn-refresh{background:none;border:none;cursor:pointer;color:#9ca3af;display:flex;align-items:center;padding:4px;border-radius:6px;transition:color .18s,background .18s}.btn-refresh:hover{color:#7c3aed;background:#f0ebff}.btn-refresh .material-symbols-rounded{font-size:1.1rem}.history-grid{display:flex;flex-direction:column;gap:20px}.history-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px #00000014;transition:box-shadow .18s;flex-shrink:0}.history-card:hover{box-shadow:0 6px 24px #7c3aed24}.history-card-meta{padding:14px 16px 16px;display:flex;flex-direction:column;gap:8px;border-top:1px solid #f0f0f4}.history-card-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.history-subtype{font-size:.68rem;font-weight:700;background:#f0ebff;color:#7c3aed;padding:3px 10px;border-radius:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}.history-date{font-size:.7rem;color:#9ca3af;white-space:nowrap;flex-shrink:0}.card-expand-btn{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:7px;border:none;background:#00000073;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .18s,background .18s;z-index:5}.card-expand-btn .material-symbols-rounded{font-size:15px}.card-expand-btn:hover{background:#7c3aedd9}.history-card-video:hover .card-expand-btn,.history-card-img:hover .card-expand-btn{opacity:1}.btn-download{background:none;border:none;cursor:pointer;color:#9ca3af;display:flex;align-items:center;padding:2px;border-radius:6px;transition:color .18s,background .18s;flex-shrink:0;margin-left:auto}.btn-download:hover{color:#7c3aed;background:#f0ebff}.btn-download .material-symbols-rounded{font-size:1.1rem}.history-prompt{font-size:.88rem;color:#6b7280;line-height:1.55;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.history-prompt-row{display:flex;align-items:flex-start;gap:6px}.btn-copy-history{flex-shrink:0;width:26px;height:26px;border-radius:6px;border:none;background:#f0ebff;color:#7c3aed;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:background .15s}.btn-copy-history:hover{background:#e0d4ff}.btn-copy-history .material-symbols-rounded{font-size:15px}.history-meta-chips{display:flex;flex-wrap:wrap;gap:4px}.history-meta-chip{font-size:.65rem;font-weight:600;padding:2px 8px;border-radius:20px;background:#f0f0f4;color:#6b7280;white-space:nowrap}.history-actions{display:flex;flex-wrap:wrap;gap:5px}.btn-action{display:flex;align-items:center;gap:4px;padding:4px 9px;border-radius:6px;border:none;background:linear-gradient(135deg,#6110f1,#0691f1);color:#fff;cursor:pointer;font-size:.7rem;font-weight:600;font-family:inherit;transition:opacity .15s;white-space:nowrap;opacity:.55}.btn-action:hover{opacity:.9}.btn-action .material-symbols-rounded{font-size:13px}.history-menu-wrap{position:relative}.btn-more{display:flex;align-items:center;gap:4px;padding:4px 9px;border-radius:6px;border:none;background:linear-gradient(135deg,#6110f1,#0691f1);color:#fff;cursor:pointer;font-size:.7rem;font-weight:600;font-family:inherit;opacity:.55;transition:opacity .15s;white-space:nowrap}.btn-more:hover,.btn-more.active{opacity:.9}.btn-more .material-symbols-rounded{font-size:13px}.history-menu{position:absolute;bottom:calc(100% + 4px);right:0;background:#fff;border:1px solid #e8eaf0;border-radius:10px;box-shadow:0 8px 24px #0000001f;z-index:100;min-width:155px;overflow:hidden}.history-menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:9px 14px;background:none;border:none;font-size:.78rem;font-weight:500;color:#374151;cursor:pointer;font-family:inherit;text-align:left;transition:background .15s,color .15s;white-space:nowrap}.history-menu-item:hover{background:#f4f6fb;color:#7c3aed}.history-menu-item .material-symbols-rounded{font-size:15px}html.dark .history-menu{background:#1a1a2e;border-color:#252536;box-shadow:0 8px 24px #0006}html.dark .history-menu-item{color:#c4c4d4}html.dark .history-menu-item:hover{background:#202033;color:#a78bfa}.history-card-img-loading,.history-card-video-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:200px;background:#f4f1ff}.loading-label{font-size:.8rem;color:#7c3aed;font-weight:500}.skeleton-line{height:11px;border-radius:6px;background:linear-gradient(90deg,#ede9fe 25%,#f5f3ff,#ede9fe 75%);background-size:200% 100%;animation:shimmer 1.4s infinite}.history-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:32px}.history-empty-icon{font-size:2.5rem;color:#d1d5db}.history-empty p{font-size:.95rem;font-weight:600;color:#374151;margin:0}.history-empty-sub{font-size:.78rem;color:#9ca3af}.pagination{display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 0 4px;flex-shrink:0}.btn-page{width:32px;height:32px;border-radius:8px;border:1.5px solid #e8eaf0;background:#fff;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color .15s,color .15s,background .15s}.btn-page:hover:not(:disabled){border-color:#7c3aed;color:#7c3aed;background:#f5f0ff}.btn-page:disabled{opacity:.35;cursor:not-allowed}.btn-page .material-symbols-rounded{font-size:1.1rem}.page-info{font-size:.78rem;font-weight:600;color:#6b7280;min-width:52px;text-align:center}html.dark .btn-page{background:#1c1c2e;border-color:#2e2e4e;color:#9ca3af}html.dark .btn-page:hover:not(:disabled){border-color:#7c3aed;color:#a78bfa;background:#1a1035}html.dark .page-info{color:#9ca3af}.page-size-select{height:32px;padding:0 8px;border-radius:8px;border:1.5px solid #e8eaf0;background:#fff;color:#6b7280;font-size:.78rem;font-weight:600;cursor:pointer;outline:none;transition:border-color .15s,color .15s}.page-size-select:hover,.page-size-select:focus{border-color:#7c3aed;color:#7c3aed}html.dark .page-size-select{background:#1c1c2e;border-color:#2e2e4e;color:#9ca3af}html.dark .page-size-select:hover,html.dark .page-size-select:focus{border-color:#7c3aed;color:#a78bfa}@keyframes btn-create-flow{0%{background-position:0% 50%}20%{background-position:100% 0%}40%{background-position:15% 100%}60%{background-position:85% 0%}80%{background-position:25% 100%}to{background-position:0% 50%}}@keyframes btn-create-glow{0%{box-shadow:0 0 8px 1px #7c3aed80,0 2px 12px #7c3aed4d}50%{box-shadow:0 0 14px 3px #06b6d48c,0 2px 16px #06b6d459}to{box-shadow:0 0 8px 1px #7c3aed80,0 2px 12px #7c3aed4d}}@keyframes btn-create-music-glow{0%{box-shadow:0 0 8px 1px #ec489980,0 2px 12px #ec48994d}50%{box-shadow:0 0 14px 3px #8b5cf68c,0 2px 16px #8b5cf659}to{box-shadow:0 0 8px 1px #ec489980,0 2px 12px #ec48994d}}.btn-create{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:10px 48px;background:linear-gradient(135deg,#7c3aed,#06b6d4,#a855f7,#0ea5e9,#7c3aed);background-size:300% 300%;border:none;border-radius:9px;font-size:.95rem;font-weight:700;color:#fff;cursor:pointer;font-family:inherit;transition:opacity .2s,transform .15s;animation:btn-create-flow 30s ease infinite,btn-create-glow 30s ease-in-out infinite}.btn-create:hover{opacity:.88;transform:translateY(-1px)}.btn-create:disabled{opacity:.45;cursor:not-allowed;transform:none}.btn-create-music{background:linear-gradient(135deg,#ec4899,#8b5cf6,#f472b6,#a78bfa,#ec4899);background-size:300% 300%;animation:btn-create-flow 30s ease infinite,btn-create-music-glow 30s ease-in-out infinite}.overlay{position:fixed;inset:0;background:#00000073;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .18s ease}html.dark .overlay{background:#000000a6}.close-btn{width:28px;height:28px;border:none;background:#f4f6fb;border-radius:8px;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;color:#6b7280;transition:background .15s,color .15s}.close-btn:hover{background:#e8eaf0;color:#1a1a2e}html.dark .close-btn{background:#1c1c2e;color:#9ca3af}html.dark .close-btn:hover{background:#1a1035;color:#c4b5fd}.prompt-input,.desc-input{width:100%;border:1.5px solid #e8eaf0;border-radius:10px;padding:10px 12px;font-size:.78rem;color:#374151;background:#fafafa;resize:none;font-family:inherit;box-sizing:border-box;transition:border-color .2s;outline:none}.prompt-input::placeholder,.desc-input::placeholder{color:#c0c5d0}.prompt-input:focus,.desc-input:focus{border-color:#7c3aed;background:#fff}.dropdown.model-dropdown{min-width:320px}.dropdown-title{font-size:.7rem;font-weight:700;color:#9ca3af;letter-spacing:.06em;text-transform:uppercase;padding:4px 14px 8px}.model-item{padding:10px 14px;cursor:pointer;transition:background .15s;border-left:3px solid transparent}.model-item:hover{background:#f9fafb}.model-item.selected{background:#f5f0ff;border-left-color:#7c3aed}.model-item-top{display:flex;align-items:center;gap:6px}.model-logo{width:18px;height:18px;flex-shrink:0;border-radius:4px}.model-name{font-size:.82rem;color:#1a1a2e;flex:1}.model-desc{font-size:.72rem;color:#6b7280;margin-top:2px}.model-credits{display:flex;align-items:center;gap:2px;font-size:.75rem;font-weight:600;color:#7c3aed}.bolt-icon{font-size:14px}.panel-footer{display:flex;align-items:center;justify-content:center;padding-top:6px;border-top:1px solid #e8eaf0;flex-shrink:0}.credits-tag{display:flex;align-items:center;gap:3px;font-size:.75rem;font-weight:700;opacity:.9}.credits-tag .material-symbols-rounded{font-size:14px}.credits-tag svg{width:11px;height:11px;stroke:#fff;fill:#fff}.credits-actual{font-size:.95rem}.credits-before-discount{text-decoration:line-through;opacity:.6;margin-left:2px;font-size:.75rem}.upload-thumbs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.upload-thumb{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#f4f6fb;cursor:pointer}.upload-thumb img{width:100%;height:100%;object-fit:contain;display:block}.thumb-img-loading{position:absolute;inset:0;z-index:1;background:#f0eefe;display:flex;align-items:center;justify-content:center;transition:opacity .15s}.thumb-img-loaded .thumb-img-loading{opacity:0;pointer-events:none}.thumb-uploading{position:absolute;inset:0;background:#0000008c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#fff;font-size:.72rem;font-weight:500;z-index:2}.thumb-uploading .spinner-ring{border-color:#ffffff4d;border-top-color:#fff}.thumb-remove{position:absolute;top:5px;right:5px;width:22px;height:22px;border-radius:50%;background:#000000a6;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;opacity:1}.thumb-remove .material-symbols-rounded{font-size:15px}.thumb-replace{position:absolute;top:5px;left:5px;width:22px;height:22px;border-radius:50%;background:#000000a6;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;opacity:1}.thumb-replace .material-symbols-rounded{font-size:15px}.upload-thumb-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#fafafa;border:1.5px dashed #d1d5db;border-radius:10px;cursor:pointer;transition:border-color .15s,background .15s}.upload-thumb-add:hover,.upload-thumb-add.dragging{border-color:#7c3aed;background:#f5f3ff}.add-icon{font-size:32px;font-weight:300;line-height:1;color:#9ca3af}.add-label{font-size:11px;color:#9ca3af;text-align:center}.add-folder{font-size:18px;color:#d1d5db;margin-top:2px}.upload-thumb-add:hover .add-icon,.upload-thumb-add:hover .add-label,.upload-thumb-add:hover .add-folder,.upload-thumb-add.dragging .add-icon,.upload-thumb-add.dragging .add-label,.upload-thumb-add.dragging .add-folder{color:#7c3aed}.sign-in-link{background:none;border:none;padding:0;margin:0;font:inherit;font-size:.95rem;font-weight:600;color:#7c3aed;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.sign-in-link:hover{color:#5b21b6}.empty-state .sign-in-link{font-size:.88rem}html.dark .sign-in-link{color:#a78bfa}html.dark .sign-in-link:hover{color:#c4b5fd}html.dark .panel-left{background:#13131f;border-right-color:#252536}html.dark .panel-right{background:#0f0f1b}html.dark .panel-title,html.dark .field-label,html.dark .between-label,html.dark .ai-prompt-label{color:#e2e2f0}html.dark .param-label,html.dark .history-label,html.dark .sample-label{color:#4b5563}html.dark .tabs{background:#1a1a2e}html.dark .tab{color:#9ca3af}html.dark .tab:hover{color:#e2e2f0}html.dark .tab-active,html.dark .tab.active{background:#252536;color:#a78bfa;box-shadow:0 1px 4px #0000004d}html.dark .upload-zone,html.dark .between-zone{border-color:#2a2a3e;background:#161626}html.dark .upload-zone:hover,html.dark .upload-zone.dragging,html.dark .between-zone:hover{border-color:#a78bfa;background:#1e1535}html.dark .upload-icon{color:#4b5563}html.dark .upload-text,html.dark .upload-main{color:#6b7280}html.dark .upload-thumb-add{background:#161626;border-color:#2a2a3e}html.dark .upload-thumb-add:hover,html.dark .upload-thumb-add.dragging{border-color:#a78bfa;background:#1e1535}html.dark .upload-thumb{background:#1a1a2e}html.dark .prompt-input,html.dark .desc-input{border-color:#252536;background:#161626;color:#c4c4d4}html.dark .prompt-input:focus,html.dark .desc-input:focus{border-color:#a78bfa;background:#1a1a2e}html.dark .prompt-input::placeholder,html.dark .desc-input::placeholder{color:#3a3a55}html.dark .prompt-wrap{border-color:#252536;background:#161626}html.dark .prompt-wrap:focus-within{border-color:#a78bfa;background:#1a1a2e}html.dark .prompt-input{color:#c4c4d4}html.dark .selector-btn,html.dark .expand-btn,html.dark .ref-btn,html.dark .icon-btn{background:#1c1c2e;border-color:#2e2e4e;color:#c4c4d4}html.dark .selector-btn:hover,html.dark .selector-btn.open,html.dark .sel-btn:hover,html.dark .sel-btn.open,html.dark .expand-btn:hover,html.dark .ref-btn:hover,html.dark .icon-btn:hover{background:#1a1035;border-color:#a78bfa;color:#a78bfa}html.dark .sel-btn{background:#1c1c2e;border-color:#2e2e4e;color:#c4c4d4}html.dark .sel-btn-move{background:#7c3aed1f;border-color:#5b3fa6;color:#c4b5fd}html.dark .sel-btn-download{background:#1d4ed81f;border-color:#1e3a8a;color:#93c5fd}html.dark .sel-btn-delete{background:#dc26261f;border-color:#7f1d1d;color:#f87171}html.dark .sel-btn-move:hover:not(:disabled){background:#7c3aed38}html.dark .sel-btn-download:hover:not(:disabled){background:#1d4ed838}html.dark .sel-btn-delete:hover:not(:disabled){background:#dc262638}html.dark .ratio-btn,html.dark .toggle-btn{background:#1c1c2e;color:#c4c4d4}html.dark .ratio-btn:hover,html.dark .toggle-btn:hover{background:#1a1035;border-color:#a78bfa;color:#a78bfa}html.dark .dropdown{background:#1a1a2e;border-color:#252536;box-shadow:0 8px 32px #0006}html.dark .dropdown-title{color:#4b5563}html.dark .model-name{color:#e2e2f0}html.dark .model-desc{color:#9ca3af}html.dark .model-item:hover{background:#202033}html.dark .model-item.selected{background:#1e1535;border-left-color:#a78bfa}html.dark .sel-option{color:#c4c4d4}html.dark .sel-option:hover{background:#202033;color:#a78bfa}html.dark .sel-option.active{background:#1e1535;color:#a78bfa}html.dark .genre-chip{background:#1e1b2e;border-color:#2d2a40;color:#9ca3af}html.dark .genre-chip:hover,html.dark .genre-chip.active{border-color:#ec4899;color:#ec4899;background:#2d1a2e}html.dark .panel-footer,html.dark .bottom-bar{border-top-color:#252536;background:#13131f}html.dark .car-arrow{background:#1a1a2e;border-color:#252536;color:#c4c4d4}html.dark .car-arrow:hover{border-color:#a78bfa;color:#a78bfa}html.dark .btn-refresh{color:#4b5563}html.dark .btn-refresh:hover{color:#a78bfa;background:#1e1535}html.dark .btn-download{color:#4b5563}html.dark .btn-download:hover{color:#a78bfa;background:#1e1535}html.dark .history-card{background:#1a1a2e;box-shadow:0 2px 12px #0000004d}html.dark .history-card-meta{border-top-color:#252536}html.dark .history-card-img{background:#0d0d18}html.dark .history-card-img-loading,html.dark .history-card-video-loading{background:#1a1535}html.dark .history-prompt{color:#9ca3af}html.dark .history-meta-chip{background:#1e1e30;color:#9ca3af}html.dark .history-empty p{color:#c4c4d4}html.dark .skeleton-line{background:linear-gradient(90deg,#1e1535 25%,#252545,#1e1535 75%);background-size:200% 100%}html.dark .prompt-preview{background:#1a1a2e;border-color:#252536}html.dark .prompt-preview p{color:#9ca3af}html.dark .prompt-preview strong{color:#c4c4d4}html.dark .result-area,html.dark .gallery-main,html.dark .video-player,html.dark .thumb:not(.selected){background:#1a1a2e}html.dark .spinner-ring{border-color:#252536;border-top-color:#a78bfa}html.dark .text-hint{background:#161626;border-color:#252536;color:#9ca3af}html.dark .gen-error{background:#2a1515;border-color:#5b1c1c;color:#fca5a5}html.dark .model-confirm-modal{background:#1a1a2e;box-shadow:0 8px 32px #0006}html.dark .model-confirm-title{color:#e2e2f0}html.dark .model-confirm-body{color:#9ca3af}html.dark .btn-confirm-cancel{background:#1c1c2e;border-color:#2e2e4e;color:#9ca3af}html.dark .btn-confirm-cancel:hover{background:#1a1a2e}html.dark .user-name{color:#e2e2f0}html.dark .user-plan{color:#4b5563}html.dark .btn-copy-prompt,html.dark .btn-copy-history,html.dark .btn-history-prompt{background:#1e1535;color:#a78bfa}html.dark .btn-copy-prompt:hover,html.dark .btn-copy-history:hover,html.dark .btn-history-prompt:hover{background:#2a1d50}html.dark .prompt-history-dropdown{background:#13131f;border-color:#2e2e4e;box-shadow:0 8px 24px #0006;scrollbar-color:#2e2e4e transparent}html.dark .prompt-history-dropdown::-webkit-scrollbar-thumb{background:#2e2e4e}html.dark .prompt-history-item{color:#c4c4d4;border-bottom-color:#1c1c2e}html.dark .prompt-history-item:hover{background:#1a1035;color:#c4b5fd}html.dark .ref-hint{color:#a78bfa;background:#1e1535;border-color:#3b2070}html.dark .page{background:#0d0d1a}html.dark .tabs-bar{background:#13131f;border-bottom-color:#252536}html.dark .tab-btn{color:#9ca3af}html.dark .tab-btn:hover{color:#e2e2f0}html.dark .tab-btn.active{color:#a78bfa;border-bottom-color:#a78bfa}html.dark .section-label,html.dark .date-group-label{color:#4b5563}html.dark .add-folder{background:#1e1535;border-color:#3b2070}html.dark .add-folder:hover{background:#261a42;border-color:#a78bfa}html.dark .filter-pills{background:#13131f;border-color:#2e2e4e}html.dark .filter-pill{color:#9ca3af}html.dark .filter-pill:hover{color:#e2e2f0;background:#1c1c2e}html.dark .filter-pill.active{background:#1c1c2e;color:#e2e2f0;font-weight:600}html.dark .action-btn:not(.upload){background:#1c1c2e;border-color:#2e2e4e;color:#c4c4d4}html.dark .action-btn:not(.upload):hover{border-color:#a78bfa;color:#a78bfa}html.dark .asset-card{background:#13131f;border-color:#252536}html.dark .asset-card.clickable:hover{border-color:#5b3fa6;box-shadow:0 8px 28px #7c3aed2e}html.dark .asset-card.selected{border-color:#a78bfa;box-shadow:0 0 0 2px #a78bfa59}html.dark .asset-thumb,html.dark .thumb-load-overlay{background:#1a1a2e}html.dark .footer-label{color:#e2e2f0}html.dark .footer-date{color:#6b7280}html.dark .btn-delete-job{color:#4b5563}html.dark .btn-delete-job:hover{background:#2d0e0e;color:#f87171}html.dark .selection-bar{background:#1e1535;border-color:#5b3fa6}html.dark .thumb-placeholder.error{background:#1f0808}html.dark .thumb-placeholder.canceled{background:#1a1a2e;color:#6b7280}html.dark app-job-progress{background:#1a1130;--track: #2d1b69;--fill: #a78bfa;--pct: #c4b5fd;--label: #a78bfa;--cancel-bg: rgba(26, 26, 46, .9);--cancel-border: #252536;--cancel-color: #9ca3af;--cancel-hover-bg: #252536}html.dark .btn-regenerate{background:#1e0000d9;border-color:#7f1d1d;color:#f87171}html.dark .btn-regenerate:hover{background:#2d0e0e}html.dark .modal-panel{background:#13131f}html.dark .modal-info{border-left-color:#252536;border-top-color:#252536}html.dark .modal-close{background:#1a1a2e;color:#9ca3af}html.dark .modal-close:hover{background:#252536;color:#e2e2f0}html.dark .modal-type-badge{background:#1e1535;color:#a78bfa}html.dark .modal-section-label{color:#6b7280}html.dark .modal-prompt{color:#e2e2f0}html.dark .modal-value{color:#9ca3af}html.dark .modal-btn.secondary{background:#1c1c2e;color:#9ca3af;border-color:#2e2e4e}html.dark .modal-btn.secondary:hover{background:#1a1a2e;color:#e2e2f0}html.dark .confirm-modal{background:#13131f}html.dark .confirm-title{color:#e2e2f0}html.dark .confirm-body{color:#9ca3af}html.dark .confirm-btn-cancel{background:#1c1c2e;border-color:#2e2e4e;color:#9ca3af}html.dark .confirm-btn-cancel:hover:not(:disabled){background:#1a1a2e}html.dark .billing-toggle{background:#13131f;border-color:#252536;box-shadow:0 2px 8px #0000004d}html.dark .toggle-opt{color:#9ca3af}html.dark .toggle-opt.active{background:#e2e2f0;color:#0d0d1a}html.dark .card{background:#1a1a2e;border-color:#252536}html.dark .card:hover{box-shadow:0 8px 32px #0000004d}html.dark .card.featured{border-color:#7c3aed;box-shadow:0 0 0 1px #7c3aed,0 8px 40px #7c3aed33}html.dark h1,html.dark .plan-name,html.dark .price{color:#e2e2f0}html.dark .plan-badge{border-color:#9ca3af;color:#9ca3af}html.dark .plan-desc,html.dark .usd,html.dark .billed-note{color:#9ca3af}html.dark .feature-item{color:#c4c4d4}html.dark .email{color:#e2e2f0}html.dark .manage-btn{background:#1c1c2e;border-color:#2e2e4e;color:#c4c4d4}html.dark .manage-btn:hover,html.dark .manage-btn.open{border-color:#a78bfa;color:#a78bfa}html.dark .manage-dropdown{background:#1a1a2e;border-color:#252536;box-shadow:0 10px 32px #0006}html.dark .delete-title{color:#e2e2f0}html.dark .delete-desc{color:#9ca3af}html.dark .divider{border-top-color:#252536}html.dark .card-title{color:#e2e2f0}html.dark .card-value{color:#9ca3af}html.dark .credits-row{color:#c4c4d4}html.dark .credits-value{color:#e2e2f0}@media(max-width:768px){.panel-left{width:100%;min-width:0;border-right:none;border-bottom:1px solid #e8eaf0;overflow:visible;height:auto}html.dark .panel-left{border-bottom-color:#252536}.panel-right{padding:14px 12px 80px;overflow:visible;height:auto}}.extend-backdrop{position:fixed;inset:0;z-index:200;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center}.extend-modal{background:#fff;border-radius:14px;padding:24px;width:100%;max-width:420px;margin:16px;box-shadow:0 8px 32px #0000002e;display:flex;flex-direction:column;gap:14px}.extend-modal-title{font-size:1rem;font-weight:700;color:#1a1a2e}.extend-prompt-input{width:100%;border:1.5px solid #e5e7eb;border-radius:8px;padding:10px 12px;font-size:.85rem;font-family:inherit;resize:vertical;color:#1a1a2e;background:#fafafa;transition:border-color .15s;box-sizing:border-box}.extend-prompt-input:focus{outline:none;border-color:#7c3aed}.extend-cfg-row{display:flex;flex-direction:column;gap:6px}.extend-cfg-label{font-size:.78rem;font-weight:600;color:#6b7280}.extend-cfg-row input[type=range]{width:100%;accent-color:#7c3aed}.extend-modal-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center}.btn-extend-cancel{padding:7px 16px;background:#f3f4f6;border:1.5px solid #e5e7eb;border-radius:8px;font-size:.82rem;font-weight:600;color:#6b7280;cursor:pointer;transition:background .15s;font-family:inherit}.btn-extend-cancel:hover{background:#e5e7eb}.dropdown-note{font-size:.72rem;color:#9ca3af;margin:0 0 8px;padding:6px 8px;background:#f9fafb;border-radius:6px}
