@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;
}

.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-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-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-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-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-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-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-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;
  }
}

/* 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;
}

.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-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-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-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.85fr) minmax(320px, 1.25fr) minmax(220px, 0.85fr);
  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 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-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-club-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;
}
