/* Scheduler controls isolated from broad theme changes. */
.arke-nav-label {
  min-width: 0;
}

/* Flight Chief certification readiness matrix */
.certification-tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid #cfe2f4;
  border-radius: 24px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef7ff 58%, #f7fcfa 100%);
  box-shadow: 0 16px 38px rgba(37, 99, 235, .08);
}

.certification-tracker-header h2 {
  margin: 4px 0 7px;
}

.certification-tracker-header p {
  max-width: 780px;
  margin: 0;
  color: #5c6878;
  line-height: 1.55;
}

.certification-save-state {
  display: grid;
  min-width: 220px;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid #cbd9e7;
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
}

.certification-save-state strong {
  color: #24445f;
  font-size: 13px;
}

.certification-save-state span {
  color: #718095;
  font-size: 10px;
  line-height: 1.35;
}

.certification-save-state[data-state="pending"] { border-color: #a9c2db; background: #f4f8fc; }
.certification-save-state[data-state="saving"] { border-color: #e5a62c; background: #fffaf0; }
.certification-save-state[data-state="saved"] { border-color: #78bea0; background: #f1faf5; }
.certification-save-state[data-state="error"] { border-color: #e99a9d; background: #fff5f5; }

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

.certification-metrics .metric-card {
  min-height: 122px;
  padding: 17px 19px;
  border: 1px solid transparent;
  border-radius: 17px;
}

.certification-metrics .metric-card:nth-child(1) { border-color: #bfdbfe; background: #eff6ff; }
.certification-metrics .metric-card:nth-child(2) { border-color: #bbf7d0; background: #f0fdf4; }
.certification-metrics .metric-card:nth-child(3) { border-color: #fde68a; background: #fffbeb; }
.certification-metrics .metric-card:nth-child(4) { border-color: #fecaca; background: #fff1f2; }
.certification-metrics .metric-card:nth-child(1) p { color: #1d4ed8; }
.certification-metrics .metric-card:nth-child(2) p { color: #168052; }
.certification-metrics .metric-card:nth-child(3) p { color: #b45309; }
.certification-metrics .metric-card:nth-child(4) p { color: #be123c; }
.certification-metrics .metric-card h3 { font-size: 11px; }
.certification-metrics .metric-card p { margin-top: 8px; font-size: 30px; }
.certification-metrics .metric-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

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

.certification-legend-code {
  display: inline-grid;
  min-width: 26px;
  min-height: 26px;
  margin-right: 5px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--marker-color, #475569);
  font-weight: 900;
}

.certification-filters {
  grid-template-columns: 1.35fr repeat(3, minmax(150px, .8fr)) auto;
  align-items: end;
}

.certification-matrix-card,
.certification-coverage-card {
  overflow: hidden;
}

.certification-matrix-wrap,
.certification-coverage-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dde5ed;
  border-radius: 16px;
}

.certification-matrix-table,
.certification-coverage-table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}

.certification-matrix-table th,
.certification-matrix-table td {
  width: 82px;
  min-width: 82px;
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}

.certification-matrix-table th:first-child,
.certification-matrix-table td:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 240px;
  min-width: 240px;
  text-align: left;
}

.certification-matrix-table th:first-child {
  z-index: 4;
}

.certification-matrix-table th:nth-child(2),
.certification-matrix-table td:nth-child(2) {
  width: 110px;
  min-width: 110px;
}

.certification-matrix-table thead th {
  height: 96px;
  white-space: nowrap;
}

.certification-matrix-table thead th:not(:first-child):not(:nth-child(2)) > span {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.certification-person-cell {
  display: grid;
  gap: 3px;
  background: #fff;
}

.certification-person-cell > strong {
  color: #182332;
  font-size: 12px;
}

.certification-person-cell > span {
  color: #7a8798;
  font-size: 9px;
}

.certification-person-cell .scheduler-skill-level {
  width: fit-content;
  margin-top: 2px;
}

.certification-matrix-cell {
  transition: background .18s ease;
}

.certification-matrix-cell.is-current { background: #f0f9f4; }
.certification-matrix-cell.is-expiring { background: #fff8e8; }
.certification-matrix-cell.is-expired { background: #fff0f0; }

.certification-cell-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.certification-marker-button,
.certification-detail-button {
  min-width: 0;
  border: 1px solid #ccd8e4;
  color: #26374a;
  background: #fff;
  box-shadow: none;
}

.certification-marker-button {
  width: 42px;
  height: 38px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

.certification-marker-button:hover,
.certification-marker-button:focus-visible {
  border-color: #3976a8;
  color: #174f7d;
  background: #eef7ff;
}

.certification-detail-button {
  width: 24px;
  height: 30px;
  padding: 0;
  border-color: transparent;
  border-radius: 8px;
  color: #7a8796;
  font-size: 9px;
}

.certification-detail-button:hover,
.certification-detail-button:focus-visible {
  color: #234d70;
  background: #edf4fa;
}

.certification-tail-input {
  width: 62px;
  height: 38px;
  padding: 0 6px;
  border: 1px solid #ccd8e4;
  border-radius: 10px;
  color: #26374a;
  background: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.certification-tail-input:hover,
.certification-tail-input:focus-visible {
  border-color: #3976a8;
  color: #174f7d;
  background: #eef7ff;
  outline: none;
}

.certification-matrix-cell > small {
  display: block;
  margin-top: 4px;
  color: #8290a1;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.certification-matrix-cell.is-expired > small { color: #b4232c; }
.certification-matrix-cell.is-expiring > small { color: #9a6500; }
.certification-matrix-cell.is-current > small { color: #14754b; }

.certification-coverage-table th,
.certification-coverage-table td {
  min-width: 72px;
  padding: 11px 9px;
  text-align: center;
}

.certification-coverage-table th:first-child,
.certification-coverage-table td:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 120px;
  background: #fff;
  text-align: left;
}

.certification-coverage-table th:first-child { z-index: 3; background: #f7f9fb; }

.certification-coverage-table td strong,
.certification-coverage-table td small {
  display: block;
}

.certification-coverage-table td small {
  margin-top: 2px;
  color: #7b8796;
  font-size: 8px;
}

.certification-dialog {
  width: min(680px, calc(100vw - 28px));
  max-width: 680px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.certification-dialog::backdrop {
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(3px);
}

.certification-dialog-card {
  background: #fff;
}

.certification-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e4e9ef;
}

.certification-dialog-header h3 {
  margin: 4px 0 0;
}

.certification-dialog-header > button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #536172;
  background: #f0f3f6;
  box-shadow: none;
  font-size: 21px;
}

.certification-dialog-body {
  padding: 22px 24px 24px;
}

.scheduler-status-select {
  min-width: 150px;
}

@media (max-width: 960px) {
  .certification-tracker-header {
    align-items: stretch;
    flex-direction: column;
  }

  .certification-save-state {
    min-width: 0;
  }

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

  .certification-filters,
  .certification-legend-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .certification-tracker-header {
    padding: 21px 18px;
    border-radius: 19px;
  }

  .certification-metrics,
  .certification-filters,
  .certification-legend-form {
    grid-template-columns: 1fr;
  }

  .certification-matrix-table th:first-child,
  .certification-matrix-table td:first-child {
    width: 190px;
    min-width: 190px;
  }

  .certification-dialog-header,
  .certification-dialog-body {
    padding-right: 17px;
    padding-left: 17px;
  }
}

/* Flight Chief leave accountability */
.leave-tracker-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f2744 0%, #164e63 100%);
  color: #fff;
}

.leave-tracker-header h2 { margin: 4px 0 8px; color: #fff; font-size: clamp(28px, 4vw, 42px); }
.leave-tracker-header p { max-width: 680px; margin: 0; color: rgba(255,255,255,.78); }
.leave-tracker-header .eyebrow { color: #7dd3fc; }
.leave-tracker-date-form { min-width: 300px; padding: 14px; border-radius: 15px; background: rgba(255,255,255,.1); }
.leave-tracker-date-form label { color: #fff; }
.leave-tracker-date-form input { min-width: 160px; background: #fff; }
.leave-tracker-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.leave-tracker-metrics .metric-card { min-height: 122px; padding: 16px 18px; border: 1px solid transparent; border-radius: 16px; }
.leave-tracker-metrics .metric-card:nth-child(1) { border-color: #fecaca; background: #fff1f2; }
.leave-tracker-metrics .metric-card:nth-child(2) { border-color: #ddd6fe; background: #f5f3ff; }
.leave-tracker-metrics .metric-card:nth-child(3) { border-color: #bbf7d0; background: #f0fdf4; }
.leave-tracker-metrics .metric-card:nth-child(4) { border-color: #bae6fd; background: #f0f9ff; }
.leave-tracker-metrics .metric-card h3 { font-size: 11px; }
.leave-tracker-metrics .metric-card p { margin-top: 8px; font-size: 30px; }
.leave-tracker-metrics .metric-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.leave-percentage-card .split-header strong { color: #0f766e; font-size: 30px; }
.leave-percentage-track { height: 14px; overflow: hidden; border-radius: 999px; background: #e7edf3; }
.leave-percentage-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #0f766e); transition: width .25s ease; }
.leave-week-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 10px; }
.leave-day-card { display: grid; gap: 5px; padding: 14px; border: 1px solid #dce4ec; border-radius: 14px; color: var(--ink); background: #f8fafc; text-decoration: none; }
.leave-day-card:hover { border-color: #7dd3fc; color: var(--ink); background: #f0f9ff; }
.leave-day-card.is-selected { border-color: #0f766e; box-shadow: inset 0 0 0 1px #0f766e; background: #f0fdfa; }
.leave-day-card > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.leave-day-card > strong { font-size: 16px; }
.leave-day-card > b { margin-top: 8px; color: #0f766e; font-size: 14px; }
.leave-day-card > small { color: var(--muted); }
.leave-roster-table-wrap { overflow-x: auto; }
.leave-empty-state { display: grid; justify-items: center; gap: 8px; padding: 46px 20px; color: var(--muted); text-align: center; }
.leave-empty-state strong { color: var(--ink); font-size: 18px; }

/* Flight Chief manning accountability */
.manning-tracker-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #172554 0%, #1d4ed8 100%);
}
.manning-tracker-header h2 { margin: 4px 0 8px; color: #fff; font-size: clamp(28px, 4vw, 42px); }
.manning-tracker-header p { max-width: 720px; margin: 0; color: rgba(255,255,255,.8); }
.manning-tracker-header .eyebrow { color: #bfdbfe; }
.manning-tracker-date-form { min-width: 300px; padding: 14px; border-radius: 15px; background: rgba(255,255,255,.12); }
.manning-tracker-date-form label { color: #fff; }
.manning-tracker-date-form input { min-width: 160px; background: #fff; }
.manning-tracker-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px;
}
.manning-tracker-metrics .metric-card { min-height: 122px; padding: 17px 19px; border: 1px solid transparent; border-radius: 17px; }
.manning-tracker-metrics .metric-card:nth-child(1) { border-color: #bfdbfe; background: #eff6ff; }
.manning-tracker-metrics .metric-card:nth-child(2) { border-color: #bbf7d0; background: #f0fdf4; }
.manning-tracker-metrics .metric-card:nth-child(3) { border-color: #fecaca; background: #fff1f2; }
.manning-tracker-metrics .metric-card:nth-child(4) { border-color: #ddd6fe; background: #f5f3ff; }
.manning-tracker-metrics .metric-card:nth-child(1) p { color: #1d4ed8; }
.manning-tracker-metrics .metric-card:nth-child(2) p { color: #168052; }
.manning-tracker-metrics .metric-card:nth-child(3) p { color: #be123c; }
.manning-tracker-metrics .metric-card:nth-child(4) p { color: #6d28d9; }
.manning-tracker-metrics .metric-card h3 { font-size: 11px; }
.manning-tracker-metrics .metric-card p { margin-top: 8px; font-size: 30px; }
.manning-tracker-metrics .metric-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.manning-percentage-card .split-header strong { color: #1d4ed8; font-size: 30px; }
.manning-percentage-track { height: 14px; overflow: hidden; border-radius: 999px; background: #e7edf3; }
.manning-percentage-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #60a5fa, #1d4ed8); transition: width .25s ease; }
.manning-week-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 10px; }
.manning-day-card { display: grid; gap: 5px; padding: 14px; border: 1px solid #dce4ec; border-radius: 14px; color: var(--ink); background: #f8fafc; text-decoration: none; }
.manning-day-card:hover { border-color: #93c5fd; color: var(--ink); background: #eff6ff; }
.manning-day-card.is-selected { border-color: #2563eb; box-shadow: inset 0 0 0 1px #2563eb; background: #eff6ff; }
.manning-day-card > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.manning-day-card > strong { font-size: 16px; }
.manning-day-card > b { margin-top: 8px; color: #1d4ed8; font-size: 14px; }
.manning-day-card > small { color: var(--muted); }
.manning-shift-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.manning-shift-grid article { display: grid; gap: 7px; padding: 18px; border: 1px solid #dce4ec; border-radius: 15px; background: #f8fafc; }
.manning-shift-grid span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.manning-shift-grid strong { color: #1d4ed8; font-size: 28px; }
.manning-shift-grid small { color: var(--muted); }
.manning-tracker-metrics .metric-card.tier-good { border-color: #bbf7d0; background: #f0fdf4; }
.manning-tracker-metrics .metric-card.tier-caution { border-color: #fde68a; background: #fffbeb; }
.manning-tracker-metrics .metric-card.tier-critical { border-color: #fecaca; background: #fff1f2; }
.manning-tracker-metrics .metric-card.tier-good p { color: #168052; }
.manning-tracker-metrics .metric-card.tier-caution p { color: #b45309; }
.manning-tracker-metrics .metric-card.tier-critical p { color: #be123c; }
.manning-percentage-card.tier-good .split-header strong { color: #168052; }
.manning-percentage-card.tier-caution .split-header strong { color: #b45309; }
.manning-percentage-card.tier-critical .split-header strong { color: #be123c; }
.manning-percentage-card.tier-good .manning-percentage-track span { background: linear-gradient(90deg, #4ade80, #168052); }
.manning-percentage-card.tier-caution .manning-percentage-track span { background: linear-gradient(90deg, #fbbf24, #b45309); }
.manning-percentage-card.tier-critical .manning-percentage-track span { background: linear-gradient(90deg, #f87171, #be123c); }
.manning-day-card.tier-good { border-color: #bbf7d0; background: #f0fdf4; }
.manning-day-card.tier-caution { border-color: #fde68a; background: #fffbeb; }
.manning-day-card.tier-critical { border-color: #fecaca; background: #fff1f2; }
.manning-day-card.tier-good > b { color: #168052; }
.manning-day-card.tier-caution > b { color: #b45309; }
.manning-day-card.tier-critical > b { color: #be123c; }
.manning-shift-grid article.tier-good { border-color: #bbf7d0; background: #f0fdf4; }
.manning-shift-grid article.tier-caution { border-color: #fde68a; background: #fffbeb; }
.manning-shift-grid article.tier-critical { border-color: #fecaca; background: #fff1f2; }
.manning-shift-grid article.tier-good strong { color: #168052; }
.manning-shift-grid article.tier-caution strong { color: #b45309; }
.manning-shift-grid article.tier-critical strong { color: #be123c; }
.manning-roster-table-wrap { overflow-x: auto; }
.manning-empty-state { display: grid; justify-items: center; gap: 8px; padding: 46px 20px; color: var(--muted); text-align: center; }
.manning-empty-state strong { color: var(--ink); font-size: 18px; }

/* Credential expiration accountability */
.credential-tracker-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 24px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #3b0764, #7e22ce); }
.credential-tracker-header h2 { margin: 4px 0 8px; color: #fff; font-size: clamp(28px, 4vw, 42px); }
.credential-tracker-header p { max-width: 720px; margin: 0; color: rgba(255,255,255,.8); }
.credential-tracker-header .eyebrow { color: #e9d5ff; }
.credential-reminder-key { display: grid; gap: 5px; min-width: 285px; padding: 16px 18px; border-radius: 15px; background: rgba(255,255,255,.12); }
.credential-reminder-key span { font-size: 16px; font-weight: 800; }
.credential-reminder-key small { color: rgba(255,255,255,.72); }
.credential-tracker-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px;
}
.credential-tracker-metrics .metric-card { min-height: 122px; padding: 17px 19px; border: 1px solid transparent; border-radius: 17px; }
.credential-tracker-metrics .metric-card:nth-child(1) { border-color: #bbf7d0; background: #f0fdf4; }
.credential-tracker-metrics .metric-card:nth-child(2) { border-color: #fde68a; background: #fffbeb; }
.credential-tracker-metrics .metric-card:nth-child(3) { border-color: #fecaca; background: #fff1f2; }
.credential-tracker-metrics .metric-card:nth-child(4) { border-color: #ddd6fe; background: #f5f3ff; }
.credential-tracker-metrics .metric-card:nth-child(1) p { color: #168052; }
.credential-tracker-metrics .metric-card:nth-child(2) p { color: #b45309; }
.credential-tracker-metrics .metric-card:nth-child(3) p { color: #be123c; }
.credential-tracker-metrics .metric-card:nth-child(4) p { color: #6d28d9; }
.credential-tracker-metrics .metric-card h3 { font-size: 11px; }
.credential-tracker-metrics .metric-card p { margin-top: 8px; font-size: 30px; }
.credential-tracker-metrics .metric-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.credential-table-wrap { overflow-x: auto; }
.credential-table { min-width: 940px; }
.credential-table input[type="date"] { min-width: 155px; }
.credential-status { display: block; width: fit-content; margin-top: 7px; padding: 4px 8px; border-radius: 999px; color: #334155; background: #e2e8f0; font-size: 11px; font-weight: 800; }
.credential-status.is-current { color: #166534; background: #dcfce7; }
.credential-status.is-upcoming { color: #92400e; background: #fef3c7; }
.credential-status.is-urgent, .credential-status.is-expired { color: #991b1b; background: #fee2e2; }
.credential-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.credential-profile-grid article { display: grid; gap: 7px; padding: 18px; border: 1px solid #dce4ec; border-radius: 15px; background: #f8fafc; }
.credential-profile-grid article > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.credential-profile-grid article > strong { font-size: 20px; }

/* Daily skill-level shift coverage */
.scheduler-skill-coverage { overflow: hidden; }
.scheduler-skill-coverage-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.scheduler-skill-coverage-legend span { padding: 5px 9px; border: 1px solid #dbe4ec; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.scheduler-skill-coverage-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid #dce4ec; border-radius: 15px; }
.scheduler-skill-coverage-table { width: 100%; min-width: 940px; border-collapse: separate; border-spacing: 0; background: #fff; }
.scheduler-skill-coverage-table th, .scheduler-skill-coverage-table td { padding: 11px 9px; border-right: 1px solid #e5eaf0; border-bottom: 1px solid #e5eaf0; text-align: center; vertical-align: middle; }
.scheduler-skill-coverage-table tr:last-child th, .scheduler-skill-coverage-table tr:last-child td { border-bottom: 0; }
.scheduler-skill-coverage-table th:last-child, .scheduler-skill-coverage-table td:last-child { border-right: 0; }
.scheduler-skill-coverage-table thead th { color: #fff; background: #172a43; }
.scheduler-skill-coverage-table thead th:first-child { width: 110px; text-align: left; }
.scheduler-skill-coverage-table thead th span, .scheduler-skill-coverage-table thead th strong { display: block; }
.scheduler-skill-coverage-table thead th span { color: #a9bdd3; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.scheduler-skill-coverage-table thead th strong { margin-top: 2px; font-size: 12px; }
.scheduler-skill-coverage-table tbody > tr > th { color: #26384e; background: #f6f8fb; font-size: 12px; text-align: left; }
.scheduler-skill-coverage-table .shift-days > th { box-shadow: inset 4px 0 0 #168b59; }
.scheduler-skill-coverage-table .shift-swings > th { box-shadow: inset 4px 0 0 #e28a00; }
.scheduler-skill-coverage-table .shift-mids > th { box-shadow: inset 4px 0 0 #d23832; }
.scheduler-skill-counts { display: grid; grid-template-columns: repeat(2, minmax(34px, 1fr)); gap: 5px; }
.scheduler-skill-counts span { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 4px 6px; border: 1px solid #d7e0e8; border-radius: 8px; background: #f8fafc; font-size: 10px; }
.scheduler-skill-counts span b { font-size: 9px; }
.scheduler-skill-counts span strong { font-size: 13px; }
.scheduler-skill-counts span[data-skill-level="3"], .scheduler-skill-coverage-legend span[data-skill-level="3"] { border-color: #bfe4d2; color: #14754b; background: #eaf8f1; }
.scheduler-skill-counts span[data-skill-level="5"], .scheduler-skill-coverage-legend span[data-skill-level="5"] { border-color: #e7c84b; color: #725300; background: #fff4b8; }
.scheduler-skill-counts span[data-skill-level="7"], .scheduler-skill-coverage-legend span[data-skill-level="7"] { border-color: #efaaa6; color: #a12721; background: #fde9e7; }
.scheduler-skill-counts span.is-zero { opacity: .42; }
.scheduler-skill-total th, .scheduler-skill-total td { background: #eef4fa !important; }
.scheduler-skill-total th { color: #142b47 !important; font-weight: 900; }

/* Leadership reports and Meeting Mode */
.reports-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); align-items: stretch; gap: 18px; padding: 26px; border: 1px solid #cadced; border-radius: 24px; background: linear-gradient(135deg, #f5fbff 0%, #f7f4ff 58%, #fff9ec 100%); box-shadow: 0 18px 40px rgb(30 56 84 / 9%); }
.reports-hero h2 { margin: 5px 0 8px; font-size: clamp(27px, 4vw, 42px); }
.reports-hero p { max-width: 800px; margin: 0; color: #5c6d80; font-size: 14px; line-height: 1.7; }
.reports-hero-actions { margin-top: 20px; }
.reports-primary-action { color: #fff !important; border-color: #173f69 !important; background: linear-gradient(135deg, #235c94, #173f69) !important; box-shadow: 0 9px 20px rgb(23 63 105 / 20%); }
.reports-live-brief { display: flex; flex-direction: column; justify-content: center; padding: 22px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 19px; background: rgb(255 255 255 / 78%); box-shadow: 0 10px 25px rgb(42 61 84 / 8%); }
.reports-live-brief > span { color: #718196; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.reports-live-brief > strong { margin-top: 8px; color: #1c334c; font-size: 19px; line-height: 1.25; }
.reports-live-brief > small { margin-top: 5px; color: #69798b; }
.reports-live-brief > div { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #dbe6f0; color: #344b63; font-size: 11px; font-weight: 800; }
.reports-live-brief > div b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #fff; background: #d4433c; }
.reports-meeting-mode { overflow: hidden; }
.reports-mode-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.reports-mode-card { position: relative; display: flex; min-height: 176px; flex-direction: column; padding: 16px; border: 1px solid #dce5ed; border-radius: 16px; color: #263a50; background: #fff; text-decoration: none; transition: .16s ease; }
.reports-mode-card:hover { transform: translateY(-2px); border-color: #9fc1e2; box-shadow: 0 10px 24px rgb(31 66 102 / 10%); }
.reports-mode-card.is-active { border-color: #2d6fa8; background: linear-gradient(145deg, #eef7ff, #fff); box-shadow: inset 0 0 0 1px #2d6fa8, 0 10px 24px rgb(31 66 102 / 10%); }
.reports-mode-card > span { color: #4677a5; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.reports-mode-card > strong { margin-top: 8px; font-size: 13px; line-height: 1.25; }
.reports-mode-card > small { margin-top: 8px; color: #748295; font-size: 10px; line-height: 1.45; }
.reports-mode-card > b { margin-top: auto; padding-top: 12px; color: #63778c; font-size: 9px; }
.reports-controls { display: grid; grid-template-columns: minmax(210px, .5fr) minmax(0, 1.5fr); align-items: end; gap: 24px; }
.reports-filter-form { display: grid; grid-template-columns: 1.2fr .9fr .8fr 1.1fr auto; align-items: end; gap: 10px; }
.reports-filter-form label { display: block; }
.reports-name-toggle { display: flex !important; min-height: 50px; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid #c8dcf4; border-radius: 16px; background: #fff; cursor: pointer; }
.reports-name-toggle input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; }
.reports-name-toggle span, .reports-name-toggle b, .reports-name-toggle small { display: block; }
.reports-name-toggle b { color: #23394f; font-size: 10px; }
.reports-name-toggle small { margin-top: 2px; color: #778797; font-size: 8px; }
.reports-metrics .metric-card { position: relative; overflow: hidden; border-top: 4px solid var(--report-tone); }
.reports-metrics .metric-card::after { content: ""; position: absolute; right: -18px; bottom: -24px; width: 82px; height: 82px; border-radius: 50%; background: color-mix(in srgb, var(--report-tone) 10%, #fff); }
.report-tone-green { --report-tone: #168052; background: #f0fdf4; }
.report-tone-blue { --report-tone: #2468a2; background: #eff6ff; }
.report-tone-amber { --report-tone: #d78200; background: #fffbeb; }
.report-tone-red { --report-tone: #c73932; background: #fff1f2; }
.reports-two-column { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 18px; }
.reports-action-list { display: grid; gap: 9px; }
.reports-action-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid #e0e6ed; border-radius: 13px; background: #fbfcfd; }
.reports-action-item > span { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 3px; border-radius: 50%; background: #6f8193; box-shadow: 0 0 0 4px #edf1f5; }
.reports-action-item strong, .reports-action-item small { display: block; }
.reports-action-item strong { color: #23394e; font-size: 11px; }
.reports-action-item small { margin-top: 3px; color: #6b7b8d; font-size: 10px; line-height: 1.45; }
.reports-action-item.is-critical { border-color: #f0c4c0; background: #fff5f4; }
.reports-action-item.is-critical > span { background: #c73932; box-shadow: 0 0 0 4px #fbe5e3; }
.reports-action-item.is-warning { border-color: #f0d7a5; background: #fffaf0; }
.reports-action-item.is-warning > span { background: #d78200; box-shadow: 0 0 0 4px #fff0d0; }
.reports-action-item.is-info > span { background: #2468a2; box-shadow: 0 0 0 4px #e2f0fc; }
.reports-action-item.is-ok > span { background: #168052; box-shadow: 0 0 0 4px #ddf3e9; }
.reports-pack-card ol { display: grid; gap: 8px; margin: 17px 0 0; padding-left: 22px; color: #34495f; font-size: 11px; }
.reports-pack-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.reports-pack-meta span { padding: 9px; border-radius: 10px; color: #718196; background: #f3f7fa; font-size: 8px; text-transform: uppercase; }
.reports-pack-meta b { display: block; margin-top: 3px; color: #253b51; font-size: 9px; text-transform: none; }
.reports-table-wrap { overflow-x: auto; border: 1px solid #dfe6ed; border-radius: 14px; }
.reports-daily-table { min-width: 780px; }
.reports-daily-table td, .reports-daily-table th { text-align: center; }
.reports-daily-table td:first-child, .reports-daily-table th:first-child { text-align: left; }
.reports-assessment { display: inline-flex; min-width: 58px; justify-content: center; padding: 4px 7px; border-radius: 999px; color: #116c45; background: #e6f6ef; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.reports-assessment.is-watch { color: #805400; background: #fff0c5; }
.reports-assessment.is-critical { color: #9f2d28; background: #fde6e4; }
.reports-shift-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.reports-shift-grid article { --shift-report-tone: #687b8e; display: flex; min-height: 136px; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid #dce5ed; border-top: 4px solid var(--shift-report-tone); border-radius: 15px; background: #fff; }
.reports-shift-grid article.is-days { --shift-report-tone: #168052; }
.reports-shift-grid article.is-swings { --shift-report-tone: #d78200; }
.reports-shift-grid article.is-mids { --shift-report-tone: #c73932; }
.reports-shift-grid span, .reports-shift-grid strong, .reports-shift-grid small { display: block; }
.reports-shift-grid article > div:first-child > span { color: var(--shift-report-tone); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.reports-shift-grid article > div:first-child > strong { margin-top: 5px; font-size: 25px; }
.reports-shift-grid article > div:first-child > small { color: #718092; font-size: 9px; }
.reports-skill-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.reports-skill-pills .scheduler-skill-level { margin-top: 0; }
.reports-readiness-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.reports-readiness-numbers span { padding: 11px 8px; border: 1px solid #e0e7ee; border-radius: 12px; color: #6d7d8e; background: #fafcfd; font-size: 8px; text-align: center; text-transform: uppercase; }
.reports-readiness-numbers b { display: block; margin-bottom: 4px; color: #223a51; font-size: 20px; }
.reports-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: #bfd5e8; background: linear-gradient(120deg, #f3f9ff, #fff); }
.reports-final-cta p { margin: 6px 0 0; color: #718093; }

@media (max-width: 1050px) {
  .reports-mode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reports-controls { grid-template-columns: 1fr; }
  .reports-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leave-tracker-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leave-week-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .manning-week-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .manning-shift-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 720px) {
  .reports-hero, .reports-two-column { grid-template-columns: 1fr; }
  .reports-mode-grid, .reports-filter-form, .reports-shift-grid { grid-template-columns: 1fr; }
  .reports-pack-meta, .reports-readiness-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reports-final-cta { align-items: flex-start; flex-direction: column; }
  .leave-tracker-header { align-items: stretch; flex-direction: column; padding: 20px; }
  .leave-tracker-date-form { min-width: 0; }
  .leave-tracker-date-form .button-row { align-items: stretch; flex-direction: column; }
  .leave-tracker-date-form input { width: 100%; }
  .leave-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manning-tracker-header { align-items: stretch; flex-direction: column; padding: 20px; }
  .manning-tracker-date-form { min-width: 0; }
  .manning-tracker-date-form .button-row { align-items: stretch; flex-direction: column; }
  .manning-tracker-date-form input { width: 100%; }
  .manning-week-grid, .manning-shift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manning-tracker-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .credential-tracker-header { align-items: stretch; flex-direction: column; padding: 20px; }
  .credential-reminder-key { min-width: 0; }
  .credential-tracker-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .credential-profile-grid { grid-template-columns: 1fr; }
  .scheduler-skill-coverage .split-header { align-items: flex-start; flex-direction: column; }
  .scheduler-skill-coverage-legend { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .manning-tracker-metrics { grid-template-columns: 1fr !important; }
  .credential-tracker-metrics { grid-template-columns: 1fr !important; }
}

@media (max-width: 520px) {
  .leave-tracker-metrics { grid-template-columns: 1fr; }
}

.scheduler-shift-request-panel {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid #b9d8ff;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #edf6ff 100%);
  box-shadow: inset 4px 0 0 #1787f7;
}

.scheduler-shift-request-panel[hidden] {
  display: none;
}

.scheduler-shift-request-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.scheduler-shift-request-heading h4 {
  margin: 4px 0 0;
  font-size: 24px;
}

.scheduler-current-shift {
  display: grid;
  gap: 3px;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid #c7dcf4;
  border-radius: 14px;
  background: #fff;
}

.scheduler-current-shift--days {
  border-color: #a9ddc6;
  color: #117b50;
  background: linear-gradient(135deg, #f4fcf8, #e4f7ed);
  box-shadow: inset 4px 0 0 #168b59;
}

.scheduler-current-shift--swings {
  border-color: #f1cf8b;
  color: #a96100;
  background: linear-gradient(135deg, #fffaf0, #fff0ce);
  box-shadow: inset 4px 0 0 #e28a00;
}

.scheduler-current-shift--mids {
  border-color: #efb7b2;
  color: #bd302c;
  background: linear-gradient(135deg, #fff8f7, #fde9e7);
  box-shadow: inset 4px 0 0 #d23832;
}

.scheduler-current-shift--unassigned {
  border-color: #d5dce5;
  color: #607084;
  background: linear-gradient(135deg, #fff, #f2f5f8);
  box-shadow: inset 4px 0 0 #8290a3;
}

.scheduler-current-shift[class*="scheduler-current-shift--"] span {
  color: currentColor;
  opacity: .78;
}

.scheduler-current-shift[class*="scheduler-current-shift--"] strong {
  color: currentColor;
}

.scheduler-current-shift span,
.scheduler-shift-request-help {
  color: #63758b;
  font-size: 13px;
}

.scheduler-shift-request-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scheduler-shift-request-grid > div {
  min-width: 0;
}

.scheduler-shift-request-grid select {
  width: 100%;
}

.scheduler-shift-request-help {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .scheduler-shift-request-panel {
    padding: 18px;
    border-radius: 17px;
  }

  .scheduler-shift-request-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .scheduler-current-shift {
    min-width: 0;
  }

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

.arke-nav-count {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  margin-left: auto;
  padding: 0 7px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #e5484d;
  box-shadow: 0 5px 14px rgba(197, 43, 49, .25);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.arke-nav-item.active .arke-nav-count {
  border-color: #f0f1f3;
}

.scheduler-new-requests-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #bfdbfe;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .09);
}

.scheduler-new-requests-card::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, #1687ff, #54b6ff);
}

.scheduler-new-requests-card [data-chief-request-row] {
  background: linear-gradient(90deg, rgba(22, 135, 255, .055), rgba(22, 135, 255, .015));
}

.scheduler-roster-toolbar select[data-airman-shift-filter] {
  display: block;
  width: 100%;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 40px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
  font-size: 13.3333px;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
}

.scheduler-roster-toolbar select[data-airman-shift-filter]:focus {
  border-color: #6e6e73;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .08);
}

.scheduler-request-table th,
.scheduler-request-table td {
  padding: 15px 16px;
}

.scheduler-request-table th {
  white-space: nowrap;
}

.chief-request-view-label {
  display: none;
}

.scheduler-request-cell {
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: center;
}

.scheduler-request-cell > strong {
  display: block;
  color: #1b2533;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.3;
}

.scheduler-request-cell > span {
  display: block;
  margin: 0;
  color: #748092;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.scheduler-request-date-cell > strong,
.scheduler-request-submitted-cell > strong,
.scheduler-request-submitted-cell > span {
  font-variant-numeric: tabular-nums;
}

.scheduler-request-date-cell > strong {
  white-space: nowrap;
}

.scheduler-history-table th:nth-child(1),
.scheduler-history-table td:nth-child(1) {
  width: 30%;
}

.scheduler-history-table th:nth-child(2),
.scheduler-history-table td:nth-child(2) {
  width: 25%;
}

.scheduler-history-table th:nth-child(3),
.scheduler-history-table td:nth-child(3) {
  width: 19%;
}

.scheduler-history-table th:nth-child(4),
.scheduler-history-table td:nth-child(4) {
  width: 14%;
}

.scheduler-history-table th:nth-child(5),
.scheduler-history-table td:nth-child(5) {
  width: 12%;
  text-align: right;
}

.scheduler-roster-table select[data-airman-shift-select] {
  min-width: 250px;
  min-height: 50px;
  padding: 10px 42px 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 720;
}

.scheduler-roster-table .scheduler-row-change {
  min-width: 112px;
  min-height: 48px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.15;
}

.scheduler-roster-draft-status {
  display: grid;
  min-width: 0;
  grid-template-columns: 10px auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 9px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #d8e2ec;
  border-radius: 13px;
  color: #526174;
  background: #f8fafc;
}

.scheduler-roster-draft-status > span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #1687ff;
  box-shadow: 0 0 0 4px rgba(22, 135, 255, .1);
}

.scheduler-roster-draft-status > strong {
  color: #233247;
  font-size: 11px;
  font-weight: 900;
}

.scheduler-roster-draft-status > small {
  min-width: 0;
  font-size: 9px;
  font-weight: 650;
}

.scheduler-roster-draft-status[data-state="saving"] > span,
.scheduler-roster-draft-status[data-state="applying"] > span {
  background: #d78200;
  box-shadow: 0 0 0 4px rgba(215, 130, 0, .12);
  animation: scheduler-draft-pulse 1s ease-in-out infinite;
}

.scheduler-roster-draft-status[data-state="saved"] > span,
.scheduler-roster-draft-status[data-state="restored"] > span {
  background: #168052;
  box-shadow: 0 0 0 4px rgba(22, 128, 82, .12);
}

.scheduler-roster-draft-status[data-state="offline"] > span {
  background: #c73932;
  box-shadow: 0 0 0 4px rgba(199, 57, 50, .12);
}

@keyframes scheduler-draft-pulse {
  50% { opacity: .45; transform: scale(.78); }
}

.scheduler-skill-level {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid #c9d7e5;
  border-radius: 999px;
  color: #31516f;
  background: #eef4f9;
  box-shadow: none;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.scheduler-skill-level[data-skill-level="3"] {
  border-color: #bfe4d2;
  color: #14754b;
  background: #eaf8f1;
}

.scheduler-skill-level[data-skill-level="5"] {
  border-color: #e7c84b;
  color: #725300;
  background: #fff4b8;
}

.scheduler-skill-level[data-skill-level="7"] {
  border-color: #efaaa6;
  color: #a12721;
  background: #fde9e7;
}

.scheduler-request-meta .scheduler-skill-level {
  margin-top: 0;
}

.scheduler-airman-heading-name {
  color: #1d2025;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.15;
}

.scheduler-my-heading .scheduler-week-heading-copy > h3 {
  margin-top: 18px;
}

.scheduler-my-status-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--status-color, #94a3b8) 40%, #fff);
  border-radius: 999px;
  color: var(--status-color, #475569);
  background: var(--status-bg, #f1f5f9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.flight-print-label {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 4px 0 0;
  color: #526174;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.flight-print-label b {
  color: #1687ff;
  font-size: 18px;
  line-height: 1;
}

.flight-print-shifts .print-shift-days {
  border-color: #168052 !important;
  color: #fff !important;
  background: #168052 !important;
}

.flight-print-shifts .print-shift-swings {
  border-color: #d78200 !important;
  color: #fff !important;
  background: #d78200 !important;
}

.flight-print-shifts .print-shift-mids {
  border-color: #c73932 !important;
  color: #fff !important;
  background: #c73932 !important;
}

.flight-print-shifts .print-shift-days:hover,
.flight-print-shifts .print-shift-swings:hover,
.flight-print-shifts .print-shift-mids:hover {
  color: #fff !important;
  filter: brightness(.92);
  transform: translateY(-1px);
}

.scheduler-shift-card .scheduler-shift-total {
  display: inline-flex !important;
  width: max-content;
  min-width: 132px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--shift-color) 30%, #fff);
  border-radius: 999px;
  color: var(--shift-color);
  background: color-mix(in srgb, var(--shift-color) 9%, #fff);
}

.scheduler-shift-card .scheduler-shift-total strong {
  color: inherit;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}

.scheduler-shift-card .scheduler-shift-total span {
  color: inherit;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.scheduler-page-heading.scheduler-my-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.scheduler-my-heading .scheduler-week-nav {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.scheduler-my-heading .scheduler-week-nav-link {
  display: inline-flex !important;
  width: max-content;
  min-width: 118px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px !important;
  border: 1px solid #e1e7ec !important;
  border-radius: 14px !important;
  color: #253142 !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(18, 38, 61, .09) !important;
  text-decoration: none !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.scheduler-my-heading .scheduler-week-nav-link:first-child {
  justify-self: start;
}

.scheduler-my-heading .scheduler-week-nav-link:nth-child(2) {
  justify-self: center;
}

.scheduler-my-heading .scheduler-week-nav-link:last-child {
  justify-self: end;
}

.scheduler-my-heading .scheduler-week-nav-link:hover {
  border-color: #aac4da !important;
  color: #174f7b !important;
  background: #f8fbfd !important;
  box-shadow: 0 13px 30px rgba(29, 95, 150, .13) !important;
  transform: translateY(-1px);
}

.scheduler-my-heading .scheduler-week-nav-link b {
  color: inherit;
  font-size: 13px !important;
  font-weight: 800;
  white-space: nowrap;
}

.scheduler-my-heading .scheduler-week-nav-link > span:not(.scheduler-week-nav-dot) {
  color: #708093;
  font-size: 19px;
  line-height: 1;
}

.scheduler-my-heading .scheduler-week-nav-link.is-current {
  border-color: #c9ddea !important;
  color: #1d5f96 !important;
  background: #f2f8fc !important;
  box-shadow: inset 0 0 0 1px rgba(29, 95, 150, .04), 0 10px 26px rgba(18, 38, 61, .08) !important;
}

.scheduler-my-heading .scheduler-week-nav-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #1d5f96;
  box-shadow: 0 0 0 4px rgba(29, 95, 150, .12);
}

@media (max-width: 640px) {
  .scheduler-page-heading.scheduler-my-heading {
    gap: 14px !important;
  }

  .scheduler-my-heading .scheduler-week-nav {
    gap: 7px;
  }

  .scheduler-my-heading .scheduler-week-nav-link {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 7px !important;
    border-radius: 12px !important;
  }

  .scheduler-my-heading .scheduler-week-nav-link b {
    font-size: 10px !important;
  }

  .scheduler-my-heading .scheduler-week-nav-link > span:not(.scheduler-week-nav-dot) {
    font-size: 15px;
  }

  .scheduler-my-heading .scheduler-week-nav-dot {
    display: none;
  }
}

/* Airman weekly timeline. */
.scheduler-today-card > .eyebrow {
  margin-bottom: 14px;
}

.scheduler-today-card > .stack {
  display: grid;
  gap: 12px;
}

.scheduler-assignment-card {
  --assignment-color: #64748b;
  position: relative;
  display: grid;
  gap: 13px;
  overflow: hidden;
  width: 100%;
  padding: 18px 20px 18px 24px;
  border: 1px solid color-mix(in srgb, var(--assignment-color) 24%, #e3e9ef);
  border-radius: 17px;
  background: color-mix(in srgb, var(--assignment-color) 6%, #fff);
  box-shadow: 0 9px 24px rgba(22, 42, 66, .055);
  text-align: left;
}

.scheduler-assignment-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: var(--assignment-color);
}

.scheduler-assignment-heading {
  display: grid;
  justify-items: start;
  gap: 7px;
  text-align: left;
}

.scheduler-assignment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
}

.scheduler-assignment-heading h3 {
  margin: 0;
  color: #1d2938;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.scheduler-assignment-time {
  color: var(--assignment-color);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

.scheduler-assignment-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px 9px;
  color: #5f6d7c;
  font-size: 12px;
  text-align: left;
}

.scheduler-assignment-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--assignment-color) 15%, #e4eaf0);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
}

.scheduler-assignment-meta .scheduler-shift-pill {
  --shift-color: #64748b;
  --shift-soft: #eef2f6;
  border-color: color-mix(in srgb, var(--shift-color) 28%, #fff);
  color: var(--shift-color);
  background: var(--shift-soft);
  font-weight: 800;
}

.scheduler-assignment-meta .scheduler-shift-pill.shift-days {
  --shift-color: #168052;
  --shift-soft: #eaf8f0;
}

.scheduler-assignment-meta .scheduler-shift-pill.shift-swings {
  --shift-color: #d78200;
  --shift-soft: #fff6df;
}

.scheduler-assignment-meta .scheduler-shift-pill.shift-mids {
  --shift-color: #c73932;
  --shift-soft: #fff0ef;
}

@media (max-width: 640px) {
  .scheduler-assignment-card {
    padding: 17px 16px 17px 20px;
    border-radius: 15px;
  }

  .scheduler-assignment-heading h3 {
    font-size: 18px;
  }
}

.scheduler-date-range,
.scheduler-time-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.scheduler-date-range > div,
.scheduler-time-range > div,
.scheduler-date-range input[type="date"],
.scheduler-time-range input[type="time"] {
  min-width: 0;
  max-width: 100%;
}

.scheduler-time-range[hidden] {
  display: none !important;
}

.scheduler-week-card {
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid #e2e8ef !important;
  border-radius: 24px !important;
  background: #fff;
  box-shadow: 0 16px 44px rgba(22, 42, 66, .07) !important;
}

.scheduler-week-card .scheduler-week-header {
  --week-header-color: #1d5f96;
  --week-header-deep: #163f66;
  position: relative;
  isolation: isolate;
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 20px !important;
  border-bottom: 1px solid #e8edf2;
  background: radial-gradient(circle at 94% 8%, rgba(29, 95, 150, .11), transparent 30%), linear-gradient(120deg, #fff 0%, #f7fafc 100%);
}

.scheduler-week-card .scheduler-week-header.has-assigned-shift {
  overflow: hidden;
  border-bottom-color: color-mix(in srgb, var(--week-header-deep) 32%, transparent);
  color: #fff;
  background:
    radial-gradient(circle at 91% 4%, rgba(255,255,255,.22) 0 10%, transparent 10.3%),
    radial-gradient(circle at 91% 4%, transparent 0 18%, rgba(255,255,255,.1) 18.2% 18.7%, transparent 19%),
    linear-gradient(125deg, var(--week-header-deep), var(--week-header-color)) !important;
}

.scheduler-week-card .scheduler-week-header.has-assigned-shift.is-days {
  --week-header-color: #168052;
  --week-header-deep: #0b5f3b;
}

.scheduler-week-card .scheduler-week-header.has-assigned-shift.is-swings {
  --week-header-color: #d78200;
  --week-header-deep: #a65b00;
}

.scheduler-week-card .scheduler-week-header.has-assigned-shift.is-mids {
  --week-header-color: #c73932;
  --week-header-deep: #8f221f;
}

.scheduler-week-card .scheduler-week-header.has-assigned-shift > * {
  position: relative;
  z-index: 1;
}

.scheduler-week-card .scheduler-week-header.has-assigned-shift .eyebrow,
.scheduler-week-card .scheduler-week-header.has-assigned-shift h3 {
  color: #fff !important;
}

.scheduler-week-card .scheduler-week-header.has-assigned-shift p {
  color: rgba(255,255,255,.76) !important;
}

.scheduler-week-card .scheduler-week-header h3 {
  margin: 4px 0 3px !important;
  color: #1d2938;
  font-size: 25px !important;
  letter-spacing: -.035em;
}

.scheduler-week-card .scheduler-week-header p {
  margin: 0 !important;
  color: #6f7c8b;
  font-size: 12px !important;
}

.scheduler-week-card .scheduler-week-summary {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.scheduler-week-card .scheduler-week-shift-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 7px;
}

.scheduler-week-card .scheduler-week-shift-heading-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d2938;
  line-height: 1.2;
}

.scheduler-week-card .scheduler-week-shift-heading-item b {
  font-size: 15px;
  font-weight: 900;
}

.scheduler-week-card .scheduler-week-shift-heading-item small {
  padding-left: 8px;
  border-left: 1px solid currentColor;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  opacity: .78;
}

.scheduler-week-card .scheduler-week-header.has-assigned-shift .scheduler-week-shift-heading-item {
  color: #fff;
}

.scheduler-week-card .scheduler-week-shift-heading.is-unassigned .scheduler-week-shift-heading-item {
  color: #64748b;
}

.scheduler-week-card .scheduler-week-summary span {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid #dce5ed;
  border-radius: 999px;
  color: #5f6d7c;
  background: rgba(255,255,255,.9);
  font-size: 10px;
  font-weight: 800;
}

.scheduler-week-card .scheduler-week-summary strong {
  color: #1d5f96;
  font-size: 13px;
}

.scheduler-week-card .scheduler-week-header.has-assigned-shift .scheduler-week-summary span {
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
}

.scheduler-week-card .scheduler-week-header.has-assigned-shift .scheduler-week-summary strong {
  color: #fff;
}

.scheduler-week-card .scheduler-week-timeline {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(142px, 1fr)) !important;
  gap: 9px;
  overflow-x: auto !important;
  padding: 16px !important;
  scroll-snap-type: x proximity;
  scrollbar-color: #c7d3de transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.scheduler-week-card .scheduler-week-day {
  position: relative;
  display: flex !important;
  min-height: 218px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #e2e7ec;
  border-radius: 17px;
  background: #fbfcfd;
  scroll-snap-align: start;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.scheduler-week-card .scheduler-week-day:hover {
  border-color: #bccbd8;
  box-shadow: 0 10px 24px rgba(22,42,66,.08);
  transform: translateY(-2px);
}

.scheduler-week-card .scheduler-week-day.is-today {
  border-color: #0b5f9b;
  box-shadow: inset 0 0 0 2px rgba(11,95,155,.2), 0 12px 28px rgba(15,61,99,.2);
}

.scheduler-week-card .scheduler-week-day-head {
  display: flex !important;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px !important;
  border-bottom: 1px solid #e8edf2;
  background: #f4f7f9;
}

.scheduler-week-card .scheduler-week-day.is-today .scheduler-week-day-head {
  color: #fff !important;
  border-color: #0b5f9b !important;
  background: linear-gradient(145deg, #102f50 0%, #155b8f 58%, #0877bd 100%) !important;
  box-shadow: inset 0 -1px rgba(255,255,255,.16);
}

.scheduler-week-card .scheduler-week-date {
  display: flex !important;
  align-items: baseline;
  gap: 5px;
}

.scheduler-week-card .scheduler-week-date span {
  color: #6d7b89;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.scheduler-week-card .scheduler-week-date strong {
  color: #1a2635;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.04em;
}

.scheduler-week-card .scheduler-week-day-meta {
  display: grid !important;
  justify-items: end;
  gap: 4px;
}

.scheduler-week-card .scheduler-week-day-meta > span {
  color: #8a95a1;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.scheduler-week-card .scheduler-week-day-meta b {
  padding: 4px 6px;
  border-radius: 999px;
  color: #1d5f96;
  background: #e6f2fb;
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.scheduler-week-card .scheduler-week-day.is-today .scheduler-week-date span,
.scheduler-week-card .scheduler-week-day.is-today .scheduler-week-date strong,
.scheduler-week-card .scheduler-week-day.is-today .scheduler-week-day-meta > span {
  color: #fff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
}

.scheduler-week-card .scheduler-week-day.is-today .scheduler-week-date span,
.scheduler-week-card .scheduler-week-day.is-today .scheduler-week-day-meta > span {
  color: #d9efff !important;
}

.scheduler-week-card .scheduler-week-day.is-today .scheduler-week-date strong {
  font-size: 30px;
  font-weight: 950;
}

.scheduler-week-card .scheduler-week-day.is-today .scheduler-week-day-meta b {
  border: 1px solid rgba(255,255,255,.9);
  color: #0b385c !important;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(4,32,54,.24);
  font-weight: 950;
}

.scheduler-week-card .scheduler-week-items {
  display: grid !important;
  gap: 8px;
  align-content: start;
  flex: 1;
  padding: 10px !important;
}

.scheduler-week-card .scheduler-week-item {
  --week-accent: #64748b;
  position: relative;
  display: grid !important;
  gap: 5px;
  overflow: hidden;
  padding: 10px 9px 10px 12px !important;
  border: 1px solid color-mix(in srgb, var(--week-accent) 22%, #fff);
  border-radius: 12px;
  background: color-mix(in srgb, var(--week-accent) 8%, #fff);
}

.scheduler-week-card .scheduler-week-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--week-accent);
}

.scheduler-week-card .scheduler-week-item-top {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.scheduler-week-card .scheduler-week-item-top span {
  overflow: hidden;
  color: var(--week-accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.scheduler-week-card .scheduler-week-item-top b {
  flex: 0 0 auto;
  padding: 3px 5px;
  border-radius: 999px;
  color: var(--week-accent);
  background: color-mix(in srgb, var(--week-accent) 12%, #fff);
  font-size: 7px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.scheduler-week-card .scheduler-week-item > strong {
  color: #1c2735;
  font-size: 11px;
  line-height: 1.28;
}

.scheduler-week-card .scheduler-week-item > small {
  overflow-wrap: anywhere;
  color: #697583;
  font-size: 9px;
  line-height: 1.35;
}

.scheduler-week-card .scheduler-week-empty {
  display: grid !important;
  min-height: 112px;
  place-content: center;
  justify-items: center;
  color: #9aa5b1;
  text-align: center;
}

.scheduler-week-card .scheduler-week-empty span {
  display: grid !important;
  width: 30px;
  height: 30px;
  margin-bottom: 7px;
  place-items: center;
  border: 1px dashed #cbd4dc;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}

.scheduler-week-card .scheduler-week-empty strong {
  color: #788592;
  font-size: 11px;
}

.scheduler-week-card .scheduler-week-empty small {
  margin-top: 2px;
  font-size: 8px;
}

.scheduler-week-card .scheduler-week-day.is-weekend:not(.has-items) {
  background: #fafbfc;
}

.scheduler-week-card .scheduler-week-day.is-weekend:not(.has-items) .scheduler-week-day-head {
  background: #f2f4f6;
}

.scheduler-week-card .scheduler-week-empty.is-weekend {
  min-height: 112px;
}

.scheduler-week-card .scheduler-week-swipe-hint {
  display: none;
}

.flight-mobile-schedule {
  display: none;
}

@media (max-width: 1100px) {
  .scheduler-week-card .scheduler-week-timeline {
    grid-template-columns: repeat(7, minmax(160px, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .scheduler-roster-draft-status {
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: start;
    padding: 10px 11px;
  }

  .scheduler-roster-draft-status > span {
    margin-top: 2px;
  }

  .scheduler-roster-draft-status > small {
    grid-column: 2;
  }

  .scheduler-shift-overview {
    display: grid !important;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .scheduler-shift-overview .scheduler-shift-card {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    column-gap: 14px;
    padding: 18px !important;
  }

  .scheduler-shift-overview .scheduler-shift-card-head {
    grid-row: 1 / 3;
    grid-column: 1;
  }

  .scheduler-shift-overview .scheduler-shift-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 13px;
  }

  .scheduler-shift-overview .scheduler-shift-card h3 {
    grid-row: 1;
    grid-column: 2;
    margin: 0 0 2px;
    font-size: 22px;
    line-height: 1.15;
  }

  .scheduler-shift-overview .scheduler-shift-card p {
    grid-row: 2;
    grid-column: 2;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 10px;
    line-height: 1.4;
  }

  .scheduler-shift-overview .scheduler-shift-total {
    width: 100% !important;
    min-width: 0 !important;
    grid-row: 3;
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 14px;
  }

  /* Without an explicit placement, this auto-flows into the 44px icon
     column of the next implicit row and every pill wraps onto its own
     line. Span the full card width and keep all three pills on one row. */
  .scheduler-shift-overview .scheduler-shift-level-pills {
    width: 100% !important;
    grid-row: 4;
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    margin-top: 14px;
  }

  .scheduler-shift-overview .scheduler-shift-level-pills span {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 6px;
    gap: 6px;
  }

  .scheduler-roster-table-shell {
    overflow: visible;
    padding: 10px;
    background: #f5f7f9;
  }

  .scheduler-roster-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .scheduler-roster-table thead {
    display: none;
  }

  .scheduler-roster-table tbody {
    display: block;
  }

  .scheduler-roster-table tbody[hidden],
  .scheduler-roster-table tr[data-airman-row][hidden] {
    display: none !important;
  }

  .scheduler-roster-table .scheduler-roster-group-row {
    display: block;
    margin: 4px 0 8px;
  }

  .scheduler-roster-table .scheduler-roster-group-row td {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px !important;
    border-radius: 12px;
  }

  .scheduler-roster-table .scheduler-roster-group-row td span {
    float: none;
  }

  .scheduler-roster-table tr[data-airman-row] {
    --row-shift-color: #64748b;
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 10px;
    margin-bottom: 9px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--row-shift-color) 18%, #fff);
    border-radius: 16px;
    background: color-mix(in srgb, var(--row-shift-color) 7%, #fff);
    box-shadow: inset 4px 0 0 var(--row-shift-color), 0 7px 18px rgba(15, 23, 42, .05);
  }

  .scheduler-roster-table tr[data-airman-row].is-days {
    --row-shift-color: #168052;
  }

  .scheduler-roster-table tr[data-airman-row].is-swings {
    --row-shift-color: #d78200;
  }

  .scheduler-roster-table tr[data-airman-row].is-mids {
    --row-shift-color: #c73932;
  }

  .scheduler-roster-table tr[data-airman-row].has-change {
    background: color-mix(in srgb, var(--row-shift-color) 12%, #fff);
  }

  .scheduler-roster-table tr[data-airman-row] > td {
    display: block;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .scheduler-roster-table tr[data-airman-row] > td:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
  }

  .scheduler-roster-table tr[data-airman-row] > td:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }

  .scheduler-roster-table tr[data-airman-row] > td:nth-child(3) {
    grid-row: 2;
    grid-column: 1;
  }

  .scheduler-roster-table tr[data-airman-row] > td:nth-child(4) {
    grid-row: 2;
    grid-column: 2;
  }

  .scheduler-roster-table .scheduler-airman-identity {
    min-width: 0;
    gap: 10px;
  }

  .scheduler-roster-table .scheduler-airman-identity > span {
    width: 40px;
    height: 40px;
  }

  .scheduler-roster-table .scheduler-airman-identity > div {
    min-width: 0;
  }

  .scheduler-roster-table .scheduler-airman-identity strong,
  .scheduler-roster-table .scheduler-airman-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scheduler-roster-table select[data-airman-shift-select] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 9px 36px 9px 11px;
    font-size: 12px;
  }

  .scheduler-roster-table .scheduler-row-change {
    min-width: 82px;
    min-height: 48px;
    padding: 8px 9px;
    font-size: 9px;
    text-align: center;
  }

  .scheduler-chief-request-table-shell {
    overflow-x: visible;
  }

  .scheduler-chief-request-table {
    display: table !important;
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
  }

  .scheduler-chief-request-table th:nth-child(3),
  .scheduler-chief-request-table td:nth-child(3),
  .scheduler-chief-request-table th:nth-child(4),
  .scheduler-chief-request-table td:nth-child(4),
  .scheduler-chief-request-table th:nth-child(5),
  .scheduler-chief-request-table td:nth-child(5) {
    display: none;
  }

  .scheduler-chief-request-table th:nth-child(1),
  .scheduler-chief-request-table td:nth-child(1) {
    width: 43%;
  }

  .scheduler-chief-request-table th:nth-child(2),
  .scheduler-chief-request-table td:nth-child(2) {
    width: 35%;
  }

  .scheduler-chief-request-table th:nth-child(6),
  .scheduler-chief-request-table td:nth-child(6) {
    width: 22%;
    text-align: right;
  }

  .scheduler-chief-request-table th,
  .scheduler-chief-request-table td {
    padding: 12px 7px !important;
    overflow-wrap: anywhere;
  }

  .scheduler-chief-request-table th {
    font-size: 8px;
  }

  .scheduler-chief-request-table td:first-child > strong {
    font-size: 11px;
    line-height: 1.25;
  }

  .scheduler-chief-request-table td:first-child > span {
    margin-top: 2px;
    font-size: 8px;
    line-height: 1.3;
  }

  .scheduler-chief-request-table .scheduler-skill-level {
    margin-top: 4px;
    padding: 3px 6px;
    font-size: 7px;
  }

  .scheduler-chief-request-table .scheduler-request-cell {
    gap: 3px;
  }

  .scheduler-chief-request-table .scheduler-request-cell > strong {
    font-size: 10px;
    line-height: 1.25;
  }

  .scheduler-chief-request-table .scheduler-request-cell > span {
    font-size: 8px;
  }

  .scheduler-chief-request-table .scheduler-view-request {
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px !important;
    border-radius: 11px;
    font-size: 9px;
  }

  .scheduler-chief-request-table .chief-request-action-label {
    display: none;
  }

  .scheduler-chief-request-table .chief-request-view-label {
    display: inline;
  }

  .scheduler-airman-request-form-card .form-grid,
  .scheduler-airman-request-form-card .form-grid > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .scheduler-airman-request-form-card input[type="date"],
  .scheduler-airman-request-form-card input[type="time"] {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 11px !important;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 16px !important;
    line-height: 1 !important;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
  }

  .scheduler-airman-request-form-card input[type="date"]::-webkit-datetime-edit,
  .scheduler-airman-request-form-card input[type="time"]::-webkit-datetime-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .scheduler-airman-request-form-card input[type="date"]::-webkit-datetime-edit-fields-wrapper,
  .scheduler-airman-request-form-card input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .scheduler-airman-request-form-card input[type="date"]::-webkit-date-and-time-value,
  .scheduler-airman-request-form-card input[type="time"]::-webkit-date-and-time-value {
    width: 100%;
    min-height: 20px;
    margin: 0;
    text-align: center;
  }

  .scheduler-airman-request-form-card input[type="date"]::-webkit-calendar-picker-indicator,
  .scheduler-airman-request-form-card input[type="time"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 8px;
    margin: 0;
    padding: 3px;
  }

  .scheduler-history-table-shell {
    overflow-x: visible;
  }

  .scheduler-history-table {
    display: table !important;
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
  }

  .scheduler-history-table .request-history-detail {
    display: none;
  }

  .scheduler-history-table th:nth-child(1),
  .scheduler-history-table td:nth-child(1) {
    width: 44%;
  }

  .scheduler-history-table th:nth-child(4),
  .scheduler-history-table td:nth-child(4) {
    width: 31%;
  }

  .scheduler-history-table th:nth-child(5),
  .scheduler-history-table td:nth-child(5) {
    width: 25%;
    text-align: right;
  }

  .scheduler-history-table th,
  .scheduler-history-table td {
    padding: 11px 8px !important;
  }

  .scheduler-history-table td:first-child > strong,
  .scheduler-history-table td:first-child > span {
    display: block;
  }

  .scheduler-history-table .scheduler-request-cell {
    gap: 3px;
  }

  .scheduler-history-table .scheduler-request-cell > strong {
    font-size: 11px;
    line-height: 1.25;
  }

  .scheduler-history-table .scheduler-request-cell > span {
    font-size: 9px;
  }

  .scheduler-history-table .status-pill {
    max-width: 100%;
    padding: 6px 8px;
    font-size: 8px;
    white-space: nowrap;
  }

  .scheduler-history-table .scheduler-view-request {
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px !important;
    border-radius: 11px;
    font-size: 9px;
  }

  .scheduler-week-card {
    margin-inline: -2px;
    border-radius: 19px !important;
  }

  .scheduler-week-card .scheduler-week-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    padding: 18px !important;
  }

  .scheduler-week-card .scheduler-week-header h3 {
    margin-bottom: 2px !important;
    font-size: 22px !important;
  }

  .scheduler-week-card .scheduler-week-header p {
    font-size: 10px !important;
  }

  .scheduler-week-card .scheduler-week-summary {
    justify-content: flex-start;
  }

  .scheduler-week-card .scheduler-week-summary span {
    padding: 5px 9px;
    font-size: 9px;
  }

  .scheduler-week-card .scheduler-week-summary strong {
    font-size: 12px;
  }

  .scheduler-week-card .scheduler-week-shift-heading-item b {
    font-size: 14px;
  }

  .scheduler-week-card .scheduler-week-shift-heading-item small {
    font-size: 10px;
  }

  .scheduler-week-card .scheduler-week-timeline {
    display: flex !important;
    overflow: visible !important;
    flex-direction: column;
    gap: 7px;
    padding: 11px !important;
    scroll-snap-type: none;
  }

  .scheduler-week-card .scheduler-week-day {
    display: grid !important;
    min-height: 0;
    grid-template-columns: 76px minmax(0, 1fr);
    border-radius: 14px;
    background: #fff;
  }

  .scheduler-week-card .scheduler-week-day:hover {
    transform: none;
  }

  .scheduler-week-card .scheduler-week-day-head {
    min-height: 72px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px !important;
    border-right: 1px solid #e8edf2;
    border-bottom: 0;
  }

  .scheduler-week-card .scheduler-week-date {
    align-items: center;
    flex-direction: column;
    gap: 1px;
  }

  .scheduler-week-card .scheduler-week-date span { font-size: 8px; }
  .scheduler-week-card .scheduler-week-date strong { font-size: 24px; }
  .scheduler-week-card .scheduler-week-day-meta { justify-items: center; gap: 3px; }
  .scheduler-week-card .scheduler-week-day-meta > span { font-size: 7px; }
  .scheduler-week-card .scheduler-week-day-meta b { padding: 3px 5px; font-size: 6px; }
  .scheduler-week-card .scheduler-week-day.is-today .scheduler-week-day-head { border-right-color: #3377ab; }
  .scheduler-week-card .scheduler-week-items { min-width: 0; align-content: center; padding: 8px !important; }
  .scheduler-week-card .scheduler-week-item { gap: 4px; padding: 9px 9px 9px 12px !important; }
  .scheduler-week-card .scheduler-week-item-top span { font-size: 7px; }
  .scheduler-week-card .scheduler-week-item > strong { font-size: 11px; }
  .scheduler-week-card .scheduler-week-item > small { font-size: 8px; }
  .scheduler-week-card .scheduler-week-day.is-open .scheduler-week-items { display: flex !important; align-items: center; }

  .scheduler-week-card .scheduler-week-empty {
    display: grid !important;
    width: 100%;
    min-height: 0;
    grid-template-columns: 27px minmax(0, 1fr);
    grid-template-rows: auto auto;
    place-content: center start;
    justify-items: start;
    column-gap: 9px;
    text-align: left;
  }

  .scheduler-week-card .scheduler-week-empty span {
    width: 27px;
    height: 27px;
    grid-row: 1 / 3;
    margin: 0;
    border-radius: 8px;
    font-size: 12px;
  }

  .scheduler-week-card .scheduler-week-empty strong { align-self: end; font-size: 10px; }
  .scheduler-week-card .scheduler-week-empty small { align-self: start; margin: 0; font-size: 7px; }
}

@media (max-width: 350px) {
  .scheduler-date-range,
  .scheduler-time-range {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .flight-schedule-table-shell {
    width: 100%;
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .flight-schedule-table,
  .flight-schedule-table-shell > .flight-shift-legend {
    display: none;
  }

  .flight-mobile-schedule {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 16px;
  }

  .flight-mobile-shift-section {
    --flight-mobile-color: #64748b;
    --flight-mobile-soft: #f1f5f9;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe3eb;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  }

  .flight-mobile-shift-section.shift-days {
    --flight-mobile-color: #178653;
    --flight-mobile-soft: #eef9f3;
  }

  .flight-mobile-shift-section.shift-swings {
    --flight-mobile-color: #dc8500;
    --flight-mobile-soft: #fff8e9;
  }

  .flight-mobile-shift-section.shift-mids {
    --flight-mobile-color: #cc3732;
    --flight-mobile-soft: #fff3f2;
  }

  .flight-mobile-shift-heading {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    color: #fff;
    background: var(--flight-mobile-color);
  }

  .flight-mobile-shift-heading strong {
    font-size: 16px;
    font-weight: 880;
    line-height: 1.2;
  }

  .flight-mobile-shift-heading span {
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    line-height: 1.35;
    text-align: right;
    text-transform: uppercase;
  }

  .flight-mobile-airmen {
    display: grid;
    min-width: 0;
    gap: 10px;
    padding: 10px;
    background: var(--flight-mobile-soft);
  }

  .flight-mobile-airman-card {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .05);
  }

  .flight-mobile-airman-head {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-left: 4px solid var(--flight-mobile-color);
  }

  .flight-mobile-identity {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .flight-mobile-identity > strong,
  .flight-mobile-identity > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .flight-mobile-identity > strong {
    color: #172033;
    font-size: 14px;
    font-weight: 860;
    line-height: 1.25;
  }

  .flight-mobile-identity > span {
    color: #748092;
    font-size: 10px;
    font-weight: 650;
  }

  .flight-mobile-identity .scheduler-skill-level {
    margin-top: 3px;
  }

  .flight-mobile-shift-meta {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: 5px;
  }

  .flight-mobile-shift-meta .flight-shift-badge {
    min-width: 76px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .flight-mobile-shift-meta small {
    color: #687385;
    font-size: 9px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .flight-mobile-days {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
    padding: 0 8px 10px;
  }

  .flight-mobile-days::-webkit-scrollbar {
    display: none;
  }

  .flight-mobile-day {
    min-width: 0;
    min-height: 112px;
    overflow: hidden;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    background: #f8fafc;
  }

  .flight-mobile-day > header {
    display: flex;
    min-height: 38px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 5px 2px;
    border-bottom: 1px solid #e3e9ef;
    background: #f1f5f9;
  }

  .flight-mobile-day > header span {
    color: #758195;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .flight-mobile-day > header strong {
    color: #172033;
    font-size: 13px;
    font-weight: 850;
  }

  .flight-mobile-day.is-today {
    border-color: #2f7fbd;
    box-shadow: inset 0 0 0 1px #2f7fbd;
  }

  .flight-mobile-day.is-today > header {
    border-bottom-color: #2f7fbd;
    color: #fff;
    background: #245b87;
  }

  .flight-mobile-day.is-today > header span,
  .flight-mobile-day.is-today > header strong {
    color: #fff;
  }

  .flight-mobile-day.is-weekend:not(.is-today) {
    background: #fbfcfd;
  }

  .flight-mobile-day-items {
    display: grid;
    min-height: 72px;
    align-content: start;
    gap: 4px;
    padding: 5px 3px;
  }

  .flight-mobile-day-items .scheduler-grid-assignment {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .flight-mobile-day-items .scheduler-grid-assignment summary {
    min-width: 0;
    min-height: 58px;
    align-content: center;
    padding: 6px 2px 6px 5px;
    text-align: center;
  }

  .flight-mobile-day-items .scheduler-grid-assignment summary strong {
    font-size: 8px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .flight-mobile-day-items .scheduler-grid-assignment summary span {
    display: none;
  }

  .flight-mobile-day-items .scheduler-grid-assignment[open] > div {
    position: absolute;
    z-index: 12;
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 5px;
    padding: 12px;
    border: 1px solid #d7e1ea;
    border-left: 4px solid var(--assignment-color, #64748b);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .2);
    text-align: left;
  }

  .flight-mobile-empty {
    display: grid;
    min-height: 62px;
    place-items: center;
    color: #a2acb8;
    font-size: 18px;
  }

  .flight-mobile-swipe-hint {
    display: none;
  }

  .flight-mobile-swipe-hint span {
    color: var(--flight-mobile-color);
    font-size: 12px;
  }
}

/* Keep dense certification controls neutral after global button theme rules. */
.certification-cell-actions .certification-marker-button,
.certification-cell-actions .certification-detail-button {
  min-width: 0;
  border: 1px solid #ccd8e4;
  color: #26374a;
  background: #fff;
  box-shadow: none;
}

.certification-cell-actions .certification-marker-button:hover,
.certification-cell-actions .certification-marker-button:focus-visible,
.certification-cell-actions .certification-detail-button:hover,
.certification-cell-actions .certification-detail-button:focus-visible {
  border-color: #3976a8;
  color: #174f7d;
  background: #eef7ff;
  box-shadow: none;
}

.certification-cell-actions .certification-detail-button {
  border-color: transparent;
  color: #7a8796;
}

/* Airman Qualification Passport */
.qualification-dashboard-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 24px 26px;
  border: 1px solid #d5e5f1;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef7ff 52%, #f8f4ff 100%);
  box-shadow: 0 14px 32px rgba(35, 77, 112, .08);
}

.qualification-dashboard-copy h3 { margin: 3px 0 6px; color: #172033; }
.qualification-dashboard-copy p { max-width: 640px; margin: 0 0 16px; color: #647184; }
.qualification-dashboard-copy .btn { display: inline-flex; }
.qualification-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.qualification-dashboard-stats > span {
  display: grid;
  min-height: 86px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border: 1px solid #dbe5ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
}

.qualification-dashboard-stats strong { color: #172033; font-size: 25px; line-height: 1; }
.qualification-dashboard-stats strong i { color: #8894a4; font-size: 12px; font-style: normal; }
.qualification-dashboard-stats small { color: #748092; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.qualification-dashboard-stats .is-current { border-top: 3px solid #168b59; }
.qualification-dashboard-stats .is-expiring { border-top: 3px solid #d88900; }
.qualification-dashboard-stats .is-expired { border-top: 3px solid #c73932; }
.qualification-dashboard-stats .is-recorded { border-top: 3px solid #2563eb; }

.qualification-passport-hero {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 34px 38px;
  border: 1px solid #244d76;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(91, 180, 255, .32), transparent 32%),
    linear-gradient(135deg, #102c47 0%, #174f7d 52%, #24345f 100%);
  box-shadow: 0 20px 46px rgba(16, 44, 71, .2);
}

.qualification-passport-hero .eyebrow { color: #a9d8ff; }
.qualification-passport-identity h2 { margin: 7px 0 4px; color: #fff; font-size: clamp(27px, 4vw, 42px); }
.qualification-passport-identity > p { margin: 0; color: #d3e4f4; font-size: 15px; }
.qualification-passport-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.qualification-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #536171;
  background: #eef2f6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.qualification-state.is-current { color: #087344; background: #dcfce7; }
.qualification-state.is-expiring { color: #925400; background: #fff2cf; }
.qualification-state.is-expired { color: #a62824; background: #fee2e2; }
.qualification-state.is-missing { color: #5f6d7e; background: #e9eef4; }
.qualification-passport-hero .qualification-state.is-current { color: #d5ffeb; background: rgba(16, 185, 129, .22); }
.qualification-passport-hero .qualification-state.is-expired { color: #ffe1df; background: rgba(239, 68, 68, .28); }
.qualification-passport-hero .qualification-state.is-missing { color: #e5edf5; background: rgba(255, 255, 255, .14); }

.qualification-passport-ring {
  display: grid;
  width: 152px;
  height: 152px;
  flex: 0 0 152px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#67c6ff var(--passport-progress), rgba(255, 255, 255, .16) 0);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .06);
}

.qualification-passport-ring > div {
  display: grid;
  width: 118px;
  height: 118px;
  place-content: center;
  justify-items: center;
  border-radius: 50%;
  background: #123653;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .16);
}

.qualification-passport-ring strong { color: #fff; font-size: 38px; line-height: .95; }
.qualification-passport-ring span { color: #bddcf2; font-size: 12px; font-weight: 750; }
.qualification-passport-ring small { margin-top: 3px; color: #8fc9ef; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }

.qualification-alerts { display: grid; gap: 10px; }
.qualification-alerts article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid #bfe4d1;
  border-radius: 15px;
  background: #f1fbf6;
}

.qualification-alerts article > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: #168b59; font-weight: 900; }
.qualification-alerts p { margin: 3px 0; color: #536171; }
.qualification-alerts small { color: #7a8795; }

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

.qualification-summary-grid article {
  display: grid;
  min-height: 118px;
  align-content: center;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid #dce5ed;
  border-left-width: 4px;
  border-radius: 16px;
  background: #fff;
}

.qualification-summary-grid article > span { color: #657285; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.qualification-summary-grid article > strong { color: #172033; font-size: 31px; line-height: 1; }
.qualification-summary-grid article > small { color: #8490a0; }
.qualification-summary-grid .is-current { border-left-color: #168b59; }
.qualification-summary-grid .is-expiring { border-left-color: #d88900; }
.qualification-summary-grid .is-expired { border-left-color: #c73932; }
.qualification-summary-grid .is-missing { border-left-color: #7c8b9b; }

.qualification-passport-section {
  padding: 24px;
  border: 1px solid #dce5ed;
  border-radius: 20px;
  background: #f8fafc;
}

.qualification-wallet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qualification-wallet-grid > .qualification-wallet-empty-state { grid-column: 1 / -1; min-height: 150px; place-content: center; text-align: center; }
.qualification-wallet-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #dae3eb;
  border-top: 4px solid #168b59;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(22, 45, 68, .05);
}

.qualification-wallet-card.is-expiring { border-top-color: #d88900; }
.qualification-wallet-card.is-expired { border-top-color: #c73932; }
.qualification-wallet-card.is-missing { border-top-color: #a7b2bf; background: #fbfcfd; box-shadow: none; }
.qualification-wallet-card header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.qualification-wallet-symbol { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #245b87; background: #e8f4fd; font-size: 11px; font-weight: 900; }
.qualification-wallet-card h4 { overflow: hidden; margin: 0 0 4px; color: #1c2938; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.qualification-marker { display: grid; min-width: 39px; height: 39px; padding: 0 6px; place-items: center; border: 1px solid color-mix(in srgb, var(--marker-color) 28%, white); border-radius: 11px; color: var(--marker-color); background: color-mix(in srgb, var(--marker-color) 9%, white); font-size: 17px; }
.qualification-marker-meaning { min-height: 34px; margin: 15px 0 12px; color: #667486; font-size: 11px; font-weight: 650; }
.qualification-wallet-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding-top: 12px; border-top: 1px solid #edf1f5; }
.qualification-wallet-card dl div { min-width: 0; }
.qualification-wallet-card dt { color: #8792a0; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.qualification-wallet-card dd { overflow: hidden; margin: 2px 0 0; color: #344256; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.qualification-wallet-empty { min-height: 64px; margin: 16px 0 0; padding: 12px; border-radius: 10px; color: #7a8795; background: #f1f4f7; font-size: 11px; }

.qualification-history { border-radius: 20px; }
.qualification-history-list { display: grid; }
.qualification-history-list article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 13px 2px; border-bottom: 1px solid #e9eef3; }
.qualification-history-list article:last-child { border-bottom: 0; }
.qualification-history-dot { width: 11px; height: 11px; margin-top: 5px; border: 3px solid #cfe9fb; border-radius: 50%; background: #2678b4; box-shadow: 0 0 0 4px #eff8fe; }
.qualification-history-list p { margin: 2px 0; color: #5f6d7e; }
.qualification-history-list small { color: #8994a2; }

@media (max-width: 1040px) {
  .qualification-dashboard-card { grid-template-columns: 1fr; }
  .qualification-wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .qualification-dashboard-card { padding: 20px; }
  .qualification-dashboard-stats,
  .qualification-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qualification-passport-hero { min-height: 0; align-items: flex-start; padding: 25px 22px; }
  .qualification-passport-ring { width: 112px; height: 112px; flex-basis: 112px; }
  .qualification-passport-ring > div { width: 84px; height: 84px; }
  .qualification-passport-ring strong { font-size: 28px; }
  .qualification-wallet-grid { grid-template-columns: 1fr; }
  .qualification-passport-section { padding: 18px; }
}

@media (max-width: 480px) {
  .qualification-passport-hero { display: grid; }
  .qualification-passport-ring { grid-row: 1; justify-self: end; }
  .qualification-passport-identity { grid-row: 1 / span 2; padding-top: 124px; }
  .qualification-alerts article { grid-template-columns: auto minmax(0, 1fr); }
  .qualification-alerts form { grid-column: 2; }
}

/* Keep primary form controls the same large, presentation-ready size everywhere. */
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]):not([type="file"]),
select,
.nexus-input:not(textarea),
.nexus-select {
  height: var(--control-height) !important;
  min-height: var(--control-height) !important;
  max-height: var(--control-height) !important;
}

/* Match every editable field to the rounded Find Airman control. */
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]):not([type="file"]),
select,
textarea,
.nexus-input,
.nexus-select,
.nexus-textarea {
  border-radius: var(--control-radius) !important;
}
.scheduler-coverage-metrics {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.2;
  text-align: left;
}

.scheduler-coverage-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.scheduler-coverage-metrics b {
  color: #1e293b;
}
.scheduler-owner-info {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.scheduler-shift-level-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(100, 116, 139, .18);
}

.scheduler-shift-level-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 104px;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #475569;
}

.scheduler-shift-level-pills span[data-skill-level="7"] { border-color: #f5aaa5; background: #fff0ef; color: #a92b24; }
.scheduler-shift-level-pills span[data-skill-level="5"] { border-color: #edc543; background: #fff7cf; color: #725400; }
.scheduler-shift-level-pills span[data-skill-level="3"] { border-color: #b9e2cf; background: #edf9f3; color: #14764d; }

.scheduler-shift-level-pills b {
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.scheduler-shift-level-pills strong {
  font-size: 17px;
  line-height: 1;
}

.scheduler-owner-info span {
  display: grid;
  gap: 3px;
  color: #334155;
  font-size: 13px;
}

.scheduler-owner-info b {
  color: #64748b;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .scheduler-owner-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.scheduler-preview-window .arke-sidebar,
.scheduler-preview-window .arke-mobile-nav-backdrop,
.scheduler-preview-window .arke-topbar {
    display: none !important;
}

.scheduler-preview-window .arke-main {
    margin-left: 0;
}

.scheduler-preview-window .arke-content {
    max-width: none;
    width: 100%;
}

.scheduler-preview-live-indicator {
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    color: #047857;
    display: inline-flex;
    font-weight: 800;
    gap: .55rem;
    padding: .7rem 1rem;
}

.scheduler-preview-live-indicator i {
    animation: scheduler-preview-pulse 1.6s ease-in-out infinite;
    background: #10b981;
    border-radius: 50%;
    height: .65rem;
    width: .65rem;
}

.scheduler-preview-duty {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: .6rem;
    color: #1d4ed8;
    display: block;
    font-size: .78rem;
    font-weight: 800;
    padding: .55rem .45rem;
    text-align: center;
}

@keyframes scheduler-preview-pulse {
    50% { opacity: .35; transform: scale(.75); }
}
