:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#09070a;--surface:#151116;--surface-soft:#1f171d;--surface-strong:#2b2028;--text:#fff3f5;--muted:#b5a4aa;--line:#3d2d36;--line-strong:#6e4757;--ink:#080608;--rose:#ff315f;--rose-soft:#38101d;--teal:#25d0b8;--teal-soft:#0d302d;--gold:#e4b56a;--gold-soft:#332414;--red:#ff4f6d;--red-soft:#351019;--green:#51d68b;--green-soft:#10291d;--shadow:0 22px 58px #0000007a;--shadow-soft:0 12px 30px #00000047}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);letter-spacing:0;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}body{min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed;opacity:.58}a{color:inherit;text-decoration:none}img,video{max-width:100%;display:block}.studio-shell{background:radial-gradient(circle at 15% 0%, #ff315f42, transparent 340px), radial-gradient(circle at 88% 18%, #e4b56a29, transparent 360px), linear-gradient(180deg, #12080d 0%, #09070a 360px), var(--bg);min-height:100vh;padding:22px}.studio-main{gap:18px;width:min(1440px,100%);margin:0 auto;display:grid}.studio-header{border:1px solid var(--line);min-height:210px;box-shadow:var(--shadow);background-color:#0000;background-image:linear-gradient(90deg,#09070af7 0%,#240812db 48%,#24081238 100%),url(/assets/chinese-wanghong-undress-clean.jpg);background-position:50% 38%;background-repeat:repeat,repeat;background-size:cover;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;border-radius:8px;grid-template-columns:255px minmax(0,1fr) auto;align-items:center;gap:24px;padding:26px;display:grid;overflow:hidden}.product-lockup{background:#080608c7;border:1px solid #ff315f6b;border-radius:8px;align-items:center;gap:12px;width:fit-content;min-height:50px;padding:9px 11px;display:flex}.product-lockup strong,.product-lockup small{display:block}.product-lockup strong{color:var(--text);font-size:16px;line-height:1.1}.product-lockup small{color:#d9a6b4;margin-top:3px;font-size:12px;font-weight:800}.product-mark{color:#fff;background:linear-gradient(135deg,#ff315f,#651021);border-radius:8px;flex:none;place-items:center;width:38px;height:38px;display:grid;box-shadow:0 12px 28px #ff315f47}.header-copy{min-width:0}.eyebrow{color:var(--gold);text-transform:uppercase;margin:0 0 7px;font-size:11px;font-weight:950}.studio-header h1,.section-head h2,.job-body h3{color:var(--text);letter-spacing:0;margin:0}.studio-header h1{max-width:790px;font-size:clamp(34px,3.7vw,54px);line-height:1.1}.studio-header p:not(.eyebrow){color:#f1dce2;max-width:690px;margin:12px 0 0;font-size:15px;font-weight:760;line-height:1.55}.provider-pill,.status-chip,.job-meta span{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;display:inline-flex}.provider-pill{background:var(--teal-soft);min-height:34px;color:var(--teal);align-self:start;padding:0 11px;font-size:12px;font-weight:950}.composer-surface,.queue-surface,.account-surface,.history-surface,.billing-surface{border:1px solid var(--line);box-shadow:var(--shadow-soft);background:#151116f5;border-radius:8px;min-width:0}.composer-surface{gap:16px;padding:18px;display:grid}.account-surface,.history-surface,.billing-surface{gap:14px;padding:18px;display:grid}.auth-panel{gap:14px;display:grid}.auth-panel h2,.history-surface h2,.billing-surface h2{color:var(--text);margin:0;font-size:24px;line-height:1.1}.auth-panel{grid-template-columns:minmax(340px,1fr) minmax(220px,260px) minmax(220px,260px) auto;align-items:end}.auth-actions,.billing-row{flex-wrap:wrap;align-items:end;gap:10px;display:flex}.account-compact{grid-template-columns:minmax(180px,1fr) minmax(320px,1.4fr) auto;align-items:center;gap:12px;min-height:58px;display:grid}.account-identity,.account-status-box{border:1px solid var(--line);background:#100c10;border-radius:8px}.account-identity{align-content:center;min-width:0;min-height:54px;padding:9px 12px;display:grid}.account-identity .eyebrow{margin-bottom:4px}.account-identity strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:1.1;overflow:hidden}.account-status-box{flex-wrap:nowrap;align-items:center;gap:28px;min-width:0;min-height:54px;padding:8px 14px;display:flex}.billing-status-line span{color:var(--muted);font-size:12px;font-weight:900}.billing-status-line strong{color:var(--text);margin-left:4px}.account-status-item{align-items:center;gap:6px;min-width:0;line-height:1;display:inline-flex}.account-status-item.membership{flex:1}.account-status-label{color:#f7c46a;white-space:nowrap;font-size:16px;font-weight:950;line-height:1}.account-status-label:after{content:"·";color:#f7c46ab8;margin-left:6px}.account-status-value{color:var(--text);min-width:0;font-size:16px;font-weight:950;line-height:1}.account-status-item.membership .account-status-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.account-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.billing-surface{scroll-margin-top:18px}.billing-status-line{border:1px solid var(--line);background:#100c10;border-radius:8px;flex-wrap:wrap;align-items:center;gap:14px;padding:10px 12px;display:flex}.billing-row{align-items:flex-end}.amount-field{width:148px}.icon-text-button.hot{color:#fff;background:linear-gradient(135deg,#ff315f,#9b102b);box-shadow:0 12px 22px #ff315f3d}.billing-hint{color:var(--muted);font-size:12px;font-weight:800;line-height:1.45}.checkout-panel{border:1px solid var(--line-strong);background:#0b080c;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.checkout-panel strong,.checkout-panel span{display:block}.checkout-panel strong{color:var(--text)}.checkout-panel span{color:var(--muted);margin-top:4px;font-size:12px;font-weight:800}.checkout-link,.checkout-warning{white-space:nowrap;border:0;border-radius:8px;justify-content:center;align-items:center;min-height:36px;padding:0 12px;font-size:12px;font-weight:950;display:inline-flex}.checkout-link{background:var(--teal-soft);color:var(--teal)}.checkout-warning{background:var(--red-soft);color:var(--red)}.payment-modal-backdrop{z-index:80;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#050306d1;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.payment-modal{border:1px solid var(--line-strong);background:#120d12;border-radius:8px;grid-template-rows:auto minmax(360px,1fr) auto;width:min(960px,100%);max-height:calc(100vh - 48px);display:grid;overflow:hidden;box-shadow:0 34px 90px #000000c7}.payment-modal-head,.payment-modal-actions{justify-content:space-between;align-items:center;gap:14px;padding:16px;display:flex}.payment-modal-head{border-bottom:1px solid var(--line)}.payment-modal-head h2{color:var(--text);margin:0;font-size:26px;line-height:1.1}.payment-modal-head span,.payment-modal-actions span{color:var(--muted);font-size:13px;font-weight:850}.payment-modal-head span{margin-top:7px;display:block}.modal-icon-button{border:1px solid var(--line);width:40px;height:40px;color:var(--text);background:#0b080c;border-radius:8px;flex:none;place-items:center;display:grid}.payment-frame-shell{background:#fff;min-height:360px}.payment-frame{background:#fff;border:0;width:100%;height:min(640px,68vh);display:block}.payment-modal-actions{border-top:1px solid var(--line);background:#0b080c}.mode-stack{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.mode-button,.icon-text-button,.run-button,.job-actions button,.job-actions a{border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;font-weight:900;display:inline-flex}.mode-button{min-height:56px;color:var(--muted);border-color:var(--line);background:#100c10;flex-direction:column;gap:3px}.mode-button small{color:var(--muted);font-size:11px;font-weight:900;line-height:1}.mode-button:hover,.mode-button.active{background:var(--ink);color:#fff;border-color:var(--rose);box-shadow:inset 0 -3px #ff315f61}.composer-grid{grid-template-columns:minmax(380px,.95fr) minmax(360px,1.05fr);gap:16px;min-width:0;display:grid}.prompt-panel{border:1px solid var(--line);background:#100c10;border-radius:8px;align-content:start;gap:14px;min-width:0;padding:16px;display:grid}.section-head{justify-content:space-between;align-items:center;gap:14px;display:flex}.section-head h2{font-size:24px;line-height:1.1}.icon-text-button{background:var(--ink);color:#fff;padding:0 12px}.icon-text-button.secondary{color:var(--text);border-color:var(--line);background:#181218}.field-label{color:#e8c9d2;gap:8px;font-size:12px;font-weight:950;display:grid}.field-label textarea,.compact-field input,.compact-field select{border:1px solid var(--line);width:100%;color:var(--text);background:#0b080c;border-radius:8px;outline:none;padding:11px 12px}.field-label textarea:focus,.compact-field input:focus,.compact-field select:focus{border-color:var(--rose);box-shadow:0 0 0 3px #ff315f2b}.field-label textarea{resize:vertical;min-height:178px;line-height:1.55}.settings-row{grid-template-columns:repeat(2,minmax(0,150px));gap:10px;display:grid}.video-settings-row{grid-template-columns:minmax(120px,150px) minmax(0,1fr);align-items:stretch}.video-ratio-note{border:1px solid var(--line);min-height:42px;color:var(--muted);background:#0b080c;border-radius:8px;flex-direction:column;justify-content:center;gap:2px;padding:8px 12px;display:flex}.video-ratio-note strong{color:var(--text);font-size:13px}.video-ratio-note span{font-size:12px}.compact-field{color:#e8c9d2;gap:7px;font-size:12px;font-weight:950;display:grid}.compact-field input,.compact-field select{min-height:42px}.upload-zone{border:1px dashed var(--line-strong);text-align:center;min-height:126px;color:var(--muted);background:#0b080c;border-radius:8px;place-items:center;padding:18px;display:grid}.upload-zone input{display:none}.upload-zone strong{color:var(--text);margin-top:8px;display:block}.upload-zone span{max-width:320px;font-size:12px;font-weight:760;line-height:1.45}.upload-zone.busy{border-color:var(--rose);background:var(--rose-soft)}.action-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.run-button{color:#fff;background:linear-gradient(135deg,#ff315f,#9b102b);min-height:50px;padding:0 22px;box-shadow:0 14px 28px #ff315f47}.action-row span{color:var(--muted);font-size:12px;font-weight:850}.notice{border-radius:8px;align-items:flex-start;gap:8px;padding:11px 12px;font-size:13px;font-weight:850;line-height:1.45;display:flex}.notice.success{background:var(--green-soft);color:var(--green)}.notice.danger{background:var(--red-soft);color:var(--red)}.queue-surface{padding:18px}.composer-grid .queue-surface{align-self:stretch;min-width:0}.queue-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.queue-actions>span{color:var(--muted);font-size:12px;font-weight:850}.job-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px;display:grid}.composer-grid .job-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.job-card{border:1px solid var(--line);box-shadow:var(--shadow-soft);background:#100c10;border-radius:8px;overflow:hidden}.job-preview{background:var(--surface-strong);height:208px}.job-preview img,.job-preview video{object-fit:cover;width:100%;height:100%}.job-processing{height:100%;color:var(--muted);align-content:center;place-items:center;gap:8px;font-weight:850;display:grid}.job-file-output{height:100%;color:var(--muted);text-align:center;align-content:center;place-items:center;gap:7px;padding:18px;font-weight:850;display:grid}.job-file-output strong{color:var(--text);font-size:15px}.job-file-output span{font-size:12px}.job-file-output.small{padding:12px}.job-body{gap:9px;padding:12px;display:grid}.job-title-row{justify-content:space-between;align-items:center;gap:8px;display:flex}.job-title-row small{color:var(--muted);font-weight:800}.status-chip{background:var(--gold-soft);color:var(--gold);padding:5px 8px;font-size:12px;font-weight:950}.status-chip.completed,.status-chip.succeeded{background:var(--green-soft);color:var(--green)}.status-chip.failed{background:var(--red-soft);color:var(--red)}.job-body h3{font-size:15px}.job-body p{color:var(--muted);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:12px;font-weight:740;line-height:1.45;display:-webkit-box;overflow:hidden}.job-meta{flex-wrap:wrap;gap:7px;display:flex}.job-meta span{border:1px solid var(--line);color:#e8c9d2;background:#0b080c;padding:5px 8px;font-size:12px;font-weight:900}.job-error{background:var(--red-soft);color:var(--red);border-radius:8px;padding:9px;font-size:12px;font-weight:850;line-height:1.4}.job-actions{flex-wrap:wrap;gap:8px;display:flex}.job-actions button,.job-actions a{border-color:var(--line);color:#e8c9d2;background:#0b080c;min-height:34px;padding:0 10px;font-size:12px}.empty-state{min-height:220px;color:var(--muted);text-align:center;border:1px dashed var(--line-strong);border-radius:8px;align-content:center;place-items:center;gap:8px;margin-top:16px;display:grid}.composer-grid .empty-state{min-height:344px}.empty-state strong{color:var(--text);font-size:17px}.empty-state span{font-size:13px;font-weight:760}.empty-state.compact{min-height:150px}.history-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.history-card{border:1px solid var(--line);background:#100c10;border-radius:8px;overflow:hidden}.history-preview{background:var(--surface-strong);height:178px}.history-preview img,.history-preview video{object-fit:cover;width:100%;height:100%}.history-body{gap:8px;padding:12px;display:grid}.history-body strong,.history-body span{overflow-wrap:anywhere}.history-body strong{color:var(--text);font-size:15px}.history-body span{color:var(--muted);font-size:12px;font-weight:800}.history-body a{border:1px solid var(--line);color:#e8c9d2;background:#0b080c;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:34px;padding:0 10px;font-size:12px;font-weight:900;display:inline-flex}.reference-surface{border:1px solid var(--line);box-shadow:var(--shadow-soft);background:#100c10;border-radius:8px;overflow:hidden}.reference-surface img,.reference-surface video{object-fit:cover;object-position:center 16%;width:100%;max-height:780px}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:1280px){.studio-header{grid-template-columns:1fr auto}.product-lockup{grid-column:1/-1}.composer-grid{grid-template-columns:1fr}.composer-grid .job-grid,.job-grid,.history-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.auth-panel{grid-template-columns:1fr 1fr}}@media (max-width:900px){.studio-shell{padding:16px}.studio-header{grid-template-columns:1fr;align-items:start;min-height:0;padding:20px}.provider-pill{justify-self:start}.job-grid,.composer-grid .job-grid,.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-panel,.account-compact{grid-template-columns:1fr}}@media (max-width:640px){.studio-shell{padding:12px}.studio-header,.composer-surface,.queue-surface,.account-surface,.history-surface,.billing-surface{padding:14px}.studio-header h1{font-size:33px}.mode-stack,.settings-row,.job-grid,.history-grid,.composer-grid .job-grid{grid-template-columns:1fr}.section-head,.queue-actions,.action-row,.billing-row,.auth-actions,.checkout-panel,.payment-modal-head,.payment-modal-actions{flex-direction:column;align-items:stretch}.account-actions{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.icon-text-button,.run-button,.checkout-link,.checkout-warning{width:100%}.payment-modal-backdrop{padding:10px}.payment-modal{grid-template-rows:auto minmax(300px,1fr) auto;max-height:calc(100vh - 20px)}.payment-frame{height:64vh}.amount-field{width:100%}.reference-surface img,.reference-surface video{aspect-ratio:4/5;max-height:none}}
