/* Bewerbungspilot: hand-written styles, no framework. Light theme with dark mode via prefers-color-scheme. */

:root {
  --bg: #f6f8f9;
  --surface: #ffffff;
  --surface-2: #eef3f5;
  --text: #14212b;
  --muted: #5b6b76;
  --border: #dbe3e7;
  --accent: #0b5d6e;
  --accent-hover: #084957;
  --accent-soft: #e2f0f3;
  --on-accent: #ffffff;
  --ok: #1d7a46;
  --ok-soft: #e3f4ea;
  --warn: #8a5300;
  --warn-soft: #fdf1dc;
  --bad: #b3261e;
  --bad-soft: #fbe7e5;
  --info: #1f5fa8;
  --info-soft: #e5eefa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 33, 43, .05), 0 4px 16px rgba(20, 33, 43, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1518;
    --surface: #162126;
    --surface-2: #1c2a30;
    --text: #e5edf0;
    --muted: #9db0b9;
    --border: #2a3a41;
    --accent: #4fb3c4;
    --accent-hover: #73c6d4;
    --accent-soft: #173a42;
    --on-accent: #06272e;
    --ok: #6fd39a;
    --ok-soft: #173327;
    --warn: #f0b860;
    --warn-soft: #3a2c14;
    --bad: #ff8a80;
    --bad-soft: #3d1c1a;
    --info: #8ab8f0;
    --info-soft: #1a2a3f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
h2 { font-size: 1.4rem; }
h3, .h3 { font-size: 1.15rem; }
.h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
pre { white-space: pre-wrap; word-break: break-word; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1400px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.page { padding-top: 32px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt { margin-top: 24px; }
.mt-sm { margin-top: 8px; }
.grow { flex: 1; min-width: 0; }
.break { word-break: break-all; }
.text-bad { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.inline { display: inline; margin: 0; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a, .site-nav .linklike { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .97rem; }
.site-nav a:hover, .site-nav .linklike:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.site-nav a.btn { color: var(--on-accent); margin-left: 8px; }
.site-nav a.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; color: var(--text); align-items: center; justify-content: center; }
.nav-toggle svg { display: block; margin: 0 auto; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a, .site-nav .linklike { padding: 12px; text-align: left; width: 100%; }
  .site-nav a.btn { margin: 8px 0 0; text-align: center; }
  .site-nav form { width: 100%; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0; font-size: .92rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 11px 20px; min-height: 46px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--border); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-danger:hover { background: var(--bad); filter: brightness(.92); color: #fff; }
.btn-large { min-height: 54px; padding: 14px 26px; font-size: 1.07rem; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.btn-row form { margin: 0; }
.btn svg { width: 22px; height: 22px; }

/* Cards, alerts */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
@media (max-width: 600px) { .card { padding: 18px; } }
.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 16px; border: 1px solid transparent; }
.alert a { font-weight: 600; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert-bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.help-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.flashes { margin-bottom: 8px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }
.count { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .8rem; text-align: center; font-weight: 600; vertical-align: middle; }

.score { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 700; font-size: 1rem; border: 3px solid currentColor; }
.score-high { color: var(--ok); background: var(--ok-soft); }
.score-mid { color: var(--warn); background: var(--warn-soft); }
.score-low { color: var(--muted); background: var(--surface-2); }
.score-none { color: var(--muted); background: var(--surface-2); border-style: dashed; }

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--border); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.dot.off { background: var(--muted); }

/* Forms */
.form { display: block; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .label, legend.label { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req { color: var(--bad); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"],
input[type="date"], input[type="time"], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px; min-height: 46px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.help { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.field.check label { font-weight: 400; margin: 0; }
.check-inline { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--muted); margin-left: auto; cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
section.grid-2, div.grid-2 > section { min-width: 0; }
div.grid-2 > .card, div.grid-2 > section { margin-top: 0; }
div.grid-2:has(> .card) { gap: 20px; }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-2-1 { grid-template-columns: minmax(0, 1fr); } }

.option-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; cursor: pointer; background: var(--surface); }
.option-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option-card input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .93rem; background: var(--surface); }
.segmented label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.segmented input { accent-color: var(--accent); }

/* Chips input */
.chips { display: none; flex-wrap: wrap; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; background: var(--surface); min-height: 46px; }
.js .chips { display: flex; }
.js .chips-fallback { display: none; }
.chips:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip-list { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .93rem; font-weight: 600; }
.chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 6px; border-radius: 999px; }
.chip button:hover { background: rgba(0, 0, 0, .08); }
.chip-input { flex: 1; min-width: 160px; border: 0 !important; box-shadow: none !important; padding: 6px !important; min-height: 32px !important; }
.chip-static { display: inline-block; background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 600; }

/* Answer rows */
.answer-row { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 0 0 14px; background: var(--surface); min-width: 0; }
.answer-row .field:last-child { margin-bottom: 0; }
.answer-head { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.answer-new { border-style: dashed; }
.answer-new legend { padding: 0 6px; font-weight: 700; }

/* Landing */
.landing { padding: 0; }
.hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); padding: 56px 0 48px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.hero-small { color: var(--muted); font-size: .92rem; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 12px 40px rgba(11, 93, 110, .12); }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.mock-row > div { flex: 1; min-width: 0; }
.mock-foot { margin: 12px 4px 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 36px; } }
.section { padding: 56px 0; }
.section.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-sm { margin-top: 32px; }
.section-title { text-align: center; font-size: clamp(1.5rem, 3.5vw, 2rem); }
.section-lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trust-item p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .trust { grid-template-columns: minmax(0, 1fr); } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.steps li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.step-no { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }
.cta-final { text-align: center; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.price-card-featured { border: 2px solid var(--accent); box-shadow: 0 8px 28px rgba(11, 93, 110, .14); }
.price-card .btn, .price-card form { margin-top: auto; }
.price-card form + form { margin-top: 8px; }
.ribbon { position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0; }
.price { margin: 4px 0 0; }
.price .amount { font-size: 2rem; font-weight: 800; }
.price .per { color: var(--muted); }
.price-sub { color: var(--muted); font-size: .9rem; }
.pricing-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Auth */
.auth { max-width: 460px; margin: 16px auto; }
.auth-links { text-align: center; margin: 16px 0 0; color: var(--muted); }

/* App */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; }
.stats .card + .card { margin-top: 0; }
@media (max-width: 860px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat-label { color: var(--muted); font-size: .9rem; font-weight: 600; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.9rem; font-weight: 800; margin: 0 0 8px; line-height: 1.2; }
.stat-of { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.stat-device { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.meter { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.list { list-style: none; margin: 0; padding: 0; }
.list.card { padding: 4px 20px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row form { margin: 0; }
.empty { text-align: center; color: var(--muted); }
.empty p { margin-bottom: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 24px; overflow-x: auto; scrollbar-width: thin; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.job.card + .job.card { margin-top: 0; }
.job { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; transition: opacity .25s; }
.job.is-gone { opacity: 0; }
.job-main { display: flex; gap: 16px; align-items: flex-start; flex: 1 1 380px; min-width: 0; }
.job-title { font-size: 1.1rem; margin: 0 0 2px; }
.job-title a { color: var(--text); text-decoration: none; }
.job-title a:hover { color: var(--accent); text-decoration: underline; }
.job .muted { margin: 0; }
.reason { margin: 8px 0 0; font-size: .95rem; }
.job-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.job-actions form { margin: 0; }
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 16px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.qa dt { font-weight: 600; margin-top: 12px; }
.qa dd { margin: 2px 0 0; color: var(--muted); }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }

/* Onboarding wizard */
.progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; }
.progress li { flex: 1; min-width: 0; }
.progress li > a, .progress li > span:first-child { text-decoration: none; }
.progress li, .progress li > a { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.progress li::after { content: ""; flex: 1; height: 2px; background: var(--border); }
.progress li:last-child::after { display: none; }
.progress-no { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); align-items: center; justify-content: center; flex: none; background: var(--surface); }
.progress .is-current { color: var(--text); }
.progress .is-current .progress-no { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.progress .is-done .progress-no { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) { .progress-label { display: none; } .progress li.is-current .progress-label { display: inline; } }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 2px dashed var(--border); border-radius: var(--radius); padding: 36px 16px; margin-bottom: 16px; cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over, .dropzone:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--accent); }
.dz-title { font-weight: 700; font-size: 1.05rem; }
.icon-lg { width: 40px; height: 40px; color: var(--accent); }
.sr-only-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
@media (max-width: 600px) { .downloads { grid-template-columns: minmax(0, 1fr); } }
.mini-steps { padding-left: 22px; }
.mini-steps li { margin-bottom: 10px; }
.connect-status { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); margin-top: 16px; }
.connect-status .dot { animation: pulse 1.6s ease-in-out infinite; background: var(--warn); }
.connect-status.is-on { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.connect-status.is-on .dot { animation: none; background: var(--ok); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .connect-status .dot { animation: none; } * { transition: none !important; } }

/* Usage bars */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 8px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar span { display: block; width: 100%; max-width: 28px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar small { font-size: .7rem; color: var(--muted); margin-top: 4px; }
.bars-wide .bar small { font-size: .62rem; }

/* Legal */
.legal h2 { margin-top: 32px; font-size: 1.3rem; }
.legal h3 { margin-top: 24px; }
.legal li { margin-bottom: 6px; }
.draft-banner, .legal-note { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; }
.legal-note { font-weight: 400; }

/* Admin */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card .table-wrap { border: 0; border-radius: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: var(--surface-2); font-weight: 700; white-space: nowrap; font-size: .85rem; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table tr.is-blocked td { opacity: .6; }
.table td.actions { white-space: nowrap; }
.table td.actions form { display: inline-block; margin: 0 4px 4px 0; }
.plan-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.plan-form select, .plan-form input { width: auto; min-height: 36px; padding: 6px 8px; font-size: .9rem; }
.search-inline { display: flex; gap: 8px; align-items: center; margin: 0; }
.search-inline input, .search-inline select { min-height: 38px; padding: 6px 10px; width: auto; }
.json { font-family: var(--mono); font-size: .78rem; margin: 0; max-height: 260px; overflow: auto; background: var(--surface-2); padding: 8px; border-radius: 6px; }
.table-trace td { min-width: 90px; }
.table-trace td:nth-child(3), .table-trace td:nth-child(4) { min-width: 220px; }
.routing-task { border-top: 1px solid var(--border); padding-top: 16px; }
.test-list { margin-top: 8px; }
.test-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: .9rem; }
.test-result.ok { color: var(--ok); font-weight: 600; }
.test-result.bad { color: var(--bad); font-weight: 600; }
.admin-tabs { margin-top: -8px; }
.answers-details { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 8px 0 20px; background: var(--surface-2); }
.answers-details > summary { cursor: pointer; list-style-position: outside; margin-left: 18px; }
.answers-details[open] > summary { margin-bottom: 14px; }

/* Landing: download */
.download-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn.is-disabled { opacity: .65; cursor: default; pointer-events: none; }
.btn .badge { margin-left: 6px; vertical-align: middle; }
.site-nav a.nav-small { font-size: .9rem; color: var(--muted); }
.text-ok { color: var(--ok); }

/* Admin: live control room, run timeline */
.stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stats-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats-6 .stat-value { font-size: 1.5rem; }
.pause-form { margin: 0; }
.pause-btn { min-width: 280px; font-weight: 800; }
.pause-btn.is-paused { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline { list-style: none; padding: 0; margin: 0; }
.tl-step { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.tl-step + .tl-step { margin-top: 12px; }
@media (max-width: 700px) { .tl-step { grid-template-columns: minmax(0, 1fr); } }
.tl-shot img { display: block; width: 240px; height: auto; border: 1px solid var(--border); border-radius: 6px; }
.tl-noshot { width: 240px; max-width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border); border-radius: 6px; }
.tl-head { margin: 0 0 2px; }
.tl-body details { margin-top: 6px; }
.tl-body summary { cursor: pointer; font-size: .9rem; color: var(--accent); }
.json.snapshot { max-height: 420px; white-space: pre-wrap; word-break: break-word; }
