:root {
  --royal: #1d4ed8;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --offwhite: #f8fafc;
  --slate: #0f172a;
}

body {
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.10), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.10), transparent 25%),
    var(--offwhite);
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary {
  position: relative;
}

details > summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.2rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-weight: 700;
  display: grid;
  place-items: center;
}

details[open] > summary::after {
  content: "−";
}

.create-session-grid {
  display: grid;
  gap: 0.75rem;
  align-items: end;
}

@media (min-width: 768px) {
  .create-session-grid {
    grid-template-columns: 1.5fr 1.5fr 1.1fr 1.1fr 0.75fr auto auto;
  }
}

.create-session-field {
  min-width: 0;
}

.create-session-label {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #64748b;
}

.create-session-input {
  height: 3rem;
}

.create-session-field .segmented-toggle {
  display: flex;
  width: 100%;
  min-height: 3rem;
}

.create-session-field .segmented-toggle-label {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
}

.create-session-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3rem;
  font-size: 1rem;
}

.create-session-label-empty {
  visibility: hidden;
}

.create-session-save-field {
  display: flex;
  flex-direction: column;
}

.create-session-save {
  min-height: 3rem;
}

/* Officer Dashboard HUD */
.officer-hud-page {
  --hud-border: #d8deea;
  --hud-bg: rgba(255, 255, 255, 0.82);
}

.hud-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--hud-border);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.04), rgba(29, 78, 216, 0.06), rgba(20, 184, 166, 0.04));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.1rem;
}

.hud-kicker {
  margin: 0 0 0.15rem;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
}

.hud-title {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 700;
  color: #0f172a;
}

.hud-subtitle {
  margin: 0.25rem 0 0;
  color: #475569;
  font-size: 0.9rem;
}

.hud-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.34rem 0.65rem;
  font-size: 0.76rem;
  color: #1e293b;
}

.hud-chip-label {
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.hud-chip-preview {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
}

.hud-chip-exit {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.officer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 980px) {
  .officer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.panel {
  position: relative;
  border: 1px solid var(--hud-border);
  border-radius: 14px;
  background: var(--hud-bg);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  padding: 1rem 1rem 1.05rem;
  overflow: hidden;
}

.panel-accent {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.9), rgba(29, 78, 216, 0.9));
}

.panel-status {
  background: rgba(238, 242, 248, 0.95);
}

.panel-status-dark {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-color: #1e2f4d;
  color: #e2e8f0;
}

.panel-title {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #334155;
}

.panel-status-dark .panel-title {
  color: #cbd5e1;
}

.panel-label {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.big-number {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 800;
  color: #f8fafc;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.stat-key {
  margin-right: 0.2rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
}

.progress {
  width: 100%;
  height: 12px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  min-width: 0;
  background: linear-gradient(90deg, #14b8a6, #38bdf8, #1d4ed8);
}

.progress-capacity {
  position: relative;
  isolation: isolate;
}

.progress-capacity > span {
  transition: width 1300ms cubic-bezier(0.22, 0.9, 0.3, 1);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.tier-badge-thriving {
  background: #dcfce7;
  color: #166534;
}

.tier-badge-stable {
  background: #dbeafe;
  color: #1d4ed8;
}

.tier-badge-emerging {
  background: #fef3c7;
  color: #b45309;
}

.action-panel {
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.06), rgba(255, 255, 255, 0.95));
}

.request-card {
  border: 1px solid #dbe2ef;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  padding: 0.68rem 0.78rem;
}

.status-badge {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.status-requested {
  background: #fff7ed;
  color: #9a3412;
}

.status-opened {
  background: #dcfce7;
  color: #166534;
}

.status-fulfilled {
  background: #dcfce7;
  color: #14532d;
}

.status-expired {
  background: #fee2e2;
  color: #991b1b;
}

/* Officer Dashboard Redesign */
.dashboard-container {
  max-width: 980px;
  margin: 0 auto;
  color: #111827;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  background: #f9fafb;
}

.header-bar {
  min-height: 64px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
}

.header-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.session-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.header-subtitle {
  margin: 0.15rem 0 0;
  font-size: 14px;
  color: #6b7280;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.preview-badge {
  border: 1px solid #c8a951;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  color: #8a6e2a;
  background: #fff;
  font-size: 14px;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #dff2e8;
  color: #2f6f4e;
  font-size: 14px;
  font-weight: 600;
  padding: 0.28rem 0.62rem;
  cursor: pointer;
}

.tier-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.exit-preview-link {
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
}

.preview-note {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.hud-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.05);
  padding: 24px;
}

.hud-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.hud-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.hud-summary {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.9rem;
}

.hud-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
  cursor: pointer;
}

.hud-tier-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hud-tier-badge--emerging {
  background: #e8f5ee;
  color: #2f6f4e;
}

.hud-tier-badge--stable {
  background: #dff2e8;
  color: #2f6f4e;
}

.hud-tier-badge--thriving {
  background: #f7f1db;
  color: #8a6e2a;
}

.hud-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.tier-motivation {
  display: grid;
  gap: 0.4rem;
}

.tier-motivation-text {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.tier-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.tier-progress > span {
  display: block;
  height: 100%;
  background: #2f6f4e;
}

.tier-progress > span.tier-progress--gold {
  background: #c8a951;
}

.tier-progress-label {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.tier-progress-kicker {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.tier-ladder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.tier-step {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 0.42rem 0.5rem;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.tier-step svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.tier-step--muted {
  color: #9ca3af;
}

.tier-step--next {
  color: #6b7280;
  border-color: #d1d5db;
}

.tier-step--current {
  color: #2f6f4e;
  border-color: #2f6f4e;
  background: #e8f5ee;
}

.levelup-banner {
  position: relative;
  display: none;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
  padding: 18px;
  margin: 14px 0 18px;
}

.levelup-banner.is-visible {
  display: block;
  animation: levelup-pop 420ms ease-out;
}

@keyframes levelup-pop {
  from {
    transform: translateY(-6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.levelup-rays {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.levelup-rays::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  aspect-ratio: 1 / 1;
  opacity: 0.55;
  filter: blur(0.2px);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(200, 169, 81, 0) 0deg 10deg,
    rgba(200, 169, 81, 0.14) 10deg 14deg,
    rgba(200, 169, 81, 0) 14deg 22deg
  );
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: rays-spin 7.5s linear infinite;
}

.levelup-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 240px at 18% 0%, rgba(47, 111, 78, 0.12), transparent 65%),
    radial-gradient(600px 220px at 85% 10%, rgba(200, 169, 81, 0.14), transparent 65%);
}

@keyframes rays-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.levelup-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.levelup-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.levelup-badge {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  color: #2f6f4e;
  background: rgba(47, 111, 78, 0.12);
  border: 1px solid rgba(47, 111, 78, 0.22);
}

.levelup-headline {
  font-size: 18px;
  color: #111827;
  font-weight: 700;
}

.levelup-subtitle {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.35;
}

.levelup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.btn-primary {
  background: #2f6f4e;
  color: #fff;
  border: 1px solid transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(0.96);
}

.btn-ghost {
  background: transparent;
  color: #111827;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(17, 24, 39, 0.04);
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.9;
  background: rgba(47, 111, 78, 0.85);
  transform: translateX(-50%) rotate(0deg);
  animation: confetti-fall 1.9s ease-in forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(-50%, -10px, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(calc(-50% + var(--dx)), 160px, 0) rotate(var(--rot));
    opacity: 0;
  }
}

.confetti-piece:nth-child(1) { left: 8%; --dx: 20px; --rot: 220deg; animation-delay: 0ms; animation-duration: 1700ms; width: 8px; height: 10px; background: rgba(200, 169, 81, 0.85); }
.confetti-piece:nth-child(2) { left: 14%; --dx: -10px; --rot: 320deg; animation-delay: 80ms; animation-duration: 1900ms; width: 6px; height: 14px; background: rgba(47, 111, 78, 0.85); }
.confetti-piece:nth-child(3) { left: 22%; --dx: 12px; --rot: 260deg; animation-delay: 20ms; animation-duration: 2100ms; width: 10px; height: 8px; background: rgba(31, 42, 68, 0.65); }
.confetti-piece:nth-child(4) { left: 30%; --dx: -18px; --rot: 400deg; animation-delay: 120ms; animation-duration: 1750ms; width: 7px; height: 12px; background: rgba(200, 169, 81, 0.8); }
.confetti-piece:nth-child(5) { left: 38%; --dx: 16px; --rot: 360deg; animation-delay: 40ms; animation-duration: 2050ms; width: 9px; height: 13px; background: rgba(47, 111, 78, 0.75); }
.confetti-piece:nth-child(6) { left: 45%; --dx: -8px; --rot: 300deg; animation-delay: 160ms; animation-duration: 1850ms; width: 6px; height: 10px; background: rgba(200, 169, 81, 0.7); }
.confetti-piece:nth-child(7) { left: 52%; --dx: 18px; --rot: 480deg; animation-delay: 60ms; animation-duration: 2150ms; width: 8px; height: 14px; background: rgba(47, 111, 78, 0.85); }
.confetti-piece:nth-child(8) { left: 58%; --dx: -14px; --rot: 240deg; animation-delay: 140ms; animation-duration: 1950ms; width: 10px; height: 9px; background: rgba(31, 42, 68, 0.6); }
.confetti-piece:nth-child(9) { left: 64%; --dx: 10px; --rot: 330deg; animation-delay: 10ms; animation-duration: 1750ms; width: 7px; height: 12px; background: rgba(200, 169, 81, 0.82); }
.confetti-piece:nth-child(10) { left: 70%; --dx: -20px; --rot: 390deg; animation-delay: 90ms; animation-duration: 2200ms; width: 9px; height: 14px; background: rgba(47, 111, 78, 0.78); }
.confetti-piece:nth-child(11) { left: 78%; --dx: 14px; --rot: 270deg; animation-delay: 30ms; animation-duration: 1900ms; width: 6px; height: 10px; background: rgba(200, 169, 81, 0.75); }
.confetti-piece:nth-child(12) { left: 86%; --dx: -12px; --rot: 450deg; animation-delay: 150ms; animation-duration: 2050ms; width: 10px; height: 12px; background: rgba(31, 42, 68, 0.55); }
.confetti-piece:nth-child(13) { left: 10%; --dx: 24px; --rot: 300deg; animation-delay: 180ms; animation-duration: 2100ms; width: 8px; height: 14px; background: rgba(47, 111, 78, 0.7); }
.confetti-piece:nth-child(14) { left: 18%; --dx: -22px; --rot: 360deg; animation-delay: 220ms; animation-duration: 1950ms; width: 6px; height: 11px; background: rgba(200, 169, 81, 0.8); }
.confetti-piece:nth-child(15) { left: 26%; --dx: 18px; --rot: 520deg; animation-delay: 260ms; animation-duration: 2300ms; width: 10px; height: 9px; background: rgba(47, 111, 78, 0.85); }
.confetti-piece:nth-child(16) { left: 34%; --dx: -16px; --rot: 280deg; animation-delay: 240ms; animation-duration: 1850ms; width: 7px; height: 13px; background: rgba(200, 169, 81, 0.7); }
.confetti-piece:nth-child(17) { left: 42%; --dx: 12px; --rot: 420deg; animation-delay: 200ms; animation-duration: 2000ms; width: 9px; height: 12px; background: rgba(31, 42, 68, 0.6); }
.confetti-piece:nth-child(18) { left: 50%; --dx: -10px; --rot: 340deg; animation-delay: 300ms; animation-duration: 2150ms; width: 6px; height: 10px; background: rgba(200, 169, 81, 0.8); }
.confetti-piece:nth-child(19) { left: 57%; --dx: 20px; --rot: 260deg; animation-delay: 320ms; animation-duration: 1900ms; width: 8px; height: 14px; background: rgba(47, 111, 78, 0.8); }
.confetti-piece:nth-child(20) { left: 63%; --dx: -18px; --rot: 470deg; animation-delay: 280ms; animation-duration: 2250ms; width: 10px; height: 12px; background: rgba(31, 42, 68, 0.55); }
.confetti-piece:nth-child(21) { left: 71%; --dx: 14px; --rot: 310deg; animation-delay: 350ms; animation-duration: 2050ms; width: 7px; height: 10px; background: rgba(200, 169, 81, 0.75); }
.confetti-piece:nth-child(22) { left: 78%; --dx: -24px; --rot: 380deg; animation-delay: 300ms; animation-duration: 2200ms; width: 9px; height: 14px; background: rgba(47, 111, 78, 0.78); }
.confetti-piece:nth-child(23) { left: 86%; --dx: 16px; --rot: 250deg; animation-delay: 380ms; animation-duration: 1950ms; width: 6px; height: 12px; background: rgba(200, 169, 81, 0.8); }
.confetti-piece:nth-child(24) { left: 92%; --dx: -14px; --rot: 520deg; animation-delay: 410ms; animation-duration: 2350ms; width: 10px; height: 9px; background: rgba(31, 42, 68, 0.58); }

@media (prefers-reduced-motion: reduce) {
  .levelup-rays::before {
    animation: none;
  }
  .levelup-banner.is-visible {
    animation: none;
  }
  .confetti-piece {
    animation: none;
    display: none;
  }
}

.hud-metric {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: #fff;
}

.timeline-section {
  position: relative;
}

.timeline-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-behavior: smooth;
}

.timeline-strip--positioning {
  visibility: hidden;
}

.timeline-card {
  min-width: 210px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: #111827;
  padding: 0.7rem 0.8rem;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.04);
}

.timeline-card:focus-visible {
  outline: 2px solid #2f6f4e;
  outline-offset: 2px;
}

.timeline-card--active {
  border: 2px solid #2f6f4e;
  box-shadow: 0 4px 10px rgba(47, 111, 78, 0.18);
}

.timeline-card--future {
  color: #6b7280;
  background: #f9fafb;
}

.timeline-card--closed {
  color: #6b7280;
  background: #f3f4f6;
}

.timeline-card--selected {
  box-shadow: 0 0 0 2px rgba(47, 111, 78, 0.22);
}

.timeline-label {
  display: inline-block;
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #eef2f7;
  color: #6b7280;
}

.timeline-card--active .timeline-label {
  background: #dff2e8;
  color: #2f6f4e;
}

.timeline-card--future .timeline-label {
  background: #f3f4f6;
  color: #6b7280;
}

.timeline-card--closed .timeline-label {
  background: #e5e7eb;
  color: #6b7280;
}

.timeline-card-title-row {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline-card-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.timeline-card-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.timeline-dates {
  margin: 0.28rem 0 0;
  font-size: 14px;
  color: #6b7280;
}

.timeline-select-wrap {
  margin-top: 0.6rem;
  display: none;
}

.segment-pill {
  border-radius: 999px;
  padding: 0.14rem 0.42rem;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.segment-pill--girls {
  background: #fce7f3;
  color: #9d174d;
}

.segment-pill--boys {
  background: #dbeafe;
  color: #1d4ed8;
}

.segment-pill--youth {
  background: #e9d5ff;
  color: #6b21a8;
}

.segment-pill--teens {
  background: #ffedd5;
  color: #c2410c;
}

.segment-pill--neutral {
  background: #f3f4f6;
  color: #4b5563;
}

.status-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.05);
  padding: 24px;
}

.status-grid {
  display: block;
}

.status-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.status-tier-row {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.status-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  border: 1px solid transparent;
  background: #dff2e8;
  color: #2f6f4e;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.status-tier-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.tier-link {
  background: transparent;
  border: none;
  color: #2f6f4e;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.status-context {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 14px;
  font-weight: 500;
}

.status-context--active {
  background: #dff2e8;
  color: #2f6f4e;
}

.status-context--future {
  background: #f5f5f5;
  color: #6b7280;
}

.status-context--closed {
  background: #f3f4f6;
  color: #6b7280;
}

.metric-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.metric-block {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem 0.7rem;
}

.metric-label {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.metric-value {
  margin: 0.25rem 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.capacity-progress {
  margin-top: 1rem;
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: visible;
}

.capacity-progress > span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
}

.capacity-note {
  margin: 0.5rem 0 0;
  font-size: 14px;
  color: #6b7280;
}

.action-guidance {
  margin: 0.7rem 0 0;
  padding: 0.52rem 0.64rem;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid transparent;
}

.action-guidance--good {
  background: #e8f5ee;
  border-color: #cfe9dc;
  color: #2f6f4e;
}

.action-guidance--warning {
  background: #f7f1db;
  border-color: #eadfb9;
  color: #8a6e2a;
}

.action-guidance--critical {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.session-points-note {
  margin: 0.65rem 0 0;
  color: #6b7280;
  font-size: 14px;
}

.tier-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.tier-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.42);
}

.tier-modal-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(520px, 100%);
  background: #fff;
  box-shadow: -10px 0 30px rgba(17, 24, 39, 0.15);
  display: flex;
  flex-direction: column;
}

.tier-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.9rem 1rem;
}

.tier-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.tier-modal-close {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tier-modal-body {
  padding: 1rem;
  overflow-y: auto;
  display: grid;
  gap: 1rem;
}

.tier-modal-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.8rem;
}

.tier-perks-flash {
  border-color: #2f6f4e;
  box-shadow: 0 0 0 2px rgba(47, 111, 78, 0.25);
}

.tier-modal-kicker {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}

.tier-modal-note {
  margin: 0.45rem 0 0;
  font-size: 14px;
  color: #111827;
}

.tier-modal-list {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  color: #111827;
  font-size: 14px;
}

.points-guide-list {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.55rem;
}

.points-guide-row {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  padding: 0.5rem 0.6rem;
}

.points-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.points-guide-label {
  margin: 0;
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.points-guide-points {
  margin: 0;
  font-size: 14px;
  color: #111827;
  font-weight: 700;
}

.points-guide-note {
  margin: 0.25rem 0 0;
  font-size: 12px;
  color: #6b7280;
}

.reserve-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #2f6f4e;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  padding: 24px;
}

.reserve-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.reserve-subtitle {
  margin: 0.25rem 0 0;
  font-size: 14px;
  color: #6b7280;
}

.reserve-banner {
  margin: 0.8rem 0 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  padding: 0.5rem 0.65rem;
  color: #6b7280;
  font-size: 14px;
}

.reserve-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

.reserve-label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 14px;
  color: #6b7280;
}

.reserve-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.58rem 0.7rem;
  background: #fff;
  color: #111827;
}

.reserve-points-impact {
  margin: 0.35rem 0 0;
  font-size: 14px;
  color: #6b7280;
}

.reserve-btn {
  border: none;
  border-radius: 8px;
  background: #2f6f4e;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1rem;
  min-width: 132px;
}

.reserve-btn.is-disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.recent-activity {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.9rem;
}

.recent-title {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}

.activity-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  color: #111827;
  font-size: 14px;
}

.activity-date {
  color: #6b7280;
  margin-right: 0.35rem;
}

.activity-empty {
  margin: 0.55rem 0 0;
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 900px) {
  .timeline-card-title-row {
    align-items: flex-start;
  }
}

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

  .reserve-btn {
    width: 100%;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

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

  .timeline-strip {
    display: none;
  }

  .timeline-select-wrap {
    display: block;
  }
}

.officer-portal-header {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
}

.officer-portal-header__user {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .officer-portal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .officer-portal-header__user {
    white-space: normal;
  }
}

/* Officer Dashboard Layout Update */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.25rem 1.2rem;
  background: transparent;
}

.dashboard-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #6b7280;
}

.header-bar {
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem 1rem;
}

.preview-note {
  margin: 0 0 0.9rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.col-left {
  grid-column: span 4;
  display: grid;
  gap: 1rem;
}

.col-center {
  grid-column: span 5;
  display: grid;
  gap: 1rem;
}

.col-right {
  grid-column: span 3;
  display: grid;
  gap: 1rem;
}

.dashboard-container .card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  padding: 0.95rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.card-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.card-note {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.current-badge {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #dff2e8;
  color: #2f6f4e;
}

.session-dates {
  margin: 0.35rem 0 0;
  font-size: 14px;
  color: #6b7280;
}

.combined-chip {
  display: inline-flex;
  align-items: center;
  margin: 0.55rem 0 0;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: #eef2f7;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.combined-chip--small {
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
}

.switch-header {
  margin-top: 0.9rem;
}

.switch-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.timeline-strip {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.55rem;
  overflow: visible;
  padding-bottom: 0;
}

.timeline-card {
  min-width: 0;
}

.timeline-card-title-row {
  margin-top: 0;
  align-items: flex-start;
}

.timeline-card-title {
  white-space: normal;
  line-height: 1.3;
}

.timeline-card-pills {
  flex-wrap: nowrap;
}

.quota-card .stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.capacity-progress {
  margin-top: 0.75rem;
}

.capacity-progress-legend {
  margin-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 12px;
  color: #6b7280;
}

.slot-bar {
  --slot-boys-unfilled: #cfe0ff;
  --slot-boys-filled: #1e3a8a;
  --slot-girls-unfilled: #ffd1e1;
  --slot-girls-filled: #ec4899;
  margin-top: 0.7rem;
  display: flex;
  gap: 2px;
  width: 100%;
  height: 12px;
}

.slot-seg {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
}

.slot-seg.boys.unfilled {
  background: var(--slot-boys-unfilled);
}

.slot-seg.boys.filled-ontime {
  background: var(--slot-boys-filled);
}

.slot-seg.girls.unfilled {
  background: var(--slot-girls-unfilled);
}

.slot-seg.girls.filled-ontime {
  background: var(--slot-girls-filled);
}

.slot-seg.filled-late {
  background-color: #f59e0b;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.35) 0 4px,
    rgba(255, 255, 255, 0) 4px 8px
  );
}

.slot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.slot-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.3rem;
  vertical-align: -1px;
}

.slot-legend-dot.ontime {
  background: #1e3a8a;
}

.slot-legend-dot.late {
  background-color: #f59e0b;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.35) 0 4px,
    rgba(255, 255, 255, 0) 4px 8px
  );
}

.slot-legend-dot.unfilled {
  background: #dbeafe;
}

.slot-legend-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #94a3b8;
  color: #475569;
  font-weight: 700;
  cursor: help;
}

.primary-actions .card-header {
  margin-bottom: 0.75rem;
}

.primary-action-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.6rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.74rem 0.85rem;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.action-btn-primary {
  background: #2f6f4e;
  color: #fff;
}

.action-btn-secondary {
  background: #fff;
  color: #1f2937;
  border-color: #cbd5e1;
}

.action-btn-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  color: #6b7280;
  background: #f3f4f6;
  border-color: #d1d5db;
}

.reserve-card {
  border-top: 1px solid #e5e7eb;
  padding: 0.95rem;
}

.reserve-form {
  margin-top: 0.8rem;
}

.right-rail-card {
  padding: 0.85rem;
}

.right-rail-card .session-points-note {
  margin-top: 0.38rem;
  font-size: 13px;
}

.right-rail-card .hud-card-head {
  gap: 0.35rem;
}

.right-rail-card .hud-summary {
  margin-top: 0.5rem;
  gap: 0.55rem;
}

.right-rail-card .tier-motivation-text {
  font-size: 13px;
}

.right-rail-card .tier-progress-label {
  font-size: 12px;
}

.right-rail-card .hud-metrics {
  gap: 0.45rem;
}

.right-rail-card .hud-metric {
  padding: 0.48rem 0.55rem;
}

.right-rail-card .metric-label {
  font-size: 12px;
}

.right-rail-card .metric-value {
  font-size: 15px;
}

.right-rail-card .tier-step {
  padding: 0.35rem 0.42rem;
  font-size: 11px;
}

.achievements-card {
  min-height: 84px;
}

.achievements-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.achievement-item {
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #f8fbff;
  overflow: hidden;
}

.achievement-item--locked {
  filter: grayscale(1);
  opacity: 0.78;
}

.achievement-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.48rem 0.52rem;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  text-align: left;
  cursor: pointer;
}

.achievement-icon {
  font-size: 14px;
}

.achievement-name {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
}

.achievement-detail {
  border-top: 1px solid #e5e7eb;
  padding: 0.42rem 0.52rem 0.5rem;
  background: #fff;
}

.achievement-description {
  margin: 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.35;
}

.achievement-meta {
  margin: 0.35rem 0 0;
  font-size: 11px;
  color: #6b7280;
}

.recent-activity {
  border-top: none;
  padding-top: 0.95rem;
}

@media (min-width: 1200px) {
  .col-left {
    grid-column: span 4;
  }
  .col-center {
    grid-column: span 5;
  }
  .col-right {
    grid-column: span 3;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .dashboard-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .col-left {
    grid-column: span 3;
  }
  .col-center {
    grid-column: span 5;
  }
  .col-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .col-left,
  .col-center,
  .col-right {
    display: contents;
  }

  .current-session-card {
    order: 1;
  }
  .primary-actions {
    order: 2;
  }
  .quota-card {
    order: 3;
  }
  #reserveSpotsCard {
    order: 4;
  }
  .col-right .hud-card {
    order: 5;
  }
  .col-right .right-rail-card {
    order: 6;
  }
  .recent-activity {
    order: 7;
  }

  .primary-action-row {
    grid-template-columns: 1fr;
  }

  .quota-card .stat-row {
    grid-template-columns: 1fr;
  }

  .timeline-strip {
    display: none;
  }

  .timeline-select-wrap {
    display: block;
  }

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

/* Admin command center layout */
.admin-command {
  gap: 1.25rem;
}

.admin-command-header p,
.admin-command-header h1 {
  margin: 0;
}

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

.action-tile {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  min-height: 110px;
}

.action-tile-kicker {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  font-weight: 700;
}

.action-tile-kicker--with-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.action-tile-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #1e40af;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  white-space: nowrap;
}

.action-tile.is-urgent .action-tile-badge {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.action-tile-value {
  margin: 0.35rem 0 0;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}

.action-tile-note {
  margin: 0.5rem 0 0;
  font-size: 12px;
  color: #64748b;
}

.action-tile-cta {
  display: inline-block;
  margin-top: 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  padding: 0.34rem 0.55rem;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
}

.action-tile-cta-primary {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

.action-tile.is-urgent {
  border-color: #fdba74;
  background: #fff7ed;
}

.action-tile.is-warning {
  border-color: #fcd34d;
  background: #fffbeb;
}

.action-tile.is-positive {
  border-color: #86efac;
  background: #f0fdf4;
}

.action-tile.is-muted {
  background: #f8fafc;
}

.action-tile.is-primary {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.action-strip-meta {
  margin-bottom: 0;
}

.active-session-panel {
  border-color: #bfdbfe;
}

.capacity-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #dbeafe;
}

.capacity-track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
}

.status-chip {
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
}

.accordion-header {
  border-bottom: 1px solid #f1f5f9;
}

.accordion-body.hidden {
  display: none;
}

.session-drawer summary::-webkit-details-marker {
  display: none;
}

.session-drawer summary {
  list-style: none;
}

.admin-board-workspace {
  display: grid;
  gap: 1rem;
}

.admin-board-col {
  min-width: 0;
}

.admin-board-col--sessions,
.admin-board-col--details,
.admin-board-col--matrix {
  min-height: 0;
}

.admin-board-session-list {
  max-height: min(72vh, 980px);
  overflow: auto;
  padding-right: 0.125rem;
}

.admin-board-session-sort-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-board-sort-menu {
  position: relative;
}

.admin-board-sort-menu summary {
  list-style: none;
}

.admin-board-sort-menu summary::-webkit-details-marker {
  display: none;
}

.admin-board-sort-menu > summary::after,
.admin-board-sort-menu[open] > summary::after {
  content: none;
  display: none;
}

.admin-board-sort-icon-btn,
.admin-board-sort-dir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.admin-board-sort-icon-btn:hover,
.admin-board-sort-dir-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.admin-board-sort-icon-btn svg {
  width: 1rem;
  height: 1rem;
}

.admin-board-sort-dir-btn {
  flex-direction: column;
  gap: 0;
  font-size: 0.6rem;
  line-height: 0.6rem;
  font-weight: 800;
}

.admin-board-sort-dir-btn span {
  opacity: 0.45;
}

.admin-board-sort-dir-btn span.is-active {
  opacity: 1;
  color: #1d4ed8;
}

.admin-board-sort-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 14.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  padding: 0.35rem;
  z-index: 20;
}

.admin-board-sort-menu-heading {
  margin: 0.35rem 0.25rem 0.15rem;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.admin-board-sort-menu-heading:first-child {
  margin-top: 0.1rem;
}

.admin-board-sort-menu-item {
  display: block;
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  color: #334155;
  text-decoration: none;
}

.admin-board-sort-menu-item:hover {
  background: #f8fafc;
}

.admin-board-sort-menu-item.is-active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.admin-board-global-queue-summary {
  min-height: 2rem;
  padding-right: 2.5rem;
}

.admin-board-global-queue-summary::after {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.admin-board-global-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-board-global-queue-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .admin-board-global-queue-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-board-global-queue-meta {
    justify-content: flex-start;
  }
}

.admin-board-session-link {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  padding: 0.7rem 0.75rem;
  background: #fff;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.admin-board-session-link:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.admin-board-session-link.is-selected {
  border-color: #93c5fd;
  background: rgba(239, 246, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.35);
}

.admin-board-session-link.is-active .admin-board-session-title {
  color: #1d4ed8;
}

.admin-board-session-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.admin-board-session-date {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.admin-board-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
}

.admin-board-chip--blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-board-chip--slate {
  background: #e2e8f0;
  color: #334155;
}

/* Mini matrix: thead + column totals stay visible; only corps rows scroll. */
.admin-board-matrix-wrap .admin-board-mini-matrix-shell {
  display: flex;
  flex-direction: column;
  max-height: min(60vh, 760px);
  min-height: 0;
  overflow: hidden;
}

.admin-board-matrix-wrap table input[type="number"] {
  -moz-appearance: textfield;
}

.admin-board-matrix-wrap table input[type="number"]::-webkit-outer-spin-button,
.admin-board-matrix-wrap table input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.admin-board-mini-matrix {
  background: #fff;
}

.admin-board-mini-matrix-shell > .admin-board-mini-matrix-table {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-board-mini-matrix-shell > .admin-board-mini-matrix-table thead {
  flex: 0 0 auto;
}

.admin-board-mini-matrix-shell > .admin-board-mini-matrix-table tbody {
  /* Size to row content; scroll when tall. Avoid flex:1 + min-height:0 here — with an
     auto-height parent that collapses tbody to 0 and hides all corps rows. */
  display: block;
  flex: 0 1 auto;
  max-height: min(50vh, 560px);
  min-height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-board-mini-matrix-shell > .admin-board-mini-matrix-table tfoot {
  flex: 0 0 auto;
}

.admin-board-mini-matrix-shell > .admin-board-mini-matrix-table thead tr,
.admin-board-mini-matrix-shell > .admin-board-mini-matrix-table tbody tr,
.admin-board-mini-matrix-shell > .admin-board-mini-matrix-table tfoot tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.admin-board-mini-matrix__head {
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.admin-board-mini-matrix__head--location {
  width: 28%;
  max-width: 7.25rem;
  min-width: 0;
  padding: 0.65rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-board-mini-matrix__head--session {
  width: 72%;
  min-width: 0;
  background: #f8fbff;
  text-align: center;
}

.admin-board-mini-matrix__session-head {
  background: #f2f7ff;
  border-left: 1px solid #eef2f7;
  padding: 0.45rem 0.5rem 0.55rem;
  min-width: 0;
}

.admin-board-mini-matrix__session-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.4rem;
  min-width: 0;
}

.admin-board-mini-matrix__session-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.22rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-board-mini-matrix__session-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
}

.admin-board-mini-matrix__session-title-row > div:first-of-type {
  min-width: 0;
  flex: 1 1 0%;
}

.admin-board-mini-matrix__session-title {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-board-mini-matrix__session-date {
  margin: 0.22rem 0 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-board-mini-matrix__age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
}

.admin-board-mini-matrix-shell tbody .admin-board-mini-matrix__row:nth-child(even) td {
  background: #f8fafc;
}

.admin-board-mini-matrix__cell {
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}

.admin-board-mini-matrix__cell--location {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 28%;
  max-width: 7.25rem;
  min-width: 0;
  padding: 0.65rem 0.45rem;
  border-right: 1px solid #eef2f7;
  background: #fff;
}

.admin-board-mini-matrix__location-name {
  display: block;
  font-size: 0.78rem;
  line-height: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-board-mini-matrix__cell--session {
  width: 72%;
  min-width: 0;
  background: #f8fbff;
  padding: 0.55rem 0.35rem;
  text-align: center;
}

.admin-board-mini-matrix__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.4rem 0.45rem;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.admin-board-mini-matrix__field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  align-items: center;
}

.admin-board-mini-matrix__field > span {
  font-size: 0.62rem;
  line-height: 0.95rem;
  color: #64748b;
  font-weight: 600;
}

.admin-board-mini-matrix__field input {
  width: 100%;
  max-width: 2.85rem;
  min-width: 0;
  height: 1.35rem;
  border-radius: 0.35rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0 0.2rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1;
  color: #0f172a;
}

.admin-board-mini-matrix__field input.is-locked {
  background: #f1f5f9;
  color: #64748b;
}

.admin-board-mini-matrix__footer-groups {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-board-mini-matrix__footer-used {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  flex: 0 1 auto;
}

.admin-board-mini-matrix__cell--footer .admin-board-mini-matrix__ratio-row {
  justify-content: flex-start;
}

.admin-board-mini-matrix__ratio-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.admin-board-mini-matrix__ratio-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.38rem;
  font-size: 0.62rem;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
}

.admin-board-mini-matrix__ratio-pill--boys {
  background: #cffafe;
  color: #155e75;
}

.admin-board-mini-matrix__ratio-pill--girls {
  background: #f3d9fa;
  color: #7a1f83;
}

.admin-board-mini-matrix__over-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.45rem;
  border-radius: 999px;
  padding: 0 0.4rem;
  background: #fde68a;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.admin-board-mini-matrix__footer-row td {
  background: #fff;
  border-top: 1px solid #dbe2ea;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.06);
}

.admin-board-mini-matrix__cell--footer-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  text-align: left;
}

.admin-board-mini-matrix__cell--session.admin-board-mini-matrix__cell--footer {
  text-align: start;
  width: 100%;
}

.admin-board-mini-matrix__cell--footer {
  background: #f8fbff !important;
  text-align: left;
  vertical-align: middle;
}

.admin-board-mini-matrix__footer-alloc {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-top: 0;
  margin-left: auto;
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .action-strip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-board-workspace {
    grid-template-columns: minmax(220px, 0.82fr) minmax(440px, 1.48fr) minmax(260px, 0.75fr);
    align-items: start;
  }

  .admin-board-col--sessions,
  .admin-board-col--matrix {
    position: sticky;
    top: 1rem;
  }
}

@media (max-width: 640px) {
  .admin-board-mini-matrix__head--location,
  .admin-board-mini-matrix__cell--location {
    width: 30%;
    max-width: 6rem;
    min-width: 0;
  }

  .admin-board-mini-matrix__head--session,
  .admin-board-mini-matrix__cell--session {
    width: 70%;
  }

  .admin-board-mini-matrix__fields {
    gap: 0.35rem 0.35rem;
  }
}

/* —— Officer reservation portal header (all officer-authenticated pages) —— */
.officer-shell-main {
  padding: 22px 24px 40px;
  max-width: 1560px;
  margin-inline: auto;
  background:
    radial-gradient(ellipse 120% 80% at 12% 0%, rgba(219, 234, 254, 0.72), transparent 42%),
    radial-gradient(ellipse 90% 60% at 88% 18%, rgba(224, 231, 255, 0.45), transparent 40%),
    linear-gradient(185deg, #e8edf6 0%, #f1f4fa 38%, #eef2f9 100%);
}

@media (min-width: 1280px) {
  .officer-shell-main {
    padding: 26px 36px 44px;
  }
}

.officer-portal-header-shell {
  max-width: 1520px;
  margin: 0 auto 24px;
  padding: 0 4px;
  width: 100%;
}

@media (min-width: 1280px) {
  .officer-portal-header-shell {
    padding: 0 8px;
  }
}

.officer-portal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  min-height: 72px;
  padding: 14px 26px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.officer-portal-header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.officer-portal-header__crest {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.officer-portal-header__crest-img {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
}

.officer-portal-header__titles {
  min-width: 0;
}

.officer-portal-header__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.4vw + 0.85rem, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.officer-portal-menu {
  position: relative;
  margin-left: auto;
}

.officer-portal-menu__cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.officer-portal-menu__location {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  min-width: 0;
  max-width: 180px;
}

.officer-portal-menu__location-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.officer-portal-menu__location-page {
  font-size: 14px;
  font-weight: 800;
  color: #1d4ed8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.officer-portal-menu__toolbar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.officer-portal-notifications {
  position: relative;
}

.officer-portal-notifications__zone {
  position: relative;
}

.officer-portal-notifications-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(29, 78, 216, 0.22);
  border-radius: 14px;
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.officer-portal-notifications-btn:hover,
.officer-portal-notifications-btn:focus-visible {
  background: #eff6ff;
  border-color: rgba(29, 78, 216, 0.4);
  color: #1e40af;
  outline: none;
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.14);
}

.officer-portal-notifications.is-open .officer-portal-notifications-btn,
.officer-portal-notifications-btn[aria-expanded="true"] {
  background: #dbeafe;
  border-color: #1d4ed8;
  color: #1e3a8a;
}

.officer-portal-notifications-btn__icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.officer-portal-notifications.is-open .officer-portal-notifications__zone::after,
.officer-portal-notifications.is-closing .officer-portal-notifications__zone::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 14px;
  pointer-events: auto;
}

.officer-portal-notifications__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 125;
  width: min(22rem, calc(100vw - 24px));
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.65) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.officer-portal-notifications.is-open .officer-portal-notifications__panel,
.officer-portal-notifications.is-closing .officer-portal-notifications__panel {
  visibility: visible;
}

.officer-portal-notifications.is-open .officer-portal-notifications__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.officer-portal-notifications.is-closing .officer-portal-notifications__panel {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
}

.officer-portal-notifications__panel[hidden] {
  display: block;
}

.officer-portal-notifications__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.65rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.officer-portal-notifications__close:hover,
.officer-portal-notifications__close:focus-visible {
  background: #e2e8f0;
  color: #0f172a;
  outline: none;
}

.officer-notifications-card {
  padding-right: 1.75rem;
}

.officer-portal-menu__hover-zone {
  position: relative;
}

/* Invisible bridge so pointer travel from trigger → panel does not hit a dead zone */
.officer-portal-menu.is-open .officer-portal-menu__hover-zone::after,
.officer-portal-menu.is-closing .officer-portal-menu__hover-zone::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 14px;
  pointer-events: auto;
}

.officer-portal-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 16px 0 18px;
  border: none;
  border-radius: 14px;
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.28);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.officer-portal-menu__trigger:hover,
.officer-portal-menu__trigger:focus-visible {
  background: #1e40af;
  outline: none;
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.34);
}

.officer-portal-menu.is-open .officer-portal-menu__trigger {
  background: #1e40af;
}

.officer-portal-menu__trigger-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.officer-portal-menu__hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  flex-shrink: 0;
}

.officer-portal-menu__hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.officer-portal-menu.is-open .officer-portal-menu__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.officer-portal-menu.is-open .officer-portal-menu__hamburger-line:nth-child(2) {
  opacity: 0;
}

.officer-portal-menu.is-open .officer-portal-menu__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.officer-portal-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 120;
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 18px;
  background: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.65) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.officer-portal-menu.is-open .officer-portal-menu__panel,
.officer-portal-menu.is-closing .officer-portal-menu__panel {
  visibility: visible;
}

.officer-portal-menu.is-open .officer-portal-menu__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.officer-portal-menu.is-closing .officer-portal-menu__panel {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
}

.officer-portal-menu__panel[hidden] {
  display: block;
}

.officer-portal-menu__identity {
  padding: 4px 6px 12px;
}

.officer-portal-menu__signed-in-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.officer-portal-menu__signed-in-name {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}

.officer-portal-menu__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.officer-portal-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.officer-portal-menu__link:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.officer-portal-menu__link--active,
.officer-portal-menu__link--active:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background: #f3f7ff;
  color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08) inset;
}

.officer-portal-menu__link--external {
  padding-right: 10px;
}

.officer-portal-menu__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #475569;
}

.officer-portal-menu__link--active .officer-portal-menu__icon {
  color: #2563eb;
}

.officer-portal-menu__icon--trailing {
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0.65;
}

.officer-portal-menu__logout-form {
  margin: 10px 0 0;
}

.officer-portal-menu__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  background: #ff4848;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 72, 72, 0.28);
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.officer-portal-menu__logout:hover {
  background: #ef4444;
}

.officer-portal-menu__logout:focus-visible {
  outline: 2px solid #fecaca;
  outline-offset: 2px;
}

.officer-portal-menu__logout .officer-portal-menu__icon {
  color: #ffffff;
}

.officer-portal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}

.officer-portal-nav-btn--ghost {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.officer-portal-nav-btn--ghost:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.officer-portal-nav-btn--active,
.officer-portal-nav-btn--active:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background: #f3f7ff;
  color: #2563eb;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.08) inset;
}

.officer-portal-nav-btn--outline {
  background: #ffffff;
  border-color: rgba(29, 78, 216, 0.45);
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.08);
}

.officer-portal-nav-btn--outline:hover {
  border-color: #1d4ed8;
  background: #eff6ff;
}

.officer-portal-nav-btn--primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.28);
}

.officer-portal-nav-btn--primary:hover {
  background: #1e40af;
  border-color: #1e40af;
}

.officer-portal-header__title-short {
  display: none;
}

@media (max-width: 1024px) {
  .officer-portal-header {
    padding: 14px 18px;
    border-radius: 18px;
  }

  .officer-portal-menu {
    width: 100%;
    margin-left: 0;
  }

  .officer-portal-menu__cluster {
    width: 100%;
    justify-content: space-between;
  }

  .officer-portal-menu__location {
    align-items: flex-start;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .officer-portal-header-shell {
    margin-bottom: 16px;
    padding: 0;
  }

  .officer-portal-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .officer-portal-header__brand {
    width: 100%;
    align-items: flex-start;
  }

  .officer-portal-header__title-full {
    display: none;
  }

  .officer-portal-header__title-short {
    display: block;
  }

  .officer-portal-header__title {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .officer-portal-menu {
    width: 100%;
  }

  .officer-portal-menu__cluster {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .officer-portal-menu__location {
    order: 1;
    padding: 0 2px;
  }

  .officer-portal-menu__toolbar {
    order: 2;
    width: 100%;
    justify-content: flex-end;
  }

  .officer-portal-menu__hover-zone {
    flex: 1 1 auto;
    min-width: 0;
  }

  .officer-portal-notifications-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .officer-portal-menu__trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
  }

  .officer-portal-notifications__panel {
    width: min(20rem, calc(100vw - 20px));
    max-height: min(75vh, 400px);
  }
}
