:root {
    color-scheme: light;
    --bg: #eef2f8;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --ink: #101828;
    --muted: #667085;
    --line: rgba(16, 24, 40, 0.1);
    --accent: #1769ff;
    --ok: #0f8c53;
    --warn: #d97706;
    --danger: #b42318;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 10px 22px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(23, 105, 255, 0.08), transparent 18%),
        linear-gradient(180deg, #f5f7fb 0%, var(--bg) 100%);
}
.shell { width: min(1380px, calc(100% - 40px)); margin: 28px auto 40px; }
.hero, .control-panel, .result-card, .sidebar-card { border: 1px solid var(--line); background: rgba(255,255,255,0.94); box-shadow: var(--shadow-lg); border-radius: var(--radius-xl); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; padding: 32px; margin-bottom: 24px; }
.eyebrow { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(102,112,133,.82); }
h1, h2, strong { margin: 0; letter-spacing: -.04em; }
h1 { margin-top: 10px; font-size: 30px; line-height: .96; }
.lead, .hero-note p, .result-card p, .field > span, .check-list { color: var(--muted); }
.lead { margin: 14px 0 0; max-width: 760px; line-height: 1.7; }
.hero-note { padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(23, 105, 255, 0.08), rgba(23, 105, 255, 0.02)); }
.hero-note strong { display: block; margin-bottom: 8px; font-size: 1.1rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.control-panel { padding: 26px; display: grid; gap: 18px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 10px; }
.field > span { font-size: .86rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.color-input { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
input[type="color"] { width: 100%; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
input[type="text"] {
    width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-md);
    background: var(--surface-soft); color: var(--ink); font: inherit;
}
.toggle-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.toggle { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }
button { min-height: 50px; padding: 0 20px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.ghost-button { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); }
.preview-card { padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); }
.preview-box { margin-top: 16px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); transition: background 160ms ease, color 160ms ease; }
.preview-box h2 { font-size: 2rem; line-height: .98; }
.preview-box p { max-width: 580px; line-height: 1.7; }
.preview-box button { margin-top: 12px; background: currentColor; color: #fff; }
.result-rail { display: grid; gap: 18px; }
.result-card, .sidebar-card { padding: 22px; }
.result-card-primary strong { display: block; margin-top: 10px; font-size: 2.4rem; line-height: .96; }
.check-list { margin: 12px 0 0; padding-left: 18px; line-height: 1.8; }
.check-list li.pass { color: var(--ok); }
.check-list li.warn { color: var(--warn); }
.check-list li.fail { color: var(--danger); }
.sidebar-card strong { display: block; margin: 10px 0 6px; font-size: 1.3rem; }
.ad-slot, .ad-placeholder { border: 1px solid var(--line); border-radius: var(--radius-lg); min-height: 320px; background: var(--surface-soft); overflow: hidden; }
.ad-placeholder { padding: 16px; }
.ad-mockup { position: relative; min-height: 286px; height: 100%; border-radius: 18px; background: linear-gradient(180deg, #fff, #f2f6fc); }
.ad-mockup::before { content: ""; position: absolute; inset: 14px; border-radius: 14px; border: 1px dashed rgba(16,24,40,.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(16,24,40,.06); }
.ad-mockup-media { inset: 78px 24px 106px; border-radius: 16px; background: linear-gradient(135deg, rgba(23,105,255,.12), rgba(15,140,83,.1)); }
.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(16,24,40,.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, #1769ff, #0f8c53); 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: 1080px) { .layout, .hero, .field-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .shell { width: min(100% - 24px, 1380px); } .hero, .control-panel, .result-card, .sidebar-card { padding: 20px; } .color-input { grid-template-columns: 1fr; } .toggle-row { flex-direction: column; align-items: stretch; } }
