.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.admin-badge {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-shell { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; min-height: calc(100vh - 9rem); }
.admin-hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.admin-hero h1 {
  margin: 1.3rem 0;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}
.admin-hero > p:last-child { max-width: 44rem; color: var(--muted); font-size: 1.08rem; }

.login-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: 7rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--ink);
  background: var(--cyan);
  box-shadow: 10px 10px 0 var(--ink);
}
.login-card h2, .dashboard-heading h2 { margin: 0.5rem 0; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.055em; }
.login-card p { color: #4e5668; }
.login-card form { align-self: center; }
.login-card label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 900; }
.login-row { display: grid; grid-template-columns: 1fr auto; }
.login-row button, .dashboard-actions button {
  min-height: 3.25rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
}
.admin-message { min-height: 1.6rem; margin: 0.6rem 0 0; color: var(--danger) !important; font-weight: 800; }

#dashboard { padding-bottom: 7rem; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.dashboard-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.dashboard-actions button { min-height: 2.8rem; border-radius: 999px; font-size: 0.82rem; }
.dashboard-actions button:nth-child(2) { background: var(--acid); color: var(--ink); }
.dashboard-actions button:disabled { cursor: wait; opacity: 0.55; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.stats-grid article { display: grid; min-height: 12rem; align-content: space-between; padding: 1.4rem; border: 1px solid var(--line); background: var(--white); }
.stats-grid article:nth-child(2) { background: var(--cyan); }
.stats-grid article:nth-child(3) { background: var(--acid); }
.stats-grid span { color: var(--muted); font-size: 0.82rem; font-weight: 900; }
.stats-grid strong { font-size: clamp(3.2rem, 7vw, 5.5rem); line-height: 0.9; letter-spacing: -0.065em; }
.stats-grid small { justify-self: end; font-weight: 900; }

.results-tools { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.results-tools label { width: min(100%, 24rem); }
.results-tools p { color: var(--muted); font-size: 0.85rem; font-weight: 900; }

.table-wrap { overflow-x: auto; border: 1px solid var(--ink); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--ink); color: var(--white); white-space: nowrap; font-size: 0.78rem; letter-spacing: 0.04em; }
tbody tr:hover { background: #f3f4ff; }
.score-chip { display: inline-block; min-width: 4.2rem; padding: 0.28rem 0.5rem; border-radius: 999px; background: var(--acid); text-align: center; white-space: nowrap; }
details summary { cursor: pointer; color: var(--electric); font-weight: 900; white-space: nowrap; }
details ol { min-width: 12rem; margin: 0.7rem 0 0; padding-left: 1.4rem; }
.admin-empty { padding: 5rem 1rem; text-align: center; }
.admin-empty strong { font-size: 1.3rem; }
.admin-empty p, .dashboard-message { color: var(--muted); }
.dashboard-message { min-height: 1.5rem; font-size: 0.82rem; }

@media (max-width: 760px) {
  .login-card { grid-template-columns: 1fr; }
  .login-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .dashboard-heading, .results-tools { align-items: flex-start; flex-direction: column; }
  .dashboard-actions { justify-content: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid article { min-height: 9rem; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { margin-bottom: 1rem; border: 1px solid var(--ink); background: var(--white); }
  td { display: grid; grid-template-columns: 6rem 1fr; gap: 0.75rem; padding: 0.8rem 1rem; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 0.78rem; font-weight: 900; }
}
