:root {
  --ink: #1d1d1f;
  --muted: #646a73;
  --line: #e2e5e8;
  --paper: #f6f7f9;
  --panel: #ffffff;
  --accent: #d71920;
  --accent-strong: #b5121b;
  --accent-deep: #8f0e17;
  --gold: #bf8c2c;
  --danger: #9d232b;
  --shadow: 0 24px 70px rgba(35, 38, 45, 0.12);
  --soft-red: #fff0f1;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0, rgba(215, 25, 32, 0.11), transparent 32rem),
    linear-gradient(180deg, #ffffff 0, var(--paper) 380px);
  font-family: "Aptos", "Segoe UI", Arial, Helvetica, sans-serif;
}

.celebration {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 80;
}

.confetti-piece {
  border-radius: var(--radius);
  height: var(--size);
  pointer-events: none;
  position: fixed;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7);
  will-change: transform, opacity;
  width: calc(var(--size) * 0.72);
  z-index: 81;
}

.celebration.run .confetti-piece {
  animation: confetti-corner 1350ms ease-out forwards;
}

@keyframes confetti-corner {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7);
  }

  8% {
    opacity: 1;
  }

  42% {
    opacity: 1;
    transform: translate3d(calc(var(--x) * 0.68), var(--y), 0) rotate(calc(var(--spin) * 0.55)) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--x), calc(var(--y) + 230px), 0) rotate(var(--spin)) scale(0.9);
  }
}

a {
  color: inherit;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.site-header::before {
  background: var(--accent);
  content: "";
  display: block;
  height: 6px;
}

.nav {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 78px;
  padding: 0 20px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 12px;
  font-size: 1.04rem;
  font-weight: 900;
  position: relative;
  text-decoration: none;
}

.brand-mark {
  align-items: end;
  background: #ffffff;
  border: 1px solid #f0c5c7;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.16);
  display: inline-grid;
  flex: 0 0 auto;
  gap: 4px;
  grid-template-columns: repeat(3, 15px);
  height: 50px;
  overflow: visible;
  padding: 9px 7px 5px;
  width: 67px;
}

.brand-mark span {
  align-items: center;
  background: linear-gradient(180deg, #ef3d43, var(--accent));
  border-radius: 5px 5px 4px 4px;
  color: #ffffff;
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-width: 0;
  position: relative;
  z-index: 0;
}

.brand-mark span:nth-child(1) {
  height: 23px;
}

.brand-mark span:nth-child(2) {
  background: linear-gradient(180deg, #d5a24a, var(--gold));
  height: 36px;
}

.brand-mark span:nth-child(3) {
  height: 28px;
}

.brand-mark span:nth-child(2)::before {
  background: linear-gradient(180deg, #ffd56d, var(--gold));
  border: 1px solid #9f711c;
  border-radius: 4px 4px 8px 8px;
  box-shadow:
    0 10px 0 -6px #9f711c,
    0 14px 0 -5px #9f711c;
  content: "";
  height: 11px;
  left: 50%;
  position: absolute;
  top: -17px;
  transform: translateX(-50%);
  width: 19px;
  z-index: 2;
}

.brand-mark span:nth-child(2)::after {
  border: 2px solid #d5a24a;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  content: "";
  height: 9px;
  left: 50%;
  position: absolute;
  top: -14px;
  transform: translateX(-50%);
  width: 28px;
  z-index: 1;
}

.brand-text {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
  justify-content: center;
  min-width: 0;
}

.auth-area {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

#currentUserLabel {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links a {
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.94rem;
  gap: 6px;
  padding: 9px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--soft-red);
  color: var(--accent-strong);
}

.nav-alert-badge {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 900;
  justify-content: center;
  min-width: 18px;
  padding: 2px 6px;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px 24px 72px;
}

.intro,
.page-title {
  padding: 40px 0 28px;
}

.intro {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.65fr);
}

.intro h1,
.page-title h1 {
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 0.96;
  margin: 8px 0 16px;
  max-width: 900px;
  letter-spacing: 0;
}

.page-title h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

.submit-page-title h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  max-width: none;
}

.submit-page-title {
  padding: 28px 0 18px;
}

.scoreboard-page-title {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.54fr);
}

.scoreboard-title-copy {
  min-width: 0;
}

.scoreboard-averages {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px 20px 12px;
  position: relative;
}

.scoreboard-averages::before {
  background: var(--accent);
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.scoreboard-averages h2 {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 4px 0 8px;
}

.scoreboard-average-list {
  display: grid;
  margin: 0;
}

.scoreboard-average-list > div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 7px 0;
}

.scoreboard-average-list dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.scoreboard-average-list dd {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.intro-copy,
.page-title p,
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 720px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.hero-actions {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: 22px;
}

.hero-actions a,
.hero-actions button {
  background: var(--ink);
  border: 1px solid transparent;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
  min-width: 172px;
  min-height: 44px;
  padding: 13px 16px;
  text-align: center;
  text-decoration: none;
}

.hero-actions button {
  cursor: pointer;
  font: inherit;
}

.hero-actions a + a,
.hero-actions .hero-login-button,
.hero-actions .hero-dashboard-button {
  background: var(--accent);
  border: 1px solid transparent;
  color: #ffffff;
}

.hero-panel {
  background:
    linear-gradient(145deg, #ffffff 0 45%, #fff5f5 45% 100%);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.hero-panel::before {
  background: var(--accent);
  content: "";
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 10px;
}

.hero-panel-header {
  color: var(--ink);
  display: grid;
  gap: 7px;
  padding-right: 10px;
  position: relative;
  z-index: 1;
}

.hero-panel-header span,
.hero-rank-card span,
.quick-stats span,
.entry-summary span {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel-header strong {
  color: var(--accent);
  font-size: 1.9rem;
  line-height: 1.08;
}

.territory-picker {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.territory-picker select,
[data-territory-picker] {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  min-height: 44px;
  padding: 9px 11px;
  text-transform: none;
  width: 100%;
}

.hero-rank-card {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: 0 18px 35px rgba(61, 0, 7, 0.24);
  color: #ffffff;
  display: grid;
  gap: 6px;
  padding: 20px;
  position: relative;
  text-decoration: none;
  z-index: 1;
}

.hero-rank-card::after,
.hero-ranking-card::after {
  content: ">";
  font-size: 1.2rem;
  font-weight: 900;
  position: absolute;
  right: 18px;
  top: 18px;
}

.hero-rank-link {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-rank-link:hover {
  box-shadow: 0 18px 38px rgba(61, 0, 7, 0.14);
  transform: translateY(-2px);
}

.hero-rank-card strong {
  font-size: 3rem;
  line-height: 1;
}

.hero-rank-card small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.hero-ranking-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 8px solid var(--accent);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  position: relative;
  text-decoration: none;
  z-index: 1;
}

.hero-ranking-card span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-ranking-card strong {
  font-size: 1.6rem;
  line-height: 1.05;
}

.hero-ranking-card small {
  color: var(--muted);
  font-weight: 700;
}

.quick-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
}

.quick-stats div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(35, 38, 45, 0.06);
  padding: 18px;
}

.quick-stats span {
  color: var(--accent);
}

.quick-stats strong {
  display: block;
  font-size: 1.06rem;
  margin-top: 7px;
}

.landing-categories {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 8px 0 26px;
  padding: 0 6px;
}

.landing-categories span {
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 800;
  position: relative;
  text-align: center;
}

.landing-categories span::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin: 0 auto 9px;
  width: 28px;
}

.form-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
}

.form-section::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  content: "";
  display: block;
  height: 8px;
}

.section-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 26px 28px 20px;
}

.section-heading h2 {
  font-size: 1.45rem;
  margin: 0 0 8px;
}

.section-heading a {
  background: var(--soft-red);
  border-radius: 6px;
  color: var(--accent-strong);
  font-weight: 800;
  padding: 11px 13px;
  text-decoration: none;
  white-space: nowrap;
}

.nomination-form {
  display: grid;
  gap: 22px;
  padding: 0 28px 28px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 20px;
}

legend {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 8px;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  color: var(--ink);
  display: grid;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 8px;
}

.field-helper {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: -3px;
}

input,
select,
textarea {
  background: #fbfbfc;
  border: 1px solid #d4d8dd;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}

input::placeholder {
  color: #9ca3aa;
}

textarea {
  resize: vertical;
}

.checkbox-line {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 10px;
  line-height: 1.45;
}

.checkbox-line input {
  flex: 0 0 auto;
  margin-top: 2px;
  min-height: 18px;
  width: 18px;
}

.checkbox-line a {
  color: var(--accent);
  font-weight: 900;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.12);
  outline: none;
}

.password-field {
  display: block;
  position: relative;
}

.password-field input {
  padding-right: 66px;
}

.password-toggle {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 0;
  padding: 6px 8px;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--soft-red);
  color: var(--accent-strong);
}

.password-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: -2px;
}

.form-actions,
.table-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-summary {
  background: linear-gradient(90deg, var(--ink), #34363b);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.entry-summary div {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.entry-summary strong {
  display: block;
  font-size: 1.45rem;
  margin-top: 5px;
}

button {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 0 16px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.small-button {
  min-height: 38px;
  padding: 0 13px;
}

.icon-button {
  background: #f3f4f6;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 34px;
  padding: 0 10px;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-weight: 800;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.link-button:hover {
  background: transparent;
  color: var(--accent-strong);
  text-decoration: underline;
}

.print-button {
  white-space: nowrap;
}

button:hover {
  background: var(--accent-strong);
}

button.secondary {
  background: #ffffff;
  color: var(--ink);
}

button.secondary:hover {
  background: #f5f5f6;
}

button.danger {
  background: #ffffff;
  border-color: #e1b8b8;
  color: var(--danger);
}

button.danger:hover {
  background: var(--soft-red);
}

.form-message,
.empty-message {
  color: var(--accent-strong);
  font-weight: 700;
  margin: 0;
}

.form-message.success {
  background: #f0fff7;
  border: 1px solid #b9ebce;
  border-radius: 8px;
  color: #116b35;
  padding: 11px 13px;
}

.form-message.warning {
  background: #fff8e8;
  border: 1px solid #edd9aa;
  border-radius: 8px;
  color: #8a5a00;
  padding: 11px 13px;
}

.form-message.loading {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 9px;
}

.form-message.loading::before {
  animation: spin 850ms linear infinite;
  border: 2px solid #d6d9de;
  border-top-color: var(--accent);
  border-radius: 50%;
  content: "";
  height: 14px;
  width: 14px;
}

.toast {
  background: var(--ink);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  bottom: 24px;
  box-shadow: 0 18px 45px rgba(20, 20, 24, 0.24);
  color: #ffffff;
  font-weight: 800;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  position: fixed;
  right: 24px;
  z-index: 90;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-required {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 24px;
}

.login-required h2 {
  margin: 6px 0 8px;
}

.login-required p {
  color: var(--muted);
  margin: 0;
}

.login-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.submit-login-card {
  justify-content: center;
  text-align: center;
}

.submit-login-card .login-actions {
  justify-content: center;
}

.preview-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.preview-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.feedback-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(215, 25, 32, 0.2);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 18px 42px rgba(35, 38, 45, 0.18);
  color: var(--accent);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 900;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px 0 14px;
  position: fixed;
  right: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  z-index: 25;
}

.feedback-button::before {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #ffffff;
  content: "?";
  display: inline-flex;
  font-size: 1rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.feedback-button:hover {
  background: #ffffff;
  border-color: rgba(215, 25, 32, 0.45);
  box-shadow: 0 22px 48px rgba(143, 14, 23, 0.2);
  color: var(--accent-strong);
  transform: translateY(-2px);
}

.modal-backdrop {
  align-items: center;
  background: rgba(20, 20, 24, 0.48);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 20px;
  position: fixed;
  right: 0;
  top: 0;
  overflow-y: auto;
  z-index: 30;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  max-height: calc(100vh - 40px);
  max-width: 420px;
  overflow-y: auto;
  padding: 22px;
  width: 100%;
}

.compact-modal {
  max-width: 520px;
}

.modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h2 {
  margin: 0;
}

.modal-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.legal-page {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 920px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(35, 38, 45, 0.08);
  padding: 28px;
}

.legal-card h2 {
  margin: 0 0 10px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.62;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-card a {
  color: var(--accent);
  font-weight: 800;
  text-decoration-color: rgba(215, 25, 32, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 18px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
  padding: 4px 24px 34px;
}

.site-footer nav {
  display: flex;
  gap: 14px;
}

.site-footer a,
.footer-link {
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 0;
  padding: 0;
  text-decoration: none;
}

.site-footer a:hover,
.footer-link:hover {
  background: transparent;
  color: var(--accent-strong);
  text-decoration: underline;
}

.admin-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-card {
  box-shadow: 0 14px 34px rgba(35, 38, 45, 0.08);
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-list {
  display: grid;
  gap: 12px;
  padding: 0 28px 28px;
}

.admin-list-tools {
  border-bottom: 1px solid var(--line);
  margin: -8px 28px 18px;
  padding-bottom: 18px;
}

.admin-list-tools input,
.admin-list-tools select {
  max-width: 420px;
}

.admin-list-item {
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.agency-list-item {
  align-items: stretch;
  flex-wrap: wrap;
}

.agency-list-item .admin-list-main {
  flex: 0 1 auto;
}

.agency-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.agency-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  flex: 1 1 320px;
  gap: 12px;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.agency-toggle:hover {
  background: transparent;
  color: var(--accent-strong);
}

.agency-chevron {
  color: var(--accent) !important;
  font-size: 0.9rem !important;
  font-weight: 900;
  margin: 0 !important;
  order: -1;
  width: 14px;
}

.agency-toggle[aria-expanded="true"] .agency-chevron {
  transform: rotate(180deg);
}

.agency-team-list {
  border-top: 1px solid var(--line);
  display: grid;
  flex: 1 0 100%;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.agency-team-member {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.agency-team-member > div:first-child {
  min-width: 0;
}

.compact-empty {
  padding: 8px 0;
}

.inline-pill {
  display: inline-flex !important;
  margin-top: 5px !important;
  width: fit-content;
}

.admin-list-main {
  min-width: 0;
}

.admin-list-meta {
  color: var(--muted);
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px !important;
}

.admin-list-meta span {
  margin: 0 !important;
}

.admin-list-item strong,
.admin-list-item span {
  display: block;
}

.admin-list-item span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.role-pill {
  background: var(--soft-red);
  border-radius: 999px;
  color: var(--accent-strong) !important;
  font-weight: 800;
  margin: 0 !important;
  padding: 7px 10px;
}

.pending-pill {
  background: #fff8e8;
  color: #8a5a00 !important;
}

.approval-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compact-action {
  border-radius: 6px;
  font-size: 0.78rem;
  min-height: 28px;
  padding: 0 8px;
}

.pending-user-item {
  background: #fffdfa;
  border-color: #edd9aa;
}

.email-recipient-preview {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 12px;
}

.email-recipient-preview span {
  color: var(--ink);
  display: block;
  font-weight: 800;
}

.email-recipient-preview small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 2px;
}

.helper-text {
  color: var(--muted);
  margin: 0;
}

.account-details {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.account-details div,
.onboarding-steps div {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.account-details span,
.onboarding-steps span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

.account-details strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onboarding-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.onboarding-steps div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.onboarding-steps strong {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button-link {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 11px 14px;
  text-decoration: none;
}

.dashboard-view-controls {
  align-items: end;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(35, 38, 45, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 18px 20px;
}

.dashboard-view-controls h2 {
  margin: 5px 0 4px;
}

.dashboard-view-controls p:last-child {
  color: var(--muted);
  margin: 0;
}

.dashboard-view-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  min-width: min(100%, 440px);
}

@media (max-width: 560px) {
  .dashboard-view-fields {
    grid-template-columns: 1fr;
  }
}

.dashboard-stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 20px;
}

.dashboard-stat-card,
.dashboard-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(35, 38, 45, 0.08);
}

.dashboard-stat-card {
  padding: 18px;
}

.dashboard-stat-card span,
.dashboard-card-heading .eyebrow {
  color: var(--accent);
}

.dashboard-stat-card strong {
  display: block;
  font-size: 1.55rem;
  margin: 8px 0 5px;
}

.dashboard-stat-card small {
  color: var(--muted);
  line-height: 1.4;
}

.dashboard-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  min-width: 0;
  padding: 20px;
}

.dashboard-wide-card {
  grid-column: 1 / -1;
}

.split-heading {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.split-heading label {
  min-width: 210px;
}

.dashboard-card-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.dashboard-card-heading h2 {
  margin: 6px 0 0;
}

.dashboard-card-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -2px 0 14px;
}

.bar-chart,
.metric-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-row-label,
.metric-list-item {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.bar-row-label span,
.metric-list-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.bar-track {
  background: #f0f1f3;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.bar-track span {
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.line-chart {
  min-height: 290px;
}

.line-chart svg {
  display: block;
  height: auto;
  width: 100%;
}

.line-chart-grid {
  stroke: #e8ebef;
  stroke-width: 1;
}

.line-chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.line-chart-point {
  stroke: #ffffff;
  stroke-width: 2;
}

.line-chart-label {
  fill: var(--muted);
  font-size: 11px;
}

.line-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}

.line-chart-legend span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.88rem;
  gap: 7px;
}

.legend-swatch {
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.metric-list-item {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}

.metric-list-item.highlight-item {
  background: var(--soft-red);
  border-color: #efb6ba;
}

.metric-list-item strong,
.metric-list-item span {
  display: block;
}

.metric-list-item b {
  color: var(--accent-strong);
  white-space: nowrap;
}

.team-member-production-list {
  display: grid;
  gap: 14px;
}

.team-member-production {
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.7fr);
  padding: 14px;
}

.team-member-production > div:first-child strong,
.team-member-production > div:first-child span {
  display: block;
}

.team-member-production > div:first-child span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.team-member-production-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-member-production-metrics span {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-left: 12px;
}

.team-member-production-metrics small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-member-production-metrics b {
  color: var(--accent-strong);
  font-size: 1rem;
}

.copy-list-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 24px;
}

.copy-list-grid label {
  color: var(--ink);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.copy-list-grid textarea {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.45;
  min-height: 170px;
  white-space: pre;
}

.copy-list-actions {
  padding: 0 24px 24px;
}

.admin-wipe-tools {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.admin-wipe-tools label {
  min-width: 180px;
}

.category-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(35, 38, 45, 0.08);
  overflow: hidden;
  padding: 0;
}

.category-card::before {
  background: var(--accent);
  content: "";
  display: block;
  height: 6px;
}

.category-card h2 {
  margin: 0;
  padding: 20px 22px 4px;
}

.featured-category-card {
  background: #ffffff;
  border-color: #efb6ba;
  grid-column: 1 / -1;
}

.featured-category-card::before {
  height: 8px;
}

.category-grid > .category-card:last-child:not(.featured-category-card) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 20px) / 2);
}

.featured-winner-main {
  padding: 24px 26px 14px;
}

.featured-winner-main h2 {
  font-size: 1.55rem;
  padding: 0;
}

.featured-winner-main p {
  color: var(--muted);
  line-height: 1.45;
  margin: 6px 0 0;
}

.multi-line-breakdown {
  display: grid;
  gap: 12px;
  padding: 0 26px 22px;
}

.multi-line-person {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 0.8fr) 1fr;
  padding: 13px;
}

.multi-line-person-heading {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr;
}

.multi-line-person h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.multi-line-person h3 span,
.multi-line-person p {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.multi-line-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.multi-line-metric {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
}

.multi-line-metric small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.multi-line-metric strong {
  color: var(--ink);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-line-metric b {
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.top-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 22px 22px;
}

.top-item {
  align-items: start;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 42px 1fr auto;
  padding: 14px;
}

.rank-badge {
  align-items: center;
  background: var(--soft-red);
  border-radius: 50%;
  color: var(--accent);
  display: inline-flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.score-pill {
  background: #1d1d1f;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  padding: 7px 10px;
}

.top-item h3 {
  font-size: 1rem;
  margin: 0 0 5px;
}

.top-item h3 span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.top-item p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.table-tools {
  align-items: end;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(35, 38, 45, 0.08);
  margin-bottom: 16px;
  padding: 14px;
}

.table-tools label {
  min-width: 180px;
}

.table-tools input {
  max-width: 340px;
}

.rank-explainer {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(35, 38, 45, 0.07);
  margin: 0 0 12px;
  padding: 16px 18px;
}

.rank-explainer strong {
  display: block;
  margin-bottom: 4px;
}

.rank-explainer p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.submission-count {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(35, 38, 45, 0.06);
  color: var(--ink) !important;
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 22px;
  padding: 14px 18px;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.sort-header {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  display: inline-flex;
  font-size: inherit;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  text-align: left;
  text-transform: uppercase;
}

.sort-header:hover {
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
}

.sort-header.active::after {
  content: attr(data-sort-direction);
  font-size: 0.9rem;
  line-height: 1;
  margin-left: 4px;
}

td {
  color: #26332f;
  line-height: 1.45;
}

tbody tr:nth-child(even) {
  background: #fafafa;
}

.empty-state {
  background: var(--panel);
  border: 1px dashed #d5a4a8;
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 20% 0, rgba(215, 25, 32, 0.08), transparent 24rem),
      linear-gradient(180deg, #ffffff 0, var(--paper) 300px);
  }

  .nav {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .nav-links {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    width: 100%;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 9px 10px;
  }

  .auth-area {
    justify-content: flex-start;
    width: 100%;
  }

  #currentUserLabel {
    max-width: 100%;
  }

  .brand {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .brand-mark {
    gap: 3px;
    grid-template-columns: repeat(3, 12px);
    height: 42px;
    padding: 8px 6px 4px;
    width: 54px;
  }

  .brand-mark span {
    font-size: 0.62rem;
  }

  .brand-mark span:nth-child(1) {
    height: 18px;
  }

  .brand-mark span:nth-child(2) {
    height: 28px;
  }

  .brand-mark span:nth-child(3) {
    height: 22px;
  }

  .brand-mark span:nth-child(2)::before {
    height: 8px;
    top: -13px;
    width: 15px;
  }

  .brand-mark span:nth-child(2)::after {
    height: 7px;
    top: -11px;
    width: 22px;
  }

  .brand-text {
    max-width: calc(100vw - 104px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .field-grid,
  .category-grid,
  .intro,
  .scoreboard-page-title,
  .quick-stats,
  .landing-categories,
  .premium-grid,
  .entry-summary,
  .admin-grid,
  .account-details,
  .onboarding-steps,
  .copy-list-grid,
  .dashboard-stats,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .category-grid > .category-card:last-child:not(.featured-category-card) {
    width: 100%;
  }

  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-view-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .split-heading label {
    min-width: 0;
  }

  .dashboard-view-fields {
    min-width: 0;
  }

  .team-member-production,
  .team-member-production-metrics {
    grid-template-columns: 1fr;
  }

  .team-member-production-metrics span {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 10px;
  }

  .line-chart {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .line-chart svg {
    min-width: 680px;
  }

  .login-required,
  .admin-list-item,
  .admin-wipe-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-list-tools {
    margin: -6px 20px 16px;
  }

  .admin-list-tools input,
  .admin-list-tools select {
    max-width: none;
  }

  .agency-actions,
  .agency-team-member {
    align-items: stretch;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .agency-toggle {
    flex-basis: 100%;
  }

  .agency-actions button {
    width: 100%;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 14px;
  }

  .modal {
    max-height: calc(100dvh - 28px);
    padding: 18px;
  }

  .form-section {
    padding: 0;
  }

  main {
    padding: 22px 16px 52px;
  }

  .intro,
  .page-title {
    padding: 26px 0 22px;
  }

  .intro h1,
  .page-title h1 {
    font-size: clamp(2.05rem, 13vw, 3.2rem);
    line-height: 1;
  }

  .intro > * {
    min-width: 0;
  }

  .intro-copy {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    align-items: stretch;
    justify-items: stretch;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 0 16px 78px;
  }

  .legal-card {
    padding: 22px;
  }

  .feedback-button {
    bottom: 16px;
    min-height: 44px;
    padding: 0 15px;
    right: 16px;
  }

  .landing-categories {
    gap: 14px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-categories span:last-child {
    grid-column: 1 / -1;
  }

  .submit-page-title {
    padding-bottom: 12px;
  }

  .submit-page-title h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .table-tools label,
  .table-tools input,
  .table-tools button {
    max-width: none;
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 20px 16px;
  }

  .nomination-form {
    padding: 0 20px 20px;
  }

  .hero-panel {
    display: grid;
    gap: 16px;
    min-height: 0;
    padding: 20px;
  }

  .hero-rank-card {
    left: auto;
    padding: 16px;
    position: relative;
    right: auto;
    top: auto;
    width: auto;
  }

  .hero-rank-card strong {
    font-size: 2.4rem;
  }

  .toast {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .top-item {
    grid-template-columns: 38px 1fr;
  }

  .score-pill {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 1100px) {
  .multi-line-person {
    grid-template-columns: 1fr;
  }

  .multi-line-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .multi-line-metrics {
    grid-template-columns: 1fr;
  }

  .multi-line-person {
    padding: 11px;
  }
}

@media print {
  @page {
    margin: 0.45in;
    size: letter landscape;
  }

  * {
    box-shadow: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body {
    background: #ffffff;
    color: #1d1d1f;
    font-size: 10pt;
  }

  .site-header,
  .site-footer,
  .table-tools,
  .modal-backdrop,
  .feedback-button,
  .toast,
  .confetti-piece {
    display: none !important;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .page-title {
    border-bottom: 3px solid var(--accent);
    margin: 0 0 14px;
    max-width: none;
    padding: 0 0 12px;
  }

  .page-title .eyebrow {
    color: var(--accent);
    font-size: 8pt;
    margin-bottom: 4px;
  }

  .page-title h1 {
    font-size: 24pt;
    line-height: 1.05;
    margin: 0;
  }

  .page-title p {
    font-size: 9pt;
    margin: 6px 0 0;
    max-width: 9in;
  }

  .submission-count {
    border: 1px solid #d4d8dd;
    border-left: 5px solid var(--accent);
    font-size: 10pt;
    margin: 0 0 12px;
    padding: 8px 10px;
  }

  .category-grid {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-card {
    break-inside: avoid;
    border: 1px solid #cfd3d8;
    border-radius: 6px;
    overflow: hidden;
  }

  .category-card::before {
    height: 4px;
  }

  .category-card h2 {
    font-size: 12pt;
    padding: 10px 12px 3px;
  }

  .top-list {
    gap: 7px;
    padding: 0 12px 12px;
  }

  .top-item {
    border-color: #d8dce1;
    gap: 7px;
    grid-template-columns: 28px 1fr auto;
    padding: 8px;
  }

  .rank-badge {
    height: 24px;
    width: 24px;
  }

  .score-pill {
    border-radius: 6px;
    grid-column: auto;
    padding: 5px 7px;
  }

  .top-item h3 {
    font-size: 10pt;
  }

  .top-item p,
  .top-item h3 span {
    font-size: 8pt;
  }

  .table-wrap {
    border: 1px solid #cfd3d8;
    border-radius: 6px;
    overflow: visible;
  }

  table {
    font-size: 8.2pt;
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    border-bottom: 1px solid #d8dce1;
    padding: 6px 7px;
  }

  th {
    background: var(--accent) !important;
    color: #ffffff !important;
    font-size: 7.3pt;
  }

  .sort-header {
    color: #ffffff !important;
    white-space: normal;
  }

  tr {
    break-inside: avoid;
  }

  .empty-message,
  .empty-state {
    border: 1px solid #d8dce1;
    margin: 0;
    padding: 10px;
  }
}
