:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #667085;
  --line: #e3e8ef;
  --paper: #ffffff;
  --canvas: #f4f7fb;
  --navy: #111d32;
  --blue: #2968c8;
  --blue-dark: #1f55a6;
  --cyan: #14b8a6;
  --green: #16845b;
  --amber: #a65f00;
  --red: #b42318;
  --shadow: 0 18px 45px rgba(30, 50, 80, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 5%, #e8f1ff 0, transparent 30rem), var(--canvas); }
a { color: var(--blue-dark); }
button, input, select, textarea { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(17, 29, 50, .96); border-top: 4px solid var(--cyan); backdrop-filter: blur(14px); }
.nav-shell { max-width: 1200px; min-height: 66px; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--navy); background: linear-gradient(145deg, #7de4d7, #19b9a7); box-shadow: 0 8px 20px rgba(20, 184, 166, .24); }
.brand-dot { color: #4dd6c5; }
.nav-links { display: flex; gap: 6px; }
.nav-links a, .nav-account > a { padding: 9px 12px; color: #dbe5f3; text-decoration: none; border-radius: 8px; }
.nav-links a:hover, .nav-account > a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-account form { margin: 0; }
.user-chip { color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); padding: 8px 12px; border-radius: 999px; }

.page-shell { width: min(1200px, calc(100% - 32px)); min-height: calc(100vh - 150px); margin: 0 auto; padding: 42px 0 70px; }
.site-footer { padding: 26px 20px; color: #7a8597; text-align: center; border-top: 1px solid var(--line); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; }
.eyebrow { margin-bottom: 10px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.muted, .form-hint { color: var(--muted); }
.text-link { font-weight: 700; text-decoration: none; }

.button, button { display: inline-flex; align-items: center; justify-content: center; width: max-content; border: 0; border-radius: 10px; padding: 11px 17px; color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(41, 104, 200, .2); text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.button:hover, button:hover { transform: translateY(-1px); background: var(--blue-dark); }
.button-secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.button-secondary:hover { background: #f8fafc; }
.button-ghost { color: #e7eef8; background: transparent; border: 1px solid rgba(255,255,255,.2); box-shadow: none; }
.button-small { padding: 8px 12px; }

.hero { min-height: 560px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 70px; }
.hero h1 span { color: var(--blue); }
.hero-copy { max-width: 680px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.hero-card { min-height: 260px; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 28px; color: #fff; background: linear-gradient(145deg, #142743, #215b9d 68%, #18a99a); box-shadow: 0 28px 70px rgba(27, 69, 119, .28); transform: rotate(2deg); }
.hero-card-label { color: #b9eae4; }
.hero-card strong { margin: 5px 0 28px; font-size: 30px; line-height: 1.1; }
.sparkline { height: 80px; display: flex; align-items: end; gap: 10px; }
.sparkline i { flex: 1; border-radius: 7px 7px 2px 2px; background: rgba(255,255,255,.85); }
.sparkline i:nth-child(1) { height: 20%; }.sparkline i:nth-child(2) { height: 37%; }.sparkline i:nth-child(3) { height: 32%; }.sparkline i:nth-child(4) { height: 63%; }.sparkline i:nth-child(5) { height: 94%; background: #6ce2d2; }

.page-heading, .problem-hero, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.page-heading > p { max-width: 440px; color: var(--muted); }
.problem-grid { display: grid; gap: 16px; }
.problem-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 24px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 20px rgba(30,50,80,.04); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.problem-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.problem-card h2 { margin: 0 0 4px; }.problem-card p { margin: 0; color: var(--muted); }
.problem-number { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--blue); background: #edf4ff; font-weight: 850; }
.card-arrow { font-size: 28px; color: var(--blue); }

.problem-hero h1 { margin: 0; }
.problem-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.content-column { display: grid; gap: 20px; }
.panel, .submit-card, .attempt-card, .auth-card { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 28px rgba(30,50,80,.05); }
.panel { padding: 28px; }
.statement { min-height: 190px; }
.prose { line-height: 1.7; }.prose h1 { font-size: 30px; }.prose h2 { margin-top: 26px; }.prose pre { overflow: auto; padding: 15px; border-radius: 10px; background: #111d32; color: #e7eef8; }.prose code { padding: 2px 5px; border-radius: 5px; background: #eef3f8; }.prose pre code { padding: 0; background: none; }
.scoring-note { display: flex; gap: 18px; }.scoring-note h2 { margin-bottom: 8px; }.scoring-note p { margin: 0; color: var(--muted); line-height: 1.6; }
.section-icon { flex: 0 0 auto; display: grid; place-items: center; width: 45px; height: 45px; color: #fff; background: var(--cyan); border-radius: 13px; font-size: 20px; font-weight: 900; }
.submit-card { position: sticky; top: 92px; padding: 24px; }.submit-card h2 { margin-bottom: 20px; }
form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; color: #344054; font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid #cfd7e3; border-radius: 9px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41,104,200,.12); }
label small { color: var(--muted); font-weight: 500; }
.form-hint { margin: 16px 0 0; font-size: 13px; line-height: 1.5; }

.attempts-section { margin-top: 48px; scroll-margin-top: 90px; }.section-heading h2 { margin: 0; font-size: 30px; }.counter { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; color: var(--blue); background: #e8f1ff; font-weight: 850; }
.attempt-card { margin-bottom: 16px; padding: 22px; border-left: 5px solid #94a3b8; scroll-margin-top: 90px; }
.attempt-card.status-valid { border-left-color: var(--green); }.attempt-card.status-queued, .attempt-card.status-compiling { border-left-color: var(--blue); }.attempt-card.status-infrastructure_error, .attempt-card.status-checker_error { border-left-color: var(--red); }.attempt-card.status-invalid_output, .attempt-card.status-compilation_error { border-left-color: var(--amber); }
.attempt-header { display: flex; justify-content: space-between; align-items: start; gap: 15px; }.attempt-number { display: block; font-size: 20px; font-weight: 850; }.attempt-header time { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.status-badge { padding: 7px 11px; border-radius: 999px; color: #344054; background: #eef2f6; font-size: 13px; font-weight: 800; white-space: nowrap; }.status-valid .status-badge { color: #086344; background: #dcf8ec; }.status-queued .status-badge, .status-compiling .status-badge { color: #174f9f; background: #e5efff; }.status-infrastructure_error .status-badge, .status-checker_error .status-badge { color: #9d2018; background: #fee9e7; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 14px; }.metric { padding: 13px 14px; border-radius: 12px; background: #f6f8fb; }.metric span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }.metric strong { font-size: 17px; }
.attempt-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 15px; color: var(--muted); font-size: 12px; }.source-kept { color: var(--green); }
details { border-top: 1px solid var(--line); padding-top: 14px; } summary { color: var(--blue-dark); font-weight: 750; cursor: pointer; }
.table-scroll { margin-top: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; } th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; } th { color: #536176; background: #f7f9fc; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; } td { font-size: 14px; }
.status-history { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 14px; color: var(--muted); font-size: 12px; }.status-history span { padding: 5px 8px; border-radius: 7px; background: #eef2f6; }.status-history b { color: #a3adbb; }
.empty-state { padding: 42px 24px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #cbd5e1; border-radius: 18px; }.empty-state h2, .empty-state h3 { color: var(--ink); }

.leaderboard .rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eef2f6; font-weight: 850; }.leaderboard .rank-1 { color: #805500; background: #ffedb0; }.leaderboard .rank-2 { color: #4c596b; background: #e8edf3; }.leaderboard .rank-3 { color: #82451d; background: #f8dcc8; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: #116149; background: #dcf8ec; font-size: 13px; font-weight: 800; }.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: #18a974; box-shadow: 0 0 0 4px rgba(24,169,116,.12); }
.auth-shell { min-height: 600px; display: grid; grid-template-columns: 1fr 460px; align-items: center; gap: 80px; }.auth-intro p { max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.6; }.auth-card { padding: 30px; }.auth-card p { margin: 20px 0 0; color: var(--muted); text-align: center; }
.alert { margin-bottom: 24px; padding: 14px 16px; border-radius: 12px; }.alert-error { color: #8f1d17; background: #fee9e7; border: 1px solid #fac7c3; }
.alert-success { color: #086344; background: #dcf8ec; border: 1px solid #a9ead5; }
.submission-page > .text-link { display: inline-block; margin-bottom: 20px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { display: flex; min-height: 112px; padding: 22px; flex-direction: column; justify-content: space-between; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 24px rgba(30,50,80,.05); text-decoration: none; }
.stat-card span { color: var(--muted); font-size: 13px; font-weight: 700; }.stat-card strong { font-size: 34px; letter-spacing: -.04em; }
.admin-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-action { display: flex; gap: 18px; padding: 24px; color: var(--ink); background: linear-gradient(135deg, #fff, #f2f7ff); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; }.admin-action h2 { margin-bottom: 7px; }.admin-action p { margin: 0; color: var(--muted); line-height: 1.5; }
.admin-section { margin-top: 24px; }.admin-section .section-heading { margin-bottom: 4px; }
.admin-two-column { display: grid; grid-template-columns: minmax(340px, .8fr) minmax(420px, 1.2fr); gap: 20px; align-items: start; }
.package-help { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }.package-help pre { overflow: auto; padding: 13px; color: #dce8f8; background: #111d32; border-radius: 10px; }
.problem-admin-list { display: grid; gap: 10px; }.problem-admin-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }.problem-admin-list small { display: block; margin-top: 4px; color: var(--muted); }
.version-list { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }.version-pill { padding: 5px 8px; color: #64748b; background: #eef2f6; border-radius: 7px; font-size: 12px; font-weight: 800; }.version-pill.is-active { color: #086344; background: #dcf8ec; }
.participant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.participant-card { padding: 22px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(30,50,80,.05); text-decoration: none; }.participant-title { display: flex; align-items: center; gap: 12px; }.participant-title small { display: block; margin-top: 3px; color: var(--muted); }.participant-title .card-arrow { margin-left: auto; }.avatar { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: linear-gradient(145deg, var(--blue), var(--cyan)); border-radius: 13px; font-weight: 900; }
.participant-metrics { display: flex; gap: 20px; margin: 20px 0 15px; color: var(--muted); font-size: 13px; }.participant-metrics b { color: var(--ink); font-size: 18px; }
.heatmap { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-bottom: 12px; }.heatmap i { aspect-ratio: 1; border-radius: 4px; background: #edf1f5; }.heatmap .heat-1 { background: #c8f1e8; }.heatmap .heat-2 { background: #85dfcd; }.heatmap .heat-3 { background: #45c6b2; }.heatmap .heat-4 { background: #169f8e; }.heatmap .heat-5 { background: #08796d; }
.back-link { display: inline-block; margin-bottom: 22px; }.score-link { display: inline-block; padding: 5px 8px; border-radius: 7px; background: #edf4ff; font-weight: 800; text-decoration: none; }
.source-panel { overflow: hidden; background: #101b2e; border: 1px solid #263958; border-radius: 18px; box-shadow: var(--shadow); }.source-toolbar { display: flex; justify-content: space-between; gap: 20px; padding: 13px 18px; color: #aebdd1; background: #182840; font-size: 12px; }.source-panel pre { max-height: 70vh; margin: 0; overflow: auto; padding: 24px; color: #e8eef7; line-height: 1.55; tab-size: 4; }.source-panel code { font-family: "Cascadia Code", Consolas, monospace; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }.problem-editor { display: block; }.admin-sidebar { position: sticky; top: 92px; display: grid; gap: 16px; }.admin-sidebar .panel { padding: 20px; }
.form-grid { display: grid; gap: 14px; }.form-grid-3 { grid-template-columns: repeat(3, 1fr); }.form-grid-4 { grid-template-columns: repeat(4, 1fr); }.span-2 { grid-column: span 2; }
.editor-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }.editor-section h2 { margin-bottom: 7px; }.editor-section > .muted, .editor-section > div > .muted { margin-bottom: 15px; }
.statement-editor { resize: vertical; line-height: 1.55; }.code-editor, .test-editor-row textarea { resize: vertical; font-family: "Cascadia Code", Consolas, monospace; line-height: 1.45; }.code-editor { color: #e5edf8; background: #111d32; border-color: #2e415e; }
.security-note { margin-top: 10px; padding: 12px 14px; color: #315775; background: #edf7ff; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.test-editor-list { display: grid; gap: 14px; }.test-editor-row { padding: 18px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 14px; }.test-editor-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }.remove-test { width: auto; padding: 5px 9px; color: #a12c25; background: transparent; border: 1px solid #e9bbb7; box-shadow: none; font-size: 12px; }.remove-test:hover { color: #fff; background: #b9342c; }.remove-test:disabled { opacity: .35; cursor: not-allowed; }
.publish-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 32px -12px -12px; padding: 15px 18px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 36px rgba(25,45,75,.14); backdrop-filter: blur(10px); }.publish-bar small { display: block; margin-top: 3px; color: var(--muted); }
.archive-upload { border-top: 1px solid var(--line); }.archive-upload summary { padding-top: 0; }.archive-upload form { margin-top: 18px; }

@media (max-width: 900px) {
  .hero, .problem-layout, .auth-shell, .admin-two-column, .editor-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }.form-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }.participant-grid { grid-template-columns: 1fr; }
  .hero { gap: 30px; padding: 35px 0; }.hero-card { min-height: 220px; transform: none; }
  .submit-card { position: static; }.auth-shell { gap: 24px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .site-header { position: static; }.nav-shell { padding: 12px 16px; flex-wrap: wrap; gap: 8px 14px; }.brand { width: 100%; }.nav-account { margin-left: auto; }.user-chip { display: none; }
  .page-shell { width: min(100% - 22px, 1200px); padding-top: 28px; }.page-heading, .problem-hero, .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .button { width: 100%; }.problem-card { grid-template-columns: auto 1fr; }.card-arrow { display: none; }
  .panel, .submit-card, .attempt-card, .auth-card { border-radius: 14px; }.panel, .attempt-card { padding: 17px; }.metrics-grid { grid-template-columns: 1fr 1fr; }.attempt-header { flex-direction: column; }
  th, td { padding: 10px; }.site-footer { font-size: 12px; }
  .admin-stats, .admin-actions { grid-template-columns: 1fr 1fr; }.admin-action { padding: 17px; }.admin-action .section-icon { display: none; }.nav-links { order: 3; width: 100%; overflow-x: auto; }
  .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }.span-2 { grid-column: auto; }.publish-bar { align-items: stretch; flex-direction: column; }.publish-bar button { width: 100%; }
}

/* Visual direction: archive/olympiad-ui/b-egoose.html. */
:root {
  --ink: #181a1f;
  --muted: #686d75;
  --line: #dde1e3;
  --paper: #fff;
  --canvas: #f1f2f6;
  --navy: #181a1f;
  --blue: #0b8a67;
  --blue-dark: #086c52;
  --cyan: #1bc495;
  --green: #0b8a67;
  --shadow: 0 16px 36px rgba(31, 38, 36, .07);
  font-family: Onest, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body { background: var(--canvas); }
.site-header {
  top: 12px;
  width: min(1240px, calc(100% - 48px));
  margin: 18px auto 0;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(216, 221, 219, .9);
  border-top: 1px solid rgba(216, 221, 219, .9);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(30, 37, 35, .07);
}
.nav-shell { min-height: 62px; padding: 8px 12px 8px 16px; }
.brand { color: var(--ink); }
.brand-mark { color: #073f31; background: var(--cyan); border-radius: 12px; box-shadow: none; }
.brand-dot { color: var(--cyan); }
.nav-links { padding: 4px; background: #f0f2f1; border-radius: 13px; }
.nav-links a, .nav-account > a { color: #454a4e; border-radius: 10px; }
.nav-links a:hover, .nav-account > a:hover { color: var(--ink); background: #fff; }
.user-chip { color: #343936; background: #f0f2f1; border: 1px solid #e0e4e2; }
.button-ghost { color: #454a4e; border-color: #dce1df; }
.button-ghost:hover { color: var(--ink); background: #edf0ef; }

.page-shell { width: min(1200px, calc(100% - 44px)); padding-top: 54px; }
h1 { font-weight: 760; }
.eyebrow { color: var(--blue); }
.button, button { background: var(--cyan); color: #073f31; border-radius: 12px; box-shadow: none; }
.button:hover, button:hover { background: #16b387; }
.button-secondary { color: #313633; background: #fff; }
.button-secondary:hover { background: #f5f7f6; }
.panel, .submit-card, .attempt-card, .participant-card, .stat-card {
  border-color: var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.metric, .problem-card, .test-editor-row {
  background: #f4f5f7;
  border-color: #e7e9ea;
  border-radius: 7px;
}
.page-heading { margin-bottom: 28px; }
.live-indicator { color: #075f48; background: #d9f6ed; }
.live-indicator i { background: var(--cyan); }
th { color: #666c70; background: #f3f4f5; }
tbody tr:hover { background: #f7faf8; }
.text-link, .score-link { color: var(--blue); }
.score-link { background: #e1f6ef; }
.leaderboard .rank-1 { color: #075f48; background: #c9f2e5; }
.leaderboard .rank-2, .leaderboard .rank-3 { color: #505653; background: #eaedeb; }

.auth-shell { gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(380px, 480px); }
.auth-intro { min-height: 570px; padding: 58px; display: flex; flex-direction: column; justify-content: center; color: #073f31; background: var(--cyan); border-radius: 28px; }
.auth-intro .eyebrow { color: #075f48; }
.auth-intro h1 { max-width: 520px; font-size: clamp(44px, 6vw, 74px); }
.auth-intro p { color: #0b624c; }
.auth-card { padding: 34px; background: #fff; }
.auth-note { display: grid; gap: 5px; max-width: 470px; margin-top: 32px; padding: 18px; background: rgba(255,255,255,.38); border-radius: 12px; }
.auth-note span { font-size: 14px; line-height: 1.5; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.45; }
.consent-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }

.filter-bar { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; padding: 18px; }
.filter-bar label { min-width: 210px; margin: 0; }
.filter-bar .search-field { flex: 1; }
.filter-bar label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.participant-grid { gap: 4px; }
.participant-card { border-radius: 7px; box-shadow: none; }
.participant-card:hover { position: relative; z-index: 1; border-color: #9ddfcb; background: #fbfffd; }
.avatar { color: #073f31; background: var(--cyan); border-radius: 50%; }
.heatmap .heat-1 { background: #d8f4eb; }.heatmap .heat-2 { background: #a8e7d4; }.heatmap .heat-3 { background: #67d6b7; }.heatmap .heat-4 { background: #28bd93; }.heatmap .heat-5 { background: #087b5d; }

.admin-stats { gap: 4px; }
.stat-card { border-radius: 7px; box-shadow: none; }
.stat-card strong { color: var(--ink); }
.stat-card small { color: var(--muted); }
.stat-warning { background: #fff2ee; border-color: #efb7a7; }
.admin-actions { gap: 4px; }
.admin-action { background: #fff; border-radius: 7px; }
.section-icon { color: #073f31; background: var(--cyan); }
.status-ok { color: #075f48; background: #d9f6ed; }
.status-error { color: #8c3027; background: #fbe5e1; }

.legal-page { max-width: 880px; margin: 0 auto; }
.legal-content { padding: clamp(24px, 5vw, 52px); line-height: 1.7; }
.legal-content h2 { margin-top: 34px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-note { margin: 34px -12px -12px; padding: 20px; background: #e4f7f1; border-radius: 12px; }
.site-footer { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--blue); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: auto; padding: 38px; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar label, .filter-bar button, .filter-bar .button { width: 100%; }
}
@media (max-width: 650px) {
  .site-header { width: calc(100% - 20px); margin-top: 10px; border-radius: 18px; }
  .nav-shell { padding: 10px; }
  .nav-links { background: transparent; }
  .page-shell { width: calc(100% - 24px); padding-top: 34px; }
  .auth-intro { padding: 28px 22px; border-radius: 22px; }
  .auth-intro h1 { font-size: 42px; }
  .admin-stats, .admin-actions { grid-template-columns: 1fr; }
}
