@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');
:root{color-scheme:dark;--bg:#17151f;--surface:#211e2b;--surface2:#282432;--line:#3a3545;--muted:#aaa3b5;--text:#f7f3fb;--coral:#ff7164;--lilac:#c5a6ff;--lime:#d9f46b;--sky:#80dcf0;--mono:"DM Mono",monospace;--sans:"DM Sans",sans-serif;--display:"Space Grotesk",var(--sans)}
*{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth}
body{margin:0;background:radial-gradient(ellipse at 85% 6%,#342337 0,transparent 34rem),var(--bg);color:var(--text);font-family:var(--sans);font-size:14px}
button,input{font:inherit}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--lime);outline-offset:3px}
.app{max-width:1240px;margin:0 auto;padding:0 42px 26px}
.topbar{height:73px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff18}
.brand{display:flex;gap:10px;align-items:center;color:var(--text);font:500 11px var(--mono);letter-spacing:.1em;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:28px;height:28px;background:var(--coral);color:#231922;border-radius:9px;font-size:18px}
.top-actions{display:flex;gap:20px;align-items:center}
.privacy{display:inline-flex;align-items:center;gap:8px;color:#d0c9d7;font-size:12px}
.privacy-dot,.status-dot{width:8px;height:8px;background:var(--lime);border-radius:50%;box-shadow:0 0 12px #d9f46b55}
.language{background:transparent;border:1px solid var(--line);border-radius:7px;color:#c8c1d0;padding:7px 10px;font:11px var(--mono);cursor:pointer}
.heading{padding:43px 0 31px;max-width:730px}
.eyebrow,.section-label{font:500 10px var(--mono);letter-spacing:.13em;color:#bab2c4}
.eyebrow{display:flex;gap:8px;align-items:center;color:var(--coral)}
.edition{color:#81798c}
h1{font:600 clamp(42px,6vw,69px)/.96 var(--display);letter-spacing:-.055em;margin:16px 0 13px}
h1 em{font-style:normal;color:var(--lime)}
.heading p{max-width:580px;margin:0;color:#c2bbcb;font-size:15px;line-height:1.58}
.workbench{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:16px;align-items:stretch}
.controls,.preview{border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#24212d,#201d28)}
.controls{padding:20px}
.section-label{display:flex;align-items:center;gap:9px;color:#d0c9d8}
.section-label>span:first-child{color:var(--coral)}
.upload{margin-top:13px;min-height:132px;border:1px dashed #615869;border-radius:12px;background:#2a2633;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:6px;cursor:pointer;transition:.15s ease}
.upload:hover,.upload.dragging{border-color:var(--lime);background:#302d37}
.upload-icon{display:grid;place-items:center;width:32px;height:32px;background:#423341;border-radius:50%;color:var(--coral);font-size:23px;line-height:1}
.upload-title{margin-top:4px;font-weight:700}
.upload-hint{max-width:230px;color:var(--muted);font-size:11px;line-height:1.4}
.file-name{min-height:16px;margin:8px 0 0;color:#c0b8c9;font:10px var(--mono);overflow-wrap:anywhere}
.divider{height:1px;background:#ffffff16;margin:18px 0}
.field-label{display:block;margin:14px 0 7px;color:#d2ccd8;font-size:12px;font-weight:600}
.text-input{width:100%;height:39px;border:1px solid #484251;border-radius:8px;padding:0 11px;background:#191720;color:var(--text)}
.text-input::placeholder{color:#7f7888}
.control-row{display:flex;align-items:center;justify-content:space-between;margin:17px 0}
.control-row .field-label{margin:0}
.swatches{display:flex;gap:8px}
.swatch{width:23px;height:23px;border-radius:50%;border:2px solid transparent;cursor:pointer}
.swatch[aria-pressed=true]{outline:2px solid #fff;outline-offset:2px}
.coral{background:#ff7164}.lilac{background:#c5a6ff}.lime{background:#d9f46b}.sky{background:#80dcf0}
.range-label{display:flex;justify-content:space-between;align-items:center;color:#d2ccd8;font-size:12px;font-weight:600}
.range-label output{font:11px var(--mono);color:var(--lime)}
input[type=range]{appearance:none;width:100%;height:4px;margin:13px 0 19px;background:#514a59;border-radius:99px}
input[type=range]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border-radius:50%;background:var(--lime);border:3px solid var(--bg);box-shadow:0 0 0 1px var(--lime);cursor:pointer}
input[type=range]::-moz-range-thumb{width:11px;height:11px;border-radius:50%;background:var(--lime);border:3px solid var(--bg);box-shadow:0 0 0 1px var(--lime);cursor:pointer}
.create-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;border-radius:9px;padding:13px 14px;background:var(--lime);color:#201d22;font-weight:700;cursor:pointer;transition:transform .15s ease,opacity .15s ease}
.create-button:hover:not(:disabled){transform:translateY(-1px)}
.create-button:disabled{opacity:.4;cursor:not-allowed}
.model-status{display:flex;align-items:flex-start;gap:8px;margin:11px 1px 0;color:#a8a1b1;font-size:11px;line-height:1.45}
.model-status .status-dot{flex:0 0 8px;margin-top:4px;background:#877e92;box-shadow:none}
.model-status[data-state=ready] .status-dot{background:var(--lime);box-shadow:0 0 10px #d9f46b55}
.model-status[data-state=busy] .status-dot{background:var(--coral);box-shadow:0 0 10px #ff716455}
.model-status[data-state=error] .status-dot{background:#ff7164;box-shadow:none}
.preview{min-width:0;padding:20px}
.preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}
.preview-head h2{font:600 22px var(--display);letter-spacing:-.035em;margin:7px 0 0}
.format-chip{border:1px solid #514b58;border-radius:5px;color:#c4bdcb;padding:6px 8px;font:9px var(--mono);letter-spacing:.08em;white-space:nowrap}
.stage{position:relative;display:grid;place-items:center;min-height:430px;margin-top:17px;overflow:hidden;border:1px solid #ffffff14;border-radius:12px;background-color:#2e2a36;background-image:linear-gradient(45deg,#393440 25%,transparent 25%),linear-gradient(-45deg,#393440 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#393440 75%),linear-gradient(-45deg,transparent 75%,#393440 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0}
.empty-state{padding:30px;text-align:center}
.empty-spark{font-size:50px;color:var(--coral);text-shadow:0 0 24px #ff716455}
.empty-state p{margin:6px 0;color:#f4eef8;font:600 17px var(--display)}
.empty-state span{color:#aaa3b5;font-size:12px}
#outputCanvas{display:block;max-width:100%;max-height:560px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 15px 24px #09080b55)}
.preview-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}
.result-note{color:#b7b0c0;font-size:11px;line-height:1.4}
.export-actions{display:flex;gap:7px;align-items:center}
.secondary-button,.download-button{border:1px solid #5a5363;border-radius:8px;background:#302c38;color:#ece6f1;padding:9px 11px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.download-button{display:flex;align-items:center;gap:11px;background:var(--coral);border-color:var(--coral);color:#211b22}
.secondary-button:disabled,.download-button:disabled{opacity:.38;cursor:not-allowed}
.privacy-note{display:flex;gap:7px;align-items:flex-start;margin:12px 0 0;color:#9e97a9;font-size:10px;line-height:1.45}
.privacy-note>span:first-child{color:var(--lime)}
.bottom-row{display:grid;grid-template-columns:1fr 310px;gap:16px;margin-top:16px}
.about-card,.support{border:1px solid var(--line);border-radius:13px;background:#201d28;padding:15px 17px}
.about-card{display:flex;gap:12px;align-items:flex-start}
.about-icon{flex:0 0 auto;border:1px solid #5b4c64;border-radius:7px;padding:4px 6px;color:var(--lilac);font:10px var(--mono)}
.about-card strong,.support strong{display:block;font-size:12px}
.about-card p,.support p{margin:4px 0 0;color:#aaa3b5;font-size:11px;line-height:1.5}
.support{border-color:#4b5842;background:linear-gradient(135deg,#272e28,#211f29)}
.support-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.support-head>span{color:var(--lime);font:10px var(--mono)}
.tips{display:flex;gap:6px;margin-top:11px}
.tips a{flex:1;padding:7px 5px;border:1px solid #637256;border-radius:7px;background:#344331;color:var(--lime);font:11px var(--mono);text-align:center;text-decoration:none}
.tips a:hover{background:#43563c}
.wallet-link{display:inline-block;margin-top:9px;color:#bdb5c7;font-size:10px;text-decoration:none}
.wallet-link:hover,.footer a:hover{color:var(--lime)}
.footer{display:flex;justify-content:space-between;gap:15px;margin-top:20px;color:#7f7889;font:9px var(--mono);letter-spacing:.04em}
.footer a{color:#aaa3b5;text-decoration:none}
.busy-spinner{display:inline-block;width:12px;height:12px;border:2px solid #201d2255;border-top-color:#201d22;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:850px){.app{padding:0 22px 24px}.workbench{grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr)}.stage{min-height:350px}.bottom-row{grid-template-columns:1fr 270px}}
@media(max-width:680px){.app{padding:0 14px 22px}.topbar{height:61px}.privacy{font-size:0}.privacy-dot{width:9px;height:9px}.top-actions{gap:12px}.heading{padding:30px 0 22px}.heading p{font-size:14px}.workbench{grid-template-columns:1fr}.controls,.preview{padding:16px}.stage{min-height:320px}.preview-head h2{font-size:20px}.preview-foot{align-items:flex-start;flex-direction:column}.export-actions{width:100%}.export-actions button{flex:1}.bottom-row{grid-template-columns:1fr}.footer{flex-direction:column;gap:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition:none!important}}
