:root {
  --ink: #f4f1e6;
  --muted: #b9c0ad;
  --line: rgba(224, 198, 123, 0.24);
  --paper: #11170f;
  --field: rgba(253, 252, 244, 0.95);
  --field-ink: #17201b;
  --forest: #5b7f3a;
  --forest-strong: #30491e;
  --gold: #e2b552;
  --amber: #ffcf69;
  --clay: #d08b50;
  --danger: #ff746c;
  --focus: #efc45e;
  --panel: rgba(12, 17, 10, 0.62);
  --panel-strong: rgba(17, 23, 15, 0.82);
  --surface: rgba(20, 28, 17, 0.72);
  --surface-light: rgba(255, 251, 230, 0.08);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --glow: 0 0 0 1px rgba(226, 181, 82, 0.2), 0 0 32px rgba(226, 181, 82, 0.16);
}

/* Final portal polish pass */
.compact-chrome .form-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -22px -22px 14px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(226, 181, 82, 0.2);
  background:
    linear-gradient(90deg, rgba(8, 12, 6, 0.96), rgba(18, 23, 12, 0.92)),
    rgba(7, 10, 6, 0.96);
  backdrop-filter: blur(12px);
}

.compact-chrome .form-header h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.compact-chrome .header-actions {
  gap: 7px;
}

.compact-chrome .header-actions .secondary-button,
.compact-chrome .header-actions .button-link,
.compact-chrome .export-menu summary {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.72rem;
}

.compact-chrome .next-step-bar,
.compact-chrome .candidate-context-card,
.compact-chrome .gear-summary-panel,
.compact-chrome .form-checklist-card,
.compact-chrome .evaluator-confirmation-card,
.compact-chrome .live-score-panel,
.compact-chrome .rule-callout,
.compact-chrome .candidate-lookup-panel,
.compact-chrome .score-outcome-panel {
  margin-left: 0;
  margin-right: 0;
}

.wizard-mode .form-step-controls {
  position: sticky;
  top: 70px;
  z-index: 18;
  margin-left: 0;
  margin-right: 0;
  padding: 8px;
  border: 1px solid rgba(226, 181, 82, 0.18);
  border-radius: 8px;
  background: rgba(5, 9, 5, 0.92);
  backdrop-filter: blur(10px);
}

.wizard-mode .form-step-controls button {
  min-height: 42px;
}

.final-review-panel,
.hub-continue-panel,
.master-pipeline {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 15px;
  border: 1px solid rgba(226, 181, 82, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 8%, rgba(226, 181, 82, 0.16), transparent 38%),
    rgba(0, 0, 0, 0.2);
}

.final-review-panel {
  margin-top: 18px;
}

.final-review-panel.ready {
  border-color: rgba(153, 245, 157, 0.34);
  background:
    radial-gradient(circle at 92% 8%, rgba(153, 245, 157, 0.14), transparent 38%),
    rgba(0, 0, 0, 0.2);
}

.final-review-panel span,
.hub-continue-panel span,
.master-pipeline span {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-review-panel strong,
.hub-continue-panel strong,
.master-pipeline strong {
  color: #fff9de;
}

.final-review-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.final-review-list b {
  padding: 7px 10px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.hub-continue-panel {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
}

.hub-continue-id {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(226, 181, 82, 0.34);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.hub-continue-id img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-continue-id span {
  font-size: 0.9rem;
}

.hub-continue-panel p {
  margin: 3px 0 0;
  color: var(--muted);
}

.hub-form-state[data-state="submitted"] {
  border-color: rgba(153, 245, 157, 0.42);
  color: #99f59d;
}

.hub-form-state[data-state="draft-saved"] {
  color: #ffcf69;
}

.home-entry-footer {
  display: grid;
  grid-template-columns: 1fr auto;
}

.home-entry-footer small {
  grid-column: 1 / -1;
  color: rgba(244, 241, 230, 0.62);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-request-access-button {
  border: 0;
  padding: 0;
  color: var(--amber);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-auth-message.error {
  padding: 9px 10px;
  border: 1px solid rgba(255, 116, 108, 0.4);
  border-radius: 7px;
  color: #ffb4ad;
  background: rgba(100, 15, 12, 0.28);
  font-weight: 900;
}

.cadre-hub .portal-options,
.cadre-hub .hub-options {
  align-items: stretch;
}

.cadre-hub .portal-option.option-srt {
  border-color: rgba(153, 168, 98, 0.38);
}

.cadre-hub .portal-option.option-cn {
  border-color: rgba(181, 142, 103, 0.38);
}

.card-density-toggle {
  display: flex;
  gap: 6px;
  margin-left: auto;
  padding-left: 8px;
}

.card-density-toggle button {
  min-height: 32px;
  padding: 0 11px;
}

.dashboard-command-mode .collection-toolbar {
  position: sticky;
  top: 70px;
  z-index: 16;
  padding: 10px;
  border: 1px solid rgba(226, 181, 82, 0.18);
  border-radius: 8px;
  background: rgba(5, 9, 5, 0.92);
  backdrop-filter: blur(10px);
}

.candidate-primary-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.candidate-primary-actions .compact-decision {
  margin-top: 0;
}

.dashboard-list-density .collection-list {
  gap: 8px;
}

.dashboard-list-density .candidate-record {
  padding: 12px;
}

.dashboard-list-density .candidate-card-top {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
}

.dashboard-list-density .candidate-visual-stack {
  grid-template-columns: 70px 34px;
  gap: 7px;
}

.dashboard-list-density .candidate-photo-frame,
.dashboard-list-density .candidate-photo-placeholder {
  min-height: 70px;
}

.dashboard-list-density .team-logo-frame {
  padding: 3px;
}

.dashboard-list-density .candidate-card-stats,
.dashboard-list-density .candidate-records,
.dashboard-list-density .compare-toggle {
  display: none;
}

.dashboard-list-density .candidate-badges {
  justify-content: flex-start;
}

.dashboard-list-density .record-meta {
  font-size: 0.78rem;
}

.master-pipeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 14px;
}

.master-pipeline article {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(226, 181, 82, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.master-pipeline strong {
  font-size: 1.7rem;
}

.track-pill {
  width: max-content;
  padding: 5px 8px;
  border: 1px solid rgba(226, 181, 82, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.track-pill.cn {
  border-color: rgba(181, 142, 103, 0.45);
  color: #e6c9aa;
}

.track-pill.srt {
  border-color: rgba(153, 168, 98, 0.45);
  color: #c9d28b;
}

.queue-decision-control {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.queue-decision-control select {
  width: 100%;
  min-height: 34px;
}

.admin-zone-card {
  border-radius: 8px;
}

.admin-zone-index {
  display: inline-grid;
  min-width: 30px;
  min-height: 28px;
  place-items: center;
  margin-right: 8px;
  border: 1px solid rgba(226, 181, 82, 0.28);
  border-radius: 999px;
  color: var(--amber);
  font-size: 0.75rem;
}

.admin-zoned .admin-tabs {
  position: sticky;
  top: 70px;
  z-index: 15;
  background: rgba(5, 9, 5, 0.92);
  backdrop-filter: blur(10px);
}

.score-card.live-fail,
.score-event.live-fail {
  border-color: rgba(255, 116, 108, 0.5);
  background: rgba(120, 16, 10, 0.18);
}

.score-card.live-caution,
.score-event.live-caution {
  border-color: rgba(255, 207, 105, 0.52);
  background: rgba(226, 181, 82, 0.12);
}

.score-card.live-pass,
.score-event.live-pass {
  border-color: rgba(153, 245, 157, 0.42);
  background: rgba(18, 72, 26, 0.18);
}

@media (max-width: 720px) {
  .compact-chrome .form-header,
  .wizard-mode .form-step-controls,
  .dashboard-command-mode .collection-toolbar,
  .admin-zoned .admin-tabs {
    position: static;
  }

  .hub-continue-panel,
  .master-pipeline {
    grid-template-columns: 1fr;
  }

  .card-density-toggle {
    width: 100%;
    margin-left: 0;
  }

  .card-density-toggle button {
    flex: 1;
  }

  .dashboard-list-density .candidate-card-top {
    grid-template-columns: 1fr;
  }

  .dashboard-list-density .candidate-visual-stack {
    grid-template-columns: 92px 48px;
  }
}

/* Nineteen explicit iteration passes. */
.breadcrumb-trail,
.page-health-strip,
.result-legend,
.review-queue-header,
.admin-safety-notice,
.pending-status-helper,
.keyboard-help-panel {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 181, 82, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.breadcrumb-trail a {
  color: var(--amber);
  font-weight: 950;
  text-decoration: none;
}

.breadcrumb-trail span::before,
.breadcrumb-trail strong::before {
  content: "/";
  margin-right: 8px;
  color: rgba(226, 181, 82, 0.45);
}

.breadcrumb-trail strong,
.page-health-strip span,
.review-queue-header strong,
.admin-safety-notice strong,
.pending-status-helper,
.keyboard-help-panel summary {
  color: #fff9de;
}

.page-health-strip span,
.result-legend span,
.autosave-pulse,
[data-nav-shortcut],
.admin-pending-priority,
.refinement-signature {
  display: inline-grid;
  place-items: center;
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(226, 181, 82, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.candidate-number-mirror {
  position: sticky;
  top: 62px;
  z-index: 17;
  width: max-content;
  max-width: 100%;
  margin: 0 0 10px auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 213, 112, 0.34);
  border-radius: 999px;
  background: rgba(5, 9, 5, 0.9);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.step-progress-bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.step-progress-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  transition: width 160ms ease;
}

.autosave-pulse {
  color: #99f59d;
  border-color: rgba(153, 245, 157, 0.24);
}

[data-nav-shortcut] {
  margin-left: auto;
  color: rgba(244, 241, 230, 0.7);
}

.result-legend span:nth-child(1) {
  color: #99f59d;
}

.result-legend span:nth-child(2) {
  color: #ffcf69;
}

.result-legend span:nth-child(3) {
  color: #ffb4ad;
}

.dashboard-mode-explainer,
.master-decision-narrative {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.candidate-record.candidate-removed {
  border-color: rgba(255, 116, 108, 0.34);
}

.candidate-record.candidate-complete {
  border-color: rgba(153, 245, 157, 0.28);
}

.candidate-record.candidate-missing {
  box-shadow: inset 4px 0 0 rgba(255, 207, 105, 0.32), 0 18px 34px rgba(0, 0, 0, 0.22);
}

.review-queue-header {
  justify-content: space-between;
}

.review-queue-header span,
.review-queue-header em {
  color: var(--amber);
  font-style: normal;
  text-transform: uppercase;
}

.queue-severe {
  border-color: rgba(255, 116, 108, 0.4) !important;
}

.queue-pending {
  border-color: rgba(255, 207, 105, 0.36) !important;
}

.admin-safety-notice {
  justify-content: space-between;
}

.admin-pending-priority {
  margin-left: 8px;
}

.keyboard-help-panel {
  align-items: flex-start;
}

.keyboard-help-panel summary {
  cursor: pointer;
  font-weight: 950;
}

.keyboard-help-panel span {
  width: 100%;
}

.mobile-jump-bar {
  display: none;
}

.refinement-signature {
  margin-top: 8px;
  color: rgba(244, 241, 230, 0.62);
}

@media (max-width: 720px) {
  .candidate-number-mirror {
    position: static;
    margin-right: 0;
  }

  .mobile-jump-bar {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-top: 1px solid rgba(226, 181, 82, 0.24);
    background: rgba(5, 9, 5, 0.96);
  }

  .mobile-jump-bar a {
    min-height: 44px;
    display: grid;
    place-items: center;
    color: var(--amber);
    font-size: 0.72rem;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
  }
}

/* Twenty-pass refinement layer. */
.page-micro-summary {
  display: block;
  margin-top: 4px;
  color: rgba(244, 241, 230, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
}

.current-page-link {
  border-color: rgba(255, 213, 112, 0.6) !important;
  background: rgba(226, 181, 82, 0.14) !important;
}

.password-reveal-button {
  justify-self: end;
  margin-top: -2px;
  border: 0;
  color: var(--amber);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.home-trust-strip,
.score-result-strip,
.filter-summary,
.admin-command-summary,
.master-track-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.home-trust-strip span,
.score-result-strip b,
.filter-summary,
.keyboard-search-hint,
.upload-preview-hint,
.action-hint,
[data-open-queue-label] {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-trust-strip span,
.score-result-strip b,
.filter-summary,
.keyboard-search-hint,
.upload-preview-hint,
.action-hint,
[data-open-queue-label],
.decision-badge {
  padding: 6px 8px;
  border: 1px solid rgba(226, 181, 82, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.hub-progress-meter {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(226, 181, 82, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.hub-progress-meter div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hub-progress-meter span,
.admin-command-summary span,
.master-track-summary span {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

.mini-progress-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--gold));
}

.action-hint {
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
  border-radius: 6px;
}

.cadre-track-heading {
  grid-column: 1 / -1;
  margin: 4px 0 -2px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-overview-chip {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(226, 181, 82, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.form-overview-chip span,
.missing-field-preview span {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.missing-field-preview {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.missing-field-preview b {
  padding: 6px 8px;
  border-radius: 999px;
  color: #ffcf69;
  background: rgba(226, 181, 82, 0.1);
  font-size: 0.72rem;
}

.submit-shortcut {
  justify-self: end;
}

.upload-preview-hint.ready {
  color: #99f59d;
  border-color: rgba(153, 245, 157, 0.32);
}

.score-result-strip {
  margin: -8px 0 14px;
}

.score-result-strip b:nth-child(1) {
  color: #ffb4ad;
}

.score-result-strip b:nth-child(2) {
  color: #ffcf69;
}

.score-result-strip b:nth-child(3) {
  color: #99f59d;
}

.filter-summary {
  margin-top: -4px;
  border-radius: 8px;
  color: var(--amber);
}

.keyboard-search-hint {
  width: max-content;
  margin-top: 2px;
}

.decision-badge {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.decision-badge[data-decision="invited"] {
  color: #99f59d;
  border-color: rgba(153, 245, 157, 0.34);
}

.decision-badge[data-decision="not-selected"] {
  color: #ffb4ad;
  border-color: rgba(255, 116, 108, 0.34);
}

.master-track-summary,
.admin-command-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0 0 14px;
}

.master-track-summary article,
.admin-command-summary article {
  padding: 12px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.master-track-summary strong,
.admin-command-summary strong {
  display: block;
  margin-top: 4px;
  color: #fff9de;
  font-size: 1.3rem;
}

[data-open-queue-label] {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
  color: rgba(244, 241, 230, 0.62);
}

.empty-state [data-empty-helper] {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .home-trust-strip,
  .score-result-strip,
  .filter-summary,
  .missing-field-preview {
    align-items: stretch;
  }

  .home-trust-strip span,
  .score-result-strip b,
  .filter-summary,
  .keyboard-search-hint,
  .upload-preview-hint,
  .action-hint,
  [data-open-queue-label] {
    width: 100%;
  }
}

/* Repeat clarity pass. */
.page-intent-band,
.primary-action-focus,
.form-readiness-panel,
.cadre-permission-summary,
.candidate-hub-path-note,
.home-login-path-note,
.admin-approval-steps {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(226, 181, 82, 0.1), transparent 42%),
    rgba(0, 0, 0, 0.2);
}

.page-intent-band {
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr) auto;
  align-items: center;
}

.page-intent-band strong,
.primary-action-focus span,
.form-readiness-panel span,
.cadre-permission-summary strong,
.candidate-hub-path-note strong,
.home-login-path-note strong,
.admin-approval-steps strong {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-intent-band span,
.cadre-permission-summary span,
.candidate-hub-path-note span,
.home-login-path-note span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.page-intent-band em,
.form-readiness-panel em {
  justify-self: end;
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 999px;
  color: #fff9de;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.primary-action-focus {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-color: rgba(153, 245, 157, 0.24);
  background:
    radial-gradient(circle at 95% 50%, rgba(153, 245, 157, 0.12), transparent 34%),
    rgba(0, 0, 0, 0.2);
}

.primary-action-focus strong,
.form-readiness-panel strong {
  color: #fff9de;
  font-size: 1rem;
}

.form-readiness-panel {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.form-readiness-panel.ready {
  border-color: rgba(153, 245, 157, 0.34);
}

.form-readiness-panel.ready em {
  color: #99f59d;
  border-color: rgba(153, 245, 157, 0.34);
}

.dashboard-attention-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.dashboard-attention-strip article {
  padding: 12px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.dashboard-attention-strip span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-attention-strip strong {
  display: block;
  margin-top: 4px;
  color: #fff9de;
  font-size: 1.35rem;
}

.empty-filter-reset {
  margin-top: 12px;
}

.admin-approval-steps {
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
}

.admin-approval-steps span {
  padding: 7px 9px;
  border: 1px solid rgba(226, 181, 82, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.home-login-path-note {
  margin: 12px 0 0;
}

@media (max-width: 720px) {
  .page-intent-band,
  .primary-action-focus,
  .form-readiness-panel,
  .admin-approval-steps {
    grid-template-columns: 1fr;
  }

  .page-intent-band em,
  .form-readiness-panel em {
    justify-self: start;
  }

  .dashboard-attention-strip {
    grid-template-columns: 1fr;
  }
}

/* Second repeat workflow pass. */
.workflow-ribbon,
.quick-triage-bar,
.admin-role-summary,
.cadre-track-counts,
.candidate-completion-hint,
.home-route-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 14px;
}

.workflow-ribbon span,
.quick-triage-bar button,
.home-route-summary span,
.management-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.workflow-ribbon b {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #11170f;
  background: var(--gold);
  font-size: 0.68rem;
}

.quick-triage-bar {
  padding: 10px;
  border: 1px solid rgba(226, 181, 82, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.quick-triage-bar button {
  cursor: pointer;
}

.quick-triage-bar button:hover,
.quick-triage-bar button:focus-visible {
  color: #fff9de;
  border-color: rgba(255, 213, 112, 0.5);
  box-shadow: 0 0 0 3px rgba(226, 181, 82, 0.12);
}

.admin-role-summary,
.cadre-track-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-role-summary article,
.cadre-track-counts article,
.candidate-completion-hint {
  padding: 12px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 95% 12%, rgba(226, 181, 82, 0.1), transparent 34%),
    rgba(0, 0, 0, 0.18);
}

.admin-role-summary span,
.cadre-track-counts span,
.candidate-completion-hint span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.admin-role-summary strong,
.cadre-track-counts strong,
.candidate-completion-hint strong {
  display: block;
  color: #fff9de;
  font-size: 1.2rem;
}

.submit-context {
  display: block;
  margin-top: 4px;
  color: rgba(244, 241, 230, 0.62);
  font-size: 0.74rem;
  font-weight: 850;
}

.management-badge {
  min-height: 24px;
  margin-left: 7px;
  padding: 3px 7px;
  color: var(--amber);
  font-size: 0.62rem;
  font-style: normal;
}

.home-route-summary {
  margin-top: 12px;
}

.home-route-summary span {
  flex: 1 1 110px;
  justify-content: center;
}

@media (max-width: 720px) {
  .workflow-ribbon,
  .quick-triage-bar,
  .home-route-summary {
    align-items: stretch;
  }

  .workflow-ribbon span,
  .quick-triage-bar button,
  .home-route-summary span {
    width: 100%;
    justify-content: flex-start;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #050704 url("assets/srt-teams-background.png") center top / min(100vw, 941px) auto fixed no-repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 18%, rgba(226, 181, 82, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(4, 6, 4, 0.76), rgba(4, 6, 4, 0.1) 46%, rgba(4, 6, 4, 0.72)),
    linear-gradient(180deg, rgba(4, 6, 4, 0.12), rgba(4, 6, 4, 0.78));
  content: "";
}

button,
input,
select,
textarea {
  font: inherit;
}

a.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
}

.portal-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(5, 7, 4, 0.26), rgba(5, 7, 4, 0.86)),
    url("assets/srt-teams-banner.png") center / cover fixed no-repeat,
    #050704;
}

.home-page {
  position: relative;
  background:
    radial-gradient(circle at 73% 47%, rgba(226, 181, 82, 0.26), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(255, 226, 144, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(5, 7, 4, 0.92), rgba(5, 7, 4, 0.42) 52%, rgba(5, 7, 4, 0.74)),
    linear-gradient(180deg, rgba(22, 17, 8, 0.16), rgba(5, 7, 4, 0.92)),
    #050704;
}

.home-page::after {
  position: fixed;
  inset: 50% 5vw auto auto;
  z-index: 0;
  width: min(620px, 46vw);
  aspect-ratio: 1;
  background:
    linear-gradient(rgba(5, 7, 4, 0.06), rgba(5, 7, 4, 0.06)),
    url("assets/tmb-logo.png") center / contain no-repeat;
  content: "";
  opacity: 0.48;
  pointer-events: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 36px rgba(226, 181, 82, 0.16));
}

.home-page::before {
  position: fixed;
  inset: auto auto 0 0;
  z-index: 0;
  width: min(980px, 78vw);
  height: min(680px, 76vh);
  background:
    radial-gradient(ellipse at 18% 68%, rgba(0, 0, 0, 0.82), transparent 68%),
    linear-gradient(45deg, rgba(5, 7, 4, 0.78), transparent 66%);
  content: "";
  pointer-events: none;
}

.portal-shell {
  width: min(980px, 100%);
  display: grid;
  gap: 18px;
}

.hub-page {
  align-items: start;
  padding-top: clamp(18px, 4vw, 46px);
  background:
    radial-gradient(circle at 82% 16%, rgba(226, 181, 82, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(5, 7, 4, 0.9), rgba(5, 7, 4, 0.4) 52%, rgba(5, 7, 4, 0.78)),
    linear-gradient(180deg, rgba(5, 7, 4, 0.1), rgba(5, 7, 4, 0.9)),
    url("assets/srt-teams-banner.png") center / cover fixed no-repeat,
    #050704;
}

.hub-shell {
  width: min(1120px, 100%);
  gap: 16px;
}

.home-page .portal-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 48px);
  width: min(1320px, 100%);
  align-content: end;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(12px, 2vw, 24px);
}

.portal-hero {
  min-height: clamp(250px, 38vw, 390px);
  display: grid;
  align-content: end;
  gap: 8px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(226, 181, 82, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 7, 4, 0.84), rgba(5, 7, 4, 0.28) 58%, rgba(5, 7, 4, 0.58)),
    url("assets/srt-teams-banner.png") center / cover no-repeat;
  box-shadow: var(--glow), var(--shadow);
}

.hub-hero {
  min-height: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(5, 7, 4, 0.92), rgba(20, 28, 17, 0.68)),
    radial-gradient(circle at 78% 14%, rgba(226, 181, 82, 0.18), transparent 32%),
    url("assets/srt-teams-banner.png") center / cover no-repeat;
}

.hub-hero-mark {
  width: clamp(72px, 9vw, 118px);
  height: clamp(72px, 9vw, 118px);
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(226, 181, 82, 0.3));
}

.hub-dual-mark {
  position: relative;
  display: block;
  width: clamp(92px, 12vw, 142px);
  height: clamp(74px, 9vw, 112px);
}

.hub-dual-mark img {
  position: absolute;
  bottom: 0;
  width: 64%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(226, 181, 82, 0.24));
}

.hub-dual-mark img:first-child {
  left: 0;
  transform: rotate(-8deg);
}

.hub-dual-mark img:last-child {
  right: 0;
  transform: rotate(8deg);
}

.home-page .portal-hero {
  min-height: 0;
  width: min(880px, 100%);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.portal-mark {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(226, 181, 82, 0.55));
}

.portal-hero h1 {
  max-width: 760px;
  color: #fff9de;
  font-size: clamp(2.1rem, 6vw, 4.75rem);
  line-height: 0.96;
  text-shadow: 0 0 22px rgba(226, 181, 82, 0.24);
}

.home-page .portal-hero h1 {
  max-width: 900px;
  font-size: clamp(3.1rem, 9vw, 8.5rem);
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.22),
    0 0 26px rgba(226, 181, 82, 0.24);
}

.home-status-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.home-status-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(226, 181, 82, 0.32);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff9de;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.home-request-access-button {
  width: max-content;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 207, 105, 0.5);
  color: #171408;
  background: linear-gradient(135deg, var(--gold), #f3ce74 46%, #9f6f20);
  box-shadow: 0 12px 30px rgba(226, 181, 82, 0.24);
}

.portal-hero p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  color: rgba(244, 241, 230, 0.82);
  font-size: 1.04rem;
}

.hub-hero p:not(.eyebrow) {
  max-width: 640px;
  font-size: 1.08rem;
}

.hub-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hub-status {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  padding: 0 11px;
  border: 1px solid rgba(226, 181, 82, 0.3);
  border-radius: 999px;
  color: #fff9de;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-status.protected {
  border-color: rgba(255, 207, 105, 0.5);
  color: var(--amber);
  background: rgba(226, 181, 82, 0.13);
}

.user-access-chip,
.submitter-chip {
  border-color: rgba(153, 245, 157, 0.36);
  color: #99f59d;
  background: rgba(18, 72, 26, 0.22);
}

.submitter-chip {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.next-step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 181, 82, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(226, 181, 82, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(2, 7, 2, 0.64);
}

.portal-shell .next-step-bar {
  margin-top: -6px;
}

.next-step-bar div {
  display: grid;
  gap: 3px;
}

.next-step-bar span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-step-bar strong {
  color: #fff9de;
  font-size: 0.96rem;
}

.session-logout {
  min-height: 36px;
  padding: 8px 13px;
  white-space: nowrap;
}

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

.hub-options {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.candidate-hub .hub-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.portal-option {
  min-height: 148px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(226, 181, 82, 0.3);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background:
    radial-gradient(circle at 88% 0%, rgba(226, 181, 82, 0.18), transparent 42%),
    rgba(12, 17, 10, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.portal-option:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 181, 82, 0.58);
  background:
    radial-gradient(circle at 88% 0%, rgba(226, 181, 82, 0.25), transparent 42%),
    rgba(15, 22, 12, 0.9);
}

.hub-options .portal-option {
  position: relative;
  min-height: 170px;
  align-content: start;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(226, 181, 82, 0.07)),
    rgba(10, 15, 9, 0.82);
}

.hub-options .portal-option > *:not(.tile-watermark),
.home-page .portal-option > *:not(.tile-watermark):not(.dual-watermark) {
  position: relative;
  z-index: 1;
}

.tile-watermark,
.dual-watermark {
  position: absolute;
  right: 12px;
  bottom: -18px;
  width: 44%;
  max-width: 220px;
  height: auto;
  opacity: 0.09;
  pointer-events: none;
  filter: saturate(0.85);
  transform: rotate(-4deg);
}

.home-page .tile-watermark,
.home-page .dual-watermark {
  right: 6px;
  bottom: -26px;
  width: 46%;
  opacity: 0.11;
}

.dual-watermark {
  display: block;
  max-width: 260px;
  transform: none;
}

.dual-watermark img {
  position: absolute;
  bottom: 0;
  width: 66%;
  height: auto;
  opacity: 0.9;
  filter: saturate(0.85);
}

.dual-watermark img:first-child {
  left: -2%;
  transform: rotate(-12deg);
}

.dual-watermark img:last-child {
  right: -2%;
  transform: rotate(12deg);
}

.hub-options .portal-option::after {
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(226, 181, 82, 0.18);
  border-radius: 50%;
  background: rgba(226, 181, 82, 0.07);
  content: "";
  pointer-events: none;
}

.hub-options .portal-option:hover {
  border-color: rgba(255, 207, 105, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(226, 181, 82, 0.14)),
    rgba(14, 20, 11, 0.94);
  box-shadow: var(--glow), 0 22px 48px rgba(0, 0, 0, 0.38);
}

.portal-option-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 207, 105, 0.18));
  transition: transform 140ms ease, filter 140ms ease;
}

.home-page .tmb-option-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  filter:
    drop-shadow(0 0 14px rgba(255, 207, 105, 0.22))
    drop-shadow(0 0 26px rgba(0, 0, 0, 0.3));
}

.home-entry-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(226, 181, 82, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(226, 181, 82, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(7, 10, 6, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.home-entry-brand {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.home-entry-brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 207, 105, 0.24));
}

.home-entry-brand h2 {
  margin: 2px 0 4px;
  color: #fff9de;
  font-size: 2rem;
}

.home-entry-brand p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.home-direct-login {
  display: grid;
  gap: 11px;
}

.home-direct-login label {
  display: grid;
  gap: 6px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-direct-login input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(226, 181, 82, 0.28);
  border-radius: 7px;
  padding: 0 12px;
  color: #fff9de;
  background: rgba(0, 0, 0, 0.32);
  font: inherit;
}

.home-direct-login button[type="submit"] {
  min-height: 44px;
  color: #171408;
  background: linear-gradient(135deg, var(--gold), #f3ce74 46%, #9f6f20);
  box-shadow: 0 10px 22px rgba(226, 181, 82, 0.16);
}

.home-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 181, 82, 0.18);
  color: var(--muted);
  font-weight: 800;
}

.home-auth-dialog {
  width: min(460px, calc(100% - 28px));
  border: 1px solid rgba(226, 181, 82, 0.42);
  border-radius: 10px;
  padding: 0;
  color: var(--ink);
  background: rgba(8, 12, 6, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.home-auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.home-auth-panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.home-auth-panel h2 {
  margin: 4px 0 4px;
  color: #fff9de;
  font-size: 2rem;
}

.home-auth-panel p {
  margin: 0;
  color: var(--muted);
}

.home-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.home-auth-view {
  display: grid;
  gap: 12px;
}

.home-auth-view[hidden] {
  display: none;
}

.home-auth-view label {
  display: grid;
  gap: 6px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-auth-view input,
.home-auth-view select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(226, 181, 82, 0.28);
  border-radius: 7px;
  padding: 0 12px;
  color: #fff9de;
  background: rgba(0, 0, 0, 0.32);
  font: inherit;
}

.home-auth-view button[type="submit"] {
  color: #171408;
  background: linear-gradient(135deg, var(--gold), #f3ce74 46%, #9f6f20);
}

.home-auth-message {
  min-height: 20px;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 900;
}

.home-auth-message.success {
  color: #99f59d;
}

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

.username-preview {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(226, 181, 82, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.username-preview strong {
  color: var(--amber);
  font-size: 0.92rem;
}

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

.cadre-tool-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(226, 181, 82, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 6%, rgba(226, 181, 82, 0.14), transparent 34%),
    rgba(0, 0, 0, 0.18);
}

.cadre-tool-group > header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 4px 4px 10px;
  border-bottom: 1px solid rgba(226, 181, 82, 0.18);
}

.cadre-tool-group > header img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(226, 181, 82, 0.22));
}

.cadre-tool-group h2 {
  color: #fff9de;
  font-size: 1.15rem;
}

.cadre-tool-group .hub-options {
  grid-template-columns: 1fr;
}

.dashboard-option {
  min-height: 150px;
  border-color: rgba(255, 213, 112, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(226, 181, 82, 0.22), rgba(255, 255, 255, 0.04)),
    rgba(8, 12, 6, 0.92) !important;
}

.portal-option-index {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(226, 181, 82, 0.16);
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
}

.portal-option strong {
  display: block;
  margin-bottom: 8px;
  color: #fff9de;
  font-size: 1.25rem;
}

.home-page .portal-option strong {
  margin: 0;
  font-size: clamp(0.98rem, 1.6vw, 1.24rem);
  line-height: 1.05;
}

.step-chip {
  display: inline-grid;
  min-height: 24px;
  align-items: center;
  width: max-content;
  margin: 0 0 8px;
  padding: 0 9px;
  border: 1px solid rgba(255, 207, 105, 0.34);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(226, 181, 82, 0.1);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-group-heading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-group-heading span {
  padding: 0 4px 6px;
  border-bottom: 1px solid rgba(226, 181, 82, 0.26);
}

.portal-option-index.tool-chip {
  width: auto;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.portal-enter {
  display: inline-block;
  margin-top: 6px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.admin-tabs button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 950;
  cursor: pointer;
}

.admin-tabs button span {
  display: inline-grid;
  min-width: 24px;
  min-height: 22px;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(255, 213, 112, 0.16);
  color: var(--amber);
  font-size: 0.72rem;
}

.admin-tabs button.active,
.admin-tabs button:hover,
.admin-tabs button:focus-visible {
  border-color: rgba(255, 207, 105, 0.5);
  color: var(--amber);
  background: rgba(226, 181, 82, 0.13);
}

.compact-admin-tools {
  margin: 0 0 14px;
}

.access-request-card.suspended-user {
  border-color: rgba(255, 116, 108, 0.36);
  background:
    linear-gradient(90deg, rgba(255, 116, 108, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.16);
}

.danger-button {
  border-color: rgba(255, 116, 108, 0.42) !important;
  color: #ffb4ad !important;
}

.export-menu {
  position: relative;
}

.export-menu summary {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(226, 181, 82, 0.34);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.export-menu summary::-webkit-details-marker {
  display: none;
}

.export-menu[open] summary {
  border-color: rgba(255, 207, 105, 0.58);
  background: rgba(226, 181, 82, 0.14);
}

.export-menu > div {
  position: absolute;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  min-width: 190px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(226, 181, 82, 0.3);
  border-radius: 8px;
  background: rgba(3, 8, 3, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.export-menu > div .secondary-button,
.export-menu > div .file-import-button {
  justify-content: center;
  width: 100%;
}

.form-more-menu {
  position: relative;
}

.form-more-menu summary {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(226, 181, 82, 0.26);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.form-more-menu summary::-webkit-details-marker {
  display: none;
}

.form-more-menu[open] summary {
  border-color: rgba(255, 207, 105, 0.48);
  color: var(--amber);
  background: rgba(226, 181, 82, 0.12);
}

.form-more-menu > div {
  position: absolute;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 8px;
  min-width: 132px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(226, 181, 82, 0.3);
  border-radius: 8px;
  background: rgba(3, 8, 3, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.form-more-menu #clearDraftButton,
.form-more-menu #clearCollection {
  border-color: rgba(255, 116, 108, 0.42);
  color: #ffb4ad;
}

.hub-form-state[data-state="submitted"] {
  border-color: rgba(153, 245, 157, 0.42);
  color: #99f59d;
  background: rgba(18, 72, 26, 0.22);
}

.hub-form-state[data-state="draft-saved"] {
  border-color: rgba(255, 213, 112, 0.46);
  color: var(--amber);
  background: rgba(226, 181, 82, 0.14);
}

.hub-form-state[data-state="not-started"] {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

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

.hub-options .portal-enter {
  display: block;
  margin-top: 18px;
  color: var(--amber);
}

.hub-topbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-topbar a {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(226, 181, 82, 0.34);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.hub-topbar a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 207, 105, 0.68);
  background: rgba(226, 181, 82, 0.14);
}

.portal-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-links a {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(226, 181, 82, 0.34);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 880px);
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  align-items: start;
}

.image-reveal {
  width: min(1240px, calc(100% - 32px));
  margin: 16px auto 18px;
}

.image-reveal-frame {
  min-height: clamp(190px, 32vw, 430px);
  border: 1px solid rgba(226, 181, 82, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 7, 4, 0.34), rgba(5, 7, 4, 0.02) 42%, rgba(5, 7, 4, 0.24)),
    url("assets/srt-teams-banner.png") center center / cover no-repeat;
  box-shadow: var(--glow), var(--shadow);
}

.side-panel,
.form-panel {
  border: 1px solid rgba(226, 181, 82, 0.3);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.side-panel {
  position: sticky;
  top: 16px;
  min-height: calc(100vh - 32px);
  padding: 18px;
  backdrop-filter: blur(8px);
  box-shadow: var(--glow), var(--shadow);
}

.form-panel {
  min-height: calc(100vh - 32px);
  overflow: visible;
  box-shadow: var(--glow), var(--shadow);
}

.brand-block {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 13px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(226, 181, 82, 0.5));
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 1.48rem;
  line-height: 1.12;
}

h2 {
  font-size: 1.42rem;
}

h3 {
  font-size: 1.04rem;
}

.progress-wrap {
  padding: 18px 0 16px;
}

.progress-label,
.draft-status,
.submit-bar,
.dialog-actions,
.form-header,
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-label strong {
  color: var(--amber);
  font-size: 1.08rem;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  box-shadow: 0 0 16px rgba(226, 181, 82, 0.42);
  transition: width 180ms ease;
}

.team-status-panel {
  display: grid;
  gap: 10px;
  padding: 2px 0 18px;
}

.team-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-status-heading strong {
  color: var(--amber);
  font-size: 0.66rem;
}

.team-status-list {
  display: grid;
  gap: 7px;
}

.team-status-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(226, 181, 82, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 50%, rgba(226, 181, 82, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.035);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.team-status-card:hover,
.team-status-card:focus-visible,
.team-status-card.active {
  border-color: rgba(255, 213, 112, 0.62);
  background:
    radial-gradient(circle at 92% 50%, rgba(226, 181, 82, 0.2), transparent 48%),
    rgba(226, 181, 82, 0.08);
  box-shadow: 0 0 18px rgba(226, 181, 82, 0.12);
  outline: none;
}

.team-status-card.active {
  transform: translateX(2px);
}

.team-status-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(226, 181, 82, 0.24));
}

.team-status-card div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.team-status-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-status-card span {
  min-width: 56px;
  padding: 5px 8px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff9de;
  font-size: 0.84rem;
  font-weight: 950;
  text-align: center;
}

.team-filter-clear {
  min-height: 34px;
  border: 1px solid rgba(226, 181, 82, 0.26);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--amber);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-filter-clear:hover,
.team-filter-clear:focus-visible {
  border-color: rgba(255, 213, 112, 0.68);
  outline: none;
}

.section-nav {
  display: grid;
  gap: 8px;
  padding: 6px 0 18px;
}

.section-nav a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.section-nav a:hover,
.section-nav a.active {
  border-color: rgba(226, 181, 82, 0.58);
  background: rgba(226, 181, 82, 0.12);
  box-shadow: inset 3px 0 0 var(--gold);
}

.section-nav a.complete {
  border-color: rgba(116, 156, 73, 0.5);
}

.nav-index,
.section-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(226, 181, 82, 0.16);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nav-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-copy span,
.section-nav > a > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-count {
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.draft-status {
  align-items: flex-start;
  flex-direction: column;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.form-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(226, 181, 82, 0.28);
  background:
    linear-gradient(90deg, rgba(226, 181, 82, 0.12), transparent 36%),
    var(--panel-strong);
  backdrop-filter: blur(12px);
}

.form-header h2 {
  color: #fff9de;
  text-shadow: 0 0 18px rgba(226, 181, 82, 0.22);
}

.intel-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid rgba(226, 181, 82, 0.24);
  background: rgba(226, 181, 82, 0.22);
}

.intel-strip div {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  background:
    radial-gradient(circle at 82% 18%, rgba(226, 181, 82, 0.18), transparent 36%),
    rgba(9, 13, 8, 0.86);
}

.intel-strip span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intel-strip strong {
  color: var(--amber);
  font-size: 1.28rem;
  line-height: 1;
}

.status-pass {
  color: #8ee28e !important;
}

.status-fail {
  color: #ff746c !important;
}

.header-actions,
.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

form {
  display: grid;
  gap: 16px;
  padding: 20px 22px 104px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  position: relative;
}

.form-section:hover {
  border-color: rgba(226, 181, 82, 0.42);
}

.form-section::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), rgba(91, 127, 58, 0.25));
  content: "";
}

.section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(226, 181, 82, 0.22);
  background:
    linear-gradient(90deg, rgba(226, 181, 82, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.1);
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.section-status {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(226, 181, 82, 0.13);
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

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

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

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

.field.hidden {
  display: none;
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.required-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(226, 181, 82, 0.28);
  border-radius: 7px;
  background: var(--field);
  color: var(--field-ink);
  padding: 10px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(226, 181, 82, 0.68);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.file-drop:focus-within {
  outline: 3px solid rgba(239, 196, 94, 0.26);
  border-color: var(--focus);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea,
.field.invalid .file-drop {
  border-color: var(--danger);
}

.error-text {
  min-height: 17px;
  color: var(--danger);
  font-size: 0.8rem;
}

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

.file-drop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px dashed rgba(226, 181, 82, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.file-drop:hover {
  border-color: var(--gold);
  background: rgba(226, 181, 82, 0.12);
}

.file-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(226, 181, 82, 0.16);
  color: var(--amber);
}

.file-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.file-copy strong,
.file-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta,
.location-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.file-action {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.headshot-field {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.34fr);
  align-items: stretch;
}

.headshot-field > label,
.headshot-field > .hint,
.headshot-field > .error-text {
  grid-column: 1 / -1;
}

.headshot-field .file-drop {
  min-height: 132px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(226, 181, 82, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(0, 0, 0, 0.18);
}

.headshot-upload-preview {
  min-height: 132px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 181, 82, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 15%, rgba(226, 181, 82, 0.18), transparent 44%),
    rgba(0, 0, 0, 0.26);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.headshot-upload-preview img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  display: block;
  object-fit: cover;
}

.location-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.score-event {
  padding: 14px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.score-event-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(126px, 0.32fr);
  gap: 12px;
  align-items: stretch;
}

.score-card {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(226, 181, 82, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 0%, rgba(226, 181, 82, 0.22), transparent 44%),
    rgba(12, 17, 10, 0.82);
}

.score-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score-card strong {
  color: var(--amber);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.score-card.score-fail {
  border-color: rgba(255, 116, 108, 0.82);
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 116, 108, 0.28), transparent 46%),
    rgba(45, 11, 10, 0.88);
}

.score-card.score-fail strong {
  color: #ff746c;
}

.score-card.score-caution {
  border-color: rgba(255, 207, 105, 0.86);
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 207, 105, 0.3), transparent 46%),
    rgba(47, 35, 9, 0.88);
}

.score-card.score-caution strong {
  color: #ffcf69;
}

.score-card.score-pass {
  border-color: rgba(142, 226, 142, 0.82);
  background:
    radial-gradient(circle at 82% 0%, rgba(142, 226, 142, 0.26), transparent 46%),
    rgba(13, 38, 18, 0.88);
}

.score-card.score-pass strong {
  color: #8ee28e;
}

.score-card.score-perfect {
  border-color: rgba(255, 213, 112, 0.95);
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 213, 112, 0.42), transparent 48%),
    rgba(56, 38, 5, 0.92);
  box-shadow: 0 0 24px rgba(255, 213, 112, 0.12);
}

.score-card.score-perfect strong {
  color: #ffd570;
}

.score-outcome-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: -2px 22px 14px;
  padding: 18px;
  border: 1px solid rgba(226, 181, 82, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 0%, rgba(226, 181, 82, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(226, 181, 82, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.18);
}

.score-outcome-panel > div {
  display: grid;
  gap: 5px;
}

.score-outcome-panel span,
.event-summary-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-outcome-panel p {
  margin: 0;
  color: rgba(244, 241, 230, 0.84);
  line-height: 1.35;
}

.outcome-badge {
  width: max-content;
  min-width: 112px;
  padding: 10px 14px;
  border: 1px solid rgba(226, 181, 82, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--amber);
  font-size: 1.36rem;
  text-transform: uppercase;
}

.outcome-badge.pass {
  border-color: rgba(142, 226, 142, 0.72);
  color: #8ee28e;
  box-shadow: 0 0 18px rgba(142, 226, 142, 0.1);
}

.outcome-badge.fail {
  border-color: rgba(255, 116, 108, 0.72);
  color: #ff746c;
  box-shadow: 0 0 18px rgba(255, 116, 108, 0.1);
}

.score-fail-text {
  color: #ff746c;
}

.score-caution-text {
  color: #ffcf69;
}

.score-pass-text {
  color: #8ee28e;
}

.event-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
  margin: 0 22px 18px;
}

.event-summary-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.event-summary-grid strong {
  color: var(--amber);
  font-size: 1.45rem;
  line-height: 1;
}

.event-summary-grid article.fail {
  border-color: rgba(255, 116, 108, 0.52);
}

.event-summary-grid article.fail strong {
  color: #ff746c;
}

.event-summary-grid article.caution {
  border-color: rgba(255, 207, 105, 0.56);
}

.event-summary-grid article.caution strong {
  color: #ffcf69;
}

.event-summary-grid article.pass {
  border-color: rgba(142, 226, 142, 0.5);
}

.event-summary-grid article.pass strong {
  color: #8ee28e;
}

.event-summary-grid article.perfect {
  border-color: rgba(255, 213, 112, 0.72);
  background:
    radial-gradient(circle at 84% 0%, rgba(255, 213, 112, 0.28), transparent 45%),
    rgba(44, 31, 7, 0.78);
}

.event-summary-grid article.perfect strong {
  color: #ffd570;
}

.gear-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 22px 18px;
}

.candidate-context-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 22px 18px;
  padding: 14px;
  border: 1px solid rgba(226, 181, 82, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(226, 181, 82, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.18);
}

.candidate-context-photo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(226, 181, 82, 0.34);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.candidate-context-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-context-card span,
.gear-summary-panel > span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.candidate-context-card strong {
  display: block;
  margin: 3px 0;
  color: #fff9de;
  font-size: 1.2rem;
}

.candidate-context-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.gear-summary-panel {
  display: grid;
  gap: 10px;
  margin: 0 22px 18px;
  padding: 14px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.gear-summary-panel div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gear-summary-panel b {
  display: inline-grid;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(226, 181, 82, 0.24);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
}

.gear-summary-panel b.complete {
  border-color: rgba(153, 245, 157, 0.36);
  color: #99f59d;
  background: rgba(18, 72, 26, 0.2);
}

.form-checklist-card,
.evaluator-confirmation-card,
.role-legend-panel {
  margin: 0 22px 18px;
  border: 1px solid rgba(226, 181, 82, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(226, 181, 82, 0.14), transparent 34%),
    rgba(0, 0, 0, 0.18);
}

.form-checklist-card,
.evaluator-confirmation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.form-checklist-card span,
.evaluator-confirmation-card span,
.role-legend-panel span {
  display: block;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-checklist-card strong,
.evaluator-confirmation-card strong,
.role-legend-panel strong {
  display: block;
  margin-top: 3px;
  color: #fff9de;
  font-size: 1rem;
}

.form-checklist-card > b {
  padding: 8px 12px;
  border: 1px solid rgba(255, 207, 105, 0.38);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(226, 181, 82, 0.1);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.form-checklist-card.ready {
  border-color: rgba(153, 245, 157, 0.4);
}

.form-checklist-card.ready > b {
  border-color: rgba(153, 245, 157, 0.42);
  color: #99f59d;
  background: rgba(18, 72, 26, 0.22);
}

.evaluator-flow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.evaluator-flow b {
  padding: 8px 10px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.dashboard-preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dashboard-preset-row button {
  min-height: 36px;
  border: 1px solid rgba(226, 181, 82, 0.26);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  padding: 8px 12px;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.dashboard-preset-row button:hover,
.dashboard-preset-row button:focus-visible,
.dashboard-preset-row button.active {
  border-color: rgba(255, 213, 112, 0.68);
  background: rgba(226, 181, 82, 0.13);
  color: #fff9de;
  outline: none;
}

.role-legend-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(226, 181, 82, 0.22);
}

.role-legend-panel article {
  padding: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(5, 10, 5, 0.9);
}

.packet-summary-bar,
.cadre-quick-summary,
.live-score-panel,
.decision-queue-panel {
  margin: 0 22px 18px;
  border: 1px solid rgba(226, 181, 82, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(226, 181, 82, 0.14), transparent 34%),
    rgba(0, 0, 0, 0.18);
}

.packet-summary-bar,
.cadre-quick-summary,
.live-score-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  overflow: hidden;
  background-color: rgba(226, 181, 82, 0.22);
}

.packet-summary-bar article,
.cadre-quick-summary article,
.live-score-panel article {
  padding: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(5, 10, 5, 0.91);
}

.packet-summary-bar span,
.cadre-quick-summary span,
.live-score-panel span,
.decision-queue-panel span {
  display: block;
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.packet-summary-bar strong,
.cadre-quick-summary strong,
.live-score-panel strong,
.decision-queue-panel strong {
  display: block;
  margin-top: 3px;
  color: #fff9de;
  font-size: 1rem;
}

.packet-summary-bar article.complete strong,
.live-score-panel[data-result="strong"] [data-live-result] {
  color: #99f59d;
}

.live-score-panel[data-result="caution"] [data-live-result] {
  color: #ffcf69;
}

.live-score-panel[data-result="review"] [data-live-result] {
  color: #ff746c;
}

.form-step-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 22px 18px;
}

.form-step-controls button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 8px 10px;
  text-align: left;
}

.form-step-controls button.active,
.form-step-controls button:hover,
.form-step-controls button:focus-visible {
  border-color: rgba(255, 213, 112, 0.62);
  color: #fff9de;
  background: rgba(226, 181, 82, 0.12);
  outline: none;
}

.form-step-controls button span,
.step-position-chip {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(226, 181, 82, 0.16);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
}

.form-step-controls button strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-mode .side-panel .section-nav {
  display: none;
}

.wizard-mode form {
  padding-top: 0;
}

.wizard-mode .form-section[hidden] {
  display: none;
}

.wizard-mode .active-form-step {
  min-height: 420px;
  animation: wizardFade 160ms ease;
}

.wizard-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.wizard-actions .primary-button,
.wizard-actions .secondary-button {
  min-height: 42px;
}

@keyframes wizardFade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-position-chip {
  justify-self: end;
  width: auto;
  padding: 0 9px;
  white-space: nowrap;
}

.compact-title-section > .section-heading {
  padding-top: 12px;
  padding-bottom: 12px;
}

.compact-title-section > .section-heading p {
  margin-top: 0;
}

.dashboard-tab-note {
  align-self: center;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.decision-queue-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.decision-queue-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.decision-queue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.decision-queue-list article {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(226, 181, 82, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.decision-queue-list article:hover,
.decision-queue-list article:focus-visible {
  border-color: rgba(255, 213, 112, 0.58);
  background: rgba(226, 181, 82, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.decision-queue-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.danger-button.confirming {
  border-color: rgba(255, 116, 108, 0.7);
  color: #fff;
  background: rgba(120, 25, 20, 0.5);
}

.logo-only-chip {
  padding: 6px;
}

.logo-only-chip img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(226, 181, 82, 0.3));
}

.dashboard-compact .side-panel {
  gap: 12px;
}

.dashboard-compact .brand-block {
  padding-bottom: 10px;
}

.dashboard-compact .brand-mark {
  width: 46px;
  height: 46px;
}

.dashboard-compact .progress-wrap,
.dashboard-compact .team-status-panel,
.dashboard-compact .section-nav {
  padding-bottom: 10px;
}

.dashboard-compact .team-status-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-compact .team-status-card {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 46px;
  padding: 7px;
}

.dashboard-compact .team-status-card img {
  width: 32px;
  height: 32px;
}

.dashboard-compact .team-status-card div {
  grid-template-columns: 1fr;
  gap: 3px;
}

.dashboard-compact .team-status-card span {
  min-width: 0;
  width: max-content;
  padding: 3px 7px;
  font-size: 0.72rem;
}

.dashboard-compact .section-nav {
  grid-template-columns: 1fr 1fr;
}

.dashboard-compact .section-nav a {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 8px;
}

.dashboard-compact .section-nav .nav-copy span {
  display: none;
}

.dashboard-compact .nav-count {
  grid-column: 2;
  justify-self: start;
}

.dashboard-summary-label {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.show-more-button {
  justify-self: center;
  margin-top: 2px;
}

.gear-chip-row span {
  padding: 8px 11px;
  border: 1px solid rgba(226, 181, 82, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gear-chip-row span.complete {
  border-color: rgba(142, 226, 142, 0.52);
  color: #8ee28e;
  background: rgba(13, 38, 18, 0.48);
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 0 18px;
  background: linear-gradient(135deg, var(--gold), #f3ce74 46%, #9f6f20);
  color: #171408;
  box-shadow: 0 10px 24px rgba(226, 181, 82, 0.22);
}

.primary-button:hover {
  background: linear-gradient(135deg, #f0c765, #ffe098 48%, #b77d25);
}

.secondary-button {
  padding: 0 14px;
  border: 1px solid rgba(226, 181, 82, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.secondary-button:hover {
  background: rgba(226, 181, 82, 0.13);
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.icon-button {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1;
}

.submit-bar {
  position: fixed;
  right: max(16px, calc((100vw - min(1240px, calc(100% - 32px))) / 2));
  bottom: 16px;
  left: calc(max(16px, (100vw - min(1240px, calc(100% - 32px))) / 2) + min(320px, 24vw) + 18px);
  z-index: 8;
  padding: 12px 14px;
  border: 1px solid rgba(226, 181, 82, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(226, 181, 82, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(12, 17, 10, 0.94);
  box-shadow: var(--glow), var(--shadow);
  backdrop-filter: blur(12px);
}

.submit-bar div {
  display: grid;
  gap: 3px;
}

.submit-bar span {
  color: var(--muted);
  font-size: 0.86rem;
}

dialog {
  width: min(860px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(6, 8, 6, 0.62);
  backdrop-filter: blur(4px);
}

.dialog-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.review-content {
  display: grid;
  gap: 14px;
  max-height: 58vh;
  overflow: auto;
  padding: 18px 20px;
}

.review-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.review-section h3 {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(226, 181, 82, 0.12);
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(160px, 230px) minmax(0, 1fr);
}

.review-grid div {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.review-grid div:nth-child(odd) {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.review-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.dialog-actions {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.collection-panel {
  display: grid;
  gap: 16px;
  padding: 20px 22px 104px;
}

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

.perfect-score-tile {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(226, 181, 82, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 207, 105, 0.18), transparent 45%),
    rgba(0, 0, 0, 0.2);
}

.perfect-score-tile span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.perfect-score-tile strong {
  color: #fff9de;
  font-size: 2.2rem;
  line-height: 1;
}

.perfect-score-tile p {
  margin: 0;
  color: var(--amber);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.operations-tile,
.dashboard-utility {
  border: 1px solid rgba(226, 181, 82, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 0%, rgba(226, 181, 82, 0.12), transparent 42%),
    rgba(0, 0, 0, 0.18);
}

.operations-tile {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
}

.operations-tile span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operations-tile strong {
  color: #fff9de;
  font-size: 2rem;
  line-height: 1;
}

.operations-tile p {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.operations-tile.caution {
  border-color: rgba(255, 213, 112, 0.38);
}

.operations-tile.caution p {
  color: #ffd56f;
}

.operations-tile.fail {
  border-color: rgba(255, 116, 108, 0.34);
}

.operations-tile.fail p {
  color: #ff9a92;
}

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

.command-summary-grid article {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(226, 181, 82, 0.25);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 0%, rgba(226, 181, 82, 0.16), transparent 42%),
    rgba(0, 0, 0, 0.2);
}

.command-summary-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.command-summary-grid strong {
  color: #fff9de;
  font-size: 1.8rem;
  line-height: 1;
}

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

.collection-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.collection-toolbar select,
.collection-toolbar input {
  width: 100%;
}

.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 213, 112, 0.3);
  border-radius: 8px;
  background: rgba(226, 181, 82, 0.08);
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.active-filter-bar button {
  min-height: 30px;
  border: 1px solid rgba(226, 181, 82, 0.28);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.26);
  color: #fff9de;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
}

.file-import-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.decision-row {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.decision-row label,
.compact-decision {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-decision {
  margin-top: 12px;
}

.missing-warning {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 207, 105, 0.38);
  border-radius: 8px;
  background: rgba(255, 207, 105, 0.08);
  color: #ffcf69;
  font-size: 0.84rem;
  font-weight: 900;
}

.candidate-lookup-panel {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: -2px 22px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 181, 82, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(226, 181, 82, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.18);
}

.candidate-lookup-panel img {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
}

.candidate-lookup-panel strong {
  color: #fff9de;
}

.candidate-lookup-panel span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.master-shell .brand-mark {
  border-radius: 50%;
}

.master-card {
  border-color: rgba(226, 181, 82, 0.3);
}

.packet-page {
  color: #111;
  background: #fff;
  padding: 32px;
  font-family: Arial, Helvetica, sans-serif;
}

.packet-page header {
  display: flex;
  gap: 18px;
  align-items: center;
  border-bottom: 2px solid #111;
  padding-bottom: 16px;
}

.packet-page header img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.packet-page h1 {
  margin: 0;
  font-size: 28px;
}

.packet-page p {
  margin: 0 0 4px;
  font-weight: 800;
  text-transform: uppercase;
}

.packet-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  margin-top: 20px;
}

.packet-profile > img,
.packet-profile > div {
  width: 220px;
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px solid #222;
  object-fit: cover;
}

.packet-profile table {
  width: 100%;
  border-collapse: collapse;
}

.packet-profile th,
.packet-profile td {
  border: 1px solid #333;
  padding: 9px;
  text-align: left;
}

.packet-profile th {
  width: 180px;
  background: #eee;
}

.rule-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -2px 22px 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 207, 105, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(226, 181, 82, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.16);
}

.rule-callout strong {
  color: var(--amber);
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.rule-callout span {
  color: rgba(244, 241, 230, 0.84);
  font-size: 0.9rem;
  line-height: 1.35;
}

.dashboard-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.dashboard-tabs button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-tabs button.active {
  border-color: rgba(255, 207, 105, 0.46);
  color: var(--amber);
  background: rgba(226, 181, 82, 0.12);
}

[data-dashboard-panel][hidden] {
  display: none !important;
}

.dashboard-utility {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dashboard-utility > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.dashboard-utility h3 {
  color: #fff9de;
}

.ranking-board {
  display: grid;
  gap: 8px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 58px minmax(92px, auto);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(226, 181, 82, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ranking-row > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(226, 181, 82, 0.16);
  color: var(--amber);
  font-weight: 950;
}

.ranking-row div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ranking-row strong {
  overflow: hidden;
  color: #fff9de;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row small {
  color: var(--muted);
  font-weight: 800;
}

.ranking-row b {
  color: var(--amber);
  font-size: 1.15rem;
  text-align: right;
}

.ranking-row em {
  justify-self: end;
  border: 1px solid rgba(142, 226, 142, 0.28);
  border-radius: 999px;
  padding: 5px 9px;
  color: #8ee28e;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.ranking-row.removed em {
  border-color: rgba(255, 116, 108, 0.34);
  color: #ff746c;
}

.compare-toggle {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--amber);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--gold);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.comparison-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 181, 82, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.comparison-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.comparison-head img,
.comparison-head .candidate-photo-placeholder {
  width: 58px;
  height: 58px;
  min-height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.comparison-head strong,
.comparison-head span {
  display: block;
}

.comparison-head strong {
  color: #fff9de;
}

.comparison-head span {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 900;
}

.comparison-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.comparison-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(226, 181, 82, 0.12);
}

.comparison-card dt {
  color: var(--muted);
  font-weight: 900;
}

.comparison-card dd {
  margin: 0;
  color: #fff9de;
  font-weight: 900;
  text-align: right;
}

.roster-table {
  overflow: auto;
}

.roster-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.roster-table th,
.roster-table td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(226, 181, 82, 0.14);
  text-align: left;
}

.roster-table th {
  color: var(--amber);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.roster-table td {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

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

.candidate-record,
.collection-record,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 0%, rgba(226, 181, 82, 0.14), transparent 40%),
    var(--surface);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.candidate-record {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.candidate-card-top {
  display: grid;
  grid-template-columns: clamp(160px, 22vw, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.candidate-visual-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(58px, 6vw, 76px);
  gap: 10px;
  align-items: start;
}

.candidate-photo-frame {
  min-height: 176px;
  overflow: hidden;
  border: 1px solid rgba(226, 181, 82, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 12%, rgba(226, 181, 82, 0.26), transparent 46%),
    rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.34);
}

.candidate-photo-button {
  position: relative;
  width: 100%;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.candidate-photo-button:hover,
.candidate-photo-button:focus-visible {
  border-color: rgba(255, 213, 112, 0.9);
  box-shadow:
    0 0 0 2px rgba(255, 213, 112, 0.18),
    0 0 26px rgba(226, 181, 82, 0.24),
    inset 0 0 32px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
  outline: none;
}

.candidate-photo-button span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 213, 112, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.candidate-photo-button:hover span,
.candidate-photo-button:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

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

.candidate-photo-placeholder {
  height: 100%;
  min-height: 176px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-logo-frame {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(226, 181, 82, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(226, 181, 82, 0.16), transparent 64%),
    rgba(0, 0, 0, 0.28);
}

.team-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-logo-frame span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.candidate-card-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.candidate-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.candidate-card-stats div {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(226, 181, 82, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.candidate-card-stats span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.candidate-card-stats strong {
  color: #fff9de;
  font-size: 1.25rem;
}

.collection-record {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-color: rgba(226, 181, 82, 0.2);
  background:
    linear-gradient(90deg, rgba(226, 181, 82, 0.08), transparent),
    rgba(0, 0, 0, 0.18);
  box-shadow: none;
}

.candidate-record header,
.collection-record header,
.record-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.candidate-record h3,
.collection-record h4 {
  margin-top: 2px;
  color: #fff9de;
}

.candidate-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.record-result {
  padding: 7px 10px;
  border: 1px solid rgba(226, 181, 82, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.record-result.missing {
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.record-meta {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.86rem;
}

.record-meta span {
  padding-right: 12px;
  border-right: 1px solid rgba(226, 181, 82, 0.22);
}

.record-meta span:last-child {
  border-right: 0;
}

.candidate-records {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 181, 82, 0.2);
}

.candidate-records > summary {
  color: var(--amber);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.candidate-record-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.collection-record details {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.collection-record summary {
  color: var(--amber);
  cursor: pointer;
  font-weight: 800;
}

.collection-record details .review-grid {
  margin-top: 12px;
}

.record-delete-button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 116, 108, 0.36);
  background: rgba(255, 116, 108, 0.08);
  color: var(--danger);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.record-delete-button:hover {
  background: rgba(255, 116, 108, 0.16);
}

.access-request-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(226, 181, 82, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.access-request-summary strong {
  color: var(--gold-bright);
  font-size: 2rem;
  line-height: 1;
}

.access-request-summary span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.access-request-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.access-request-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.45fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(226, 181, 82, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.access-request-card h4 {
  margin: 3px 0 4px;
  color: #fff9de;
  font-size: 1.2rem;
}

.access-request-card span,
.access-request-card label,
.compact-empty span {
  color: var(--muted);
}

.access-request-card label {
  display: grid;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.access-request-card button:disabled,
.access-request-card select:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.audit-log-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.audit-log-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 181, 82, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.audit-log-row strong {
  display: block;
  color: #fff9de;
}

.audit-log-row span,
.audit-log-row small {
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

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

.candidate-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
}

.candidate-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 20%, rgba(226, 181, 82, 0.18), transparent 34%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(9px);
}

.candidate-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border: 1px solid rgba(226, 181, 82, 0.48);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(226, 181, 82, 0.12), transparent 34%),
    rgba(8, 13, 7, 0.96);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.58),
    0 0 44px rgba(226, 181, 82, 0.16);
}

.candidate-modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 12px 12px 0 0;
  border: 1px solid rgba(226, 181, 82, 0.44);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff9de;
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.candidate-modal-close:hover,
.candidate-modal-close:focus-visible {
  border-color: rgba(255, 213, 112, 0.9);
  box-shadow: 0 0 20px rgba(226, 181, 82, 0.2);
  outline: none;
}

.candidate-modal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.7fr);
  gap: 24px;
  padding: 24px;
}

.candidate-modal-identity {
  position: sticky;
  top: 24px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.candidate-modal-photo {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(226, 181, 82, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 12%, rgba(226, 181, 82, 0.24), transparent 48%),
    rgba(0, 0, 0, 0.32);
  box-shadow:
    inset 0 0 44px rgba(0, 0, 0, 0.36),
    0 18px 40px rgba(0, 0, 0, 0.3);
}

.candidate-modal-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

.candidate-modal-team {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(226, 181, 82, 0.26);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.candidate-modal-team img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.candidate-modal-team span {
  color: var(--amber);
  font-size: 1.05rem;
  font-weight: 950;
  text-transform: uppercase;
}

.candidate-modal-file {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding-top: 12px;
}

.candidate-modal-file h2 {
  color: #fff9de;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.96;
}

.candidate-modal-meta {
  font-size: 0.92rem;
}

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

.candidate-modal-score-grid div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(226, 181, 82, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.candidate-modal-score-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.candidate-modal-score-grid strong {
  color: #fff9de;
  font-size: 1.25rem;
}

.candidate-modal-file .decision-row {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 207, 105, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(226, 181, 82, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.22);
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.candidate-modal-file .decision-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 207, 105, 0.28);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(2, 7, 2, 0.86);
  color: #fff9de;
  font-size: 1rem;
  font-weight: 900;
}

.candidate-modal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.candidate-modal-tabs button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.candidate-modal-tabs button.active {
  border-color: rgba(255, 207, 105, 0.48);
  background: rgba(226, 181, 82, 0.13);
  color: var(--amber);
}

.candidate-modal-sections {
  display: grid;
  gap: 12px;
}

.candidate-modal-tab-panel {
  display: grid;
  gap: 12px;
}

.candidate-modal-tab-panel[hidden] {
  display: none !important;
}

.candidate-modal-record {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(226, 181, 82, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(226, 181, 82, 0.08), transparent),
    rgba(0, 0, 0, 0.18);
}

.candidate-modal-record header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.candidate-modal-record h3 {
  color: #fff9de;
}

.modal-review-grid {
  margin-top: 0;
}

.empty-state {
  display: grid;
  gap: 4px;
  padding: 22px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  body {
    background-position: center top;
    background-size: cover;
  }

  .hub-page {
    padding: 16px;
  }

  .hub-shell {
    width: 100%;
  }

  .candidate-hub .hub-options,
  .cadre-hub .hub-options {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .cadre-tool-groups {
    grid-template-columns: 1fr;
  }

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

  .collection-toolbar,
  .perfect-score-grid,
  .operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-modal-layout {
    grid-template-columns: 1fr;
  }

  .candidate-modal-identity {
    position: static;
    grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 1fr);
    align-items: stretch;
  }

  .candidate-modal-photo,
  .candidate-modal-photo img {
    min-height: 300px;
  }

  .candidate-modal-team {
    align-content: center;
  }

  .candidate-modal-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page {
    place-items: stretch;
    padding: 16px;
    background-position: center;
  }

  .home-page::after {
    inset: 24px 18px auto auto;
    width: min(360px, 46vw);
    opacity: 0.24;
  }

  .home-page::before {
    width: 100vw;
  }

  .home-page .portal-shell {
    min-height: calc(100vh - 32px);
    align-content: end;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .image-reveal {
    width: min(100% - 32px, 980px);
  }

  .image-reveal-frame {
    min-height: clamp(170px, 42vw, 320px);
  }

  .side-panel {
    position: static;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1fr);
    gap: 16px;
    align-items: start;
  }

  .brand-block {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .progress-wrap {
    padding: 0;
  }

  .team-status-panel {
    padding: 0;
  }

  .section-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
  }

  .draft-status {
    grid-column: 1 / -1;
    padding-top: 12px;
  }

  .submit-bar {
    left: 16px;
  }
}

@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  .hub-page {
    padding: 12px;
  }

  .hub-topbar {
    justify-content: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hub-topbar a {
    min-width: 0;
    padding: 0 10px;
    text-align: center;
  }

  .hub-hero {
    padding: 18px;
  }

  .hub-hero h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .hub-status-row {
    gap: 7px;
  }

  .hub-status {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.68rem;
  }

  .hub-options {
    grid-template-columns: 1fr;
  }

  .hub-options .portal-option {
    min-height: 148px;
  }

  .candidate-card-top {
    grid-template-columns: 1fr;
  }

  .candidate-visual-stack {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .candidate-photo-frame,
  .candidate-photo-placeholder {
    min-height: 260px;
  }

  .candidate-card-stats {
    grid-template-columns: 1fr;
  }

  .collection-toolbar,
  .perfect-score-grid,
  .operations-grid {
    grid-template-columns: 1fr;
  }

  .command-summary-grid {
    grid-template-columns: 1fr;
  }

  .candidate-modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ranking-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .ranking-row em {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .active-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .candidate-modal {
    padding: 10px;
  }

  .candidate-modal-panel {
    max-height: calc(100vh - 20px);
  }

  .candidate-modal-layout {
    gap: 16px;
    padding: 16px;
  }

  .candidate-modal-identity {
    grid-template-columns: 1fr;
  }

  .candidate-modal-photo,
  .candidate-modal-photo img {
    min-height: 340px;
  }

  .candidate-modal-file h2 {
    font-size: clamp(2rem, 13vw, 3.15rem);
  }

  .candidate-modal-score-grid {
    grid-template-columns: 1fr;
  }

  .home-page {
    padding: 12px;
    background-position: center top;
  }

  .home-page::after {
    inset: 18px 12px auto auto;
    width: min(230px, 56vw);
    opacity: 0.2;
  }

  .home-page .portal-shell {
    min-height: calc(100vh - 24px);
    padding: 0;
    gap: 20px;
  }

  .home-page .portal-hero h1 {
    font-size: clamp(3rem, 17vw, 5.25rem);
  }

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

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

  .score-outcome-panel,
  .headshot-field {
    grid-template-columns: 1fr;
  }

  .score-outcome-panel,
  .event-summary-grid,
  .gear-chip-row {
    margin-right: 14px;
    margin-left: 14px;
  }

  .hub-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hub-hero-mark {
    width: 72px;
    height: 72px;
  }

  .hub-dual-mark {
    width: 92px;
    height: 74px;
  }

  .tool-group-heading {
    display: none;
  }

  .image-reveal {
    width: calc(100% - 18px);
    margin: 9px auto 12px;
  }

  .image-reveal-frame {
    min-height: 220px;
    background-position: center top;
  }

  .app-shell {
    width: calc(100% - 18px);
    margin: 0 auto 9px;
  }

  .side-panel {
    display: block;
    padding: 14px;
  }

  .brand-block {
    grid-template-columns: 54px 1fr;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .progress-wrap {
    padding: 14px 0;
  }

  .team-status-panel {
    padding: 0 0 14px;
  }

  .section-nav {
    grid-template-columns: 1fr 1fr;
  }

  .section-nav a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nav-count {
    grid-column: 2;
    width: max-content;
  }

  .draft-status {
    padding-top: 14px;
  }

  .form-header,
  .submit-bar,
  .dialog-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-header {
    position: static;
    padding: 16px;
  }

  .intel-strip {
    grid-template-columns: 1fr;
  }

  .intel-strip div {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 11px 14px;
  }

  .rule-callout {
    align-items: flex-start;
    flex-direction: column;
    margin: -2px 14px 16px;
  }

  .rule-callout strong {
    white-space: normal;
  }

  .dashboard-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  form {
    padding: 16px 14px 132px;
  }

  .collection-panel {
    padding: 16px 14px 132px;
  }

  .field-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .access-request-card {
    grid-template-columns: 1fr;
  }

  .access-request-actions {
    justify-content: flex-start;
  }

  .field-grid {
    gap: 14px;
    padding: 15px;
  }

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

  .section-status {
    grid-column: 2;
    width: max-content;
  }

  .location-row,
  .file-drop,
  .score-event-grid {
    grid-template-columns: 1fr;
  }

  .file-icon {
    display: none;
  }

  .submit-bar {
    right: 9px;
    bottom: 9px;
    left: 9px;
  }

  .submit-bar .primary-button {
    width: 100%;
  }

  .next-step-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .next-step-bar .button-link {
    justify-content: center;
    width: 100%;
  }

  .form-checklist-card,
  .evaluator-confirmation-card {
    align-items: stretch;
    flex-direction: column;
    margin-right: 14px;
    margin-left: 14px;
  }

  .form-checklist-card > b,
  .evaluator-flow {
    justify-content: flex-start;
  }

  .dashboard-preset-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-preset-row button {
    width: 100%;
  }

  .role-legend-panel {
    grid-template-columns: 1fr;
    margin-right: 14px;
    margin-left: 14px;
  }

  .packet-summary-bar,
  .cadre-quick-summary,
  .live-score-panel,
  .form-step-controls,
  .decision-queue-panel {
    margin-right: 14px;
    margin-left: 14px;
  }

  .packet-summary-bar,
  .cadre-quick-summary,
  .live-score-panel,
  .form-step-controls,
  .decision-queue-list {
    grid-template-columns: 1fr;
  }

  .dashboard-tab-note {
    width: 100%;
    margin-left: 0;
  }

  .admin-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-tabs button {
    width: 100%;
  }

  .review-grid div:nth-child(odd) {
    border-bottom: 0;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .image-reveal,
  .side-panel,
  .form-header,
  .intel-strip,
  .perfect-score-grid,
  .operations-grid,
  .collection-toolbar,
  .active-filter-bar,
  .ranking-board,
  .comparison-panel,
  .collection-list,
  .submit-bar,
  .dialog-actions,
  .icon-button {
    display: none;
  }

  .app-shell,
  .form-panel,
  dialog {
    display: block;
    width: 100%;
    margin: 0;
    box-shadow: none;
    border: 0;
  }

  .collection-panel {
    padding: 0;
  }

  .dashboard-utility {
    display: none;
    border: 0;
    padding: 0;
    background: #fff;
  }

  .roster-panel {
    display: grid;
  }

  .roster-panel h3,
  .roster-panel .eyebrow,
  .roster-table th,
  .roster-table td {
    color: #111;
  }

  .roster-table {
    overflow: visible;
  }

  .roster-table table {
    min-width: 0;
  }

  .roster-table th,
  .roster-table td {
    border-bottom: 1px solid #ccc;
  }
}

/* Final override layer for the workflow polish pass. */
.home-entry-footer {
  display: grid;
  grid-template-columns: 1fr auto;
}

.home-entry-footer small {
  grid-column: 1 / -1;
}

.home-request-access-button {
  border: 0;
  padding: 0;
  color: var(--amber);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.compact-chrome .form-header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.wizard-mode .form-step-controls,
.dashboard-command-mode .collection-toolbar,
.admin-zoned .admin-tabs {
  position: sticky;
  top: 70px;
  z-index: 18;
  background: rgba(5, 9, 5, 0.93);
  backdrop-filter: blur(10px);
}

.candidate-primary-actions,
.final-review-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.master-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-list-density .candidate-card-stats,
.dashboard-list-density .candidate-records,
.dashboard-list-density .compare-toggle {
  display: none;
}

@media (max-width: 720px) {
  .compact-chrome .form-header,
  .wizard-mode .form-step-controls,
  .dashboard-command-mode .collection-toolbar,
  .admin-zoned .admin-tabs {
    position: static;
  }

  .compact-chrome .form-header {
    width: auto;
    margin: 0 0 14px;
    padding: 14px;
  }

  .compact-chrome .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-chrome .header-actions > *,
  .compact-chrome .header-actions .secondary-button,
  .compact-chrome .header-actions .button-link,
  .compact-chrome .export-menu summary {
    width: 100%;
    min-width: 0;
  }

  .compact-chrome .export-menu div {
    left: 0;
    right: auto;
    width: min(220px, calc(100vw - 36px));
  }

  .master-pipeline,
  .hub-continue-panel {
    grid-template-columns: 1fr;
  }
}
