:root {
  color-scheme: dark;
  --bg: #070907;
  --surface: #141815;
  --surface-2: #1b211c;
  --surface-3: #0e1210;
  --line: rgba(222, 170, 55, 0.28);
  --ink: #f5f2e8;
  --muted: #b9bdb6;
  --accent: #d7a92d;
  --accent-2: #6f8f35;
  --warn: #f0c765;
  --danger: #c84a45;
  --good: #8fb84e;
  --blue: #4a78d0;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

/* Public LSSD website */
body.public-site {
  --public-bg: #070907;
  --public-bg-2: #0e1210;
  --public-panel: #141815;
  --public-panel-2: #1b211c;
  --public-line: rgba(222, 170, 55, 0.28);
  --public-gold: #d7a92d;
  --public-gold-2: #f0c765;
  --public-green: #6f8f35;
  --public-green-2: #a2c15a;
  --public-red: #b8262d;
  --public-blue: #2d65c8;
  --public-ink: #f5f2e8;
  --public-muted: #b9bdb6;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(215, 169, 45, 0.11), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(45, 101, 200, 0.13), transparent 26%),
    linear-gradient(180deg, #050605 0%, #10140f 42%, #070907 100%);
  color: var(--public-ink);
  overflow-x: hidden;
}

.public-site a {
  color: inherit;
}

.public-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(215, 169, 45, 0.22);
  background: rgba(5, 7, 6, 0.88);
  backdrop-filter: blur(18px);
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.public-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(215, 169, 45, 0.28));
}

.public-brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.public-brand strong {
  color: #fffaf0;
  font-family: "Arial Narrow", Impact, Inter, ui-sans-serif, sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-brand small {
  color: var(--public-green-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  color: #deded8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-nav a {
  text-decoration: none;
}

.public-nav a:hover,
.public-nav a:focus-visible {
  color: var(--public-gold-2);
}

.public-nav-cta {
  padding: 11px 14px;
  border: 1px solid rgba(240, 199, 101, 0.55);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(215, 169, 45, 0.96), rgba(119, 90, 18, 0.96));
  color: #111 !important;
  box-shadow: 0 12px 30px rgba(215, 169, 45, 0.18);
}

.public-nav-portal {
  padding: 11px 14px;
  border: 1px solid rgba(162, 193, 90, 0.68);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(39, 62, 27, 0.98), rgba(111, 143, 53, 0.92));
  color: #fffaf0 !important;
  box-shadow: 0 12px 28px rgba(111, 143, 53, 0.18);
}

.public-nav-portal:hover,
.public-nav-portal:focus-visible {
  color: #fff !important;
  border-color: rgba(240, 199, 101, 0.72);
}

.public-menu-button {
  display: none;
  border: 1px solid rgba(240, 199, 101, 0.5);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(14, 18, 16, 0.92);
  color: var(--public-ink);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
}

.public-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vh, 92px) 0 clamp(34px, 6vh, 62px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.1);
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.96) 0%, rgba(5, 7, 6, 0.78) 42%, rgba(5, 7, 6, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 7, 6, 0.96) 0%, rgba(5, 7, 6, 0.18) 45%, rgba(5, 7, 6, 0.7) 100%),
    linear-gradient(120deg, rgba(184, 38, 45, 0.24), transparent 18%, transparent 77%, rgba(45, 101, 200, 0.22));
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.public-eyebrow {
  margin: 0 0 12px;
  color: var(--public-gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.public-section h2 {
  margin: 0;
  color: #fffbf0;
  font-family: "Arial Narrow", Impact, Inter, ui-sans-serif, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 700px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.9;
  text-shadow: 0 7px 24px rgba(0, 0, 0, 0.55);
}

.hero-copy > p:not(.public-eyebrow) {
  max-width: 670px;
  margin: 22px 0 0;
  color: #ddd9cf;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.public-button:hover,
.public-button:focus-visible {
  transform: translateY(-1px);
}

.public-button.primary {
  border: 1px solid rgba(240, 199, 101, 0.74);
  background: linear-gradient(135deg, #f0c765, #c89218 52%, #7c5c13);
  color: #111;
  box-shadow: 0 18px 36px rgba(215, 169, 45, 0.22);
}

.public-button.secondary {
  border: 1px solid rgba(162, 193, 90, 0.7);
  background: rgba(43, 59, 29, 0.82);
  color: #f5f2e8;
}

.public-button.ghost {
  border: 1px solid rgba(245, 242, 232, 0.3);
  background: rgba(0, 0, 0, 0.28);
  color: #f5f2e8;
}

.hero-command-strip {
  display: grid;
  gap: 0;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  background: rgba(8, 11, 8, 0.74);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.hero-command-strip div {
  padding: 18px;
  border-bottom: 1px solid rgba(215, 169, 45, 0.18);
}

.hero-command-strip div:last-child {
  border-bottom: 0;
}

.hero-command-strip strong {
  display: block;
  color: var(--public-gold-2);
  font-family: "Arial Narrow", Impact, Inter, ui-sans-serif, sans-serif;
  font-size: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-command-strip span {
  display: block;
  margin-top: 6px;
  color: var(--public-muted);
  line-height: 1.45;
}

.quick-links {
  border-block: 1px solid rgba(215, 169, 45, 0.26);
  background: linear-gradient(90deg, rgba(38, 49, 25, 0.86), rgba(14, 18, 16, 0.94));
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.quick-link-grid a {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-left: 1px solid rgba(215, 169, 45, 0.16);
  color: #f2ead7;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.quick-link-grid a:last-child {
  border-right: 1px solid rgba(215, 169, 45, 0.16);
}

.quick-link-grid a:hover,
.quick-link-grid a:focus-visible {
  background: rgba(215, 169, 45, 0.12);
  color: var(--public-gold-2);
}

.public-section {
  padding: clamp(72px, 9vw, 118px) 0;
  border-bottom: 1px solid rgba(215, 169, 45, 0.11);
}

.public-section h2 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
}

.public-section p {
  color: #c9cbc2;
  line-height: 1.65;
}

.two-column,
.recruitment-layout,
.resources-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 470px);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.value-row span {
  border: 1px solid rgba(215, 169, 45, 0.36);
  border-radius: 999px;
  padding: 9px 13px;
  color: #f3ddb0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-overview {
  display: grid;
  gap: 18px;
}

.staff-overview img,
.division-feature img {
  width: 100%;
  display: block;
  border: 1px solid rgba(215, 169, 45, 0.3);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.staff-overview img {
  aspect-ratio: 1.45;
}

.staff-overview h3,
.requirements-panel h3,
.resource-panels h3,
.news-grid h3,
.division-feature h3 {
  margin: 0;
  color: #fff8e7;
}

.staff-overview p {
  margin-bottom: 0;
}

.divisions-section,
.resources-section {
  background:
    linear-gradient(180deg, rgba(14, 18, 16, 0.88), rgba(7, 9, 7, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 90px);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  max-width: 700px;
  margin-bottom: 0;
}

.division-feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.division-feature {
  position: relative;
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.division-feature.large {
  grid-row: span 2;
  min-height: 620px;
}

.division-feature img {
  height: 100%;
  min-height: inherit;
  border: 0;
  border-radius: 0;
  filter: saturate(0.86) contrast(1.05);
}

.division-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 7, 6, 0.9) 0%, rgba(5, 7, 6, 0.26) 56%),
    linear-gradient(120deg, rgba(215, 169, 45, 0.16), transparent 40%);
}

.division-feature div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: clamp(18px, 3vw, 30px);
}

.division-feature span,
.news-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--public-green-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.division-feature h3 {
  font-family: "Arial Narrow", Impact, Inter, ui-sans-serif, sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

.division-feature:not(.large) h3 {
  font-size: clamp(22px, 2.6vw, 32px);
}

.division-feature p {
  max-width: 520px;
  margin-bottom: 0;
}

.unit-list,
.news-grid,
.resource-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.subdivision-card {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid rgba(215, 169, 45, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 18, 15, 0.94), rgba(5, 8, 7, 0.94));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.subdivision-card h3 {
  margin: 0;
  color: var(--public-gold-2);
  font-family: "Arial Narrow", Impact, Inter, ui-sans-serif, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

.subdivision-card .unit-list {
  margin-top: 18px;
}

.unit-list article,
.requirements-panel,
.resource-panels article,
.news-grid article {
  border: 1px solid rgba(215, 169, 45, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 24, 21, 0.94), rgba(9, 12, 10, 0.94));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.unit-list article {
  min-height: 150px;
  padding: 18px;
}

.unit-list strong {
  display: block;
  color: var(--public-gold-2);
  font-family: "Arial Narrow", Impact, Inter, ui-sans-serif, sans-serif;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.unit-list p {
  margin-bottom: 0;
  font-size: 14px;
}

.recruitment-section {
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.95), rgba(5, 7, 6, 0.66)),
    url("assets/public/lssd-crime-scene.webp") center / cover fixed;
}

.public-check-list,
.requirements-panel ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.public-check-list li,
.requirements-panel li {
  position: relative;
  padding-left: 26px;
  color: #eee8d9;
  line-height: 1.5;
}

.public-check-list li::before,
.requirements-panel li::before {
  content: "";
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--public-gold-2), var(--public-green));
  box-shadow: 0 0 0 4px rgba(215, 169, 45, 0.1);
}

.requirements-panel {
  padding: clamp(22px, 3vw, 30px);
}

.requirements-panel h3 {
  font-family: "Arial Narrow", Impact, Inter, ui-sans-serif, sans-serif;
  font-size: 34px;
  text-transform: uppercase;
}

.training-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(215, 169, 45, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 11, 8, 0.72);
}

.training-path li {
  min-height: 238px;
  padding: 22px;
  border-right: 1px solid rgba(215, 169, 45, 0.18);
}

.training-path li:last-child {
  border-right: 0;
}

.training-path span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--public-gold-2);
  font-weight: 900;
}

.training-path strong {
  display: block;
  color: #fff8e7;
  font-family: "Arial Narrow", Impact, Inter, ui-sans-serif, sans-serif;
  font-size: 27px;
  line-height: 1;
  text-transform: uppercase;
}

.training-path p {
  margin-bottom: 0;
  font-size: 14px;
}

.resource-panels {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.resource-panels article,
.news-grid article {
  padding: 20px;
}

.resource-panels h3,
.news-grid h3 {
  font-family: "Arial Narrow", Impact, Inter, ui-sans-serif, sans-serif;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.resource-panels p,
.news-grid p {
  margin-bottom: 0;
}

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

.contact-section {
  background:
    linear-gradient(90deg, rgba(5, 7, 6, 0.94), rgba(5, 7, 6, 0.68)),
    url("assets/public/lssd-team-briefing.webp") center / cover;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.public-footer {
  padding: 28px 0;
  background: #050605;
  color: var(--public-muted);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-footer p {
  max-width: 760px;
  margin: 0;
  line-height: 1.5;
}

.public-footer a {
  color: var(--public-gold-2);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .public-menu-button {
    display: inline-flex;
  }

  .public-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(215, 169, 45, 0.28);
    border-radius: 8px;
    background: rgba(5, 7, 6, 0.98);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
  }

  .public-nav.is-open {
    display: flex;
  }

  .public-nav a {
    padding: 12px;
    border-radius: 6px;
  }

  .public-nav-cta,
  .public-nav-portal {
    text-align: center;
  }

  .hero-layout,
  .two-column,
  .recruitment-layout,
  .resources-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .public-hero {
    min-height: auto;
  }

  .hero-command-strip {
    max-width: 640px;
  }

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

  .division-feature-grid,
  .unit-list,
  .news-grid,
  .training-path {
    grid-template-columns: 1fr 1fr;
  }

  .division-feature.large {
    grid-row: span 1;
    min-height: 360px;
  }

  .division-feature {
    min-height: 300px;
  }

  .unit-list {
    margin-top: 18px;
  }

  .training-path li {
    border-right: 1px solid rgba(215, 169, 45, 0.18);
    border-bottom: 1px solid rgba(215, 169, 45, 0.18);
  }
}

@media (max-width: 640px) {
  .public-header {
    gap: 8px;
    min-height: 68px;
    padding: 10px 14px;
  }

  .public-brand {
    flex: 1 1 auto;
    gap: 8px;
    max-width: calc(100% - 96px);
  }

  .public-brand img {
    width: 40px;
    height: 40px;
  }

  .public-brand strong {
    font-size: 13px;
    line-height: 1.05;
  }

  .public-brand small {
    font-size: 9px;
    line-height: 1.15;
  }

  .public-menu-button {
    position: absolute;
    top: 12px;
    right: 14px;
  }

  .public-container {
    width: min(100% - 28px, 1180px);
  }

  .public-hero {
    padding-top: 42px;
  }

  .public-hero::before {
    background:
      linear-gradient(90deg, rgba(5, 7, 6, 0.97), rgba(5, 7, 6, 0.74)),
      linear-gradient(0deg, rgba(5, 7, 6, 0.98), rgba(5, 7, 6, 0.28) 50%, rgba(5, 7, 6, 0.8));
  }

  .public-eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10.5vw, 42px);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .hero-copy > p:not(.public-eyebrow) {
    font-size: 17px;
  }

  .hero-actions,
  .value-row {
    align-items: stretch;
    flex-direction: column;
  }

  .public-button {
    width: 100%;
  }

  .quick-link-grid,
  .division-feature-grid,
  .unit-list,
  .news-grid,
  .training-path {
    grid-template-columns: 1fr;
  }

  .quick-link-grid a,
  .quick-link-grid a:last-child {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid rgba(215, 169, 45, 0.16);
  }

  .division-feature,
  .division-feature.large {
    min-height: 320px;
  }

  .training-path li {
    min-height: auto;
    border-right: 0;
  }

  .training-path span {
    margin-bottom: 18px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(215, 169, 45, 0.09), transparent 30%),
    radial-gradient(circle at 90% 4%, rgba(74, 120, 208, 0.08), transparent 24%),
    linear-gradient(180deg, #050605 0%, #10140f 42%, var(--bg) 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

.standalone-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 42px 18px;
}

.standalone-card {
  width: min(920px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portal-card {
  width: min(1540px, 100%);
}

.standalone-card h1,
.standalone-card h2,
.standalone-card p {
  margin: 0;
}

.standalone-card h1 {
  font-size: 30px;
  line-height: 1.15;
}

.standalone-card h2 {
  margin-bottom: 8px;
  font-size: 16px;
}

.standalone-card p,
.standalone-card li {
  color: #d8d6cc;
  line-height: 1.55;
}

.standalone-card ul {
  margin: 0;
  padding-left: 20px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.notice-panel {
  padding: 14px;
  border: 1px solid rgba(240, 199, 101, 0.45);
  border-radius: 8px;
  background: rgba(240, 199, 101, 0.08);
}

.standalone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.portal-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(290px, 340px);
  align-items: start;
  gap: 18px;
}

.portal-shell {
  display: grid;
  gap: 14px;
}

.portal-main-column,
.portal-side-rail,
.portal-tool-list,
.portal-achievement-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.portal-member-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(215, 169, 45, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 169, 45, 0.13), rgba(240, 180, 91, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.portal-member-strip {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px;
}

.portal-strip-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.portal-strip-meta > div:not(.portal-rank-patch) {
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid rgba(215, 169, 45, 0.24);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.5);
}

.portal-strip-meta span {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-strip-meta strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.portal-strip-meta small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.portal-member-hero > div:first-child {
  display: grid;
  gap: 7px;
}

.portal-rtd-identity {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.portal-member-hero span,
.portal-rail-panel h2,
.portal-tool-card span,
.portal-achievement span,
.portal-rtd-badge span,
.portal-checklist strong {
  letter-spacing: 0;
}

.portal-member-hero span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-member-hero h2 {
  margin: 0;
  font-size: 28px;
}

.portal-member-copy {
  justify-self: start;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
}

.portal-member-copy:hover {
  color: #d7f7ef;
}

.portal-member-hero p {
  color: #d8d6cc;
}

.portal-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-promo-pill {
  justify-self: start;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(185, 189, 182, 0.24);
  color: var(--muted);
  background: rgba(185, 189, 182, 0.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-promo-pill.ready {
  color: var(--good);
  border-color: rgba(143, 184, 78, 0.45);
  background: rgba(143, 184, 78, 0.14);
}

.portal-promo-pill.warn {
  color: var(--warn);
  border-color: rgba(240, 199, 101, 0.45);
  background: rgba(240, 199, 101, 0.12);
}

.portal-promo-pill.neutral {
  color: #dbe5f2;
}

.portal-copy-status {
  min-height: 16px;
  color: var(--good);
  font-size: 12px;
}

.portal-rank-patch {
  min-width: 124px;
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(185, 189, 182, 0.42);
  border-radius: 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: rgba(185, 189, 182, 0.09);
}

.portal-rank-patch.has-image {
  gap: 7px;
}

.portal-rank-insignia {
  display: block;
  width: 76px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.portal-rank-patch span {
  display: block;
  color: var(--ink);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.portal-rank-patch strong {
  display: block;
  margin-top: 7px;
  color: #dbe5f2;
  font-size: 11px;
  text-transform: uppercase;
}

.portal-rank-patch.gold {
  border-color: rgba(240, 180, 91, 0.58);
  background: rgba(240, 180, 91, 0.12);
}

.portal-rank-patch.silver {
  border-color: rgba(203, 213, 225, 0.58);
  background: rgba(203, 213, 225, 0.1);
}

.portal-rank-patch.bronze {
  border-color: rgba(180, 134, 87, 0.58);
  background: rgba(180, 134, 87, 0.1);
}

.portal-side-rail {
  position: sticky;
  top: 18px;
}

.portal-rail-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.portal-rail-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.portal-tool-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(215, 169, 45, 0.28);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.46);
}

.portal-tool-card.locked {
  border-color: rgba(185, 189, 182, 0.18);
  opacity: 0.74;
}

.portal-tool-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(215, 169, 45, 0.42);
  border-radius: 8px;
  color: #d7f7ef;
  background: rgba(215, 169, 45, 0.12);
  font-size: 12px;
  font-weight: 950;
}

.portal-tool-card span,
.portal-achievement span,
.portal-rtd-badge span {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-tool-card strong,
.portal-achievement strong,
.portal-rtd-badge strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.portal-tool-card small,
.portal-achievement small,
.portal-rtd-badge small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.portal-tool-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-tool-primary {
  display: inline-flex;
  align-items: center;
  min-width: 118px;
  justify-content: center;
  text-align: center;
  font-weight: 800;
}

.portal-tool-primary.primary {
  color: #06110f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.portal-tool-link {
  min-height: 28px;
  padding: 5px 8px;
  border-color: rgba(215, 169, 45, 0.28);
  border-radius: 999px;
  background: rgba(215, 169, 45, 0.07);
  font-size: 12px;
}

.portal-action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(215, 169, 45, 0.24);
  border-radius: 8px;
  background: rgba(10, 13, 11, 0.58);
}

.portal-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(215, 169, 45, 0.34);
  border-radius: 6px;
  background: rgba(18, 22, 19, 0.82);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.portal-action-pill.has-hint {
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}

.portal-action-pill small {
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.78;
}

.portal-action-pill.primary {
  border-color: rgba(240, 199, 101, 0.75);
  background: linear-gradient(135deg, var(--accent), #b98b16);
  color: #080a08;
}

.portal-action-pill.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.portal-action-pill span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.24);
  color: inherit;
  font-size: 10px;
  font-weight: 950;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  border-bottom: 1px solid rgba(215, 169, 45, 0.2);
}

.portal-tabs button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.portal-tabs button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.portal-tab-panel {
  display: none;
}

.portal-tab-panel.active {
  display: grid;
  gap: 14px;
}

.portal-today-inbox {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(215, 169, 45, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.portal-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.portal-section-heading span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-section-heading h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.portal-inbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.portal-inbox-grid article,
.portal-inbox-grid a,
.portal-inbox-grid button {
  display: grid;
  gap: 4px;
  min-width: 0;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid rgba(185, 189, 182, 0.18);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.58);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.portal-inbox-grid button:hover,
.portal-inbox-grid a:hover {
  border-color: rgba(240, 199, 101, 0.52);
  background: rgba(215, 169, 45, 0.08);
}

.portal-inbox-grid span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-inbox-grid strong {
  color: var(--ink);
  font-size: 20px;
}

.portal-inbox-grid small {
  color: var(--muted);
}

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

.portal-achievement,
.portal-rtd-badge {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(185, 189, 182, 0.22);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.46);
}

.portal-achievement.unlocked {
  border-color: rgba(143, 184, 78, 0.32);
  background:
    linear-gradient(135deg, rgba(143, 184, 78, 0.1), rgba(215, 169, 45, 0.06)),
    rgba(14, 18, 16, 0.46);
}

.portal-achievement.locked,
.portal-rtd-badge.locked {
  opacity: 0.72;
}

.portal-rtd-badge.active {
  border-color: rgba(215, 169, 45, 0.36);
  background: rgba(215, 169, 45, 0.08);
}

.portal-checklist {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.portal-checklist li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 199, 101, 0.32);
  border-radius: 8px;
  background: rgba(240, 199, 101, 0.08);
}

.portal-checklist li.met {
  border-color: rgba(143, 184, 78, 0.32);
  background: rgba(143, 184, 78, 0.08);
}

.portal-checklist li span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--warn);
}

.portal-checklist li.met span {
  background: var(--good);
}

.portal-preview-banner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(215, 169, 45, 0.42);
  border-radius: 8px;
  background: rgba(215, 169, 45, 0.08);
}

.recruitment-standalone-page {
  place-items: start center;
  background:
    radial-gradient(circle at 16% 12%, rgba(215, 169, 45, 0.09), transparent 30%),
    radial-gradient(circle at 90% 4%, rgba(74, 120, 208, 0.08), transparent 24%),
    linear-gradient(180deg, #050605 0%, #10140f 42%, var(--bg) 100%);
}

.recruitment-standalone-shell {
  width: min(1120px, 100%);
  display: grid;
  gap: 20px;
}

.recruitment-page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.recruitment-page-nav a,
.portal-quick-links a {
  color: #bce7ff;
}

.recruit-hero {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(215, 169, 45, 0.42);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.recruit-hero p {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.recruit-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.recruit-hero span,
.recruit-step-content > p,
.recruit-callout span,
.display-name-options small {
  color: var(--muted);
}

.recruit-wizard-card {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.recruit-step-header {
  display: grid;
  gap: 12px;
}

.recruit-step-header span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.recruit-step-header div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.recruit-step-header i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.recruit-step-content {
  display: grid;
  gap: 16px;
}

.recruit-step-content h2 {
  margin: 0;
  font-size: 26px;
}

.recruit-step-content > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.recruit-step-content > .recruit-step-instruction {
  justify-self: center;
  color: #ff9f1c;
  font-size: 20pt;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.recruit-step-content label,
.display-name-options {
  display: grid;
  gap: 8px;
}

.recruit-step-content label span,
.display-name-options > span {
  font-weight: 800;
}

.recruit-eligibility-question > span {
  font-size: 15pt;
}

.recruit-question-dark > span {
  color: #00d084;
}

.recruit-question-light > span {
  color: #7dffbf;
}

.recruit-step-content input,
.recruit-step-content select,
.recruit-step-content textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--ink);
}

.recruit-step-content select {
  cursor: pointer;
}

.recruit-step-content textarea {
  min-height: 96px;
  resize: vertical;
}

.recruit-callout,
.recruit-guidance-panel,
.recruit-output-box,
.recruit-confirm,
.recruit-complete {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}

.recruit-callout {
  display: grid;
  gap: 8px;
}

.recruit-off-topic-callout {
  justify-items: center;
  text-align: center;
}

.recruit-helper-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.recruit-guidance-panel {
  display: grid;
  gap: 10px;
  border-color: rgba(215, 169, 45, 0.3);
  background: rgba(215, 169, 45, 0.07);
}

.recruit-guidance-panel strong {
  color: #d8fff9;
}

.recruit-guidance-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.45;
}

.recruit-guidance-panel ol {
  margin: 0;
  padding-left: 20px;
  color: #d6e4f0;
  line-height: 1.55;
}

.discord-id-help {
  gap: 14px;
}

.recruit-media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05080d;
}

.recruit-media-frame img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.recruit-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.recruit-off-topic-callout .recruit-link-row {
  justify-content: center;
}

.recruit-link-row a {
  color: #d8fff9;
  font-size: 22px;
  font-weight: 800;
}

.recruit-link-row .button {
  min-height: 34px;
  padding: 7px 12px;
}

.recruit-channel-button {
  justify-self: start;
}

.recruit-off-topic-button {
  justify-self: center;
  color: #020617 !important;
  font-weight: 900;
  text-align: center;
}

.display-name-options button {
  min-height: 48px;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
}

.display-name-options button.active,
.display-name-options button:hover {
  border-color: rgba(215, 169, 45, 0.55);
  background: rgba(215, 169, 45, 0.08);
}

.recruit-output-grid {
  display: grid;
  gap: 14px;
}

.recruit-output-box {
  display: grid;
  gap: 12px;
}

.recruit-output-box h3 {
  margin: 0;
}

.recruit-output-box textarea {
  min-height: 160px;
  font: 13px/1.5 Consolas, "Courier New", monospace;
}

.recruit-output-actions,
.recruit-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recruit-nav-actions {
  justify-content: space-between;
}

.recruit-nav-actions [data-recruit-next] {
  color: #020617;
  font-weight: 800;
}

.recruit-nav-actions [data-recruit-next]:disabled {
  color: #020617;
}

.recruit-status-line {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

.recruit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 5, 0.78);
}

.recruit-modal {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid rgba(240, 199, 101, 0.52);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.recruit-modal h3 {
  margin: 0;
  color: var(--warn);
  font-size: 24px;
}

.recruit-modal p {
  margin: 0;
  color: #d8d6cc;
}

.recruit-modal ul {
  margin: 0;
  padding-left: 20px;
  color: #fffaf0;
  line-height: 1.5;
}

.recruit-modal-close {
  justify-self: end;
  color: #020617 !important;
  font-weight: 900;
}

.recruit-confirm {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
}

.recruit-confirm input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.recruit-complete {
  color: #c8ffe8;
  border-color: rgba(143, 184, 78, 0.35);
  background: rgba(143, 184, 78, 0.08);
}

.recruit-save-status {
  padding: 12px 14px;
  border: 1px solid rgba(215, 169, 45, 0.35);
  border-radius: 8px;
  color: #d8fff9;
  background: rgba(215, 169, 45, 0.08);
}

.recruit-error-text {
  color: #ffb4b4;
  font-size: 12px;
  line-height: 1.4;
}

.recruit-error-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(239, 68, 68, 0.42);
  border-radius: 8px;
  color: #ffd1d1;
  background: rgba(127, 29, 29, 0.2);
}

.dashboard-recruitment-wizard {
  max-width: 1120px;
}

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

.classroom-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.classroom-section-head h3 {
  margin: 0;
}

.classroom-person-list,
.classroom-checklist {
  display: grid;
  gap: 10px;
}

.classroom-person-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}

.classroom-person-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.classroom-person-row header span {
  color: var(--muted);
  font-weight: 800;
}

.classroom-person-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.classroom-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #d6e4f0;
  line-height: 1.55;
}

.classroom-check-row {
  margin: 0;
  align-items: center;
  min-height: 64px;
}

.classroom-check-row span,
.classroom-wizard-card .recruit-confirm span {
  color: #c8d8ee;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.classroom-check-row input,
.classroom-wizard-card .recruit-confirm input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.classroom-resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: auto;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 850;
}

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

.ride-guide-card,
.ride-guide-notice {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}

.ride-guide-card.is-complete {
  opacity: 0.56;
  filter: grayscale(0.75);
}

.ride-guide-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.ride-guide-card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 8px;
}

.ride-guide-card h3,
.ride-guide-card p,
.ride-guide-notice p {
  margin: 0;
}

.ride-guide-card h3 {
  color: var(--ink);
  font-size: 17px;
}

.ride-guide-card p,
.ride-guide-notice p {
  color: #c8d8ee;
  line-height: 1.45;
}

.ride-guide-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #d6e4f0;
  line-height: 1.45;
}

.ride-guide-check-list {
  display: grid;
  gap: 8px;
}

.ride-guide-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d6e4f0;
  line-height: 1.4;
}

.ride-guide-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.ride-guide-card-toggle {
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ride-guide-card-toggle input {
  width: 22px;
  height: 22px;
}

.ride-guide-inline-help {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(215, 169, 45, 0.28);
  border-radius: 8px;
  background: rgba(215, 169, 45, 0.07);
  color: #c8d8ee;
}

.ride-guide-callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.ride-guide-callout {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(215, 169, 45, 0.28);
  border-radius: 8px;
  background: rgba(215, 169, 45, 0.07);
}

.ride-guide-callout span,
.ride-guide-notice strong {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ride-guide-callout strong {
  color: #fffaf0;
  overflow-wrap: anywhere;
}

.ride-guide-notice {
  border-color: rgba(240, 199, 101, 0.38);
  background: rgba(240, 199, 101, 0.08);
}

.ride-path-options {
  display: grid;
  gap: 10px;
}

.ride-path-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  cursor: pointer;
}

.ride-path-option.active {
  border-color: rgba(215, 169, 45, 0.56);
  background: rgba(215, 169, 45, 0.08);
}

.ride-path-option input {
  grid-row: span 2;
  margin-top: 4px;
  accent-color: var(--accent);
}

.ride-path-option strong {
  color: #fffaf0;
}

.ride-path-option span {
  color: var(--muted);
  line-height: 1.4;
}

.radio-training-card {
  gap: 12px;
}

.radio-hero span {
  color: #c8d8ee;
  font-weight: 800;
}

.radio-actions,
.radio-tabs,
.radio-select-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.radio-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.radio-select-group {
  justify-content: end;
}

.radio-select-group label {
  min-width: 160px;
}

.radio-select-group label:last-child {
  min-width: 220px;
}

.radio-select-group small {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.radio-toolbar label,
.radio-select-group label,
.radio-trainee-row label,
.radio-manual-callsign,
.radio-response,
.radio-audio-panel label {
  display: grid;
  align-content: start;
  gap: 8px;
}

.radio-toolbar label span,
.radio-select-group label span,
.radio-trainee-row label span,
.radio-manual-callsign span,
.radio-audio-panel label span,
.radio-response span,
.radio-dispatch span,
.radio-expected span,
.radio-feedback span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.radio-toolbar select,
.radio-select-group select,
.radio-trainee-row select,
.radio-manual-callsign input,
.radio-reference input,
.radio-response textarea,
.radio-audio-panel input[type="range"] {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--ink);
}

.radio-manual-callsign small {
  min-height: 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.radio-trainee-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px) minmax(132px, 150px);
  align-items: start;
  gap: 12px;
}

.radio-trainee-row.no-roster {
  grid-template-columns: minmax(160px, 220px) minmax(132px, 150px);
}

.radio-trainee-row.no-roster .radio-manual-callsign {
  grid-column: 1;
}

.radio-mode-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.radio-mic-help {
  margin: -2px 0 0;
  padding: 9px 10px;
  border: 1px solid rgba(185, 189, 182, 0.2);
  border-radius: 8px;
  color: #d8d6cc;
  background: rgba(14, 18, 16, 0.32);
}

.radio-mic-help.pending {
  border-color: rgba(74, 120, 208, 0.36);
  background: rgba(74, 120, 208, 0.09);
}

.radio-mic-help.blocked,
.radio-mic-help.error {
  border-color: rgba(240, 199, 101, 0.42);
  color: var(--warn);
  background: rgba(240, 199, 101, 0.08);
}

.radio-mic-help.listening {
  border-color: rgba(215, 169, 45, 0.42);
  background: rgba(215, 169, 45, 0.08);
}

.radio-test-timer {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}

.radio-test-timer span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.radio-test-timer strong {
  color: var(--ink);
  font-size: 20px;
}

.radio-tabs .active {
  border-color: rgba(215, 169, 45, 0.7);
  color: var(--ink);
  background: rgba(215, 169, 45, 0.2);
}

.radio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 16px;
}

.radio-main-panel,
.radio-side-panel,
.radio-dispatch,
.radio-expected,
.radio-feedback {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}

.radio-main-panel,
.radio-side-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.radio-side-panel {
  overflow: hidden;
}

.radio-side-panel > section,
.radio-side-panel details {
  min-width: 0;
}

.radio-scenario-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.radio-scenario-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.radio-scenario-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.radio-scenario-head strong {
  color: #d7f7ef;
  white-space: nowrap;
}

.radio-dispatch,
.radio-expected,
.radio-feedback {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.radio-dispatch p,
.radio-expected p,
.radio-feedback p,
.radio-status {
  margin: 0;
  color: #d6e4f0;
  line-height: 1.5;
}

.radio-expected small {
  color: var(--muted);
  line-height: 1.45;
}

.radio-response textarea {
  width: 100%;
  max-width: 100%;
  min-height: 96px;
  resize: vertical;
}

.radio-feedback.pass {
  border-color: rgba(215, 169, 45, 0.45);
  background: rgba(215, 169, 45, 0.09);
}

.radio-feedback.review {
  border-color: rgba(240, 199, 101, 0.45);
  background: rgba(240, 199, 101, 0.08);
}

.radio-feedback div,
.radio-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-feedback strong,
.radio-progress-grid dd {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.radio-side-panel h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.radio-side-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 2px;
}

.radio-side-tabs .mini-button {
  flex: 1 1 76px;
  min-height: 36px;
  min-width: 0;
  padding: 8px 10px;
  font-size: 12px;
}

.radio-side-tabs .active {
  border-color: rgba(215, 169, 45, 0.7);
  color: var(--ink);
  background: rgba(215, 169, 45, 0.2);
}

.radio-audio-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.radio-audio-panel small {
  color: var(--muted);
  line-height: 1.4;
}

.radio-voice-status,
.radio-audio-error {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(185, 189, 182, 0.18);
  border-radius: 8px;
  color: #c8d8ee;
  background: rgba(14, 18, 16, 0.28);
}

.radio-voice-status strong {
  color: #d7f7ef;
}

.radio-audio-error {
  border-color: rgba(240, 199, 101, 0.38);
  color: var(--warn);
  background: rgba(240, 199, 101, 0.08);
}

.radio-audio-panel input[type="range"] {
  min-height: 32px;
  padding: 0;
  accent-color: var(--accent);
}

.radio-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
}

.radio-toggle input {
  width: 18px;
  height: 18px;
}

.radio-progress-grid {
  margin: 0;
}

.radio-progress-grid div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.36);
}

.radio-progress-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.radio-progress-grid dd {
  margin: 2px 0 0;
}

.radio-mini-list,
.radio-reference ul {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.radio-mini-list li,
.radio-reference li {
  display: grid;
  grid-template-columns: minmax(64px, 96px) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(185, 189, 182, 0.18);
  border-radius: 8px;
  color: #c8d8ee;
  background: rgba(14, 18, 16, 0.26);
}

.radio-mini-list.leaderboard li {
  grid-template-columns: minmax(0, 1fr);
}

.radio-mini-list li span,
.radio-mini-list li strong,
.radio-reference li span,
.radio-reference li strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.radio-reference {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.radio-reference summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.radio-reference input {
  margin: 10px 0;
}

.radio-reference ul {
  max-height: 360px;
  overflow: auto;
}

.radio-reference strong,
.radio-mini-list strong {
  color: #d7f7ef;
}

.radio-status {
  color: var(--muted);
  font-size: 13px;
}

.portal-quick-links {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(auto-fit, minmax(150px, auto));
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(215, 169, 45, 0.36);
  border-radius: 8px;
  background: rgba(215, 169, 45, 0.07);
}

.portal-quick-links span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-quick-links h2,
.portal-quick-links p {
  margin: 0;
}

.portal-quick-links p {
  color: var(--muted);
  font-size: 12px;
}

.portal-preview-banner[hidden] {
  display: none;
}

.portal-preview-banner div,
.portal-preview-banner label {
  display: grid;
  gap: 4px;
}

.portal-preview-banner strong,
.portal-preview-banner label span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.portal-preview-banner div span {
  color: #d8d6cc;
  font-size: 13px;
}

.portal-preview-banner select {
  min-height: 38px;
}

.portal-profile-band,
.portal-current-grid,
.portal-week-history {
  display: grid;
  gap: 12px;
}

.portal-profile-band {
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.portal-current-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.portal-current-grid > div,
.portal-week-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.portal-profile-band > div,
.portal-current-grid > div {
  display: grid;
  gap: 6px;
  align-content: start;
}

.portal-profile-band span,
.portal-current-grid span,
.portal-profile-band small,
.portal-current-grid small {
  color: var(--muted);
  font-size: 12px;
}

.portal-profile-band strong,
.portal-current-grid strong {
  overflow-wrap: anywhere;
}

.portal-inline-button {
  justify-self: start;
  width: fit-content;
  margin-top: 4px;
}

.portal-refresh-card small {
  display: block;
}

.portal-week-history {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.portal-week-card {
  display: grid;
  gap: 12px;
}

.portal-week-card.ok {
  border-color: rgba(143, 184, 78, 0.28);
}

.portal-week-card.warn {
  border-color: rgba(240, 199, 101, 0.32);
}

.portal-week-card.missing {
  border-color: rgba(185, 189, 182, 0.28);
}

.portal-week-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.portal-week-card header div,
.portal-week-hours {
  display: grid;
  gap: 4px;
}

.portal-week-card header span,
.portal-week-hours span {
  color: var(--muted);
  font-size: 12px;
}

.portal-week-hours strong {
  font-size: 24px;
}

.portal-week-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.portal-week-progress > span {
  padding: 2px 7px;
  border: 1px solid rgba(185, 189, 182, 0.2);
  border-radius: 999px;
  color: #dbe5f2;
  background: rgba(14, 18, 16, 0.62);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.portal-status {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid rgba(185, 189, 182, 0.22);
  background: rgba(185, 189, 182, 0.08);
  font-size: 11px;
  white-space: nowrap;
}

.portal-status.ok {
  color: var(--good);
  border-color: rgba(143, 184, 78, 0.35);
  background: rgba(143, 184, 78, 0.08);
}

.portal-status.warn {
  color: var(--warn);
  border-color: rgba(240, 199, 101, 0.38);
  background: rgba(240, 199, 101, 0.08);
}

.portal-week-bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.portal-week-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.portal-rtd-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.portal-rtd-line div {
  min-width: 0;
}

.portal-rtd-line dt,
.portal-rtd-line dd {
  margin: 0;
}

.portal-rtd-line dt {
  color: var(--muted);
  font-size: 10px;
}

.portal-rtd-line dd {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.portal-week-total {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.portal-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.portal-grid div,
.portal-progress {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.portal-section {
  display: grid;
  gap: 10px;
}

.portal-alerts {
  display: grid;
  gap: 8px;
}

.portal-alerts p,
.portal-meta {
  margin: 0;
  color: #ffdf9b;
  font-size: 13px;
}

.portal-alerts p {
  padding: 10px 12px;
  border: 1px solid rgba(240, 199, 101, 0.36);
  border-radius: 8px;
  background: rgba(240, 199, 101, 0.08);
}

.portal-meta {
  color: var(--muted);
}

.portal-grid span,
.portal-progress span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.portal-progress div {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.rtd-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.misc-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.misc-launch-card {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.44);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.misc-launch-card:hover,
.misc-launch-card:focus-visible {
  border-color: rgba(215, 169, 45, 0.72);
  outline: none;
}

.misc-launch-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.nested-tab:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

button,
input,
select {
  font: inherit;
}

.inline-number {
  width: 100px;
  min-height: 32px;
}

.inline-text {
  width: 180px;
  min-height: 32px;
}

.inline-select {
  width: 180px;
  min-height: 32px;
  padding: 5px 8px;
}

.wide-input {
  width: 320px;
}

.table-wrap input,
.table-wrap select,
.table-wrap textarea {
  max-width: 100%;
}

.table-wrap .inline-number {
  width: min(80px, 100%);
}

.table-wrap .inline-text {
  width: min(160px, 100%);
}

.table-wrap .wide-input {
  width: 100%;
}

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

.sidebar {
  background: #111722;
  color: #f8fafc;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid #222c3b;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 8px 4px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  width: min(178px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.32));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand h1,
.topbar h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
}

.brand h1 {
  max-width: 210px;
  font-size: 22px;
}

.brand p,
.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.control-group {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}

.control-group h2 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  color: #d8d6cc;
}

.sidebar-status,
.refresh-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-status.error,
.refresh-status.error {
  color: #ffd0d5;
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--ink);
  padding: 8px 10px;
}

.sidebar input,
.sidebar select {
  border-color: rgba(240, 199, 101, 0.32);
}

.file-pick {
  display: grid;
  gap: 4px;
}

.advanced-imports {
  display: grid;
  gap: 10px;
}

.advanced-imports summary {
  cursor: pointer;
  color: #d8d6cc;
  font-size: 12px;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.advanced-imports[open] {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}

.file-pick input {
  padding: 7px;
  background: var(--surface-3);
}

.weekly-hours {
  display: grid;
  gap: 8px;
}

.ledger-list {
  display: grid;
  gap: 6px;
}

.ledger-empty,
.ledger-summary,
.ledger-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(15, 21, 32, 0.72);
  padding: 8px;
}

.ledger-empty {
  color: var(--muted);
  font-size: 12px;
}

.ledger-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ledger-summary strong,
.ledger-summary span {
  display: block;
}

.ledger-summary strong {
  font-size: 12px;
}

.ledger-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.ledger-details {
  display: grid;
  gap: 6px;
}

.ledger-details summary {
  min-height: 28px;
  cursor: pointer;
  color: #bfd0df;
  font-size: 12px;
}

.ledger-help {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ledger-week-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.ledger-details:not([open]) .ledger-week-list {
  display: none;
}

.ledger-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.ledger-item strong {
  display: block;
  font-size: 12px;
}

.ledger-item span {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.ledger-item small {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.ledger-item.current small {
  color: var(--accent);
}

.ledger-item.unlocked small {
  color: var(--warn);
}

.ledger-icon-button {
  width: 32px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.ledger-icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ledger-remove {
  color: #ffd4cc;
  border-color: rgba(255, 212, 204, 0.25);
}

.ledger-lock {
  color: #d8d6cc;
  border-color: rgba(185, 189, 182, 0.22);
}

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

.button,
.mini-button,
.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 12px;
  cursor: pointer;
}

.button:hover,
.mini-button:hover,
.tab:hover {
  border-color: rgba(240, 199, 101, 0.62);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
.mini-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.button.danger {
  background: transparent;
  color: #ffd4cc;
  border-color: rgba(255, 212, 204, 0.32);
}

.mini-button.danger {
  color: #ffd4cc;
  border-color: rgba(255, 212, 204, 0.32);
}

.workspace {
  min-width: 0;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar > div:first-child {
  min-width: 260px;
}

.topbar p {
  color: var(--muted);
}

.topbar-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.account-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.account-chip {
  min-width: 150px;
  max-width: 240px;
  min-height: 38px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-align: right;
}

.account-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.account-chip small {
  color: var(--muted);
  font-size: 11px;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.lower-rank-view-button {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}

.status-bar {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 26, 36, 0.72);
}

.load-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.pill {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
}

.pill.ok {
  color: var(--good);
  border-color: rgba(22, 121, 76, 0.35);
}

.pill.warn {
  color: var(--warn);
  border-color: rgba(180, 83, 9, 0.35);
}

.pill.stale {
  color: var(--danger);
  border-color: rgba(255, 77, 94, 0.38);
}

.date-filter {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.date-filter input {
  min-width: 170px;
  min-height: 40px;
  padding: 9px 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric-grid.command-metrics {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.metric {
  appearance: none;
  text-align: left;
  width: 100%;
  color: var(--ink);
  font: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.metric-button {
  cursor: pointer;
}

.metric-button:hover,
.metric-button.active {
  border-color: #8fb7aa;
  transform: translateY(-1px);
}

.metric-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.executive-card small,
.executive-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.executive-card em {
  font-weight: 700;
}

.executive-card .trend-up {
  color: #38bdf8;
}

.executive-card .trend-down {
  color: #a7f3d0;
}

.executive-card .trend-flat {
  color: var(--muted);
}

.tabs {
  display: grid;
  gap: 7px;
}

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

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.segmented-control button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
}

.segmented-control button.active {
  border-color: var(--accent);
  color: #111;
  background: var(--accent);
}

.tab {
  width: 100%;
  min-height: 34px;
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.tab.active {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

.tab.profile-tab-highlight {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

.tab.command-home-tab.active {
  background: transparent;
  color: var(--text);
}

.metric-accordion {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.42);
  overflow: hidden;
}

.metric-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.metric-accordion summary::-webkit-details-marker {
  display: none;
}

.metric-accordion summary::after {
  content: ">";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(215, 169, 45, 0.42);
  border-radius: 999px;
  color: var(--accent);
  transition: transform 160ms ease;
}

.metric-accordion[open] summary::after {
  transform: rotate(90deg);
}

.metric-accordion summary strong,
.metric-accordion summary small {
  display: block;
}

.metric-accordion summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.metric-accordion-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.mini-kpi-accordion .metric-accordion-body {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.side-nav {
  padding-top: 4px;
}

.nested-nav {
  display: grid;
  gap: 2px;
  margin: -1px 0 4px 10px;
  padding: 4px 0 3px 11px;
  border-left: 1px solid rgba(215, 169, 45, 0.22);
}

.nested-tab {
  display: block;
  position: relative;
  width: 100%;
  min-height: 28px;
  padding: 5px 10px 5px 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d8d6cc;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.nested-tab:hover {
  background: rgba(185, 189, 182, 0.08);
  color: #fffaf0;
}

.nested-tab.active {
  background: rgba(215, 169, 45, 0.11);
  color: #f0c765;
}

.nested-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
}

.nested-tab.active::before {
  background: var(--accent);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

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

.section-grid .wide {
  grid-column: 1 / -1;
}

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

.overview-action-wrap {
  max-height: calc(100vh - 430px);
  min-height: 360px;
}

.compact-table {
  max-height: 280px;
}

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

.nested-table {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
}

.training-result-detail {
  display: grid;
  gap: 14px;
  min-height: 140px;
  padding: 16px;
  color: var(--ink);
}

.training-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.training-result-header span,
.training-result-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.training-result-header h4 {
  margin: 3px 0 0;
  font-size: 20px;
}

.training-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.training-result-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.42);
}

.training-result-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.training-result-log {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
}

.classroom-resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

#commandActionQueueTable {
  table-layout: fixed;
  min-width: 1120px;
}

#commandActionQueueTable th:nth-child(1),
#commandActionQueueTable td:nth-child(1) {
  width: 90px;
}

#commandActionQueueTable th:nth-child(2),
#commandActionQueueTable td:nth-child(2) {
  width: 135px;
}

#commandActionQueueTable th:nth-child(3),
#commandActionQueueTable td:nth-child(3) {
  width: 180px;
}

#commandActionQueueTable th:nth-child(4),
#commandActionQueueTable td:nth-child(4) {
  width: 190px;
}

#commandActionQueueTable th:nth-child(5),
#commandActionQueueTable td:nth-child(5) {
  width: 230px;
}

#commandActionQueueTable td:nth-child(4),
#commandActionQueueTable td:nth-child(5),
#commandActionQueueTable td:nth-child(6) {
  white-space: normal;
  overflow-wrap: anywhere;
}

#membersTable {
  table-layout: fixed;
  min-width: 1780px;
}

#membersTable th:nth-child(1),
#membersTable td:nth-child(1) {
  width: 78px;
}

#membersTable th:nth-child(2),
#membersTable td:nth-child(2) {
  width: 170px;
}

#membersTable th:nth-child(3),
#membersTable td:nth-child(3) {
  width: 130px;
}

#membersTable th:nth-child(4),
#membersTable td:nth-child(4) {
  width: 132px;
}

#membersTable th:nth-child(5),
#membersTable td:nth-child(5),
#membersTable th:nth-child(6),
#membersTable td:nth-child(6) {
  width: 150px;
}

#membersTable th:nth-child(7),
#membersTable td:nth-child(7) {
  width: 185px;
}

#membersTable th:nth-child(8),
#membersTable td:nth-child(8) {
  width: 165px;
}

#membersTable th:nth-child(9),
#membersTable td:nth-child(9) {
  width: 175px;
}

#membersTable th:nth-child(10),
#membersTable td:nth-child(10) {
  width: 190px;
}

#membersTable th:nth-child(11),
#membersTable td:nth-child(11) {
  width: 270px;
}

#membersTable td:nth-child(8),
#membersTable td:nth-child(10),
#membersTable td:nth-child(11) {
  white-space: normal;
  overflow-wrap: anywhere;
}

#rtdActionQueueTable {
  table-layout: fixed;
  min-width: 1510px;
}

#rtdActionQueueTable th:nth-child(1),
#rtdActionQueueTable td:nth-child(1) {
  width: 90px;
}

#rtdActionQueueTable th:nth-child(2),
#rtdActionQueueTable td:nth-child(2) {
  width: 145px;
}

#rtdActionQueueTable th:nth-child(3),
#rtdActionQueueTable td:nth-child(3) {
  width: 260px;
}

#rtdActionQueueTable th:nth-child(4),
#rtdActionQueueTable td:nth-child(4) {
  width: 210px;
}

#rtdActionQueueTable th:nth-child(5),
#rtdActionQueueTable td:nth-child(5),
#rtdActionQueueTable th:nth-child(6),
#rtdActionQueueTable td:nth-child(6) {
  width: 150px;
}

#rtdActionQueueTable th:nth-child(7),
#rtdActionQueueTable td:nth-child(7) {
  width: 240px;
}

#rtdActionQueueTable th:nth-child(8),
#rtdActionQueueTable td:nth-child(8) {
  width: 250px;
}

#rtdActionQueueTable td:nth-child(3),
#rtdActionQueueTable td:nth-child(4),
#rtdActionQueueTable td:nth-child(6),
#rtdActionQueueTable td:nth-child(7),
#rtdActionQueueTable td:nth-child(8) {
  white-space: normal;
  overflow-wrap: anywhere;
}

#rtdActionQueueTable .person-link {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

#tab-movements .movements-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

#tab-movements #movementsTable {
  min-width: 100%;
}

.overview-details summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.overview-details:not([open]) summary {
  border-bottom: 0;
}

.overview-details summary::marker {
  color: var(--muted);
}

.members-snapshot-panel {
  display: none;
}

#tab-members.snapshot-mode [data-members-list-surface] {
  display: none;
}

#tab-members.snapshot-mode .members-snapshot-panel {
  display: block;
}

#tab-members.snapshot-mode .members-snapshot-panel summary {
  cursor: default;
  pointer-events: none;
}

.mini-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mini-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.mini-kpi-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mini-kpi-button:hover,
.mini-kpi-button.active {
  border-color: rgba(215, 169, 45, 0.55);
  background: rgba(215, 169, 45, 0.08);
}

.mini-kpi span,
.mini-kpi small,
.snapshot-meta span,
.snapshot-notes span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.mini-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
}

.mini-kpi small {
  margin-top: 8px;
}

.member-snapshot {
  display: grid;
  gap: 18px;
  padding: 0;
}

.snapshot-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 130px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.snapshot-hero h3,
.snapshot-hero p,
.snapshot-notes p {
  margin: 0;
}

.snapshot-hero > div > span,
.snapshot-hero p {
  color: var(--muted);
  font-size: 13px;
}

.snapshot-hero h3 {
  margin-top: 8px;
  font-size: 24px;
}

.snapshot-outcome {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.snapshot-outcome strong {
  font-size: 20px;
}

.snapshot-outcome small {
  max-width: 420px;
  color: var(--muted);
}

.snapshot-meta,
.snapshot-progress,
.snapshot-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.snapshot-meta div,
.progress-card,
.snapshot-notes div,
.snapshot-current-grid div,
.snapshot-week-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.snapshot-meta strong {
  display: block;
  margin-top: 5px;
}

.snapshot-progress {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
  background: #2b3547;
  border-radius: 999px;
}

.progress-track div {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

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

.snapshot-current-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.snapshot-current-grid span,
.snapshot-history-section p,
.snapshot-week-card header span,
.snapshot-week-hours span,
.snapshot-rtd-line dt {
  color: var(--muted);
  font-size: 12px;
}

.snapshot-current-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.snapshot-history-section {
  display: grid;
  gap: 10px;
}

.snapshot-history-section h4,
.snapshot-history-section p {
  margin: 0;
}

.snapshot-week-history {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.snapshot-week-card {
  display: grid;
  gap: 12px;
}

.snapshot-week-card.ok {
  border-color: rgba(143, 184, 78, 0.28);
}

.snapshot-week-card.warn {
  border-color: rgba(240, 199, 101, 0.36);
}

.snapshot-week-card.danger {
  border-color: rgba(244, 63, 94, 0.42);
}

.snapshot-week-card.missing {
  border-color: rgba(185, 189, 182, 0.28);
}

.snapshot-week-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.snapshot-week-card header div,
.snapshot-week-hours {
  display: grid;
  gap: 4px;
}

.snapshot-week-hours strong {
  font-size: 22px;
}

.snapshot-week-status {
  align-self: start;
  padding: 4px 8px;
  border: 1px solid rgba(185, 189, 182, 0.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(185, 189, 182, 0.08);
  font-size: 11px;
  white-space: nowrap;
}

.snapshot-week-status.ok {
  color: var(--good);
  border-color: rgba(143, 184, 78, 0.35);
  background: rgba(143, 184, 78, 0.08);
}

.snapshot-week-status.warn {
  color: var(--warn);
  border-color: rgba(240, 199, 101, 0.38);
  background: rgba(240, 199, 101, 0.08);
}

.snapshot-week-status.danger {
  color: var(--danger);
  border-color: rgba(244, 63, 94, 0.42);
  background: rgba(244, 63, 94, 0.08);
}

.snapshot-week-bar {
  position: relative;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #2b3547;
}

.snapshot-week-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.snapshot-week-bar span {
  position: absolute;
  inset: -2px 8px 0;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.snapshot-rtd-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.snapshot-rtd-line dt,
.snapshot-rtd-line dd {
  margin: 0;
}

.snapshot-rtd-line dd {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.snapshot-week-total {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.rtd-recruitment-panel {
  overflow: hidden;
}

.wizard-progress {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(15, 21, 32, 0.58);
}

.wizard-progress span,
.wizard-progress strong {
  font-size: 12px;
}

.wizard-progress span {
  color: var(--muted);
}

.wizard-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.wizard-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 160ms ease;
}

.recruitment-wizard {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.wizard-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.34);
}

.step-marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(215, 169, 45, 0.42);
  border-radius: 999px;
  background: rgba(215, 169, 45, 0.12);
  color: #fff;
  font-weight: 800;
}

.wizard-step-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.wizard-step-body h4 {
  margin: 2px 0 0;
  font-size: 15px;
}

.combined-training-card {
  width: min(920px, 100%);
}

.combined-training-card .recruit-wizard-header h1 {
  text-align: center;
}

.combined-training-wizard {
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.combined-training-grid label,
.combined-training-wizard label {
  display: grid;
  gap: 6px;
}

.combined-training-grid span,
.combined-training-wizard label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.combined-training-grid input,
.combined-training-grid select,
.combined-training-grid textarea,
.combined-training-wizard textarea {
  width: 100%;
  min-height: 42px;
}

.combined-training-grid .wide-field,
.combined-training-wizard .wide-field {
  grid-column: 1 / -1;
}

.combined-training-actions {
  padding: 0;
}

.combined-training-error {
  margin: 0;
  color: var(--danger);
  font-weight: 700;
}

.quick-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.person-picker,
.cadet-result-card,
.training-output-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 11, 0.54);
}

.picker-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.picker-heading span {
  color: var(--muted);
  font-size: 12px;
}

.person-search {
  width: 100%;
  min-height: 42px;
}

.person-results {
  display: grid;
  gap: 6px;
}

.person-results:empty {
  display: none;
}

.person-results button {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(215, 169, 45, 0.26);
  border-radius: 8px;
  background: rgba(215, 169, 45, 0.08);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.person-results button:hover,
.person-results button:focus-visible {
  border-color: rgba(215, 169, 45, 0.76);
  outline: none;
}

.person-results span,
.selected-person small {
  color: var(--muted);
  font-size: 12px;
}

.selected-person-list,
.cadet-result-list,
.training-output-list {
  display: grid;
  gap: 10px;
}

.selected-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.selected-person b,
.selected-person small {
  min-width: 0;
}

.selected-person button {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cadet-result-card h5,
.training-output-card h5 {
  margin: 0;
  font-size: 15px;
}

.training-output-card textarea {
  width: 100%;
  min-height: 180px;
  font-family: Consolas, "Courier New", monospace;
}

.training-final-confirm {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(215, 169, 45, 0.46);
  border-radius: 8px;
  background: rgba(215, 169, 45, 0.08);
}

.training-final-confirm p {
  margin: 0;
  color: var(--muted);
}

.training-final-confirm label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-weight: 800;
}

.training-final-confirm input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.compact-date-filter {
  max-width: 260px;
}

.mono-input {
  font: 13px/1.5 Consolas, "Courier New", monospace;
}

.eligibility-list,
.checklist-grid {
  display: grid;
  gap: 8px;
}

.eligibility-item {
  display: grid;
  grid-template-columns: 10px minmax(160px, 0.55fr) minmax(180px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 17, 28, 0.62);
}

.eligibility-item span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--muted);
}

.eligibility-item.met span {
  background: var(--good);
}

.eligibility-item.blocked span {
  background: var(--danger);
}

.eligibility-item.pending span {
  background: var(--warn);
}

.eligibility-item strong {
  font-size: 13px;
}

.eligibility-item small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.checklist-grid label,
.completion-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 17, 28, 0.62);
  color: #dbe5f2;
}

.checklist-grid input,
.completion-check input {
  margin-top: 2px;
}

.rtd-recruitment-view .command-output {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.promotion-view {
  display: none;
}

.promotion-view.active {
  display: block;
}

.detail-toolbar {
  display: grid;
  grid-template-columns: auto minmax(240px, 420px);
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.snapshot-page {
  display: grid;
  gap: 18px;
}

.compact-kpis {
  margin: 12px 0;
}

.compact-kpis .mini-kpi {
  padding: 10px 12px;
  box-shadow: none;
}

.compact-kpis .mini-kpi strong {
  font-size: 20px;
}

.section-kpis {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin: 12px 0;
}

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

.settings-layout .wide {
  grid-column: 1 / -1;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  padding: 12px;
}

.settings-grid label span {
  color: var(--muted);
}

.settings-grid input {
  min-height: 34px;
  padding: 6px 8px;
}

.settings-grid .checkbox-setting {
  display: grid;
  align-content: end;
}

.settings-grid .checkbox-setting input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.data-grid {
  grid-template-columns: minmax(360px, 1.15fr) minmax(360px, 1fr);
}

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

.admin-hub-tile {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 15px;
  border: 1px solid rgba(215, 169, 45, 0.3);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.admin-hub-tile:hover,
.admin-hub-tile:focus-visible {
  border-color: rgba(240, 199, 101, 0.7);
  background: rgba(34, 42, 30, 0.8);
}

.admin-hub-tile span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-hub-tile strong {
  font-size: 18px;
}

.admin-hub-tile small {
  color: var(--muted);
  line-height: 1.4;
}

.advanced-details {
  border: 1px solid rgba(215, 169, 45, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.advanced-details > summary {
  min-height: 44px;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.advanced-details[open] > summary {
  border-bottom: 1px solid rgba(215, 169, 45, 0.18);
}

.data-ledger-details {
  margin-top: 12px;
}

.data-ledger-details .data-grid {
  padding: 12px;
}

.command-inbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.command-inbox-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(215, 169, 45, 0.2);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.58);
}

.command-inbox-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.command-inbox-heading span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.command-inbox-heading strong {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 28px;
  border-radius: 6px;
  background: rgba(215, 169, 45, 0.18);
  color: var(--accent);
}

.command-inbox-list {
  display: grid;
  gap: 8px;
}

.command-inbox-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(185, 189, 182, 0.18);
  border-radius: 8px;
  background: rgba(5, 8, 7, 0.45);
}

.command-inbox-card span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-inbox-card strong {
  color: var(--ink);
}

.command-inbox-card small,
.empty-copy,
.muted-copy {
  color: var(--muted);
}

.command-inbox-actions .inline-actions {
  margin-top: 4px;
}

.drop-zone {
  position: relative;
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 156px;
  margin: 14px;
  padding: 24px;
  color: var(--ink);
  text-align: center;
  border: 1px dashed rgba(215, 169, 45, 0.55);
  border-radius: 8px;
  background: rgba(215, 169, 45, 0.08);
  cursor: pointer;
}

.drop-zone.drag-over,
.drop-zone:focus-visible {
  border-color: var(--accent);
  background: rgba(215, 169, 45, 0.16);
  outline: none;
}

.drop-zone.disabled {
  border-color: rgba(185, 189, 182, 0.35);
  background: rgba(185, 189, 182, 0.06);
  cursor: not-allowed;
  opacity: 0.72;
}

.drop-zone strong {
  font-size: 16px;
}

.drop-zone span,
.data-status {
  color: var(--muted);
  font-size: 12px;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.data-status {
  margin: 0;
  padding: 0 14px 14px;
}

.import-result {
  margin: 0 14px 14px;
  padding: 12px;
  border: 1px solid rgba(143, 184, 78, 0.35);
  border-radius: 8px;
  background: rgba(143, 184, 78, 0.08);
}

.import-result.has-rejections {
  border-color: rgba(240, 199, 101, 0.55);
  background: rgba(240, 199, 101, 0.09);
}

.import-result-head,
.import-result-counts,
.rejected-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.import-result-head {
  justify-content: space-between;
}

.import-result-counts {
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.rejected-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.rejected-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, auto) minmax(130px, auto) auto;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(15, 21, 32, 0.72);
  color: #ffd7a8;
  font-size: 12px;
}

.rejected-file {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.data-form-grid,
.data-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.data-form-grid {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.roster-action-form {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto;
}

.wide-field {
  grid-column: span 2;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}

.panel-subtitle.warn {
  color: var(--danger);
}

.route-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
}

.route-id-input {
  width: 220px;
}

.data-ledger-list {
  padding: 0 14px 14px;
}

.portal-request-panel {
  border-top: 1px solid rgba(201, 162, 74, 0.28);
  padding-top: 18px;
}

.portal-request-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.portal-request-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.portal-request-item {
  border: 1px solid rgba(201, 162, 74, 0.28);
  background: rgba(16, 18, 16, 0.72);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.portal-request-item small {
  color: var(--muted);
}

.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.portal-modal-backdrop[hidden] {
  display: none;
}

.portal-modal {
  position: relative;
  width: min(440px, 100%);
  border: 1px solid rgba(215, 169, 45, 0.32);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(20, 24, 21, 0.98), rgba(10, 13, 11, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.portal-modal h2 {
  margin: 0 0 8px;
  color: var(--ink);
}

.portal-modal p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.portal-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(215, 169, 45, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  cursor: pointer;
}

.portal-modal .portal-request-form {
  display: grid;
}

.portal-modal .portal-request-form textarea {
  min-height: 88px;
  resize: vertical;
}

.portal-training-modal {
  width: min(520px, 100%);
}

.portal-training-actions {
  display: grid;
  gap: 10px;
}

.portal-training-choice {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid rgba(215, 169, 45, 0.3);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.76);
  color: var(--ink);
  text-decoration: none;
}

.portal-training-choice.primary {
  border-color: rgba(240, 199, 101, 0.7);
  background: linear-gradient(135deg, rgba(215, 169, 45, 0.26), rgba(143, 184, 78, 0.13));
}

.portal-training-choice span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-training-choice strong {
  font-size: 16px;
}

.portal-evidence-modal {
  width: min(760px, 100%);
}

.portal-priority-modal {
  width: min(860px, 100%);
}

.portal-evidence-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.portal-evidence-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(185, 189, 182, 0.2);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.62);
}

.portal-evidence-list article.counted {
  border-color: rgba(143, 184, 78, 0.34);
}

.portal-evidence-list article.authored {
  border-color: rgba(215, 169, 45, 0.3);
}

.portal-evidence-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.portal-evidence-list span,
.portal-evidence-list p {
  color: var(--muted);
  font-size: 12px;
}

.portal-evidence-list p {
  margin: 0;
}

.portal-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.portal-priority-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.portal-priority-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(215, 169, 45, 0.26);
  border-radius: 8px;
  background: rgba(10, 13, 11, 0.94);
}

.portal-priority-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(185, 189, 182, 0.2);
  border-radius: 8px;
  background: rgba(14, 18, 16, 0.66);
}

.portal-priority-row > div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.portal-priority-row strong {
  color: var(--ink);
}

.portal-priority-row span,
.portal-priority-row small {
  color: var(--muted);
}

.portal-priority-row code {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  overflow-wrap: anywhere;
  padding: 7px 8px;
  border: 1px solid rgba(215, 169, 45, 0.22);
  border-radius: 6px;
  color: #ffe1a3;
  background: rgba(0, 0, 0, 0.26);
  font-size: 12px;
}

.portal-priority-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.portal-alert-text {
  color: #ffd0d5;
}

.weekly-output-grid label {
  display: grid;
  gap: 8px;
}

.weekly-output-grid label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.backup-status {
  padding: 14px;
}

.backup-status p {
  margin: 0;
  color: var(--muted);
}

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

.backup-card {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 21, 32, 0.6);
}

.backup-card.ok {
  border-color: rgba(143, 184, 78, 0.35);
}

.backup-card.warn {
  border-color: rgba(240, 199, 101, 0.45);
}

.backup-card span,
.backup-card small {
  color: var(--muted);
  font-size: 12px;
}

.backup-card strong {
  font-size: 19px;
}

.backup-card p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.backup-event {
  margin-top: 10px !important;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(15, 21, 32, 0.5);
}

.backup-event.ok {
  color: var(--good);
  border-color: rgba(143, 184, 78, 0.35);
}

.backup-event.warn {
  color: var(--warn);
  border-color: rgba(240, 199, 101, 0.45);
}

.backup-settings {
  padding-top: 0;
}

.backup-actions {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.danger-panel {
  border-color: rgba(255, 77, 94, 0.22);
}

.permission-note {
  margin-bottom: 12px;
  padding: 10px 12px;
  color: #ffdf9b;
  border: 1px solid rgba(240, 199, 101, 0.34);
  border-radius: 8px;
  background: rgba(240, 199, 101, 0.08);
  font-size: 13px;
}

.is-readonly #tab-settings input,
.is-readonly #tab-settings select {
  opacity: 0.62;
}

.table-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-heading,
.toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h3 {
  margin: 0;
  font-size: 15px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
}

.toolbar label {
  order: 1;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.toolbar input,
.toolbar select {
  min-height: 40px;
  font-size: 14px;
}

.toolbar input[type="date"] {
  width: 170px;
}

.toolbar .toolbar-search {
  order: 3;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 520px;
}

.people-filter {
  order: 3;
  position: relative;
  flex: 1 1 360px;
  min-width: 280px;
  max-width: 620px;
  display: grid;
  gap: 8px;
}

.people-filter .toolbar-search {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.people-filter-results {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.people-filter-results[hidden],
.people-filter-chips[hidden] {
  display: none;
}

.people-filter-option {
  width: 100%;
  min-height: 42px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.people-filter-option:hover,
.people-filter-option:focus-visible {
  border-color: rgba(215, 169, 45, 0.45);
  background: rgba(215, 169, 45, 0.1);
}

.people-filter-option strong {
  font-size: 13px;
}

.people-filter-option span,
.people-filter-empty {
  color: var(--muted);
  font-size: 12px;
}

.people-filter-empty {
  padding: 10px;
}

.people-filter-chips {
  order: 0;
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.people-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 5px 8px;
  color: var(--ink);
  background: rgba(215, 169, 45, 0.12);
  border: 1px solid rgba(215, 169, 45, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

.people-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-chip strong {
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
}

.toolbar select {
  order: 2;
  flex: 0 0 220px;
  width: 220px;
  max-width: 220px;
}

.toolbar .button,
.toolbar .mini-button {
  order: 4;
  align-self: flex-end;
  min-height: 40px;
  padding: 9px 12px;
}

.mini-button {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--accent);
  font-size: 13px;
}

.table-wrap {
  overflow: auto;
  max-height: 420px;
}

.app-shell .table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.table-wrap .table-link,
.table-wrap .person-link {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.table-wrap .status {
  white-space: normal;
}

#tab-overview .table-wrap,
#tab-rtd .table-wrap,
#tab-validation .table-wrap,
#tab-users .table-wrap,
#tab-settings .table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.table-wrap.tall {
  max-height: calc(100vh - 270px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.app-shell .table-wrap.tall {
  overflow: auto;
}

#tab-overview .table-wrap,
#tab-rtd .table-wrap,
#tab-validation .table-wrap,
#tab-users .table-wrap,
#tab-settings .table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.command-toolbar {
  align-items: flex-end;
}

.command-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.command-toolbar input[type="date"] {
  min-width: 170px;
}

.command-import-panel {
  margin-bottom: 14px;
}

.diagnostics-panel .panel-heading {
  align-items: flex-start;
  gap: 12px;
}

.diagnostics-panel .panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.diagnostics-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0 10px;
}

.diagnostics-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.diagnostics-controls input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 10px;
}

.diagnostics-status {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.diagnostics-status[data-tone="warn"] {
  color: var(--warn);
}

.diagnostics-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.diagnostics-summary:empty {
  display: none;
}

.diagnostics-summary div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.diagnostics-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.diagnostics-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.diagnostics-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.diagnostics-tables h4 {
  margin: 0 0 8px;
}

#tab-users .diagnostics-panel .table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.command-import-text {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--ink);
  font: 13px/1.5 Consolas, "Courier New", monospace;
}

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

.command-output {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--ink);
  font: 13px/1.5 Consolas, "Courier New", monospace;
}

.command-queue-wrap table {
  min-width: 1640px;
}

.queue-add-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.inline-select,
.queue-reason-input,
.inline-date {
  width: 100%;
}

.command-queue-wrap th,
.command-queue-wrap td {
  vertical-align: middle;
}

.queue-member-cell {
  min-width: 190px;
}

.queue-current-rank {
  min-width: 125px;
}

.inline-date {
  min-width: 130px;
}

.queue-rank-select {
  min-width: 170px;
}

.queue-field-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.queue-field-label span {
  line-height: 1;
}

.queue-note-readonly {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
}

.queue-preview {
  min-width: 260px;
  font: 12px/1.45 Consolas, "Courier New", monospace;
}

.compact-select {
  max-width: 90px;
}

#tab-promotion .promotion-table-wrap {
  height: calc(100vh - 325px);
  max-height: calc(100vh - 325px);
  min-height: 620px;
  border-top: 1px solid var(--line);
  border-radius: 8px;
}

#promotionTable {
  table-layout: fixed;
  min-width: 2060px;
}

#promotionTable th:nth-child(1),
#promotionTable td:nth-child(1) {
  width: 64px;
}

#promotionTable th:nth-child(2),
#promotionTable td:nth-child(2) {
  width: 170px;
}

#promotionTable th:nth-child(3),
#promotionTable td:nth-child(3),
#promotionTable th:nth-child(4),
#promotionTable td:nth-child(4) {
  width: 130px;
}

#promotionTable th:nth-child(5),
#promotionTable td:nth-child(5) {
  width: 112px;
}

#promotionTable th:nth-child(6),
#promotionTable td:nth-child(6) {
  width: 105px;
}

#promotionTable th:nth-child(7),
#promotionTable td:nth-child(7),
#promotionTable th:nth-child(8),
#promotionTable td:nth-child(8),
#promotionTable th:nth-child(9),
#promotionTable td:nth-child(9),
#promotionTable th:nth-child(10),
#promotionTable td:nth-child(10),
#promotionTable th:nth-child(11),
#promotionTable td:nth-child(11),
#promotionTable th:nth-child(12),
#promotionTable td:nth-child(12) {
  width: 98px;
}

#promotionTable th:nth-child(13),
#promotionTable td:nth-child(13) {
  width: 300px;
}

#promotionTable th:nth-child(14),
#promotionTable td:nth-child(14) {
  width: 360px;
}

#promotionTable td:nth-child(13),
#promotionTable td:nth-child(14) {
  white-space: normal;
  overflow-wrap: anywhere;
}

#promotionTable td:nth-child(5) {
  white-space: nowrap;
}

#promotionTable .status {
  display: inline-flex;
  align-items: center;
  max-width: none;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: normal;
}

#promotionTable .status.good {
  background: rgba(22, 121, 76, 0.12);
}

#promotionTable .status.danger {
  background: rgba(180, 35, 24, 0.12);
}

#demotionTable {
  table-layout: fixed;
}

#demotionTable th,
#demotionTable td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#demotionTable .status {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

#demotionTable th:nth-child(1),
#demotionTable td:nth-child(1) {
  width: 64px;
}

#demotionTable th:nth-child(2),
#demotionTable td:nth-child(2) {
  width: 170px;
}

#demotionTable th:nth-child(3),
#demotionTable td:nth-child(3) {
  width: 112px;
}

#demotionTable th:nth-child(4),
#demotionTable td:nth-child(4) {
  width: 178px;
}

#demotionTable th:nth-child(5),
#demotionTable td:nth-child(5) {
  width: 116px;
}

#demotionTable th:nth-child(6),
#demotionTable td:nth-child(6) {
  width: 94px;
}

#demotionTable th:nth-child(7),
#demotionTable td:nth-child(7) {
  width: 170px;
}

#demotionTable th:nth-child(8),
#demotionTable td:nth-child(8) {
  width: 190px;
}

#demotionTable th:nth-child(9),
#demotionTable td:nth-child(9) {
  width: 230px;
}

#demotionTable td:nth-child(8),
#demotionTable td:nth-child(9) {
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

tr.clickable-row {
  cursor: pointer;
}

tr.clickable-row:hover td {
  background: #172333;
}

tr.selected-row td {
  background: rgba(215, 169, 45, 0.12);
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
  color: #cbd5e1;
  font-size: 12px;
  white-space: nowrap;
  overflow-wrap: normal;
  text-transform: uppercase;
}

.table-layout-controls {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.column-menu {
  position: relative;
}

.queue-visible-button {
  margin-right: auto;
}

.column-menu summary {
  list-style: none;
  min-height: 30px;
}

.column-menu summary::-webkit-details-marker {
  display: none;
}

.column-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 12;
  min-width: 260px;
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.column-menu-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.column-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--ink);
  font-size: 12px;
  text-transform: none;
}

.column-toggle input {
  width: auto;
}

.column-resizer {
  position: absolute;
  top: 0;
  right: -7px;
  width: 14px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.column-resizer::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 1px;
  background: transparent;
}

.column-resizer:hover::before,
.resizing-column .column-resizer::before {
  background: rgba(215, 169, 45, 0.55);
}

.resizing-column,
.resizing-column * {
  cursor: col-resize !important;
  user-select: none;
}

.sort-header {
  width: 100%;
  min-width: 0;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.sort-header span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-header:hover,
.sort-header.active {
  color: var(--accent);
}

.sort-header.static-header {
  cursor: default;
}

.sort-header.static-header:hover {
  color: inherit;
}

.sort-indicator {
  display: inline-block;
  min-width: 10px;
  color: var(--accent);
  font-size: 10px;
  line-height: 1;
}

td.wrap {
  min-width: 0;
  white-space: normal;
}

#movementConflictsTable {
  min-width: 1180px;
  table-layout: fixed;
}

#movementConflictsTable th:nth-child(1),
#movementConflictsTable td:nth-child(1) {
  width: 62px;
}

#movementConflictsTable th:nth-child(2),
#movementConflictsTable td:nth-child(2) {
  width: 82px;
}

#movementConflictsTable th:nth-child(3),
#movementConflictsTable td:nth-child(3) {
  width: 108px;
}

#movementConflictsTable th:nth-child(4),
#movementConflictsTable td:nth-child(4) {
  width: 215px;
}

#movementConflictsTable th:nth-child(5),
#movementConflictsTable td:nth-child(5) {
  width: 170px;
}

#movementConflictsTable th:nth-child(6),
#movementConflictsTable td:nth-child(6) {
  width: 245px;
}

#movementConflictsTable th:nth-child(7),
#movementConflictsTable td:nth-child(7) {
  width: 170px;
}

#movementConflictsTable th:nth-child(8),
#movementConflictsTable td:nth-child(8) {
  width: 94px;
}

#movementConflictsTable th:nth-child(9),
#movementConflictsTable td:nth-child(9) {
  width: 96px;
}

#movementConflictsTable th:nth-child(11),
#movementConflictsTable td:nth-child(11) {
  width: 128px;
}

#movementConflictsTable th:nth-child(10),
#movementConflictsTable td:nth-child(10) {
  width: 330px;
}

#movementConflictsTable td.wrap {
  min-width: 0;
}

#movementConflictsTable td:nth-child(4),
#movementConflictsTable td:nth-child(6),
#movementConflictsTable td:nth-child(7),
#movementConflictsTable td:nth-child(10) {
  white-space: normal;
  overflow-wrap: anywhere;
}

#rtdActionQueueTable {
  min-width: 100%;
  table-layout: fixed;
}

#rtdActionQueueTable th:nth-child(1),
#rtdActionQueueTable td:nth-child(1) {
  width: 240px;
}

#rtdActionQueueTable th:nth-child(2),
#rtdActionQueueTable td:nth-child(2) {
  width: 185px;
}

#rtdActionQueueTable th:nth-child(3),
#rtdActionQueueTable td:nth-child(3),
#rtdActionQueueTable th:nth-child(4),
#rtdActionQueueTable td:nth-child(4),
#rtdActionQueueTable th:nth-child(5),
#rtdActionQueueTable td:nth-child(5),
#rtdActionQueueTable th:nth-child(6),
#rtdActionQueueTable td:nth-child(6),
#rtdActionQueueTable th:nth-child(7),
#rtdActionQueueTable td:nth-child(7) {
  width: 130px;
}

#rtdActionQueueTable th:nth-child(8),
#rtdActionQueueTable td:nth-child(8) {
  width: 330px;
}

#rtdActionQueueTable td:nth-child(1),
#rtdActionQueueTable td:nth-child(2),
#rtdActionQueueTable td:nth-child(8) {
  white-space: normal;
  overflow-wrap: anywhere;
}

.table-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.link-separator::after {
  content: " ";
}

.person-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.person-link:hover {
  text-decoration: underline;
}

.person-link.copied {
  color: var(--good);
}

.unknown-person {
  color: var(--danger);
}

.snapshot-person {
  font-size: inherit;
}

.status {
  display: inline-block;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.25;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: normal;
  overflow-wrap: anywhere;
}

.status.good {
  color: var(--good);
  border-color: rgba(22, 121, 76, 0.35);
}

.status.warn {
  color: var(--warn);
  border-color: rgba(180, 83, 9, 0.35);
}

.status.danger {
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.35);
}

.empty-cell {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

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

  .sidebar {
    position: static;
    padding: 14px;
  }

  .brand {
    grid-template-columns: 84px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .brand-mark {
    width: 84px;
  }

  .brand h1 {
    max-width: none;
  }

  .side-nav {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .nested-nav {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    margin: -2px 0 2px 12px;
    padding: 4px 0 3px 10px;
    border-left: 1px solid rgba(215, 169, 45, 0.22);
  }

  .tab {
    text-align: center;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .metric-grid.command-metrics,
  .overview-audit-grid {
    grid-template-columns: 1fr;
  }

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

  .section-grid,
  .command-output-grid,
  .data-grid,
  .route-form,
  .classroom-grid,
  .ride-guide-grid,
  .radio-layout,
  .portal-layout,
  .portal-member-hero,
  .backup-grid,
  .backup-actions,
  .wizard-progress,
  .portal-quick-links,
  .portal-profile-band,
  .portal-current-grid,
  .portal-week-history,
  .portal-inbox-grid,
  .admin-hub-grid,
  .command-inbox-grid,
  .portal-achievement-grid {
    grid-template-columns: 1fr;
  }

  .portal-member-strip,
  .portal-strip-meta {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .portal-main-column {
    order: 1;
  }

  .portal-insight-rail {
    order: 2;
  }

  .portal-tools-rail {
    order: 3;
  }

  .portal-side-rail {
    position: static;
  }

  #tab-movements .movements-grid {
    grid-template-columns: 1fr;
  }

  .mini-kpi-grid,
  .snapshot-meta,
  .snapshot-progress,
  .snapshot-notes,
  .snapshot-current-grid,
  .snapshot-week-history {
    grid-template-columns: 1fr;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .radio-layout,
  .radio-toolbar,
  .radio-trainee-row {
    grid-template-columns: 1fr;
  }

  .radio-select-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .radio-select-group label,
  .radio-select-group label:last-child {
    min-width: 0;
  }

  .diagnostics-summary {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

}

@media (max-width: 720px) {
  .workspace {
    padding: 14px;
  }

  .standalone-page {
    padding: 18px 10px;
  }

  .standalone-card {
    padding: 18px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .nested-nav {
    grid-template-columns: 1fr;
  }

  .nested-tab {
    text-align: left;
  }

  .wizard-step,
  .eligibility-item {
    grid-template-columns: 1fr;
  }

  .recruitment-standalone-shell,
  .recruit-wizard-card,
  .recruit-hero {
    width: 100%;
  }

  .recruit-wizard-card,
  .recruit-hero {
    padding: 18px;
  }

  .recruit-nav-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .classroom-section-head,
  .classroom-person-row header {
    align-items: stretch;
    flex-direction: column;
  }

  .diagnostics-controls,
  .diagnostics-summary,
  .training-result-grid {
    grid-template-columns: 1fr;
  }

  .diagnostics-panel .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .step-marker {
    width: 30px;
    height: 30px;
  }

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

  .topbar-status,
  .account-status {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
  }

  .portal-preview-banner {
    grid-template-columns: 1fr;
  }

  .account-chip {
    text-align: left;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .radio-toolbar,
  .radio-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .radio-select-group {
    grid-template-columns: 1fr;
  }

  .radio-toolbar label,
  .radio-actions .button,
  .radio-side-tabs {
    width: 100%;
  }

  .radio-side-tabs .mini-button {
    flex-basis: 45%;
  }

  .tab {
    text-align: left;
  }

  .settings-grid,
  .data-form-grid,
  .rejected-row,
  .backup-grid,
  .backup-actions,
  .portal-inbox-grid,
  .admin-hub-grid,
  .command-inbox-grid {
    grid-template-columns: 1fr;
  }

  .portal-action-bar,
  .portal-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .portal-action-pill,
  .portal-tabs button {
    flex: 0 0 auto;
  }

  .load-strip {
    justify-content: flex-start;
  }

  .portal-rtd-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .snapshot-rtd-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}
