:root {
  --bg: #090909;
  --panel: #171717;
  --panel-2: #242424;
  --line: #3a3a3a;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --accent: #c9a24a;
  --good: #76b985;
  --bad: #d36a64;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, .42), rgba(5, 5, 5, .84)),
    url("/static/noah59.png") center/cover fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.top-actions form {
  margin: 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 18, .94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.site-logo,
.auth-logo {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .48));
}

.site-logo {
  width: clamp(78px, 11vw, 124px);
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
}

h2 {
  font-size: 18px;
}

.lede {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.score-card {
  display: grid;
  place-items: center;
  min-width: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  text-align: center;
}

.score-card span,
.score-card small {
  color: var(--muted);
}

.score-card strong {
  color: var(--accent);
  font-size: 52px;
  line-height: 1;
}

.panel,
.question-card,
.sticky-submit {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 18, .96);
}

.result-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
}

.result-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.button,
button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #15120b;
  font: inherit;
  font-weight: 900;
  padding: 12px 15px;
  cursor: pointer;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, .92);
  color: var(--text);
}

.button.staff-button {
  background: var(--accent);
  color: #15120b;
}

.site-footer {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 18, .9);
  color: var(--muted);
  text-align: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
}

.site-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 900;
}

.site-footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer p {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.quiz-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 18, .96);
  color: inherit;
  text-decoration: none;
}

.quiz-card:hover,
.quiz-card.active {
  border-color: var(--accent);
  background: rgba(32, 32, 32, .98);
}

.quiz-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quiz-card strong {
  font-size: 22px;
}

.quiz-card small {
  color: var(--muted);
  line-height: 1.45;
}

.hub-panel {
  padding: 26px;
}

.hub-panel > div:first-child {
  margin-bottom: 22px;
}

.hub-panel > div:first-child p {
  margin-bottom: 0;
}

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

.hub-card {
  display: block;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  text-decoration: none;
}

.hub-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, .08);
}

.hub-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hub-card h3 {
  margin: 0 0 10px;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
}

.employee-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.role-section-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.role-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.role-section summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.role-section summary strong {
  min-width: 34px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(216, 180, 94, .12);
}

.role-section .table-wrap {
  border-top: 1px solid var(--line);
}

.quiz-card em,
.requirement,
.result-status {
  font-style: normal;
  font-weight: 900;
}

.home-shell {
  padding-top: 24px;
}

.home-hero {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 20px;
  padding: clamp(24px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, .9), rgba(8, 8, 8, .42)),
    url("/static/noah59.png") center/cover;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

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

.home-hero .site-logo {
  width: clamp(86px, 12vw, 132px);
  margin-bottom: 18px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.home-info-grid {
  grid-template-columns: 1fr;
}

.home-about,
.home-card,
.photo-album {
  padding: 22px;
  background: rgba(18, 18, 18, .88);
  backdrop-filter: blur(3px);
}

.complaint-panel {
  margin-top: 16px;
  padding: 22px;
  background: rgba(18, 18, 18, .9);
  backdrop-filter: blur(3px);
}

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

.application-choice-card {
  padding: 22px;
  background: rgba(18, 18, 18, .86);
  backdrop-filter: blur(3px);
}

.application-choice-card p {
  color: var(--muted);
  line-height: 1.55;
}

.application-choice-card .button {
  margin-top: 10px;
}

.application-panel fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.application-panel legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.radio-card-group {
  display: grid;
  gap: 10px;
}

.radio-card-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .035);
}

.radio-card-group input {
  width: auto;
  margin-top: 3px;
}

.home-about p,
.home-card p {
  color: var(--muted);
  line-height: 1.6;
}

.quick-link-stack {
  display: grid;
  gap: 10px;
}

.quick-link-stack a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.quick-link-stack a:hover {
  border-color: var(--accent);
}

.section-heading {
  margin-bottom: 16px;
}

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

.album-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.album-grid img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.album-grid figcaption {
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}

.staff-hero {
  margin-bottom: 26px;
}

.staff-section-stack {
  display: grid;
  gap: 34px;
}

.staff-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 18, .88);
  backdrop-filter: blur(3px);
}

.staff-section h2 {
  margin: 0 0 26px;
  text-align: center;
  font-size: 30px;
}

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

.staff-section:nth-child(3) .staff-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-card {
  min-width: 0;
  text-align: center;
}

.staff-portrait {
  width: min(100%, 280px);
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border: 1px dashed rgba(255, 255, 255, .22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(255, 255, 255, .04);
  overflow: hidden;
}

.staff-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.staff-portrait img + span {
  display: none;
}

.staff-portrait.missing-photo span {
  display: block;
}

.staff-portrait span {
  color: rgba(242, 242, 242, .38);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
}

.staff-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.staff-card p {
  margin: 0;
  color: var(--muted);
}

.divisions-shell {
  width: min(1280px, calc(100% - 32px));
}

.division-card-grid {
  display: grid;
  gap: 28px;
}

.division-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 18, .90);
  backdrop-filter: blur(3px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

.division-content {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: 0;
  min-height: 430px;
}

.division-media {
  min-height: 430px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 16px;
  padding: 34px;
  background-position: center;
  background-size: cover;
  border-right: 1px solid var(--line);
}

.division-media img {
  width: min(100%, 300px);
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .42));
}

.division-media span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.division-copy {
  padding: clamp(26px, 5vw, 50px);
}

.division-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.division-copy p {
  max-width: 650px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.division-copy .eyebrow {
  color: var(--accent);
}

.hiring-shell {
  width: min(1200px, calc(100% - 32px));
}

.hiring-hero {
  min-height: 300px;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, .92), rgba(8, 8, 8, .46)),
    url("/static/album/doc-album-6.png") center 38%/cover;
}

.hiring-panel {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 24px;
  background: rgba(18, 18, 18, .90);
  backdrop-filter: blur(3px);
}

.hiring-photo {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.hiring-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hiring-copy {
  align-self: center;
  padding: clamp(10px, 2vw, 24px);
}

.hiring-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 44px);
}

.hiring-copy p,
.hiring-copy li {
  color: var(--muted);
  line-height: 1.55;
}

.hiring-offers {
  margin: 22px 0;
}

.hiring-offers h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.hiring-offers ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

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

.hiring-actions .button {
  text-align: center;
}

.quiz-card em {
  color: var(--text);
  font-size: 13px;
}

.quiz-card b {
  align-self: end;
  justify-self: start;
  margin-top: 8px;
  border-radius: 6px;
  background: var(--accent);
  color: #15120b;
  padding: 10px 12px;
  font-size: 13px;
}

.start-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
}

.start-panel span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.start-panel h2 {
  margin: 8px 0;
  font-size: 28px;
}

.start-panel p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.start-panel .requirement {
  margin-top: 10px;
  color: var(--accent);
}

.identity-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.identity-fields label,
.custom-question-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  color: var(--text);
  font: inherit;
  padding: 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.result-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.result-status.passed {
  color: var(--good);
}

.result-status.failed {
  color: var(--bad);
}

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

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

.question-card {
  padding: 18px;
}

.focus-card {
  min-height: 360px;
}

.question-card.correct {
  border-color: var(--good);
}

.question-card.wrong {
  border-color: var(--bad);
}

.question-card.review-only {
  border-color: var(--accent);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.review-actions button {
  width: auto;
}

.question-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.question-head span,
.question-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--muted);
  font-size: 12px;
}

.question-head strong {
  color: var(--accent);
}

.progress-track {
  height: 8px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #0a0a0a;
}

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

.question-description {
  max-width: 760px;
  margin: -4px 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

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

.choice-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  cursor: pointer;
}

.choice-grid label:has(input:checked) {
  border-color: var(--accent);
  background: #2a2516;
}

.choice-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.written-answer {
  display: grid;
  gap: 8px;
}

.written-answer span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.written-answer input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  padding: 14px;
}

.written-answer input:focus {
  border-color: var(--accent);
  outline: none;
}

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

.question-card p:last-child {
  margin-bottom: 0;
}

.question-card b {
  color: var(--text);
}

.sticky-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.sticky-submit span {
  color: var(--muted);
  font-weight: 800;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 18, .96);
  padding: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.auth-logo {
  width: 142px;
  margin: 0 auto 18px;
}

.auth-panel h1 {
  font-size: 42px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  color: var(--text);
  font: inherit;
  padding: 13px;
}

.auth-form input:focus {
  border-color: var(--accent);
  outline: none;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.flash {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #101010;
}

.flash.error {
  border-color: var(--bad);
}

.supervisor-panel {
  padding: 18px;
  overflow: hidden;
}

.supervisor-panel h2 {
  margin-bottom: 14px;
}

.custom-question-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.custom-question-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.builtin-question-list {
  display: grid;
  gap: 14px;
  max-height: 720px;
  overflow: auto;
  padding-right: 6px;
}

.builtin-question-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.builtin-question-card + .builtin-question-card {
  margin-top: 0;
}

.builtin-question-card form + form {
  margin-top: 10px;
}

.inline-user-form {
  margin: 0;
}

.inline-user-form select,
td input,
td select {
  min-width: 150px;
}

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

.custom-question-form > button {
  justify-self: start;
  min-width: 170px;
  padding: 10px 14px;
}

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

.button.danger {
  background: var(--bad);
  color: #fff;
  padding: 8px 10px;
}

.small-button {
  min-height: 0;
  padding: 7px 10px;
  font-size: 12px;
}

.text-link {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

td:first-child {
  color: var(--text);
  font-weight: 900;
}

.cadet-progress-table {
  min-width: 1900px;
}

.cadet-progress-table th,
.cadet-progress-table td {
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.cadet-progress-table th {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
  letter-spacing: 0;
  text-transform: none;
}

.cadet-progress-table td {
  border: 1px solid rgba(255, 255, 255, .10);
}

.cadet-progress-table td:nth-child(-n+8) {
  text-align: left;
}

.cadet-progress-table input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.compact-date {
  min-width: 116px;
  padding: 8px 10px;
  text-align: center;
}

.tab-shell {
  padding: 18px;
}

.supervisor-tabs {
  background: rgba(18, 18, 18, .58);
  backdrop-filter: blur(2px);
}

.supervisor-tabs .overview-section,
.supervisor-tabs .boxed-section {
  background: rgba(28, 30, 28, .52);
}

.supervisor-tabs .overview-section h2,
.supervisor-tabs .boxed-section > div:first-child,
.supervisor-tabs .boxed-section > h2 {
  background: rgba(255, 255, 255, .055);
}

.supervisor-tabs table {
  background: rgba(18, 18, 18, .40);
}

.logger-tabs {
  background: rgba(18, 18, 18, .58);
  backdrop-filter: blur(2px);
}

.logger-tabs .logger-section {
  background: rgba(28, 30, 28, .52);
}

.logger-tabs .logger-section > div:first-child {
  background: rgba(255, 255, 255, .055);
}

.tab-shell > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.tab-buttons label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, .04);
}

.tab-panel {
  display: none;
  padding: 18px 0 0;
}

#add-report-tab:checked ~ .tab-buttons label[for="add-report-tab"],
#history-tab:checked ~ .tab-buttons label[for="history-tab"],
#overview-tab:checked ~ .tab-buttons label[for="overview-tab"],
#accounts-tab:checked ~ .tab-buttons label[for="accounts-tab"],
#builtin-tab:checked ~ .tab-buttons label[for="builtin-tab"],
#add-custom-tab:checked ~ .tab-buttons label[for="add-custom-tab"],
#custom-tab:checked ~ .tab-buttons label[for="custom-tab"],
#ftos-tab:checked ~ .tab-buttons label[for="ftos-tab"],
#complaints-tab:checked ~ .tab-buttons label[for="complaints-tab"],
#applications-tab:checked ~ .tab-buttons label[for="applications-tab"],
#fto-active-tab:checked ~ .tab-buttons label[for="fto-active-tab"],
#fto-timestamps-tab:checked ~ .tab-buttons label[for="fto-timestamps-tab"] {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(255, 255, 255, .10);
}

#add-report-tab:checked ~ .add-report-panel,
#history-tab:checked ~ .history-panel,
#overview-tab:checked ~ .overview-panel,
#accounts-tab:checked ~ .accounts-panel,
#builtin-tab:checked ~ .builtin-panel,
#add-custom-tab:checked ~ .add-custom-panel,
#custom-tab:checked ~ .custom-panel,
#ftos-tab:checked ~ .ftos-panel,
#complaints-tab:checked ~ .complaints-panel,
#applications-tab:checked ~ .applications-panel,
#fto-active-tab:checked ~ .fto-active-panel,
#fto-timestamps-tab:checked ~ .fto-timestamps-panel {
  display: block;
}

.tab-panel > div:first-child h2 {
  margin-top: 0;
}

.overview-panel {
  gap: 18px;
}

#overview-tab:checked ~ .overview-panel {
  display: grid;
}

.boxed-section {
  margin-top: 18px;
}

.boxed-section:first-of-type {
  margin-top: 0;
}

.overview-section,
.logger-section,
.boxed-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 30, 28, .74);
  overflow: hidden;
}

.overview-section h2,
.logger-section > div:first-child,
.boxed-section > div:first-child,
.boxed-section > h2 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
}

.complaint-list {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.complaint-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.complaint-card p {
  color: var(--muted);
  white-space: pre-wrap;
}

.complaint-card b {
  color: var(--text);
}

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

.complaint-card form {
  margin-top: 14px;
}

.complaint-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
}

.complaint-card-head::-webkit-details-marker {
  display: none;
}

.complaint-card-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.complaint-card-head h3 {
  margin: 6px 0;
}

.complaint-card-head p {
  margin: 0;
}

.complaint-card-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.logger-section > div:first-child h2,
.logger-section > div:first-child p,
.boxed-section > div:first-child h2,
.boxed-section > div:first-child p {
  margin-bottom: 0;
}

.logger-section > div:first-child p,
.boxed-section > div:first-child p {
  margin-top: 6px;
  color: var(--muted);
}

.overview-section .table-wrap,
.logger-section > form,
.logger-section > .question-list,
.boxed-section > form,
.boxed-section > .table-wrap,
.boxed-section > .builtin-question-list,
.boxed-section > .cadet-card-list {
  padding: 14px;
}

.overview-section table {
  background: rgba(255, 255, 255, .02);
}

.boxed-section > .table-wrap table {
  background: rgba(255, 255, 255, .02);
}

.editable-log-card summary {
  cursor: pointer;
  list-style: none;
}

.editable-log-card summary::-webkit-details-marker {
  display: none;
}

.editable-log-card summary .button {
  margin-top: 10px;
}

.log-edit-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cadet-card-list {
  display: grid;
  gap: 16px;
}

.cadet-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 22, 23, .78);
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.cadet-card[open] {
  border-color: rgba(245, 211, 100, .52);
  background: rgba(20, 22, 23, .88);
}

.cadet-card-head,
.cadet-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.cadet-card-head {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
}

.cadet-card-head::-webkit-details-marker {
  display: none;
}

.cadet-card:not([open]) .cadet-card-head {
  border-bottom: 0;
}

.cadet-card-head:hover {
  background: rgba(255, 255, 255, .035);
}

.cadet-card-head span,
.cadet-info-grid span,
.solo-panel label > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cadet-card-head h3 {
  margin: 4px 0;
  font-size: 22px;
}

.cadet-card-head p,
.cadet-card-meta small {
  margin: 0;
  color: var(--muted);
}

.cadet-card-meta {
  min-width: 74px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.cadet-card-meta strong {
  display: block;
  font-size: 26px;
}

.cadet-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cadet-progress-form {
  margin: 0;
}

.cadet-tabs > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cadet-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.cadet-tab-buttons label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, .04);
}

.cadet-tabs > input:nth-of-type(1):checked ~ .cadet-tab-buttons label:nth-child(1),
.cadet-tabs > input:nth-of-type(2):checked ~ .cadet-tab-buttons label:nth-child(2),
.cadet-tabs > input:nth-of-type(3):checked ~ .cadet-tab-buttons label:nth-child(3),
.cadet-tabs > input:nth-of-type(4):checked ~ .cadet-tab-buttons label:nth-child(4),
.cadet-tabs > input:nth-of-type(5):checked ~ .cadet-tab-buttons label:nth-child(5) {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(255, 255, 255, .10);
}

.cadet-tab-panel {
  display: none;
  padding: 16px;
}

.cadet-tabs > input:nth-of-type(1):checked ~ .info-panel,
.cadet-tabs > input:nth-of-type(2):checked ~ .onboarding-panel,
.cadet-tabs > input:nth-of-type(3):checked ~ .phase1-panel,
.cadet-tabs > input:nth-of-type(4):checked ~ .phase2-panel,
.cadet-tabs > input:nth-of-type(5):checked ~ .solo-panel {
  display: grid;
}

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

.cadet-info-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.cadet-info-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.onboarding-panel,
.phase1-panel,
.phase2-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.progress-check {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-weight: 900;
}

.progress-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

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

.solo-panel .final-check {
  grid-column: 1 / -1;
}

.cadet-card-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .12);
}

.cadet-card-actions form {
  margin: 0;
}

.cadet-time-panel {
  margin-top: 18px;
}

.cadet-time-active {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.cadet-time-active h3 {
  margin: 4px 0 8px;
}

.cadet-time-active p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero,
  .result-panel,
  .start-panel,
  .sticky-submit {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-block {
    align-items: flex-start;
  }

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

  .identity-fields,
  .custom-question-form {
    grid-template-columns: 1fr;
  }

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

  .cadet-card-head,
  .cadet-card-actions,
  .cadet-time-active {
    align-items: stretch;
    flex-direction: column;
  }

  .cadet-card-meta {
    width: 100%;
  }

  .cadet-summary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cadet-info-grid,
  .onboarding-panel,
  .phase1-panel,
  .phase2-panel,
  .solo-panel {
    grid-template-columns: 1fr;
  }

  .home-grid,
  .application-choice-grid,
  .album-grid,
  .staff-grid,
  .staff-section:nth-child(3) .staff-grid,
  .division-content {
    grid-template-columns: 1fr;
  }

  .division-content {
    gap: 24px;
    min-height: 0;
  }

  .hiring-panel,
  .hiring-actions {
    grid-template-columns: 1fr;
  }

  .division-media {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .division-media img {
    max-height: 300px;
  }

  .home-hero {
    min-height: 430px;
  }
}
