/* KI-Ads · nova.02 media — Oberfläche
   Marke: Dunkel #15181d, Orange #E8930F, Text #1d1b16, Inter. Helle Flächen nur kühles Neutral. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/static/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/static/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #15181d;
  --ink-2: #1f242c;
  --ink-3: #2b323d;
  --text: #1d1b16;
  --muted: #5b6270;
  --faint: #8a909b;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --section: #e9ebef;
  --line: #dde1e7;
  --line-strong: #c6ccd5;
  --accent: #e8930f;
  --accent-ink: #8f5a07;
  --ok: #1d7a46;
  --ok-bg: #e3f2ea;
  --bad: #b42318;
  --bad-bg: #fbe9e7;
  --warn: #9a5b00;
  --run: #2457c5;
  --run-bg: #e7eefb;
  --offer: #6b3fb5;
  --offer-bg: #f0eafb;
  --mix-gewinner: #1f9d55;
  --mix-test: #8a94a6;
  --mix-verlierer: #d64545;
  --mix-wenig: #d3d8df;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 24, 29, 0.06), 0 10px 28px -16px rgba(21, 24, 29, 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --space-section: clamp(2.5rem, 2rem + 2vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01';
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem); font-weight: 760; }
h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); font-weight: 720; }
h3 { font-size: 1.08rem; font-weight: 680; }
h4 { font-size: 0.8rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 1.1rem 0 0.4rem; }
p { margin: 0.5rem 0; }
:focus-visible { outline: 3px solid rgba(232, 147, 15, 0.55); outline-offset: 2px; border-radius: 4px; }

.eyebrow { margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow a { color: var(--muted); text-decoration: none; }
.eyebrow a:hover { color: var(--accent-ink); }
.muted { color: var(--faint); }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.85em; }
.sub { display: block; font-size: 0.8rem; color: var(--muted); }
.sub-inline { font-size: 0.8rem; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  background: var(--ink);
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.topbar__brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.topbar__brand img { width: 104px; height: auto; display: block; }
.topbar__product { color: #fff; font-weight: 700; letter-spacing: -0.01em; padding-left: 0.9rem; border-left: 2px solid var(--accent); }
.topbar__nav { display: flex; gap: 0.25rem; flex: 1; }
.topbar__nav a { color: #c9ced6; text-decoration: none; font-weight: 550; padding: 0.4rem 0.7rem; border-radius: 6px; transition: background 0.2s var(--ease), color 0.2s; }
.topbar__nav a:hover { color: #fff; background: var(--ink-3); }
.topbar__user { display: flex; align-items: center; gap: 0.9rem; color: #c9ced6; font-size: 0.85rem; }
.topbar__who { display: flex; align-items: center; gap: 0.5rem; }
.topbar__role { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }

.page { max-width: 1240px; margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) 3rem; }
.footnote { max-width: 1240px; margin: 0 auto; padding: 1.5rem 2rem 2.5rem; font-size: 0.78rem; color: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-weight: 650; font-size: 0.9rem; line-height: 1;
  padding: 0.72rem 1.05rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 16px -8px rgba(232, 147, 15, 0.8); }
.btn--primary:hover { background: #f29d16; color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 22px -10px rgba(232, 147, 15, 0.95); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark { background: transparent; color: #c9ced6; border-color: var(--ink-3); }
.btn--ghost-dark:hover { color: #fff; border-color: #4a525e; }
.btn--sm { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
.btn--block { width: 100%; }
.btn.is-disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.74rem; font-weight: 650; line-height: 1;
  padding: 0.32rem 0.6rem; border-radius: 999px; white-space: nowrap; vertical-align: middle;
}
.pill + .pill { margin-left: 0.3rem; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.pill--run { background: var(--run-bg); color: var(--run); }
.pill--neutral { background: var(--section); color: #3b414b; }
.pill--muted { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill--warn { background: var(--section); color: var(--warn); box-shadow: inset 3px 0 0 var(--accent); }
.pill--offer { background: var(--offer-bg); color: var(--offer); }
.pill--ok::before, .pill--bad::before, .pill--run::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Kopf je Seite ---------- */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.runmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.1rem; margin-top: 0.8rem; color: var(--muted); font-size: 0.88rem; }

/* ---------- Hinweise ---------- */
.flash { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 520; border: 1px solid transparent; }
.flash ul { margin: 0.4rem 0 0; padding-left: 1.2rem; font-weight: 450; }
.flash--ok { background: var(--ok-bg); color: #145c34; border-color: #bfe2cd; }
.flash--bad { background: var(--bad-bg); color: #8a1b12; border-color: #f2c5bf; }
.callout { display: flex; align-items: flex-start; gap: 0.9rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin: 0 0 1.5rem; border: 1px solid transparent; }
.callout--run { background: var(--run-bg); color: #173c8a; border-color: #c7d6f5; }
.callout--bad { background: var(--bad-bg); color: #8a1b12; border-color: #f2c5bf; display: block; }
.callout--offer { background: var(--offer-bg); color: #4a2a80; border-color: #dccff4; display: block; }
.spinner { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2.5px solid rgba(36, 87, 197, 0.25); border-top-color: var(--run); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Flächen ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 2vw, 1.6rem); margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.panel__title { font-size: 1.15rem; margin-bottom: 1rem; }
.section { margin-top: var(--space-section); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section__tools { display: flex; align-items: center; gap: 1rem; }
.counter { font-size: 0.9rem; color: var(--muted); }
.counter strong { color: var(--ink); font-size: 1.15rem; }
.empty { color: var(--muted); margin: 0.5rem 0; }
.empty-state { max-width: 560px; margin: 3rem auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: var(--shadow); }
.empty-state h1, .empty-state h2 { margin-bottom: 0.6rem; }
.empty-state .btn { margin-top: 1rem; }

/* ---------- Start einer Analyse ---------- */
.start {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 1.5rem; align-items: end;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 100% 0%, rgba(232, 147, 15, 0.22), transparent 55%), var(--ink);
  color: #d5d9df;
  box-shadow: var(--shadow);
}
.start h3 { color: #fff; font-size: 1.25rem; }
.start p { font-size: 0.9rem; margin-bottom: 0; }
.start .field__label { color: #fff; }
.start .field__label em, .start .field__hint { color: #9aa1ac; }

/* Sprungziele nicht unter der festen Kopfzeile verstecken */
.section, .variant, .panel { scroll-margin-top: 84px; }

/* ---------- Kennzahlen ---------- */
.kpis {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px;
  background: var(--ink-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kpis::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 120% at 85% -20%, rgba(232, 147, 15, 0.18), transparent 60%); }
.kpi { background: var(--ink); padding: 1.2rem 1.25rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.kpi__label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8d949f; font-weight: 650; }
.kpi__value { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.95rem); font-weight: 720; letter-spacing: -0.025em; color: #fff; font-variant-numeric: tabular-nums; }
.kpi--accent .kpi__value { color: var(--accent); }
.kpis__ref { grid-column: 1 / -1; margin: 0; padding: 0.65rem 1.25rem; background: var(--ink-2); color: #9aa1ac; font-size: 0.8rem; }

/* ---------- Verteilung ---------- */
.mix { margin: 1.25rem 0 1.5rem; }
.mix__bar { display: block; width: 100%; height: 12px; border-radius: 999px; overflow: hidden; background: var(--section); }
.mix__seg--gewinner { fill: var(--mix-gewinner); }
.mix__seg--test { fill: var(--mix-test); }
.mix__seg--verlierer { fill: var(--mix-verlierer); }
.mix__seg--zu_wenig_daten { fill: var(--mix-wenig); }
.mix__legend { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.86rem; color: var(--muted); }
.mix__legend strong { color: var(--ink); margin-left: 0.2rem; font-variant-numeric: tabular-nums; }
.mix__total { margin-left: auto; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.4rem; vertical-align: 0; }
.dot--gewinner { background: var(--mix-gewinner); }
.dot--test { background: var(--mix-test); }
.dot--verlierer { background: var(--mix-verlierer); }
.dot--zu_wenig_daten { background: var(--mix-wenig); }
.dot--fatigue { background: var(--accent); }

/* ---------- Erkenntnisse und Winkel ---------- */
.insights { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 3vw, 3rem); margin-top: var(--space-section); }
.insights h2 { margin-bottom: 1rem; }
.insight-list { margin: 0; padding: 0; list-style: none; counter-reset: e; }
.insight-list li { counter-increment: e; position: relative; padding: 0.8rem 0 0.8rem 2.6rem; border-top: 1px solid var(--line); }
.insight-list li::before { content: counter(e, decimal-leading-zero); position: absolute; left: 0; top: 0.85rem; font-weight: 750; font-size: 0.85rem; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.angles { display: grid; gap: 0.75rem; }
.angle { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; }
.angle p { font-size: 0.9rem; margin: 0.35rem 0 0; }
.angle__proof { color: var(--muted); font-size: 0.8rem !important; }

/* ---------- Varianten ---------- */
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr)); gap: 1.25rem; }
.variant {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.35rem 1.15rem; box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s;
}
.variant:hover { border-color: var(--line-strong); }
.variant--freigegeben { border-color: #9fd3b4; box-shadow: 0 0 0 3px rgba(29, 122, 70, 0.08), var(--shadow); }
.variant--verworfen { opacity: 0.62; }
.variant--verworfen:hover { opacity: 1; }
.variant__head { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: start; }
.variant__no { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); font-variant-numeric: tabular-nums; }
.variant__title h3 { font-size: 1.05rem; }
.variant__hypo { font-size: 0.88rem; color: var(--muted); margin: 0.85rem 0 0; padding: 0.6rem 0.8rem; background: var(--bg); border-radius: var(--radius-sm); }
.variant__hypo strong { color: var(--ink); margin-right: 0.35rem; }
.stages { list-style: none; margin: 1.1rem 0 0.4rem; padding: 0; position: relative; }
.stages::before { content: ''; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: var(--section); }
.stage { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 0.75rem; padding: 0.4rem 0; }
.stage__tag { position: relative; z-index: 1; align-self: start; justify-self: center; font-size: 0.64rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--ink); padding: 0.28rem 0.45rem; border-radius: 5px; margin-top: 0.2rem; }
.stage:first-child .stage__tag { background: var(--accent); color: var(--ink); }
.stage__text { margin: 0; font-size: 0.93rem; }
.stage__text--hook { font-size: 1.12rem; font-weight: 660; letter-spacing: -0.01em; color: var(--ink); line-height: 1.35; }
.variant__headline { border-top: 1px solid var(--line); margin-top: 0.6rem; padding-top: 0.75rem; }
.variant__headline .eyebrow { margin-bottom: 0.15rem; }
.variant__headline p { margin: 0; font-weight: 650; color: var(--ink); }
.variant__more { margin-top: 0.75rem; font-size: 0.9rem; }
.variant__more summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.copybox { white-space: normal; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 0.95rem; }
.compliance { margin-top: 0.9rem; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); font-size: 0.86rem; }
.compliance ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.compliance li { margin: 0.2rem 0; }
.compliance--ok { background: var(--ok-bg); color: #145c34; }
.compliance--warn { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.compliance--warn strong { color: var(--warn); }
.compliance__src { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 0.3rem; }
.variant__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.inline-form { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: var(--muted); }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.edit { flex-basis: 100%; }
.edit > summary { list-style: none; display: inline-flex; }
.edit > summary::-webkit-details-marker { display: none; }
.edit[open] > summary { margin-bottom: 0.8rem; }
.edit__form { border-top: 1px dashed var(--line-strong); padding-top: 0.9rem; display: grid; gap: 0.65rem; }
.edit__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.variant__meta { margin: 0.8rem 0 0; font-size: 0.76rem; color: var(--faint); }

/* ---------- Tabellen ---------- */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th { position: sticky; top: 0; background: var(--section); color: #3b414b; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; padding: 0.7rem 0.85rem; white-space: nowrap; }
.table td { padding: 0.75rem 0.85rem; border-top: 1px solid var(--line); vertical-align: top; }
.table th.num { text-align: right; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: #f8f9fb; }
.panel .table th { background: transparent; border-bottom: 1px solid var(--line-strong); padding-left: 0; }
.panel .table td { padding-left: 0; }
.strong-link { font-weight: 650; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ' →'; color: var(--accent); transition: margin 0.2s var(--ease); }
.link-arrow:hover::after { margin-left: 3px; }
.table--ads td.ad { min-width: 240px; max-width: 360px; }
.ad__name { font-weight: 620; color: var(--ink); margin-right: 0.35rem; }
.ad__text { margin-top: 0.35rem; font-size: 0.8rem; color: var(--muted); }
.ad__text summary { cursor: pointer; color: var(--ink); }
.row--angebot td:first-child { box-shadow: inset 3px 0 0 var(--offer); }
.reasons { min-width: 200px; font-size: 0.8rem; color: var(--muted); }
.reasons span { display: block; }
.score { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 650; }
.score__bar { width: 44px; height: 6px; background: var(--section); border-radius: 999px; overflow: hidden; }
.score__fill { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.score__fill--0 { width: 2%; } .score__fill--1 { width: 10%; } .score__fill--2 { width: 20%; } .score__fill--3 { width: 30%; }
.score__fill--4 { width: 40%; } .score__fill--5 { width: 50%; } .score__fill--6 { width: 60%; } .score__fill--7 { width: 70%; background: var(--accent); }
.score__fill--8 { width: 80%; background: var(--accent); } .score__fill--9 { width: 90%; background: var(--accent); } .score__fill--10 { width: 100%; background: var(--accent); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tab { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.8rem; border-radius: 999px; text-decoration: none; font-size: 0.85rem; font-weight: 600; color: #3b414b; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s; }
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab__n { font-size: 0.75rem; font-variant-numeric: tabular-nums; opacity: 0.7; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1.25rem; }
.form__group { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.form__group legend { font-weight: 720; font-size: 1rem; color: var(--ink); margin-bottom: 0.8rem; padding: 0; }
.legend-note { display: block; font-weight: 450; font-size: 0.84rem; color: var(--muted); margin-top: 0.2rem; }
.form__actions { display: flex; gap: 0.7rem; padding-top: 0.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--narrow { max-width: 420px; }
.field__label { font-size: 0.84rem; font-weight: 640; color: var(--ink); }
.field__label em { font-style: normal; font-weight: 500; color: var(--faint); margin-left: 0.3rem; }
.field__hint { font-size: 0.78rem; color: var(--muted); }
input[type='text'], input[type='email'], input[type='password'], textarea, select {
  font: inherit; font-size: 0.92rem; color: var(--text); width: 100%;
  padding: 0.62rem 0.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 147, 15, 0.22); }
.input-suffix { display: flex; align-items: center; gap: 0.5rem; }
.input-suffix span { color: var(--muted); font-weight: 600; }

/* ---------- Login ---------- */
.body--bare { background: var(--ink); }
.page--bare { max-width: none; padding: 0; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login__brand {
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 5vw, 4rem);
  background: radial-gradient(90% 70% at 20% 100%, rgba(232, 147, 15, 0.22), transparent 60%), var(--ink);
}
.login__brand img { width: 180px; }
.login__claim { color: #fff; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 4rem); font-weight: 780; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.login__claim span { display: block; margin-top: 1rem; font-size: 1rem; font-weight: 450; letter-spacing: 0; color: #9aa1ac; max-width: 26ch; line-height: 1.5; }
.login__form { align-self: center; justify-self: center; width: min(400px, 100% - 2rem); display: grid; gap: 1rem; background: var(--surface); padding: 2.2rem; border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); }
.login__form h1 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.body--bare .empty-state { margin: 4rem auto; }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insights { grid-template-columns: 1fr; }
  .start { grid-template-columns: 1fr; align-items: stretch; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .topbar { position: static; flex-wrap: wrap; gap: 0.6rem 1rem; }
  .section, .variant, .panel { scroll-margin-top: 16px; }
  .topbar__nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .topbar__user { margin-left: auto; }
  .topbar__who { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login__brand { min-height: 38vh; }
  .login__form { margin: -3rem auto 2rem; }
  .mix__total { margin-left: 0; }
  .variant { padding: 1.1rem 1rem; }
  .stage { grid-template-columns: 54px 1fr; }
  .stages::before { left: 26px; }
  .section__tools { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
