:root{--bg:#f7f7fb;--panel:#fff;--panel-soft:#faf9ff;--line:#e8e6ef;--line-strong:#d9d5e5;--text:#211d2d;--muted:#777286;--purple:#7c3aed;--purple-dark:#5b21b6;--purple-soft:#f1eafe;--pink:#d946ef;--green:#139a68;--green-soft:#e8f8f1;--red:#d53d5c;--red-soft:#fff0f3;--amber:#ae6c07;--amber-soft:#fff7df;--shadow:0 12px 34px rgba(43,32,65,.07)}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;color:var(--text);font:14px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:radial-gradient(circle at 92% 0,#f0e9ff 0,transparent 27%),var(--bg);min-height:100vh}a{color:inherit}.icon{width:19px;height:19px;flex:0 0 auto}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-right:1px solid var(--line);padding:21px 15px 18px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;padding:0 8px 18px}.brand img{width:44px;height:44px}.brand b,.brand small{display:block}.brand b{font-size:14px;letter-spacing:.5px}.brand small{font-size:8px;letter-spacing:2.5px;color:#8c849c;font-weight:700}.sidebar nav{overflow-y:auto;padding-right:2px}.nav-label{font-size:9px;letter-spacing:1.4px;color:#a39dac;font-weight:800;margin:20px 12px 7px}.sidebar nav a{display:flex;align-items:center;gap:11px;min-height:42px;padding:10px 12px;border-radius:11px;text-decoration:none;color:#6f6979;font-weight:650;margin:3px 0;transition:.18s}.sidebar nav a:hover{background:#f7f4fc;color:#573d78}.sidebar nav a.active{background:linear-gradient(135deg,#f0e8ff,#f8f3ff);color:var(--purple-dark);box-shadow:inset 0 0 0 1px #e5d7fb}.sidebar nav a.active .icon{color:var(--purple)}.sidebar nav a em{margin-left:auto;font-size:8px;font-style:normal;background:#eee7fa;color:#7455a2;padding:2px 6px;border-radius:99px}.profile{margin-top:auto;border-top:1px solid var(--line);padding:16px 5px 0;display:grid;grid-template-columns:38px 1fr 32px;align-items:center;gap:10px}.profile .avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--purple),var(--pink));font-weight:800;box-shadow:0 7px 15px #7c3aed33}.profile b,.profile small{display:block}.profile b{font-size:12px}.profile small{color:#938d9d;font-size:9px}.profile>a{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#90899b}.profile>a:hover{background:#f2eff6;color:var(--purple)}.main{margin-left:252px;padding:27px 38px 70px;max-width:1550px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;min-height:54px}.topbar h1{font-size:25px;line-height:1.2;margin:3px 0 0;letter-spacing:-.4px}.eyebrow{font-size:9px;letter-spacing:1.6px;color:#9c94a8;font-weight:800}.menu-button{display:none;border:0;background:#fff;border-radius:10px;padding:9px;color:#564f61}.mode-pill,.credits{display:flex;align-items:center;gap:8px;border:1px solid #e4d8f7;background:#fff;padding:8px 13px;border-radius:99px;color:#6c4b97;font-size:11px;font-weight:750;box-shadow:0 6px 20px #4b2a7112}.mode-pill .icon{color:var(--purple)}.credits b{font-size:15px;color:var(--purple-dark)}.credits span{font-size:10px;color:#91899c}.hero-card{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:180px;border-radius:22px;padding:30px 34px;margin-bottom:20px;background:linear-gradient(125deg,#f7f1ff,#fff 70%);border:1px solid #e6d9f7;box-shadow:var(--shadow)}.hero-card:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-80px;top:-130px;background:radial-gradient(circle,#d9c4ff 0,#efe5ff 45%,transparent 70%);opacity:.7}.hero-card>div{position:relative;z-index:1}.hero-card h2{font-size:25px;line-height:1.22;margin:13px 0 8px;max-width:650px;letter-spacing:-.5px}.hero-card p{margin:0;color:#766d82;max-width:620px}.hero-art{width:105px;height:105px;border-radius:30px;display:grid;place-items:center;margin-right:25px;background:linear-gradient(135deg,#8b5cf6,#c026d3);color:#fff;box-shadow:0 20px 45px #7c3aed35;transform:rotate(4deg)}.hero-icon{width:49px;height:49px}.video-hero{background:linear-gradient(125deg,#fff4fb,#fff 70%);border-color:#f4d8e9}.video-hero .hero-art{background:linear-gradient(135deg,#db2777,#9333ea)}.api-hero{background:linear-gradient(125deg,#eef6ff,#fff 70%);border-color:#d7e8fb}.api-hero .hero-art{background:linear-gradient(135deg,#2563eb,#7c3aed)}.badge{display:inline-flex;align-items:center;gap:6px;font-size:9px;letter-spacing:.8px;font-weight:850;border-radius:99px;padding:6px 9px}.badge .icon{width:13px;height:13px}.badge.free{background:var(--green-soft);color:#087b51;border:1px solid #c7efdd}.badge.api{background:#e8f1ff;color:#315ea4;border:1px solid #cfe0fa}.card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:24px;margin-bottom:18px;box-shadow:0 8px 26px rgba(46,36,61,.045)}.card h2{font-size:16px;margin:0 0 3px}.card p{color:var(--muted);margin:0}.step{display:flex;gap:13px;align-items:flex-start;margin-bottom:21px}.step>b{background:linear-gradient(135deg,#8b5cf6,#a855f7);color:#fff;width:31px;height:31px;border-radius:10px;display:grid;place-items:center;box-shadow:0 6px 14px #7c3aed2b}.step h2{font-size:16px;margin:1px 0 2px}.step p{font-size:12px}.uploads{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.uploads.two{grid-template-columns:repeat(2,minmax(190px,300px))}.upload{min-height:138px;background:#fbfaff;border:1.5px dashed #d9d3e3;border-radius:14px;padding:15px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;transition:.2s}.upload:hover,.upload.has-file{border-color:#9d75e3;background:#f8f3ff;transform:translateY(-1px)}.upload.featured{border-color:#b9a1df;background:#faf7ff}.upload input{display:none}.upload>span{width:36px;height:36px;border-radius:11px;background:#f0e8fc;color:var(--purple);display:grid;place-items:center;margin-bottom:9px}.upload>span .icon{width:18px}.upload b{font-size:12px}.upload small{font-size:9px;color:#9992a2;margin-top:4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.full{grid-column:1/-1}label{display:block;font-size:11px;color:#5f5968;font-weight:750;margin:0 0 6px}label small{color:#9b94a2;font-weight:500}input,select,textarea{width:100%;border:1px solid #dcd8e4;background:#fff;color:#2d2934;border-radius:10px;padding:11px 12px;font:inherit;outline:none;transition:.18s}input:hover,select:hover,textarea:hover{border-color:#c8bed7}input:focus,select:focus,textarea:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px #8b5cf619}textarea{min-height:92px;resize:vertical}.lock{background:#faf7ff;border:1px solid #e4d9f4;border-radius:12px;padding:13px}.lock label{display:flex;align-items:center;gap:10px;margin:0}.lock input{width:18px;accent-color:var(--purple)}.lock b,.lock small{display:block}.lock small{color:#8c8497;font-weight:450}.action-bar{position:sticky;bottom:14px;z-index:10;background:#ffffffed;backdrop-filter:blur(16px);border:1px solid #dfd9e8;border-radius:15px;padding:13px 17px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 15px 45px #35234618}.action-bar small,.action-bar b{display:block}.action-bar small{color:#9790a0;font-size:9px}.primary,.secondary{min-height:42px;border:0;border-radius:10px;padding:10px 17px;font-weight:750;color:#fff;background:linear-gradient(135deg,#7c3aed,#a855f7);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;box-shadow:0 8px 18px #7c3aed25;transition:.18s}.primary:hover{filter:brightness(1.04);transform:translateY(-1px)}.primary:disabled{opacity:.65;cursor:wait}.secondary{background:#fff;border:1px solid #ddd8e5;color:#5e5767;box-shadow:none}.secondary:hover{border-color:#bba8d4;background:#faf8fd}.secondary.purple{color:#6d35ad;border-color:#d8c6ef;background:#fbf8ff}.wide{width:100%;margin-top:18px}.alert{border-radius:12px;padding:12px 15px;margin:0 0 18px;display:flex;align-items:center;gap:9px;font-weight:650}.alert.success{background:var(--green-soft);border:1px solid #c6ecd9;color:#087b51}.alert.error{background:var(--red-soft);border:1px solid #f7cbd4;color:#b22f4a}.auth-main{min-height:100vh;display:grid;place-items:center;padding:25px}.auth-main .topbar{display:none}.login-card{width:min(420px,100%);background:#fff;border:1px solid var(--line);border-radius:23px;padding:34px;box-shadow:0 35px 100px #37275320}.login-card h2,.login-card p{text-align:center}.login-card h2{font-size:23px;margin:10px 0 2px}.login-card p{color:var(--muted);margin:0 0 26px}.login-logo{width:62px;height:62px;margin:auto}.login-logo img{width:100%}.login-card label,.card form>label{margin-top:14px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-heading>div{display:flex;align-items:center;gap:11px}.section-icon{width:39px;height:39px;border-radius:11px;display:grid;place-items:center;background:#f0e9fc;color:var(--purple)}.section-icon .icon{width:20px;height:20px}.prompt-result textarea{min-height:280px;background:#fbfaff;border-color:#e1d9ec;line-height:1.65;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.prompt-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.workflow-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:17px}.workflow-steps span{display:flex;align-items:center;gap:8px;background:#faf9fc;border:1px solid #ece9f0;border-radius:10px;padding:10px;color:#746d7b;font-size:10px}.workflow-steps b{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:#ede5fa;color:#7045aa}.reference-strip{display:flex;gap:12px;overflow-x:auto;padding-bottom:3px}.reference-strip a{position:relative;flex:0 0 126px;border:1px solid var(--line);border-radius:12px;overflow:hidden;text-decoration:none;background:#fafafa}.reference-strip img{width:100%;height:130px;object-fit:cover;display:block}.reference-strip span{display:block;padding:7px 9px;font-size:9px;color:#716a79}.project-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.project-head p{color:var(--muted);margin:6px 0 0}.filter-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;color:#78717e;font-size:12px}.project-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.project-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;text-decoration:none;transition:.2s;box-shadow:0 8px 22px #4134520b}.project-card:hover{transform:translateY(-3px);border-color:#cfbde7;box-shadow:var(--shadow)}.thumb{position:relative;aspect-ratio:4/3;background:linear-gradient(135deg,#f5f0fc,#faf9fc);display:grid;place-items:center;overflow:hidden}.thumb>img{width:100%;height:100%;object-fit:cover}.type-icon{width:64px;height:64px;border-radius:19px;display:grid;place-items:center;background:#eadffa;color:#7845b5}.type-icon.video{background:#f8deed;color:#b32e74}.type-icon .icon{width:30px;height:30px}.mode-tag{position:absolute;top:9px;right:9px;background:#ffffffdf;backdrop-filter:blur(8px);padding:4px 7px;border-radius:99px;font-size:8px;text-transform:uppercase;letter-spacing:.5px;color:#675f70}.project-info{padding:14px}.project-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.project-title b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-title .icon{width:15px;color:#a198aa}.project-info small{display:block;color:#9a93a1;margin:3px 0 10px;font-size:9px}.status{display:inline-flex;font-size:8px;font-style:normal;text-transform:uppercase;letter-spacing:.6px;border-radius:99px;padding:4px 7px;background:#eeeaf1;color:#817989;font-weight:800}.status.completed,.status.manual_complete{background:var(--green-soft);color:#087b51}.status.failed{background:var(--red-soft);color:#bd3551}.status.processing{background:var(--amber-soft);color:var(--amber)}.status.prompt_ready{background:#eee8ff;color:#6f3db0}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.gallery figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.gallery img,.gallery video{width:100%;display:block;aspect-ratio:4/5;object-fit:cover;background:#f0edf3}.gallery video{aspect-ratio:9/16}.gallery a{display:flex;align-items:center;justify-content:center;gap:7px;padding:11px;text-decoration:none;color:#6c43a3;font-weight:700;font-size:11px}.gallery a .icon{width:16px}.narrow{max-width:690px}.ok-text{color:var(--green);float:right}.split{display:grid;grid-template-columns:340px 1fr;gap:18px}.settings-layout{display:grid;grid-template-columns:minmax(0,700px) 280px;gap:18px}.info-card{background:linear-gradient(145deg,#f0e8ff,#fff);border:1px solid #dfd1f2;border-radius:18px;padding:22px;height:max-content}.info-card>b{font-size:15px}.info-card p{color:#756c80;font-size:11px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:12px;border-bottom:1px solid #eeebf1}th{font-size:9px;color:#99919f;text-transform:uppercase;letter-spacing:.7px}td small{display:block;color:var(--muted);font-size:9px}.empty{grid-column:1/-1;background:#fff;border:1px dashed #d8d2df;padding:50px;border-radius:17px;text-align:center;color:var(--muted)}.empty h3{color:var(--text);margin:8px 0 1px}.empty-icon{width:42px;height:42px;color:#9b76ca}.update-grid{display:grid;grid-template-columns:minmax(340px,520px) 1fr;gap:18px}.update-card{text-align:center}.version-orb{width:70px;height:70px;border-radius:21px;margin:0 auto 13px;display:grid;place-items:center;background:linear-gradient(135deg,#7c3aed,#d946ef);color:#fff;box-shadow:0 14px 30px #7c3aed35}.version-orb .icon{width:32px;height:32px}.update-card>span{font-size:8px;letter-spacing:1.2px;color:#9a92a2;font-weight:800}.update-card>h2{font-size:21px;margin:3px 0 8px}.update-drop{min-height:135px;margin:20px 0 0!important;border:1.5px dashed #cabadd;border-radius:14px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;background:#fbf8ff}.update-drop:hover,.update-drop.has-file{border-color:var(--purple);background:#f6f0ff}.update-drop input{display:none}.update-drop>.icon{width:25px;height:25px;color:var(--purple);margin-bottom:7px}.update-drop b,.update-drop small{display:block}.update-drop small{color:#9a92a2}.warning{margin-top:18px;text-align:left;padding:12px 13px;border-radius:11px;background:var(--amber-soft);border:1px solid #f0dfaa;color:#795518}.warning p{font-size:10px;color:#8b6a2e}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#27212e;color:#fff;border-radius:10px;padding:10px 16px;font-size:11px;font-weight:700;z-index:100;transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-shade{display:none}
@media(max-width:1150px){.uploads{grid-template-columns:repeat(3,1fr)}.project-grid{grid-template-columns:repeat(3,1fr)}.update-grid{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}}
@media(max-width:820px){.sidebar{transform:translateX(-105%);transition:.25s}.sidebar.open{transform:none;box-shadow:20px 0 60px #2d203d20}.mobile-shade{position:fixed;inset:0;background:#23192f55;z-index:25}.mobile-shade.show{display:block}.main{margin:0;padding:21px 16px 60px}.menu-button{display:grid;place-items:center;margin-right:12px}.topbar{justify-content:flex-start}.topbar>div:nth-child(2){flex:1}.mode-pill,.credits{margin-left:auto}.hero-card{padding:25px}.hero-art{width:80px;height:80px;margin-right:5px}.form-grid,.project-grid,.gallery{grid-template-columns:1fr 1fr}.workflow-steps{grid-template-columns:1fr}.split{grid-template-columns:1fr}}
@media(max-width:560px){.topbar h1{font-size:21px}.eyebrow{display:none}.mode-pill{display:none}.hero-card{min-height:auto;padding:22px}.hero-card h2{font-size:20px}.hero-art{display:none}.uploads,.uploads.two,.form-grid,.project-grid,.gallery{grid-template-columns:1fr}.full{grid-column:auto}.upload{min-height:115px}.action-bar{gap:12px}.action-bar .primary{padding:10px 12px}.prompt-actions>*{width:100%}.project-head{align-items:flex-start;gap:10px}.section-heading{align-items:flex-start}.section-heading>.badge{display:none}.gallery video{aspect-ratio:9/16}}

/* v1.3 project and gallery deletion */
.project-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.project-actions form,.gallery-actions form,.upload-gallery form{margin:0}.danger-button,.gallery-delete{color:#b42e4a!important;border-color:#f0c6d0!important;background:#fff7f9!important}.danger-button:hover,.gallery-delete:hover{background:#ffedf1!important;border-color:#df8da0!important}.upload-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.upload-gallery figure{margin:0;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff}.upload-gallery figure>a{display:block;text-decoration:none}.upload-gallery img{display:block;width:100%;height:175px;object-fit:contain;background:#f4f1f7}.upload-gallery span{display:block;padding:8px 10px 5px;color:#706778;font-size:9px}.gallery-delete{width:100%;min-height:35px;border:0;border-top:1px solid #f2d3da;padding:8px 10px;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;font:inherit;font-size:9px;font-weight:750}.gallery-delete .icon{width:14px;height:14px}.gallery-actions{display:grid;grid-template-columns:1fr 1fr}.gallery-actions>a{min-height:38px}.gallery-actions .gallery-delete{height:100%;border-top:0;border-left:1px solid #f2d3da}.gallery-empty{padding:30px;border:1px dashed #dcd5e2;border-radius:12px;text-align:center;color:#8e8595;font-size:11px}
@media(max-width:1150px){.upload-gallery{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.upload-gallery{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.project-head{flex-direction:column}.project-actions{width:100%;justify-content:flex-start}.project-actions>*{flex:1}.project-actions form button{width:100%}.upload-gallery{grid-template-columns:1fr 1fr}.upload-gallery img{height:155px}}

/* v1.3 instant upload previews */
.upload.has-preview{min-height:210px;padding:9px;justify-content:flex-start;overflow:hidden}.upload-preview{display:block;width:100%;height:128px;object-fit:contain;border-radius:10px;background:#f2eef7;margin-bottom:8px}.upload.has-preview>span{display:none}.upload.has-preview b{font-size:10px}.upload.has-preview small{width:100%;font-size:8px}.upload.has-preview:after{content:"Click to replace";display:block;margin-top:3px;color:#7c3aed;font-size:8px;font-weight:750}

/* v1.3 Lesung Creation login identity */
.login-brand{display:flex;align-items:center;justify-content:center;gap:11px;margin:0 auto 16px}.login-brand img{width:62px;height:62px;flex:0 0 62px}.login-brand b,.login-brand small{display:block;text-align:left}.login-brand b{font-size:16px;letter-spacing:.2px}.login-brand small{font-size:8px;letter-spacing:1.7px;color:#8c8497;font-weight:750}.login-card>.login-brand+h2{margin-top:0}.login-footer{margin-top:24px;padding-top:17px;border-top:1px solid var(--line);text-align:center;color:#9991a0;font-size:9px}

/* v1.3 matched photo + video prompt module */
.paired-hero{background:linear-gradient(135deg,#fff 0%,#f7f1ff 48%,#fff0f7 100%);border-color:#e2d2f5}.paired-hero .hero-art{background:linear-gradient(135deg,#7c3aed,#db2777);box-shadow:0 18px 45px #9b4dcc28}.pose-preview{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:14px 0 18px}.pose-preview span{display:flex;align-items:center;gap:8px;padding:11px 12px;background:#fff;border:1px solid #e9e2ef;border-radius:12px;color:#6f6578;font-size:10px;font-weight:750;box-shadow:0 4px 16px #3c274609}.pose-preview b{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#f0e6ff;color:#7036b6}.safety-note{display:flex;gap:11px;align-items:flex-start;margin:0 0 15px;padding:14px 16px;border:1px solid #dcd2ed;border-radius:14px;background:#fbf8ff;color:#635772}.safety-note>.icon{color:#7c3aed}.safety-note b,.safety-note span{display:block}.safety-note b{font-size:12px;color:#362d3e}.safety-note span{font-size:10px;line-height:1.6;margin-top:2px}.paired-result>.all-prompts{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.paired-list{display:grid;gap:16px;margin-top:22px}.pair-card{overflow:hidden;border:1px solid #e5dcec;border-radius:16px;background:#fcfbfd}.pair-card>header{display:flex;gap:12px;align-items:flex-start;padding:15px 17px;background:linear-gradient(90deg,#f4ecff,#fff7fb);border-bottom:1px solid #e8dfef}.pair-card>header>span{display:grid;place-items:center;width:31px;height:31px;flex:none;border-radius:10px;background:#7c3aed;color:#fff;font-weight:850}.pair-card h3{margin:0;font-size:14px}.pair-card header p{margin:3px 0 0;color:#7d7287;font-size:10px;line-height:1.45}.pair-columns{display:grid;grid-template-columns:1fr 1fr;gap:0}.pair-columns>div{padding:16px}.pair-columns>div+div{border-left:1px solid #ece5f0}.pair-columns label{display:flex;align-items:center;gap:7px;color:#66586f;font-size:10px;text-transform:uppercase;letter-spacing:.55px}.pair-columns textarea{min-height:250px;margin:8px 0 10px;background:#fff;font-size:10px;line-height:1.55}.pair-columns button{width:100%;justify-content:center}.type-icon.paired{background:linear-gradient(135deg,#f0e5ff,#ffe7f1);color:#792db7;display:flex;flex-direction:column;gap:5px}.type-icon.paired small{font-size:10px;font-weight:900}.paired-result .prompt-actions{margin-top:5px}
.paired-hero{background:linear-gradient(135deg,#fff 0%,#f7f1ff 48%,#fff0f7 100%);border-color:#e2d2f5}.paired-hero .hero-art{background:linear-gradient(135deg,#7c3aed,#db2777);box-shadow:0 18px 45px #9b4dcc28}.pose-preview{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:14px 0 18px}.pose-preview span{display:flex;align-items:center;gap:8px;padding:11px 12px;background:#fff;border:1px solid #e9e2ef;border-radius:12px;color:#6f6578;font-size:10px;font-weight:750;box-shadow:0 4px 16px #3c274609}.pose-preview b{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#f0e6ff;color:#7036b6}.upload.is-disabled{opacity:.48;cursor:not-allowed;filter:grayscale(.25)}.safety-note{display:flex;gap:11px;align-items:flex-start;margin:0 0 15px;padding:14px 16px;border:1px solid #dcd2ed;border-radius:14px;background:#fbf8ff;color:#635772}.safety-note>.icon{color:#7c3aed}.safety-note b,.safety-note span{display:block}.safety-note b{font-size:12px;color:#362d3e}.safety-note span{font-size:10px;line-height:1.6;margin-top:2px}.paired-result>.all-prompts{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.paired-list{display:grid;gap:16px;margin-top:22px}.pair-card{overflow:hidden;border:1px solid #e5dcec;border-radius:16px;background:#fcfbfd}.pair-card>header{display:flex;gap:12px;align-items:flex-start;padding:15px 17px;background:linear-gradient(90deg,#f4ecff,#fff7fb);border-bottom:1px solid #e8dfef}.pair-card>header>span{display:grid;place-items:center;width:31px;height:31px;flex:none;border-radius:10px;background:#7c3aed;color:#fff;font-weight:850}.pair-card h3{margin:0;font-size:14px}.pair-card header p{margin:3px 0 0;color:#7d7287;font-size:10px;line-height:1.45}.pair-columns{display:grid;grid-template-columns:1fr 1fr;gap:0}.pair-columns>div{padding:16px}.pair-columns>div+div{border-left:1px solid #ece5f0}.pair-columns label{display:flex;align-items:center;gap:7px;color:#66586f;font-size:10px;text-transform:uppercase;letter-spacing:.55px}.pair-columns textarea{min-height:250px;margin:8px 0 10px;background:#fff;font-size:10px;line-height:1.55}.pair-columns button{width:100%;justify-content:center}.type-icon.paired{background:linear-gradient(135deg,#f0e5ff,#ffe7f1);color:#792db7;display:flex;flex-direction:column;gap:5px}.type-icon.paired small{font-size:10px;font-weight:900}.paired-result .prompt-actions{margin-top:5px}
@media(max-width:820px){.pose-preview{grid-template-columns:repeat(3,1fr)}.pair-columns{grid-template-columns:1fr}.pair-columns>div+div{border-left:0;border-top:1px solid #ece5f0}}
@media(max-width:560px){.pose-preview{grid-template-columns:1fr 1fr}.pose-preview span:last-child{grid-column:1/-1}.pair-columns textarea{min-height:220px}}

/* v1.2 interface safeguards: always light, cache-busted assets, bounded icons and independently scrollable navigation. */
:root{color-scheme:light}html,body{background-color:var(--bg)}.icon{display:block;flex-shrink:0}.sidebar{height:100vh;height:100dvh;overflow:hidden;background:rgba(255,255,255,.98)}.brand,.profile{flex:0 0 auto}.sidebar nav{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:4px}.media-missing{object-fit:cover!important;background:#f6f0ff!important}.media-fallback{width:100%;aspect-ratio:9/16;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;background:#f6f0ff;color:#766d82;padding:20px}.media-fallback img{width:78px!important;height:78px!important;aspect-ratio:1!important;object-fit:contain!important}.media-fallback b,.media-fallback small{display:block}.media-fallback small{font-size:10px;color:#93899d}

/* v1.5 workflow, gallery, presets and storage */
.language-switch{display:flex;align-items:center;gap:4px;margin:9px 5px 0;padding:9px;border-top:1px solid var(--line)}.language-switch label{margin:0 auto 0 0;font-size:9px}.language-switch button{width:auto;min-width:34px;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#777080;font-size:9px;font-weight:800;cursor:pointer}.language-switch button.active{color:#fff;border-color:var(--purple);background:var(--purple)}
.project-filters{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:10px;align-items:end;margin-bottom:17px}.project-filters label{margin:0}.filter-actions{display:flex;gap:7px}.filter-actions>*{flex:1}.type-pill,.pose-badge,.sequence-badge{display:inline-flex;width:max-content;padding:4px 8px;border-radius:99px;background:#f0e8ff;color:#6d35ad;font-size:8px;font-weight:850;letter-spacing:.6px}.pose-badge,.sequence-badge{position:absolute;z-index:2;top:10px;background:#ffffffed;box-shadow:0 4px 16px #2f1f4018}.pose-badge{left:10px}.sequence-badge{right:10px;background:#27212edb;color:#fff}.gallery figure{position:relative}.media-preview{display:block!important;padding:0!important}.preview-action{width:100%;padding:8px;border:0;border-top:1px solid var(--line);background:#fbf9ff;color:#6c43a3;font-weight:750;cursor:pointer}.pose-assign{display:grid;grid-template-columns:1fr auto;gap:6px;padding:9px;border-top:1px solid var(--line)}.pose-assign select,.pose-assign button{padding:7px;font-size:9px}.pose-assign button{border:0;border-radius:8px;background:#eee7fa;color:#60369a;font-weight:800;cursor:pointer}.progress-card td:not(:first-child){min-width:120px}.tracker-status{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:5px 9px;font-size:9px;font-weight:800}.tracker-status.ready{background:var(--green-soft);color:#087b51}.tracker-status.pending{background:#f2eff5;color:#857d8d}.prompt-history textarea{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.55}.history-table{margin-top:20px}.preset-save{position:relative}.preset-save summary{list-style:none;cursor:pointer}.preset-save summary::-webkit-details-marker{display:none}.preset-save>form{position:absolute;right:0;top:48px;z-index:15;width:270px;padding:15px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow)}.preset-save>form label{margin-top:0}.preset-save>form button{width:100%;margin-top:9px}.preset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.preset-card h3{margin:12px 0 5px}.preset-card p{min-height:43px}.preset-card .project-actions{margin-top:18px;justify-content:flex-start}.danger-outline{display:inline-flex;align-items:center;gap:6px;border:1px solid #f0c6d0;border-radius:10px;background:#fff7f9;color:#b42e4a;padding:10px 14px;font-weight:750;cursor:pointer}.storage-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.storage-stats .card{display:flex;flex-direction:column;gap:4px}.storage-stats span{font-size:10px;color:var(--muted)}.storage-stats strong{font-size:22px;color:var(--purple-dark)}
.lightbox[hidden]{display:none}.lightbox{position:fixed;inset:0;z-index:200;background:#15111bef;display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;padding:62px 20px 70px}.lightbox-stage{height:calc(100vh - 145px);display:grid;place-items:center}.lightbox-stage img,.lightbox-stage video{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;background:#0d0a11}.lightbox-close,.lightbox-prev,.lightbox-next{border:0;background:#ffffff16;color:#fff;border-radius:99px;cursor:pointer;font-size:34px;width:48px;height:48px}.lightbox-close{position:absolute;right:22px;top:18px}.lightbox-download{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);padding:10px 17px;border-radius:10px;background:#fff;color:#5b21b6;text-decoration:none;font-weight:800}.lightbox-open{overflow:hidden}
@media(max-width:1100px){.project-filters{grid-template-columns:1fr 1fr 1fr}.preset-grid,.storage-stats{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.project-filters,.preset-grid,.storage-stats{grid-template-columns:1fr}.lightbox{grid-template-columns:42px minmax(0,1fr) 42px;padding-inline:6px}.lightbox-prev,.lightbox-next{width:38px;height:38px}.language-switch{margin-bottom:4px}}

/* v1.6 Studio Image: mannequin-to-model front and back workflow */

/* v1.7 campaign and dialogue workflows */
.campaign-hero{background:linear-gradient(135deg,#fff7ed,#fdf2f8 52%,#f5f3ff)}
.campaign-hero .hero-art{background:linear-gradient(135deg,#f59e0b,#db2777)}
.campaign-uploads{grid-template-columns:repeat(4,minmax(0,1fr))}
.dialogue-help{display:block;margin-top:7px;color:#82798a}
.type-icon.flow{background:#e9f7ff;color:#1677a7}.type-icon.campaign{background:#fff0df;color:#b55b09}
@media(max-width:900px){.campaign-uploads{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.campaign-uploads{grid-template-columns:1fr 1fr}}
.quick-launch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch;margin-bottom:17px}.quick-link{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;column-gap:9px;align-items:center;min-height:59px;padding:10px 12px;border:1px solid #e4dcec;border-radius:13px;background:#fff;color:#42394a;text-decoration:none;box-shadow:0 6px 20px #3a244708}.quick-link>.icon:first-child{grid-row:1/3;width:27px;height:27px;padding:6px;border-radius:9px;background:#eee7ff;color:#7140bd}.quick-link>.icon:last-child{grid-column:3;grid-row:1/3;width:14px;height:14px;color:#a299a9}.quick-link b{font-size:10px}.quick-link small{font-size:8px;color:#93899b}.quick-link:hover{border-color:#bfa9df;transform:translateY(-1px)}.quick-link.gemini-video>.icon:first-child{background:#eeeaff;color:#4f46c8}.quick-link.flow>.icon:first-child{background:#fff0f6;color:#c12669}
.studio-image-hero{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;margin-bottom:18px;padding:26px 28px;border:1px solid #dfd2f2;border-radius:20px;background:radial-gradient(circle at 92% 10%,#f2ddff 0,transparent 35%),linear-gradient(135deg,#fff 0%,#faf6ff 58%,#fff6fa 100%);box-shadow:0 14px 40px #4a2a640e}.studio-image-hero h2{max-width:730px;margin:12px 0 7px;font-size:24px;line-height:1.15}.studio-image-hero p{max-width:770px;margin:0;color:#756b7c;font-size:11px;line-height:1.65}.studio-hero-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.studio-hero-pills span{padding:6px 9px;border:1px solid #e3d9ec;border-radius:99px;background:#fff;color:#765c8d;font-size:8px;font-weight:800}.studio-hero-art{display:grid;grid-template-columns:auto auto auto;align-items:center;gap:8px;padding:17px;border-radius:17px;background:#ffffffb8;box-shadow:0 12px 34px #5f36791b;color:#8b3bd2}.studio-hero-art .hero-icon{width:42px;height:42px}.studio-hero-art small{grid-row:2;color:#8d8295;font-size:7px;font-weight:850;letter-spacing:1px;text-align:center}.studio-hero-art b{font-size:22px;color:#b497c8}
.studio-reference-grid{display:grid;grid-template-columns:1fr 1fr .8fr;gap:12px}.studio-upload{min-height:160px}.studio-output-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}.studio-output-preview>div{display:flex;gap:12px;align-items:center;padding:14px 16px;border:1px solid #e3d9ec;border-radius:14px;background:#fff}.studio-output-preview b{display:grid;place-items:center;min-width:58px;height:30px;border-radius:9px;background:#eee5ff;color:#6f35af;font-size:9px}.studio-output-preview span{color:#706579;font-size:10px;font-weight:700}.studio-prompt-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.studio-prompt-card{padding:0;overflow:hidden}.studio-prompt-card header{display:flex;align-items:center;gap:11px;padding:15px 17px;border-bottom:1px solid #e8dfef;background:linear-gradient(90deg,#f4ecff,#fff)}.studio-prompt-card.back header{background:linear-gradient(90deg,#fff0f7,#fff)}.studio-prompt-card header>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#7c3aed;color:#fff;font-weight:900}.studio-prompt-card.back header>span{background:#c02669}.studio-prompt-card header small{display:block;color:#9b8fa5;font-size:7px;font-weight:850;letter-spacing:1px}.studio-prompt-card h2{margin:2px 0 0;font-size:14px}.studio-prompt-card header em{margin-left:auto;padding:5px 8px;border-radius:99px;background:#fff;color:#78509a;font-size:7px;font-style:normal;font-weight:850;letter-spacing:.5px}.studio-prompt-card textarea{width:calc(100% - 32px);min-height:360px;margin:16px;background:#fbfafd;font-size:9.5px;line-height:1.6}.studio-prompt-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 16px 16px}.studio-prompt-actions>*{justify-content:center}.studio-workflow-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.studio-workflow-steps>div{display:flex;gap:10px;padding:14px;border:1px solid #e9e2ef;border-radius:13px;background:#fcfbfd}.studio-workflow-steps>div>b{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:9px;background:#eee5ff;color:#713cb0}.studio-workflow-steps strong,.studio-workflow-steps span{display:block}.studio-workflow-steps strong{margin-bottom:3px;color:#403748;font-size:10px}.studio-workflow-steps span{color:#817788;font-size:9px;line-height:1.45}.studio-result-form{display:grid;grid-template-columns:1fr 1.6fr auto;gap:12px;align-items:end}.studio-result-form label{margin-top:0}.studio-result-form button{margin-bottom:1px}.type-icon.studio{display:flex;flex-direction:column;gap:5px;background:linear-gradient(135deg,#efe6ff,#ffe9f3);color:#7337b5}.type-icon.studio small{font-size:8px;font-weight:900}.filter-row-actions{display:flex;gap:8px}
@media(max-width:1000px){.quick-launch{grid-template-columns:1fr 1fr 1fr}.studio-prompt-grid{grid-template-columns:1fr}.studio-prompt-card textarea{min-height:280px}.studio-workflow-steps{grid-template-columns:1fr}.studio-reference-grid{grid-template-columns:1fr 1fr}.studio-reference-grid .studio-upload:last-child{grid-column:1/-1}.studio-result-form{grid-template-columns:1fr 1fr}.studio-result-form button{grid-column:1/-1}}
@media(max-width:650px){.quick-launch{grid-template-columns:1fr}.studio-image-hero{grid-template-columns:1fr;padding:20px}.studio-image-hero h2{font-size:20px}.studio-hero-art{display:none}.studio-reference-grid,.studio-output-preview{grid-template-columns:1fr}.studio-reference-grid .studio-upload:last-child{grid-column:auto}.studio-prompt-actions,.studio-result-form{grid-template-columns:1fr}.studio-result-form button{grid-column:auto}.filter-row-actions{width:100%;flex-direction:column}.studio-prompt-card textarea{min-height:330px}}
textarea.section-editable{border-color:#d7c2f3;background:#fff}.prompt-section-save{width:100%;margin-top:8px;justify-content:center}.studio-prompt-actions{grid-template-columns:repeat(3,1fr)}.studio-prompt-actions .prompt-section-save{margin-top:0}@media(max-width:650px){.studio-prompt-actions{grid-template-columns:1fr}}
.result-filename{display:block;overflow:hidden;padding:8px 10px 0;color:#776c7f;font-size:8px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}

/* v1.7.3 project covers, progress and pinning */
.project-card.is-pinned{border-color:#d8c2f1;box-shadow:0 9px 25px #6d3bb214}.project-card .thumb>img{object-fit:contain;background:#f2eff5}.pin-tag{position:absolute;top:9px;left:9px;display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:99px;background:#6d35adeb;color:#fff;font-size:8px;font-weight:850;letter-spacing:.4px}.pin-tag .icon{width:11px;height:11px}.project-status-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.project-status-row>span{color:#706779;font-size:8px;font-weight:800}.project-progress{height:5px;margin-top:9px;overflow:hidden;border-radius:99px;background:#eeeaf2}.project-progress>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7c3aed,#c026d3)}.pin-active{border-color:#cbb1eb!important;background:#f5effd!important;color:#6d35ad!important}.media-item-actions{display:grid;grid-template-columns:1fr 1fr}.media-item-actions form,.gallery-actions form{margin:0}.cover-button{width:100%;min-height:35px;border:0;border-top:1px solid #e7dcf2;padding:8px 6px;display:flex;align-items:center;justify-content:center;gap:5px;background:#fbf8ff;color:#6b3da2;cursor:pointer;font:inherit;font-size:8px;font-weight:800}.cover-button .icon{width:13px;height:13px}.cover-button.current{background:var(--green-soft);color:#087b51;cursor:default}.media-item-actions .gallery-delete{border-left:1px solid #f2d3da}.gallery-actions.with-cover{grid-template-columns:1fr 1fr 1fr}.gallery-actions .cover-button{height:100%;border-top:0}.gallery-actions.with-cover>a{border-left:1px solid var(--line)}
@media(max-width:650px){.project-status-row{align-items:flex-start;flex-direction:column}.gallery-actions.with-cover{grid-template-columns:1fr 1fr}.gallery-actions.with-cover>form:first-child{grid-column:1/-1}.gallery-actions.with-cover .cover-button{border-bottom:1px solid var(--line)}}
