:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}body{margin:0}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}:root{--bg:#f4f1ed;--surface:#fcfbf9;--surface-soft:#f8f4ef;--border:#a37aff24;--border-strong:#a37aff52;--text:#171310;--muted:#5f5852;--muted-2:#5f58529e;--accent:#a37aff;--accent-dark:#8657ed;--accent-soft:#a37aff1a;--accent-soft-2:#a37aff29;--accent-soft-3:#a37aff38;--black:#171310;--white:#fcfbf9;--radius-xl:28px;--radius-lg:22px;--radius-md:16px;--radius-pill:999px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--control-height:50px;--shadow:0 15px 30px -10px #000b3029;--shadow-soft:0 12px 24px -16px #000b302e;--shadow-accent:0 15px 30px -12px #a37aff8c}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{background:var(--bg);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;min-height:100%}body{min-width:320px;min-height:100%;color:var(--text);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;background:radial-gradient(circle at 88% 8%,#a37aff29,#0000 34%),radial-gradient(circle at 8% 92%,#a37aff14,#0000 34%),linear-gradient(#fcfbf9 0%,#f4f1ed 42%,#efe9e2 100%);margin:0;font-family:Montserrat,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px;font-weight:400;line-height:1.45;overflow-x:hidden}button,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.58}.app{width:100%;min-height:100dvh;min-height:var(--tg-viewport-stable-height,100dvh);padding:max(14px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom))}.shell{width:100%;max-width:560px;margin:0 auto}.topbar{justify-content:space-between;align-items:center;gap:var(--space-3);margin-bottom:var(--space-5);display:flex}.brand{align-items:center;gap:10px;min-width:0;display:flex}.brand-logo{background:linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);width:34px;height:34px;color:var(--white);letter-spacing:-.04em;box-shadow:0 0 0 5px #a37aff1f, var(--shadow-accent);border-radius:11px;flex:none;place-items:center;font-size:15px;font-weight:750;line-height:1;display:grid}.brand-text{flex-direction:column;gap:1px;min-width:0;display:flex}.brand-title{max-width:100%;color:var(--text);letter-spacing:-.035em;white-space:nowrap;text-overflow:ellipsis;font-size:clamp(15px,4vw,17px);font-weight:800;line-height:20px;overflow:hidden}.brand-subtitle{color:var(--muted-2);white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:500;line-height:14px;overflow:hidden}.status-pill{border-radius:var(--radius-pill);border:1px solid var(--accent);background:var(--accent);min-height:30px;color:var(--white);white-space:nowrap;flex:none;align-items:center;gap:6px;padding:0 11px;font-size:11px;font-weight:700;line-height:14px;display:inline-flex;box-shadow:0 12px 24px -14px #a37affd9}.status-pill--processing{border-color:var(--text);background:var(--text);color:var(--white)}.status-pill--inactive{border-color:var(--border);color:var(--muted);box-shadow:none;background:#fcfbf9c2}.status-dot{background:var(--white);border-radius:50%;flex:none;width:6px;height:6px;box-shadow:0 0 12px #fcfbf9bf}.status-pill--inactive .status-dot{background:var(--accent);box-shadow:0 0 12px #a37aff7a}.account-card{margin-bottom:var(--space-4);grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(0,.9fr);gap:8px;display:grid}.account-item{border:1px solid var(--border);min-width:0;box-shadow:var(--shadow-soft);background:#fcfbf9e0;border-radius:16px;padding:11px 12px}.account-label{color:var(--muted-2);margin-bottom:4px;font-size:11px;font-weight:600;line-height:14px}.account-value{color:var(--text);letter-spacing:-.02em;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:800;line-height:18px;overflow:hidden}.account-message,.account-activate-btn,.account-notice{grid-column:1/-1}.account-message{border:1px solid var(--border);color:var(--muted);background:#fcfbf9c2;border-radius:14px;padding:10px 12px;font-size:12px;line-height:16px}.account-activate-btn{background:linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);min-height:46px;color:var(--white);box-shadow:var(--shadow-accent);border-radius:16px;font-size:14px;font-weight:800;line-height:18px}.generator-type-switch{margin-bottom:var(--space-3)}.generator-type-control{width:100%}.generator-type-control .setting-group{box-shadow:var(--shadow-soft);background:#fcfbf9db;border-radius:16px;padding:4px}.generator-type-control .setting-btn{height:40px;font-size:13px}.generator{margin-bottom:var(--space-6);border-radius:var(--radius-xl);background:radial-gradient(circle at 88% 0%, #a37aff1f, transparent 36%), radial-gradient(circle at 8% 100%, #a37aff0f, transparent 32%), var(--surface);box-shadow:var(--shadow);border:1px solid #a37aff29;position:relative;overflow:visible}.generator:before{border-radius:inherit;pointer-events:none;content:"";background:linear-gradient(#fcfbf9b8,#fcfbf900);position:absolute;inset:0}.generator-inner{gap:var(--space-5);flex-direction:column;padding:16px;display:flex;position:relative}.generator-inner>.setting-block,.generator-inner>.upload-block,.generator-inner>.prompt-wrap{margin:0}.prompt-wrap{flex-direction:column;min-height:0;display:flex}.prompt-head{justify-content:space-between;align-items:center;gap:var(--space-3);margin-bottom:8px;display:flex}.prompt-title{color:var(--text);font-size:12px;font-weight:700;line-height:16px}.counter{color:var(--muted-2);font-size:11px;font-weight:600;line-height:14px}textarea{resize:vertical;border:1px solid var(--border);width:100%;min-height:120px;max-height:280px;color:var(--text);background:#f4f1ed94;border-radius:16px;outline:none;padding:12px 14px;font-size:16px;line-height:24px;transition:border-color .18s,box-shadow .18s,background .18s;overflow-y:auto}textarea:focus{border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 4px #a37aff24}textarea::placeholder{color:#5f585285}.controls{gap:var(--space-4);border:0;flex-direction:column;margin:0;padding:0;display:flex}.model-select-wrap{flex-direction:column;gap:8px;display:flex}.control-label{color:var(--muted-2);font-size:12px;font-weight:650;line-height:16px}.custom-select{width:100%;position:relative}.custom-select-button{width:100%;min-height:var(--control-height);border:1px solid var(--border);color:var(--text);text-align:left;background:linear-gradient(#fcfbf9fa,#f4f1eddb);border-radius:16px;justify-content:space-between;align-items:center;gap:12px;padding:0 10px 0 15px;transition:border-color .18s,box-shadow .18s,transform .18s;display:flex;box-shadow:inset 0 0 0 1px #fcfbf9bd,0 10px 20px -18px #000b3052}.custom-select-button:active{transform:scale(.992)}.custom-select-button.active{border-color:var(--accent);box-shadow:0 0 0 4px #a37aff24,0 12px 26px -18px #000b3052}.custom-select-button-content{align-items:center;gap:8px;min-width:0;display:flex;overflow:hidden}.custom-select-button-title{min-width:0;color:var(--text);letter-spacing:-.02em;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:750;line-height:18px;overflow:hidden}.custom-select-button-label,.custom-select-option-label{border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--accent);white-space:nowrap;flex:none;padding:3px 6px;font-size:9px;font-weight:800;line-height:12px}.custom-select-arrow{background:var(--accent);border-radius:11px;flex:none;width:30px;height:30px;transition:background .18s,transform .18s;position:relative}.custom-select-arrow:before{border-right:2px solid var(--white);border-bottom:2px solid var(--white);content:"";width:8px;height:8px;position:absolute;top:48%;left:50%;transform:translate(-50%,-60%)rotate(45deg)}.custom-select-button.active .custom-select-arrow{background:var(--accent-dark);transform:rotate(180deg)}.custom-select-button.active .custom-select-arrow:before{border-color:var(--white)}.custom-select-menu{z-index:50;border:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fcfbf9fa;border-radius:18px;max-height:min(360px,60vh);padding:7px;position:absolute;top:calc(100% + 8px);left:0;right:0;overflow-y:auto;box-shadow:0 18px 38px -18px #000b3052,inset 0 0 0 1px #fcfbf9b3}.custom-select-option{width:100%;min-height:46px;color:var(--text);text-align:left;background:0 0;border-radius:14px;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px 8px 12px;transition:background .16s,transform .16s;display:flex}.custom-select-option:active{transform:scale(.992)}.custom-select-option.active{background:var(--accent-soft)}.custom-select-option-main{min-width:0}.custom-select-option-title-row{align-items:center;gap:7px;min-width:0;display:flex}.custom-select-option-title{letter-spacing:-.02em;white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:13px;font-weight:750;line-height:17px;overflow:hidden}.custom-select-option-meta{border-radius:var(--radius-pill);background:var(--surface-soft);color:var(--muted);white-space:nowrap;flex:none;padding:5px 8px;font-size:10px;font-weight:700;line-height:12px}.custom-select-option.active .custom-select-option-meta{color:var(--accent-dark);background:#a37aff24}.settings-row{gap:var(--space-5);grid-template-columns:1fr;display:grid}.setting-block{flex-direction:column;gap:8px;display:flex}.setting-group{border:1px solid var(--border);border-radius:var(--radius-md);background:#f4f1edb3;gap:6px;padding:5px;display:flex}.setting-group--wrap{flex-wrap:wrap}.setting-group--wrap .setting-btn{flex:72px;min-width:0;padding:0 11px}.setting-btn{min-width:0;height:38px;color:var(--muted);white-space:nowrap;background:0 0;border-radius:11px;flex:1;padding:0 10px;font-size:13px;font-weight:700;line-height:16px;transition:background .18s,color .18s,transform .18s,box-shadow .18s}.setting-btn:active{transform:scale(.98)}.setting-btn.active{background:var(--accent);color:var(--white);box-shadow:0 10px 22px -14px #a37affd9}.setting-btn.disabled,.setting-btn:disabled{opacity:.35;cursor:not-allowed}.setting-btn.disabled:active,.setting-btn:disabled:active{transform:none}.upload-block{flex-direction:column;gap:8px;display:flex}.upload-box{min-height:52px;color:var(--muted);text-align:center;word-break:break-word;cursor:pointer;background:#f4f1ed9e;border:1px dashed #a37aff52;border-radius:15px;justify-content:center;align-items:center;padding:12px 14px;font-size:13px;font-weight:750;line-height:18px;display:flex}.upload-box:active{background:var(--accent-soft);color:var(--accent-dark)}.upload-box input,.upload-hint{display:none}.uploaded-file{border:1px solid var(--border);background:var(--surface);min-height:66px;box-shadow:var(--shadow-soft);border-radius:15px;grid-template-columns:52px minmax(0,1fr) 30px;align-items:center;gap:8px;padding:7px;display:grid}.uploaded-file-preview{object-fit:cover;background:var(--surface-soft);border-radius:11px;width:52px;height:52px;display:block}.uploaded-file-main{min-width:0;overflow:hidden}.uploaded-file-label{max-width:100%;color:var(--accent);white-space:nowrap;text-overflow:ellipsis;margin-bottom:2px;font-size:9px;font-weight:800;line-height:12px;overflow:hidden}.uploaded-file-name{max-width:100%;color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:650;line-height:16px;overflow:hidden}.uploaded-file-remove{background:var(--surface-soft);width:30px;height:30px;color:var(--text);border-radius:10px;place-items:center;font-size:21px;font-weight:400;line-height:1;display:grid}.uploaded-file-remove:active{background:var(--accent);color:var(--white)}.image-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.reference-file{border:1px solid var(--border);background:var(--surface);min-width:0;box-shadow:var(--shadow-soft);border-radius:14px;position:relative;overflow:hidden}.reference-file-preview{aspect-ratio:4/3;object-fit:cover;background:var(--surface-soft);width:100%;display:block}.image-reference-number{z-index:2;border-radius:var(--radius-pill);min-width:24px;height:24px;color:var(--white);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#171310d6;justify-content:center;align-items:center;padding:0 7px;font-size:10px;font-weight:800;line-height:12px;display:inline-flex;position:absolute;top:6px;left:6px}.reference-file-remove{z-index:2;width:26px;height:26px;color:var(--text);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fcfbf9eb;border-radius:9px;place-items:center;font-size:18px;font-weight:500;line-height:1;display:grid;position:absolute;top:6px;right:6px;box-shadow:0 4px 12px #000b301f}.notice{border:1px solid var(--border);color:var(--muted);background:#f4f1edc2;border-radius:13px;padding:10px 12px;font-size:12px;font-weight:500;line-height:16px}.generate-btn{background:linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);width:100%;min-height:52px;color:var(--white);letter-spacing:-.01em;box-shadow:var(--shadow-accent);border-radius:17px;padding:0 16px;font-size:15px;font-weight:850;line-height:20px;transition:background .18s,color .18s,transform .18s,box-shadow .18s}.generate-btn:active{transform:scale(.985);box-shadow:0 10px 22px -14px #a37affd9}@media (hover:hover){.generate-btn:not(:disabled):hover{background:linear-gradient(135deg, var(--accent-dark) 0%, #7046d6 100%);color:var(--white)}}.app-global-notice{margin-top:0}.section-head{justify-content:space-between;align-items:flex-end;gap:var(--space-3);margin-bottom:var(--space-3);display:flex}.section-title{color:var(--text);letter-spacing:-.035em;margin:0;font-size:17px;font-weight:800;line-height:22px}.section-link{color:var(--muted-2);font-size:12px;font-weight:600;line-height:16px}.history{flex-direction:column;gap:9px;padding-bottom:10px;display:flex}.history-item{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-soft);grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px;display:grid}.history-state{border-radius:14px;flex:none;place-items:center;width:44px;height:44px;display:grid}.history-state--process{border:1px solid var(--border);background:#f4f1edc2}.history-state--done{background:var(--accent);color:var(--white);box-shadow:0 10px 22px -14px #a37affd9}.history-state--failed{background:var(--text);color:var(--white)}.history-spinner{border:2px solid #5f58522e;border-top-color:var(--accent);border-radius:50%;width:18px;height:18px;animation:.8s linear infinite history-spin}.history-check,.history-error{justify-content:center;align-items:center;font-size:18px;font-weight:800;line-height:1;display:inline-flex}.history-main{min-width:0}.history-title{color:var(--text);white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px;font-size:13px;font-weight:750;line-height:16px;overflow:hidden}.history-meta{color:var(--muted);font-size:11px;font-weight:500;line-height:14px}.history-status-text,.history-error-text,.history-refund-label{color:var(--muted);margin-top:4px;font-size:11px;font-weight:500;line-height:14px}.history-error-text{color:var(--text)}.history-refund-label{color:var(--accent);font-weight:750}.history-side{flex-direction:column;align-items:flex-end;gap:6px;display:flex}.history-video-link,.history-failed-label,.history-processing-label{border-radius:var(--radius-pill);background:var(--accent);min-height:24px;color:var(--white);white-space:nowrap;justify-content:center;align-items:center;padding:0 9px;font-size:10px;font-weight:750;line-height:12px;text-decoration:none;display:inline-flex}.history-video-link:active{transform:scale(.98)}.history-processing-label{background:var(--accent-soft);color:var(--accent-dark)}.history-failed-label{background:var(--text);color:var(--white)}.empty-history{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-soft);color:var(--muted);text-align:center;padding:18px;font-size:13px;font-weight:500;line-height:18px}.history-load-more{border:1px solid var(--border);background:var(--surface);width:100%;min-height:44px;color:var(--text);box-shadow:var(--shadow-soft);border-radius:15px;font-size:13px;font-weight:800;line-height:18px}.history-load-more:active{background:var(--accent-soft);color:var(--accent-dark)}@keyframes history-spin{to{transform:rotate(360deg)}}@media (width<=380px){.app{padding-left:12px;padding-right:12px}.topbar,.brand{gap:8px}.brand-logo{border-radius:10px;width:32px;height:32px}.brand-subtitle{display:none}.status-pill{padding:0 9px;font-size:10px}.account-card{gap:6px}.account-item{border-radius:14px;padding:10px 9px}.account-label{font-size:10px}.account-value{font-size:12px}.generator-inner{gap:18px;padding:13px}.setting-group{gap:4px;padding:4px}.setting-btn{height:36px;padding:0 7px;font-size:11px}.setting-group--wrap .setting-btn{flex:62px}.custom-select-option{flex-direction:column;align-items:flex-start;gap:6px}.custom-select-option-meta{align-self:flex-start}.image-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-item{grid-template-columns:40px minmax(0,1fr) auto;gap:9px;padding:9px}.history-state{width:40px;height:40px}}@media (width>=768px){.app{padding-top:max(24px, env(safe-area-inset-top));padding-left:24px;padding-right:24px}.shell{max-width:620px}.topbar{margin-bottom:24px}.brand-logo{width:38px;height:38px}.brand-title{font-size:18px;line-height:22px}.brand-subtitle{font-size:12px;line-height:15px}.status-pill{min-height:32px;font-size:12px}.account-item{padding:13px 14px}.account-value{font-size:15px}.generator-inner{gap:22px;padding:20px}textarea{min-height:136px}.settings-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.generate-btn{min-height:54px;font-size:16px}}@media (width<=767px){:root{--radius-xl:22px;--radius-lg:18px;--radius-md:14px;--control-height:46px;--space-4:12px;--space-5:14px;--space-6:18px}html,body{width:100%;overflow-x:hidden}body{background:radial-gradient(circle at 92% 4%,#a37aff21,#0000 32%),linear-gradient(#fcfbf9 0%,#f4f1ed 36%,#efe9e2 100%)}.app{padding:max(10px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom))}.shell{max-width:none}.topbar{align-items:flex-start;gap:8px;margin-bottom:12px}.brand{flex:auto;gap:8px;min-width:0}.brand-logo{border-radius:10px;width:32px;height:32px;font-size:14px;box-shadow:0 0 0 4px #a37aff1a,0 12px 22px -16px #a37affad}.brand-title{letter-spacing:-.035em;font-size:15px;line-height:19px}.brand-subtitle{max-width:190px;font-size:10px;line-height:13px}.status-pill{text-overflow:ellipsis;gap:5px;max-width:118px;min-height:28px;padding:0 9px;font-size:10px;line-height:12px;overflow:hidden}.status-dot{width:5px;height:5px}.account-card{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:12px}.account-item{border-radius:14px;padding:10px;box-shadow:0 8px 18px -16px #000b3033}.account-item:first-child{grid-column:1/-1}.account-label{margin-bottom:3px;font-size:10px;line-height:13px}.account-value{font-size:13px;line-height:17px}.account-message{border-radius:13px;padding:9px 10px;font-size:11px;line-height:15px}.account-activate-btn{min-height:44px;font-size:13px}.generator-type-switch{margin-bottom:10px}.generator-type-control .setting-group{border-radius:15px;gap:4px;padding:4px}.generator-type-control .setting-btn{flex:1 1 0;height:38px;padding:0 8px;font-size:12px;line-height:14px}.generator{border-radius:22px;margin-bottom:18px;box-shadow:0 12px 26px -18px #000b3038}.generator-inner{gap:13px;padding:12px}.controls{gap:12px}.prompt-head{margin-bottom:6px}.prompt-title{font-size:11px;line-height:14px}.counter{font-size:10px;line-height:13px}textarea{border-radius:15px;min-height:104px;max-height:210px;padding:11px 12px;font-size:15px;line-height:22px}.model-select-wrap{gap:6px}.control-label{font-size:11px;line-height:14px}.custom-select-button{border-radius:15px;gap:8px;min-height:46px;padding:0 8px 0 12px}.custom-select-button-content{gap:6px}.custom-select-button-title{font-size:13px;line-height:17px}.custom-select-button-label{display:none}.custom-select-arrow{border-radius:10px;width:28px;height:28px}.custom-select-menu{border-radius:16px;max-height:52dvh;padding:6px}.custom-select-option{border-radius:13px;gap:8px;min-height:44px;padding:8px 9px}.custom-select-option-title-row{gap:5px}.custom-select-option-title{font-size:12px;line-height:16px}.custom-select-option-label{padding:2px 5px;font-size:8px;line-height:11px}.custom-select-option-meta{padding:4px 7px;font-size:9px;line-height:11px}.settings-row{gap:12px}.setting-block{gap:6px}.controls .setting-group{border-radius:15px;flex-wrap:nowrap;gap:5px;padding:4px;display:flex}.controls .setting-group .setting-btn{white-space:nowrap;border-radius:11px;flex:1 1 0;min-width:0;height:36px;padding:0 4px;font-size:11px;line-height:14px}.setting-group[aria-label=Режим]{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;display:grid}.setting-group[aria-label=Режим] .setting-btn{white-space:nowrap;width:100%;min-width:0;height:36px;padding:0 6px;font-size:11px;line-height:13px}.upload-block{gap:7px}.upload-box{border-radius:14px;min-height:46px;padding:10px 12px;font-size:12px;line-height:16px}.uploaded-file{border-radius:14px;grid-template-columns:46px minmax(0,1fr) 28px;gap:7px;min-height:58px;padding:6px}.uploaded-file-preview{border-radius:10px;width:46px;height:46px}.uploaded-file-label{font-size:8px;line-height:11px}.uploaded-file-name{font-size:11px;line-height:15px}.uploaded-file-remove{border-radius:9px;width:28px;height:28px;font-size:20px}.image-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.reference-file{border-radius:13px}.image-reference-number{min-width:22px;height:22px;font-size:9px;top:5px;left:5px}.reference-file-remove{border-radius:8px;width:24px;height:24px;font-size:17px;top:5px;right:5px}.generate-btn{border-radius:16px;min-height:48px;font-size:14px;line-height:18px}.notice{border-radius:13px;padding:9px 10px;font-size:11px;line-height:15px}.section-head{margin-bottom:9px}.section-title{font-size:16px;line-height:20px}.history{gap:8px}.history-item{border-radius:18px;grid-template-columns:38px minmax(0,1fr);align-items:flex-start;gap:9px;padding:9px}.history-state{border-radius:13px;width:38px;height:38px}.history-title{margin-bottom:3px;font-size:12px;line-height:15px}.history-meta,.history-status-text,.history-error-text,.history-refund-label{font-size:10px;line-height:14px}.history-side{flex-flow:wrap;grid-column:2;align-items:flex-start;margin-top:2px}.history-video-link,.history-failed-label,.history-processing-label{min-height:25px;padding:0 10px;font-size:10px;font-weight:800;line-height:12px}.empty-history{border-radius:18px;padding:15px;font-size:12px;line-height:17px}.history-load-more{border-radius:14px;min-height:42px;font-size:12px}}@media (width<=360px){.app{padding-left:8px;padding-right:8px}.brand-subtitle{display:none}.status-pill{max-width:104px;padding:0 8px}.account-card{grid-template-columns:1fr}.account-item:first-child{grid-column:auto}.custom-select-option{flex-direction:column;align-items:flex-start}.custom-select-option-meta{align-self:flex-start}}.result-viewer-backdrop{z-index:1000;background:#f4f1ed;justify-content:center;align-items:stretch;padding:0;display:flex;position:fixed;inset:0}.result-viewer{width:100%;max-width:620px;height:100dvh;height:var(--tg-viewport-stable-height,100dvh);background:radial-gradient(circle at 88% 0,#a37aff1f,#0000 36%),#f4f1ed;flex-direction:column;display:flex;overflow:hidden}.result-viewer-head{padding:max(12px, env(safe-area-inset-top)) 14px 9px;flex:none;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.result-viewer-eyebrow{color:#a37aff;letter-spacing:.03em;background:#a37aff1a;border-radius:999px;align-items:center;min-height:23px;margin-bottom:6px;padding:0 9px;font-size:10px;font-weight:850;line-height:1;display:inline-flex}.result-viewer-title{color:#171310;letter-spacing:-.05em;margin:0;font-size:18px;font-weight:850;line-height:22px}.result-viewer-close{color:#171310;background:#fcfbf9;border-radius:13px;flex:none;place-items:center;width:36px;height:36px;font-size:26px;font-weight:400;line-height:1;display:grid;box-shadow:0 10px 22px -16px #000b3038}.result-viewer-body{flex:auto;min-height:0;padding:0 12px 10px;overflow-y:auto}.result-viewer-media{aspect-ratio:9/12;background:radial-gradient(circle at 70% 12%,#a37aff1f,#0000 36%),#fcfbf9;border-radius:20px;justify-content:center;align-items:center;width:100%;min-height:0;max-height:46dvh;display:flex;overflow:hidden;box-shadow:0 15px 30px -18px #000b3038}.result-viewer-image{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:100%;display:block}.result-viewer-video{object-fit:contain;background:#171310;width:auto;max-width:100%;height:auto;max-height:100%;display:block}.result-viewer-loading,.result-viewer-error{color:#5f5852;text-align:center;padding:20px;font-size:12px;font-weight:650;line-height:17px}.result-viewer-error{color:#171310}.result-viewer-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px;display:grid}.result-viewer-info-item{background:#fcfbf9;border-radius:14px;min-width:0;padding:10px;box-shadow:0 10px 20px -18px #000b303d}.result-viewer-info-item span{color:#5f58529e;margin-bottom:3px;font-size:10px;font-weight:750;line-height:13px;display:block}.result-viewer-info-item strong{color:#171310;white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:800;line-height:15px;display:block;overflow:hidden}.result-viewer-prompt{background:#fcfbf9;border-radius:16px;margin-top:9px;padding:11px;box-shadow:0 10px 20px -18px #000b303d}.result-viewer-prompt-title{color:#a37aff;margin-bottom:6px;font-size:10px;font-weight:850;line-height:13px}.result-viewer-prompt-text{color:#5f5852;white-space:pre-wrap;max-height:112px;font-size:11px;font-weight:500;line-height:17px;overflow-y:auto}.result-viewer-actions{padding:9px 12px max(12px, env(safe-area-inset-bottom));background:linear-gradient(#f4f1ed00,#f4f1ed 18%);flex:none;grid-template-columns:1fr;gap:7px;display:grid}.result-viewer-btn{color:#171310;background:#fcfbf9;border-radius:15px;min-height:44px;font-size:12px;font-weight:850;line-height:17px;box-shadow:0 10px 22px -16px #000b3038}.result-viewer-btn--main{color:#fcfbf9;background:linear-gradient(135deg,#a37aff 0%,#8657ed 100%);box-shadow:0 15px 30px -12px #a37aff8c}.result-viewer-btn:active{transform:scale(.985)}@media (width<=360px){.result-viewer-media{aspect-ratio:1/1.12;border-radius:18px;max-height:40dvh}.result-viewer-info{grid-template-columns:1fr}.result-viewer-prompt-text{max-height:94px}}@media (width>=560px){.result-viewer-backdrop{padding:max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#17131057;align-items:center}.result-viewer{background:radial-gradient(circle at 88% 0,#a37aff1f,#0000 36%),#f4f1ed;border-radius:28px;height:auto;max-height:calc(100dvh - 36px);box-shadow:0 24px 54px -24px #000b3061}.result-viewer-head{padding:18px 18px 12px}.result-viewer-body{padding:0 18px 14px}.result-viewer-media{aspect-ratio:16/10;max-height:58dvh}.result-viewer-actions{grid-template-columns:1fr 1fr;padding:12px 18px 18px}}@media (width<=767px){.history-item{grid-template-columns:38px minmax(0,1fr) auto;align-items:center}.history-main{align-self:center}.history-side{flex-flow:column;grid-column:auto;align-self:center;align-items:flex-end;margin-top:0}.history-video-link,.history-failed-label,.history-processing-label{white-space:nowrap;min-height:26px;padding:0 9px;font-size:10px;line-height:12px}}@media (width<=360px){.history-item{grid-template-columns:34px minmax(0,1fr) auto;gap:7px}.history-state{border-radius:12px;width:34px;height:34px}.history-video-link,.history-failed-label,.history-processing-label{min-height:24px;padding:0 8px;font-size:9px}}.fullscreen-row{justify-content:flex-end;margin:-8px 0 8px;display:flex}.fullscreen-button{width:auto;min-width:0;min-height:28px;color:var(--muted);box-shadow:none;cursor:pointer;background:#fcfbf9b8;border:1px solid #a37aff2e;border-radius:999px;justify-content:center;align-items:center;padding:0 10px;font-size:10px;font-weight:800;line-height:12px;display:inline-flex}.fullscreen-button:active{color:var(--accent-dark);background:#a37aff1a;transform:translateY(1px)}@media (width<=767px){.fullscreen-row{margin:-8px 0 6px}.fullscreen-button{min-height:26px;padding:0 9px;font-size:9px;line-height:11px}}.compact-header{border:1px solid var(--border);width:100%;box-shadow:var(--shadow-soft);background:radial-gradient(circle at 92% 0,#a37aff1a,#0000 34%),#fcfbf9e0;border-radius:18px;margin-bottom:10px;padding:11px 12px 10px}.compact-header__top{justify-content:space-between;align-items:center;gap:10px;display:flex}.compact-header__brand{align-items:center;gap:9px;min-width:0;display:flex}.compact-header__logo{background:linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);width:32px;height:32px;color:var(--white);letter-spacing:-.04em;border-radius:10px;flex:none;place-items:center;font-size:14px;font-weight:800;line-height:1;display:grid;box-shadow:0 0 0 4px #a37aff1a}.compact-header__brand-text{min-width:0}.compact-header__title{color:var(--text);letter-spacing:-.035em;white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:850;line-height:18px;overflow:hidden}.compact-header__subtitle{color:var(--muted-2);white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:10px;font-weight:600;line-height:13px;overflow:hidden}.compact-header__fullscreen{border:1px solid var(--border);width:32px;height:32px;color:var(--accent-dark);box-shadow:none;background:#fcfbf9c2;border-radius:10px;flex:none;place-items:center;padding:0;transition:background .18s,transform .18s,border-color .18s;display:grid}.compact-header__fullscreen svg{fill:none;stroke:currentColor;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;width:17px;height:17px}.compact-header__fullscreen:active{background:var(--accent-soft);border-color:var(--border-strong);transform:scale(.94)}.compact-header__meta{min-width:0;color:var(--muted);border-top:1px solid #a37aff1a;flex-wrap:wrap;align-items:center;gap:5px;margin-top:8px;padding-top:8px;font-size:11px;font-weight:600;line-height:14px;display:flex}.compact-header__meta strong{color:var(--text);font-weight:800}.topbar,.account-card,.fullscreen-row{display:none!important}@media (width>=768px){.compact-header{margin-bottom:12px;padding:12px 14px 11px}.compact-header__logo{width:34px;height:34px}.compact-header__title{font-size:16px;line-height:19px}.compact-header__subtitle{font-size:11px;line-height:14px}.compact-header__fullscreen{width:34px;height:34px}.compact-header__meta{font-size:12px;line-height:15px}}@media (width<=360px){.compact-header{border-radius:16px;padding:10px}.compact-header__brand{gap:8px}.compact-header__logo{width:30px;height:30px}.compact-header__title{font-size:14px}.compact-header__fullscreen{width:30px;height:30px}.compact-header__meta{gap:4px;font-size:10px;line-height:13px}}
