Spaces:
Running
Running
Build dark Supra2-IMG CPU studio
Browse files
README.md
CHANGED
|
@@ -1,10 +1,19 @@
|
|
| 1 |
---
|
| 2 |
-
title: Supra2
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Supra2-IMG CPU Studio
|
| 3 |
+
emoji: 🖼️
|
| 4 |
+
colorFrom: indigo
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: static
|
| 7 |
+
app_file: index.html
|
| 8 |
+
short_description: Dark image studio for Supra2-IMG on CPU
|
| 9 |
+
models:
|
| 10 |
+
- SupraLabs/Supra2-IMG
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Supra2-IMG CPU Studio
|
| 14 |
+
|
| 15 |
+
Public interface for [SupraLabs/Supra2-IMG](https://huggingface.co/SupraLabs/Supra2-IMG), adapted from the layout of [Photon-P2.2](https://huggingface.co/spaces/DedeProGames/Photon-P2.2). The default dark theme uses `#4D4DFF` as its main color.
|
| 16 |
+
|
| 17 |
+
The frontend calls the public `/generate` API of [SupraLabs/supra2-img-demo](https://huggingface.co/spaces/SupraLabs/supra2-img-demo), which runs the model on free `cpu-basic` hardware. It sends exactly 3, 8, or 16 Euler steps for Fast, Quality, and Ultra Design. Output is 256 × 256 pixels. The model authors recommend 50 steps; these presets prioritize CPU response time.
|
| 18 |
+
|
| 19 |
+
The CPU backend currently accepts a minimum of 10 steps. [PR #3](https://huggingface.co/spaces/SupraLabs/supra2-img-demo/discussions/3) lowers that minimum to 3 and must be merged by a maintainer before the Fast and Quality presets work.
|
app.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Client } from "https://cdn.jsdelivr.net/npm/@gradio/client@2.7.1/dist/index.min.js";
|
| 2 |
+
|
| 3 |
+
const BACKEND = "SupraLabs/supra2-img-demo";
|
| 4 |
+
const STEPS = { Fast: 3, Quality: 8, "Ultra Design": 16 };
|
| 5 |
+
|
| 6 |
+
const form = document.querySelector("#generator-form");
|
| 7 |
+
const prompt = document.querySelector("#prompt");
|
| 8 |
+
const generateButton = document.querySelector("#generate");
|
| 9 |
+
const buttonLabel = document.querySelector("#button-label");
|
| 10 |
+
const guidance = document.querySelector("#guidance");
|
| 11 |
+
const guidanceValue = document.querySelector("#guidance-value");
|
| 12 |
+
const seed = document.querySelector("#seed");
|
| 13 |
+
const randomize = document.querySelector("#randomize");
|
| 14 |
+
const image = document.querySelector("#result-image");
|
| 15 |
+
const placeholder = document.querySelector("#placeholder");
|
| 16 |
+
const download = document.querySelector("#download");
|
| 17 |
+
const seedUsed = document.querySelector("#seed-used");
|
| 18 |
+
const resultState = document.querySelector("#result-state");
|
| 19 |
+
const status = document.querySelector("#status");
|
| 20 |
+
const modeLabel = document.querySelector("#selected-mode");
|
| 21 |
+
const modes = [...document.querySelectorAll(".quality-option")];
|
| 22 |
+
|
| 23 |
+
let mode = "Quality";
|
| 24 |
+
let clientPromise;
|
| 25 |
+
|
| 26 |
+
function setStatus(message, kind = "") {
|
| 27 |
+
status.textContent = message;
|
| 28 |
+
status.className = `status ${kind}`.trim();
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
function setMode(nextMode) {
|
| 32 |
+
if (!(nextMode in STEPS)) return;
|
| 33 |
+
mode = nextMode;
|
| 34 |
+
modeLabel.textContent = `${mode} · ${STEPS[mode]} steps`;
|
| 35 |
+
for (const option of modes) {
|
| 36 |
+
const selected = option.dataset.mode === mode;
|
| 37 |
+
option.classList.toggle("selected", selected);
|
| 38 |
+
option.setAttribute("aria-pressed", String(selected));
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
function setBusy(busy) {
|
| 43 |
+
generateButton.disabled = busy;
|
| 44 |
+
buttonLabel.textContent = busy ? "Generating..." : "Generate image";
|
| 45 |
+
resultState.textContent = busy ? "Working on CPU" : "Ready to create";
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
function imageUrl(value) {
|
| 49 |
+
if (typeof value === "string") return value;
|
| 50 |
+
if (value && typeof value.url === "string") return value.url;
|
| 51 |
+
if (value && typeof value.path === "string") {
|
| 52 |
+
return new URL(`/gradio_api/file=${value.path}`, "https://supralabs-supra2-img-demo.hf.space").href;
|
| 53 |
+
}
|
| 54 |
+
throw new Error("The image service returned no image URL.");
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
for (const option of modes) option.addEventListener("click", () => setMode(option.dataset.mode));
|
| 58 |
+
guidance.addEventListener("input", () => { guidanceValue.value = Number(guidance.value).toFixed(1); });
|
| 59 |
+
document.querySelectorAll("#examples button").forEach((example) => {
|
| 60 |
+
example.addEventListener("click", () => { prompt.value = example.textContent.trim(); prompt.focus(); });
|
| 61 |
+
});
|
| 62 |
+
|
| 63 |
+
form.addEventListener("submit", async (event) => {
|
| 64 |
+
event.preventDefault();
|
| 65 |
+
const description = prompt.value.trim();
|
| 66 |
+
if (!description) { prompt.focus(); return; }
|
| 67 |
+
const seedNumber = Number(seed.value);
|
| 68 |
+
if (!randomize.checked && (!Number.isInteger(seedNumber) || seedNumber < 0 || seedNumber > 2147483647)) {
|
| 69 |
+
setStatus("Choose a seed between 0 and 2147483647.", "error");
|
| 70 |
+
seed.focus();
|
| 71 |
+
return;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
setBusy(true);
|
| 75 |
+
setStatus("Connecting to the CPU image service...");
|
| 76 |
+
try {
|
| 77 |
+
clientPromise ??= Client.connect(BACKEND, { events: ["status", "data"] });
|
| 78 |
+
const client = await clientPromise;
|
| 79 |
+
const job = client.submit("/generate", [description, STEPS[mode], Number(guidance.value), seedNumber, randomize.checked]);
|
| 80 |
+
let gotImage = false;
|
| 81 |
+
for await (const message of job) {
|
| 82 |
+
if (message.type === "status") {
|
| 83 |
+
if (message.stage === "pending") {
|
| 84 |
+
const position = Number.isInteger(message.position) ? ` · position ${message.position + 1}` : "";
|
| 85 |
+
setStatus(`Queued for CPU generation${position}`);
|
| 86 |
+
} else if (message.stage === "generating") {
|
| 87 |
+
const progress = message.progress_data?.find((part) => part?.desc);
|
| 88 |
+
setStatus(progress?.desc || "Generating your image on CPU...");
|
| 89 |
+
} else if (message.stage === "error") {
|
| 90 |
+
throw new Error(message.message || "Image generation failed.");
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
if (message.type === "data" && Array.isArray(message.data)) {
|
| 94 |
+
const url = imageUrl(message.data[0]);
|
| 95 |
+
image.src = url;
|
| 96 |
+
image.hidden = false;
|
| 97 |
+
placeholder.hidden = true;
|
| 98 |
+
download.href = url;
|
| 99 |
+
download.hidden = false;
|
| 100 |
+
seedUsed.textContent = `Seed ${message.data[1]}`;
|
| 101 |
+
gotImage = true;
|
| 102 |
+
}
|
| 103 |
+
}
|
| 104 |
+
if (!gotImage) throw new Error("The image service did not return an image.");
|
| 105 |
+
setStatus(`${mode} complete · ${STEPS[mode]} steps`, "success");
|
| 106 |
+
} catch (error) {
|
| 107 |
+
console.error(error);
|
| 108 |
+
clientPromise = undefined;
|
| 109 |
+
setStatus(error instanceof Error ? error.message : "Image generation failed. Please try again.", "error");
|
| 110 |
+
} finally {
|
| 111 |
+
setBusy(false);
|
| 112 |
+
}
|
| 113 |
+
});
|
index.html
CHANGED
|
@@ -1,19 +1,59 @@
|
|
| 1 |
<!doctype html>
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
+
<meta name="theme-color" content="#4D4DFF">
|
| 7 |
+
<meta name="color-scheme" content="dark">
|
| 8 |
+
<meta name="description" content="Generate images with Supra2-IMG on CPU using Fast, Quality, and Ultra Design modes.">
|
| 9 |
+
<title>Supra2-IMG Studio · SupraLabs</title>
|
| 10 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 11 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 12 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
| 13 |
+
<link rel="stylesheet" href="./style.css">
|
| 14 |
+
<script type="module" src="./app.js"></script>
|
| 15 |
+
</head>
|
| 16 |
+
<body>
|
| 17 |
+
<main class="page">
|
| 18 |
+
<header class="hero">
|
| 19 |
+
<div class="badge"><span class="status-dot"></span> SUPRALABS <span class="badge-separator">·</span> CPU FREE <span class="badge-separator">·</span> 256 × 256</div>
|
| 20 |
+
<h1>Supra2-IMG <span>Studio</span></h1>
|
| 21 |
+
<p>Bring an idea to life with <a href="https://huggingface.co/SupraLabs/Supra2-IMG" target="_blank" rel="noopener noreferrer">Supra2-IMG</a>, a compact text-to-image model trained from scratch.</p>
|
| 22 |
+
</header>
|
| 23 |
+
|
| 24 |
+
<section class="workspace" aria-label="Image generator">
|
| 25 |
+
<form class="glass control-card" id="generator-form">
|
| 26 |
+
<div class="section-heading"><span class="section-kicker">01 / CREATE</span><span class="section-caption">Describe your scene</span></div>
|
| 27 |
+
<label class="field-label" for="prompt">Prompt</label>
|
| 28 |
+
<textarea id="prompt" rows="5" placeholder="A sea jellyfish floating in the pitch-black ocean depths..." maxlength="2000" required></textarea>
|
| 29 |
+
<div class="field-heading"><span class="field-label">Render level</span><span class="selected-mode" id="selected-mode">Quality · 8 steps</span></div>
|
| 30 |
+
<div class="quality-options" role="group" aria-label="Render level">
|
| 31 |
+
<button type="button" class="quality-option" data-mode="Fast" aria-pressed="false"><span class="mode-icon">⚡</span><span class="mode-name">Fast</span><span class="mode-steps">3 steps</span></button>
|
| 32 |
+
<button type="button" class="quality-option selected" data-mode="Quality" aria-pressed="true"><span class="mode-icon">✦</span><span class="mode-name">Quality</span><span class="mode-steps">8 steps</span></button>
|
| 33 |
+
<button type="button" class="quality-option" data-mode="Ultra Design" aria-pressed="false"><span class="mode-icon">✺</span><span class="mode-name">Ultra Design</span><span class="mode-steps">16 steps</span></button>
|
| 34 |
+
</div>
|
| 35 |
+
<button class="generate-button" id="generate" type="submit"><span class="button-gloss"></span><span id="button-label">Generate image</span><span aria-hidden="true">→</span></button>
|
| 36 |
+
<details class="advanced">
|
| 37 |
+
<summary>Advanced settings <span aria-hidden="true">⌄</span></summary>
|
| 38 |
+
<div class="advanced-inner">
|
| 39 |
+
<label for="guidance">Guidance scale <output id="guidance-value">3.0</output></label>
|
| 40 |
+
<input id="guidance" type="range" min="1" max="8" step="0.1" value="3">
|
| 41 |
+
<div class="seed-row"><label for="seed">Seed</label><input id="seed" type="number" min="0" max="2147483647" step="1" value="0"></div>
|
| 42 |
+
<label class="check-row" for="randomize"><input id="randomize" type="checkbox" checked> Randomize seed</label>
|
| 43 |
+
</div>
|
| 44 |
+
</details>
|
| 45 |
+
</form>
|
| 46 |
+
|
| 47 |
+
<section class="glass result-card" aria-label="Generated image">
|
| 48 |
+
<div class="section-heading"><span class="section-kicker">02 / RESULT</span><span class="result-state" id="result-state">Ready to create</span></div>
|
| 49 |
+
<div class="image-frame" id="image-frame"><div class="image-placeholder" id="placeholder"><div class="placeholder-mark">✦</div><strong>Your image appears here</strong><span>Write a prompt and choose a render level to begin.</span></div><img id="result-image" alt="Generated image" hidden></div>
|
| 50 |
+
<div class="result-footer"><span id="seed-used">Seed —</span><a id="download" href="#" download="supra2-img.png" hidden>Download image ↗</a></div>
|
| 51 |
+
<div class="status" id="status" role="status" aria-live="polite"></div>
|
| 52 |
+
</section>
|
| 53 |
+
</section>
|
| 54 |
+
|
| 55 |
+
<section class="glass examples-card" aria-label="Prompt examples"><div class="section-heading"><span class="section-kicker">NEED INSPIRATION?</span><span class="section-caption">Try a prompt</span></div><div class="examples" id="examples"><button type="button">A sea jellyfish floating in the pitch-black ocean depths</button><button type="button">A small orange cat sitting on a wooden fence at golden hour</button><button type="button">A white swan floating on a calm lake with green trees reflected in the water</button><button type="button">A majestic snow-capped mountain peak rising above a sea of clouds</button></div></section>
|
| 56 |
+
<footer>Model by <a href="https://huggingface.co/SupraLabs/Supra2-IMG" target="_blank" rel="noopener noreferrer">SupraLabs</a> · Interface inspired by <a href="https://huggingface.co/spaces/DedeProGames/Photon-P2.2" target="_blank" rel="noopener noreferrer">Photon-P2.2</a> · CPU inference</footer>
|
| 57 |
+
</main>
|
| 58 |
+
</body>
|
| 59 |
</html>
|
style.css
CHANGED
|
@@ -1,28 +1,10 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
}
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
}
|
| 10 |
-
|
| 11 |
-
p {
|
| 12 |
-
color: rgb(107, 114, 128);
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
-
}
|
| 17 |
-
|
| 18 |
-
.card {
|
| 19 |
-
max-width: 620px;
|
| 20 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
.card p:last-child {
|
| 27 |
-
margin-bottom: 0;
|
| 28 |
-
}
|
|
|
|
| 1 |
+
:root{font-family:Inter,system-ui,sans-serif;color:#f4f4ff;background:#090b17;color-scheme:dark;font-synthesis:none}
|
| 2 |
+
*{box-sizing:border-box}html{min-height:100%;background:#090b17}body{margin:0;min-height:100vh;overflow-x:hidden;background:radial-gradient(ellipse 36rem 31rem at 0% 15%,rgba(77,77,255,.25),transparent 72%),radial-gradient(ellipse 38rem 32rem at 99% 9%,rgba(107,51,211,.21),transparent 71%),radial-gradient(ellipse 40rem 31rem at 85% 95%,rgba(40,65,166,.22),transparent 68%),#090b17}
|
| 3 |
+
body::before{content:"";position:fixed;inset:-20%;pointer-events:none;z-index:0;background:radial-gradient(ellipse 22rem 20rem at 25% 28%,rgba(77,77,255,.11),transparent 75%);filter:blur(35px);animation:drift 24s ease-in-out infinite alternate}@keyframes drift{to{transform:translate(3rem,-2rem) scale(1.1)}}
|
| 4 |
+
.page{position:relative;z-index:1;width:min(1180px,calc(100% - 40px));margin:auto;padding:28px 0 20px}a{color:#aaaaff;text-decoration:none}a:hover{text-decoration:underline}button,input,textarea{font:inherit}button{cursor:pointer}
|
| 5 |
+
.hero{text-align:center;padding:18px 10px 38px}.badge{display:inline-flex;gap:8px;align-items:center;padding:8px 16px;border:1px solid rgba(151,151,255,.3);border-radius:999px;background:linear-gradient(160deg,rgba(77,77,255,.21),rgba(255,255,255,.045));box-shadow:inset 0 1px rgba(255,255,255,.15),0 8px 30px rgba(0,0,0,.17);color:#cacaff;font-size:11px;font-weight:800;letter-spacing:.11em;backdrop-filter:blur(22px)}.status-dot{width:7px;height:7px;background:#75e9ad;border-radius:50%;box-shadow:0 0 10px #75e9ad}.badge-separator{opacity:.4}.hero h1{font-size:clamp(42px,6vw,76px);line-height:1.04;letter-spacing:-.055em;margin:22px 0 12px;text-shadow:0 14px 48px rgba(77,77,255,.29)}.hero h1 span{color:#a4a4ff}.hero p{max-width:620px;margin:0 auto;color:#b0b4cc;font-size:16px;line-height:1.65}
|
| 6 |
+
.workspace{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:20px;align-items:stretch}.glass{position:relative;overflow:hidden;border:1px solid rgba(157,162,255,.2);border-radius:28px;background:linear-gradient(145deg,rgba(39,42,70,.79),rgba(17,21,39,.94) 57%,rgba(30,31,63,.86));box-shadow:inset 0 1px rgba(255,255,255,.11),0 30px 70px rgba(0,0,0,.3);backdrop-filter:blur(28px) saturate(135%)}.glass::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 70% 37% at 9% -9%,rgba(158,159,255,.13),transparent 80%)}.glass>*{position:relative}.control-card,.result-card{padding:25px}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:20px}.section-kicker{font-size:11px;font-weight:800;letter-spacing:.13em;color:#9b9bff}.section-caption,.result-state{font-size:12px;color:#878daa}.field-label{display:block;font-size:13px;font-weight:700;color:#e2e4f8;margin-bottom:10px}textarea,.seed-row input{width:100%;outline:none;border:1px solid #383d66;border-radius:17px;color:#f4f4ff;background:rgba(13,17,34,.72);box-shadow:inset 0 2px 9px rgba(0,0,0,.18);transition:border-color .2s,box-shadow .2s}textarea{min-height:133px;resize:vertical;padding:16px;line-height:1.6;font-size:15px}textarea::placeholder{color:#777f9f}textarea:focus,.seed-row input:focus{border-color:#7878ff;box-shadow:0 0 0 3px rgba(77,77,255,.18)}.field-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:24px}.selected-mode{font-size:12px;color:#c5c5ff;background:rgba(77,77,255,.18);padding:6px 11px;border-radius:999px}.quality-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.quality-option{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:5px;padding:13px 12px;border:1px solid #393d65;border-radius:16px;color:#c5cae0;background:rgba(12,16,33,.72);text-align:left;transition:transform .18s,border-color .18s,background .18s,box-shadow .18s}.quality-option:hover{transform:translateY(-2px);border-color:#8282ff}.quality-option.selected{color:#fff;border-color:#8585ff;background:linear-gradient(150deg,rgba(77,77,255,.37),rgba(77,77,255,.12));box-shadow:inset 0 1px rgba(255,255,255,.16),0 8px 24px rgba(77,77,255,.17)}.mode-icon{font-size:19px;color:#b7b7ff}.mode-name{font-size:13px;font-weight:800;white-space:nowrap}.mode-steps{font-size:11px;color:#a5a9c5}.generate-button{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:58px;margin-top:23px;overflow:hidden;color:#fff;border:1px solid #a0a0ff;border-radius:999px;background:linear-gradient(180deg,#8383ff,#4D4DFF 52%,#3434df);box-shadow:inset 0 2px rgba(255,255,255,.38),inset 0 -3px rgba(0,0,0,.17),0 13px 32px rgba(77,77,255,.37);font-size:16px;font-weight:800;transition:transform .18s,filter .18s,opacity .18s}.generate-button:hover{transform:translateY(-2px);filter:brightness(1.1)}.generate-button:active{transform:translateY(1px)}.generate-button:disabled{opacity:.65;cursor:wait}.button-gloss{position:absolute;inset:3px 9% auto;height:42%;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.34),transparent);pointer-events:none}.generate-button>span:not(.button-gloss){position:relative}
|
| 7 |
+
.advanced{margin-top:20px;padding:0 15px;border:1px solid rgba(157,162,255,.18);border-radius:18px;background:rgba(13,17,34,.38)}.advanced summary{display:flex;justify-content:space-between;padding:15px 0;color:#c7cbe0;font-size:13px;font-weight:700;list-style:none;cursor:pointer}.advanced summary::-webkit-details-marker{display:none}.advanced[open] summary span{transform:rotate(180deg)}.advanced-inner{padding:4px 0 17px}.advanced-inner>label:first-child{display:flex;justify-content:space-between;color:#c7cbe0;font-size:12px}.advanced input[type=range]{width:100%;margin:13px 0 19px;accent-color:#4D4DFF}.seed-row{display:flex;align-items:center;gap:15px}.seed-row label{font-size:12px;color:#c7cbe0}.seed-row input{padding:9px 12px;width:180px;max-width:100%}.check-row{display:flex;align-items:center;gap:8px;margin-top:16px;color:#c7cbe0;font-size:12px;cursor:pointer}.check-row input{accent-color:#4D4DFF}
|
| 8 |
+
.result-card{display:flex;flex-direction:column;min-height:553px}.result-card .section-heading{margin-bottom:14px}.image-frame{display:grid;place-items:center;flex:1;min-height:415px;overflow:hidden;border:1px solid rgba(157,162,255,.17);border-radius:20px;background:radial-gradient(circle at center,rgba(53,54,116,.18),transparent 63%),rgba(8,12,27,.72)}.image-placeholder{display:flex;align-items:center;flex-direction:column;gap:11px;padding:25px;text-align:center;color:#8d94b5}.image-placeholder[hidden]{display:none}.placeholder-mark{display:grid;place-items:center;width:75px;height:75px;margin-bottom:6px;border:1px solid rgba(154,154,255,.29);border-radius:22px;color:#aaaaff;background:rgba(77,77,255,.13);font-size:30px;box-shadow:0 13px 36px rgba(77,77,255,.12)}.image-placeholder strong{color:#d9dcf0;font-size:17px}.image-placeholder span{font-size:13px;line-height:1.5}.image-frame img{display:block;width:min(100%,440px);height:auto;max-height:100%;object-fit:contain;image-rendering:auto}.image-frame img[hidden]{display:none}.result-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:18px;color:#969dbc;font-size:12px;font-variant-numeric:tabular-nums}.result-footer a{font-weight:750}.status{min-height:0;color:#afb4d0;font-size:12px}.status:not(:empty){margin-top:10px}.status.error{color:#ffaaaa}.status.success{color:#89e9bb}
|
| 9 |
+
.examples-card{margin-top:20px;padding:23px 25px}.examples-card .section-heading{margin-bottom:15px}.examples{display:flex;flex-wrap:wrap;gap:9px}.examples button{max-width:100%;padding:10px 14px;border:1px solid rgba(157,162,255,.2);border-radius:12px;background:rgba(77,77,255,.11);color:#d8dcf4;text-align:left;font-size:12px;line-height:1.4;transition:background .2s,border-color .2s}.examples button:hover{background:rgba(77,77,255,.25);border-color:#7777ff}footer{text-align:center;padding:24px 10px 5px;color:#747c9c;font-size:12px;line-height:1.6}
|
| 10 |
+
@media(max-width:800px){.workspace{grid-template-columns:1fr}.result-card{min-height:470px}.image-frame{min-height:340px}}@media(max-width:520px){.page{width:min(100% - 24px,1180px);padding-top:8px}.hero{padding:24px 8px 28px}.badge{font-size:9px;gap:6px;padding:7px 10px}.glass{border-radius:23px}.control-card,.result-card,.examples-card{padding:17px}.quality-options{gap:6px}.quality-option{padding:11px 8px}.mode-name{font-size:11px}.mode-steps{font-size:10px}.image-frame{min-height:300px}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|