@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.h-full{height:100%}.min-h-full{min-height:100%}.resize{resize:both}.flex-col{flex-direction:column}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#f7f7f7;--muted:#908b90;--app-bg:#070707;--surface:#111;--surface-2:#171717;--accent:#ff2b2b;--accent-dark:#b90000;--danger:#ff4c4c;--line:#ffffff1a;--soft-line:#ffffff0f;--shadow:0 24px 70px #0000008c}*{box-sizing:border-box}html{background:var(--app-bg);overscroll-behavior-y:none;min-height:100%}body{min-height:100dvh;color:var(--ink);background:var(--app-bg);overscroll-behavior-y:none;-webkit-font-smoothing:antialiased;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Noto Sans SC,Microsoft YaHei,Arial,sans-serif;font-weight:400}button,textarea{font:inherit}button,a{color:inherit}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell{width:min(680px,100%);min-height:100dvh;padding:max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(112px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));margin:0 auto}.account-bar{justify-content:space-between;align-items:center;gap:12px;min-height:44px;margin-bottom:16px;display:flex}.profile,.account-actions{align-items:center;gap:9px;min-width:0;display:flex}.avatar{color:#fff;cursor:pointer;background:#171717;border:1px solid #ffffff24;border-radius:50%;flex:0 0 40px;place-items:center;width:40px;height:40px;padding:0;font-size:12px;font-weight:700;display:grid;overflow:hidden}.avatar.active{border-color:var(--accent)}.avatar img{object-fit:cover;width:100%;height:100%}.buy-credits{color:#fff;cursor:pointer;white-space:nowrap;background:#d91f26;border:0;border-radius:999px;align-items:center;gap:7px;padding:8px 32px;font-size:11px;font-weight:700;line-height:18px;display:flex}.buy-credits:hover{background:#bf171d}.buy-icon{background:#0000002e;border-radius:50%;place-items:center;width:24px;height:24px;font-size:15px;line-height:1;display:grid}.credit-balance{border:1px solid var(--line);cursor:pointer;background:#111;border-radius:999px;min-width:52px;height:34px;padding:0 9px;font-size:12px;font-weight:700}.credit-balance span{color:var(--accent);margin-right:6px}.inline-notice{color:#b2adb2;border-left:2px solid var(--accent);background:#ff2b2b12;margin:-7px 0 13px;padding:10px 12px;font-size:10px}.mode-tabs{border:1px solid var(--line);scrollbar-width:none;background:#101010;border-radius:999px;gap:3px;width:fit-content;max-width:100%;margin:0 auto 12px;padding:3px;display:flex;overflow-x:auto}.mode-tabs::-webkit-scrollbar{display:none}.mode-tabs button{color:#858585;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:999px;flex:none;justify-content:center;align-items:center;gap:7px;padding:8px 32px;font-size:11px;font-weight:650;line-height:18px;transition:color .18s,background .18s;display:inline-flex}.mode-tabs button.active{color:#fff;background:#d91f26}.mode-tabs button:disabled{opacity:.35;cursor:not-allowed}.mode-tabs svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;width:15px;height:15px}.mode-tabs button:last-child svg path{fill:currentColor;stroke:none}.creator-card,.result-card{border:1px solid var(--line);box-shadow:var(--shadow);background:#101010f0;border-radius:24px}.creator-card{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}.upload-zone{aspect-ratio:1;text-align:center;cursor:pointer;background:#0c0c0c;border:1px dashed #ff37378c;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:15px;width:100%;margin-bottom:18px;padding:24px;transition:border .18s,background .18s;display:flex}.upload-zone:hover{border-color:var(--accent);background:#101010}.upload-icon{color:#fff;background:#d91f26;border-radius:50%;place-items:center;width:72px;height:72px;font-size:34px;font-weight:200;display:grid}.upload-zone>span:last-child{flex-direction:column;display:flex}.upload-zone strong{font-size:15px;font-weight:650}.upload-zone small{color:var(--muted);margin-top:7px;font-size:10px;line-height:1.4}.upload-preview{aspect-ratio:1;border:1px solid var(--line);background:#090909;border-radius:20px;width:100%;margin-bottom:18px;position:relative;overflow:hidden}.upload-preview>img{object-fit:cover;width:100%;height:100%}.upload-preview>div{background:linear-gradient(#0000,#000000e6);flex-direction:column;padding:50px 15px 15px;display:flex;position:absolute;bottom:0;left:0;right:0}.upload-preview strong{font-size:12px}.upload-preview span{color:#aaa;white-space:nowrap;text-overflow:ellipsis;margin-top:4px;font-size:9px;overflow:hidden}.upload-preview>button{color:#fff;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);cursor:pointer;background:#000000a6;border:1px solid #ffffff29;border-radius:50%;width:34px;height:34px;font-size:19px;position:absolute;top:12px;right:12px}form>label{margin:0 0 9px;font-size:13px;font-weight:650;display:block}.prompt-field{position:relative}textarea{resize:vertical;color:#fff;border:1px solid var(--line);background:#0b0b0b;border-radius:16px;outline:none;width:100%;height:116px;min-height:116px;padding:14px 14px 28px;line-height:1.5;transition:border .2s,box-shadow .2s}textarea:focus{border-color:var(--accent)}textarea::placeholder{color:#5e5a5e}.prompt-field>span{color:#666;font-size:9px;position:absolute;bottom:8px;right:11px}.controls-row{justify-content:space-between;align-items:flex-end;gap:14px;padding:15px 0 17px;display:flex}.ratio-group>small,.cost small{color:#777;letter-spacing:.07em;text-transform:uppercase;margin-bottom:7px;font-size:9px;font-weight:650;display:block}.ratio-group>div{gap:6px;display:flex}.ratio{border:1px solid var(--line);color:#666;background:0 0;border-radius:9px;padding:7px 10px;font-size:10px;font-weight:650}.ratio.active{color:#fff;background:#ff2b2b1f;border-color:#ff2b2ba6}.ratio:disabled{opacity:.38}.cost{color:var(--accent);text-align:right;font-size:13px;font-weight:700}.cost small{color:#777}.create-button{color:#fff;cursor:pointer;background:#d91f26;border:0;border-radius:999px;justify-content:center;align-items:center;gap:9px;width:100%;height:54px;font-weight:700;transition:background .18s,opacity .18s;display:flex}.create-button:hover:not(:disabled){background:#bf171d}.create-button:disabled{opacity:.3;cursor:not-allowed}.spinner{border:2px solid #ffffff59;border-top-color:#fff;border-radius:50%;width:16px;height:16px;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.status-line,.error-line{color:var(--muted);margin:13px 2px 0;font-size:11px}.error-line{color:var(--danger)}.auth-notice{background:#ff2b2b12;border:1px solid #ff2b2b38;border-radius:15px;grid-template-columns:32px 1fr auto;align-items:center;gap:10px;margin-top:14px;padding:13px;display:grid}.auth-notice>span{color:#fff;background:var(--accent);border-radius:10px;place-items:center;width:32px;height:32px;font-weight:900;display:grid}.auth-notice strong{font-size:11px;display:block}.auth-notice p{color:var(--muted);margin:3px 0 0;font-size:9px;line-height:1.4}.auth-notice a{color:var(--accent);white-space:nowrap;font-size:10px;font-weight:850;text-decoration:none}.result-card{margin-top:14px;overflow:hidden}.result-card>img,.result-card>video{object-fit:cover;background:#000;width:100%;max-height:660px;display:block}.result-details{justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.result-details p{min-width:0;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:11px;overflow:hidden}.result-details a{color:var(--accent);flex:none;font-size:10px;font-weight:850;text-decoration:none}.job-progress{padding:18px}.progress-copy{justify-content:space-between;align-items:center;font-size:11px;display:flex}.progress-copy span{color:var(--muted)}.progress-track{background:#292929;border-radius:99px;height:5px;margin-top:12px;overflow:hidden}.progress-track span{border-radius:inherit;background:#d91f26;height:100%;transition:width .3s;display:block}.history-tabs{border:1px solid var(--line);background:#101010;border-radius:999px;gap:3px;width:fit-content;margin:0 auto 14px;padding:3px;display:flex}.history-tabs button{color:#858585;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;gap:7px;padding:8px 32px;font-size:11px;font-weight:650;line-height:18px;transition:color .18s,background .18s;display:inline-flex}.history-tabs button.active{color:#fff;background:#d91f26}.history-tabs svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;width:15px;height:15px}.history-tabs button:last-child svg path{fill:currentColor;stroke:none}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.history-media{aspect-ratio:1;border:1px solid var(--line);background:#101010;border-radius:16px;display:block;position:relative;overflow:hidden}.history-media img,.history-media video{object-fit:cover;width:100%;height:100%;display:block}.gallery-status{min-height:260px;color:var(--muted);justify-content:center;align-items:center;gap:9px;font-size:11px;display:flex}.gallery-error{color:var(--danger)}.history-empty{min-height:220px;color:var(--muted);text-align:center;justify-content:center;align-items:center;font-size:11px;display:flex}.settings-profile{border-bottom:1px solid var(--soft-line);align-items:center;gap:13px;padding-bottom:20px;display:flex}.settings-avatar{border:1px solid var(--line);background:#171717;border-radius:50%;flex:0 0 52px;place-items:center;width:52px;height:52px;font-size:14px;font-weight:700;display:grid;overflow:hidden}.settings-avatar img{object-fit:cover;width:100%;height:100%}.settings-profile>div:last-child{flex-direction:column;gap:4px;min-width:0;display:flex}.settings-profile small{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:9px}.settings-profile strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;overflow:hidden}.language-settings{margin-top:22px}.language-settings h2{margin:0 0 11px;font-size:13px}.language-options{gap:7px;display:grid}.language-options button{border:1px solid var(--line);color:#aaa;cursor:pointer;text-align:left;background:#0d0d0d;border-radius:14px;justify-content:space-between;align-items:center;width:100%;min-height:44px;padding:0 14px;font-size:11px;display:flex}.language-options button.active{color:#fff;background:#ff2b2b1f;border-color:#ff2b2ba6}.language-options button.active>span:last-child{color:var(--accent);font-size:13px;font-weight:800}.language-options button:disabled{cursor:wait}.language-settings p{color:var(--muted);margin:11px 2px 0;font-size:10px}.admin-entry{background:#d91f2614;border:1px solid #d91f2659;border-radius:14px;align-items:center;gap:11px;margin-top:18px;padding:13px;text-decoration:none;display:flex}.admin-entry>span{background:#d91f26;border-radius:50%;place-items:center;width:34px;height:34px;display:grid}.admin-entry>div{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.admin-entry strong{font-size:11px}.admin-entry small{color:var(--muted);font-size:8px}.admin-entry b{color:var(--accent)}.payment-backdrop{z-index:90;overscroll-behavior:none;background:#000000b8;justify-content:center;align-items:flex-end;padding:16px;display:flex;position:fixed;inset:0;overflow:hidden}.payment-sheet{overscroll-behavior:contain;touch-action:pan-y;border:1px solid var(--line);background:#121212;border-radius:24px;width:min(460px,100%);max-height:calc(100dvh - 32px);padding:20px;overflow-y:auto;box-shadow:0 24px 70px #000000b3}.payment-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.payment-heading h2{margin:0;font-size:20px;font-weight:700}.payment-heading p{color:var(--muted);margin:5px 0 0;font-size:11px}.payment-heading>button{border:1px solid var(--line);cursor:pointer;background:#1c1c1c;border-radius:50%;width:32px;height:32px;font-size:18px}.credit-presets{grid-template-columns:repeat(4,1fr);gap:7px;margin:20px 0 16px;display:grid}.credit-presets button{border:1px solid var(--line);color:#aaa;cursor:pointer;background:#181818;border-radius:999px;height:40px;font-size:11px;font-weight:650}.credit-presets button.active{color:#fff;background:#d91f26;border-color:#d91f26}.credit-input>span{color:var(--muted);margin-bottom:7px;font-size:10px;font-weight:650;display:block}.credit-input>div{border:1px solid var(--line);background:#090909;border-radius:14px;align-items:center;gap:9px;height:48px;padding:0 14px;display:flex}.credit-input>div>span{color:#ffbf00}.credit-input input{color:#fff;width:100%;min-width:0;font:inherit;background:0 0;border:0;outline:0;font-size:16px;font-weight:650}.payment-message{color:#bbb;margin:12px 2px 0;font-size:10px;line-height:1.5}.pay-button{color:#fff;cursor:pointer;background:#d91f26;border:0;border-radius:999px;width:100%;height:50px;margin-top:17px;font-size:12px;font-weight:700}.pay-button:hover:not(:disabled){background:#bf171d}.pay-button:disabled{opacity:.35;cursor:not-allowed}.bottom-nav{z-index:50;left:50%;bottom:max(15px, env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(28px)saturate(150%);background:#121212b8;border:1px solid #ffffff21;border-radius:999px;gap:3px;width:fit-content;max-width:calc(100% - 30px);padding:3px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 20px 55px #000000b3,inset 0 1px #ffffff14}.bottom-nav button{color:#777;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:999px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:3px;padding:8px 32px;font-size:11px;font-weight:650;line-height:14px;transition:color .18s,background .18s;display:flex}.bottom-nav button.active{color:#fff;background:#d91f26}.bottom-nav svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.app-shell.text-input-focused .bottom-nav{opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,calc(100% + 28px))}@media (max-width:520px){.app-shell{padding-top:max(10px, env(safe-area-inset-top));padding-left:12px;padding-right:12px}.account-bar{margin-bottom:13px}.avatar{flex-basis:38px;width:38px;height:38px}.buy-credits{font-size:10px}.buy-icon{width:22px;height:22px}.credit-balance{min-width:48px;height:32px;padding:0 8px}.mode-tabs{margin-bottom:10px}.history-tabs{margin-bottom:12px}.creator-card{border-radius:0;padding:0}.upload-zone,.upload-preview{margin-bottom:16px}textarea{resize:none;height:108px;min-height:108px}.create-button{height:52px}.auth-notice{grid-template-columns:30px 1fr}.auth-notice>span{width:30px;height:30px}.auth-notice a{grid-column:2}}@media (max-width:365px){.credit-balance{min-width:48px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
