:root {
  --brand: #003d9b;
  --brand-dark: #001848;
  --brand-strong: #0052cc;
  --accent: #006c47;
  --page: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f0f3ff;
  --surface-tint: #e7eeff;
  --surface-strong: #d6e3ff;
  --border: #dfe1e6;
  --border-strong: #c3c6d6;
  --outline: #737685;
  --text: #091c35;
  --muted: #434654;
  --danger-bg: #ffdad6;
  --danger: #ba1a1a;
  --danger-border: #ffb4ab;
  --success-bg: #dff8ea;
  --success: #006c47;
  --success-border: #8af5be;
  --warning-bg: #ffdbcf;
  --warning: #7b2600;
  --shadow: 0 4px 8px rgba(9, 30, 66, 0.08);
  --sidebar: #20314b;
  --sidebar-text: #ecf0ff;
  --sidebar-muted: rgba(236, 240, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--page);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--surface);
  color: var(--text);
  padding: 1rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04);
}

.site-header h1 {
  max-width: 1120px;
  margin: 0 auto;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 750;
  letter-spacing: 0;
}

.admin-nav {
  max-width: 1120px;
  margin: 0.85rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-nav a {
  color: var(--brand-dark);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-nav a:hover {
  background: #eaf2f8;
  border-color: var(--border-strong);
  text-decoration: none;
}

.site-main {
  width: min(100%, 720px);
  margin: 1.5rem auto;
  padding: 0 1rem 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow);
}

.form-intro,
.card > p:first-child {
  margin-top: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.form-intro {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #eff6ff;
}

.intro-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--brand-dark);
  font-weight: 700;
}

.intro-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 900;
}

form {
  margin: 0;
}

label,
.field-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
input[type="password"],
input[type="time"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select {
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.16);
}

input:disabled,
select:disabled,
button:disabled {
  cursor: not-allowed;
  background: #eef2f7;
  color: var(--muted);
}

input[type="checkbox"] {
  accent-color: var(--brand);
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  padding: 0.65rem 1.05rem;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.18);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 76, 129, 0.22);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--border-strong);
  box-shadow: none;
}

.btn-outline:hover {
  background: #eef6fb;
  color: var(--brand-dark);
  border-color: var(--brand);
  box-shadow: none;
}

.alert {
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 650;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.countdown-box {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--brand-dark);
}

.countdown-box span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.countdown-box strong {
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  line-height: 1.2;
}

.countdown-open {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success);
}

.preselection {
  display: grid;
  gap: 1rem;
}

.preselection-heading {
  display: grid;
  gap: 0.2rem;
}

.preselection-kicker {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preselection-heading h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.25;
}

.preselection-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.selection-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.selection-step legend {
  width: 100%;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
}

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

.choice-card {
  position: relative;
  display: block;
  margin: 0;
  color: var(--text);
  cursor: pointer;
}

.choice-card-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.choice-card-content {
  min-height: 86px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 2px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.choice-card:hover .choice-card-content {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(9, 28, 53, 0.1);
}

.choice-card-input:focus-visible + .choice-card-content {
  outline: 3px solid rgba(0, 82, 204, 0.28);
  outline-offset: 2px;
}

.choice-card-input:checked + .choice-card-content {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.16);
}

.choice-card-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(0, 61, 155, 0.12);
  color: var(--brand-dark);
  font-weight: 900;
}

.choice-card-text {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.choice-card-text strong {
  overflow-wrap: anywhere;
  color: inherit;
  font-size: 0.96rem;
  line-height: 1.25;
}

.choice-card-text small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.3;
}

.choice-card-check {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-strong);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.choice-card-input:checked + .choice-card-content .choice-card-check {
  opacity: 1;
  transform: scale(1);
}

.choice-card-tone-1 .choice-card-content {
  border-color: #a9c4f5;
  background: #eef4ff;
}

.choice-card-tone-2 .choice-card-content {
  border-color: #9bdfbd;
  background: #edfbf4;
}

.choice-card-tone-2 .choice-card-icon {
  background: #c9f2dc;
  color: #005c3c;
}

.choice-card-tone-3 .choice-card-content {
  border-color: #f0c880;
  background: #fff8e8;
}

.choice-card-tone-3 .choice-card-icon {
  background: #ffe4ad;
  color: #744800;
}

.choice-card-tone-4 .choice-card-content {
  border-color: #cbb7ef;
  background: #f7f1ff;
}

.choice-card-tone-4 .choice-card-icon {
  background: #e5d7ff;
  color: #51318a;
}

.choice-card-women .choice-card-content {
  border-color: #f2afc8;
  background: #fff1f6;
}

.choice-card-women .choice-card-icon {
  background: #ffd7e5;
  color: #9d174d;
}

.choice-card-women .choice-card-input:checked + .choice-card-content {
  border-color: #be185d;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14);
}

.choice-card-men .choice-card-content {
  border-color: #a9c4f5;
  background: #eef5ff;
}

.choice-card-men .choice-card-icon {
  background: #d4e5ff;
  color: #1d4ed8;
}

.selection-feedback {
  min-height: 1.35rem;
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.registration-stage {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.55rem;
  margin: 0.45rem 0 1rem;
}

.day-grid label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  font-weight: 650;
}

.day-grid input {
  width: auto;
  margin: 0;
}

table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.9rem;
}

table.data th,
table.data td {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

table.data th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef4f9;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data tbody tr:nth-child(even) td {
  background: #fbfdff;
}

table.data tbody tr:hover td {
  background: #f1f7fb;
}

table.data .btn {
  min-height: 32px;
  padding: 0.28rem 0.55rem;
  font-size: 0.85rem;
  box-shadow: none;
}

table.data form {
  display: inline-flex;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.46);
}

.modal-backdrop.show {
  display: flex;
}

.modal-box {
  width: min(100%, 420px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.modal-box h2 {
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.modal-box p {
  margin: 0 0 1rem;
}

.action-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.action-list a {
  display: block;
  min-height: 76px;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
}

.action-list a:hover {
  border-color: var(--brand);
  background: #eef6fb;
  text-decoration: none;
}

.g-recaptcha {
  width: 304px;
  max-width: 100%;
  min-height: 78px;
  margin: 0.25rem 0 1rem;
  overflow: visible;
}

.g-recaptcha iframe {
  display: block;
  max-width: 100%;
}

.g-recaptcha > div {
  height: 85px !important;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.25rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 650;
}

.consent-line input {
  flex: 0 0 auto;
  width: auto;
  margin: 0.25rem 0 0;
}

.consent-line span {
  min-width: 0;
}

.consent-line a {
  color: #475569;
  border-bottom: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.consent-line a:hover,
.consent-line a:focus {
  color: #1f2937;
  border-bottom-color: #94a3b8;
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-main {
    margin-top: 1rem;
  }

  .row2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .admin-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  table.data {
    font-size: 0.84rem;
  }

  table.data th,
  table.data td {
    padding: 0.6rem;
  }
}

.admin-body {
  background: #f3f6fb;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--brand);
  color: #ffffff;
  padding: 1rem;
  transition: width 0.2s ease, transform 0.2s ease;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.admin-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.1rem;
}

.admin-menu {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
}

.admin-menu a:hover,
.admin-menu a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
}

.admin-menu-icon {
  width: 1.4rem;
  text-align: center;
  font-size: 1rem;
}

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

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
  padding: 0.9rem clamp(1rem, 3vw, 1.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04);
}

.admin-title {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.admin-subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.sidebar-toggle {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-content {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 1.25rem;
}

.admin-content.wide {
  width: min(100%, 1320px);
}

.sidebar-collapsed .admin-shell {
  grid-template-columns: 84px minmax(0, 1fr);
}

.sidebar-collapsed .admin-sidebar {
  padding-inline: 0.7rem;
}

.sidebar-collapsed .admin-brand-text,
.sidebar-collapsed .admin-menu-text {
  display: none;
}

.sidebar-collapsed .admin-brand {
  justify-content: center;
}

.sidebar-collapsed .admin-menu a {
  justify-content: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 112px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eaf2f8;
  color: var(--brand-dark);
  font-weight: 850;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.stat-value {
  margin: 0.1rem 0 0;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 850;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.facility-card {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.facility-card strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1rem;
}

.facility-card span {
  color: var(--muted);
  font-weight: 700;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.link-button:hover {
  background: #eef6fb;
  border-color: var(--brand);
  text-decoration: none;
}

.sidebar-backdrop {
  display: none;
}

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

  .admin-sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: 270px;
    transform: translateX(-100%);
  }

  .sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
  }

  .sidebar-collapsed .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-collapsed .admin-brand-text,
  .sidebar-collapsed .admin-menu-text {
    display: inline;
  }

  .sidebar-collapsed .admin-menu a,
  .sidebar-collapsed .admin-brand {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .choice-grid,
  .choice-grid-gender {
    grid-template-columns: 1fr;
  }

  .choice-card-content {
    min-height: 78px;
  }
}

/* Stitch civic management system */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
}

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

.admin-body {
  background: var(--page);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body h4 {
  font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.admin-body a {
  color: inherit;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 12px;
  overflow-y: auto;
  background: var(--sidebar);
  color: var(--sidebar-text);
  border-right: 1px solid rgba(195, 198, 214, 0.35);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 24px;
  border-bottom: 1px solid rgba(214, 227, 255, 0.12);
}

.admin-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--brand-strong);
  color: #ffffff;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.admin-brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-brand-text strong {
  color: #ffffff;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
}

.admin-brand-text small {
  color: var(--sidebar-muted);
  font-size: 12px;
  line-height: 18px;
}

.admin-menu {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.admin-menu a,
.admin-logout {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--sidebar-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.admin-menu a:hover,
.admin-logout:hover {
  background: rgba(214, 227, 255, 0.09);
  color: #ffffff;
  text-decoration: none;
}

.admin-menu a.active {
  background: var(--brand-strong);
  color: #c4d2ff;
  font-weight: 800;
}

.admin-menu-icon {
  width: 22px;
  flex: 0 0 22px;
  text-align: center;
}

.admin-sidebar-footer {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding: 24px 0 0;
  border-top: 1px solid rgba(214, 227, 255, 0.12);
}

.admin-body .btn,
.admin-body button.btn {
  min-height: 36px;
  gap: 6px;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--brand-strong);
  color: #ffffff;
  border-color: var(--brand-strong);
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
  transform: none;
}

.admin-body .btn:hover,
.admin-body button.btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
  text-decoration: none;
  transform: none;
}

.admin-body .btn-outline,
.admin-body button.btn-outline {
  background: #ffffff;
  color: var(--brand);
  border-color: var(--border-strong);
}

.admin-body .btn-outline:hover,
.admin-body button.btn-outline:hover {
  background: var(--surface-soft);
  color: var(--brand);
  border-color: var(--brand);
}

.admin-body .btn-danger,
.admin-body button.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.admin-body .btn-sidebar {
  width: 100%;
  justify-content: center;
  background: var(--brand-strong);
  color: #ffffff;
  border-color: var(--brand-strong);
}

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

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: #f9f9ff;
  border-bottom: 1px solid var(--border-strong);
  box-shadow: none;
}

.admin-topbar-left,
.admin-topbar-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-toggle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
}

.topbar-kicker,
.topbar-section {
  margin: 0;
}

.topbar-kicker {
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
}

.topbar-section {
  color: var(--text);
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.topbar-search {
  position: relative;
  display: block;
  width: min(30vw, 280px);
  margin: 0;
}

.topbar-search .material-symbols-outlined {
  position: absolute;
  left: 10px;
  top: 50%;
  color: var(--outline);
  font-size: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.topbar-search input {
  min-height: 34px;
  margin: 0;
  padding: 7px 10px 7px 34px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  box-shadow: none;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--border-strong);
}

.admin-user-avatar {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--brand-dark);
  border: 1px solid var(--border-strong);
  font-weight: 800;
}

.admin-user-name {
  max-width: 160px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-name small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 16px;
}

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

.course-filter-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
}

.person-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.field-span-all {
  grid-column: 1 / -1;
}

.course-select-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.course-select-heading > label {
  margin: 0;
}

.archive-course-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.archive-course-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
}

.filter-actions .btn {
  white-space: nowrap;
}

.search-panel,
.search-results-panel {
  margin-top: 16px;
}

.btn-small {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.pagination a {
  min-width: 34px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
}

.pagination a.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.fill-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.fill-chart-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.fill-chart-card h2 {
  margin: 4px 0;
  font-size: 20px;
}

.fill-chart-card p:not(.page-kicker) {
  margin: 0;
  color: var(--muted);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.chart-card-body {
  min-height: 230px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.donut {
  width: 150px;
  height: 150px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
}

.donut::after {
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
}

.fill-donut {
  background: conic-gradient(var(--brand) calc(var(--chart-value) * 1%), #e5e7eb 0);
}

.fill-donut.secondary {
  background: conic-gradient(#dc2626 calc(var(--chart-value) * 1%), #e5e7eb 0);
}

.fill-donut span {
  position: absolute;
  z-index: 1;
  inset: 34px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.chart-legend {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chart-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.chart-legend strong {
  color: var(--text);
  font-size: 11px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.registration-highlight {
  scroll-margin-top: 110px;
}

.registration-highlight td {
  animation: registration-flash 0.65s ease-in-out 3;
  outline-color: rgba(245, 158, 11, 0.9);
  outline-offset: -2px;
}

@keyframes registration-flash {
  0%, 100% { background: #ffffff; outline: 0 solid transparent; }
  50% { background: #fef3c7; outline: 2px solid rgba(245, 158, 11, 0.75); }
}

@media (prefers-reduced-motion: reduce) {
  .registration-highlight td {
    animation: none;
    background: #fef3c7;
    outline: 2px solid rgba(245, 158, 11, 0.75);
  }
}

.admin-content {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 24px;
}

.admin-content.wide {
  width: min(100%, 1440px);
}

.page-head {
  margin-bottom: 24px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  color: var(--outline);
  font-size: 12px;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--outline);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs .material-symbols-outlined {
  font-size: 15px;
}

.page-kicker {
  margin: 0 0 4px;
  color: var(--brand-strong);
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
}

.page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.page-title-row h1 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 38px;
  font-weight: 800;
}

.page-title-row p {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.admin-actions,
.data-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.data-toolbar {
  justify-content: space-between;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-tint);
}

.segmented-control a,
.segmented-control button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.segmented-control .active,
.segmented-control a:hover,
.segmented-control button:hover {
  background: #ffffff;
  color: var(--brand);
  text-decoration: none;
}

.panel,
.admin-body .card,
.settings-card,
.metric-card,
.mini-metric {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.admin-body .card {
  padding: 16px;
}

.panel {
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
}

.panel-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.panel-body {
  padding: 16px;
}

.stat-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  transition: border-color 0.16s ease;
}

.metric-card:hover,
.panel:hover,
.settings-card:hover {
  border-color: #c1c7d0;
}

.metric-card-top,
.metric-card-bottom,
.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-card {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.metric-icon,
.icon-chip {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border-radius: 8px;
  background: #dae2ff;
  color: var(--brand);
}

.metric-icon.secondary,
.icon-chip.secondary {
  background: var(--success-border);
  color: var(--accent);
}

.metric-icon.tertiary,
.icon-chip.tertiary {
  background: var(--warning-bg);
  color: var(--warning);
}

.metric-icon.neutral,
.icon-chip.neutral {
  background: var(--surface-strong);
  color: var(--muted);
}

.metric-trend {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.metric-value {
  margin: 4px 0 0;
  color: var(--text);
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 30px;
  line-height: 34px;
  font-weight: 800;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.progress-list {
  display: grid;
  gap: 14px;
}

.progress-row {
  display: grid;
  gap: 6px;
}

.progress-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.progress-meta strong {
  color: var(--text);
  font-size: 14px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand-strong);
}

.progress-fill.secondary {
  background: var(--accent);
}

.progress-fill.danger {
  background: var(--danger);
}

.facility-grid,
.mini-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.facility-card,
.mini-metric {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

.facility-card strong,
.mini-metric strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 18px;
}

.facility-card span,
.mini-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-body table.data {
  min-width: 860px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  font-size: 13px;
}

.admin-body table.data th,
.admin-body table.data td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-body table.data th {
  position: static;
  top: auto;
  z-index: auto;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.admin-body table.data tbody tr:nth-child(even) td {
  background: #ffffff;
}

.admin-body table.data tbody tr:hover td {
  background: var(--surface-soft);
}

.admin-body table.data tr:last-child td {
  border-bottom: 0;
}

.course-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.course-title strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 18px;
}

.course-title span,
.table-muted {
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}

.quota-pair {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.quota-pair span {
  display: grid;
  gap: 1px;
  text-align: center;
}

.quota-pair strong {
  color: var(--brand);
  line-height: 18px;
}

.quota-pair small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-primary {
  background: var(--brand-strong);
  color: #ffffff;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.badge-muted {
  background: var(--surface-strong);
  color: var(--muted);
  border-color: var(--border-strong);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: #ffb59b;
}

.actions-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.actions-inline form {
  display: inline-flex;
}

.icon-button,
.link-button,
.admin-body table.data .btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
}

.icon-button:hover,
.link-button:hover,
.admin-body table.data .btn:hover {
  background: var(--surface-tint);
  color: var(--brand);
  border-color: var(--border-strong);
  text-decoration: none;
}

.icon-button.danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.filter-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-body label,
.admin-body .field-label {
  color: var(--text);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.admin-body input[type="text"],
.admin-body input[type="email"],
.admin-body input[type="tel"],
.admin-body input[type="date"],
.admin-body input[type="datetime-local"],
.admin-body input[type="number"],
.admin-body input[type="password"],
.admin-body input[type="time"],
.admin-body select,
.admin-body textarea {
  min-height: 38px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-color: var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  box-shadow: none;
}

.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.15);
}

.form-shell,
.settings-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.form-shell {
  padding: 16px;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.form-section-title h2,
.form-section-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 28px;
}

.form-section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

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

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

.required {
  color: var(--danger);
}

.admin-body .day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  margin: 6px 0 12px;
}

.admin-body .day-grid label {
  min-height: 34px;
  justify-content: center;
  padding: 6px 8px;
  border-color: var(--border-strong);
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-body .day-grid label:has(input:checked) {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #ffffff;
}

.admin-body .day-grid input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.check-row,
.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.form-note {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 82, 204, 0.18);
  border-radius: 8px;
  background: rgba(0, 82, 204, 0.07);
  color: var(--brand);
  font-size: 13px;
  line-height: 20px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 16px;
}

.settings-stack {
  display: grid;
  gap: 16px;
}

.settings-card {
  padding: 16px;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.settings-card h2,
.settings-card h3,
.settings-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 28px;
}

.settings-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
  display: inline-block;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ebecf0;
  cursor: pointer;
  transition: background 0.16s ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(9, 30, 66, 0.24);
  transition: transform 0.16s ease;
}

.switch input:checked + .switch-slider {
  background: var(--brand-strong);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(16px);
}

.summary-card {
  padding: 16px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
}

.summary-card h3,
.summary-card p,
.summary-card span {
  color: inherit;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.summary-list strong {
  color: #ffffff;
}

.alert {
  border-radius: 8px;
  font-size: 13px;
}

.admin-body .alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.admin-body .alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--page);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.auth-card {
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.auth-card h1 {
  margin: 0 0 4px;
  font-family: "Hanken Grotesk", Inter, sans-serif;
  font-size: 26px;
  line-height: 32px;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-card .btn {
  box-shadow: none;
}

.auth-card .btn:hover {
  box-shadow: none;
  transform: none;
}

.text-right {
  text-align: right;
}

.sidebar-collapsed .admin-shell {
  grid-template-columns: 84px minmax(0, 1fr);
}

.sidebar-collapsed .admin-sidebar {
  padding-inline: 10px;
}

.sidebar-collapsed .admin-brand {
  justify-content: center;
  padding-inline: 0;
}

.sidebar-collapsed .admin-brand-text,
.sidebar-collapsed .admin-menu-text,
.sidebar-collapsed .btn-sidebar span:last-child,
.sidebar-collapsed .admin-logout span:last-child {
  display: none;
}

.sidebar-collapsed .admin-menu a,
.sidebar-collapsed .admin-logout {
  justify-content: center;
  padding-inline: 8px;
}

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

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .course-filter-grid,
  .person-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .insight-grid,
  .settings-grid,
  .form-section {
    grid-template-columns: 1fr;
  }

  .management-grid {
    grid-template-columns: 1fr;
  }

  .topbar-search {
    width: 220px;
  }
}

@media (max-width: 860px) {
  .admin-shell,
  .sidebar-collapsed .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    z-index: 45;
    inset: 0;
    background: rgba(9, 28, 53, 0.45);
  }

  .sidebar-collapsed .admin-brand-text,
  .sidebar-collapsed .admin-menu-text,
  .sidebar-collapsed .btn-sidebar span:last-child,
  .sidebar-collapsed .admin-logout span:last-child {
    display: inline;
  }

  .sidebar-collapsed .admin-menu a,
  .sidebar-collapsed .admin-logout,
  .sidebar-collapsed .admin-brand {
    justify-content: flex-start;
  }

  .admin-topbar {
    padding-inline: 16px;
  }

  .admin-content {
    padding: 16px;
  }
}

@media (max-width: 700px) {
  .admin-topbar-right {
    display: none;
  }

  .page-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-title-row h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .stat-grid,
  .metric-grid,
  .form-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .fill-chart-grid,
  .course-filter-grid,
  .person-search-grid,
  .chart-card-body {
    grid-template-columns: 1fr;
  }

  .chart-card-body .donut {
    margin-inline: auto;
  }

  .fill-chart-card {
    align-items: flex-start;
  }

  .data-toolbar,
  .toolbar-group {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-group > *,
  .data-toolbar .btn,
  .segmented-control {
    width: 100%;
  }

  .segmented-control a,
  .segmented-control button {
    flex: 1;
  }
}
