@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--bg:#090b12;--panel:#111520;--panel2:#171d2a;--line:#252d3d;--text:#f5f7fb;--muted:#8c96aa;--accent:#a78bfa;--cyan:#6ee7f9}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 50% -10%,#222044 0%,var(--bg) 42%);color:var(--text);font-family:'DM Sans',sans-serif}.app-shell{max-width:600px;margin:auto;min-height:100vh;padding:0 18px 110px}.topbar{height:76px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #ffffff0d}.brand-mark{width:39px;height:39px;border-radius:13px;background:linear-gradient(135deg,#a78bfa,#5ee7ef);display:grid;place-items:center;color:#090b12;font:700 15px 'Space Grotesk';box-shadow:0 0 24px #a78bfa40}.brand-copy{display:flex;flex-direction:column;gap:3px}.brand-copy strong{font:700 13px 'Space Grotesk';letter-spacing:1px}.brand-copy strong span{color:var(--accent)}.brand-copy small{font-size:8px;letter-spacing:1.7px;color:var(--muted)}.avatar{margin-left:auto;border:1px solid #ffffff20;background:#171d2a;color:#d9d2ff;border-radius:50%;width:37px;height:37px;font-weight:700}.hero{position:relative;padding:38px 2px 27px;overflow:hidden}.eyebrow{font-size:9px;letter-spacing:2px;color:#b8a8ff;font-weight:700}.hero .eyebrow i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#7cf0d2;margin-right:7px;box-shadow:0 0 10px #7cf0d2}.hero h1{font:600 clamp(38px,10vw,53px)/1.04 'Space Grotesk';letter-spacing:-2px;margin:16px 0 12px}.hero h1 em{font-style:normal;background:linear-gradient(90deg,#c4b5fd,#72e4ed);background-clip:text;color:transparent}.hero p{font-size:13px;color:var(--muted);margin:0}.hero-glow{position:absolute;width:130px;height:130px;border-radius:50%;background:#8b5cf633;filter:blur(55px);right:0;top:20px;pointer-events:none}.mode-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:13px}.mode{border:1px solid var(--line);border-radius:12px;background:#111520;color:#aab3c5;padding:12px 6px;font-size:17px}.mode span{font-size:12px;margin-left:5px}.mode.active{border-color:#9b83ef;background:#9b83ef18;color:#d8ceff}.panel{background:linear-gradient(145deg,#141a27,#10141e);border:1px solid var(--line);border-radius:18px;padding:19px;margin-bottom:14px;box-shadow:0 15px 40px #0002}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-heading h2,.dialog-head h2{font:600 21px 'Space Grotesk';margin:5px 0 0}.pill{font-size:8px;letter-spacing:1.5px;color:#c4b5fd;border:1px solid #8b75d855;border-radius:30px;padding:6px 9px}.field-label{display:block;color:#aab3c5;font-size:9px;letter-spacing:1.5px;font-weight:700;margin:17px 0 9px}.optional{color:#69758a;font-weight:400;margin-left:5px}textarea,select{width:100%;background:#0b0f18;border:1px solid #2a3345;border-radius:11px;color:var(--text);padding:13px;font:13px 'DM Sans';outline:none}textarea{resize:vertical;min-height:105px;line-height:1.55}textarea:focus,select:focus{border-color:#9b83ef}textarea::placeholder{color:#647086}.prompt-tools{display:flex;justify-content:space-between;align-items:center;margin-top:8px;color:#68748a;font-size:10px}.text-btn{background:none;border:0;color:#c4b5fd;font-size:11px;font-weight:600;padding:5px 0}.upload-box{display:flex;align-items:center;gap:11px;padding:13px;border:1px dashed #46516a;border-radius:11px;background:#0d121c;cursor:pointer}.upload-icon{width:32px;height:32px;border-radius:9px;background:#9b83ef20;color:#c4b5fd;display:grid;place-items:center;font-size:22px}.upload-box b,.upload-box small{display:block}.upload-box b{font-size:11px}.upload-box small{font-size:9px;color:var(--muted);margin-top:3px}.upload-action{margin-left:auto;color:#b9a8ff;font-size:9px;letter-spacing:1px}.preview-wrap{margin-top:10px;display:flex;align-items:center;gap:12px}.preview-wrap img{width:58px;height:58px;object-fit:cover;border-radius:8px}.preview-wrap button{background:none;border:0;color:#fca5a5;font-size:11px}.options-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}.options-grid select{font-size:11px;padding:11px 7px}.primary-btn{width:100%;border:0;border-radius:11px;padding:15px;margin-top:21px;background:linear-gradient(100deg,#a78bfa,#69dce9);color:#0b0d15;font-weight:700;font-size:13px;box-shadow:0 8px 25px #8b75d833}.primary-btn span{margin-right:7px}.primary-btn b{float:right;font-size:17px;line-height:14px}.disclaimer{font-size:9px;line-height:1.5;color:#778297;text-align:center;margin:11px 4px 0}.gallery-panel{min-height:155px}.gallery-panel .section-heading{margin-bottom:13px}.empty-state{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;padding:18px;color:#7d899d}.empty-icon{width:42px;height:42px;border:1px solid #30394c;border-radius:13px;display:grid;place-items:center;font-size:20px;color:#a78bfa}.empty-state b{font-size:11px;color:#c3cada}.empty-state span{font-size:10px}.project{padding:12px;background:#0c111b;border:1px solid #293246;border-radius:10px;margin:8px 0}.project strong{font-size:11px}.project p{font-size:10px;color:#8c96aa;line-height:1.5;margin:6px 0}.project small{font-size:9px;color:#b8a8ff}.notice{display:flex;gap:10px;align-items:flex-start;padding:12px 13px;border:1px solid #34304c;border-radius:12px;background:#17152a;color:#a9a6bd}.notice span{color:#c4b5fd}.notice p{font-size:10px;line-height:1.5;margin:0}.notice b{color:#e4ddff}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(600px,100%);padding:11px 30px calc(11px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;background:#0b0e17ed;backdrop-filter:blur(20px);border-top:1px solid #ffffff14}.nav-item{display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;color:#707b90;background:none;border:0;font:inherit}.nav-item span{font-size:18px}.nav-item small{font-size:9px}.nav-item.selected{color:#c4b5fd}.toast{position:fixed;bottom:90px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#e4ddff;color:#111522;border-radius:20px;padding:11px 16px;font-size:11px;font-weight:600;transition:.2s;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{width:calc(100% - 36px);max-width:440px;border:1px solid #343d50;border-radius:18px;background:#141a27;color:var(--text);padding:20px}dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.close-btn{background:#252d3d;color:white;border:0;border-radius:8px;padding:8px 10px}.settings-note{font-size:12px;line-height:1.6;color:var(--muted)}.setting-line{display:flex;justify-content:space-between;padding:13px 0;border-top:1px solid #ffffff12;font-size:11px}.setting-line span{color:var(--muted)}.pending{color:#fbbf24}.secondary-btn{width:100%;padding:12px;border:1px solid #8b75d8;background:#8b75d820;color:#d6ccff;border-radius:10px;margin-top:14px}@media(min-width:600px){.app-shell{padding-left:25px;padding-right:25px}}

.generation-status{font-size:11px;line-height:1.5;color:#c4b5fd;text-align:center;margin-top:12px;overflow-wrap:anywhere}
.generated-result{margin-top:14px;padding:10px;border:1px solid #38435a;border-radius:12px;background:#0b0f18}
.generated-result img{display:block;width:100%;height:auto;border-radius:8px}
.generated-result .secondary-btn{display:block;text-align:center;text-decoration:none}
.primary-btn:disabled{opacity:.65;cursor:wait}
