@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  --navy: #0b2447;
  --ink: #172b45;
  --muted: #6d7a8b;
  --line: #e2eaf4;
  --blue: #006bff;
  --purple: #6f38ff;
  --purple-soft: #efe8ff;
  --purple-line: #cbbcff;
  --white: #ffffff;
  --surface: #f7faff;
  --font: "Google Sans","Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.48;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-button,
.outline-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.primary-button {
  padding: 0 14px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 107, 255, 0.14);
}

.outline-button {
  padding: 0 14px;
  color: var(--purple);
  background: var(--white);
  border-color: var(--purple-line);
}

.outline-button:hover {
  background: var(--purple-soft);
  border-color: var(--purple);
}

.full-width {
  width: 100%;
}

.admin-login-page,
.admin-shell {
  min-height: 100vh;
  background: var(--surface);
}

.admin-shell {
  position: relative;
  isolation: isolate;
}

.admin-shell::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: var(--surface);
  content: "";
}

.admin-login-page {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background:
    linear-gradient(90deg, rgba(244, 248, 255, 0.96), rgba(244, 248, 255, 0.80)),
    url("../../images/hero.jpg") center right / cover no-repeat;
}

.admin-login-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(380px, 0.68fr);
  width: min(1120px, 100%);
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(217, 231, 251, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(6, 23, 68, 0.16);
}

.admin-login-visual {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 34px;
  padding: clamp(34px, 5vw, 58px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 23, 68, 0.98), rgba(0, 64, 150, 0.64)),
    url("../../images/hero.jpg") center / cover no-repeat;
}

.admin-login-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 23, 68, 0.34) 100%);
  content: "";
}

.admin-login-visual > * {
  position: relative;
  z-index: 1;
}

.login-brand {
  display: inline-flex;
  justify-self: start;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.login-brand img {
  display: block;
  width: min(260px, 60vw);
  height: auto;
}

.admin-login-visual .eyebrow {
  color: #b8dbff;
}

.admin-login-visual h1 {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 900;
  line-height: 1.03;
}

.admin-login-visual p:not(.eyebrow) {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.65;
}

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

.login-proof-grid span {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
  font-weight: 900;
}

.admin-login-card,
.admin-board,
.admin-stats article {
  border: 1px solid #e1eaf5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 26px rgba(11, 36, 71, 0.05);
}

.admin-login-card {
  display: grid;
  align-content: center;
  width: 100%;
  padding: clamp(34px, 5vw, 58px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.admin-login-card h1,
.admin-login-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 40px;
  line-height: 1.08;
  font-weight: 900;
}

.admin-login-card p:not(.eyebrow) {
  color: var(--muted);
}

.google-login-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  border: 1px solid #c9daf4;
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(6, 23, 68, 0.05);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.google-login-button:hover {
  border-color: #9fc0f0;
  box-shadow: 0 14px 30px rgba(6, 23, 68, 0.10);
  transform: translateY(-1px);
}

.google-login-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.google-login-button span {
  line-height: 1;
}

.admin-login-intro {
  margin-bottom: 18px;
}

.admin-login-change-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 15px;
  border: 1px solid #b8d7f4;
  border-left: 4px solid var(--blue);
  border-radius: 9px;
  background: #f2f8ff;
  color: var(--navy);
}

.admin-login-change-icon {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.admin-login-change-notice strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.admin-login-card .admin-login-change-notice p {
  margin: 0;
  color: #53677e;
  font-size: 13px;
  line-height: 1.45;
}

.admin-login-change-notice a {
  display: inline-block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  text-underline-offset: 3px;
}

.admin-login-change-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  padding: 34px;
  border: 1px solid #d6e4f2;
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 28px 80px rgba(8, 28, 56, 0.28);
}

.admin-login-change-dialog::backdrop {
  background: rgba(8, 22, 43, 0.68);
  backdrop-filter: blur(3px);
}

.admin-login-change-dialog .eyebrow {
  margin: 14px 0 7px;
}

.admin-login-change-dialog h2 {
  margin: 0 34px 10px 0;
  color: var(--navy);
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.12;
}

.admin-login-change-dialog > p:not(.eyebrow) {
  margin: 0;
  color: #5b6c80;
  line-height: 1.55;
}

.admin-login-change-dialog-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #eaf4ff;
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.admin-login-change-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f4f8;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.admin-login-change-close:hover,
.admin-login-change-close:focus-visible {
  background: #e3ebf4;
}

.admin-login-change-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.admin-login-change-actions .primary-button,
.admin-login-change-actions .outline-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

@media (max-width: 520px) {
  .admin-login-change-dialog { padding: 28px 22px 22px; }
  .admin-login-change-actions { align-items: stretch; flex-direction: column; }
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

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

.admin-login-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.admin-login-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid #c9daf4;
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 107, 255, 0.10);
}

.admin-form-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-muted-link {
  display: inline-flex;
  color: var(--blue);
  font-weight: 850;
}

.login-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.admin-success,
.admin-alert {
  padding: 12px 14px;
  border-radius: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-success.is-hiding,
.admin-alert.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}

.admin-success {
  border: 1px solid #b9e0c7;
  color: #166c42;
  background: #edf8f2;
}

.admin-alert {
  border: 1px solid #ffd3a3;
  color: #7a4a00;
  background: #fff6e8;
}

.admin-shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  padding-top: 58px;
}

.admin-sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 16px 12px;
  overflow: hidden;
  color: #394760;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid #e5ebf4;
  box-shadow: 12px 0 34px rgba(20, 31, 55, 0.04);
}

.admin-sidebar > * {
  position: relative;
  z-index: 1;
}

.admin-brand {
  display: flex;
  align-items: center;
  padding: 4px 3px 12px;
  border-bottom: 1px solid #e7edf6;
}

.admin-brand img {
  display: block;
  width: min(164px, 100%);
  height: auto;
  border-radius: 5px;
  background: #ffffff;
}

.admin-sidebar nav {
  display: grid;
  align-content: start;
  gap: 4px;
  visibility: hidden;
}

.admin-sidebar nav.is-menu-ready {
  visibility: visible;
}

.admin-sidebar nav a,
.admin-logout {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 7px;
  color: #394760;
  font-size: 12.5px;
  font-weight: 700;
}

.admin-logout {
  display: none !important;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  color: #6f38ff;
  background: #efe8ff;
}

.admin-main {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px clamp(18px, 3vw, 38px);
}

.admin-main::before {
  position: fixed;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: 58px;
  background:
    linear-gradient(90deg, rgba(17, 23, 45, 0.98), rgba(27, 31, 58, 0.96)),
    url("../../images/hero.jpg") center / cover no-repeat;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(17, 23, 45, 0.12);
  content: "";
}

.admin-main::after {
  position: fixed;
  z-index: 5;
  top: 17px;
  left: 24px;
  color: #ffffff;
  content: "mySailingResults Admin";
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-topbar,
.admin-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar {
  position: relative;
  z-index: 1;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: 0;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}

.admin-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

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

.admin-dashboard-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-stats article {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
}

.admin-dashboard-stats article {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px 18px;
}

.admin-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.admin-stats strong {
  color: var(--navy);
  font-size: 20px;
  font-weight: 850;
}

.admin-stats i {
  display: grid;
  grid-row: span 3;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  color: #6f38ff;
  background: #efe8ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.admin-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.admin-board {
  padding: 18px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.admin-action-board {
  display: grid;
  gap: 8px;
}

.admin-dashboard-main {
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-dashboard-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.admin-action-board > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--navy);
  font-weight: 800;
}

.admin-action-board > a:hover {
  border-color: #d5c8ff;
  background: #f8f4ff;
}

.admin-action-board > a > span {
  color: #394760;
  font-size: 13px;
}

.admin-action-board > a > strong {
  color: #6f38ff;
  font-size: 13px;
}

.admin-dashboard-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-events-panel {
  display: grid;
  gap: 12px;
}

.admin-events-heading {
  margin: 0;
}

.admin-event-filters {
  display: grid;
  grid-template-columns: 0.7fr 0.85fr 1.1fr 1.1fr 0.65fr 1.05fr 1.05fr 1.05fr;
  gap: 12px;
  align-items: end;
  padding: 0;
}

.admin-event-filters[hidden] {
  display: none !important;
}

.admin-filter-button {
  min-width: 92px;
}

.admin-filter-popover {
  position: absolute;
  z-index: 8;
  right: clamp(18px, 3vw, 38px);
  width: min(600px, calc(100vw - 240px));
  overflow: hidden;
  border: 1px solid #dfe6f1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(20, 31, 55, 0.16);
}

.admin-filter-popover-head {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #edf1f7;
}

.admin-filter-popover-head button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.admin-filter-builder {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 260px;
}

.admin-filter-fields {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 8px;
  border-right: 1px solid #edf1f7;
  background: #f8faff;
}

.admin-filter-field {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #33415c;
  cursor: pointer;
  text-align: left;
}

.admin-filter-field span {
  font-size: 13px;
  font-weight: 800;
}

.admin-filter-field small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-filter-field.active {
  color: #ffffff;
  background: #7a45ff;
}

.admin-filter-field.active small {
  color: rgba(255, 255, 255, 0.82);
}

.admin-filter-options {
  display: grid;
  align-content: start;
  gap: 2px;
  max-height: 340px;
  overflow: auto;
  padding: 8px;
}

.admin-filter-option {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #33415c;
  font-size: 13px;
  font-weight: 700;
}

.admin-filter-option:hover {
  background: #f4f7fd;
}

.admin-filter-option input {
  width: 15px;
  height: 15px;
  accent-color: #7a45ff;
}

.admin-event-filters label,
.admin-table-tools label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.admin-event-filters select,
.admin-table-tools select,
.admin-table-tools input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
}

.admin-event-filters select[multiple] {
  min-height: 76px;
  padding: 6px 10px;
}

.admin-select-menu {
  position: relative;
  display: block;
}

.admin-select-menu > button {
  position: relative;
  width: 100%;
  min-height: 36px;
  overflow: hidden;
  padding: 0 28px 0 10px;
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-select-menu > button::after {
  position: absolute;
  top: 15px;
  right: 10px;
  width: 0;
  height: 0;
  border-top: 5px solid #63728a;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
}

.admin-select-menu-panel {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  display: none;
  width: 100%;
  min-width: 220px;
  padding: 4px;
  border: 1px solid #d6e0eb;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #ffffff;
  box-shadow: 0 12px 22px rgba(11, 36, 71, 0.10);
}

.admin-select-menu.open > button {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.admin-select-menu.open .admin-select-menu-panel {
  display: grid;
  gap: 4px;
}

.admin-select-menu-panel label {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 650;
}

.admin-select-menu-panel input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.admin-select-menu-panel label:hover {
  background: #f4f8ff;
}

.admin-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #e0e8f1;
  border-radius: 10px 10px 0 0;
  background: #ffffff;
}

.admin-table-tools label {
  display: flex;
  grid-auto-flow: column;
  align-items: center;
  gap: 7px;
  font-weight: 650;
}

.admin-toggle-control {
  white-space: nowrap;
}

.admin-toggle-control input {
  width: 16px;
  min-height: 16px;
}

.admin-table-tools select {
  width: 76px;
}

.admin-table-tools input {
  width: min(240px, 48vw);
}

.admin-pagination-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-pagination button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c9daf4;
  border-radius: 7px;
  background: #ffffff;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

.admin-pagination button:disabled {
  color: #93a1b5;
  cursor: not-allowed;
  opacity: 0.65;
}

.admin-table-input {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #d6e0eb;
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
}

.admin-table-input.code {
  max-width: 90px;
  text-transform: uppercase;
}

.admin-countries-table {
  min-width: 720px;
}

.admin-countries-table td {
  vertical-align: middle;
}

.admin-countries-table .admin-table-input {
  max-width: 100%;
}

.admin-countries-table .admin-checkbox.compact {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.admin-permission-table th:not(:first-child),
.admin-permission-table td:not(:first-child) {
  text-align: center;
}

.admin-clubs-table {
  min-width: 1450px;
}

.admin-clubs-table .admin-table-input + .admin-table-input {
  margin-top: 5px;
}

.admin-board-header {
  margin-bottom: 12px;
}

.admin-board-header h2 {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 800;
}

.admin-board-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-event-list {
  display: grid;
}

.admin-event-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 70px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.admin-event-list article:last-child {
  border-bottom: 0;
}

.admin-event-list h3 {
  margin: 0;
  font-size: 14px;
}

.admin-event-list p {
  margin: 2px 0 0;
  color: var(--muted);
}

.admin-event-list a,
.admin-table a {
  color: var(--blue);
  font-weight: 850;
}

.admin-muted-inline {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.admin-ranking-multi {
  min-width: 220px;
  height: auto;
  padding: 7px;
}

.admin-ranking-multi option {
  padding: 5px 7px;
  border-radius: 5px;
}

.admin-ranking-duration {
  display: grid;
  grid-template-columns: 90px 130px;
  gap: 8px;
  align-items: center;
}

.admin-event-list .admin-event-edit-icon {
  display: inline-grid;
  justify-self: end;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #dce5f4;
  border-radius: 8px;
  color: #59647d;
  background: #ffffff;
  font-weight: 400;
}

.admin-event-list .admin-event-edit-icon:hover {
  color: var(--blue);
  border-color: #b9cffb;
  background: #f5f8ff;
}

.admin-event-list .admin-event-edit-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--navy);
  background: #ffffff;
}

.admin-table th,
.admin-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #fbfdff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-events-table {
  min-width: 1280px;
  border: 1px solid #e0e8f1;
  border-top: 0;
}

.admin-events-table th {
  height: 38px;
  white-space: nowrap;
}

.admin-events-table td {
  height: 58px;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td span {
  color: var(--muted);
  font-size: 11px;
}

.admin-event-name a {
  display: block;
  color: #006bff;
  font-weight: 750;
}

.admin-club-cell strong {
  color: #0d203c;
  font-size: 13px;
}

.status-pill {
  display: inline-flex !important;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #a9b5c2;
  border-radius: 999px;
  color: #59687a !important;
  background: #ffffff;
  font-size: 12px !important;
  font-weight: 700;
  white-space: nowrap;
}

.admin-inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.status-published {
  color: #159447 !important;
  border-color: #20a552;
}

.status-primary {
  color: #0057d6 !important;
  border-color: #7facff;
  background: #f4f8ff;
}

.status-warning {
  color: #9b6200 !important;
  border-color: #f0bf61;
  background: #fff9ec;
}

.status-danger {
  color: #a03636 !important;
  border-color: #eca0a0;
  background: #fff5f5;
}

.status-info {
  color: #28718b !important;
  border-color: #9bd6e8;
  background: #f1fbff;
}

.admin-row-action {
  color: var(--blue);
  font-weight: 750;
}

.admin-user-cell {
  min-width: 240px;
}

.admin-user-edit-link {
  display: inline-block;
  color: var(--navy);
  text-decoration: none;
  text-underline-offset: 3px;
}

.admin-user-edit-link:hover,
.admin-user-edit-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}

.admin-user-cell img {
  float: left;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 50%;
}

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

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

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

.admin-form-grid label,
.admin-access-grid label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea,
.admin-access-grid input,
.admin-access-grid select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
}

.admin-form-grid textarea {
  min-height: 150px;
  padding: 9px 10px;
  resize: vertical;
}

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

.admin-club-logo-control {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #f8fafc;
}

.admin-club-logo-preview {
  display: grid;
  flex: 0 0 150px;
  gap: 6px;
  justify-items: start;
}

.admin-club-logo-preview img {
  display: block;
  width: 150px;
  height: 88px;
  padding: 8px;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

.admin-club-logo-preview em,
.admin-club-logo-upload small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
}

.admin-club-logo-upload {
  display: grid;
  flex: 1 1 auto;
  gap: 7px;
  min-width: 0;
}

.admin-club-logo-upload input[type="file"] {
  min-height: 42px;
  padding: 7px 9px;
  border-style: dashed;
  background: #ffffff;
}

@media (max-width: 640px) {
  .admin-club-logo-control {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-club-logo-preview {
    flex-basis: auto;
  }
}

.admin-featured-event-form {
  margin-bottom: 22px;
}

.admin-featured-event-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  background: #f8fafc;
}

.admin-featured-event-preview img {
  width: 190px;
  height: 105px;
  border-radius: 9px;
  object-fit: cover;
}

.admin-featured-event-preview div {
  display: grid;
  gap: 4px;
}

.admin-featured-event-preview span {
  color: #788294;
  font-size: 13px;
}

.admin-featured-event-thumb {
  display: block;
  width: 92px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-featured-event-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-featured-event-actions form {
  margin: 0;
}

.admin-organisation-contacts { display:grid; gap:12px; }
.admin-organisation-contact { padding:14px; border:1px solid #d6e0eb; border-radius:8px; background:#f8fafc; }
.admin-organisation-contact.dragging { opacity:.5; border-color:#1688c9; }
.admin-organisation-contact-toolbar { display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.admin-contact-drag { cursor:grab; color:#64748b; font-size:18px; letter-spacing:-4px; }
.admin-contact-actions { display:flex; gap:6px; margin-left:auto; }
.admin-contact-drag,.admin-contact-actions button { min-height:30px; padding:4px 9px; border:1px solid #cbd7e3; border-radius:5px; background:#fff; color:var(--navy); }
.admin-contact-actions button:disabled { opacity:.4; cursor:not-allowed; }
.admin-contact-actions [data-contact-remove] { color:#a03636; }

.admin-links-table td:nth-child(3) {
  min-width: 240px;
  white-space: normal;
}

.admin-links-table td:nth-child(4) {
  max-width: 320px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.admin-danger-button {
  margin-left: auto;
  color: #a03636 !important;
  border-color: #eca0a0 !important;
  background: #fff5f5 !important;
}

.admin-child-club-tools {
  display: flex;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
}

.admin-child-club-tools label {
  display: grid;
  gap: 5px;
  min-width: min(360px, 100%);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.admin-child-club-tools input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
}

.admin-child-club-tools span {
  color: #6d7892;
  font-size: 13px;
}

.admin-child-club-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  background: #fbfcff;
}

.admin-child-club-option {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #e1e8f2;
  border-radius: 7px;
  background: #ffffff;
  color: #26334f;
  font-size: 13px;
}

.admin-child-club-option input {
  accent-color: #6d45f3;
}

.admin-child-club-option[hidden],
.admin-child-club-option.is-filtered {
  display: none !important;
}

.admin-form-stack {
  display: grid;
  gap: 12px;
}

.admin-event-core-grid {
  grid-template-columns: minmax(0, 1fr) 220px 150px;
  margin-top: 14px;
}

.admin-event-type-grid {
  grid-template-columns: 0.8fr 1.3fr 0.8fr;
}

.admin-event-venue-grid {
  grid-template-columns: 1fr 1.3fr 0.55fr 0.55fr;
}

.admin-event-schedule-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-event-contact-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
}

.admin-anzam-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.admin-anzam-status-column,
.admin-anzam-url-column {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dfe7f0;
  border-radius: 14px;
  background: #f8fafc;
}

.admin-anzam-status-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(145deg, #f4f8fd 0%, #ffffff 100%);
}

.admin-anzam-status-heading,
.admin-anzam-status-row,
.admin-anzam-queue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-anzam-eyebrow {
  color: #1677da;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.admin-anzam-status-heading h3,
.admin-anzam-url-heading h3 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 18px;
}

.admin-anzam-url-heading p {
  margin: 5px 0 2px;
  color: #68758a;
  font-size: 12px;
}

.admin-anzam-status-list {
  display: grid;
  gap: 10px;
}

.admin-anzam-status-row,
.admin-anzam-time-card,
.admin-anzam-queue-card {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #e1e8f1;
  border-radius: 10px;
  background: #fff;
}

.admin-anzam-queue-card[hidden] {
  display: none !important;
}

.admin-anzam-status-row > div,
.admin-anzam-queue-card > div,
.admin-anzam-time-card {
  display: grid;
  gap: 4px;
}

.admin-anzam-status-row strong,
.admin-anzam-queue-card strong,
.admin-anzam-time-card strong {
  color: #12233f;
  font-size: 13px;
}

.admin-anzam-status-row small,
.admin-anzam-queue-card small,
.admin-anzam-time-card span {
  color: #718096;
  font-size: 11px;
}

.admin-anzam-time-card strong {
  color: #08794f;
  font-size: 16px;
}

.admin-anzam-status-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.admin-anzam-status-pill > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px currentColor;
  opacity: .8;
}

.admin-anzam-status-pill.is-success { color: #08794f; background: #dff8ed; }
.admin-anzam-status-pill.is-warning { color: #986300; background: #fff2c7; }
.admin-anzam-status-pill.is-danger { color: #b42318; background: #fee4e2; }
.admin-anzam-status-pill.is-info { color: #0b62c4; background: #e2efff; }
.admin-anzam-status-pill.is-neutral { color: #667085; background: #eaecf0; }

.admin-anzam-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.admin-anzam-action {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.admin-anzam-action.is-start { color: #08794f; border-color: #9de1c3; background: #e7f9f1; }
.admin-anzam-action.is-pause { color: #8a5700; border-color: #f4d480; background: #fff5d9; }
.admin-anzam-action.is-run { color: #075da8; border-color: #a8cff3; background: #eaf5ff; }
.admin-anzam-action.is-push { color: #fff; border-color: #0b73db; background: linear-gradient(135deg, #075cb8, #1198f5); }
.admin-anzam-action:hover { filter: brightness(.97); transform: translateY(-1px); }

.admin-anzam-url-column {
  align-content: start;
  grid-template-columns: 1fr;
  background: #fff;
}

.admin-form-grid select[multiple] {
  min-height: 132px;
  padding: 7px 10px;
}

.admin-form-grid select[multiple] option {
  padding: 4px 2px;
}

.admin-form-grid select[data-toggle-multiselect] option:checked {
  color: #ffffff;
  background: #0f5bff linear-gradient(#0f5bff, #0f5bff);
}

[data-document-club-selected] {
  color: #6d7892;
  font-size: 12px;
  font-weight: 650;
}

.admin-access-profile-grid {
  grid-template-columns: 0.85fr 0.65fr 1.1fr 1.4fr;
}

.admin-checkbox {
  display: flex !important;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  align-self: end;
}

.admin-checkbox input {
  width: 18px;
  min-height: 18px;
}

.admin-checkbox.compact {
  justify-content: center;
  align-self: stretch;
  font-size: 12px;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #31405b;
  font-size: 12px;
  font-weight: 500;
}

.admin-check input {
  width: 16px;
  min-height: 16px;
  accent-color: #6d45f6;
}

.admin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 14px;
}

.admin-checkbox-stack {
  display: grid;
  gap: 6px;
  min-width: 130px;
}

.admin-form-section.compact {
  padding: 12px;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: #fbfdff;
}

.admin-form-section.compact h3 {
  margin: 0 0 10px;
  color: #10213d;
  font-size: 12px;
  font-weight: 650;
}

.admin-api-key-panel .admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-api-key-panel .admin-form-section.compact,
.admin-api-key-panel .admin-form-actions {
  align-self: end;
}

.admin-data-table select[multiple] {
  min-width: 190px;
  border-color: #d5e0ef;
  box-shadow: none;
  font-size: 12px;
}

.admin-data-table textarea,
.admin-data-table input[type="text"] {
  min-width: 160px;
}

.admin-api-key-create-form {
  display: grid;
  gap: 16px;
}

.admin-api-key-created > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.admin-api-key-created code {
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border-radius: 7px;
  color: #29324b;
  background: rgba(255,255,255,.72);
}

.admin-api-key-regenerate {
  align-self: end;
  justify-self: start;
  min-height: 40px;
}

.admin-api-key-page-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-api-key-page-sections > .admin-api-keys-board {
  order: 1;
}

.admin-api-key-page-sections > .admin-api-key-panel {
  order: 2;
}

.admin-api-key-section {
  padding: 18px;
  border: 1px solid #e0e7f0;
  border-radius: 12px;
  background: #fbfcfe;
}

.admin-api-key-section-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
  list-style: none;
}

.admin-api-key-section-heading::-webkit-details-marker,
.admin-api-key-card-summary::-webkit-details-marker,
.admin-api-key-card-section-title::-webkit-details-marker {
  display: none;
}

.admin-api-key-section[open] > .admin-api-key-section-heading {
  margin-bottom: 16px;
}

.admin-api-key-section-heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  color: #5142d8;
  background: #eeecff;
  font-size: 12px;
  font-weight: 800;
}

.admin-api-key-section-heading > div,
.admin-api-key-card-section-title > div {
  min-width: 0;
  flex: 1;
}

.admin-api-key-section-heading > i,
.admin-api-key-card-section-title > i,
.admin-api-key-summary-meta > i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin: 7px 3px 0 auto;
  border-right: 2px solid #778399;
  border-bottom: 2px solid #778399;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.admin-api-key-section[open] > .admin-api-key-section-heading > i,
.admin-api-key-card-section[open] > .admin-api-key-card-section-title > i,
.admin-api-key-card[open] > .admin-api-key-card-summary .admin-api-key-summary-meta > i {
  transform: rotate(225deg);
}

.admin-api-key-section-heading h3,
.admin-api-key-card-section-title h3 {
  margin: 0;
  color: #17243b;
  font-size: 14px;
}

.admin-api-key-section-heading p,
.admin-api-key-card-section-title p,
.admin-api-key-create-actions p,
.admin-api-key-empty p {
  margin: 4px 0 0;
  color: #6c778b;
  font-size: 12px;
  font-weight: 500;
}

.admin-api-key-identity-grid,
.admin-api-key-restriction-grid,
.admin-api-key-card-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-api-key-create-form label,
.admin-api-key-card label {
  display: grid;
  gap: 6px;
  color: #24324a;
  font-size: 12px;
  font-weight: 700;
}

.admin-api-key-create-form input[type="text"],
.admin-api-key-create-form textarea,
.admin-api-key-create-form select,
.admin-api-key-card input[type="text"],
.admin-api-key-card textarea,
.admin-api-key-card select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  color: #17243b;
  background: #ffffff;
  font: inherit;
  font-weight: 500;
}

.admin-api-key-create-form textarea,
.admin-api-key-card textarea {
  min-height: 76px;
  resize: vertical;
}

.admin-api-key-create-form select[multiple],
.admin-api-key-card select[multiple] {
  min-height: 132px;
  padding: 6px;
}

.admin-api-key-create-form option,
.admin-api-key-card option {
  padding: 5px 6px;
}

.admin-api-key-create-form small,
.admin-api-key-card small {
  color: #7a8496;
  font-size: 11px;
  font-weight: 500;
}

.admin-api-origin-field {
  grid-column: 1 / -1;
}

.admin-api-permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
}

.admin-api-permission-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-api-key-create-form .admin-api-permission,
.admin-api-key-card .admin-api-permission {
  display: flex;
  min-height: 42px;
  padding: 9px 11px;
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  color: #34425a;
  background: #ffffff;
  cursor: pointer;
}

.admin-api-permission input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: #6554e8;
}

.admin-api-permission:has(input:checked) {
  border-color: #aaa1f3;
  color: #4235bc;
  background: #f4f2ff;
}

.admin-api-key-create-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 2px;
}

.admin-api-key-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-api-key-empty {
  padding: 34px 20px;
  border: 1px dashed #cfd8e5;
  border-radius: 12px;
  text-align: center;
  background: #fbfcfe;
}

.admin-api-key-card {
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(27, 39, 66, .045);
}

.admin-api-key-card-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px;
  min-height: 72px;
  padding: 15px 18px;
  align-items: center;
  color: #17243b;
  background: #ffffff;
  cursor: pointer;
  list-style: none;
}

.admin-api-key-card-summary:hover {
  background: #fafbfe;
}

.admin-api-key-card[open] > .admin-api-key-card-summary {
  border-bottom: 1px solid #e7ebf1;
  background: #fafbfe;
}

.admin-api-key-summary-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-api-key-summary-identity strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-api-key-summary-identity small,
.admin-api-key-summary-meta small {
  color: #718096;
  font-size: 11px;
  font-weight: 500;
}

.admin-api-key-summary-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.admin-api-key-summary-meta code {
  padding: 5px 8px;
  border-radius: 6px;
  color: #4d3ecb;
  background: #f0eeff;
  font-size: 11px;
  font-weight: 700;
}

.admin-api-key-summary-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-api-key-summary-status.is-active {
  color: #187744;
  background: #eaf8f0;
}

.admin-api-key-summary-status.is-paused {
  color: #8a5b12;
  background: #fff4dc;
}

.admin-api-key-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px;
  background: #fafbfe;
}

.admin-api-key-card .admin-api-key-status {
  display: flex;
  min-height: 40px;
  padding: 9px 13px;
  align-items: center;
  gap: 8px;
  border: 1px solid #bfe5cf;
  border-radius: 999px;
  color: #187744;
  background: #effaf4;
  white-space: nowrap;
}

.admin-api-key-status input {
  width: 17px;
  height: 17px;
  accent-color: #20a05a;
}

.admin-api-key-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 10px 18px;
  border-top: 1px solid #edf1f6;
  border-bottom: 1px solid #e5eaf1;
  color: #677286;
  background: #ffffff;
  font-size: 11px;
}

.admin-api-key-meta code {
  margin-left: 5px;
  color: #4d3ecb;
  font-weight: 700;
}

.admin-api-key-meta strong {
  margin-left: 5px;
  color: #34425a;
}

.admin-api-key-card-body {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 18px;
}

.admin-api-key-details-section {
  grid-column: 1 / -1;
}

.admin-api-key-card-section {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e6ebf2;
  border-radius: 11px;
  background: #fbfcfe;
}

.admin-api-key-card-section-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
  list-style: none;
}

.admin-api-key-card-section[open] > .admin-api-key-card-section-title {
  margin-bottom: 13px;
}

.admin-api-key-restriction-grid.compact {
  gap: 12px;
}

@media (max-width: 1050px) {
  .admin-api-key-card-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-api-key-identity-grid,
  .admin-api-key-restriction-grid,
  .admin-api-key-card-identity,
  .admin-api-permission-grid.compact {
    grid-template-columns: 1fr;
  }

  .admin-api-origin-field {
    grid-column: auto;
  }

  .admin-api-key-card-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-api-key-card-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-api-key-summary-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-api-key-summary-meta > i {
    margin-left: auto;
  }

  .admin-api-key-card .admin-api-key-status {
    justify-self: start;
  }

  .admin-api-key-create-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.admin-permission-table {
  min-width: 980px;
}

.admin-permission-table thead th {
  height: 48px;
  padding: 11px 14px;
  border-bottom: 1px solid #dfe6f1;
  background: #f4f6fa;
  color: #53627a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-permission-table tbody td {
  vertical-align: middle;
}

.admin-permission-table th:first-child,
.admin-permission-table td:first-child {
  text-align: left;
}

.admin-permission-table th:not(:first-child),
.admin-permission-table td:not(:first-child) {
  text-align: center;
}

.admin-permission-table .admin-checkbox.compact {
  justify-content: center;
}

.admin-access-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.45fr 0.9fr;
  gap: 8px;
  align-items: center;
}

.admin-publish-grid {
  grid-template-columns: 1fr 1fr 1.45fr 1.35fr 0.7fr 0.7fr 0.9fr;
}

.admin-access-grid-head {
  padding: 0 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-shell.admin-app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  padding-top: 64px;
  background: #fbfcff;
}

.admin-shell.admin-app-shell .admin-main::before,
.admin-shell.admin-app-shell .admin-main::after {
  display: none;
}

.admin-global-topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 64px;
  align-items: center;
  gap: 16px;
  padding: 0 20px 0 28px;
  color: #ffffff;
  background: linear-gradient(90deg, #151a33 0%, #1f243f 55%, #151a33 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(15, 20, 40, 0.14);
}

.admin-top-brand {
  display: flex;
  width: 210px;
  height: 64px;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
}

.admin-top-brand::before {
  display: block;
  width: 356px;
  height: 84px;
  background: url("../../images/main_logo_darkbg.png") left center / contain no-repeat;
  content: "";
}

.admin-top-brand .admin-brand-mark,
.admin-top-brand strong {
  display: none;
}

.admin-brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
}

.admin-refresh-button,
.admin-top-icon,
.admin-admin-menu,
.admin-top-home,
.admin-top-create {
  display: grid;
  height: 36px;
  place-items: center;
  border: 0;
  color: #e9edff;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.admin-refresh-button,
.admin-top-icon {
  display: none !important;
}

.admin-refresh-button {
  width: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 24px;
}

.admin-global-search {
  display: flex;
  width: min(340px, 24vw);
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: #aab2d8;
}

.admin-global-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.admin-global-search input::placeholder {
  color: #aab2d8;
}

.admin-top-spacer {
  flex: 1;
}

.admin-top-note {
  overflow: hidden;
  max-width: 220px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-upgrade-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 220px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-top-create + .admin-upgrade-link,
.admin-upgrade-link + .admin-admin-menu {
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.admin-top-create + .admin-upgrade-link {
  border-left: 0;
  color: #9b6cff;
}

.admin-top-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.24);
}

.admin-admin-menu {
  min-width: 0;
  max-width: 180px;
  justify-content: flex-start;
  padding: 0 0 0 2px;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-top-home {
  width: 36px;
  margin-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
}

.admin-top-home svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-top-home:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.admin-top-create {
  width: 38px;
  border-radius: 7px;
  background: linear-gradient(180deg, #8650ff, #6d35f4);
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(111, 56, 255, 0.30);
}

.admin-top-icon {
  width: 28px;
  font-size: 17px;
}

.admin-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.admin-user-tools {
  position: relative;
  display: grid;
  place-items: center;
}

.admin-setup-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #9b6cff;
  background: transparent;
  cursor: pointer;
}

.admin-setup-button:hover,
.admin-user-tools.is-open .admin-setup-button {
  color: #ffffff;
  background: linear-gradient(180deg, #8650ff, #6d35f4);
}

.admin-setup-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.admin-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 172px;
  padding: 7px;
  border: 1px solid #dce4f2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(24, 35, 66, 0.16);
}

.admin-user-tools.is-open .admin-user-dropdown {
  display: grid;
}

.admin-user-dropdown a {
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  color: #25314c;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.admin-user-dropdown a:hover {
  background: #f2f5fb;
  color: #0f5bff;
}

.admin-help-link {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid #d8cfff;
  border-radius: 9px;
  color: #6f38ff;
  background: #f7f3ff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.admin-help-link:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #8650ff, #6d35f4);
}

.admin-help-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 24, 48, 0.46);
}

.admin-help-modal.is-open {
  display: grid;
}

.admin-help-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 26px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(24, 35, 66, 0.28);
}

.admin-help-dialog h2 {
  margin: 0 0 8px;
  color: #10213d;
  font-size: 22px;
}

.admin-help-dialog p {
  margin: 0 0 18px;
  color: #5f6b83;
  line-height: 1.55;
}

.admin-help-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #6f38ff;
  background: #f7f3ff;
  font-size: 22px;
  cursor: pointer;
}

.admin-shell.admin-app-shell .admin-sidebar {
  padding: 18px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 10px 0 32px rgba(27, 36, 65, 0.05);
}

.admin-shell.admin-app-shell .admin-brand {
  display: none;
}

.admin-shell.admin-app-shell .admin-sidebar nav {
  gap: 6px;
}

.admin-shell.admin-app-shell .admin-sidebar nav a,
.admin-shell.admin-app-shell .admin-logout {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  border-radius: 7px;
  color: #39435d;
  font-size: 14px;
  font-weight: 750;
}

.admin-shell.admin-app-shell .admin-sidebar nav a.active,
.admin-shell.admin-app-shell .admin-sidebar nav a:hover {
  color: #6f38ff;
  background: #efe8ff;
}

.admin-nav-parent b {
  margin-left: auto;
  font-size: 12px;
}

.admin-subnav {
  display: grid;
  gap: 3px;
  margin: -2px 0 16px;
  padding-left: 28px;
}

.admin-subnav:not(.is-expanded) {
  display: none;
}

.admin-subnav a {
  min-height: 32px !important;
  padding-left: 14px !important;
  font-size: 13px !important;
}

.admin-subnav a span {
  margin-left: auto;
}

.admin-subnav-group {
  display: grid;
  gap: 3px;
}

.admin-subnav-group-title {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  padding: 0 12px 0 14px;
  color: #59647b;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-align: left;
  text-transform: uppercase;
}

.admin-subnav-group-title.active {
  color: #6f38ff;
}

.admin-subnav-group-links {
  display: none;
  gap: 3px;
  padding-left: 12px;
}

.admin-subnav-group.is-expanded .admin-subnav-group-links {
  display: grid;
}

.admin-subnav-group-links a {
  min-height: 30px !important;
  padding-left: 18px !important;
  font-size: 12px !important;
}

.admin-shell.admin-app-shell .admin-main {
  gap: 18px;
  padding: 24px 26px;
}

.admin-shell.admin-app-shell .admin-topbar {
  margin: -4px 0 2px;
}

.admin-shell.admin-app-shell .admin-topbar h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #151a33;
  font-size: 24px;
  font-weight: 900;
}

.admin-shell.admin-app-shell .admin-topbar p {
  margin: 2px 0 0;
  color: #68718b;
  font-size: 14px;
}

.admin-shell.admin-app-shell .admin-user {
  display: none;
}

.admin-help-link {
  color: #4c5874;
  font-size: 13px;
  font-weight: 750;
}

.admin-event-tabs {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  min-height: 42px;
  border-bottom: 1px solid #e6eaf2;
}

.admin-event-tabs button {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #22283d;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.admin-event-tabs a {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid transparent;
  color: #22283d;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.admin-event-tabs button.active {
  color: #6f38ff;
  border-color: #7b4dff;
}

.admin-event-tabs a.active {
  color: #6f38ff;
  border-color: #7b4dff;
}

.admin-event-tabs strong {
  display: grid;
  min-width: 32px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #6f38ff;
  background: #efe8ff;
  font-size: 12px;
}

.admin-shell.admin-app-shell .admin-table-tools {
  justify-content: flex-end;
  gap: 12px;
  margin-top: -56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-shell.admin-app-shell .admin-table-tools .outline-button,
.admin-shell.admin-app-shell .admin-table-tools .primary-button {
  min-height: 44px;
  border-radius: 6px;
}

.admin-shell.admin-app-shell .admin-table-tools .outline-button {
  color: #22283d;
  border-color: #dfe4ee;
  background: #ffffff;
}

.admin-shell.admin-app-shell .admin-table-tools .primary-button {
  min-width: 130px;
  background: linear-gradient(180deg, #874fff, #6e38ee);
  box-shadow: 0 10px 22px rgba(111, 56, 255, 0.25);
}

.admin-more-button {
  min-width: 44px;
  padding: 0 !important;
}

.admin-page-size-control {
  display: none !important;
}

.admin-shell.admin-app-shell .admin-table-wrap {
  margin-top: 12px;
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(21, 26, 51, 0.04);
}

.admin-shell.admin-app-shell .admin-events-table {
  min-width: 1280px;
  border: 0;
}

.admin-shell.admin-app-shell .admin-table th {
  height: 54px;
  padding: 0 18px;
  background: #ffffff;
  color: #68718b;
  font-size: 12px;
  letter-spacing: 0;
}

.admin-shell.admin-app-shell .admin-table td {
  height: 70px;
  padding: 10px 18px;
  vertical-align: middle;
}

.admin-event-identity {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.admin-event-identity img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  background: #f0f2f7;
}

.admin-event-name a {
  color: #1f2942;
  font-size: 14px;
  font-weight: 900;
}

.admin-app-shell .admin-event-identity {
  grid-template-columns: 48px minmax(260px, 1fr);
}

.admin-app-shell .admin-event-identity > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-app-shell .admin-event-name a {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.admin-event-name span,
.admin-date-cell span,
.admin-club-cell span,
.admin-entry-cell span {
  color: #69748e;
  font-size: 13px;
  font-weight: 650;
}

.admin-date-cell strong,
.admin-club-cell strong,
.admin-entry-cell strong {
  color: #20283d;
  font-size: 14px;
  font-weight: 900;
}

.admin-entry-cell strong,
.admin-entry-cell span {
  display: inline !important;
}

.admin-actions-cell {
  white-space: nowrap;
}

.admin-actions-cell a,
.admin-actions-cell button,
.admin-actions-cell .admin-action-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  color: #59647d;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.admin-shell.admin-app-shell .status-pill {
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px !important;
}

.status-neutral {
  color: #59647d !important;
  border-color: #d6dbe5;
  background: #f8f9fc;
}

.admin-shell.admin-app-shell .admin-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 18px 0 0;
}

.admin-shell.admin-app-shell .admin-pagination-status {
  justify-self: start;
  color: #59647d;
  font-size: 13px;
}

.admin-shell.admin-app-shell .admin-pagination button,
.admin-shell.admin-app-shell .admin-pagination span[data-admin-page-label] {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e0e5ef;
  border-radius: 6px;
  background: #ffffff;
}

.admin-filter-popover {
  top: 150px;
}

.admin-shell.admin-app-shell .admin-dashboard-stats {
  gap: 14px;
}

.admin-shell.admin-app-shell .admin-dashboard-stats article {
  min-height: 116px;
  border-radius: 10px;
}

.admin-shell.admin-app-shell .admin-dashboard-stats i {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  font-size: 12px;
}

.admin-mini-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 12px 12px 4px;
}

.admin-mini-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: #59647d;
  background: #eef1f7;
  font-size: 13px;
  font-weight: 850;
}

.admin-mini-tabs button.active {
  color: #6f38ff;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #b99dff;
}

.admin-dashboard-grid-wide {
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.75fr);
}

.admin-category-board,
.admin-calendar-board,
.admin-system-log-board {
  min-height: 260px;
}

.admin-system-log-list {
  display: grid;
  gap: 9px;
}

.admin-system-log-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 84px 110px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #edf1f7;
  border-radius: 9px;
  background: #fbfdff;
}

.admin-system-log-item div {
  min-width: 0;
}

.admin-system-log-item a {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-system-log-item small,
.admin-system-log-item time,
.admin-system-log-item em {
  color: #68758f;
  font-size: 11px;
  font-style: normal;
  font-weight: 620;
}

.admin-system-log-item small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-system-log-item time,
.admin-system-log-item em {
  text-align: right;
}

.admin-dashboard-side .admin-system-log-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: start;
}

.admin-dashboard-side .admin-system-log-item > .status-pill {
  grid-column: 1;
  justify-self: start;
}

.admin-dashboard-side .admin-system-log-item > div {
  grid-column: 1 / -1;
  width: 100%;
}

.admin-dashboard-side .admin-system-log-item a,
.admin-dashboard-side .admin-system-log-item small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.admin-dashboard-side .admin-system-log-item time {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.admin-dashboard-side .admin-system-log-item em {
  grid-column: 1 / -1;
  text-align: right;
}

@media (max-width: 1100px) {
  .admin-system-log-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .admin-system-log-item time,
  .admin-system-log-item em {
    text-align: left;
  }
}

.admin-category-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 40px;
  gap: 14px;
  align-items: center;
  min-height: 44px;
}

.admin-category-row span {
  display: inline-grid;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #2d7d5c;
  background: #eaf9f0;
  font-weight: 850;
}

.admin-category-row i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f6;
}

.admin-category-row b {
  display: flex;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: transparent;
}

.admin-category-row em {
  display: block;
  height: 100%;
  min-width: 3px;
  font-style: normal;
}

.admin-category-row em.ranking {
  background: #6f38ff;
}

.admin-category-row em.non-ranking {
  background: #9db2d7;
}

.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  text-align: center;
}

.admin-calendar-grid span {
  color: #8a94aa;
  font-size: 11px;
  font-weight: 900;
}

.admin-calendar-grid b {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #2d344d;
  font-size: 13px;
}

.admin-calendar-grid b.today {
  color: #6f38ff;
  background: #efe8ff;
}

/* Reference admin frame overrides. Keep these last so older admin styles do not leak through. */
.admin-app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
  padding-top: 64px;
  background: #fbfcff;
}

.admin-app-shell .admin-global-topbar {
  height: 64px;
}

.admin-app-shell .admin-sidebar {
  min-height: calc(100vh - 64px);
  padding: 18px 14px 24px;
  overflow: auto;
  border-right: 1px solid #eef1f7;
  background: #ffffff;
}

.admin-app-shell .admin-main {
  min-width: 0;
  padding: 24px 26px;
  overflow: hidden;
}

.admin-app-shell .admin-topbar {
  min-height: 52px;
  margin: 0;
}

.admin-app-shell .admin-topbar h1 {
  margin: 0;
  color: #151a33;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

.admin-app-shell .admin-topbar p {
  margin: 4px 0 0;
  color: #69748e;
  font-size: 14px;
}

.admin-events-panel {
  display: grid;
  gap: 0;
  position: relative;
}

.admin-events-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 56px 18px;
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #ffffff;
  color: #26314c;
  text-align: center;
}

.admin-events-loading[hidden] {
  display: none !important;
}

.admin-events-loading small {
  color: #6d7892;
  font-size: 13px;
}

.admin-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e6ebf5;
  border-top-color: #6f45ee;
  border-radius: 50%;
  animation: admin-spin 0.8s linear infinite;
}

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

.admin-events-panel[data-events-loading] .admin-table-wrap,
.admin-events-panel[data-events-loading] .admin-pagination {
  display: none;
}

.admin-events-commandbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  min-height: 54px;
  border-bottom: 1px solid #e5eaf3;
}

.admin-events-commandbar .admin-event-tabs {
  min-width: 0;
  border-bottom: 0;
}

.admin-app-shell .admin-events-commandbar .admin-table-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
}

.admin-app-shell .admin-events-commandbar .admin-table-tools .outline-button,
.admin-app-shell .admin-events-commandbar .admin-table-tools .primary-button {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 6px;
  white-space: nowrap;
}

.admin-app-shell .admin-events-commandbar .admin-table-tools .outline-button {
  color: #22283d;
  border-color: #dfe4ee;
  background: #ffffff;
}

.admin-app-shell .admin-events-commandbar .admin-table-tools .primary-button {
  color: #ffffff;
  background: linear-gradient(180deg, #874fff, #6e38ee);
}

.admin-events-commandbar .admin-toggle-control,
.admin-events-commandbar .admin-page-size-control {
  display: none !important;
}

.admin-event-quick-filters {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 12px 0 2px;
  border-bottom: 1px solid #e5eaf3;
}

.admin-event-quick-filter {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.admin-event-quick-filter:first-child {
  flex: 0 1 auto;
}

.admin-event-quick-filter:last-child {
  flex: 0 1 auto;
}

.admin-event-club-visibility {
  margin-left: auto;
}

.admin-event-quick-filter[hidden] {
  display: none !important;
}

.admin-event-quick-label {
  width: auto;
  flex: 0 0 auto;
  color: #69748e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-event-quick-buttons {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-event-quick-buttons button {
  min-width: 38px;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid #dfe4ee;
  border-radius: 999px;
  color: #4f5970;
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.admin-event-quick-buttons button:hover {
  border-color: #c8c0fa;
  color: #6557dc;
  background: #f8f6ff;
}

.admin-event-quick-buttons button.active {
  border-color: #d9d2ff;
  color: #6557dc;
  background: #f2efff;
  box-shadow: inset 0 0 0 1px rgba(101, 87, 220, .08);
}

.admin-event-quick-buttons button[hidden] {
  display: none !important;
}

.admin-app-shell .admin-table-wrap {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #ffffff;
}

.admin-app-shell .admin-table {
  min-width: 100%;
  border-collapse: collapse;
}

.admin-app-shell .admin-table th {
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid #e4e9f2;
  background: #f6f8fb;
  color: #68718b;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-app-shell .admin-table td {
  height: 70px;
  padding: 10px 18px;
  border-bottom: 1px solid #e8edf5;
  background: #ffffff;
  color: #20283d;
  vertical-align: middle;
}

.admin-app-shell .admin-membership-table-wrap {
  margin-top: 10px;
}

.admin-app-shell .admin-membership-table {
  min-width: 0;
}

.admin-app-shell .admin-membership-table th {
  height: 36px;
  padding: 0 12px;
  font-size: 11px;
}

.admin-app-shell .admin-membership-table td {
  height: 40px;
  padding: 6px 12px;
}

.admin-app-shell .admin-membership-table th:last-child,
.admin-app-shell .admin-membership-table td:last-child {
  width: 220px;
}

.admin-boats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

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

.admin-app-shell .admin-events-table.admin-member-boats-table {
  min-width: 680px;
}

.admin-app-shell .admin-member-boats-table th {
  height: 36px;
  padding: 0 10px;
  font-size: 10px;
}

.admin-app-shell .admin-member-boats-table td {
  height: 42px;
  padding: 6px 10px;
  font-size: 13px;
}

.admin-boat-add-form {
  border-left: 1px solid #e4e9f2;
  padding-left: 22px;
}

.admin-boat-add-form h3 {
  margin: 0 0 14px;
  color: #20283d;
  font-size: 15px;
}

.admin-boat-add-form .admin-form-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-boat-add-form .primary-button {
  margin-top: 14px;
}

@media (max-width: 1050px) {
  .admin-boats-layout {
    grid-template-columns: 1fr;
  }

  .admin-boat-add-form {
    border-top: 1px solid #e4e9f2;
    border-left: 0;
    padding-top: 20px;
    padding-left: 0;
  }
}

.admin-app-shell .admin-events-table {
  min-width: 1180px;
  border: 0;
}

.admin-actions-cell a,
.admin-actions-cell button,
.admin-actions-cell .admin-action-icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  color: #59647d;
  font-size: 12px;
}

.admin-actions-cell svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-actions-cell svg circle {
  fill: currentColor;
  stroke: none;
}

.admin-actions-cell .status-complete {
  color: #159447;
}

.admin-app-shell .admin-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 18px 0 0;
}

.admin-app-shell .admin-dashboard-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.admin-app-shell .admin-board,
.admin-app-shell .admin-stats article {
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(21, 26, 51, 0.04);
}

.admin-app-shell .admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
  gap: 16px;
}

@media (max-width: 1180px) {
  .admin-app-shell {
    grid-template-columns: 1fr;
  }

  .admin-app-shell .admin-sidebar {
    min-height: 0;
  }

  .admin-events-commandbar,
  .admin-app-shell .admin-dashboard-grid,
  .admin-app-shell .admin-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .admin-events-commandbar .admin-table-tools {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .admin-event-quick-filters {
    display: grid;
    gap: 8px;
  }

  .admin-event-quick-filter {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-event-club-visibility {
    margin-left: 0;
  }

  .admin-event-quick-label {
    width: auto;
    flex-basis: auto;
  }
}

/* Two-step event filter dropdowns. */
.admin-app-shell .admin-filter-popover {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: auto;
  width: 520px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-app-shell .admin-filter-popover[hidden] {
  display: none !important;
}

.admin-app-shell .admin-filter-popover-head {
  display: none;
}

.admin-app-shell .admin-filter-builder {
  display: block;
  min-height: 0;
}

.admin-app-shell .admin-filter-fields,
.admin-app-shell .admin-filter-options {
  position: absolute;
  top: 0;
  display: grid;
  align-content: start;
  width: max-content;
  min-width: 230px;
  max-width: min(420px, 42vw);
  overflow: visible;
  padding: 6px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(21, 26, 51, 0.16);
}

.admin-app-shell .admin-filter-fields {
  left: 0;
  width: max-content;
  min-width: 230px;
}

.admin-app-shell .admin-filter-options {
  left: 240px;
  width: max-content;
  min-width: 270px;
  max-height: min(620px, calc(100vh - 96px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-app-shell .admin-filter-options::after {
  display: block;
  height: 1px;
  content: "";
}

.admin-app-shell .admin-filter-options[hidden] {
  display: none !important;
}

.admin-app-shell .admin-filter-field {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
}

.admin-app-shell .admin-filter-field.active {
  color: #ffffff;
  background: #3f8cff;
}

.admin-app-shell .admin-filter-option {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 6px;
}

.admin-columns-popover {
  position: fixed;
  z-index: 50;
  width: max-content;
  min-width: 320px;
  max-width: min(460px, 44vw);
  padding: 8px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(21, 26, 51, 0.16);
}

.admin-more-popover {
  position: fixed;
  z-index: 50;
  width: min(560px, calc(100vw - 24px));
  min-width: min(560px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(21, 26, 51, 0.16);
}

.admin-more-popover[hidden] {
  display: none !important;
}

.admin-more-popover .admin-filter-builder {
  display: block;
  min-height: 0;
}

.admin-more-popover .admin-filter-fields,
.admin-more-popover .admin-filter-options {
  position: absolute;
  top: 0;
  display: grid;
  align-content: start;
  padding: 8px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(21, 26, 51, 0.16);
}

.admin-more-popover .admin-filter-fields {
  left: 0;
  width: 230px;
}

.admin-more-popover .admin-filter-options {
  left: 240px;
  width: min(320px, calc(100vw - 278px));
  min-width: min(300px, calc(100vw - 278px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: auto;
}

.admin-more-popover.open-left .admin-filter-fields {
  right: 0;
  left: auto;
}

.admin-more-popover.open-left .admin-filter-options {
  right: 240px;
  left: auto;
}

.admin-more-popover .admin-filter-options[hidden] {
  display: none !important;
}

.admin-export-option {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.admin-columns-popover[hidden] {
  display: none !important;
}

.admin-columns-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 6px 8px;
  border-bottom: 1px solid #edf1f7;
}

.admin-columns-head button,
.admin-column-option button {
  border: 0;
  border-radius: 5px;
  background: #f3f5fa;
  color: #44506a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.admin-columns-head button {
  padding: 6px 8px;
}

.admin-columns-list {
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.admin-column-option {
  display: grid;
  grid-template-columns: 24px minmax(180px, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: grab;
}

.admin-column-option:hover {
  background: #f8faff;
}

.admin-column-option.dragging {
  opacity: 0.55;
}

.admin-column-option.drag-over {
  box-shadow: inset 0 0 0 2px #8f62ff;
}

.admin-column-drag {
  min-width: 24px;
  padding: 0 !important;
  color: #9aa4b8 !important;
  background: transparent !important;
  cursor: grab;
}

.admin-column-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2c354f;
  font-size: 13px;
  font-weight: 800;
}


@media (max-width: 1180px) {
  .admin-app-shell .admin-filter-popover {
    position: fixed;
  }

  .admin-app-shell .admin-filter-fields,
  .admin-app-shell .admin-filter-options {
    position: static;
    width: min(320px, calc(100vw - 52px));
  }

  .admin-app-shell .admin-filter-options {
    margin-top: 8px;
  }
}

@media (max-width: 1180px) {
  .admin-login-shell,
  .admin-shell,
  .admin-stats,
  .admin-dashboard-stats,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-shell {
    min-height: 0;
  }

  .admin-login-visual {
    min-height: 340px;
  }

  .admin-sidebar {
    grid-template-rows: auto auto auto;
  }

  .admin-filter-popover {
    width: min(600px, calc(100vw - 36px));
  }
}

@media (max-width: 760px) {
  .admin-login-page {
    padding: 12px;
  }

  .admin-login-shell {
    border-radius: 12px;
  }

  .admin-login-visual,
  .admin-login-card,
  .admin-main {
    padding: 26px;
  }

  .admin-login-visual {
    min-height: 280px;
  }

  .admin-login-visual h1 {
    font-size: 34px;
  }

  .login-proof-grid,
  .admin-event-list article,
  .admin-event-filters,
  .admin-filter-builder,
  .admin-event-core-grid,
  .admin-event-type-grid,
  .admin-event-venue-grid,
  .admin-event-schedule-grid,
  .admin-event-contact-grid,
  .admin-anzam-layout,
  .admin-form-grid,
  .admin-access-grid,
  .admin-publish-grid {
    grid-template-columns: 1fr;
  }

  .login-card-footer,
  .admin-topbar,
  .admin-board-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final event table header alignment override. */
.admin-app-shell .admin-table-wrap .admin-events-table thead th {
  position: relative !important;
  height: 54px !important;
  padding: 0 18px !important;
  border-bottom: 1px solid #e1e6ef !important;
  background: #f4f6fa !important;
  color: #68718b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: left !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.admin-app-shell .admin-table-wrap .admin-events-table thead tr {
  background: #f4f6fa !important;
}

.admin-column-resizer {
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  width: 7px;
  cursor: col-resize;
}

.admin-column-resizer::after {
  position: absolute;
  top: 0;
  right: 3px;
  width: 1px;
  height: 100%;
  background: #d8dee9;
  content: "";
  opacity: 0;
}

.admin-column-resizer:hover::after,
.is-resizing-column .admin-column-resizer::after {
  opacity: 1;
}

.is-resizing-column {
  cursor: col-resize;
  user-select: none;
}

.admin-event-venue-grid {
  grid-template-columns: 1.1fr 1.2fr 0.7fr 0.8fr;
}

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

.admin-results-grid {
  grid-template-columns: repeat(2, minmax(180px, 260px));
}

.admin-results-upload-panel {
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 12% 20%, rgba(112, 80, 255, 0.1), transparent 28%);
}

.admin-results-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.admin-results-upload-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: #536278;
  font-size: 12px;
  font-weight: 700;
}

[data-bank-deposit-fields][hidden] {
  display: none !important;
}

.admin-results-dropzone {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 98px;
  align-items: center;
  padding: 18px 20px;
  border: 1px dashed #b9c9df;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  color: #536278;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.admin-results-dropzone:hover,
.admin-results-dropzone:focus-within {
  border-color: #7b61ff;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(62, 46, 126, 0.08);
}

.admin-results-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-results-upload-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: #4b20d9;
  background: #eee9ff;
}

.admin-results-upload-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-results-upload-copy {
  display: grid;
  gap: 4px;
}

.admin-results-upload-copy strong {
  color: #17243a;
  font-size: 15px;
  font-weight: 650;
}

.admin-results-upload-copy small {
  color: #68758d;
  font-size: 12px;
  font-weight: 450;
}

.admin-results-upload-copy em {
  color: #4b20d9;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.admin-results-file-types {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.admin-results-file-types b {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #dfe6f2;
  border-radius: 999px;
  color: #52617a;
  background: #f8fbff;
  font-size: 11px;
  font-weight: 700;
}

.admin-results-viewer {
  overflow: visible;
}

.admin-results-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.admin-results-updated {
  color: #68758d;
  font-size: 12px;
  font-weight: 500;
}

.admin-results-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.admin-results-legend span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #e1e8f2;
  border-radius: 999px;
  color: #56647a;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 500;
}

.admin-results-legend b,
.admin-results-name b {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #4b20d9;
  background: #eee9ff;
  font-size: 10px;
  font-weight: 750;
}

.admin-results-content {
  display: grid;
  gap: 18px;
}

.admin-results-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.admin-results-metrics[hidden] {
  display: none;
}

.admin-results-metrics span {
  display: grid;
  gap: 3px;
  min-height: 68px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  color: #66748a;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  font-size: 12px;
  font-weight: 550;
}

.admin-results-metrics strong {
  color: #17243a;
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
}

.admin-results-fleet {
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(21, 35, 58, 0.045);
}

.admin-results-fleet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #e8eef6;
  background: linear-gradient(180deg, #fbfcff, #f6f8fc);
}

.admin-results-fleet-header h3 {
  margin: 0;
  color: #111c34;
  font-size: 16px;
  font-weight: 650;
}

.admin-results-fleet-header span {
  color: #68758d;
  font-size: 12px;
  font-weight: 500;
}

.admin-results-table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: #c7d2e4 #f4f7fb;
}

.admin-live-results-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-live-results-table th,
.admin-live-results-table td {
  min-width: 54px;
  padding: 10px 9px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  color: #24314a;
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.25;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-live-results-table th {
  height: 42px;
  color: #59667a;
  background: #f2f5fa;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.admin-live-results-table th:nth-child(1),
.admin-live-results-table td:nth-child(1) {
  width: 42px;
  min-width: 42px;
}

.admin-live-results-table th:nth-child(2),
.admin-live-results-table td:nth-child(2) {
  width: 58px;
  min-width: 58px;
}

.admin-live-results-table th:nth-child(3),
.admin-live-results-table td:nth-child(3) {
  width: 250px;
  min-width: 250px;
  text-align: left;
}

.admin-live-results-table th:nth-child(4),
.admin-live-results-table td:nth-child(4) {
  width: 160px;
  min-width: 160px;
  text-align: left;
}

.admin-live-results-table th:nth-child(5),
.admin-live-results-table td:nth-child(5),
.admin-live-results-table th:nth-child(6),
.admin-live-results-table td:nth-child(6) {
  width: 62px;
  min-width: 62px;
}

.admin-live-results-table tbody tr:hover {
  background: #f7fbff;
}

.admin-live-results-table td small,
.admin-results-sail small,
.admin-results-name small {
  display: block;
  margin-top: 3px;
  color: #6b768a;
  font-size: 11px;
  font-weight: 450;
}

.admin-results-name {
  position: relative;
}

.admin-results-name strong,
.admin-results-sail strong {
  color: #152440;
  font-weight: 600;
}

.admin-results-name b {
  margin-left: 7px;
}

.admin-results-flag {
  width: 18px;
  height: 12px;
  margin-right: 5px;
  vertical-align: -1px;
}

.admin-results-move span,
.admin-results-move small {
  display: block;
}

.admin-results-move span {
  font-size: 14px;
  line-height: 1;
}

.admin-results-move small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 650;
}

.admin-results-move.move-up {
  color: #16834a;
}

.admin-results-move.move-down {
  color: #c43636;
}

.admin-results-move.move-same {
  color: #9aa3b2;
}

.admin-live-results-table .score-first {
  color: #b78300;
  font-weight: 750;
}

.admin-live-results-table td > span {
  display: block;
}

.admin-live-results-table .is-final-race {
  background: #fbfcfe;
}

.admin-results-fleet.fleet-gold .admin-results-fleet-header {
  border-top: 3px solid #f0c63b;
}

.admin-results-fleet.fleet-silver .admin-results-fleet-header {
  border-top: 3px solid #b9c2d0;
}

.admin-results-fleet.fleet-bronze .admin-results-fleet-header,
.admin-results-fleet.fleet-copper .admin-results-fleet-header {
  border-top: 3px solid #c07a3f;
}

.admin-results-fleet.fleet-alloy .admin-results-fleet-header {
  border-top: 3px solid #9ca7b7;
}

@media (max-width: 900px) {
  .admin-results-upload-form {
    grid-template-columns: 1fr;
  }

  .admin-results-upload-form .primary-button {
    width: 100%;
  }

  .admin-results-dropzone {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-results-file-types {
    grid-column: 1 / -1;
  }

  .admin-results-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-results-metrics {
    grid-template-columns: 1fr;
  }
}

.admin-protest-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-protest-table td {
  vertical-align: middle;
}

.admin-protest-table td strong,
.admin-protest-table td span,
.admin-protest-table td small {
  display: block;
}

.admin-protest-table td small {
  margin-top: 4px;
  color: #7a8599;
  font-size: 11.5px;
  font-weight: 400;
}

.admin-protest-table .admin-protest-received {
  white-space: nowrap;
}

.admin-protest-table .admin-protest-received span {
  color: #59647d;
  font-size: 12.5px;
  font-weight: 400;
}

.admin-protest-committee-table {
  min-width: 1180px;
}

.admin-protest-committee-table td {
  vertical-align: middle;
}

.admin-protest-committee-table .admin-table-input {
  min-width: 160px;
  font-weight: 400;
}

.admin-protest-committee-table td:first-child .admin-table-input {
  min-width: 280px;
}

.admin-committee-alert-options {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.status-lodged {
  color: #8a5a00;
  border-color: #f1d391;
  background: #fff8e8;
}

.status-scheduled {
  color: #315bb6;
  border-color: #c4d7ff;
  background: #eef4ff;
}

.status-hearing-in-progress {
  color: #6b3dd2;
  border-color: #d9caff;
  background: #f5f1ff;
}

.status-hearing-complete,
.status-published-abstract,
.status-published-full {
  color: #18834c;
  border-color: #b7e4cc;
  background: #effaf4;
}

.status-withdrawn,
.status-invalid,
.status-archived {
  color: #687388;
  border-color: #dce2ea;
  background: #f5f7fa;
}

.admin-protest-heading {
  align-items: flex-end;
}

.admin-protest-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-protest-tabs {
  margin-bottom: 18px;
}

.admin-protest-form {
  display: grid;
  gap: 18px;
}

.admin-protest-tab-panel {
  display: grid;
  gap: 18px;
}

.admin-protest-tab-panel[hidden] {
  display: none !important;
}

.admin-protest-status-bar {
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 18px 20px;
}

.admin-protest-form label {
  display: grid;
  gap: 6px;
  color: #5d6980;
  font-size: 12px;
  font-weight: 500;
}

.admin-protest-form input,
.admin-protest-form select,
.admin-protest-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid #bfd0e8;
  border-radius: 7px;
  color: #26334f;
  background: #fff;
  font: inherit;
  font-weight: 400;
  box-shadow: none;
  outline: 0;
}

.admin-protest-form input:focus,
.admin-protest-form select:focus,
.admin-protest-form textarea:focus {
  border-color: #7248e8;
}

.admin-protest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-protest-decision-grid {
  grid-template-columns: 1fr;
}

.admin-protest-facts,
.admin-protest-rule-field,
.admin-protest-panel-selection {
  padding: 16px;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  background: #fbfcfe;
}

.admin-protest-decision-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.admin-protest-decision-heading > div {
  display: grid;
  gap: 3px;
}

.admin-protest-decision-heading span {
  color: #25304a;
  font-size: 13px;
  font-weight: 700;
}

.admin-protest-decision-heading small {
  color: #778197;
  font-size: 11.5px;
  font-weight: 400;
}

.admin-protest-fact-list {
  display: grid;
  gap: 8px;
}

.admin-protest-form .admin-protest-fact-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: start;
}

.admin-protest-fact-row > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-top: 5px;
  border-radius: 50%;
  color: #6b3dd2;
  font-size: 12px;
  font-weight: 700;
  background: #f0ebff;
}

.admin-protest-fact-row textarea {
  min-height: 54px;
  resize: vertical;
}

.admin-protest-fact-row button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  margin-top: 6px;
  padding: 0;
  border: 1px solid #ded6ef;
  border-radius: 5px;
  color: #7b668d;
  font-size: 16px;
  background: #fff;
  cursor: pointer;
}

.admin-protest-rule-search {
  position: relative;
}

.admin-protest-rule-suggestions {
  position: absolute;
  z-index: 35;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #d9dfea;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(22, 30, 55, 0.15);
}

.admin-protest-rule-suggestions button {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  color: #26334f;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.admin-protest-rule-suggestions button:hover {
  background: #f5f2ff;
}

.admin-protest-rule-suggestions strong {
  color: #6b3dd2;
}

.admin-protest-rule-suggestions span {
  font-weight: 400;
}

.admin-protest-selected-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.admin-protest-selected-rules > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 4px 7px 4px 10px;
  border: 1px solid #d9d0f8;
  border-radius: 999px;
  color: #5130a8;
  font-size: 11.5px;
  background: #f6f3ff;
}

.admin-protest-selected-rules button {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #6845b8;
  background: #e8e0ff;
  cursor: pointer;
}

.admin-protest-panel-list {
  display: grid;
  gap: 7px;
}

.admin-protest-panel-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 16px;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #e2e6ee;
  border-radius: 7px;
  background: #fff;
}

.admin-protest-form .admin-protest-panel-list .admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-protest-panel-list .admin-checkbox span {
  display: grid;
  gap: 2px;
}

.admin-protest-panel-list strong {
  color: #26334f;
  font-size: 12.5px;
  font-weight: 600;
}

.admin-protest-panel-list small {
  color: #7a8498;
  font-size: 11px;
  font-weight: 400;
}

.admin-protest-form .admin-protest-chair-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6b3dd2;
  font-weight: 600;
}

.admin-protest-chair-choice input {
  width: 16px;
  min-height: 16px;
  accent-color: #7248e8;
}

.admin-form-span-2 {
  grid-column: 1 / -1;
}

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

.admin-protest-checks label {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid #e1e7f0;
  border-radius: 7px;
  color: #35425d;
  background: #fafbfe;
}

.admin-protest-checks input,
.admin-protest-form .admin-checkbox input {
  width: 16px;
  min-height: 16px;
  flex: 0 0 auto;
  accent-color: #7248e8;
}

.admin-protest-email-action,
.admin-publication-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #ded6fa;
  border-radius: 8px;
  background: #faf8ff;
}

.admin-protest-publication-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.admin-protest-publication-actions button {
  white-space: nowrap;
}

.admin-protest-attachment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px dashed #bcaeea;
  border-radius: 8px;
  background: #faf9ff;
}

.admin-protest-attachment-panel p {
  margin: 4px 0 0;
  color: #6e7990;
}

.admin-protest-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-protest-attachment-list a {
  padding: 7px 10px;
  border: 1px solid #ded6fa;
  border-radius: 6px;
  color: #6840d6;
  background: #faf8ff;
  font-size: 12px;
}

.admin-protest-email-action p,
.admin-publication-note p {
  margin: 4px 0 0;
  color: #6b7690;
  font-size: 12.5px;
}

.admin-section-subheading {
  margin: 24px 0 8px;
  color: #263652;
  font-size: 14px;
  font-weight: 600;
}

.admin-protest-activity {
  display: grid;
  padding: 4px 22px 22px;
}

.admin-protest-activity article {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #e8edf4;
}

.admin-protest-activity article > span {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: #7248e8;
}

.admin-protest-activity p {
  margin: 4px 0;
  color: #637089;
}

.admin-protest-activity small,
.admin-protest-activity time {
  color: #8a94a6;
  font-size: 11.5px;
  font-style: normal;
}

.admin-protest-additional-list {
  display: grid;
  gap: 8px;
}

.admin-protest-additional-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5eaf2;
  border-radius: 7px;
}

.admin-protest-additional-list article div {
  display: grid;
  gap: 3px;
}

.admin-protest-additional-list small {
  color: #7a8599;
}

.admin-protest-witness-panel {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e5e9f1;
}

.admin-protest-witness-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.admin-protest-witness-heading h3 {
  margin: 0 0 4px;
  color: #17213a;
  font-size: 16px;
  font-weight: 700;
}

.admin-protest-witness-heading p {
  margin: 0;
  color: #737d93;
  font-size: 12.5px;
  font-weight: 400;
}

.admin-protest-witness-list {
  display: grid;
  gap: 8px;
}

.admin-protest-witness-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(190px, 1fr) 116px 160px;
  gap: 12px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid #e0e5ef;
  border-radius: 7px;
  background: #fbfcfe;
}

.admin-protest-witness-row label {
  min-width: 0;
}

.admin-protest-witness-search {
  position: relative;
}

.admin-protest-witness-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #d9dfea;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(22, 30, 55, 0.14);
}

.admin-protest-witness-suggestions button {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  color: #20283d;
  text-align: left;
  background: #ffffff;
  cursor: pointer;
}

.admin-protest-witness-suggestions button:last-child {
  border-bottom: 0;
}

.admin-protest-witness-suggestions button:hover {
  background: #f5f2ff;
}

.admin-protest-witness-suggestions strong {
  color: #6b3dd2;
  font-size: 12px;
}

.admin-protest-witness-suggestions span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-protest-witness-source {
  display: flex;
  align-items: center;
  min-height: 39px;
}

.admin-protest-witness-source span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #ddd5fb;
  border-radius: 999px;
  color: #6b3dd2;
  font-size: 11px;
  font-weight: 600;
  background: #f6f3ff;
}

.admin-protest-form .admin-protest-witness-called {
  min-height: 39px;
  align-items: center;
  justify-content: flex-start;
  color: #303951;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .admin-protest-witness-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-protest-witness-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-protest-witness-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-protest-stats,
  .admin-protest-status-bar,
  .admin-protest-grid,
  .admin-protest-checks {
    grid-template-columns: 1fr;
  }

  .admin-protest-email-action,
  .admin-publication-note,
  .admin-protest-attachment-panel,
  .admin-protest-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

.admin-event-workflow {
  position: sticky;
  top: 66px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(21, 26, 51, 0.04);
}

.admin-event-workflow a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  color: #5f6b84;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.admin-event-workflow a:hover,
.admin-event-workflow a.active {
  color: #4b20d9;
  background: #f0ebff;
}

.admin-event-placeholder {
  min-height: 86px;
}

.admin-club-identity-grid {
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1.2fr) minmax(160px, 0.6fr) minmax(240px, 1fr);
}

.admin-club-location-grid {
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 0.62fr) minmax(220px, 0.86fr) minmax(140px, 0.52fr);
}

.admin-club-location-grid label:last-child {
  grid-column: 1 / -1;
}

.admin-club-defaults-grid,
.admin-club-status-grid {
  grid-template-columns: repeat(2, minmax(180px, 260px));
}

.admin-mode-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid #dde5f1;
  border-radius: 10px;
  background: #f6f8fc;
}

.admin-mode-tabs label {
  cursor: pointer;
}

.admin-mode-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-mode-tabs span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: #58657d;
  font-size: 13px;
  font-weight: 600;
}

.admin-mode-tabs input:checked + span {
  color: #4b20d9;
  background: #ebe5ff;
}

.admin-series-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  background: #fbfcff;
}

.admin-series-panel[hidden],
.admin-weekday-row[hidden] {
  display: none !important;
}

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

[data-single-date-section][hidden],
[data-schedule-builder-section][hidden] {
  display: none !important;
}

.admin-weekday-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-weekday-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #ffffff;
  color: #29364f;
  font-size: 13px;
  font-weight: 500;
}

.admin-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.admin-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #ffffff;
  color: #22304d;
  font-size: 13px;
  font-weight: 800;
}

.admin-race-office-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) repeat(2, minmax(250px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.admin-race-office-status,
.admin-race-office-toggle {
  min-height: 118px;
  padding: 16px;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #ffffff;
}

.admin-race-office-status {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-race-office-status small,
.admin-race-office-toggle small {
  color: #6d7890;
  font-size: 12px;
  line-height: 1.45;
}

.admin-race-office-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
}

.admin-race-office-toggle > span {
  display: grid;
  gap: 5px;
}

.admin-race-office-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-race-office-toggle i {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d9deea;
  transition: background 160ms ease;
}

.admin-race-office-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(20, 28, 48, 0.2);
  transition: transform 160ms ease;
}

.admin-race-office-toggle input:checked + i {
  background: #6f42d9;
}

.admin-race-office-toggle input:checked + i::after {
  transform: translateX(20px);
}

.admin-race-office-toggle input:focus-visible + i {
  outline: 3px solid rgba(111, 66, 217, 0.2);
  outline-offset: 2px;
}

.admin-schedule-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.admin-schedule-side {
  display: grid;
  gap: 16px;
}

.admin-board-header.compact {
  padding-bottom: 12px;
}

.admin-schedule-catering {
  display: grid;
  gap: 7px;
  color: #56657e;
  font-size: 12px;
  font-weight: 500;
}

.admin-schedule-catering-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf2f8;
}

.admin-schedule-catering select {
  min-height: 38px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #ffffff;
  color: #26334f;
  font-size: 13px;
  font-weight: 400;
}

.admin-schedule-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-schedule-preview {
  display: grid;
  gap: 14px;
}

.admin-schedule-preview-day {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 18px;
}

.admin-schedule-preview-day::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 8px;
  left: 6px;
  width: 1px;
  background: #c8d7ec;
}

.admin-schedule-preview-day h3 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #0f2850;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 700;
}

.admin-schedule-preview-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0 10px;
  border-bottom: 1px solid #eef2f8;
  color: #26334f;
  font-size: 12.5px;
}

.admin-schedule-preview-item::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -17px;
  width: 7px;
  height: 7px;
  border: 2px solid #1d63ff;
  border-radius: 999px;
  background: #ffffff;
}

.admin-schedule-preview-item strong {
  color: #50617a;
  font-weight: 600;
}

.admin-schedule-catering-preview {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #dfe9f7;
  border-radius: 8px;
  background: #f7fbff;
  color: #26334f;
  font-size: 12.5px;
}

.admin-schedule-catering-preview strong {
  color: #0f2850;
  font-size: 12px;
  font-weight: 700;
}

.admin-empty-state {
  margin: 0;
  color: #6d7892;
  font-size: 13px;
}

.admin-document-meta-grid {
  grid-template-columns: minmax(240px, 1.15fr) minmax(170px, 0.72fr) minmax(200px, 0.82fr) minmax(230px, 1fr) minmax(180px, 0.8fr) auto;
}

.admin-event-document-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.admin-event-sponsor-upload-grid {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.admin-event-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.admin-event-sponsor-card {
  overflow: hidden;
  border: 1px solid #dfe7f3;
  border-radius: 10px;
  background: #fbfdff;
}

.admin-event-sponsor-preview {
  display: grid;
  height: 210px;
  place-items: center;
  padding: 20px;
  border-bottom: 1px solid #dfe7f3;
  background: #f1f5fa;
}

.admin-event-sponsor-preview img {
  display: block;
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
}

.admin-event-sponsor-fields {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-event-sponsor-fields > small {
  color: #6d7892;
}

.admin-danger-button {
  border-color: #d84b5b;
  color: #b62e40;
}

@media (max-width: 900px) {
  .admin-event-sponsor-upload-grid {
    grid-template-columns: 1fr;
  }
}

.admin-document-selection-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dfe7f3;
  border-radius: 8px;
  background: #fbfdff;
}

.admin-document-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.outline-button.disabled {
  pointer-events: none;
  opacity: 0.48;
}

.admin-modal-open {
  overflow: hidden;
}

.admin-document-review-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.admin-document-review-modal[hidden] {
  display: none;
}

.admin-document-review-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 34, 0.58);
  backdrop-filter: blur(4px);
}

.admin-document-review-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, 96vw);
  height: min(860px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(220, 228, 240, 0.85);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(13, 24, 46, 0.28);
}

.admin-document-review-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5ebf4;
  background: #fbfdff;
}

.admin-document-review-panel h2 {
  margin: 0;
  color: #14213d;
  font-size: 20px;
  font-weight: 700;
}

.admin-document-review-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f8fc;
}

.admin-document-image-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 28px;
}

.admin-document-image-modal[hidden] {
  display: none;
}

.admin-document-image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 34, 0.58);
  backdrop-filter: blur(4px);
}

.admin-document-image-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, 96vw);
  max-height: min(760px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(220, 228, 240, 0.85);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(13, 24, 46, 0.28);
}

.admin-document-image-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5ebf4;
  background: #fbfdff;
}

.admin-document-image-panel h2,
.admin-document-image-panel h3 {
  margin: 0;
  color: #14213d;
  font-weight: 700;
}

.admin-document-image-panel h2 {
  font-size: 20px;
}

.admin-document-image-panel h3 {
  font-size: 14px;
}

.admin-document-image-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.4fr);
  gap: 16px;
  min-height: 0;
  padding: 16px;
  background: #f6f9fd;
}

.admin-document-image-workspace > section {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  background: #ffffff;
}

.admin-document-image-upload {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #b9d0f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #56657e;
  font-size: 13px;
}

.admin-document-image-upload input {
  width: 100%;
}

.admin-document-image-message {
  min-height: 18px;
  margin: 0;
  color: #6a7690;
  font-size: 12px;
}

.admin-document-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  max-height: 530px;
  overflow: auto;
  padding-right: 4px;
}

.admin-document-image-grid button {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  background: #ffffff;
  color: #27344f;
  text-align: left;
  cursor: pointer;
}

.admin-document-image-grid button:hover,
.admin-document-image-grid button:focus {
  border-color: #7b4dff;
  box-shadow: 0 0 0 3px rgba(123, 77, 255, 0.1);
  outline: 0;
}

.admin-document-image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 6px;
  background: #f2f5fa;
}

.admin-document-image-grid span {
  overflow: hidden;
  color: #53627f;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-document-image-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: grid;
  place-items: center;
  padding: 28px;
}

.admin-document-image-settings-modal[hidden] {
  display: none;
}

.admin-document-image-settings-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(520px, 94vw);
  border: 1px solid rgba(220, 228, 240, 0.85);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(13, 24, 46, 0.28);
}

.admin-document-image-settings-panel > header,
.admin-document-image-settings-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.admin-document-image-settings-panel > header {
  border-bottom: 1px solid #e5ebf4;
  background: #fbfdff;
}

.admin-document-image-settings-panel > footer {
  justify-content: flex-end;
  border-top: 1px solid #e5ebf4;
}

.admin-document-image-settings-panel h2 {
  margin: 0;
  color: #14213d;
  font-size: 20px;
  font-weight: 700;
}

.admin-document-image-settings-grid {
  display: grid;
  gap: 12px;
  padding: 0 18px;
}

.admin-document-image-settings-grid label {
  display: grid;
  gap: 6px;
  color: #5d6b82;
  font-size: 12px;
  font-weight: 600;
}

.admin-document-image-settings-grid input,
.admin-document-image-settings-grid select {
  min-height: 40px;
  border: 1px solid #b9d0f0;
  border-radius: 7px;
  background: #ffffff;
  color: #26334f;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
  outline: 0;
}

.admin-document-upload-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-document-upload-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  background: #ffffff;
}

.admin-document-upload-row label {
  display: grid;
  gap: 6px;
  color: #5d6b82;
  font-size: 12px;
  font-weight: 500;
}

.admin-document-upload-row input,
.admin-document-upload-row select,
.admin-document-upload-row textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #b9d0f0;
  border-radius: 7px;
  background: #ffffff;
  color: #26334f;
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
  outline: 0;
}

.admin-document-upload-row input[type="file"] {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px;
  border-style: dashed;
  background: #f8fbff;
  color: #56657e;
  cursor: pointer;
}

.admin-document-upload-row input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 12px;
  padding: 0 14px;
  border: 1px solid #b9d0f0;
  border-radius: 7px;
  background: #eef5ff;
  color: #165bd8;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
}

.admin-document-upload-row input[type="file"]:hover,
.admin-document-upload-row input[type="file"]:focus {
  border-color: #2f6fff;
  background: #f3f8ff;
}

.admin-document-upload-row input[type="file"]:hover::file-selector-button {
  border-color: #2f6fff;
  background: #e4efff;
}

.admin-document-upload-row textarea {
  min-height: 82px;
  resize: vertical;
}

.admin-entry-search {
  width: min(420px, 100%);
  margin: 0 0 14px;
}

.admin-entry-toolbar .outline-button,
.admin-entry-toolbar .primary-button {
  min-height: 38px;
  border-radius: 7px;
  font-size: 13px;
}

.admin-entry-toolbar .outline-button {
  color: #22283d;
  border-color: #dfe4ee;
  background: #ffffff;
  box-shadow: none;
}

.admin-entry-toolbar .primary-button {
  color: #ffffff;
  background: linear-gradient(180deg, #874fff, #6e38ee);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(111, 56, 255, 0.22);
}

.admin-entries-table td span {
  display: block;
  margin-top: 3px;
  color: #71809a;
  font-size: 12px;
  font-weight: 400;
}

.admin-entries-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #dfe7f2;
}

.admin-entries-table th,
.admin-entries-table td {
  border-right: 1px solid #edf2f8;
  border-bottom: 1px solid #e6edf6;
  background-clip: padding-box;
  vertical-align: middle;
}

.admin-entries-table th {
  height: 42px;
  padding: 10px 13px;
  border-right: 1px solid #edf2f8 !important;
  border-bottom: 1px solid #dfe7f2 !important;
  color: #59667a;
  background: #f3f6fb;
  font-weight: 650;
}

.admin-app-shell .admin-table-wrap .admin-entries-table thead th {
  height: 42px !important;
  padding: 10px 13px !important;
  border-right: 1px solid #edf2f8 !important;
  border-bottom: 1px solid #dfe7f2 !important;
  background: #f3f6fb !important;
  color: #59667a !important;
  font-weight: 650 !important;
  vertical-align: middle !important;
}

.admin-entries-table td {
  height: 62px;
  padding: 11px 13px;
  background: #ffffff;
}

.admin-entries-table th:last-child,
.admin-entries-table td:last-child {
  border-right: 0;
}

.admin-entries-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-entries-table tbody tr:hover td {
  background: #f8fbff;
}

.admin-actions-cell form {
  display: inline-flex;
  margin: 0;
}

.admin-actions-cell button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #6c7890;
  cursor: pointer;
}

.admin-actions-cell button:hover {
  color: #c43333;
}

.admin-actions-cell button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.admin-entry-columns-popover {
  right: 24px;
  left: auto;
}

.admin-entries-table .admin-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-entries-table .admin-actions-cell a,
.admin-entries-table .admin-actions-cell button {
  color: #59647d;
  background: transparent;
}

.admin-entries-table .admin-actions-cell a:hover,
.admin-entries-table .admin-actions-cell button:hover {
  color: var(--blue);
}

.admin-entry-sail-line {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 0 !important;
  color: #1f2a44 !important;
  font-size: 13px !important;
}

.admin-entry-pn-icon {
  width: 9px;
  height: 9px;
  object-fit: contain;
  vertical-align: middle;
}

.admin-entry-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #69748e;
  font-size: 12px;
}

.admin-rank-link-button {
  cursor: pointer;
  font: inherit;
}

.admin-ranking-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-ranking-name-edit {
  padding: 3px 7px;
  border: 1px solid #d7deea;
  border-radius: 6px;
  background: #fff;
  color: #52617a;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.admin-ranking-name-edit:hover {
  border-color: #98a7bd;
  color: #17223d;
}

.admin-rank-name-modal {
  width: min(560px, calc(100vw - 48px));
}

.admin-rank-name-form {
  display: grid;
  gap: 16px;
}

.admin-rank-name-form label {
  display: grid;
  gap: 7px;
  color: #25324e;
  font-size: 13px;
  font-weight: 700;
}

.admin-rank-name-form input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  color: #17223d;
  background: #fff;
  font: inherit;
}

.admin-rank-candidate-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  max-height: min(560px, calc(100vh - 230px));
  overflow-y: auto;
  padding-right: 6px;
}

.admin-rank-candidate-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 14px;
  padding: 0 14px 8px;
  color: #69748e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-rank-link-modal {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
}

.admin-rank-link-modal .admin-board-header {
  margin-bottom: 14px;
}

.admin-rank-candidate-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 14px;
  align-items: stretch;
  padding: 13px 14px;
  border: 1px solid #e1e7f1;
  border-radius: 8px;
  background: #ffffff;
}

.admin-rank-candidate-main {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.admin-rank-candidate-main strong,
.admin-rank-candidate-main span {
  display: block;
}

.admin-rank-candidate-main strong {
  color: #17223d;
  font-size: 14px;
  font-weight: 650;
}

.admin-rank-candidate-main span {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #69748e;
  font-size: 12px;
}

.admin-rank-candidate-main b {
  color: #25324e;
  font-weight: 600;
}

.admin-rank-candidate-main small {
  color: #69748e;
  font-size: 12px;
}

.admin-rank-candidate-action {
  display: grid;
  align-items: center;
  justify-items: stretch;
}

.admin-rank-candidate-action .primary-button {
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .admin-rank-candidate-head {
    display: none;
  }

  .admin-rank-candidate-row {
    grid-template-columns: 1fr;
  }
}

.admin-entry-edit-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.admin-entry-sail-field {
  display: grid;
  grid-template-columns: minmax(90px, 0.65fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-entry-sail-field .admin-checkbox.compact {
  justify-content: flex-start;
  align-self: end;
  min-height: 36px;
  white-space: nowrap;
}

.admin-entry-country-picker input {
  text-transform: uppercase;
}

.admin-form-actions .admin-entry-withdraw-button {
  margin-left: 0;
}

.admin-entry-club-picker,
.admin-entry-country-picker {
  position: relative;
}

.admin-entry-club-results {
  position: absolute;
  z-index: 25;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(18, 34, 64, 0.16);
}

.admin-entry-club-results[hidden] {
  display: none;
}

.admin-entry-club-results button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: #17233b;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-entry-club-results button:hover,
.admin-entry-club-results button.is-active {
  background: #f2f6ff;
}

.admin-entry-club-results strong {
  font-size: 13px;
  font-weight: 650;
}

.admin-entry-club-results small,
.admin-entry-club-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.admin-database-table {
  min-width: 880px;
  table-layout: fixed;
}

.admin-database-table th:first-child {
  width: 30%;
}

.admin-database-table th:nth-child(2) {
  width: 24%;
}

.admin-database-table th:nth-child(3) {
  width: 18%;
}

.admin-database-table th:nth-child(4) {
  width: 11%;
}

.admin-database-table th:nth-child(5) {
  width: 11%;
}

.admin-database-table th:last-child {
  width: 64px;
  text-align: center;
}

.admin-database-table tbody tr {
  transition: background .15s ease;
}

.admin-database-table tbody tr:hover {
  background: #f8faff;
}

.admin-database-owner,
.admin-database-connection {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-database-owner strong,
.admin-database-connection strong {
  overflow-wrap: anywhere;
  color: #17233d;
  font-size: 14px;
  font-weight: 650;
}

.admin-database-owner span {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: #53627a !important;
  background: #eef3fb;
  font-size: 11px !important;
  font-weight: 600;
}

.admin-database-connection span {
  overflow-wrap: anywhere;
  color: #68758b !important;
  font-size: 12px !important;
}

.admin-database-code,
.admin-database-password {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid #dce4f0;
  border-radius: 6px;
  color: #35435b;
  background: #f7f9fc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-database-password {
  letter-spacing: 2px;
}

.admin-database-table .admin-actions-cell {
  text-align: center;
}

.admin-database-table .admin-database-edit {
  border: 1px solid #dce4f0;
  border-radius: 7px;
  background: #ffffff;
}

.admin-database-table .admin-database-edit:hover {
  color: #3d55c6;
  border-color: #aebcf1;
  background: #f3f5ff;
}

.admin-database-empty {
  padding: 34px !important;
  color: var(--muted);
  text-align: center !important;
}

@media (max-width: 760px) {
  .admin-database-table {
    min-width: 0;
  }

  .admin-database-table thead {
    display: none;
  }

  .admin-database-table,
  .admin-database-table tbody,
  .admin-database-table tr,
  .admin-database-table td {
    display: block;
    width: 100%;
  }

  .admin-database-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .admin-database-table td {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    height: auto !important;
    padding: 8px 0 !important;
    border: 0;
  }

  .admin-database-table td::before {
    content: attr(data-label);
    color: #68718b;
    font-size: 11px;
    font-weight: 650;
    text-transform: uppercase;
  }

  .admin-database-table .admin-actions-cell {
    text-align: left;
  }

  .admin-database-empty::before {
    content: none !important;
  }
}

.admin-entry-notes {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #5d6b82;
  font-size: 12px;
  font-weight: 500;
}

.admin-entry-notes textarea {
  min-height: 96px;
  border: 1px solid #b9d0f0;
  border-radius: 7px;
  background: #ffffff;
  color: #26334f;
  font-size: 13px;
  font-weight: 400;
  resize: vertical;
}

.admin-document-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  background: #ffffff;
}

.admin-document-preview.is-empty::before {
  content: "No paragraphs added.";
  color: #6d7892;
  font-size: 13px;
}

.admin-document-preview-paragraph {
  display: grid;
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f7;
}

.admin-document-preview-paragraph:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-document-preview-paragraph h3 {
  margin: 0;
  color: #18233d;
  font-size: 14px;
  font-weight: 800;
}

.admin-document-preview-paragraph p {
  margin: 0;
  color: #33405e;
  font-size: 13px;
  line-height: 1.55;
}

.admin-document-paragraphs {
  display: grid;
  gap: 10px;
}

.admin-document-paragraph {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  background: #ffffff;
}

.admin-document-preview-toolbar {
  display: flex;
  gap: 4px;
  align-items: center;
}

.admin-document-preview-toolbar .admin-icon-button,
.admin-document-preview-toolbar .admin-column-drag {
  display: inline-grid;
  width: 28px;
  height: 28px;
  min-height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  background: #ffffff;
  color: #53627f;
  font-size: 12px;
  line-height: 1;
}

.admin-document-preview-toolbar svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-document-preview-body {
  display: grid;
  gap: 7px;
}

.admin-document-preview-body h3 {
  margin: 0;
  color: #18233d;
  font-size: 14px;
  font-weight: 800;
}

.admin-document-preview-body p {
  margin: 0;
  color: #33405e;
  font-size: 13px;
  line-height: 1.55;
}

.admin-document-preview-body ul,
.admin-document-preview-body ol {
  margin: 0;
  padding-left: 22px;
  color: #33405e;
  font-size: 13px;
  line-height: 1.55;
}

.admin-document-preview-body figure,
.admin-wysiwyg figure {
  margin: 10px 0;
}

.admin-document-preview-body img,
.admin-wysiwyg img {
  display: inline-block;
  max-width: calc(100% - 20px);
  height: auto;
  margin: 10px;
  border-radius: 6px;
}

.admin-wysiwyg img.is-selected-document-image {
  outline: 2px solid #7b4dff;
  outline-offset: 2px;
}

.admin-document-preview-body table,
.admin-wysiwyg table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}

.admin-document-preview-body td,
.admin-document-preview-body th,
.admin-wysiwyg td,
.admin-wysiwyg th {
  min-width: 80px;
  padding: 7px 8px;
  border: 1px solid #d8e1ee;
  color: #33405e;
  font-size: 13px;
  vertical-align: top;
}

.admin-document-inline-number {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.admin-document-inline-number > strong {
  color: #18233d;
  font-size: 13px;
  line-height: 1.55;
}

.admin-document-editor {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fbfcff;
}

.admin-document-editor[hidden] {
  display: none;
}

.admin-document-editor-grid {
  grid-template-columns: 150px minmax(0, 1fr);
}

.admin-wysiwyg-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-wysiwyg-toolbar button {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  min-width: 32px;
  padding: 0 8px;
  border: 1px solid #d8e1ee;
  border-radius: 6px;
  background: #ffffff;
  color: #26334f;
  font-size: 12px;
  font-weight: 800;
}

.admin-wysiwyg-toolbar button:hover {
  border-color: #a891ff;
  color: #5c35dd;
}

.admin-wysiwyg-select-control {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 9px;
  border: 1px solid #d8e1ee;
  border-radius: 6px;
  background: #ffffff;
  color: #26334f;
  font-size: 12px;
  font-weight: 800;
}

.admin-wysiwyg-select-control span {
  white-space: nowrap;
}

.admin-wysiwyg-select-control select {
  min-height: 24px;
  border: 0;
  border-left: 1px solid #e4ebf5;
  border-radius: 0;
  background: transparent;
  color: #26334f;
  font: inherit;
  outline: none;
  padding: 0 22px 0 7px;
}

.admin-wysiwyg-select-control:focus-within,
.admin-wysiwyg-select-control:hover {
  border-color: #a891ff;
  color: #5c35dd;
}

.admin-wysiwyg-toolbar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-wysiwyg-toolbar svg circle {
  fill: currentColor;
  stroke: none;
}

.admin-wysiwyg {
  min-height: 150px;
  padding: 12px;
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  background: #ffffff;
  color: #26334f;
  font-size: 13px;
  line-height: 1.55;
  outline: 0;
}

.admin-wysiwyg:focus {
  border-color: #8a62ff;
  box-shadow: 0 0 0 3px rgba(123, 77, 255, 0.12);
}

.admin-document-paragraph.dragging {
  opacity: 0.55;
}

.admin-document-paragraph.drag-over {
  border-color: #7b4dff;
  box-shadow: 0 0 0 3px rgba(123, 77, 255, 0.1);
}

.admin-document-paragraph textarea {
  min-height: 110px;
  resize: vertical;
}

.document-preview-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 50px;
}

.document-preview-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.document-preview-header h1 {
  margin: 0;
  color: #14213d;
  font-size: 28px;
  font-weight: 700;
}

.document-preview-header p {
  margin: 5px 0 0;
  color: #64708a;
}

.document-preview-paper {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid #dfe7f3;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(23, 40, 75, 0.08);
}

.document-preview-section {
  display: grid;
  gap: 8px;
}

.document-preview-section h2 {
  margin: 0;
  color: #17233f;
  font-size: 16px;
  font-weight: 700;
}

.document-preview-body {
  color: #2f3b55;
  font-size: 14px;
  line-height: 1.65;
}

.document-preview-body p {
  margin: 0 0 8px;
}

.document-preview-body ul,
.document-preview-body ol {
  margin: 0 0 8px;
  padding-left: 22px;
}

.document-preview-body figure {
  margin: 10px 0;
}

.document-preview-body img {
  display: inline-block;
  max-width: calc(100% - 20px);
  height: auto;
  margin: 10px;
  border-radius: 6px;
}

.document-preview-body table {
  width: 100%;
  border-collapse: collapse;
}

.document-preview-body td,
.document-preview-body th {
  padding: 8px;
  border: 1px solid #dfe7f3;
  text-align: left;
}

.document-preview-inline-number {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  color: #2f3b55;
  font-size: 14px;
  line-height: 1.65;
}

.public-document-page {
  min-height: 100vh;
  background: #f5f8fc;
}

.admin-schedule-row {
  display: grid;
  grid-template-columns: minmax(122px, 0.65fr) minmax(360px, 1.75fr) minmax(92px, 0.46fr) minmax(92px, 0.46fr) 32px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.admin-schedule-row label {
  display: grid;
  gap: 5px;
  color: #5d6b82;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.admin-schedule-row input,
.admin-schedule-row select {
  min-height: 36px;
  border: 1px solid #b9d0f0;
  border-radius: 7px;
  background: #ffffff;
  color: #26334f;
  font-size: 12.5px;
  font-weight: 400;
  box-shadow: none;
  outline: 0;
}

.admin-schedule-row input:focus,
.admin-schedule-row select:focus {
  border-color: #2f6fff;
  box-shadow: none;
}

.admin-schedule-row .admin-icon-button {
  width: 30px;
  height: 30px;
  align-self: end;
  border-color: #eab4b4;
  color: #c43333;
  background: #ffffff;
  font-size: 0;
}

.admin-schedule-row .admin-icon-button:hover {
  color: #9f1f1f;
  border-color: #e29b9b;
  background: #ffecec;
}

.admin-schedule-row .admin-icon-button svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.admin-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #ffffff;
  color: #59657c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.admin-icon-button:hover {
  border-color: #b9c5d8;
  color: #15223d;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 18, 34, 0.36);
}

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

.admin-modal-panel {
  width: min(860px, calc(100vw - 48px));
  padding: 22px;
  border: 1px solid #e1e7f1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(18, 25, 45, 0.24);
}

.admin-modal-panel .admin-board-header {
  margin-bottom: 18px;
}

.admin-location-picker {
  position: relative;
}

.admin-location-results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(20, 28, 48, 0.16);
}

.admin-location-results[hidden] {
  display: none !important;
}

.admin-location-results button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #17233c;
  cursor: pointer;
  text-align: left;
}

.admin-location-results button:hover,
.admin-location-results .admin-location-add-option {
  background: #f4f6fb;
}

.admin-location-results span {
  color: #6d7890;
  font-size: 12px;
  font-weight: 700;
}

.admin-shell,
.admin-app-shell {
  font-weight: 400;
}

.admin-shell h1,
.admin-app-shell h1 {
  font-weight: 700;
  letter-spacing: 0;
}

.admin-shell h2,
.admin-shell h3,
.admin-app-shell h2,
.admin-app-shell h3,
.admin-event-name,
.admin-card-title {
  font-weight: 650;
}

.admin-shell strong,
.admin-shell th,
.admin-app-shell strong,
.admin-app-shell th,
.admin-chip,
.admin-status-pill,
.admin-top-home,
.admin-top-create,
.primary-button,
.outline-button {
  font-weight: 600;
}

.admin-shell p,
.admin-shell td,
.admin-shell label,
.admin-app-shell p,
.admin-app-shell td,
.admin-app-shell label {
  font-weight: 400;
}

.admin-app-shell .admin-event-name span,
.admin-app-shell .admin-date-cell span,
.admin-app-shell .admin-club-cell,
.admin-app-shell .admin-club-cell strong,
.admin-app-shell .admin-club-cell span {
  font-weight: 400;
}

.admin-app-shell .admin-date-cell strong {
  font-weight: 500;
}

.admin-app-shell .admin-event-name a {
  font-weight: 600;
}

@media (max-width: 900px) {
  .admin-schedule-workspace,
  .admin-document-upload-row,
  .admin-entry-edit-grid,
  .admin-event-venue-grid,
  .admin-registration-grid,
  .admin-club-identity-grid,
  .admin-club-location-grid,
  .admin-club-defaults-grid,
  .admin-club-status-grid,
  .admin-schedule-row {
    grid-template-columns: 1fr;
  }

  .admin-race-office-grid {
    grid-template-columns: 1fr;
  }

  .admin-club-location-grid label:last-child {
    grid-column: auto;
  }

  .admin-schedule-row .admin-icon-button {
    width: 100%;
  }
}

.admin-website-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-website-metrics article {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "number label"
    "number detail";
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
  min-height: 86px;
  padding: 18px 20px;
}

.admin-website-metrics article span {
  grid-area: label;
  display: block;
  color: #5d667a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-website-metrics article strong {
  grid-area: number;
  display: block;
  min-width: 44px;
  color: #1a2135;
  font-size: 32px;
  font-weight: 650;
  line-height: 1;
}

.admin-website-metrics article small {
  grid-area: detail;
  display: block;
  color: #747f95;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.admin-website-table td:first-child span,
.admin-website-page-item span {
  display: block;
  margin-top: 3px;
  color: #71809a;
  font-size: 12px;
  font-weight: 400;
}

.admin-website-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.admin-website-table thead tr {
  background: #f4f6fa;
}

.admin-website-table thead th {
  height: 46px;
  padding: 0 18px;
  color: #566176;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
  border-bottom: 1px solid #dfe6f1;
}

.admin-website-table tbody td {
  height: 68px;
  padding: 14px 18px;
  color: #26324a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  vertical-align: middle;
  border-bottom: 1px solid #edf1f7;
}

.admin-website-table th:nth-child(1),
.admin-website-table td:nth-child(1) {
  width: 27%;
}

.admin-website-table th:nth-child(2),
.admin-website-table td:nth-child(2) {
  width: 17%;
}

.admin-website-table th:nth-child(3),
.admin-website-table td:nth-child(3) {
  width: 18%;
}

.admin-website-table th:nth-child(4),
.admin-website-table td:nth-child(4) {
  width: 18%;
}

.admin-website-table th:nth-child(5),
.admin-website-table td:nth-child(5) {
  width: 8%;
  text-align: center;
}

.admin-website-table th:nth-child(6),
.admin-website-table td:nth-child(6) {
  width: 8%;
}

.admin-website-table th:nth-child(7),
.admin-website-table td:nth-child(7) {
  width: 6%;
  text-align: center;
}

.admin-website-name-cell .admin-table-title {
  display: inline-block;
  color: #17233d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}

.admin-website-name-cell .admin-table-title:hover {
  color: #6749be;
}

.admin-website-scope-cell {
  color: #44516a;
}

.admin-website-section-cell {
  line-height: 1.8;
}

.admin-website-section-pill {
  display: inline-flex;
  margin: 2px 4px 2px 0;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  color: #6749be;
  background: #f3efff;
  border: 1px solid #ded3ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.admin-website-pages-cell strong {
  color: #17233d;
  font-weight: 650;
}

.admin-website-pages-cell span {
  color: #78839a;
  font-size: 12px;
}

.admin-website-table .admin-actions-cell {
  white-space: nowrap;
}

.admin-website-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-website-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e3e9f4;
}

.admin-website-workspace-context,
.admin-website-selected-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
}

.admin-website-selected-card {
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 18px 0;
  background: #fbfcff;
  border: 1px solid #e2e8f3;
  border-radius: 14px;
}

.admin-context-kicker {
  display: block;
  margin-bottom: 4px;
  color: #6f7890;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-website-workspace-context strong,
.admin-website-selected-card strong {
  display: block;
  color: #17233d;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.2;
}

.admin-website-workspace-context small,
.admin-website-selected-card small {
  display: block;
  margin-top: 4px;
  color: #65728a;
  font-size: 13px;
  line-height: 1.35;
}

.admin-website-section-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-website-section-tabs a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #44516a;
  background: #f7f9fd;
  border: 1px solid #dfe6f2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.admin-website-section-tabs a:hover,
.admin-website-section-tabs a.active {
  color: #fff;
  background: #6749be;
  border-color: #6749be;
}

.admin-website-context-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.admin-website-context-form label {
  display: grid;
  gap: 7px;
}

.admin-website-context-form label span {
  color: #566176;
  font-size: 12px;
  font-weight: 700;
}

.admin-website-context-form select {
  min-height: 44px;
  padding: 0 12px;
  color: #1f2a44;
  background: #fff;
  border: 1px solid #d9e1ef;
  border-radius: 10px;
  font: inherit;
}

.admin-website-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-website-action-grid a {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 18px;
  color: #4f5d76;
  background: #fff;
  border: 1px solid #e1e8f3;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(25, 35, 55, .04);
}

.admin-website-action-grid a:hover {
  border-color: #cbbdff;
  box-shadow: 0 14px 32px rgba(103, 73, 190, .12);
  transform: translateY(-1px);
}

.admin-website-action-grid a strong {
  color: #17233d;
  font-size: 15px;
  font-weight: 750;
}

.admin-website-action-grid a span {
  color: #6b768d;
  font-size: 13px;
  line-height: 1.45;
}

.admin-builder-context {
  margin-bottom: 18px;
}

.admin-builder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
  overflow: hidden;
  border-color: #dbe5f5;
  background:
    radial-gradient(circle at 88% 20%, rgba(103, 73, 190, .12), transparent 34%),
    linear-gradient(135deg, #fff, #f7faff);
}

.admin-builder-hero h2 {
  margin: 8px 0 8px;
  color: #17233d;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.admin-builder-hero p {
  margin: 0;
  color: #65728a;
  font-size: 14px;
  line-height: 1.5;
}

.admin-builder-hero dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.admin-builder-hero dl div {
  min-height: 82px;
  padding: 15px;
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
}

.admin-builder-hero dt {
  margin: 0 0 7px;
  color: #738097;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-builder-hero dd {
  margin: 0;
  color: #17233d;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.admin-builder-map {
  display: grid;
  gap: 22px;
}

.admin-builder-column {
  display: grid;
  gap: 14px;
}

.admin-builder-column > h2 {
  margin: 0;
  color: #17233d;
  font-size: 20px;
  line-height: 1.2;
}

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

.admin-builder-card {
  position: relative;
  display: grid;
  min-height: 156px;
  align-content: start;
  gap: 9px;
  padding: 18px;
  overflow: hidden;
  color: #566176;
  background: #fff;
  border: 1px solid #dfe7f3;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(21, 32, 56, .05);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.admin-builder-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #6749be, #26a69a);
  content: "";
}

.admin-builder-card:hover {
  border-color: #cbbdff;
  box-shadow: 0 16px 34px rgba(103, 73, 190, .13);
  transform: translateY(-2px);
}

.admin-builder-card > span {
  justify-self: start;
  padding: 5px 9px;
  color: #6749be;
  background: #f2efff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-builder-card strong {
  color: #17233d;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.admin-builder-card small {
  color: #65728a;
  font-size: 13px;
  line-height: 1.45;
}

.admin-builder-card em {
  align-self: end;
  margin-top: 4px;
  color: #7b879a;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

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

@media (max-width: 1200px) {
  .admin-builder-hero {
    grid-template-columns: 1fr;
  }

  .admin-builder-grid,
  .admin-builder-wide .admin-builder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-builder-hero dl,
  .admin-builder-grid,
  .admin-builder-wide .admin-builder-grid {
    grid-template-columns: 1fr;
  }

  .admin-builder-card {
    min-height: 0;
  }
}

.admin-website-editor-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.admin-website-template-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-website-template-pages-grid {
  margin-top: 18px;
}

.admin-template-assets {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 12px 14px;
  color: #65728a;
  background: #f8faff;
  border: 1px solid #e1e8f5;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.admin-template-builder-notice {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #fffaf0;
  border: 1px solid #f2d49a;
  border-left: 4px solid #d49b2a;
}

.admin-template-builder-notice strong {
  color: #17233d;
  font-size: 14px;
  font-weight: 800;
}

.admin-template-builder-notice p {
  margin: 0;
  color: #5e6678;
  font-size: 13px;
  line-height: 1.5;
}

.admin-template-builder-notice a {
  color: #5a3fc9;
  font-weight: 750;
}

.admin-template-builder-notice code {
  padding: 2px 5px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid #ead8aa;
  border-radius: 5px;
  font-size: 12px;
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-topbar-actions form {
  display: contents;
}

.admin-template-fields-panel,
.admin-template-connections-panel,
.admin-template-values-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e1e6ef;
}

.admin-template-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.admin-template-page-meta em {
  padding: 3px 8px;
  color: #4d5870;
  background: #eef3fb;
  border: 1px solid #dce6f5;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.admin-template-anchor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.admin-template-anchor-actions a,
.admin-template-manage-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #5a3fc9;
  background: #f6f3ff;
  border: 1px solid #d9d0ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.admin-template-manage-link {
  justify-content: center;
  margin-top: 7px;
}

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

.admin-template-connection-card {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  background: #fbfcff;
  border: 1px solid #dce5f2;
  border-radius: 10px;
}

.admin-template-connection-card strong {
  color: #17233d;
  font-size: 14px;
}

.admin-template-connection-card span {
  color: #5a3fc9;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.admin-template-connection-card p,
.admin-template-connection-card small {
  margin: 0;
  color: #5d687d;
  line-height: 1.45;
}

.admin-template-empty-state {
  padding: 14px;
  color: #667188;
  background: #f8faff;
  border: 1px dashed #cfd9e8;
  border-radius: 9px;
}

.admin-template-field-list {
  display: grid;
  gap: 10px;
}

.admin-template-field-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr .8fr 1fr 1.2fr 90px auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #f8faff;
}

.admin-template-field-row label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.admin-template-field-row input,
.admin-template-field-row select {
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid #ccd5e3;
  border-radius: 5px;
  background: #fff;
}

.admin-field-remove {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #d8a1a8;
  border-radius: 5px;
  color: #a21728;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .admin-template-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-template-connection-grid {
    grid-template-columns: 1fr;
  }
}

.admin-code-field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.admin-code-field span {
  color: #23304a;
  font-size: 12px;
  font-weight: 650;
}

.admin-code-field textarea {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  color: #17233d;
  background: #fbfcff;
  border: 1px solid #cbd8ea;
  border-radius: 8px;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
}

.admin-website-page-list {
  position: sticky;
  top: 82px;
}

.admin-website-page-items {
  display: grid;
  gap: 8px;
}

.admin-website-page-item {
  display: block;
  padding: 10px 12px;
  border: 1px solid #dde6f3;
  border-radius: 8px;
  background: #fff;
  color: #17233d;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-website-page-item:hover,
.admin-website-page-item.active {
  border-color: #8b6cf6;
  background: #fbfaff;
  box-shadow: 0 8px 20px rgba(103, 73, 190, .08);
}

.admin-cms-wysiwyg {
  min-height: 320px;
  margin-top: 0;
}

.admin-website-meta-grid {
  margin-top: 18px;
}

.admin-status-pill.is-live {
  color: #087443;
  background: #e9fbf1;
  border-color: #9fe4bf;
}

.admin-status-pill.is-draft {
  color: #4e5b72;
  background: #f3f6fb;
  border-color: #d9e1ed;
}

.admin-status-pill.is-archived {
  color: #8a4a07;
  background: #fff5e7;
  border-color: #ffd69a;
}

@media (max-width: 980px) {
  .admin-website-metrics,
  .admin-website-form-grid,
  .admin-website-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-website-page-list {
    position: static;
  }

  .admin-website-workspace-context,
  .admin-website-selected-card,
  .admin-website-context-form {
    grid-template-columns: 1fr;
  }

  .admin-website-section-tabs {
    justify-content: flex-start;
  }

  .admin-website-action-grid {
    grid-template-columns: 1fr;
  }
}

.admin-website-sponsors-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e3e9f4;
}

.admin-website-setup input[type="file"] {
  min-height: 38px;
  padding: 7px 10px;
  border-style: dashed;
  background: #fbfcff;
}

.admin-website-setup small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.admin-board-header.compact {
  margin-bottom: 12px;
}

.admin-board-header.compact h3 {
  margin: 0 0 4px;
  color: #17233d;
  font-size: 15px;
  font-weight: 650;
}

.admin-website-sponsors {
  display: grid;
  gap: 10px;
}

.admin-website-sponsor-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.4fr .8fr .55fr auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dde6f3;
  border-radius: 8px;
  background: #fbfcff;
}

@media (max-width: 1120px) {
  .admin-website-sponsor-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Database setup table */
.admin-app-shell .admin-database-board {
  padding: 0;
  overflow: hidden;
}

.admin-app-shell .admin-database-board .admin-board-header {
  margin: 0;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e5ebf4;
}

.admin-database-count {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  color: #53627a;
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.admin-app-shell .admin-database-board .admin-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-app-shell .admin-database-table {
  width: 100%;
  min-width: 920px;
  table-layout: fixed;
  border-collapse: collapse;
}

.admin-app-shell .admin-database-table thead tr {
  background: #f4f6fa;
}

.admin-app-shell .admin-database-table thead th {
  height: 46px;
  padding: 0 18px;
  color: #566176;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
  border-bottom: 1px solid #dfe6f1;
  background: #f4f6fa;
}

.admin-app-shell .admin-database-table tbody td {
  height: auto;
  min-height: 76px;
  padding: 14px 16px;
  border-bottom: 1px solid #e9eef5;
  color: #26324a;
  background: #ffffff;
  font-size: 13px;
  vertical-align: middle;
}

.admin-app-shell .admin-database-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-app-shell .admin-database-table tbody tr:hover td {
  background: #fafbfe;
}

.admin-app-shell .admin-database-table th:nth-child(1),
.admin-app-shell .admin-database-table td:nth-child(1) {
  width: 29%;
}

.admin-app-shell .admin-database-table th:nth-child(2),
.admin-app-shell .admin-database-table td:nth-child(2) {
  width: 28%;
}

.admin-app-shell .admin-database-table th:nth-child(3),
.admin-app-shell .admin-database-table td:nth-child(3) {
  width: 17%;
}

.admin-app-shell .admin-database-table th:nth-child(4),
.admin-app-shell .admin-database-table td:nth-child(4) {
  width: 10%;
}

.admin-app-shell .admin-database-table th:nth-child(5),
.admin-app-shell .admin-database-table td:nth-child(5) {
  width: 10%;
}

.admin-app-shell .admin-database-table th:nth-child(6),
.admin-app-shell .admin-database-table td:nth-child(6) {
  width: 6%;
  text-align: center;
}

.admin-app-shell .admin-database-owner {
  display: grid;
  justify-items: start;
  gap: 3px;
}

.admin-app-shell .admin-database-owner strong {
  color: #17233d;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.admin-app-shell .admin-database-owner small {
  color: #748097;
  font-size: 12px;
  line-height: 1.3;
}

.admin-app-shell .admin-database-owner-type {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  margin-top: 3px;
  padding: 0 8px;
  border: 1px solid #d9e3f2;
  border-radius: 999px;
  color: #53627a !important;
  background: #f2f5fa;
  font-size: 10px !important;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.admin-app-shell .admin-database-connection {
  display: grid;
  gap: 7px;
}

.admin-app-shell .admin-database-connection > span {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.admin-app-shell .admin-database-connection small {
  color: #8390a5;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-app-shell .admin-database-connection strong {
  overflow-wrap: anywhere;
  color: #253149;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 500;
}

.admin-app-shell .admin-database-code,
.admin-app-shell .admin-database-password {
  padding: 5px 8px;
  border: 1px solid #dde5f0;
  border-radius: 6px;
  color: #35435b;
  background: #f7f9fc;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.admin-app-shell .admin-database-table .admin-database-edit {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #d8e1ed;
  border-radius: 7px;
  color: #536078;
  background: #ffffff;
}

.admin-app-shell .admin-database-table .admin-database-edit:hover {
  color: #4055bd;
  border-color: #aebcf1;
  background: #f3f5ff;
}

@media (max-width: 760px) {
  .admin-app-shell .admin-database-board .admin-board-header {
    align-items: flex-start;
    gap: 12px;
  }

  .admin-app-shell .admin-database-table {
    min-width: 0;
  }

  .admin-app-shell .admin-database-table thead {
    display: none;
  }

  .admin-app-shell .admin-database-table,
  .admin-app-shell .admin-database-table tbody,
  .admin-app-shell .admin-database-table tr,
  .admin-app-shell .admin-database-table td {
    display: block;
    width: 100%;
  }

  .admin-app-shell .admin-database-table tr {
    padding: 8px 16px;
    border-bottom: 1px solid #e3e9f2;
  }

  .admin-app-shell .admin-database-table tbody td {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 9px 0;
    border: 0;
  }

  .admin-app-shell .admin-database-table td::before {
    content: attr(data-label);
    color: #7a869a;
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .admin-app-shell .admin-database-table td.admin-database-empty {
    display: block;
    padding: 28px 0 !important;
  }

  .admin-app-shell .admin-database-table td.admin-database-empty::before {
    content: none;
  }

  .admin-app-shell .admin-database-table .admin-actions-cell {
    text-align: left;
  }
}

/* Club news */
.admin-news-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1.2fr) minmax(150px, .8fr) minmax(130px, .7fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-content-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(200px, 1.3fr) minmax(150px, .8fr) minmax(130px, .7fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-news-filter-grid label,
.admin-content-filter-grid label {
  display: grid;
  gap: 7px;
  color: #5d6b82;
  font-size: 12px;
}

.admin-news-filter-grid input,
.admin-news-filter-grid select,
.admin-content-filter-grid input,
.admin-content-filter-grid select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
  color: #202b43;
  background: #ffffff;
  font: inherit;
}

.admin-news-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-news-board-filters {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #f8faff;
}

.admin-news-title-cell a {
  margin-bottom: 4px;
}

.admin-news-title-cell span {
  display: block;
  overflow: hidden;
  color: #748097;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-news-details-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.admin-content-details-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.admin-content-toggle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e3e9f2;
}

.admin-content-toggle-grid .admin-check-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #35435b;
  font-size: 13px;
}

.admin-content-toggle-grid input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.admin-content-header-actions {
  margin: 0;
}

.admin-content-title-cell a {
  display: block;
  margin-bottom: 4px;
  padding-left: calc(var(--content-depth, 0) * 14px);
}

.admin-content-title-cell span {
  display: block;
  color: #748097;
  font-size: 12px;
}

.admin-content-table {
  min-width: 1120px;
}

.admin-content-table code {
  color: #4f5d73;
  font-size: 12px;
}

.admin-news-headline-field {
  grid-column: span 2;
}

.admin-news-headline-control {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-news-headline-control input {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-news-headline-control .outline-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-news-headline-preview {
  display: block;
  width: min(100%, 420px);
  max-height: 220px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.admin-news-headline-preview[hidden] {
  display: none;
}

.admin-template-image-control {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-template-image-control input {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-template-image-control .outline-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-template-image-preview {
  display: block;
  width: min(100%, 420px);
  max-height: 220px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.admin-template-image-preview[hidden] {
  display: none;
}

.admin-news-editor-form {
  display: grid;
  gap: 18px;
}

.admin-rich-editor {
  width: 100%;
  min-height: 260px;
}

.tox.admin-tinymce-editor,
.admin-tinymce-editor.tox-tinymce {
  border: 1px solid #cbd7e8;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 45, 71, .04);
}

.admin-tinymce-editor .tox-toolbar,
.admin-tinymce-editor .tox-toolbar__overflow,
.admin-tinymce-editor .tox-toolbar__primary {
  background: #f8faff !important;
}

.admin-tinymce-editor .tox-edit-area__iframe {
  background: #ffffff;
}

.admin-mailing-grid {
  display: grid;
  grid-template-columns: minmax(340px, .8fr) minmax(520px, 1.2fr);
  gap: 18px;
  margin-bottom: 18px;
}

.admin-mailing-add-form {
  display: grid;
  grid-template-columns: 1fr 1.35fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-mailing-add-form label {
  display: grid;
  gap: 7px;
}

.admin-mailing-grid hr {
  width: 100%;
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #e1e7f0;
}

@media (max-width: 1050px) {
  .admin-mailing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-mailing-add-form {
    grid-template-columns: 1fr;
  }
}

.admin-news-wysiwyg-section {
  display: grid;
  gap: 10px;
}

.admin-news-wysiwyg {
  min-height: 230px;
}

.admin-news-summary-editor {
  min-height: 160px;
}

.admin-news-content-editor {
  min-height: 380px;
}

.admin-news-wysiwyg img.is-selected-news-image {
  outline: 2px solid #7b4dff;
  outline-offset: 2px;
}

.admin-news-wysiwyg figure {
  margin: 10px 0;
}

.admin-news-wysiwyg::after {
  display: block;
  clear: both;
  content: "";
}

.admin-news-wysiwyg figure.content-image-no-wrap {
  clear: both;
}

.admin-news-wysiwyg figure.content-image-center {
  clear: both;
  text-align: center;
}

.admin-news-wysiwyg figure.content-image-wrap-left,
.admin-news-wysiwyg figure.content-image-wrap-right {
  max-width: 60%;
  margin-top: 5px;
  margin-bottom: 14px;
}

.admin-news-wysiwyg figure.content-image-wrap-left {
  float: left;
  margin-right: 20px;
}

.admin-news-wysiwyg figure.content-image-wrap-right {
  float: right;
  margin-left: 20px;
}

.admin-news-wysiwyg figure.content-image-wrap-left img,
.admin-news-wysiwyg figure.content-image-wrap-right img {
  display: block;
  width: 100%;
  margin: 0;
}

.admin-news-wysiwyg figure.content-image-center img {
  margin-right: auto;
  margin-left: auto;
}

.admin-news-wysiwyg img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin: 8px;
  border-radius: 6px;
}

@media (max-width: 700px) {
  .admin-news-wysiwyg figure.content-image-wrap-left,
  .admin-news-wysiwyg figure.content-image-wrap-right {
    float: none;
    width: auto !important;
    max-width: 100%;
    margin: 10px 0;
  }
}

.admin-news-wysiwyg table {
  width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
}

.admin-news-wysiwyg td,
.admin-news-wysiwyg th {
  min-width: 80px;
  padding: 7px 8px;
  border: 1px solid #d8e1ee;
  vertical-align: top;
}

.admin-source-modal {
  z-index: 1100;
}

.admin-source-modal-panel {
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.admin-source-modal-panel .admin-board-header {
  align-items: flex-start;
}

.admin-source-modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #d8e1ee;
  border-radius: 7px;
  color: #536078;
  background: #ffffff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.admin-source-editor-label {
  display: grid;
  gap: 8px;
  color: #5d6b82;
  font-size: 12px;
}

.admin-source-editor {
  width: 100%;
  min-height: min(58vh, 620px);
  padding: 14px;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
  color: #d8e2f0;
  background: #172033;
  font: 13px/1.55 Consolas, "Liberation Mono", monospace;
  tab-size: 2;
  resize: vertical;
}

.admin-source-editor:focus {
  border-color: #8064e8;
  outline: 2px solid rgba(128, 100, 232, 0.18);
}

/* Club banners */
.admin-banner-panel {
  display: grid;
  gap: 18px;
}

.admin-banner-commandbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.admin-banner-commandbar .admin-event-tabs {
  flex: 1 1 auto;
}

.admin-banner-club-picker label {
  display: grid;
  gap: 6px;
  color: #5d6b82;
  font-size: 12px;
}

.admin-banner-club-picker select {
  min-width: 280px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
  background: #ffffff;
}

.admin-banner-board {
  margin: 0;
}

.admin-banner-category-table {
  min-width: 900px;
}

.admin-banner-table {
  min-width: 1180px;
}

.admin-banner-table code,
.admin-banner-category-table code {
  overflow-wrap: anywhere;
  color: #4f5d73;
  font-size: 12px;
  white-space: normal;
}

.admin-banner-category-grid,
.admin-banner-details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.admin-banner-template-editor {
  min-height: 360px !important;
  color: #d8e2f0 !important;
  background: #172033 !important;
  font-family: Consolas, "Liberation Mono", monospace !important;
  line-height: 1.5;
}

.admin-banner-system-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e3e9f2;
}

.admin-banner-system-stats span {
  padding: 8px 12px;
  border-radius: 7px;
  color: #5d6b82;
  background: #f4f7fb;
  font-size: 12px;
}

.admin-banner-system-stats strong {
  margin-left: 5px;
  color: #26324a;
}

/* Club file manager */
.admin-file-manager-board {
  display: grid;
  gap: 16px;
}

.admin-file-club-picker label {
  display: grid;
  gap: 6px;
  color: #5d6b82;
  font-size: 12px;
}

.admin-file-club-picker select {
  min-width: 300px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
  background: #ffffff;
}

.admin-file-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid #e0e7f1;
  border-radius: 8px;
  background: #f8faff;
  font-size: 13px;
}

.admin-file-breadcrumbs a {
  color: #4055bd;
  font-weight: 650;
}

.admin-file-breadcrumbs span {
  color: #9aa5b7;
}

.admin-file-manager-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr);
  gap: 14px;
}

.admin-file-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-file-dropzone {
  display: grid;
  position: relative;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  min-height: 98px;
  align-items: center;
  padding: 16px 18px;
  border: 1px dashed #b9c9df;
  border-radius: 10px;
  background: #fbfdff;
  cursor: pointer;
}

.admin-file-dropzone:hover,
.admin-file-dropzone:focus-within {
  border-color: #7b61ff;
  background: #ffffff;
}

.admin-file-dropzone > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.admin-file-folder-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid #e0e7f1;
  border-radius: 10px;
  background: #f8faff;
}

.admin-file-folder-form label {
  display: grid;
  gap: 6px;
  color: #5d6b82;
  font-size: 12px;
}

.admin-file-folder-form input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
}

.admin-file-manager-table {
  min-width: 1040px;
}

.admin-file-name-cell a {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-file-name-cell img,
.admin-file-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 7px;
  color: #53627a;
  background: #edf2f9;
  font-size: 9px;
  font-weight: 750;
  object-fit: contain;
}

.admin-file-icon.is-folder {
  color: #805a00;
  background: #fff1c7;
}

.admin-file-manager-table code {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  color: #4f5d73;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.admin-file-copy,
.admin-file-delete {
  min-height: 30px;
  margin-left: 7px;
  padding: 0 10px;
  border: 1px solid #d8e1ed;
  border-radius: 6px;
  color: #536078;
  background: #ffffff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.admin-file-delete {
  margin-left: 0;
  color: #a02d3c;
  border-color: #efcbd1;
  background: #fff8f9;
}

/* CMS user plugins */
.admin-userplugin-form {
  display: grid;
  gap: 18px;
}

.admin-userplugin-meta {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(240px, 1fr) minmax(300px, 1.4fr);
  gap: 14px;
}

.admin-userplugin-meta label,
.admin-userplugin-code-label {
  display: grid;
  gap: 7px;
  color: #5d6b82;
  font-size: 12px;
}

.admin-userplugin-meta input,
.admin-userplugin-meta select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #cbd7e8;
  border-radius: 7px;
  color: #202b43;
  background: #ffffff;
}

.admin-userplugin-code {
  width: 100%;
  min-height: 480px;
  padding: 15px;
  border: 1px solid #30405b;
  border-radius: 8px;
  color: #d8e2f0;
  background: #172033;
  font: 13px/1.55 Consolas, "Liberation Mono", monospace;
  tab-size: 2;
  resize: vertical;
}

.admin-userplugin-code:focus {
  border-color: #8064e8;
  outline: 2px solid rgba(128, 100, 232, 0.18);
}

.admin-userplugin-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-userplugin-dates span {
  padding: 8px 12px;
  border-radius: 7px;
  color: #5d6b82;
  background: #f4f7fb;
  font-size: 12px;
}

.admin-userplugin-dates strong {
  margin-left: 5px;
  color: #26324a;
}

.admin-userplugin-board {
  margin-top: 18px;
}

.admin-userplugin-table {
  min-width: 1160px;
}

.admin-userplugin-table code {
  display: block;
  max-width: 360px;
  overflow: hidden;
  color: #4f5d73;
  font: 11px/1.4 Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-userplugin-table .admin-actions-cell {
  display: flex;
  gap: 7px;
  align-items: center;
}

.admin-userplugin-delete {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #efcbd1;
  border-radius: 6px;
  color: #a02d3c;
  background: #fff8f9;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

@media (max-width: 1120px) {
  .admin-news-filter-grid,
  .admin-content-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-news-details-grid,
  .admin-content-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-news-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .admin-news-filter-grid,
  .admin-content-filter-grid {
    grid-template-columns: 1fr;
  }

  .admin-news-filter-actions {
    grid-column: auto;
  }

  .admin-news-details-grid,
  .admin-content-details-grid {
    grid-template-columns: 1fr;
  }

  .admin-news-headline-field {
    grid-column: auto;
  }

  .admin-news-headline-control {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-banner-commandbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-banner-club-picker select {
    width: 100%;
    min-width: 0;
  }

  .admin-banner-category-grid,
  .admin-banner-details-grid {
    grid-template-columns: 1fr;
  }

  .admin-banner-wide-field {
    grid-column: auto;
  }

  .admin-file-manager-tools,
  .admin-file-upload-form,
  .admin-file-folder-form {
    grid-template-columns: 1fr;
  }

  .admin-file-club-picker select {
    width: 100%;
    min-width: 0;
  }

  .admin-userplugin-meta {
    grid-template-columns: 1fr;
  }
}
.admin-file-manager-note {
  display: flex;
  margin: 0 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 16px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  color: #42526a;
  background: #f7f9fc;
  font-size: 13px;
}
.admin-file-manager-note strong { color: #172238; white-space: nowrap; }
.admin-file-manager-note a { color: #c80712; font-weight: 700; text-decoration: underline; }
@media (max-width: 720px) {
  .admin-file-manager-note { align-items: flex-start; flex-direction: column; gap: 5px; }
}

.admin-template-builtins {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dbe3ec;
}
.admin-template-builtins h3 {
  margin: 0;
  color: #172238;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-template-builtins p {
  margin: 0 0 4px;
  color: #66748a;
  font-size: 12px;
  line-height: 1.45;
}
.admin-template-builtin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e0e6ef;
  border-radius: 6px;
  background: #f8fafc;
}
.admin-template-builtin-row span {
  display: grid;
  gap: 3px;
}
.admin-template-builtin-row strong {
  color: #172238;
  font-size: 13px;
}
.admin-template-builtin-row small {
  color: #66748a;
  font-size: 11px;
}
.admin-template-builtin-row form {
  margin: 0;
}
.outline-button.compact {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 11px;
}

.admin-runtime-modules-grid {
  align-items: start;
}

.admin-runtime-module-group {
  display: block;
  margin: 14px 0 6px;
  color: #66748a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-runtime-module-group:first-child {
  margin-top: 0;
}

.admin-runtime-modules-grid .admin-website-page-item em {
  display: inline-block;
  margin-top: 5px;
  color: #5a8f1b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.admin-runtime-toggle {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
  padding: 10px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f8fafc;
  color: #172238;
  font-weight: 800;
}

.admin-runtime-toggle input {
  width: auto;
  min-height: 0;
}

.admin-runtime-warning {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid #f2b705;
  border-radius: 6px;
  background: #fff8e5;
  color: #42526a;
  font-size: 13px;
  line-height: 1.5;
}

/* Shared tablet and mobile admin layout. Keep this final so legacy page rules cannot override it. */
.admin-mobile-menu-toggle,
.admin-mobile-nav-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .admin-global-topbar {
    padding-left: 64px;
  }

  .admin-shell,
  .admin-shell.admin-app-shell {
    display: block;
    min-width: 0;
    padding-top: 58px;
  }

  .admin-shell .admin-sidebar,
  .admin-shell.admin-app-shell .admin-sidebar {
    position: fixed;
    z-index: 40;
    top: 58px;
    bottom: 0;
    left: 0;
    display: grid;
    width: min(320px, 88vw);
    padding: 16px 14px max(22px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 16px 0 38px rgba(17, 23, 45, .2);
    transform: translateX(-105%);
    transition: transform .2s ease, visibility 0s linear .2s;
    -webkit-overflow-scrolling: touch;
  }

  .admin-shell.admin-mobile-nav-open .admin-sidebar {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  /* The drawer must remain usable even if menu-access enhancement is delayed. */
  .admin-shell.admin-mobile-nav-open .admin-sidebar nav {
    visibility: visible;
  }

  .admin-mobile-menu-toggle {
    position: fixed;
    z-index: 51;
    top: 9px;
    left: max(10px, env(safe-area-inset-left));
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    cursor: pointer;
  }

  .admin-mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .admin-mobile-nav-backdrop {
    position: fixed;
    z-index: 39;
    inset: 58px 0 0;
    display: block;
    border: 0;
    background: rgba(13, 18, 34, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .admin-mobile-nav-open .admin-mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-main::after {
    left: 62px;
  }

  .admin-shell .admin-main,
  .admin-shell.admin-app-shell .admin-main {
    width: 100%;
    min-width: 0;
    padding: 22px 20px;
  }

  .admin-topbar,
  .admin-board-header,
  .admin-table-tools,
  .admin-form-actions,
  .admin-card-actions {
    flex-wrap: wrap;
  }

  .admin-shell.admin-app-shell .admin-table-tools {
    justify-content: flex-start;
    margin-top: 0;
  }

  .admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    width: max-content;
    min-width: 100%;
  }

  .admin-event-tabs {
    max-width: 100%;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .admin-event-tabs > * {
    flex: 0 0 auto;
  }

  .admin-modal-panel,
  [role="dialog"] {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }
}

@media (max-width: 720px) {
  .admin-main::after {
    top: 19px;
    font-size: 13px;
  }

  .admin-shell .admin-main,
  .admin-shell.admin-app-shell .admin-main {
    gap: 14px;
    padding: 16px 12px max(20px, env(safe-area-inset-bottom));
  }

  .admin-shell.admin-app-shell .admin-topbar h1,
  .admin-topbar h1 {
    font-size: 21px;
    line-height: 1.2;
  }

  .admin-topbar,
  .admin-board-header {
    gap: 10px;
  }

  .admin-topbar > *,
  .admin-board-header > * {
    max-width: 100%;
  }

  .admin-form-grid,
  .admin-filter-fields,
  .admin-filter-options,
  .admin-stats,
  .admin-dashboard-stats,
  .admin-dashboard-grid,
  .admin-website-metrics,
  .admin-template-builtin-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .admin-card,
  .admin-panel,
  .admin-form-card,
  .admin-board {
    max-width: 100%;
    padding: 14px;
  }

  .admin-table-tools,
  .admin-form-actions,
  .admin-card-actions {
    align-items: stretch;
    gap: 8px;
  }

  .admin-table-tools > *,
  .admin-form-actions > *,
  .admin-card-actions > * {
    max-width: 100%;
  }

  .admin-shell input:not([type="checkbox"]):not([type="radio"]),
  .admin-shell select,
  .admin-shell textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .admin-shell button,
  .admin-shell .primary-button,
  .admin-shell .outline-button {
    min-height: 42px;
  }

  .admin-event-tabs {
    gap: 14px;
  }

  .admin-shell.admin-app-shell .admin-table-wrap {
    margin-right: -4px;
    margin-left: -4px;
    border-radius: 6px;
  }

  .admin-pagination,
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .admin-filter-popover {
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
}
.admin-facebook-assisted-share{display:flex;align-items:end;justify-content:space-between;gap:20px}.admin-facebook-assisted-share label{display:grid;gap:5px;min-width:240px;color:var(--navy);font-size:13px;font-weight:700}.admin-facebook-assisted-share select{width:100%;min-height:36px;padding:0 34px 0 10px;border:1px solid #d6e0eb;border-radius:6px;outline:0;background-color:#fff;color:var(--ink);font:inherit}.admin-facebook-assisted-share select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(31,111,235,.12)}.admin-facebook-assisted-share .primary-button{flex:0 0 auto}.admin-facebook-group-row{align-items:end;margin-bottom:12px}.admin-facebook-group-row button{margin-bottom:0}@media(max-width:760px){.admin-facebook-assisted-share{align-items:stretch;flex-direction:column}.admin-facebook-assisted-share label{min-width:0}.admin-facebook-assisted-share select{min-height:42px;font-size:16px}.admin-facebook-group-row{grid-template-columns:1fr}}

/* Professional admin interface refresh */
:root {
  --navy: #172033;
  --ink: #252b3b;
  --muted: #697386;
  --line: #e4e8ef;
  --blue: #6c5ce7;
  --purple: #6c5ce7;
  --purple-soft: #f2efff;
  --purple-line: #d9d2ff;
  --surface: #f5f7fa;
  --font: "Google Sans", "Segoe UI", Arial, sans-serif;
}

.admin-shell,
.admin-shell.admin-app-shell {
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: -.005em;
}

.admin-shell::before { background: var(--surface); }

.admin-shell .admin-main::before {
  height: 64px;
  border-bottom: 1px solid #e5e9f0;
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 12px rgba(23,32,51,.05);
  backdrop-filter: blur(14px);
}

.admin-shell .admin-main::after {
  top: 20px;
  color: #172033;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.admin-shell .admin-sidebar,
.admin-shell.admin-app-shell .admin-sidebar {
  border-right: 1px solid #e1e6ed;
  padding: 20px 14px;
  color: #4f596b;
  background: #fbfcfd;
  box-shadow: 8px 0 24px rgba(23,32,51,.035);
}

.admin-shell.admin-app-shell .admin-sidebar nav { gap: 5px; }

.admin-shell.admin-app-shell .admin-sidebar nav a,
.admin-shell.admin-app-shell .admin-logout {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #596375;
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.admin-shell.admin-app-shell .admin-sidebar nav a.active,
.admin-shell.admin-app-shell .admin-sidebar nav a:hover {
  border-color: #d7e3f6;
  color: #6557dc;
  background: #f2efff;
}

.admin-subnav { margin-bottom: 12px; padding-left: 20px; }
.admin-subnav a { font-size: 13.5px !important; }
.admin-subnav-group-title { color: #7a8393; font-weight: 600; }
.admin-subnav-group-title.active { color: #6557dc; }

.admin-shell.admin-app-shell .admin-main {
  gap: 20px;
  padding: 30px clamp(22px,3vw,42px) 48px;
}

.admin-shell.admin-app-shell .admin-topbar { margin: 0 0 4px; }
.admin-shell.admin-app-shell .admin-topbar h1,
.admin-topbar h1 {
  color: #172033;
  font-size: clamp(25px,2.2vw,32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.admin-shell.admin-app-shell .admin-topbar p,
.admin-topbar p:not(.eyebrow) {
  margin-top: 5px;
  color: #737d8e;
  font-size: 13px;
}

.admin-shell .eyebrow {
  color: #6c5ce7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.admin-login-card,
.admin-board,
.admin-stats article,
.admin-card,
.admin-panel,
.admin-form-card {
  border: 1px solid #e2e7ee;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(23,32,51,.045);
}

.admin-board { padding: 22px; }
.admin-board-header { padding-bottom: 2px; }
.admin-board-header h2,
.admin-board-header h3 {
  margin: 0;
  color: #1c2435;
  font-weight: 650;
  letter-spacing: -.015em;
}
.admin-board-header p { color: #788294; font-size: 12.5px; }

.admin-shell .primary-button,
.admin-shell .outline-button,
.admin-shell button.primary-button,
.admin-shell button.outline-button {
  min-height: 40px;
  border-radius: 7px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.admin-shell .primary-button {
  border-color: #3b384d;
  background: #3b384d;
}
.admin-shell .primary-button:hover { border-color:#2e2b3d; background: #2e2b3d; }
.admin-shell .outline-button {
  border-color: #d9dfe8;
  color: #354052;
  background: #fff;
}
.admin-shell .outline-button:hover {
  border-color: #b9c6d8;
  color: #6557dc;
  background: #f8f7ff;
}

.admin-shell input:not([type="checkbox"]):not([type="radio"]),
.admin-shell select,
.admin-shell textarea {
  border: 1px solid #d9dfe8;
  border-radius: 7px;
  color: #252b3b;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(23,32,51,.02);
}
.admin-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
  border-color: #8c80ee;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(108,92,231,.12);
}

.admin-shell.admin-app-shell .admin-table-wrap {
  border: 1px solid #e3e7ed;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}
.admin-shell.admin-app-shell .admin-table th {
  border-bottom: 1px solid #dfe4eb;
  padding-top: 11px;
  padding-bottom: 11px;
  color: #697386;
  background: #f8f9fb;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.admin-shell.admin-app-shell .admin-table td {
  border-bottom-color: #ebedf2;
  padding-top: 12px;
  padding-bottom: 12px;
  color: #343c4d;
  font-size: 13px;
}
.admin-shell.admin-app-shell .admin-table tbody tr:hover { background: #f8fbff; }

.admin-dashboard-stats { gap: 14px; }
.admin-shell.admin-app-shell .admin-dashboard-stats article {
  min-height: 104px;
  padding: 18px;
}
.admin-shell.admin-app-shell .admin-dashboard-stats i {
  border-radius: 9px;
  color: #6c5ce7;
  background: #f2efff;
}
.admin-stats strong { color: #172033; font-size: 22px; font-weight: 650; }
.admin-stats span { color: #717b8d; font-weight: 500; }

.admin-event-tabs {
  gap: 24px;
  border-bottom-color: #e2e6ed;
}
.admin-event-tabs a,
.admin-event-tabs button { color: #616b7c; font-weight: 600; }
.admin-event-tabs a.active,
.admin-event-tabs button.active { border-bottom-color: #6c5ce7; color: #6557dc; }

@media (min-width: 901px) {
  .admin-shell,
  .admin-shell.admin-app-shell {
    grid-template-columns: 224px minmax(0,1fr);
    padding-top: 64px;
  }
}

@media (max-width: 900px) {
  .admin-shell .admin-main::before { height: 58px; }
  .admin-shell .admin-main::after { top: 19px; }
}

/* Reference-dashboard component language */
.admin-shell h1,
.admin-shell h2,
.admin-shell h3,
.admin-shell h4,
.admin-shell button,
.admin-shell input,
.admin-shell select,
.admin-shell textarea,
.admin-shell table {
  font-family: "Google Sans", "Segoe UI", Arial, sans-serif;
}

.admin-shell h2 { font-size: 20px; }
.admin-shell h3 { font-size: 16px; }
.admin-shell label { color: #525b6d; font-size: 12.5px; font-weight: 500; }
.admin-shell small { color: #81899a; }

.admin-shell .admin-top-home,
.admin-shell .admin-top-create,
.admin-shell .admin-table-tools .primary-button,
.admin-shell .admin-form-actions .primary-button {
  border-color: #3b384d;
  color: #fff;
  background: #3b384d;
  box-shadow: 0 3px 8px rgba(44,41,60,.14);
}

.admin-shell .admin-top-home:hover,
.admin-shell .admin-top-create:hover,
.admin-shell .admin-table-tools .primary-button:hover,
.admin-shell .admin-form-actions .primary-button:hover {
  border-color: #2e2b3d;
  background: #2e2b3d;
}

.admin-shell .admin-table-tools,
.admin-shell.admin-app-shell .admin-table-tools,
.admin-shell .admin-events-commandbar,
.admin-shell .admin-commandbar {
  border-color: #e4e7ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(23,32,51,.035);
}

.admin-shell .admin-filter-button.active,
.admin-shell .admin-chip.active,
.admin-shell .admin-segmented button.active,
.admin-shell [aria-selected="true"]:not(option) {
  border-color: #d9d2ff;
  color: #6557dc;
  background: #f2efff;
}

.admin-shell .status-pill,
.admin-shell .admin-status-pill,
.admin-shell .admin-chip {
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  color: #596273;
  background: #f8f9fb;
  font-size: 10.5px;
  font-weight: 600;
}

.admin-shell .status-pill.is-active,
.admin-shell .status-pill.active,
.admin-shell .admin-status-pill.is-active,
.admin-shell .admin-status-pill.active,
.admin-shell .status-pill.is-success,
.admin-shell .admin-status-pill.is-success {
  border-color: #a9dfc2;
  color: #18824c;
  background: #effbf4;
}

.admin-shell .status-pill.is-draft,
.admin-shell .admin-status-pill.is-draft {
  border-color: #dfe1e7;
  color: #606877;
  background: #f7f8fa;
}

.admin-shell .admin-alert,
.admin-shell .admin-success {
  border-radius: 9px;
  box-shadow: none;
  font-size: 13px;
}
.admin-shell .admin-success {
  border-color: #b7e2c9;
  color: #237448;
  background: #f0faf4;
}
.admin-shell .admin-alert {
  border-color: #f0d7a7;
  color: #805819;
  background: #fff9ed;
}

.admin-shell .admin-modal-panel,
.admin-shell [role="dialog"] {
  border: 1px solid #e2e6ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23,32,51,.18);
}

.admin-shell .admin-pagination button,
.admin-shell .admin-pagination span[data-admin-page-label] {
  border-color: #dfe3ea;
  border-radius: 7px;
  color: #525b6d;
  background: #fff;
}
.admin-shell .admin-pagination button:hover:not(:disabled) {
  border-color: #cfc7ff;
  color: #6557dc;
  background: #f5f2ff;
}

.admin-shell input::placeholder,
.admin-shell textarea::placeholder { color: #a0a7b4; }
.admin-shell input:disabled,
.admin-shell select:disabled,
.admin-shell textarea:disabled { color: #8d95a3; background: #f4f5f7; }

.admin-shell input[type="checkbox"],
.admin-shell input[type="radio"] { accent-color: #6c5ce7; }

.admin-shell .admin-board-header.compact,
.admin-shell .admin-form-section > .admin-board-header {
  border-bottom-color: #e8ebf0;
}

.admin-shell .admin-form-section {
  border-color: #e2e7ee;
  background: #fff;
}

.admin-shell a:focus-visible,
.admin-shell button:focus-visible {
  outline: 3px solid rgba(108,92,231,.2);
  outline-offset: 2px;
}

.admin-login-page {
  font-family: "Google Sans", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(120deg,rgba(7,32,52,.9),rgba(18,102,112,.66)),
    url("../../images/hero.jpg") center/cover no-repeat;
}
.admin-login-shell {
  border-color: rgba(255,255,255,.5);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(4,18,31,.28);
}
.admin-login-visual {
  background:
    linear-gradient(135deg,rgba(5,28,48,.94),rgba(17,103,111,.7)),
    url("../../images/hero.jpg") center/cover no-repeat;
}
.admin-login-card h1,
.admin-login-card h2 { color:#252b3b; font-weight:700; letter-spacing:-.025em; }
.admin-login-card .primary-button { background:#3b384d; border-color:#3b384d; }
.admin-login-card input:focus { border-color:#8c80ee; box-shadow:0 0 0 3px rgba(108,92,231,.12); }
.admin-event-delete-form { display: inline-flex; margin: 0; }
.admin-actions-cell .admin-action-delete { align-items: center; background: transparent; border: 0; border-radius: 8px; color: #b42318; cursor: pointer; display: inline-flex; height: 34px; justify-content: center; padding: 0; width: 34px; }
.admin-actions-cell .admin-action-delete:hover { background: #fef3f2; color: #912018; }
.admin-actions-cell .admin-action-delete svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 18px; }
.admin-event-notice { border: 1px solid; border-radius: 10px; margin: 0 0 18px; padding: 12px 16px; }
.admin-event-notice-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.admin-event-notice-error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.admin-nor-schedule-summary{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px;padding:12px;border-radius:8px;background:var(--surface,#f7faff)}.admin-nor-schedule-summary>span{padding:5px 9px;border:1px solid var(--line,#e2eaf4);border-radius:999px;color:var(--muted,#6d7a8b);background:#fff;font-size:11px}.admin-nor-schedule-summary strong{color:var(--ink,#172b45)}.admin-nor-schedule-fields{display:grid;gap:12px}.admin-nor-schedule-item{display:grid;grid-template-columns:minmax(150px,1.25fr) repeat(3,minmax(105px,.7fr));align-items:end;gap:12px;padding:14px;border:1px solid var(--line,#e2eaf4);border-radius:8px}.admin-nor-schedule-item>div{display:grid;align-self:center}.admin-nor-schedule-item small{color:var(--muted,#6d7a8b)}.admin-nor-schedule-item label{display:grid;gap:6px;font-size:12px;font-weight:700}.admin-nor-schedule-item input,.admin-nor-schedule-item select{width:100%;min-height:40px;padding:8px 10px;border:1px solid #cbd6e2;border-radius:7px;background:#fff;font:inherit}@media(max-width:900px){.admin-nor-schedule-item{grid-template-columns:1fr 1fr}.admin-nor-schedule-item>div{grid-column:1/-1}}@media(max-width:560px){.admin-nor-schedule-item{grid-template-columns:1fr}}
.admin-nor-schedule-item{grid-template-columns:minmax(150px,1.25fr) repeat(4,minmax(105px,.7fr))}
.admin-nor-schedule-item{grid-template-columns:minmax(150px,1.25fr) repeat(4,minmax(105px,.7fr))}@media(max-width:900px){.admin-nor-schedule-item{grid-template-columns:1fr 1fr}.admin-nor-schedule-item>div{grid-column:1/-1}}@media(max-width:560px){.admin-nor-schedule-item{grid-template-columns:1fr}}
.admin-nor-schedule-summary {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
}
.admin-nor-schedule-day {
  overflow: hidden;
  border: 1px solid var(--line, #e2eaf4);
  border-radius: 9px;
  background: #fff;
}
.admin-nor-schedule-day > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  color: var(--ink, #172b45);
  background: var(--surface, #f7faff);
}
.admin-nor-schedule-day > header > strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-nor-schedule-day > header > span {
  color: var(--muted, #6d7a8b);
  font-size: 11px;
}
.admin-nor-schedule-day > div {
  display: grid;
}
.admin-nor-schedule-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 40px;
  padding: 8px 13px;
  border-top: 1px solid var(--line, #edf1f6);
  color: var(--ink, #172b45);
  font-size: 12px;
}
.admin-nor-schedule-summary-item:first-child {
  border-top: 0;
}
.admin-nor-schedule-summary-item time {
  color: var(--muted, #6d7a8b);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.admin-nor-schedule-empty {
  margin: 0;
  padding: 13px;
  border-radius: 8px;
  color: var(--muted, #6d7a8b);
  background: var(--surface, #f7faff);
}
.admin-nor-schedule-status {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  padding: 15px 17px;
  border: 1px solid;
  border-radius: 12px;
}
.admin-nor-schedule-status.is-complete {
  border-color: #9eddb7;
  color: #12683b;
  background: #ecf9f1;
}
.admin-nor-schedule-status.is-incomplete {
  border-color: #f0d595;
  color: #805b12;
  background: #fff9e9;
}
.admin-nor-schedule-status.is-advisory {
  border-color: #b9d7ee;
  color: #245b7a;
  background: #f1f8fd;
}
.admin-nor-schedule-status-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.admin-nor-schedule-status.is-complete .admin-nor-schedule-status-icon { background: #23965a; }
.admin-nor-schedule-status.is-incomplete .admin-nor-schedule-status-icon { background: #c58a18; }
.admin-nor-schedule-status.is-advisory .admin-nor-schedule-status-icon { background: #397fa7; }
.admin-nor-schedule-status strong { display: block; font-size: 14px; }
.admin-nor-schedule-status p { margin: 3px 0 0; color: inherit; font-size: 12.5px; }
.admin-nor-form {
  display: grid;
  gap: 20px;
}
.admin-nor-form > .admin-board,
.admin-nor-form > .admin-form-actions {
  margin: 0;
}
.admin-nor-autosave-status {
  margin-right: auto;
  color: var(--muted, #6d7a8b);
  font-size: 13px;
  font-weight: 700;
}
.admin-nor-autosave-status[data-state="saving"],
.admin-nor-autosave-status[data-state="pending"] { color: #805b12; }
.admin-nor-autosave-status[data-state="saved"] { color: #12683b; }
.admin-nor-autosave-status[data-state="error"] { color: #a23a32; }
.admin-nor-prize-builder {
  display: grid;
  gap: 18px;
}
.admin-nor-prize-builder > label:not(.admin-checkbox) {
  display: grid;
  gap: 8px;
}
.admin-nor-prize-builder .admin-entry-category-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.admin-nor-prize-builder .admin-entry-category-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #f8fbff;
}
.admin-nor-overall-row {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-nor-overall-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, .55fr)) minmax(260px, 1.8fr);
  gap: 7px;
  flex: 1 1 590px;
}
.admin-nor-overall-options > label,
.admin-nor-overall-other-option {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #f8fbff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.25;
}
.admin-nor-overall-options > label:has(input:checked),
.admin-nor-overall-other-option:has(input[type="checkbox"]:checked) {
  border-color: #8da5ff;
  background: #eef2ff;
}
.admin-nor-overall-options input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
}
.admin-nor-overall-other-option {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  gap: 8px;
  cursor: default;
}
.admin-nor-overall-other-option > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.admin-nor-overall-other-option > input[type="text"] {
  min-width: 0;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid #dbe5f2;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
}
.admin-nor-prize-builder legend small {
  margin-left: 5px;
  color: #718096;
  font-size: 12px;
  font-weight: 500;
}
.admin-nor-prize-preview {
  padding: 16px 18px;
  border: 1px solid #b9dfc9;
  border-radius: 12px;
  background: #f0faf4;
  color: #23593b;
}
.admin-nor-prize-preview.is-incomplete {
  border-color: #f0d595;
  background: #fff9e9;
  color: #805b12;
}
.admin-nor-prize-preview.is-complete {
  border-color: #b9dfc9;
  background: #f0faf4;
  color: #23593b;
}
.admin-nor-prize-preview strong { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.admin-nor-prize-preview-tick {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22a861;
  color: #fff;
  font-size: 13px;
}
.admin-nor-prize-preview-tick[hidden] { display: none; }
.admin-nor-prize-preview-tick.is-incomplete {
  background: #c58a18;
}
.admin-nor-prize-preview p { margin: 0; line-height: 1.6; }
.admin-nor-contact-status {
  margin-top: 16px;
}
.admin-nor-optional-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2f8;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.admin-nor-optional-input {
  padding: 16px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #f8fbff;
}
.admin-nor-optional-input label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #334155;
  font-weight: 650;
}
.admin-nor-optional-input textarea {
  min-height: 110px;
  border-color: #cdd9e8;
  background: #fff;
  font-weight: 400;
}
@media(max-width:560px) {
  .admin-nor-overall-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-basis: 100%;
  }
  .admin-nor-overall-other-option {
    grid-column: 1 / -1;
  }
  .admin-nor-schedule-day > header,
  .admin-nor-schedule-summary-item {
    align-items: start;
  }
  .admin-nor-schedule-summary-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
.admin-app-shell .admin-thq-edit-table { min-width: 660px; }
.admin-app-shell .admin-thq-edit-table input { width: 100%; min-width: 100px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #24384b; font: inherit; }
.admin-app-shell .admin-thq-edit-table th:first-child { width: 40%; }
.admin-app-shell .admin-thq-edit-table th:last-child,
.admin-app-shell .admin-thq-edit-table td:last-child { width: 100px; }
.admin-entry-category-fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.admin-entry-category-fieldset legend {
  padding: 0 5px;
  color: #26344f;
  font-size: 13px;
  font-weight: 700;
}

.admin-entry-category-options {
  margin: 0 0 10px;
}

.admin-entry-category-options input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.admin-entry-category-fieldset small {
  display: block;
  color: #66748a;
  font-size: 12px;
  line-height: 1.45;
}

.admin-entry-extra-fields textarea {
  width: 100%;
  margin: 0 0 10px;
  box-sizing: border-box;
}

.admin-registration-payment-methods {
  margin-top: 18px;
}

.admin-registration-offline-url {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  background: #f8fbff;
}

.admin-registration-offline-url label {
  display: grid;
  gap: 8px;
}

.admin-registration-offline-url small {
  color: #607286;
  line-height: 1.45;
}

.admin-registration-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  align-items: stretch;
}

.admin-registration-group > .admin-form-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

[data-late-entry-detail][hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .admin-registration-groups {
    grid-template-columns: 1fr;
  }
}

form:has([name="recipient_email"]) label:has([name="late_entry_conditions"]),
form:has([name="recipient_email"]) label:has([name="payment_method"]) {
  display: none !important;
}

/* Soft admin theme — inspired by the light, calm regatta-management reference. */
:root {
  --navy: #17223b;
  --ink: #29334d;
  --muted: #758097;
  --line: #e3e7f0;
  --blue: #5746e8;
  --purple: #5746e8;
  --purple-soft: #f1efff;
  --purple-line: #d8d2ff;
  --surface: #f7f8fb;
}

.admin-shell,
.admin-shell.admin-app-shell {
  background: var(--surface);
  color: var(--ink);
}

.admin-shell::before { background: var(--surface); }

.admin-global-topbar,
.admin-app-shell .admin-global-topbar {
  height: 72px;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid #e3e6ee;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 rgba(20,29,50,.02);
  backdrop-filter: blur(18px);
}

.admin-top-brand {
  width: 340px;
  height: 72px;
  color: var(--navy);
}

.admin-top-brand::before {
  width: 334px;
  height: 68px;
  background-image: url("../../images/main_logo_whitebg.png");
}

.admin-global-search {
  width: min(390px,30vw);
  height: 42px;
  border-color: #dfe3ec;
  border-radius: 10px;
  color: #8a94a8;
  background: #fafbfc;
}

.admin-global-search input,
.admin-global-search input::placeholder { color: #8993a7; }

.admin-upgrade-link,
.admin-admin-menu,
.admin-top-note { color: #59647a; }

.admin-top-create + .admin-upgrade-link { color: #6254d8; }

.admin-top-create + .admin-upgrade-link,
.admin-upgrade-link + .admin-admin-menu { border-left-color: #e2e5ec; }

.admin-avatar {
  border-color: #dcd8ff;
  color: #5746e8;
  background: #f1efff;
}

.admin-top-home,
.admin-shell .admin-top-home {
  border-color: #dfe3eb;
  color: #606b80;
  background: #fff;
}

.admin-top-home:hover,
.admin-shell .admin-top-home:hover {
  border-color: #c8c1ff;
  color: #5746e8;
  background: #f7f5ff;
}

.admin-top-create,
.admin-shell .admin-top-create {
  width: 40px;
  border: 1px solid #5746e8;
  border-radius: 9px;
  color: #fff;
  background: #5746e8;
  box-shadow: 0 7px 16px rgba(87,70,232,.19);
}

.admin-top-create:hover,
.admin-shell .admin-top-create:hover {
  border-color: #4938d0;
  background: #4938d0;
}

@media (min-width: 1181px) {
  .admin-shell,
  .admin-shell.admin-app-shell,
  .admin-app-shell {
    grid-template-columns: 236px minmax(0,1fr);
    padding-top: 72px;
  }
}

.admin-shell .admin-sidebar,
.admin-shell.admin-app-shell .admin-sidebar,
.admin-app-shell .admin-sidebar {
  min-height: calc(100vh - 72px);
  padding: 24px 14px;
  border-right: 1px solid #e6e9f0;
  background: #fcfcfe;
  box-shadow: none;
}

.admin-shell.admin-app-shell .admin-sidebar nav { gap: 5px; }

.admin-shell.admin-app-shell .admin-sidebar nav a,
.admin-shell.admin-app-shell .admin-logout {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 9px;
  color: #5b6579;
  font-size: 14.5px;
  font-weight: 550;
}

.admin-shell.admin-app-shell .admin-sidebar nav a.active,
.admin-shell.admin-app-shell .admin-sidebar nav a:hover {
  border-color: transparent;
  color: #5746e8;
  background: #f0efff;
}

.admin-shell.admin-app-shell .admin-sidebar nav a.active {
  box-shadow: inset 3px 0 0 #5746e8;
  font-weight: 650;
}

.admin-subnav { margin-bottom: 14px; }
.admin-subnav-group-title { color: #8a92a2; }
.admin-logout { margin-top: 20px; }

.admin-shell.admin-app-shell .admin-main,
.admin-app-shell .admin-main {
  gap: 24px;
  padding: 34px clamp(24px,3.4vw,52px) 56px;
}

.admin-shell.admin-app-shell .admin-topbar,
.admin-app-shell .admin-topbar {
  min-height: 66px;
  margin: 0;
}

.admin-shell.admin-app-shell .admin-topbar h1,
.admin-app-shell .admin-topbar h1,
.admin-topbar h1 {
  color: #101a31;
  font-size: clamp(26px,2.2vw,32px);
  font-weight: 700;
  letter-spacing: -.025em;
}

.admin-shell.admin-app-shell .admin-topbar p,
.admin-topbar p:not(.eyebrow) {
  margin-top: 7px;
  color: #69758b;
  font-size: 14px;
}

.admin-help-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  color: #59647a;
  background: #fff;
  font-weight: 600;
}

.admin-help-link:hover {
  border-color: #cbc5ff;
  color: #5746e8;
  background: #f8f7ff;
}

.admin-login-card,
.admin-board,
.admin-stats article,
.admin-card,
.admin-panel,
.admin-form-card {
  border: 1px solid #e2e6ee;
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 4px 14px rgba(29,38,66,.045);
}

.admin-board { padding: 24px; }

.admin-board-header { margin-bottom: 17px; }

.admin-board-header h2,
.admin-board-header h3 {
  color: #182139;
  font-weight: 650;
}

.admin-board-header p { margin-top: 5px; color: #7b8598; }

.admin-dashboard-stats { gap: 16px; }

.admin-shell.admin-app-shell .admin-dashboard-stats article {
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto auto auto;
  min-height: 128px;
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-shell.admin-app-shell .admin-dashboard-stats article:hover {
  border-color: #d8dcec;
  box-shadow: 0 10px 26px rgba(29,38,66,.075);
  transform: translateY(-2px);
}

.admin-shell.admin-app-shell .admin-dashboard-stats i {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #5746e8;
  background: #e9e8ff;
}

.admin-dashboard-stats i svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-shell.admin-app-shell .admin-dashboard-stats span {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  color: #6d778c;
  font-size: 13px;
  font-weight: 550;
}

.admin-shell.admin-app-shell .admin-dashboard-stats strong {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  color: #121b31;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
}

.admin-shell.admin-app-shell .admin-dashboard-stats small {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 8px;
  color: #929aac;
  font-weight: 500;
}

.admin-shell.admin-app-shell .admin-dashboard-stats .admin-stat-upcoming i { color: #2870dc; background: #e7f0ff; }
.admin-shell.admin-app-shell .admin-dashboard-stats .admin-stat-live i { color: #dd525f; background: #ffeaed; }
.admin-shell.admin-app-shell .admin-dashboard-stats .admin-stat-complete i { color: #16a164; background: #dcf7e8; }
.admin-shell.admin-app-shell .admin-dashboard-stats .admin-stat-draft i { color: #db8c16; background: #fff2cf; }

.admin-dashboard-grid-wide {
  grid-template-columns: minmax(0,1.55fr) minmax(330px,.72fr);
  gap: 18px;
}

.admin-dashboard-side { gap: 18px; }

.admin-event-list article {
  min-height: 66px;
  border-bottom-color: #eceef3;
}

.admin-event-list h3 { color: #1d2740; font-weight: 650; }

.admin-event-list .admin-event-edit-icon {
  border-color: #e0e4ec;
  border-radius: 9px;
  color: #667188;
}

.admin-event-list .admin-event-edit-icon:hover {
  border-color: #cbc5ff;
  color: #5746e8;
  background: #f5f3ff;
}

.admin-action-board > a {
  min-height: 48px;
  border-color: #eaecf2;
  border-radius: 10px;
  color: #33405a;
  background: #fafbfc;
  font-weight: 600;
}

.admin-action-board > a:hover {
  border-color: #d6d0ff;
  background: #f6f4ff;
  transform: translateX(2px);
}

.admin-action-board > a > strong { color: #5746e8; font-size: 14px; }

.admin-system-log-item {
  border-color: #eceef3;
  border-radius: 10px;
  background: #fafbfc;
}

.admin-shell .primary-button,
.admin-shell .admin-top-create,
.admin-shell .admin-table-tools .primary-button,
.admin-shell .admin-form-actions .primary-button {
  border-color: #5746e8;
  color: #fff;
  background: #5746e8;
  box-shadow: 0 6px 14px rgba(87,70,232,.16);
}

.admin-shell .primary-button:hover,
.admin-shell .admin-top-create:hover,
.admin-shell .admin-table-tools .primary-button:hover,
.admin-shell .admin-form-actions .primary-button:hover {
  border-color: #4938d0;
  background: #4938d0;
}

.admin-shell .outline-button,
.admin-shell button.outline-button {
  border-color: #d9dee8;
  border-radius: 9px;
  color: #3f4a61;
  background: #fff;
}

.admin-shell .outline-button:hover,
.admin-shell button.outline-button:hover {
  border-color: #c9c2ff;
  color: #5746e8;
  background: #f8f7ff;
}

.admin-shell input:not([type="checkbox"]):not([type="radio"]),
.admin-shell select,
.admin-shell textarea {
  border-color: #d9dee8;
  border-radius: 9px;
  background-color: #fff;
}

.admin-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
  border-color: #8275ec;
  box-shadow: 0 0 0 3px rgba(87,70,232,.11);
}

.admin-shell.admin-app-shell .admin-table-wrap {
  border-color: #e2e6ee;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(29,38,66,.035);
}

.admin-shell.admin-app-shell .admin-table th {
  border-bottom-color: #e4e7ee;
  color: #647086;
  background: #fafbfc;
  font-size: 11px;
}

.admin-shell.admin-app-shell .admin-table td { border-bottom-color: #eceef3; }
.admin-shell.admin-app-shell .admin-table tbody tr:hover { background: #f8f7ff; }

.admin-shell .status-pill,
.admin-shell .admin-status-pill,
.admin-shell .admin-chip { border-color: #dfe3ea; background: #f8f9fb; }

.admin-event-tabs { border-bottom-color: #e1e5ed; }
.admin-event-tabs a,
.admin-event-tabs button { color: #687287; font-weight: 600; }
.admin-event-tabs a.active,
.admin-event-tabs button.active { border-bottom-color: #5746e8; color: #5746e8; }

.admin-help-dialog,
.admin-shell .admin-modal-panel,
.admin-shell [role="dialog"] {
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(23,31,54,.2);
}

@media (max-width: 1180px) {
  .admin-global-topbar,
  .admin-app-shell .admin-global-topbar { height: 64px; padding-left: 64px; }
  .admin-top-brand { height: 64px; }
  .admin-shell .admin-sidebar,
  .admin-shell.admin-app-shell .admin-sidebar,
  .admin-app-shell .admin-sidebar { min-height: calc(100vh - 58px); }
}

@media (max-width: 720px) {
  .admin-global-topbar { gap: 9px; padding-right: 12px; }
  .admin-top-brand { width: 176px; }
  .admin-top-brand::before { width: 174px; height: 53px; }
  .admin-global-search,
  .admin-upgrade-link,
  .admin-admin-menu { display: none; }
  .admin-shell.admin-app-shell .admin-main,
  .admin-app-shell .admin-main { padding-top: 20px; }
  .admin-shell.admin-app-shell .admin-dashboard-stats article { min-height: 112px; }
  .admin-dashboard-grid-wide { grid-template-columns: minmax(0,1fr); }
}

.admin-uploaded-documents-table {
  min-width: 920px;
  table-layout: fixed;
}

.admin-uploaded-documents-table th:nth-child(1) { width: 23%; }
.admin-uploaded-documents-table th:nth-child(2) { width: 18%; }
.admin-uploaded-documents-table th:nth-child(3) { width: 20%; }
.admin-uploaded-documents-table th:nth-child(4) { width: 15%; }
.admin-uploaded-documents-table th:nth-child(5) { width: 24%; }

.admin-uploaded-documents-table td {
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.admin-nor-document-row td:first-child strong,
.admin-nor-document-row td:first-child small {
  display: block;
}

.admin-nor-document-row td:first-child small {
  margin-top: 3px;
  color: #68758a;
  font-size: 11.5px;
}

.admin-document-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-document-row-actions .outline-button,
.admin-document-row-actions .primary-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
}

.admin-document-delete-button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #f0c4c1;
  border-radius: 7px;
  background: #fff7f6;
  color: #b42318;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.admin-document-delete-button:hover {
  border-color: #e59d97;
  background: #fef0ee;
}

/* Regatta-focused interaction polish shared with the public experience. */
.admin-shell {
  --admin-action: #087cf0;
  --admin-action-hover: #056bd3;
  --admin-action-soft: #eaf4ff;
  --admin-control-ink: #0a1733;
  --admin-control-line: #cdd9e6;
  --admin-action-shadow: 0 8px 20px rgba(8, 124, 240, .2);
}

.admin-shell :is(a.primary-button, button.primary-button, input.primary-button) {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--admin-action);
  border-radius: 999px !important;
  color: #fff;
  background: linear-gradient(135deg, #0a86fa, var(--admin-action)) !important;
  box-shadow: var(--admin-action-shadow) !important;
  font-weight: 750;
  letter-spacing: .005em;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.admin-shell :is(a.primary-button, button.primary-button, input.primary-button):hover {
  border-color: var(--admin-action-hover);
  background: linear-gradient(135deg, #0879e8, var(--admin-action-hover));
  box-shadow: 0 11px 24px rgba(8, 105, 214, .26);
  transform: translateY(-1px);
}

.admin-shell :is(a.outline-button, button.outline-button):not(.admin-danger-button) {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--admin-control-line);
  border-radius: 999px !important;
  color: var(--admin-control-ink);
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(10, 23, 51, .05) !important;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease;
}

.admin-shell :is(a.outline-button, button.outline-button):not(.admin-danger-button):hover {
  border-color: #9fc8f5;
  color: var(--admin-action-hover);
  background: var(--admin-action-soft);
  box-shadow: 0 7px 17px rgba(10, 79, 150, .1);
  transform: translateY(-1px);
}

.admin-shell :is(.admin-filter-button, .admin-event-quick-buttons button, .admin-mini-tabs button, .admin-pagination button) {
  border-radius: 999px !important;
}

.admin-shell :is(.admin-actions-cell, .admin-document-row-actions, .admin-table-tools) :is(.primary-button, .outline-button) {
  min-height: 34px;
  padding: 0 12px;
  box-shadow: none !important;
  font-size: 12px;
}

.admin-shell :is(.admin-board, .admin-dashboard-stats article, .admin-table-wrap, .admin-card) {
  border-radius: 14px;
}

.admin-shell :is(.admin-board, .admin-dashboard-stats article, .admin-card) {
  box-shadow: 0 6px 20px rgba(20, 39, 68, .055);
}

.admin-shell :is(a.primary-button, button.primary-button, input.primary-button, a.outline-button, button.outline-button):disabled,
.admin-shell :is(a.primary-button, button.primary-button, a.outline-button, button.outline-button).is-disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: .58;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .admin-shell :is(a.primary-button, button.primary-button, a.outline-button, button.outline-button) { transition: none; }
  .admin-shell :is(a.primary-button, button.primary-button, a.outline-button, button.outline-button):hover { transform: none; }
}
.admin-notice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-notice-actions form {
  margin: 0;
}

