:root { --fg: #1d2327; --muted: #5f6b73; --accent: #0b6e4f; --bg: #fbfbf8; --card: #fff; --line: #e2e4df; --danger: #b3261e; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }
.topbar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: var(--card); }
.topbar nav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
.container { max-width: 46rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.5rem; line-height: 1.25; }
.hero h1 { font-size: 2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .5rem; padding: 1rem; margin: 1rem 0; }
.empty { text-align: center; }
.muted { color: var(--muted); }
.button { display: inline-block; padding: .6rem 1rem; border: 0; border-radius: .4rem; background: var(--accent); color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.button.danger { background: var(--danger); }
.danger { color: var(--danger); }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }
.field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }
.field.checkbox label { display: flex; gap: .5rem; align-items: flex-start; }
input[type=text], input[type=email], input[type=password], input[type=file], select { width: 100%; padding: .55rem; font: inherit; border: 1px solid var(--line); border-radius: .4rem; background: #fff; }
.error { color: var(--danger); }
div.error { background: #fdecea; padding: .75rem; border-radius: .4rem; }
.messages { list-style: none; padding: 0; }
.message { padding: .6rem .8rem; border-radius: .4rem; background: #e7f4ee; margin-bottom: .5rem; }
.list { list-style: none; padding: 0; margin: .5rem 0; }
.list > li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.effort { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.effort-link { flex: 1 1 14rem; font-weight: 600; }
.time { font-variant-numeric: tabular-nums; font-weight: 600; }
.rank { color: var(--muted); }
.badge { font-size: .8rem; padding: .1rem .45rem; border-radius: 1rem; background: #eef0ec; }
.status-suspicious, .status-failed { background: #fff1d6; }
.status-invalid { background: #fdecea; }
.findings { flex-basis: 100%; margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.steps li.done { color: var(--accent); }
.steps li.current { font-weight: 600; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.tabs a { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 1rem; text-decoration: none; }
.tabs a[aria-current=page] { background: var(--accent); color: #fff; border-color: var(--accent); }
.table-wrap { overflow-x: auto; }
.leaderboard { width: 100%; border-collapse: collapse; }
.leaderboard th, .leaderboard td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); }
.leaderboard td:last-child { font-variant-numeric: tabular-nums; }
.map { width: 100%; height: 22rem; border-radius: .5rem; border: 1px solid var(--line); }
details { margin: 1rem 0; }
summary { cursor: pointer; color: var(--accent); }
@media (max-width: 30rem) { .hero h1 { font-size: 1.6rem; } .map { height: 16rem; } }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--card); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer { padding-top: 2rem; font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin: 1rem 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: .5rem; padding: .75rem; display: flex; flex-direction: column; }
.stat strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .9rem; }
