:root {
  /* Kumari Nexus — forest green & sage (from brand poster) */
  --brand: #2f6b45;
  --brand-dark: #1a4032;
  --brand-light: #4a945e;
  --brand-on-soft: #1f5433;
  --brand-soft: #e4f0e4;
  --brand-soft-border: #c5ddb8;
  --brand-focus: rgba(47, 107, 69, 0.18);

  --header: var(--brand-dark);
  --sidebar: #234832;
  --sidebar-hover: #2d563f;
  --sidebar-active: #356548;
  --sidebar-border: #2f5540;
  --sidebar-text: #e8f0e6;
  --sidebar-muted: #a8c4a0;

  --red: var(--brand-light);
  --accent: var(--brand-light);

  --bg: #f3f6f0;
  --card: #ffffff;
  --line: #dde6d8;
  --text: #1a2e22;
  --muted: #5c6f62;

  --purple: var(--brand);
  --purple-soft: var(--brand-soft);

  --finished: #b45309;
  --green: #3d8b5a;
  --blue: #2d6a8f;
  --gold: #c9a227;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; }
button, input, select { font: inherit; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 64px;
  background: var(--header);
  display: flex;
  align-items: center;
  position: relative;
}
.brand {
  position: absolute;
  left: 64px;
  right: 120px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}
.brand-tag {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nexus-logo {
  display: block;
  object-fit: contain;
}
.nexus-logo--topbar {
  height: 46px;
  width: auto;
  max-width: 160px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.nexus-logo--sidebar {
  width: 100%;
  max-height: 76px;
  height: auto;
}
.nexus-logo--hero {
  width: min(320px, 92vw);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(26, 64, 50, 0.18));
}
.nexus-logo--card {
  width: min(240px, 100%);
  height: auto;
  margin: 0 auto;
}
.nexus-logo--login {
  width: min(300px, 82vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}
.nexus-logo--thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sidebar-brand {
  padding: 14px 14px 6px;
}
.sidebar-brand-link {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sidebar-brand-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.sidebar-brand-link.is-active {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}
.menu-toggle {
  width: 64px;
  height: 64px;
  border: 0;
  background: var(--red);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 3;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: #fff; }
.admin-menu { margin-left: auto; margin-right: 18px; position: relative; z-index: 4; }
.admin-menu summary {
  list-style: none;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu .icon { width: 16px; height: 16px; }
.admin-drop {
  position: absolute;
  right: 0;
  top: 46px;
  background: #fff;
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  padding: 12px;
}
.admin-drop p { margin: 0 0 8px; font-weight: 600; }
.logout-btn {
  width: 100%;
  border: 0;
  background: var(--header);
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.app-body { display: flex; flex: 1; min-height: 0; }
.sidebar {
  width: 252px;
  background: var(--sidebar);
  color: var(--sidebar-text);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
}
.sidebar nav { flex: 1; }
.sidebar-foot {
  margin-top: auto;
  padding: 16px 18px 20px;
  border-top: 1px solid var(--sidebar-border);
}
.sidebar-user {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--sidebar-muted);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sidebar-logout-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.sidebar-foot form { margin: 0; }
.side-label {
  display: block;
  padding: 18px 18px 10px;
  color: var(--sidebar-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-link, .nav-group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--sidebar-text);
  text-decoration: none;
  cursor: pointer;
  font-size: 14.5px;
}
.nav-group summary { list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-group summary:hover, .nav-sub a:hover { background: var(--sidebar-hover); }
.nav-link.is-active, .nav-sub a.is-active, .side-label.is-active { background: var(--sidebar-active); color: #fff; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.chevron {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.nav-group[open] .chevron { transform: rotate(45deg); }
.nav-sub a {
  display: block;
  padding: 9px 18px 9px 48px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 14px;
}
.app-main { flex: 1; min-width: 0; }
.page-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 22px;
}
.page-head h1 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.page-body {
  padding: 18px 22px 40px;
  position: relative;
  z-index: 0;
}
.app .page-body::after {
  content: "";
  position: fixed;
  right: 2%;
  bottom: 3%;
  width: min(280px, 32vw);
  height: min(280px, 32vw);
  background: var(--nexus-mark) center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

.flash { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; }
.flash-notice { background: var(--brand-soft); color: var(--brand-on-soft); }
.flash-alert { background: #fef2f2; color: #b91c1c; }

.banner {
  background: var(--purple-soft);
  border-radius: 8px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.banner h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--brand-on-soft); }
.date-pill {
  background: var(--purple);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.card {
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--line);
}
.reg-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  gap: 12px;
}
.reg-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 650; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-purple { background: var(--brand); color: #fff; }
.btn-purple:hover { background: var(--brand-light); }
.btn-dark { background: var(--header); color: #fff; }
.btn-line { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn-danger { background: #fff; color: var(--finished); border: 0; padding: 0; cursor: pointer; }
.athlete { width: 92px; height: 92px; flex-shrink: 0; }
.stat-card { padding: 16px 18px; text-decoration: none; color: inherit; display: block; }
.stat-label { margin: 0 0 16px; color: #8b93a7; font-size: 12px; letter-spacing: 0.04em; font-weight: 700; }
.stat-bottom { display: flex; align-items: center; justify-content: space-between; }
.stat-bottom strong { font-size: 34px; font-weight: 650; }
.stat-icon { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.stat-icon.green { background: var(--green); }
.stat-icon.blue { background: var(--blue); }
.stat-icon .icon { width: 22px; height: 22px; }

.calendar-card { padding: 18px 18px 8px; }
.calendar-card h3 { margin: 0; font-size: 15px; letter-spacing: 0.01em; }
.calendar-card .subhead { margin: 4px 0 8px; font-weight: 800; font-size: 14px; }
.note { color: var(--finished); margin: 0 0 12px; font-size: 14px; }
.note strong { font-weight: 700; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data th {
  text-align: left;
  color: #6b7280;
  font-weight: 600;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  background: #f6faf4;
}
table.data td { padding: 11px 8px; border-bottom: 1px solid var(--line); }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 16px 0 4px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.pagination a:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pagination .disabled {
  opacity: 0.45;
  pointer-events: none;
}
.pagination .gap {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 6px 4px;
}
.pagination-meta {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.status-finished { color: var(--finished); font-weight: 650; }
.status-open { color: #15803d; font-weight: 650; }
.status-scheduled { color: #1d4ed8; font-weight: 650; }

.panel { background: #fff; border-radius: 10px; padding: 18px; border: 1px solid var(--line); }
.panel + .panel, .toolbar + .panel, .panel + .toolbar { margin-top: 14px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.toolbar .field { margin-bottom: 0; }
.entry-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  max-width: 520px;
}
.entry-filter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 40px;
  align-items: start;
  max-width: 920px;
}
.entry-filter-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.entry-filter-col .field { margin-bottom: 0; }
.entry-filter-col-placeholder {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #e2e8f0;
}
.entry-filter-control--compact input { max-width: 120px; }
.entry-filter-intro { margin: 0 0 12px; }
.entry-filter-control .category-dropdown,
.entry-filter-control select,
.entry-filter-control input[disabled] {
  width: 100%;
  max-width: 100%;
}
.entry-filter-layout .field-actions,
.entry-filter-grid .field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}
.entry-filter-step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 4px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 650; color: #374151; }
.field input, .field select, .toolbar input, .toolbar select {
  border: 1px solid #d8dde8;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  min-width: 0;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .field-wide { grid-column: 1 / -1; }
.config-preview, .config-json {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  max-width: 420px;
}
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 6px 0 14px; }
.checks label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.category-dropdown { position: relative; max-width: 520px; }
.category-dropdown--wide { max-width: none; }
.category-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d8dde8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
}
.category-dropdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-dropdown-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #6b7280;
  border-bottom: 1.5px solid #6b7280;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: -3px;
}
.category-dropdown.is-open .category-dropdown-chevron { transform: rotate(-135deg); margin-top: 3px; }
.category-dropdown-menu {
  display: none;
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: min(200px, 42vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  -webkit-overflow-scrolling: touch;
}
.category-dropdown.is-open .category-dropdown-menu { display: block; }
.category-dropdown.is-open .category-dropdown-menu--columns { display: grid; }
.category-dropdown-menu--tall { max-height: min(220px, 48vh); }
.category-dropdown-menu--columns {
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
  max-height: min(240px, 52vh);
}
.category-dropdown-menu .category-check {
  padding: 5px 6px;
  font-size: 13px;
  line-height: 1.35;
}
.category-dropdown-menu .category-check span {
  word-break: break-word;
}
.category-dropdown-empty { margin: 8px; }
.competition-event-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  padding: 10px 10px 4px;
  margin-top: 4px;
  border-top: 1px solid #e8ecf4;
}
.competition-event-head:first-child { margin-top: 0; border-top: none; padding-top: 6px; }
.competition-event-group:first-child .competition-event-head { border-top: none; margin-top: 0; }
.competition-event-item,
.competition-event-items {
  margin-left: 18px;
  padding-left: 8px;
  border-left: 2px solid #e8ecf4;
}
.competition-event-items { margin-bottom: 6px; padding-bottom: 4px; }
.final-submit-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.final-submit-review-actions .final-submit-seal { margin: 0; }
.btn-sm { font-size: 12px; padding: 4px 10px; }
.category-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 6px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
}
.category-check:hover { background: var(--brand-soft); }
.category-check input { margin-top: 3px; flex-shrink: 0; }
.category-check span { line-height: 1.4; }
.student-profile-head { display: flex; gap: 20px; align-items: flex-start; }
.student-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e6e8ef;
}
.student-photo--thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  vertical-align: middle;
  display: block;
}
.student-photo-placeholder {
  display: inline-block;
  width: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.form-errors { background: #fef2f2; color: #991b1b; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.form-errors ul { margin: 6px 0 0; }
.muted { color: var(--muted); }
.actions { display: flex; gap: 8px; align-items: center; }
.hint { color: var(--muted); font-size: 13px; margin-top: 0; }
.input-uppercase { text-transform: uppercase; }

.login-page {
  min-height: 100vh;
  overflow: hidden;
  background: #0a1f16;
}
.login-page:has(.login-arena)::before {
  display: none;
}

/* Login — track background + glass card */
.login-arena {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  color: #fff;
}
.login-arena__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #06140e 0%, #0d281c 35%, #145c3a 100%);
}
.login-arena__scene-motion {
  position: absolute;
  inset: 0;
  will-change: transform, filter;
  transform-origin: 50% 85%;
  animation: login-track-enter 1.5s cubic-bezier(0.22, 0.95, 0.28, 1) forwards;
}
.login-arena--intro .login-arena__scene-motion {
  filter: blur(2px);
}
.login-arena--ready .login-arena__scene-motion {
  filter: blur(0);
  transition: filter 0.45s ease;
}
@keyframes login-track-enter {
  0% {
    opacity: 0.25;
    transform: scale(2.05) translate3d(0, 10%, 0);
  }
  55% {
    opacity: 0.92;
    transform: scale(1.08) translate3d(0, 1.5%, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}
.login-arena__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.55s ease 0.05s;
}
.login-arena--ready .login-arena__particles {
  opacity: 1;
}
.login-arena__lights {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease 0.05s;
  background:
    radial-gradient(ellipse 55% 40% at 12% 8%, rgba(255, 236, 180, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 50% 38% at 88% 10%, rgba(255, 236, 180, 0.38) 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 48%);
  animation: login-lights-pulse 8s ease-in-out infinite;
}
.login-arena--ready .login-arena__lights {
  opacity: 1;
}
@keyframes login-lights-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.login-arena__track {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -8%;
  height: 72%;
  z-index: 2;
  transform: perspective(900px) rotateX(58deg);
  transform-origin: 50% 100%;
  background:
    linear-gradient(180deg, #0f3d28 0%, #1a6b45 28%, #22855a 55%, #1a5c3e 100%);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.35);
}
.login-arena__lanes {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -8%;
  height: 72%;
  z-index: 3;
  transform: perspective(900px) rotateX(58deg);
  transform-origin: 50% 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 72px,
    rgba(255, 255, 255, 0.09) 72px,
    rgba(255, 255, 255, 0.09) 76px
  );
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
}
.login-arena__runners {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.login-arena__runner {
  position: absolute;
  bottom: 22%;
  width: 56px;
  height: 100px;
  border-radius: 40% 40% 30% 30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(200, 230, 210, 0.12) 100%);
  filter: blur(10px);
  opacity: 0.45;
  animation: login-runner-sweep 5s linear infinite;
}
.login-arena__runner--1 { left: -10%; animation-duration: 4.2s; height: 90px; }
.login-arena__runner--2 { left: -15%; animation-duration: 5.5s; animation-delay: 1.2s; opacity: 0.32; }
.login-arena__runner--3 { left: -12%; animation-duration: 6.8s; animation-delay: 2.4s; height: 110px; opacity: 0.38; }
@keyframes login-runner-sweep {
  from { transform: translateX(0) scale(0.85); }
  to { transform: translateX(130vw) scale(1.05); }
}
.login-arena__haze {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  backdrop-filter: blur(2px);
  background: radial-gradient(ellipse 90% 70% at 50% 45%, transparent 30%, rgba(6, 20, 14, 0.55) 100%);
}
.login-arena--intro .login-arena__content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.login-arena__content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vh, 40px) clamp(16px, 4vw, 32px);
  gap: clamp(20px, 3vh, 28px);
}
.login-arena__header {
  text-align: center;
  max-width: 520px;
}
.login-arena__portal-title {
  margin: clamp(14px, 2vh, 20px) 0 0;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
.login-arena__card-wrap {
  width: min(420px, 100%);
  opacity: 0;
}
.login-arena--ready .login-arena__card-wrap {
  animation: login-card-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.05s;
}
.login-arena__card {
  position: relative;
  padding: clamp(26px, 4vw, 34px) clamp(22px, 4vw, 30px);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(47, 107, 69, 0.42) 0%, rgba(20, 60, 45, 0.28) 45%, rgba(15, 46, 36, 0.38) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(74, 148, 94, 0.15);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}
.login-arena--ready .login-arena__card {
  animation: login-card-float 7s ease-in-out infinite;
  animation-delay: 0.75s;
}
@keyframes login-card-pop {
  0% { opacity: 0; transform: scale(0.88) translateY(24px); }
  70% { transform: scale(1.02) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes login-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.login-arena__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  width: 120%;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}
.login-arena__alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(254, 226, 226, 0.92);
  color: #991b1b;
  font-size: 13px;
}
.login-arena__form .field {
  margin-bottom: 16px;
}
.login-arena__form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
}
.login-arena__form input[type="text"],
.login-arena__form input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.login-arena__form input::placeholder {
  color: #6b7280;
  font-size: 14px;
}
.login-arena__form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(74, 148, 94, 0.45);
}
.login-arena__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}
.login-arena__remember input {
  accent-color: var(--brand-light);
}
.login-arena__submit {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--brand) 55%, var(--brand-dark) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.login-arena__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}
.login-arena__forgot-wrap {
  margin: 16px 0 0;
  text-align: center;
}
.login-arena__forgot {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-arena__forgot:hover {
  color: #fff;
}
.login-arena__footer {
  text-align: center;
  max-width: 420px;
}
.login-arena__footer p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}
.login-reveal {
  opacity: 0;
}
.login-arena--ready .login-reveal {
  animation: login-fade-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.login-arena--ready .login-reveal--1 { animation-delay: 0s; }
.login-arena--ready .login-reveal--3 { animation-delay: 0.22s; }
.login-arena--ready .login-arena__content {
  visibility: visible;
  pointer-events: auto;
  animation: login-content-unlock 0.01s forwards;
}
@keyframes login-content-unlock {
  to { opacity: 1; }
}
@keyframes login-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .login-arena__scene-motion,
  .login-arena__runner,
  .login-arena__card,
  .login-arena__lights,
  .login-reveal,
  .login-arena__card-wrap {
    animation: none !important;
  }
  .login-arena__scene-motion {
    transform: none;
    opacity: 1;
    filter: none;
  }
  .login-arena--intro .login-arena__content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .login-arena__particles,
  .login-arena__lights {
    opacity: 1;
    transition: none;
  }
  .login-arena--ready .login-reveal,
  .login-arena--intro .login-reveal,
  .login-arena--ready .login-arena__card-wrap,
  .login-arena--intro .login-arena__card-wrap {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 480px) {
  .login-arena__track,
  .login-arena__lanes {
    height: 65%;
  }
}

/* Legacy 3D login (unused) */
.login-tunnel {
  position: fixed;
  inset: 0;
  z-index: 1;
  --tunnel-progress: 0;
  --sky-blend: 1;
}
.login-tunnel__vignette {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 75% at 50% 38%, transparent 0%, rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.55) 100%);
}
.login-tunnel__grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(/%23n)'/%3E%3C/svg%3E");
}
.login-tunnel__fog--sky {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: calc(0.25 + var(--sky-blend, 1) * 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 40%),
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transition: opacity 0.2s linear;
}
.login-tunnel--arrived .login-tunnel__fog--sky {
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(180, 220, 200, 0.12) 0%, rgba(15, 46, 36, 0.55) 100%);
}
.login-tunnel__hud {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 4vh, 32px);
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.login-tunnel__hud-card {
  padding: 14px 20px 16px;
  border-radius: 16px;
  background: rgba(15, 46, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.login-tunnel__hint {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.login-tunnel__hint-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -4px;
  border: 2px solid rgba(201, 162, 39, 0.9);
  border-radius: 50%;
  position: relative;
  animation: login-tunnel-pulse 2s ease-in-out infinite;
}
.login-tunnel__hint-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 5px;
  margin-left: -1px;
  background: var(--gold);
  border-radius: 1px;
  animation: login-tunnel-scroll 2s ease-in-out infinite;
}
@keyframes login-tunnel-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(201, 162, 39, 0); }
}
@keyframes login-tunnel-scroll {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}
.login-tunnel__progress {
  width: min(240px, 62vw);
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.login-tunnel__progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-light), var(--gold), #e8d48a);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.55);
  transition: width 0.08s linear;
}
.login-tunnel--arrived .login-tunnel__hud {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
}
.login-tunnel__intro {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 4vh, 32px);
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.login-tunnel__hint--intro .login-tunnel__hint-icon {
  animation: login-tunnel-pulse 2s ease-in-out infinite;
}
.login-tunnel__hint--intro .login-tunnel__hint-icon::after {
  animation: login-intro-glow 1.6s ease-in-out infinite;
}
@keyframes login-intro-glow {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}
.login-tunnel--arrived .login-tunnel__intro {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  visibility: hidden;
}
.login-tunnel--instant .login-tunnel__intro {
  display: none;
}
.login-tunnel__canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.login-tunnel--instant .login-tunnel__canvas,
.login-tunnel--arrived .login-tunnel__canvas {
  filter: brightness(0.68) saturate(1.05) contrast(1.04);
}
.login-tunnel__portal-stage {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  pointer-events: none;
}
.login-tunnel__portal-wrap {
  width: min(920px, 100%);
  transform:
    scale(calc(0.78 + var(--tunnel-progress) * 0.22))
    translateY(calc((1 - var(--tunnel-progress)) * 28px));
  opacity: calc(0.05 + var(--tunnel-progress) * 0.95);
  filter:
    blur(calc((1 - var(--tunnel-progress)) * 16px))
    brightness(calc(0.5 + var(--tunnel-progress) * 0.5));
  transition: filter 0.15s linear;
}
.login-tunnel--arrived .login-tunnel__portal-wrap,
.login-tunnel--instant .login-tunnel__portal-wrap {
  transform: scale(1) translateY(0);
  opacity: 1;
  filter: none;
}
.login-tunnel--arrived .login-tunnel__portal-stage,
.login-tunnel--instant .login-tunnel__portal-stage {
  pointer-events: auto;
}
.login-tunnel .login-shell {
  min-height: auto;
  display: block;
  padding: 0;
  width: 100%;
}
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px);
  position: relative;
  z-index: 1;
}
.login-portal {
  width: min(920px, 100%);
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 80px rgba(201, 162, 39, calc(0.15 + var(--tunnel-progress) * 0.25)),
    0 40px 80px rgba(0, 0, 0, 0.45);
}
.login-tunnel--instant .login-portal,
.login-tunnel--arrived .login-portal {
  animation: login-portal-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes login-portal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-portal__head {
  text-align: center;
  padding: clamp(24px, 4vw, 32px) 24px 20px;
  background:
    linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.login-portal__head .nexus-logo--card {
  width: min(220px, 72%);
  margin: 0 auto;
}
.login-portal__kicker {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.login-portal__motto {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.login-portal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-portal__about {
  padding: clamp(24px, 3vw, 32px);
  background: #f8fbf8;
  border-right: 1px solid var(--line);
}
.login-portal__about h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-on-soft);
}
.login-portal__about p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.login-portal__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.login-portal__chips li {
  font-size: 11px;
  font-weight: 650;
  padding: 5px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--brand-soft-border);
  color: var(--brand-on-soft);
}
.login-portal__signin {
  padding: clamp(24px, 3vw, 32px);
}
.login-portal__signin h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.login-portal__signin-lead {
  margin: 6px 0 22px;
  font-size: 13px;
  color: var(--muted);
}
.login-portal__form .field {
  margin-bottom: 14px;
}
.login-portal__form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.login-portal__form input[type="text"],
.login-portal__form input[type="password"],
.login-portal__form input:not([type="checkbox"]) {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafcfa;
}
.login-portal__form input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-focus);
}
.login-portal__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.login-portal__remember input {
  accent-color: var(--brand);
}
.login-portal__submit {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
}
.login-portal__help {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.login-page > .flash {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(480px, calc(100% - 32px));
  margin: 0;
}
@media (max-width: 768px) {
  .login-portal__grid {
    grid-template-columns: 1fr;
  }
  .login-portal__about {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

.final-submit-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.final-submit-meter {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.final-submit-ring {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}
.final-submit-ring-bg {
  fill: none;
  stroke: #e8ebf2;
  stroke-width: 3;
}
.final-submit-ring-fill {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
}
.final-submit-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-on-soft);
}
.final-submit-meta {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  min-width: 72px;
}
.final-submit-meta strong { font-size: 14px; }
.final-submit-seal {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.final-submit-seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-light), var(--brand-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 64, 50, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  border: 3px double rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.final-submit-seal:hover .final-submit-seal-inner {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(26, 64, 50, 0.45);
}
.final-submit-seal-icon {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.final-submit-seal-text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.1;
  margin-top: 2px;
}
.final-submit-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}
.final-submit-badge.is-done { background: #dcfce7; color: #166534; }
.final-submit-badge.is-empty { background: #f3f4f6; color: #6b7280; }
.school-row-locked { background: #fafafa; }
.schools-table .final-submit-cell form { margin: 0; display: inline; }

/* —— Competition entry page —— */
.competition-entry-page { display: flex; flex-direction: column; gap: 16px; }
.entry-wizard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.entry-wizard-head h2 { margin: 0 0 6px; font-size: 1.35rem; }
.entry-wizard-lead { margin: 0; max-width: 52rem; line-height: 1.45; }
.entry-wizard-clear { flex-shrink: 0; }
.entry-progress {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.entry-progress-item {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e8ecf4;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.entry-progress-item.is-done {
  background: var(--purple-soft);
  border-color: var(--brand-soft-border);
  color: var(--brand-on-soft);
}
.entry-progress-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.entry-progress-item.is-done .entry-progress-num {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.entry-wizard-card {
  background: linear-gradient(180deg, #f8fbf6 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.entry-wizard-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.02em;
}
.entry-wizard-card-hint { margin: 0; }
.entry-input {
  width: 100%;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.entry-input:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px var(--brand-focus);
}
.entry-input--muted { background: #f1f5f9; color: #64748b; }
.entry-tag-list {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
.entry-student-summary {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8ecf4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.entry-student-summary-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.entry-student-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.entry-student-summary-meta strong { color: var(--text); }
.entry-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.entry-pill--category { background: var(--purple-soft); color: var(--brand-on-soft); }
.entry-pill--lock { background: #fef3c7; color: #92400e; }
.entry-locked-category { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.entry-competitions-head { margin-bottom: 16px; }
.entry-competitions-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.entry-empty-state {
  padding: 24px;
  text-align: center;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}
.competition-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.competition-pick-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 2px solid #e8ecf4;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.competition-pick-card--disabled {
  opacity: 0.62;
  cursor: not-allowed;
  background: #f3f4f6;
}
.competition-pick-card--disabled input {
  cursor: not-allowed;
}
.competition-pick-card:has(input:checked) {
  border-color: var(--purple);
  background: var(--brand-soft);
  box-shadow: 0 2px 8px var(--brand-focus);
}
.competition-pick-card input { margin-top: 4px; flex-shrink: 0; accent-color: var(--purple); }
.competition-pick-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.competition-pick-name { font-weight: 650; font-size: 14px; line-height: 1.3; }
.competition-pick-meta { font-size: 12px; color: var(--muted); }
.entry-save-btn { min-width: 200px; }
.entry-list-head { margin-bottom: 12px; }
.entry-list-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.entry-table-wrap {
  border: 1px solid #eef0f5;
  border-radius: 10px;
  overflow: hidden;
}
.entry-table { margin: 0; }
.entry-table thead th {
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.entry-table-empty { text-align: center; color: var(--muted); padding: 24px !important; }
.entry-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.entry-status--yes { background: #dcfce7; color: #166534; }
.entry-status--no { background: #f3f4f6; color: #6b7280; }
.entry-filter-layout { max-width: none; }

.final-submission-page { display: flex; flex-direction: column; gap: 14px; }
.final-submission-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.final-submission-head h2 { margin: 0 0 6px; }
.final-submission-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--muted);
}
.final-stat strong { color: var(--text); font-size: 18px; display: block; }
.final-submission-banner { margin: 0; padding: 10px 14px; background: var(--brand-soft); border-radius: 8px; color: var(--brand-on-soft); }
.final-submission-banner--error { background: #fef2f2; color: #b42318; }
.final-section-title { margin: 0 0 12px; font-size: 1.05rem; }
.event-toggle-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.event-toggle-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #d8dde8;
  background: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.event-toggle-btn:hover { border-color: var(--purple); color: var(--purple); }
.event-toggle-btn.is-active {
  background: var(--purple-soft);
  border-color: var(--brand-soft-border);
  color: var(--brand-on-soft);
}
.final-category-block { margin-bottom: 20px; }
.final-category-block:last-child { margin-bottom: 0; }
.final-category-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-on-soft);
}
.final-submission-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.final-submission-actions form { margin: 0; }
.final-submit-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}
.final-submit-confirm { margin: 0; line-height: 1.45; }
.btn.is-disabled { pointer-events: none; opacity: 0.5; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.schools-list-panel,
.master-list-panel { margin-top: 14px; }
.schools-search,
.master-search { margin-bottom: 14px; }
.schools-search-field,
.master-search-field { flex: 1; min-width: 200px; max-width: 420px; margin-bottom: 0; }
.master-table-empty { text-align: center; padding: 24px 8px !important; }
.schools-master-table td:nth-child(5) { max-width: 280px; white-space: normal; word-break: break-word; }
.schools-table-empty { text-align: center; padding: 24px 8px !important; }
.school-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.school-status--active { background: var(--brand-soft); color: var(--brand-on-soft); }
.school-status--inactive { background: #f3f4f6; color: #6b7280; }

.field-label {
  font-size: 13px;
  font-weight: 650;
  color: #374151;
}
.status-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.status-toggle-value {
  font-size: 14px;
  font-weight: 700;
  min-width: 4.5rem;
  color: var(--brand-on-soft);
}
.status-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.status-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.status-toggle-track {
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
  position: relative;
}
.status-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.status-toggle.is-on .status-toggle-track {
  background: var(--brand);
}
.status-toggle.is-on .status-toggle-track::after {
  transform: translateX(22px);
}
.status-toggle.is-off .status-toggle-value,
.status-toggle-row:has(.is-off) .status-toggle-value {
  color: #6b7280;
}

@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    z-index: 5;
    top: 64px;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .stat-grid, .form-grid, .checks, .entry-filter-grid, .entry-filter-layout { grid-template-columns: 1fr; }
  .entry-progress-item { min-width: calc(50% - 8px); }
  .competition-pick-grid { grid-template-columns: 1fr; }
  .category-dropdown-menu--columns { grid-template-columns: 1fr; }
  .brand { left: 56px; right: 56px; gap: 8px; }
  .brand-tag { font-size: 13px; }
  .nexus-logo--topbar { height: 38px; max-width: 120px; padding: 3px 6px; }
  .nexus-logo--hero { width: min(280px, 75%); }
  .date-pill { white-space: normal; }
}
