:root {
    color-scheme: light;
    --bg: #f4f0ff;
    --surface: rgba(255,255,255,.95);
    --ink: #1f1637;
    --muted: #685d7a;
    --line: rgba(31,22,55,.1);
    --accent: #7c3aed;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-lg: 0 24px 50px rgba(31,22,55,.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", "Segoe UI", sans-serif; color: var(--ink); background: radial-gradient(circle at top left, rgba(124,58,237,.1), transparent 18%), linear-gradient(180deg, #faf8ff 0%, var(--bg) 100%); }
.shell { width: min(1380px, calc(100% - 40px)); margin: 28px auto 40px; }
.hero, .panel, .result-card, .sidebar-card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); border-radius: var(--radius-xl); }
.hero { padding: 32px; margin-bottom: 24px; }
.eyebrow { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(104,93,122,.82); }
h1 { margin: 10px 0 0; font-size: 30px; line-height: .96; letter-spacing: -.04em; }
.lead { margin: 14px 0 0; max-width: 760px; color: var(--muted); line-height: 1.7; }
.token-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) 340px; gap: 24px; align-items: start; }
.panel, .result-card, .sidebar-card { padding: 24px; }
.field { display: grid; gap: 10px; margin-bottom: 16px; }
.field > span { font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(31,22,55,.72); }
input, textarea { width: 100%; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; color: var(--ink); font: inherit; }
input { height: 56px; }
textarea { min-height: 180px; padding: 16px; resize: vertical; line-height: 1.7; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; }
button { min-height: 50px; padding: 0 20px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
button:not(.ghost-button) { color: #fff; background: linear-gradient(180deg, #7c3aed, #5b21b6); }
.ghost-button { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.swatch-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.swatch-card { padding: 16px; border-radius: 18px; border: 1px solid rgba(31,22,55,.08); background: #fff; box-shadow: 0 10px 18px rgba(31,22,55,.04); }
.swatch-chip { height: 86px; border-radius: 16px; margin-bottom: 12px; }
.swatch-card strong { display: block; margin-bottom: 4px; }
.swatch-card span { color: var(--muted); font-size: .92rem; }
.rail { display: grid; gap: 18px; }
.result-card pre { margin: 12px 0 0; white-space: pre-wrap; word-break: break-word; font: inherit; color: #46395b; line-height: 1.7; }
.sidebar-card strong { display: block; margin: 10px 0 6px; font-size: 1.3rem; }
.ad-slot, .ad-placeholder { border: 1px solid var(--line); border-radius: 18px; min-height: 320px; background: rgba(255,255,255,.6); overflow: hidden; }
.ad-placeholder { padding: 16px; }
.ad-mockup { position: relative; min-height: 286px; height: 100%; border-radius: 18px; background: linear-gradient(180deg, #fff, #f8f4ff); }
.ad-mockup::before { content: ""; position: absolute; inset: 14px; border-radius: 14px; border: 1px dashed rgba(31,22,55,.12); }
.ad-mockup-top, .ad-mockup-media, .ad-mockup-badge, .ad-mockup-lines { position: absolute; }
.ad-mockup-top { top: 24px; left: 24px; width: 110px; height: 18px; border-radius: 999px; background: rgba(31,22,55,.06); }
.ad-mockup-media { inset: 78px 24px 106px; border-radius: 16px; background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(139,92,246,.08)); }
.ad-mockup-lines { left: 24px; right: 24px; bottom: 28px; display: grid; gap: 10px; }
.ad-mockup-lines span { display: block; height: 12px; border-radius: 999px; background: rgba(31,22,55,.08); }
.ad-mockup-lines span:last-child { width: 58%; }
.ad-mockup-badge { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 142px; height: 142px; border-radius: 50%; display: grid; place-content: center; background: linear-gradient(135deg, #7c3aed, #c084fc); color: #fff; }
.ad-mockup-badge span { font-size: 1.35rem; font-weight: 800; line-height: 1; text-align: center; letter-spacing: .08em; }
@media (max-width: 1180px) { .token-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .swatch-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .shell { width: min(100% - 24px, 1380px); } .hero, .panel, .result-card, .sidebar-card { padding: 20px; } .action-row { flex-direction: column; } }
