@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root { --paper:#f7f6f2; --surface:#fff; --ink:#25252c; --muted:#686873; --line:#e8e6e2; --violet:#6a48cb; --violet-dark:#5433ae; --violet-pale:#f0ebfb; --radius:18px; font-family:'DM Sans',sans-serif; color:var(--ink); background:var(--paper); font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; }
button,input,textarea,select { font:inherit; }
button,a,input,textarea,select,summary { -webkit-tap-highlight-color:transparent; }
button,a,summary { touch-action:manipulation; }
a { color:inherit; text-decoration:none; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.44; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid #9a7cec; outline-offset:3px; }
.shell { max-width:1320px; margin:auto; padding:0 44px; }
.topbar { height:92px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--line); }
.wordmark { display:inline-flex; align-items:center; gap:11px; font-family:'Manrope',sans-serif; font-size:17px; font-weight:750; letter-spacing:-.6px; }
.brand-symbol { font-size:35px; line-height:1; color:var(--violet); }
.brand-light { font-weight:450; color:var(--muted); }
.topbar nav { display:flex; gap:27px; font-size:13px; font-weight:550; }
.topbar nav a:hover,.footer a:hover { color:var(--violet); }
.topbar nav span { padding-left:4px; }
.intro { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; padding:43px 0 31px; }
.eyebrow { color:var(--violet); font-size:10px; font-weight:750; letter-spacing:1.9px; margin:0 0 11px; }
h1,h2,h3,p { margin:0; }
h1 { font-family:'Manrope',sans-serif; font-size:clamp(27px,3.2vw,38px); font-weight:650; letter-spacing:-1.45px; line-height:1.2; }
.intro-copy { margin-top:12px; color:var(--muted); font-size:14px; line-height:1.6; }
.connection { display:flex; flex-shrink:0; align-items:center; gap:7px; font-size:10px; font-weight:550; color:var(--muted); padding-bottom:4px; }
.connection > span { width:6px; height:6px; border-radius:50%; background:var(--violet); }
.studio { display:grid; grid-template-columns:minmax(340px,.9fr) minmax(0,1.25fr); gap:22px; align-items:stretch; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:0 3px 5px #24202002; }
.controls { padding:25px 25px 21px; }
.section-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:23px; }
h2 { font-size:15px; font-weight:650; letter-spacing:-.2px; }
.section-index { font-size:10px; color:#797782; border:1px solid var(--line); padding:3px 7px; border-radius:5px; }
.field { display:flex; flex-direction:column; min-width:0; gap:8px; }
.field > label { font-size:12px; font-weight:650; display:flex; align-items:center; justify-content:space-between; }
.optional { color:var(--muted); font-weight:400; font-size:10px; }
textarea,select,input[type=number] { width:100%; border:1px solid #dedde1; border-radius:9px; background:#fff; color:var(--ink); transition:border-color .15s,box-shadow .15s; }
textarea { padding:13px; font-size:13px; line-height:1.65; min-height:143px; resize:vertical; }
textarea::placeholder { color:#85818c; }
textarea:focus,select:focus,input[type=number]:focus { outline:none; border-color:var(--violet); box-shadow:0 0 0 3px #6a48cb17; }
.prompt-ideas { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:1px; }
.prompt-ideas > span { font-size:10px; color:var(--muted); margin-right:2px; }
.prompt-ideas button { font-size:10px; color:#635774; border:1px solid #ebe6f2; border-radius:5px; padding:5px 8px; background:#fbf9fd; transition:background .15s; }
.prompt-ideas button:hover { background:var(--violet-pale); border-color:#d8ccee; }
.reference-field { margin-top:22px; }
.upload-area { position:relative; display:flex; align-items:center; gap:12px; min-height:76px; padding:14px; border:1px dashed #d8d4df; border-radius:9px; background:#fbfafc; }
.upload-area:focus-within { outline:3px solid #9a7cec; outline-offset:3px; }
.upload-area:hover { border-color:var(--violet); background:#f8f5fd; }
.upload-icon { font-size:22px; width:31px; height:33px; color:var(--violet); border-radius:6px; background:#f0eafa; display:grid; place-items:center; }
.upload-title { font-size:11px; font-weight:550; display:block; margin-bottom:4px; }
.help { display:block; color:var(--muted); font-size:10px; line-height:1.6; }
#references { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.reference-previews { display:flex; flex-wrap:wrap; gap:8px; }
.reference-previews:empty { display:none; }
.reference-previews img { width:52px; height:52px; object-fit:cover; border:1px solid var(--line); border-radius:6px; }
.reference-previews button { border:1px solid var(--line); background:white; border-radius:5px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:22px; }
select,input[type=number] { height:41px; padding:0 11px; font-size:12px; }
select { cursor:pointer; }
.check-options { margin:21px 0; display:grid; gap:15px; }
.check-row { display:flex; gap:9px; align-items:flex-start; font-size:11px; cursor:pointer; line-height:1.5; }
input[type=checkbox] { flex-shrink:0; width:15px; height:15px; margin:1px 0 0; accent-color:var(--violet); cursor:pointer; }
.check-row small { display:block; color:var(--muted); font-size:10px; margin-top:2px; font-weight:400; }
.advanced { border-top:1px solid var(--line); padding:14px 0; margin-top:4px; }
summary { font-size:11px; font-weight:550; cursor:pointer; color:#56515f; }
summary::marker { color:#8f879c; }
.seed-controls { display:flex; align-items:center; gap:22px; padding-top:13px; }
.seed-controls .field { width:52%; }
.seed-controls .check-row { padding-top:21px; }
.advanced > .help { margin-top:7px; }
.action-row { display:flex; gap:9px; margin-top:4px; }
.primary { display:flex; justify-content:center; align-items:center; gap:9px; flex:1; border:1px solid var(--violet); background:var(--violet); color:white; border-radius:9px; min-height:46px; font-size:12px; font-weight:600; box-shadow:0 3px 6px #6a48cb1a; }
.primary:hover:not(:disabled) { background:var(--violet-dark); border-color:var(--violet-dark); }
.primary > span:last-child { margin-left:auto; }
.primary > span:first-child { margin-right:auto; }
.secondary { padding:0 13px; min-height:46px; border:1px solid #dedde1; background:white; border-radius:9px; color:#605a68; font-size:11px; }
.secondary:hover:not(:disabled) { background:#f7f5fa; }
.queue-note { text-align:center; color:var(--muted); font-size:9px; line-height:1.6; margin-top:10px; }
.output-panel { display:flex; flex-direction:column; padding:25px; }
.output-panel .section-heading { margin-bottom:23px; }
.canvas { flex:1; display:grid; place-items:center; min-height:445px; border:1px solid #edeaf0; border-radius:11px; background-color:#faf9fc; background-image:radial-gradient(#dcd6e5 .65px,transparent .65px); background-size:18px 18px; position:relative; overflow:hidden; }
.empty-state { padding:35px 20px; text-align:center; }
.empty-art { width:124px; height:105px; position:relative; margin:0 auto 22px; }
.art-frame { position:absolute; width:80px; height:80px; border:1.5px solid #cbbce7; border-radius:14px; transform:rotate(-12deg); left:15px; top:14px; background:linear-gradient(150deg,#f1eafb,#f9f6fd); }
.art-orb { position:absolute; width:56px; height:56px; border-radius:50%; background:linear-gradient(145deg,#d7c3f3,#b797e4); left:45px; top:35px; box-shadow:5px 8px 15px #8c63bb17; }
.art-spark { position:absolute; color:#8a67c5; font-size:35px; left:84px; top:-3px; }
.empty-state h3 { font-family:'Manrope',sans-serif; font-weight:650; font-size:17px; letter-spacing:-.45px; }
.empty-state p { font-size:11px; line-height:1.9; color:var(--muted); margin-top:9px; }
#result { display:block; width:100%; height:100%; max-height:720px; object-fit:contain; }
.result-footer { display:flex; justify-content:space-between; gap:15px; align-items:center; padding-top:18px; min-height:51px; }
.status-wrap { min-width:0; }
#status { font-size:11px; line-height:1.65; overflow-wrap:anywhere; }
#progress { margin-top:3px; }
#progress:empty { display:none; }
.download { flex-shrink:0; color:var(--violet); background:var(--violet-pale); padding:9px 12px; border-radius:6px; font-size:11px; font-weight:550; }
.download:hover { background:#e6dcf8; }
.download span { padding-left:8px; }
.generation-details { padding-top:15px; margin-top:15px; border-top:1px solid var(--line); }
#metadata { white-space:pre-wrap; overflow-wrap:anywhere; font-size:10px; line-height:1.6; background:#f8f7fa; border-radius:8px; padding:12px; max-height:180px; overflow:auto; }
.privacy-note { display:flex; align-items:flex-start; gap:9px; max-width:980px; margin:21px auto 0; color:#716a79; }
.privacy-note > span { font-size:15px; line-height:1.4; }
.privacy-note p { font-size:10px; line-height:1.8; }
.privacy-note a { text-decoration:underline; text-underline-offset:3px; }
.footer { border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; margin-top:37px; padding:21px 0 25px; color:var(--muted); font-size:10px; }
@media (min-width:1250px) { .shell { padding:0 52px; } }
@media (max-width:1000px) { .shell { padding:0 25px; } .intro { align-items:flex-start; flex-direction:column; gap:17px; } .studio { grid-template-columns:minmax(325px,.95fr) minmax(0,1fr); gap:17px; } .controls,.output-panel { padding:21px; } .canvas { min-height:435px; } }
@media (max-width:760px) { .shell { max-width:580px; padding:0 18px; } .topbar { height:76px; } .wordmark { font-size:14px; gap:8px; } .brand-symbol { font-size:30px; } .topbar nav { gap:13px; font-size:10px; } .intro { padding:30px 0 25px; } h1 { font-size:30px; letter-spacing:-1.15px; } .intro-copy { font-size:12px; } .studio { grid-template-columns:1fr; gap:19px; } .controls,.output-panel { padding:21px; } .canvas { min-height:355px; } .connection { font-size:10px; } .privacy-note { margin-top:19px; } .footer { margin-top:26px; font-size:9px; } }
@media (max-width:380px) { .shell { padding:0 13px; } .topbar nav a:first-child { display:none; } .controls,.output-panel { padding:17px; } .field-row { gap:9px; } .prompt-ideas { gap:5px; } .prompt-ideas > span { width:100%; } }
@media (prefers-reduced-motion:reduce) { * { transition:none !important; } }
