:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --accent: #0f172a;
  --danger: #b91c1c;
  --success: #166534;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 12px; padding: 12px 16px; background: var(--accent); color: #fff; font-weight: 700; }
button:disabled { cursor: not-allowed; opacity: .48; }
.button-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 38%) 1fr; }
.brand-panel { padding: clamp(28px, 6vw, 72px); background: #0f172a; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.brand-logo { width: min(230px, 70%); max-height: 90px; object-fit: contain; object-position: left center; }
.brand-panel .muted { color: #cbd5e1; max-width: 460px; }
.security-note { display: grid; gap: 4px; padding: 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.05); max-width: 480px; }
.security-note span { color: #cbd5e1; }
.content-panel { padding: clamp(24px, 5vw, 64px); display: flex; align-items: center; }
.content-panel > section, .content-panel > .status { width: min(820px, 100%); margin-inline: auto; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.card + .card { margin-top: 18px; }
.card.compact { padding: 18px; display: grid; gap: 4px; }
.card-row, .topbar, .candidate { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar { margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.candidate { margin-top: 22px; padding: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.candidate > div { display: grid; gap: 3px; }
label { display: grid; gap: 7px; font-weight: 650; margin-top: 16px; }
input { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink); outline: none; }
input:focus { border-color: #64748b; box-shadow: 0 0 0 3px rgba(100,116,139,.12); }
form button { width: 100%; margin-top: 18px; }
.captcha { min-height: 65px; margin-top: 18px; }
.eyebrow, .label { margin: 0 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: 11px; font-weight: 800; }
.brand-panel .eyebrow { color: #94a3b8; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.04; margin-bottom: 14px; }
h2 { font-size: 28px; margin-bottom: 8px; }
h3 { font-size: 20px; margin-bottom: 6px; }
.muted, small { color: var(--muted); }
.badge { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.status { padding: 13px 16px; margin-bottom: 16px !important; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.status.error { color: var(--danger); border-color: #fecaca; background: #fef2f2; }
.status.success { color: var(--success); border-color: #bbf7d0; background: #f0fdf4; }
.hidden { display: none !important; }
pre { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft); border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: auto; padding: 32px 24px; }
  .content-panel { align-items: start; }
  .grid { grid-template-columns: 1fr; }
  .card-row, .topbar, .candidate { align-items: flex-start; flex-direction: column; }
}
